Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

fix(newtab): round-86 review — inactive settings are inert, dialogs hide the page from assistive tech, producer contract updated

Claudecc0cc9946873
diff --git a/newtab/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx b/newtab/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx
index d35c940a3..66f517646 100644
--- a/newtab/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx
+++ b/newtab/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx
@@ -21,7 +21,9 @@ const PreferencesWrapper = ({ children, ...props }) => {
}, [props.setting]);
return (
- <div className={shown ? 'preferences' : 'preferencesInactive'}>
+ // `inert` takes the greyed-out controls out of the tab order and the accessibility tree too;
+ // the CSS class alone only blocks the pointer.
+ <div className={shown ? 'preferences' : 'preferencesInactive'} inert={!shown}>
{props.zoomSetting && (
<Row>
<Content
diff --git a/newtab/src/features/agent/handoff.js b/newtab/src/features/agent/handoff.js
index ae79b2b02..6ef892eb9 100644
--- a/newtab/src/features/agent/handoff.js
+++ b/newtab/src/features/agent/handoff.js
@@ -6,9 +6,11 @@
* the side panel usually is not loaded yet when the user submits. The panel
* reads it on start-up (ui/newtab-handoff.js in each extension), checks it is fresh and
* addressed to its own tab, and then:
- * - Ask: fills the composer and sends (Ask is read-only);
- * - Act: fills the composer and switches to Act but does NOT send, so the
- * user always confirms an Act run in the panel.
+ * - Ask and Act: fills the composer and sends straight away, pinned to the chosen
+ * mode. Act therefore starts acting without a further confirmation (Plan before Act
+ * still applies when it is on, and the box warns about it before the user submits);
+ * if Act is not allowed for the panel's current provider or scope, the text is left
+ * in the composer, unsent.
*/
// One key per tab, so concurrent submissions from several new tab pages can never
// overwrite each other. Mirrors src/*/src/ui/newtab-handoff.js (checked in test/newtab.mjs).
diff --git a/newtab/src/features/background/options/Custom.jsx b/newtab/src/features/background/options/Custom.jsx
index ff2b3c1a2..9a257bedf 100644
--- a/newtab/src/features/background/options/Custom.jsx
+++ b/newtab/src/features/background/options/Custom.jsx
@@ -37,6 +37,7 @@ import { generateBlurHashDataUrl } from '../api/blurHash';
import { Checkbox, FileUpload, Dropdown } from 'components/Form/Settings';
import { Tooltip, Button } from 'components/Elements';
import Modal from 'react-modal';
+import { pageElement } from 'utils/pageElement';
import FolderTaggingModal from './FolderTaggingModal';
@@ -812,7 +813,8 @@ const CustomSettings = memo(() => {
isOpen={folderTaggingModal}
className="Modal resetmodal mainModal"
overlayClassName="Overlay resetoverlay"
- ariaHideApp={false}
+ appElement={pageElement()}
+ aria={{ modal: true }}
>
<FolderTaggingModal
files={pendingFiles}
@@ -830,7 +832,8 @@ const CustomSettings = memo(() => {
isOpen={storageQuotaModal}
className="Modal resetmodal mainModal"
overlayClassName="Overlay resetoverlay"
- ariaHideApp={false}
+ appElement={pageElement()}
+ aria={{ modal: true }}
>
<div className="smallModal">
<div className="shareHeader">
diff --git a/newtab/src/features/misc/modals/Modals.jsx b/newtab/src/features/misc/modals/Modals.jsx
index e362ca212..7fca609aa 100644
--- a/newtab/src/features/misc/modals/Modals.jsx
+++ b/newtab/src/features/misc/modals/Modals.jsx
@@ -1,5 +1,6 @@
import { useState, useEffect, useRef } from 'react';
import Modal from 'react-modal';
+import { pageElement } from 'utils/pageElement';
import { MainModal } from 'components/Elements';
import Navbar from '../../navbar/Navbar';
@@ -63,7 +64,7 @@ const Modals = () => {
isOpen={mainModal}
className="Modal mainModal"
overlayClassName="Overlay"
- ariaHideApp={false}
+ appElement={pageElement()}
>
<MainModal modalClose={() => toggleMainModal(false)} deepLinkData={deepLinkData} />
</Modal>
diff --git a/newtab/src/features/misc/sections/Advanced.jsx b/newtab/src/features/misc/sections/Advanced.jsx
index 15495226e..dc422e39c 100644
--- a/newtab/src/features/misc/sections/Advanced.jsx
+++ b/newtab/src/features/misc/sections/Advanced.jsx
@@ -1,6 +1,7 @@
import variables from 'config/variables';
import { useState } from 'react';
import Modal from 'react-modal';
+import { pageElement } from 'utils/pageElement';
import {
MdUpload as ImportIcon,
MdDownload as ExportIcon,
@@ -103,7 +104,8 @@ function AdvancedOptions({ currentSubSection, onSubSectionChange, sectionName })
isOpen={resetModal}
className="Modal resetmodal mainModal"
overlayClassName="Overlay resetoverlay"
- ariaHideApp={false}
+ appElement={pageElement()}
+ aria={{ modal: true }}
>
<ResetModal modalClose={() => setResetModal(false)} />
</Modal>
diff --git a/newtab/src/features/navbar/options/AppsOptions.jsx b/newtab/src/features/navbar/options/AppsOptions.jsx
index c7c5658f5..a4181cd21 100644
--- a/newtab/src/features/navbar/options/AppsOptions.jsx
+++ b/newtab/src/features/navbar/options/AppsOptions.jsx
@@ -4,6 +4,7 @@ import { useState } from 'react';
import { useT } from 'contexts';
import Modal from 'react-modal';
+import { pageElement } from 'utils/pageElement';
import EventBus from 'utils/eventbus';
import { MdAddLink } from 'react-icons/md';
@@ -165,7 +166,8 @@ function AppsOptions({ appsEnabled }) {
isOpen={appsModalInfo.edit || appsModalInfo.newLink}
className="Modal resetmodal mainModal"
overlayClassName="Overlay resetoverlay"
- ariaHideApp={false}
+ appElement={pageElement()}
+ aria={{ modal: true }}
>
<AddModal
urlError={appsModalInfo.urlError}
diff --git a/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx b/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx
index 0038fa5a2..a1b018998 100644
--- a/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx
+++ b/newtab/src/features/quicklinks/options/QuickLinksOptions.jsx
@@ -6,6 +6,7 @@ import { Header, Row, Content, Action, PreferencesWrapper } from 'components/Lay
import { Checkbox, Dropdown } from 'components/Form/Settings';
import { Button } from 'components/Elements';
import Modal from 'react-modal';
+import { pageElement } from 'utils/pageElement';
import { AddModal } from 'components/Elements/AddModal';
import { SortableList } from './components';
@@ -313,7 +314,8 @@ const QuickLinksOptions = () => {
isOpen={showAddModal}
className="Modal resetmodal mainModal"
overlayClassName="Overlay resetoverlay"
- ariaHideApp={false}
+ appElement={pageElement()}
+ aria={{ modal: true }}
>
<AddModal
urlError={urlError}
diff --git a/newtab/src/utils/pageElement.js b/newtab/src/utils/pageElement.js
new file mode 100644
index 000000000..cc2cf965c
--- /dev/null
+++ b/newtab/src/utils/pageElement.js
@@ -0,0 +1,5 @@
+// The part of the page react-modal hides from assistive technology while a dialog is open:
+// everything except the toast container (which sits beside #center and has to stay readable).
+// Looked up on every render because #center is remounted when the profile is first set up.
+export const pageElement = () =>
+ (typeof document !== 'undefined' && document.getElementById('center')) || undefined;
diff --git a/src/chrome/newtab/assets/Settings-9hHATwdq.js b/src/chrome/newtab/assets/Settings-9hHATwdq.js
new file mode 100644
index 000000000..8a30b0ca0
--- /dev/null
+++ b/src/chrome/newtab/assets/Settings-9hHATwdq.js
@@ -0,0 +1,53 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-bn8Kdr1t.js","./index-7-Cak-QP.js","./index-C4nKw5hY.css"])))=>i.map(i=>d[i]);
+import{g as Qs,a as Ue,y as RA,v as d,s as qi,r as $i,E as hA,c as $n,b as or,d as E,j as i,B as vA,M as Ao,e as eo,f as to,h as ms,S as ot,R as m,i as vs,u as Ft,k as ro,D as no,l as Us,m as we,n as Aa,T as ea,q as Fs,o as ao,p as bs,t as ht,w as hn,x as wt,z as ys,A as pt,C as mA,F as KA,G as so,H as io,I as oo,J as lo,K as Dr,L as Es,N as lr,O as cr,P as wn,Q as rr,U as xs,V as Is,W as Hs,X as co,Y as Ss,Z as gr,_ as Ls,$ as ks,a0 as Ms,a1 as Ks,a2 as Ts,a3 as Ds,a4 as Os,a5 as go,a6 as Rs,a7 as ta,a8 as uo,a9 as Ns,aa as It,ab as Bo,ac as fo,ad as Ht,ae as ra,af as ho,ag as na,ah as wo,ai as po,aj as Co,ak as _s,al as Qo,am as mo,an as vo,ao as aa,ap as Uo,aq as Fo,ar as bo,as as yo,at as Eo,au as xo,av as Io,aw as Ho,ax as So,ay as Lo,az as ko,aA as Mo,aB as jn}from"./index-7-Cak-QP.js";const pn="wbBackgroundsBackup";async function Ko(){const A={};Object.keys(localStorage).forEach(n=>{A[n]=localStorage.getItem(n)});try{const n=await Qs(),a=n>0?await Ue():[];if(a.length!==n)throw new Error("uploaded backgrounds could not be read");A[pn]=a.map(({id:s,...o})=>o)}catch(n){return console.error("Could not include uploaded backgrounds in the backup:",n),RA(d.getMessage("toasts.error")),!1}const e=new Date,t=`webbrain_newtab_settings_backup_${`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}_${e.getHours().toString().padStart(2,"0")}-${e.getMinutes().toString().padStart(2,"0")}-${e.getSeconds().toString().padStart(2,"0")}`}.json`;return qi(A,t),d.stats.postEvent("tab","Settings exported"),!0}function Ct(A){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(A)}function Ge(A){let e=String(A??"").trim();if(!e)return null;const r=/^https?:\/\//i.exec(e);e=r?r[0].toLowerCase()+e.slice(r[0].length):`https://${e}`;try{if(!/^https?:$/.test(new URL(e).protocol))return null}catch{return null}return Ct(e)?e:null}async function To(A,e=!1){let r,t;try{const s=JSON.parse(A);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[pn]:r,...t}=s);const o=Go(t);if(o)throw new Error(`invalid settings: ${o}`);if(No(t),r!==void 0&&!Po(r))throw new Error(`invalid settings: ${pn} has an entry of the wrong shape`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Xo(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),e||d.stats.postEvent("tab","Settings imported"),$i?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const je=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),NA=A=>typeof A=="string",Do=A=>NA(A.key)&&A.key!==""||Number.isFinite(A.key),Oo=["time","greeting","date","quicklinks","message"],Gs=["applinks","quicklinks"],sa=A=>je(A)&&NA(A.name)&&NA(A.url)&&Ge(A.url)!==null&&Do(A),Ro={applinks:sa,backgroundExclude:NA,customBackground:A=>NA(A)&&Vn(A),customEvents:A=>je(A)&&NA(A.name)&&Number.isFinite(A.month)&&Number.isFinite(A.date),quicklinks:sa,messages:NA,order:A=>Oo.includes(A),todo:A=>je(A)&&NA(A.value)};function No(A){for(const e of Gs)e in A&&(A[e]=JSON.stringify(JSON.parse(A[e]).map(r=>({...r,url:Ge(r.url)}))));return A}const _o=A=>NA(A)&&A.trim()!==""&&(typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("background",A));function Go(A){for(const[e,r]of Object.entries(A))if(r!==null&&typeof r=="object")return`${e} is not a plain value`;if("firstRun"in A&&(A.firstRun===null||String(A.firstRun)===""))return"firstRun is empty";for(const[e,r]of Object.entries(Ro)){if(!(e in A)||e==="customBackground"&&(A[e]===""||A[e]==="null"))continue;let t;try{t=JSON.parse(A[e])}catch{return`${e} is not valid JSON`}if(!Array.isArray(t))return`${e} is not a list`;if(!t.every(r))return`${e} has an entry of the wrong shape`;if(e==="order"&&new Set(t).size!==t.length)return"order lists a widget more than once";if(Gs.includes(e)&&new Set(t.map(n=>String(n.key))).size!==t.length)return`${e} has entries that share a key`}if("timezone"in A&&A.timezone!=="auto")try{new Intl.DateTimeFormat("en",{timeZone:A.timezone})}catch{return"timezone is not a known time zone"}if("favourite"in A&&A.favourite!=="null")try{const e=JSON.parse(A.favourite);if(e!==null&&!je(e))return"favourite is not an object";if(e!==null){if(!(e.type==="random_colour"||e.type==="random_gradient"?_o(e.url):Vn(e.url)))return"favourite has no usable url";if(!(Ae(e.credit,NA)&&Ae(e.colour,NA)&&Ae(e.blur_hash,NA)&&Ae(e.hidden,a=>typeof a=="boolean")))return"favourite has malformed display details"}}catch{return"favourite is not valid JSON"}return null}function jo(A,e){if(/;base64$/i.test(A)){const r=e.replace(/\s+/g,"");return r.length%4===0&&/^[A-Za-z0-9+/]+={0,2}$/.test(r)}try{return decodeURIComponent(e),!0}catch{return!1}}const Vn=A=>{if(typeof A!="string")return!1;const e=/^data:(image|video)\/[^;,]+((?:;[^,]*)?),([\s\S]+)$/i.exec(A);if(e)return jo(e[2],e[3]);try{return/^https?:$/.test(new URL(A).protocol)}catch{return!1}},Ae=(A,e)=>A==null||e(A),St=A=>typeof A=="number"&&Number.isFinite(A),Vo=A=>je(A)&&Vn(A.url)&&Ae(A.name,NA)&&Ae(A.folder,NA)&&Ae(A.blurHash,NA)&&Ae(A.fileSize,St)&&Ae(A.uploadDate,St)&&Ae(A.dimensions,e=>je(e)&&St(e.width)&&St(e.height)),Po=A=>Array.isArray(A)&&A.every(Vo),ia=({id:A,...e})=>e;async function Xo(A){const e=A.map(ia),r=await Qs(),t=r>0?(await Ue()).map(ia):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await $n();for(const a of t)await or(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await $n();for(const a of e)await or(a)}catch(a){throw await n(),a}return n}function TA(A){const[e,r]=E.useState(localStorage.getItem(A.setting)==="true");E.useEffect(()=>{r(localStorage.getItem(A.setting)==="true")},[A.setting]);const t=()=>{const s=localStorage.getItem(A.setting)==="true";if(localStorage.setItem(A.setting,!s),r(!s),d.stats.postEvent("setting",`${A.name} ${e===!0?"enabled":"disabled"}`),hA.emit("toggle",A.setting),A.element&&!document.querySelector(A.element)){ms();return}hA.emit("refresh",A.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:e?i.jsx(Ao,{}):i.jsx(eo,{}),label:e?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(A.title)}`,"_blank"),icon:i.jsx(to,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:A.secondaryTitle||A.title}),i.jsxs("div",{className:"headerActions",children:[A.visibilityToggle&&i.jsx(n,{}),A.report!==!1&&i.jsx(a,{}),A.children]})]})}function rA(A){const e=`${A.final?"settingsRow settingsNoBorder":"settingsRow"} ${A.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:e,children:A.children})}function nA(A){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A.title}),i.jsx("span",{className:"subtitle",children:A.subtitle})]})}function cA(A){return i.jsx("div",{className:"action",children:A.children})}const Jo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Wo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Yo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],lt={zoom:Jo,toast:Wo,background:Yo},bt=({children:A,...e})=>{const[r,t]=E.useState(localStorage.getItem(e.setting)==="true");return E.useEffect(()=>{const n=a=>{a===e.setting&&t(localStorage.getItem(e.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[e.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",inert:!r,children:[e.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(ot,{name:e.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:lt.zoom,category:e.zoomCategory||e.category})})]}),A]})};function Pn({title:A,subtitle:e,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:e})]})]}),i.jsx("div",{className:"action",onClick:m.Children.count(n)===0?void 0:a=>a.stopPropagation(),children:m.Children.count(n)===0?i.jsx(vs,{}):n})]})}function Zo({label:A,currentTab:e,onClick:r,navbarTab:t}){const n=Ft(),[a,s]=E.useState(!0);E.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=ro(A,{getMessage:n}),l=no.some(p=>n(p)===A),B=`${t?"navbar-item":"tab-list-item"}${e===A?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return A===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(A),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:A})]}),l&&i.jsx("hr",{})]})}const zo=E.memo(Zo),qo=({isVisible:A,onHide:e})=>A?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("button",{type:"button",className:"closeModal",onClick:e,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(Us,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(we,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class $o extends E.PureComponent{constructor(e){super(e),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(e){return console.error(e),{error:!0,errorData:e}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Aa,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx(Aa,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(we,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const Al=({children:A,navbar:e=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Ft(),g=(()=>{if(a?.section&&o){const h=o.find(b=>b.name===a.section);if(h)return{label:l(h.label),name:h.name}}return{label:A[0]?.props.label,name:A[0]?.props.name}})(),[B,u]=E.useState(g.label),[p,Q]=E.useState(g.name),[C,x]=E.useState(localStorage.getItem("showReminder")==="true"),U=E.useRef(null),y=E.useRef(null),S=(h,b)=>{b!==p&&d.stats.postEvent("tab",`Opened ${b}`),u(h),Q(b),U.current&&(U.current.scrollTop=0),t&&t(h,b)};E.useEffect(()=>{t&&B&&t(B,p,{fromHistory:!0})},[]),E.useEffect(()=>{if(o&&p){const h=o.find(b=>b.name===p);if(h){const b=l(h.label);u(b)}}},[l,o,p]),E.useEffect(()=>{if(!(!s||y.current===s)){if(s?.type==="settings-default"){y.current=s;const h=A[0]?.props;h&&(u(h.label),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(h.label,h.name,{fromHistory:!0}));return}if(s?.type==="settings-section"&&o){const h=o.find(b=>b.name===s.data);if(h){y.current=s;const b=l(h.label);u(b),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(b,h.name,{fromHistory:!0})}}}},[s,o,l]),E.useEffect(()=>{n&&(u(A[0]?.props.label),Q(A[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(A[0]?.props.label,A[0]?.props.name))},[n]),E.useEffect(()=>{const h=()=>x(!0);return hA.on("reminder",h),()=>hA.off("reminder",h)},[]);const H=()=>{localStorage.setItem("showReminder","false"),x(!1)},L=r===ea.SETTINGS||r===ea.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[L?i.jsxs("div",{className:"modalSidebar",children:[A.map((h,b)=>i.jsx(zo,{currentTab:B,label:h.props.label,onClick:k=>S(k,h.props.name),navbarTab:e},b)),i.jsx(qo,{isVisible:C,onHide:H})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:A.map((h,b)=>h.props.label!==B?null:i.jsx($o,{children:h.props.children},`error-boundary-${b}`))})]})};async function ur(A){const e=String(A??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(e)?e:`https://${e}`).hostname.replace(/^www\./i,"")||e}catch{return e}}const el=({item:A,deleteLink:e,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>e(A.key,C),href:A.url,target:g,rel:B,draggable:!1,children:A.name});const p=A.icon||Fs(A.url,A.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,A.key),onDragOver:C=>a&&a(C,A.key),onDrop:C=>s&&s(C,A.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(ao,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:A.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:A.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:A.url,children:A.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(A),icon:i.jsx(bs,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>e(A.key,C),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function tl({appsEnabled:A}){const e=Ft(),[r,t]=E.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=Ge(c),!c)return t(u=>({...u,urlError:e("widgets.quicklinks.url_error")}));if(g.length>0&&Ct(g)===!1)return t(u=>({...u,iconError:e("widgets.quicklinks.icon_error")}));B.push({name:l||await ur(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=Ge(g),!g)return t(Q=>({...Q,urlError:e("widgets.quicklinks.url_error")}));if(B.length>0&&Ct(B)===!1)return t(Q=>({...Q,iconError:e("widgets.quicklinks.icon_error")}));p.name=c||await ur(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!A,children:[i.jsx(nA,{title:e("widgets.navbar.apps.title"),subtitle:e("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(hn,{}),label:e("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(el,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(ys,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function rl(){const A=Ft(),[e,r]=E.useState(localStorage.getItem("refresh")==="true"),[t,n]=E.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:A("modals.main.settings.additional_settings"),subtitle:A("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:A(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=E.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!e):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:A(u)})]})},g=[{icon:i.jsx(so,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(io,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(oo,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(we,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(lo,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:A("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!e,children:[i.jsx(nA,{title:A(`${a}.refresh`),subtitle:A("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:A("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:A("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:A(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(tl,{appsEnabled:t})]})}const nl=E.memo(rl),oa=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],al=A=>{const[e,r,t]=String(A).split("-").map(Number);return e&&r&&t?new Date(e,r-1,t):new Date},sl=A=>`${A.getFullYear()}-${String(A.getMonth()+1).padStart(2,"0")}-${String(A.getDate()).padStart(2,"0")}`,il=({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=E.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=E.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=E.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const b=h.target.value?al(h.target.value):new Date;localStorage.setItem("birthday",b),s(b)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],b={id:"widgets.greeting.halloween",name:"",month:1,date:1},k=[...h,b];h.push(b),localStorage.setItem("customEvents",JSON.stringify(h)),n(k)},Q=h=>{const b=t.filter((k,M)=>M!==h);localStorage.setItem("customEvents",JSON.stringify(b)),n(b)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(oa)),n(oa),RA(d.getMessage("toasts.reset"))},x=(h,b)=>{n(M=>{const R=[...M];return R[h]=b,R});const k=JSON.parse(localStorage.getItem("customEvents")||"[]");k[h]=b,localStorage.setItem("customEvents",JSON.stringify(k))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(cr,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(Es,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:sl(a),required:!0})]})]})]}),S=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(we,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(lr,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,b)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Dr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:k=>{const M={...h,name:k.target.value};x(b,M)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=31){const R={...h,date:M};x(b,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=12){const R={...h,month:M};x(b,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(b),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},b))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Dr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(lr,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),H=A==="events";let L;return H?L=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>e(null,r),report:!1}):L=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[L,H?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),S()]}):i.jsxs(bt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Pn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>e("events",r),icon:i.jsx(Dr,{})})]})]})},ol=()=>{const[A,e]=E.useState(localStorage.getItem("timeType")||"digital"),[r,t]=E.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=E.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=E.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:A==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>e(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(wn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),onKeyDown:rr(()=>c("hourColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),onKeyDown:rr(()=>c("minuteColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),onKeyDown:rr(()=>c("secondColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(A){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(bt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function ll(){const[A,e]=E.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(bt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{e(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:A==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[A==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const cl=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(xs,{})}),gl=({value:A,enabled:e,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=Is({id:A.key,disabled:!e}),g={transform:Hs.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||Fs(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${e?"":"disabled"}`,role:"listitem",children:[i.jsx(cl,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(A),alt:A.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:A.name}),i.jsx("div",{className:"quicklink-url",children:A.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{e&&(u.stopPropagation(),r(A))},title:"Edit",disabled:!e,"aria-disabled":!e,children:[i.jsx(bs,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{e&&(u.stopPropagation(),t(A.key,u))},title:"Remove",disabled:!e,"aria-disabled":!e,children:[i.jsx(co,{}),i.jsx("span",{children:"Remove"})]})]})]})},ul=({items:A,enabled:e,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Ss(gr(Ms,{activationConstraint:{distance:6}}),gr(ks,{coordinateGetter:Ls}));return i.jsx(Ks,{sensors:a,collisionDetection:Ts,onDragEnd:r,children:i.jsx(Ds,{items:A.map(s=>s.key),strategy:Os,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:A.map(s=>i.jsx(gl,{value:s,enabled:e,startEditLink:t,deleteLink:n},s.key))})})})},Ye=()=>{try{const A=localStorage.getItem("quicklinks");if(!A)return[];const e=JSON.parse(A);return Array.isArray(e)?e:[]}catch(A){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",A),[]}},Bl=()=>{const[A,e]=E.useState(Ye()),[r,t]=E.useState(!1),[n,a]=E.useState(""),[s,o]=E.useState(""),[l,c]=E.useState(!1),[g,B]=E.useState(""),[u,p]=E.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=E.useRef(),C=E.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Ye().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Ye();if(O=Ge(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&Ct(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await ur(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},S=R=>{c(!0),B(R),t(!0)},H=async(R,O,Z,D)=>{const z=Ye(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=Ge(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&Ct(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await ur(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),e(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},L=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=A.findIndex(tA=>tA.key===O.id),z=A.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Rs(A,D,z);C.current=!0,e(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};E.useEffect(()=>{x(u)},[u]),E.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Ye(),z=A||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),e(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,A]);const h="modals.main.settings.sections.quicklinks",b=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),k=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),M=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(hn,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(bt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(b,{}),i.jsx(k,{}),i.jsx(M,{}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(go,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(hn,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(ul,{items:A,enabled:u,onDragEnd:L,startEditLink:R=>S(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(ys,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>H(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},dl=()=>{const[A,e]=E.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...A];a==="add"?o.push(""):o.splice(s,1),e(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...A];c[o]=l,e(c),localStorage.setItem("messages",JSON.stringify(c)),ms()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(bt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(lr,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:A.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(ta,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(uo,{value:A[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ta,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(lr,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Or={exports:{}},la;function fl(){return la||(la=1,(function(A){(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,s=e.min,o=e.max,l=e.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,X,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=e.pow((v+.055)/1.055,2.4),w<=.03928?X=w/12.92:X=e.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=e.pow((K+.055)/1.055,2.4),.2126*W+.7152*X+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(H,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,X=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(P(f.r)&&P(f.g)&&P(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):P(f.h)&&P(f.s)&&P(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):P(f.h)&&P(f.s)&&P(f.l)&&(K=F(f.s),X=F(f.l),v=p(f.h,K,X),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=(K+W)/2;if(K==W)X=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,l:fA}}function p(f,v,w){var K,W,X;f=q(f,360),v=q(v,100),w=q(w,100);function oA(VA,We,ZA){return ZA<0&&(ZA+=1),ZA>1&&(ZA-=1),ZA<1/6?VA+(We-VA)*6*ZA:ZA<1/2?We:ZA<2/3?VA+(We-VA)*(2/3-ZA)*6:VA}if(v===0)K=W=X=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),X=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:X*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)X=0;else{switch(K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=e.floor(f),W=f-K,X=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,VA=[w,oA,X,X,fA,w][UA],We=[fA,w,w,oA,X,X][UA],ZA=[X,X,fA,w,w,oA][UA];return{r:VA*255,g:We*255,b:ZA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var X=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)&&X[3].charAt(0)==X[3].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0)+X[3].charAt(0):X.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function H(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function L(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function b(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function k(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function M(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,X=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,X.push(c(K));return X}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,X=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:X})),X=(X+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),X=w/100,oA={r:(W.r-K.r)*X+K.r,g:(W.g-K.g)*X+K.g,b:(W.b-K.b)*X+K.b,a:(W.a-K.a)*X+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(e.max(w.getLuminance(),K.getLuminance())+.05)/(e.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,X;switch(X=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":X=K>=4.5;break;case"AAlarge":X=K>=3;break;case"AAAsmall":X=K>=7;break}return X},c.mostReadable=function(f,v,w){var K=null,W=0,X,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var VA=0;VA<v.length;VA++)X=c.readability(f,v[VA]),X>W&&(W=X,K=c(v[VA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){I(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),e.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function I(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return e.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function P(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}A.exports?A.exports=c:window.tinycolor=c})(Math)})(Or)),Or.exports}var hl=fl();const SA=Ns(hl);var Re=function(){return Re=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Re.apply(this,arguments)},wl=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},pl=function(A){A===void 0&&(A="");var e={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(I){var j=new Error(A+": "+I);throw j}function t(I){A=A.substr(I)}function n(I){var j=/^[\n\r\t\s]+/.exec(A);j&&t(j[0].length);var _=I.exec(A);return _&&t(_[0].length),_}function a(I){var j=I(),_=[];if(j)for(_.push(j);n(e.comma);)j=I(),j?_.push(j):r("One extra comma");return _}function s(I,j,_){var F=n(j);if(F)return{type:I,value:F[_]}}function o(){var I=s("hex",e.hexColor,1);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(I){var j=Fe(I?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(I,j){var _=n(I);if(_){n(e.startCall)||r("Missing (");var F=j(_);return n(e.endCall)||r("Missing )"),F}}function g(){return c(e.hslColor,dA)}function B(){return c(e.rgbaColor,l)}function u(){return c(e.rgbColor,q)}function p(){var I=s("literal",e.literalColor,0);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(e.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var I,j=C();return j||r("Expected color definition"),j.left=parseInt((I=lA())===null||I===void 0?void 0:I.value),j}function U(I,j,_){return c(j,function(){var F=_();return F&&(n(e.comma)||r("Missing comma before color stops")),{type:I,orientation:F,colorStops:a(x)}})}function y(){return h()||b()}function S(){return U("linear-gradient",e.linearGradient,y)||U("repeating-linear-gradient",e.repeatingLinearGradient,y)||U("radial-gradient",e.radialGradient,k)||U("repeating-radial-gradient",e.repeatingRadialGradient,k)}function H(){return a(S)}function L(){var I,j=H();A.length>0&&r("Invalid input not EOF");var _=j[0],F=(I=_?.colorStops)===null||I===void 0?void 0:I.filter(function(T){return Fe(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,P){return P===0?yr(G):yt(G)};return Re(Re({},_),{colorStops:_.colorStops.map(function(G,P){return Re(Re({},G),{value:T(G,P)})})})};return N()}function h(){return s("directional",e.sideOrCorner,1)}function b(){return s("angular",e.angleValue,1)}function k(){var I,j=M(),_;return j&&(I=[],I.push(j),_=A,n(e.comma)&&(j=M(),j?I.push(j):A=_)),I}function M(){var I=O()||Z();if(I)I.at=z();else{var j=D();if(j){I=j;var _=z();_&&(I.at=_)}else{var F=eA();F&&(I={type:"default-radial",at:F})}}return I}function R(){return s("px",e.pixelValue,1)||s("em",e.emValue,1)}function O(){var I=s("shape",/^(circle)/i,0);return I&&(I.style=R()||D()),I}function Z(){var I=s("shape",/^(ellipse)/i,0);return I&&(I.style=lA()||D()),I}function D(){return s("extent-keyword",e.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var I=eA();return I||r("Missing positioning value"),I}}function eA(){var I=tA();if(I.x||I.y)return{type:"position",value:I}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(e.number)[1]}var dA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},aA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},q=function(I){var j=Fe(I?.[0]),_=n(e.spacedRgbColor),F=_||wl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],P=F[4],$=P===void 0?1:P;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",e.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",e.positionKeywords,1)}return L()},yt=function(A){return A.value.toLowerCase()},yr=function(A){return A.value.toUpperCase()},Cl=function(A,e,r){var t=A?.includes("gradient");if(t){var n=A?.includes("conic"),a=n?r:A;n&&console.log("Sorry we cant handle conic gradients yet");var s=pl(a);return s?.colorStops}else{var a=A||e;return[{value:a}]}},Ve=function(A,e,r){return isNaN(A)||A<e?e:A>r?r:A},re=function(A){return Math.round(A)},Br=function(){return Br=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Br.apply(this,arguments)},js=function(A){var e=A.target.parentNode.getBoundingClientRect(),r=A.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:e?.x+t,offsetTop:e?.y,clientWidth:e?.width,clientHeight:e?.height}};function Pe(A,e){var r=js(A),t=r.offsetLeft,n=r.clientWidth,a=A.clientX-t-e/2,s=n-18,o=Ve(a,0,s);return Math.round(o/(s/100))}function Ql(A,e,r,t,n){var a=A*r-n/2,s=(100-e)/100*t-n/2;return[a,s]}var ml=function(A){if(A.clientX)return{clientX:A.clientX,clientY:A.clientY};var e=A.touches[0]||{};return{clientX:e.clientX,clientY:e.clientY}};function vl(A,e){var r=js(A),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=ml(A),l=o.clientX,c=o.clientY,g=function(){var u=l-t-e/2;return Ve(u,-9,a-10)},B=function(){var u=c-n-e/2;return Ve(u,-9,s-10)};return[g(),B()]}var Fe=function(A){var e;return A?.[0]===((e=A?.[0])===null||e===void 0?void 0:e.toUpperCase())},Vs=function(A){if(A==="to top")return 0;if(A==="to bottom")return 180;if(A==="to left")return 270;if(A==="to right")return 90;if(A==="to top right")return 45;if(A==="to bottom right")return 135;if(A==="to bottom left")return 225;if(A==="to top left")return 315;var e=A||0;return parseInt(e)},Ul=function(A){var e,r,t,n,a;if(typeof A=="string")return A;if(!((e=A?.type)===null||e===void 0)&&e.includes("gradient")){var s=(r=A?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=A?.type,c=Vs((n=A?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=A?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},Fl=function(A,e){var r=A?.map(function(a,s){return Br(Br({},a),{index:s})}),t=r?.find(function(a){return Fe(a.value)}),n=t||r[0];return{currentColor:n?.value||e,selectedColor:n?.index||0,currentLeft:n?.left||0}},bl=function(A){var e,r=A?.split(",")[0],t=(e=r?.split("(")[1])===null||e===void 0?void 0:e.replace("deg","");return Vs(t)},yl=function(A){var e=A?.includes("gradient"),r=A?.split("(")[0],t=bl(A),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:e,gradientType:r}},DA=function(){return DA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},DA.apply(this,arguments)},El=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Ps=E.createContext(null);function xl(A){var e,r,t,n,a=A.value,s=A.children,o=A.onChange,l=A.isDarkMode,c=A.squareWidth,g=A.hideOpacity,B=A.showHexAlpha,u=A.squareHeight,p=A.passedConfig,Q=A.defaultStyles,C=A.pickerIdSuffix,x={barSize:(e=p.barSize)!==null&&e!==void 0?e:Lt.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:Lt.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:Lt.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:Lt.defaultGradient},U=Cl(a,x.defaultColor,x.defaultGradient),y=yl(a),S=y.degrees,H=y.degreeStr,L=y.isGradient,h=y.gradientType,b=Fl(U,x.defaultGradient),k=b.currentColor,M=b.selectedColor,R=b.currentLeft,O=E.useState("rgb"),Z=O[0],D=O[1],z=E.useState({}),eA=z[0],tA=z[1],AA=SA(k),dA=AA.toRgb(),aA=AA.toHsv(),q=E.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];E.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[k]);var I=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),P=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(H,", ").concat(P.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var P=U?.filter(function(pA){return!Fe(pA.value)}),$=El([{value:T.toUpperCase(),left:G??R}],P,!0);I($)},_=function(T){L?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(P,$){return DA(DA({},P),{value:$===M-1?yr(P):yt(P)})}),G=T?.filter(function(P,$){return $!==M});I(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:S,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:L,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:k,selectedColor:M,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:I};return m.createElement(Ps.Provider,{value:N},s)}function BA(){var A=E.useContext(Ps);if(!A)throw new Error("usePicker has to be used within <PickerContext.Provider>");return A}var Lt={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},Il=function(A,e){E.useEffect(function(){var r,t=(r=A?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,e,14);for(var n=t.createLinearGradient(0,0,e,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[A,e])},Hl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Sl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Ll=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:e,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[A,e,r,t])},dr=function(){return dr=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},dr.apply(this,arguments)},kl=function(){var A=E.useRef(null),e=BA(),r=e.config,t=e.handleChange,n=e.squareWidth,a=e.hc,s=e.setHc,o=e.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=r.barSize;Il(A,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Pe(U,B)*3.6,S=SA({h:y,s:a?.s,v:a?.v}),H=S.toRgb(),L=H.r,h=H.g,b=H.b;t("rgba(".concat(L,", ").concat(h,", ").concat(b,", ").concat(a.a,")")),s(dr(dr({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return E.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:A,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function Ml(A,e,r){var t=0,n=0,a=0,s=0;if(A===null||e===null||r===null||isNaN(A)||isNaN(e)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(A<0||e<0||r<0||A>255||e>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(A===0&&e===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-A/255,n=1-e/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var Kl=function(A){var e=A.c,r=A.m,t=A.y,n=A.k,a=255*(1-e)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},Tl=function(A){return typeof A!="number"?"FF":A<0?"00":A>1?"FF":Math.round(A*255).toString(16).padStart(2,"0").toUpperCase()},YA=function(){return YA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},YA.apply(this,arguments)},GA=function(A){var e=A.label,r=A.value,t=A.callback,n=A.max,a=n===void 0?100:n,s=A.hideOpacity,o=A.defaultStyles,l=A.pickerIdSuffix,c=E.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";E.useEffect(function(){B(r)},[r]);var p=function(Q){var C=Ve(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(e,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:YA({},o.rbgcpInput),id:"rbgcp-".concat(e,"-input").concat(l)}),m.createElement("div",{style:YA({},o.rbgcpInputLabel)},e))},Dl=function(A){var e=A.opacity,r=A.tinyColor,t=A.showHexAlpha,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=E.useState(""),l=o[0],c=o[1],g=r.toHex(),B=E.useState(g),u=B[0],p=B[1];E.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(H){var L=SA(H.target.value);if(p(H.target.value),L.isValid()){var h=L.toRgb(),b=h.r,k=h.g,M=h.b,R="rgba(".concat(b,", ").concat(k,", ").concat(M,", ").concat(e,")");n(R)}},U=t?"".concat(u).concat(Tl(e)):u,y=t?"HEXA":"HEX",S=t?88:76;return m.createElement("div",{style:{width:S,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(H){return x(H)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:YA(YA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:YA({},a.rbgcpInputLabel)},y))},Ol=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"R",max:255,value:e?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:e?.g,b:e?.b})}}),m.createElement(GA,{label:"G",max:255,value:e?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:o,b:e?.b})}}),m.createElement(GA,{label:"B",max:255,value:e?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:e?.g,b:o})}}))},Rl=function(A){var e=A.hc,r=A.setHc,t=A.tinyColor,n=A.hideOpacity,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,S=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(S,", ").concat(e?.a,")")),r(YA(YA({},e),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(GA,{label:"S",value:re(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:p,l:g})}}),m.createElement(GA,{label:"L",value:re(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:c,l:p})}}))},Nl=function(A){var e=A.hc,r=A.setHc,t=A.hideOpacity,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(e?.a,")")),r(YA(YA({},e),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,e?.s,e?.v)}}),m.createElement(GA,{label:"S",hideOpacity:t,value:re(e?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:c,v:e?.v})}}),m.createElement(GA,{label:"V",hideOpacity:t,value:re(e?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:e?.s,v:c})}}))},_l=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=Ml(e?.r,e?.g,e?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=Kl(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"C",value:re(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(GA,{label:"M",value:re(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(GA,{label:"Y",value:re(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(GA,{label:"K",value:re(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},Gl=function(){var A=BA(),e=A.hc,r=A.setHc,t=A.inputType,n=A.tinyColor,a=A.hideOpacity,s=A.showHexAlpha,o=A.handleChange,l=A.defaultStyles,c=A.pickerIdSuffix;return m.createElement("div",{style:YA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Dl,{opacity:e?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(Rl,{hc:e,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Ol,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(Nl,{hc:e,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(_l,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(GA,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(e?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(e?.r,", ").concat(e?.g,", ").concat(e?.b,", ").concat(g/100,")"))}}))},jl=function(A,e,r,t){E.useEffect(function(){if(A.current){var n=A.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(e,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[A,e,r,t])},Rr,ca;function Vl(){if(ca)return Rr;ca=1;var A="Expected a function",e=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof It=="object"&&It&&It.Object===Object&&It,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,b,k){var M,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(A);b=L(b)||0,y(k)&&(tA=!!k.leading,AA="maxWait"in k,O=AA?p(L(k.maxWait)||0,b):O,dA="trailing"in k?!!k.trailing:dA);function aA(T){var G=M,P=R;return M=R=void 0,eA=T,Z=h.apply(P,G),Z}function q(T){return eA=T,D=setTimeout(I,b),tA?aA(T):Z}function lA(T){var G=T-z,P=T-eA,$=b-G;return AA?Q($,O-P):$}function sA(T){var G=T-z,P=T-eA;return z===void 0||G>=b||G<0||AA&&P>=O}function I(){var T=C();if(sA(T))return j(T);D=setTimeout(I,lA(T))}function j(T){return D=void 0,dA&&M?aA(T):(M=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,M=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(M=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(I,b),aA(z)}return D===void 0&&(D=setTimeout(I,b)),Z}return N.cancel=_,N.flush=F,N}function U(h,b,k){var M=!0,R=!0;if(typeof h!="function")throw new TypeError(A);return y(k)&&(M="leading"in k?!!k.leading:M,R="trailing"in k?!!k.trailing:R),x(h,b,{leading:M,maxWait:b,trailing:R})}function y(h){var b=typeof h;return!!h&&(b=="object"||b=="function")}function S(h){return!!h&&typeof h=="object"}function H(h){return typeof h=="symbol"||S(h)&&u.call(h)==r}function L(h){if(typeof h=="number")return h;if(H(h))return e;if(y(h)){var b=typeof h.valueOf=="function"?h.valueOf():h;h=y(b)?b+"":b}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var k=a.test(h);return k||s.test(h)?o(h.slice(2),k?2:8):n.test(h)?e:+h}return Rr=U,Rr}var Pl=Vl();const Xl=Ns(Pl);var be=function(){return be=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},be.apply(this,arguments)},Jl=function(){var A,e,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useRef(null),C=Ql(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=E.useState({x,y:U}),S=y[0],H=y[1];jl(Q,t?.h,a,s),E.useEffect(function(){u||H({x:t?.v===0?S.x:x,y:U})},[x,U]);var L=function(O){var Z=Xl(function(){var D=vl(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;H({x:aA===0?S?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},b=function(O){u&&L(O)},k=function(O){u||L(O)},M=function(){p(!0)},R=function(O){p(!0),L(O)};return E.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return b(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:be(be(be({},l.rbgcpHandle),{transform:"translate(".concat((A=S?.x)!==null&&A!==void 0?A:0,"px, ").concat((e=S?.y)!==null&&e!==void 0?e:0,"px)")}),u?{transition:""}:{}),onMouseDown:M,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:be(be({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return k(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ue=function(){return ue=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ue.apply(this,arguments)},Wl=function(){var A=BA(),e=A.config,r=A.hc,t=r===void 0?{}:r,n=A.squareWidth,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=e.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var b=Pe(h,C)/100,k="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(b,")");a(k)},S=function(h){c&&y(h)},H=function(h){c||y(h)},L=n-18;return E.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return S(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ue(ue({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ue(ue({},s.rbgcpHandle),{left:L*t?.a,top:-2})}),m.createElement("div",{style:ue(ue({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return H(h)}}))},Yl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Zl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],zl=function(A){var e=A.presets,r=e===void 0?[]:e,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Zl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Y.apply(this,arguments)},ql=function(){var A=BA().defaultStyles,e={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},e),A.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},$l=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},Ac=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},ec=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},tc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},rc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},nc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},ac=function(){var A=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},sc=function(A){var e,r=A.children,t="id"+Math.random().toString(16).slice(2),n=E.useRef((e=document.getElementById(t))!==null&&e!==void 0?e:document.createElement("div")),a=E.useState(!n.current.parentElement)[0];return E.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),Bo.createPortal(r,n.current)};const ic=E.memo(sc);var Cn=function(A,e){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},Cn(A,e)};function qA(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Cn(A,e);function r(){this.constructor=A}A.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Qn=function(){return Qn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qn.apply(this,arguments)};function OA(A,e,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(A,[])).next())})}function kA(A,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(A,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function kt(A,e,r){if(arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||e)}var le=(function(){function A(e,r,t,n){this.left=e,this.top=r,this.width=t,this.height=n}return A.prototype.add=function(e,r,t,n){return new A(this.left+e,this.top+r,this.width+t,this.height+n)},A.fromClientRect=function(e,r){return new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},A.fromDOMRectList=function(e,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),Er=function(A,e){return le.fromClientRect(A,e.getBoundingClientRect())},oc=function(A){var e=A.body,r=A.documentElement;if(!e||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),n=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new le(0,0,t,n)},xr=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},bA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mt=0;Mt<ga.length;Mt++)lc[ga.charCodeAt(Mt)]=Mt;var ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kt=0;Kt<ua.length;Kt++)et[ua.charCodeAt(Kt)]=Kt;var cc=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=et[A.charCodeAt(t)],s=et[A.charCodeAt(t+1)],o=et[A.charCodeAt(t+2)],l=et[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},gc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},uc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},Ie=5,Xn=11,Nr=2,Bc=Xn-Ie,Xs=65536>>Ie,dc=1<<Ie,_r=dc-1,fc=1024>>Ie,hc=Xs+fc,wc=hc,pc=32,Cc=wc+pc,Qc=65536>>Xn,mc=1<<Bc,vc=mc-1,Ba=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},Uc=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},Fc=function(A,e){var r=cc(A),t=Array.isArray(r)?uc(r):new Uint32Array(r),n=Array.isArray(r)?gc(r):new Uint16Array(r),a=24,s=Ba(n,a/2,t[4]/2),o=t[5]===2?Ba(n,(a+t[4])/2):Uc(t,Math.ceil((a+t[4])/4));return new bc(t[0],t[1],t[2],t[3],s,o)},bc=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>Ie],r=(r<<Nr)+(e&_r),this.data[r];if(e<=65535)return r=this.index[Xs+(e-55296>>Ie)],r=(r<<Nr)+(e&_r),this.data[r];if(e<this.highStart)return r=Cc-Qc+(e>>Xn),r=this.index[r],r+=e>>Ie&vc,r=this.index[r],r=(r<<Nr)+(e&_r),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Tt=0;Tt<da.length;Tt++)yc[da.charCodeAt(Tt)]=Tt;var Ec="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",fa=50,xc=1,Js=2,Ws=3,Ic=4,Hc=5,ha=7,Ys=8,wa=9,de=10,mn=11,pa=12,vn=13,Sc=14,tt=15,Un=16,Dt=17,Ze=18,Lc=19,Ca=20,Fn=21,ze=22,Gr=23,Se=24,jA=25,rt=26,nt=27,Le=28,kc=29,ye=30,Mc=31,Ot=32,Rt=33,bn=34,yn=35,En=36,Qt=37,xn=38,nr=39,ar=40,jr=41,Zs=42,Kc=43,Tc=[9001,65288],zs="!",iA="×",Nt="÷",In=Fc(Ec),se=[ye,En],Hn=[xc,Js,Ws,Hc],qs=[de,Ys],Qa=[nt,rt],Dc=Hn.concat(qs),ma=[xn,nr,ar,bn,yn],Oc=[tt,vn],Rc=function(A,e){e===void 0&&(e="strict");var r=[],t=[],n=[];return A.forEach(function(a,s){var o=In.get(a);if(o>fa?(n.push(!0),o-=fa):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(Un);if(o===Ic||o===mn){if(s===0)return t.push(s),r.push(ye);var l=r[s-1];return Dc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(ye))}if(t.push(s),o===Mc)return r.push(e==="strict"?Fn:Qt);if(o===Zs||o===kc)return r.push(ye);if(o===Kc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(Qt):r.push(ye);r.push(o)}),[t,r,n]},Vr=function(A,e,r,t){var n=t[r];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===e)return!0;if(s!==de)break}if(n===de)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(A)?A.indexOf(o)!==-1:A===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===e)return!0;if(s!==de)break}if(o!==de)break}return!1},va=function(A,e){for(var r=A;r>=0;){var t=e[r];if(t===de)r--;else return t}return 0},Nc=function(A,e,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=e[a],c=s>=0?e[s]:0,g=e[o];if(l===Js&&g===Ws)return iA;if(Hn.indexOf(l)!==-1)return zs;if(Hn.indexOf(g)!==-1||qs.indexOf(g)!==-1)return iA;if(va(a,e)===Ys)return Nt;if(In.get(A[a])===mn||(l===Ot||l===Rt)&&In.get(A[o])===mn||l===ha||g===ha||l===wa||[de,vn,tt].indexOf(l)===-1&&g===wa||[Dt,Ze,Lc,Se,Le].indexOf(g)!==-1||va(a,e)===ze||Vr(Gr,ze,a,e)||Vr([Dt,Ze],Fn,a,e)||Vr(pa,pa,a,e))return iA;if(l===de)return Nt;if(l===Gr||g===Gr)return iA;if(g===Un||l===Un)return Nt;if([vn,tt,Fn].indexOf(g)!==-1||l===Sc||c===En&&Oc.indexOf(l)!==-1||l===Le&&g===En||g===Ca||se.indexOf(g)!==-1&&l===jA||se.indexOf(l)!==-1&&g===jA||l===nt&&[Qt,Ot,Rt].indexOf(g)!==-1||[Qt,Ot,Rt].indexOf(l)!==-1&&g===rt||se.indexOf(l)!==-1&&Qa.indexOf(g)!==-1||Qa.indexOf(l)!==-1&&se.indexOf(g)!==-1||[nt,rt].indexOf(l)!==-1&&(g===jA||[ze,tt].indexOf(g)!==-1&&e[o+1]===jA)||[ze,tt].indexOf(l)!==-1&&g===jA||l===jA&&[jA,Le,Se].indexOf(g)!==-1)return iA;if([jA,Le,Se,Dt,Ze].indexOf(g)!==-1)for(var B=a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if([nt,rt].indexOf(g)!==-1)for(var B=[Dt,Ze].indexOf(l)!==-1?s:a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if(xn===l&&[xn,nr,bn,yn].indexOf(g)!==-1||[nr,bn].indexOf(l)!==-1&&[nr,ar].indexOf(g)!==-1||[ar,yn].indexOf(l)!==-1&&g===ar||ma.indexOf(l)!==-1&&[Ca,rt].indexOf(g)!==-1||ma.indexOf(g)!==-1&&l===nt||se.indexOf(l)!==-1&&se.indexOf(g)!==-1||l===Se&&se.indexOf(g)!==-1||se.concat(jA).indexOf(l)!==-1&&g===ze&&Tc.indexOf(A[o])===-1||se.concat(jA).indexOf(g)!==-1&&l===Ze)return iA;if(l===jr&&g===jr){for(var p=r[a],Q=1;p>0&&(p--,e[p]===jr);)Q++;if(Q%2!==0)return iA}return l===Ot&&g===Rt?iA:Nt},_c=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=Rc(A,e.lineBreak),t=r[0],n=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(o){return[jA,ye,Zs].indexOf(o)!==-1?Qt:o}));var s=e.wordBreak==="keep-all"?a.map(function(o,l){return o&&A[l]>=19968&&A[l]<=40959}):void 0;return[t,n,s]},Gc=(function(){function A(e,r,t,n){this.codePoints=e,this.required=r===zs,this.start=t,this.end=n}return A.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),jc=function(A,e){var r=xr(A),t=_c(r,e),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=Nc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new Gc(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},Vc=1,Pc=2,Et=4,Ua=8,fr=10,Fa=47,ct=92,Xc=9,Jc=32,_t=34,qe=61,Wc=35,Yc=36,Zc=37,Gt=39,jt=40,$e=41,zc=95,_A=45,qc=33,$c=60,Ag=62,eg=64,tg=91,rg=93,ng=61,ag=123,Vt=63,sg=125,ba=124,ig=126,og=128,ya=65533,Pr=42,xe=43,lg=44,cg=58,gg=59,mt=46,ug=0,Bg=8,dg=11,fg=14,hg=31,wg=127,$A=-1,$s=48,Ai=97,ei=101,pg=102,Cg=117,Qg=122,ti=65,ri=69,ni=70,mg=85,vg=90,MA=function(A){return A>=$s&&A<=57},Ug=function(A){return A>=55296&&A<=57343},ke=function(A){return MA(A)||A>=ti&&A<=ni||A>=Ai&&A<=pg},Fg=function(A){return A>=Ai&&A<=Qg},bg=function(A){return A>=ti&&A<=vg},yg=function(A){return Fg(A)||bg(A)},Eg=function(A){return A>=og},Pt=function(A){return A===fr||A===Xc||A===Jc},hr=function(A){return yg(A)||Eg(A)||A===zc},Ea=function(A){return hr(A)||MA(A)||A===_A},xg=function(A){return A>=ug&&A<=Bg||A===dg||A>=fg&&A<=hg||A===wg},Be=function(A,e){return A!==ct?!1:e!==fr},Xt=function(A,e,r){return A===_A?hr(e)||Be(e,r):hr(A)?!0:!!(A===ct&&Be(A,e))},Xr=function(A,e,r){return A===xe||A===_A?MA(e)?!0:e===mt&&MA(r):MA(A===mt?e:A)},Ig=function(A){var e=0,r=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(r=-1),e++);for(var t=[];MA(A[e]);)t.push(A[e++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;A[e]===mt&&e++;for(var a=[];MA(A[e]);)a.push(A[e++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(A[e]===ri||A[e]===ei)&&e++;var l=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(l=-1),e++);for(var c=[];MA(A[e]);)c.push(A[e++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},Hg={type:2},Sg={type:3},Lg={type:4},kg={type:13},Mg={type:8},Kg={type:21},Tg={type:9},Dg={type:10},Og={type:11},Rg={type:12},Ng={type:14},Jt={type:23},_g={type:1},Gg={type:25},jg={type:24},Vg={type:26},Pg={type:27},Xg={type:28},Jg={type:29},Wg={type:31},Sn={type:32},ai=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(xr(e))},A.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==Sn;)e.push(r),r=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case _t:return this.consumeStringToken(_t);case Wc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ea(r)||Be(t,n)){var a=Xt(r,t,n)?Pc:Vc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Yc:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),kg;break;case Gt:return this.consumeStringToken(Gt);case jt:return Hg;case $e:return Sg;case Pr:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Ng;break;case xe:if(Xr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case lg:return Lg;case _A:var o=e,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Xr(o,l,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Xt(o,l,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===_A&&c===Ag)return this.consumeCodePoint(),this.consumeCodePoint(),jg;break;case mt:if(Xr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Fa:if(this.peekCodePoint(0)===Pr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Pr&&(g=this.consumeCodePoint(),g===Fa))return this.consumeToken();if(g===$A)return this.consumeToken()}break;case cg:return Vg;case gg:return Pg;case $c:if(this.peekCodePoint(0)===qc&&this.peekCodePoint(1)===_A&&this.peekCodePoint(2)===_A)return this.consumeCodePoint(),this.consumeCodePoint(),Gg;break;case eg:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Xt(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case tg:return Xg;case ct:if(Be(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case rg:return Jg;case ng:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Mg;break;case ag:return Og;case sg:return Rg;case Cg:case mg:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===xe&&(ke(C)||C===Vt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case ba:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Tg;if(this.peekCodePoint(0)===ba)return this.consumeCodePoint(),Kg;break;case ig:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Dg;break;case $A:return Sn}return Pt(e)?(this.consumeWhiteSpace(),Wg):MA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):hr(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:bA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();ke(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var t=!1;r===Vt&&e.length<6;)e.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,e.map(function(l){return l===Vt?$s:l})),16),a=parseInt(bA.apply(void 0,e.map(function(l){return l===Vt?ni:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,e),16);if(this.peekCodePoint(0)===_A&&ke(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];ke(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===jt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===jt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Gt||r===_t){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Jt)}for(;;){var n=this.consumeCodePoint();if(n===$A||n===$e)return{type:22,value:bA.apply(void 0,e)};if(Pt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Jt);if(n===_t||n===Gt||n===jt||xg(n))return this.consumeBadUrlRemnants(),Jt;if(n===ct)if(Be(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Jt;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Pt(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===$e||e===$A)return;Be(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var r=5e4,t="";e>0;){var n=Math.min(r,e);t+=bA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},A.prototype.consumeStringToken=function(e){var r="",t=0;do{var n=this._value[t];if(n===$A||n===void 0||n===e)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===fr)return this._value.splice(0,t),_g;if(n===ct){var a=this._value[t+1];a!==$A&&a!==void 0&&(a===fr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):Be(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},A.prototype.consumeNumber=function(){var e=[],r=Et,t=this.peekCodePoint(0);for((t===xe||t===_A)&&e.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===mt&&MA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ua;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===ri||t===ei)&&((n===xe||n===_A)&&MA(a)||MA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ua;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Ig(e),r]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],t=e[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Xt(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Zc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ke(e)){for(var r=bA(e);ke(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Pt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||Ug(t)||t>1114111?ya:t}return e===$A?ya:e},A.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(Ea(r))e+=bA(r);else if(Be(r,this.peekCodePoint(0)))e+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},A})(),si=(function(){function A(e){this._tokens=e}return A.create=function(e){var r=new ai;return r.write(e),new A(r.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},t=this.consumeToken();;){if(t.type===32||Zg(t,e))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Sn:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),xt=function(A){return A.type===15},Je=function(A){return A.type===17},uA=function(A){return A.type===20},Yg=function(A){return A.type===0},Ln=function(A,e){return uA(A)&&A.value===e},ii=function(A){return A.type!==31},Xe=function(A){return A.type!==31&&A.type!==4},ne=function(A){var e=[],r=[];return A.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&e.push(r),e},Zg=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},Qe=function(A){return A.type===17||A.type===15},yA=function(A){return A.type===16||Qe(A)},oi=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},LA={type:17,number:0,flags:Et},Jn={type:16,number:50,flags:Et},fe={type:16,number:100,flags:Et},at=function(A,e,r){var t=A[0],n=A[1];return[wA(t,e),wA(typeof n<"u"?n:t,r)]},wA=function(A,e){if(A.type===16)return A.number/100*e;if(xt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},li="deg",ci="grad",gi="rad",ui="turn",Ir={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case li:return Math.PI*e.number/180;case ci:return Math.PI/200*e.number;case gi:return e.number;case ui:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Bi=function(A){return A.type===15&&(A.unit===li||A.unit===ci||A.unit===gi||A.unit===ui)},di=function(A){var e=A.filter(uA).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return JA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,fe];case"to right":case"left":return JA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fe,fe];case"to bottom":case"top":return JA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fe,LA];case"to left":case"right":return JA(270)}return 0},JA=function(A){return Math.PI*A/180},pe={name:"color",parse:function(A,e){if(e.type===18){var r=zg[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(A,e.values)}if(e.type===5){if(e.value.length===3){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(e.value.length===4){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3),s=e.value.substring(3,4);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(e.value.length===6){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(e.value.length===8){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(e.type===20){var o=oe[e.value.toUpperCase()];if(typeof o<"u")return o}return oe.TRANSPARENT}},Ce=function(A){return(255&A)===0},xA=function(A){var e=255&A,r=255&A>>8,t=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+t+","+r+","+e/255+")":"rgb("+n+","+t+","+r+")"},he=function(A,e,r,t){return(A<<24|e<<16|r<<8|Math.round(t*255)<<0)>>>0},xa=function(A,e){if(A.type===17)return A.number;if(A.type===16){var r=e===3?1:255;return e===3?A.number/100*r:Math.round(A.number/100*r)}return 0},Ia=function(A,e){var r=e.filter(Xe);if(r.length===3){var t=r.map(xa),n=t[0],a=t[1],s=t[2];return he(n,a,s,1)}if(r.length===4){var o=r.map(xa),n=o[0],a=o[1],s=o[2],l=o[3];return he(n,a,s,l)}return 0};function Jr(A,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-A)*r*6+A:r<1/2?e:r<2/3?(e-A)*6*(2/3-r)+A:A}var Ha=function(A,e){var r=e.filter(Xe),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?JA(t.number):Ir.parse(A,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return he(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=Jr(u,B,o+1/3),Q=Jr(u,B,o),C=Jr(u,B,o-1/3);return he(p*255,Q*255,C*255,g)},zg={hsl:Ha,hsla:Ha,rgb:Ia,rgba:Ia},gt=function(A,e){return pe.parse(A,si.create(e).parseComponentValue())},oe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},qg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$g={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Hr=function(A,e){var r=pe.parse(A,e[0]),t=e[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Sa=function(A,e){var r=A[0],t=A[A.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=fe);for(var n=[],a=0,s=0;s<A.length;s++){var o=A[s].stop;if(o!==null){var l=wA(o,e);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return A.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/e),0)}})},Au=function(A,e,r){var t=e/2,n=r/2,a=wA(A[0],e)-t,s=n-wA(A[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},eu=function(A,e,r){var t=typeof A=="number"?A:Au(A,e,r),n=Math.abs(e*Math.sin(t))+Math.abs(r*Math.cos(t)),a=e/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},zA=function(A,e){return Math.sqrt(A*A+e*e)},La=function(A,e,r,t,n){var a=[[0,0],[0,e],[A,0],[A,e]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=zA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},tu=function(A,e,r,t,n){var a=0,s=0;switch(A.size){case 0:A.shape===0?a=s=Math.min(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(A.shape===0)a=s=Math.min(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(e),Math.abs(e-t)),l=La(t,n,e,r,!0),c=l[0],g=l[1];a=zA(c-e,(g-r)/o),s=o*a}break;case 1:A.shape===0?a=s=Math.max(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(A.shape===0)a=s=Math.max(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(e),Math.abs(e-t)),B=La(t,n,e,r,!1),c=B[0],g=B[1];a=zA(c-e,(g-r)/o),s=o*a}break}return Array.isArray(A.size)&&(a=wA(A.size[0],t),s=A.size.length===2?wA(A.size[1],n):a),[a,s]},ru=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=di(n);return}else if(Bi(s)){r=Ir.parse(A,s);return}}var o=Hr(A,n);t.push(o)}),{angle:r,stops:t,type:1}},Wt=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=di(n);return}else if(Bi(s)){r=(Ir.parse(A,s)+JA(270))%JA(360);return}}var o=Hr(A,n);t.push(o)}),{angle:r,stops:t,type:1}},nu=function(A,e){var r=JA(180),t=[],n=1,a=0,s=3,o=[];return ne(e).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=pe.parse(A,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=pe.parse(A,g.values[0]);t.push({stop:fe,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(Xe);if(u.length===2){var B=pe.parse(A,u[1]),p=u[0];Je(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+JA(180))%JA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},fi="closest-side",hi="farthest-side",wi="closest-corner",pi="farthest-corner",Ci="circle",Qi="ellipse",mi="cover",vi="contain",au=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(Jn),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(fe),B}else(yA(u)||Qe(u))&&a.push(u);else if(uA(u))switch(u.value){case Ci:return r=0,!1;case Qi:return r=1,!1;case"at":return c=!0,!1;case fi:return t=0,!1;case mi:case hi:return t=1,!1;case vi:case wi:return t=2,!1;case pi:return t=3,!1}else if(Qe(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=Hr(A,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Yt=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(Jn),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(fe),!1}else if(yA(B)||Qe(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case Ci:return r=0,!1;case Qi:return r=1,!1;case vi:case fi:return t=0,!1;case hi:return t=1,!1;case wi:return t=2,!1;case mi:case pi:return t=3,!1}else if(Qe(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=Hr(A,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},su=function(A){return A.type===1},iu=function(A){return A.type===2},Wn={name:"image",parse:function(A,e){if(e.type===22){var r={url:e.value,type:0};return A.cache.addImage(e.value),r}if(e.type===18){var t=Ui[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function ou(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!Ui[A.name])}var Ui={"linear-gradient":ru,"-moz-linear-gradient":Wt,"-ms-linear-gradient":Wt,"-o-linear-gradient":Wt,"-webkit-linear-gradient":Wt,"radial-gradient":au,"-moz-radial-gradient":Yt,"-ms-radial-gradient":Yt,"-o-radial-gradient":Yt,"-webkit-radial-gradient":Yt,"-webkit-gradient":nu},lu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(t){return Xe(t)&&ou(t)}).map(function(t){return Wn.parse(A,t)})}},cu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gu={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return ne(e).map(function(r){return r.filter(yA)}).map(oi)}},uu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map(Bu)}},Bu=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},_e;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(_e||(_e={}));var du={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(fu)})}},fu=function(A){return uA(A)||yA(A)},Sr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},hu=Sr("top"),wu=Sr("right"),pu=Sr("bottom"),Cu=Sr("left"),Lr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return oi(r.filter(yA))}}},Qu=Lr("top-left"),mu=Lr("top-right"),vu=Lr("bottom-right"),Uu=Lr("bottom-left"),kr=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Fu=kr("top"),bu=kr("right"),yu=kr("bottom"),Eu=kr("left"),Mr=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return xt(r)?r.number:0}}},xu=Mr("top"),Iu=Mr("right"),Hu=Mr("bottom"),Su=Mr("left"),Lu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ku={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return e==="rtl"?1:0}},Mu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).reduce(function(r,t){return r|Ku(t.value)},0)}},Ku=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Tu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Du={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},wr;(function(A){A.NORMAL="normal",A.STRICT="strict"})(wr||(wr={}));var Ou={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="strict"?wr.STRICT:wr.NORMAL}},Ru={name:"line-height",initialValue:"normal",prefix:!1,type:4},ka=function(A,e){return uA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:yA(A)?wA(A,e):e},Nu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:Wn.parse(A,e)}},_u={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return e==="inside"?0:1}},kn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Kr=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Gu=Kr("top"),ju=Kr("right"),Vu=Kr("bottom"),Pu=Kr("left"),Xu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Ju={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="break-word"?"break-word":"normal"}},Tr=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Wu=Tr("top"),Yu=Tr("right"),Zu=Tr("bottom"),zu=Tr("left"),qu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},$u={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},AB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Ln(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:oe.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=pe.parse(A,s)}return t})}},eB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},tB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=aB[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},rB=function(A){var e=A.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},nB=function(A){var e=A.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=e[0],t=e[1];e[2],e[3];var n=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],e.length===16?[r,t,n,a,s,o]:null},aB={matrix:rB,matrix3d:nB},Ma={type:16,number:50,flags:Et},sB=[Ma,Ma],iB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var r=e.filter(yA);return r.length!==2?sB:[r[0],r[1]]}},oB={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ut;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(ut||(ut={}));var lB={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return ut.BREAK_ALL;case"keep-all":return ut.KEEP_ALL;default:return ut.NORMAL}}},cB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Je(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Fi={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},gB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:1}},uB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},dB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var r=[],t=[];return e.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},fB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},hB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:uA(e)&&e.value==="bold"?700:400}},wB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(uA).map(function(r){return r.value})}},pB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(A,e){return(A&e)!==0},CB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},QB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=e.filter(ii),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Je(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},mB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var r=[],t=e.filter(ii),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Je(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},vB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(xt).map(function(r){return Fi.parse(A,r)})}},UB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var t=[],n=e.filter(Yg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},Ka=function(A,e,r){if(!A)return"";var t=A[Math.min(e,A.length-1)];return t?r?t.open:t.close:""},FB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Ln(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];Ln(s,"inset")?t.inset=!0:Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=pe.parse(A,s)}return t})}},bB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var r=[0,1,2],t=[];return e.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},yB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},EB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return xt(e)?e.number:0}},xB=(function(){function A(e,r){var t,n;this.animationDuration=J(e,vB,r.animationDuration),this.backgroundClip=J(e,qg,r.backgroundClip),this.backgroundColor=J(e,$g,r.backgroundColor),this.backgroundImage=J(e,lu,r.backgroundImage),this.backgroundOrigin=J(e,cu,r.backgroundOrigin),this.backgroundPosition=J(e,gu,r.backgroundPosition),this.backgroundRepeat=J(e,uu,r.backgroundRepeat),this.backgroundSize=J(e,du,r.backgroundSize),this.borderTopColor=J(e,hu,r.borderTopColor),this.borderRightColor=J(e,wu,r.borderRightColor),this.borderBottomColor=J(e,pu,r.borderBottomColor),this.borderLeftColor=J(e,Cu,r.borderLeftColor),this.borderTopLeftRadius=J(e,Qu,r.borderTopLeftRadius),this.borderTopRightRadius=J(e,mu,r.borderTopRightRadius),this.borderBottomRightRadius=J(e,vu,r.borderBottomRightRadius),this.borderBottomLeftRadius=J(e,Uu,r.borderBottomLeftRadius),this.borderTopStyle=J(e,Fu,r.borderTopStyle),this.borderRightStyle=J(e,bu,r.borderRightStyle),this.borderBottomStyle=J(e,yu,r.borderBottomStyle),this.borderLeftStyle=J(e,Eu,r.borderLeftStyle),this.borderTopWidth=J(e,xu,r.borderTopWidth),this.borderRightWidth=J(e,Iu,r.borderRightWidth),this.borderBottomWidth=J(e,Hu,r.borderBottomWidth),this.borderLeftWidth=J(e,Su,r.borderLeftWidth),this.boxShadow=J(e,FB,r.boxShadow),this.color=J(e,Lu,r.color),this.direction=J(e,ku,r.direction),this.display=J(e,Mu,r.display),this.float=J(e,Tu,r.cssFloat),this.fontFamily=J(e,dB,r.fontFamily),this.fontSize=J(e,fB,r.fontSize),this.fontStyle=J(e,pB,r.fontStyle),this.fontVariant=J(e,wB,r.fontVariant),this.fontWeight=J(e,hB,r.fontWeight),this.letterSpacing=J(e,Du,r.letterSpacing),this.lineBreak=J(e,Ou,r.lineBreak),this.lineHeight=J(e,Ru,r.lineHeight),this.listStyleImage=J(e,Nu,r.listStyleImage),this.listStylePosition=J(e,_u,r.listStylePosition),this.listStyleType=J(e,kn,r.listStyleType),this.marginTop=J(e,Gu,r.marginTop),this.marginRight=J(e,ju,r.marginRight),this.marginBottom=J(e,Vu,r.marginBottom),this.marginLeft=J(e,Pu,r.marginLeft),this.opacity=J(e,gB,r.opacity);var a=J(e,Xu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=J(e,Ju,r.overflowWrap),this.paddingTop=J(e,Wu,r.paddingTop),this.paddingRight=J(e,Yu,r.paddingRight),this.paddingBottom=J(e,Zu,r.paddingBottom),this.paddingLeft=J(e,zu,r.paddingLeft),this.paintOrder=J(e,bB,r.paintOrder),this.position=J(e,$u,r.position),this.textAlign=J(e,qu,r.textAlign),this.textDecorationColor=J(e,uB,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=J(e,BB,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=J(e,AB,r.textShadow),this.textTransform=J(e,eB,r.textTransform),this.transform=J(e,tB,r.transform),this.transformOrigin=J(e,iB,r.transformOrigin),this.visibility=J(e,oB,r.visibility),this.webkitTextStrokeColor=J(e,yB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=J(e,EB,r.webkitTextStrokeWidth),this.wordBreak=J(e,lB,r.wordBreak),this.zIndex=J(e,cB,r.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ce(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},A})(),IB=(function(){function A(e,r){this.content=J(e,CB,r.content),this.quotes=J(e,UB,r.quotes)}return A})(),Ta=(function(){function A(e,r){this.counterIncrement=J(e,QB,r.counterIncrement),this.counterReset=J(e,mB,r.counterReset)}return A})(),J=function(A,e,r){var t=new ai,n=r!==null&&typeof r<"u"?r.toString():e.initialValue;t.write(n);var a=new si(t.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(A,uA(s)?s.value:e.initialValue);case 0:return e.parse(A,a.parseComponentValue());case 1:return e.parse(A,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Ir.parse(A,a.parseComponentValue());case"color":return pe.parse(A,a.parseComponentValue());case"image":return Wn.parse(A,a.parseComponentValue());case"length":var o=a.parseComponentValue();return Qe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return Fi.parse(A,a.parseComponentValue())}break}},HB="data-html2canvas-debug",SB=function(A){var e=A.getAttribute(HB);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Mn=function(A,e){var r=SB(A);return r===1||e===r},ae=(function(){function A(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Mn(r,3))debugger;this.styles=new xB(e,window.getComputedStyle(r,null)),Dn(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Er(this.context,r),Mn(r,4)&&(this.flags|=16)}return A})(),LB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Zt=0;Zt<Da.length;Zt++)st[Da.charCodeAt(Zt)]=Zt;var kB=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=st[A.charCodeAt(t)],s=st[A.charCodeAt(t+1)],o=st[A.charCodeAt(t+2)],l=st[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},MB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},KB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},He=5,Yn=11,Wr=2,TB=Yn-He,bi=65536>>He,DB=1<<He,Yr=DB-1,OB=1024>>He,RB=bi+OB,NB=RB,_B=32,GB=NB+_B,jB=65536>>Yn,VB=1<<TB,PB=VB-1,Oa=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},XB=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},JB=function(A,e){var r=kB(A),t=Array.isArray(r)?KB(r):new Uint32Array(r),n=Array.isArray(r)?MB(r):new Uint16Array(r),a=24,s=Oa(n,a/2,t[4]/2),o=t[5]===2?Oa(n,(a+t[4])/2):XB(t,Math.ceil((a+t[4])/4));return new WB(t[0],t[1],t[2],t[3],s,o)},WB=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>He],r=(r<<Wr)+(e&Yr),this.data[r];if(e<=65535)return r=this.index[bi+(e-55296>>He)],r=(r<<Wr)+(e&Yr),this.data[r];if(e<this.highStart)return r=GB-jB+(e>>Yn),r=this.index[r],r+=e>>He&PB,r=this.index[r],r=(r<<Wr)+(e&Yr),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var zt=0;zt<Ra.length;zt++)YB[Ra.charCodeAt(zt)]=zt;var ZB=1,Zr=2,zr=3,Na=4,_a=5,zB=7,Ga=8,qr=9,$r=10,ja=11,Va=12,Pa=13,Xa=14,An=15,qB=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},$B=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},Ad=JB(LB),PA="×",en="÷",ed=function(A){return Ad.get(A)},td=function(A,e,r){var t=r-2,n=e[t],a=e[r-1],s=e[r];if(a===Zr&&s===zr)return PA;if(a===Zr||a===zr||a===Na||s===Zr||s===zr||s===Na)return en;if(a===Ga&&[Ga,qr,ja,Va].indexOf(s)!==-1||(a===ja||a===qr)&&(s===qr||s===$r)||(a===Va||a===$r)&&s===$r||s===Pa||s===_a||s===zB||a===ZB)return PA;if(a===Pa&&s===Xa){for(;n===_a;)n=e[--t];if(n===Xa)return PA}if(a===An&&s===An){for(var o=0;n===An;)o++,n=e[--t];if(o%2===0)return PA}return en},rd=function(A){var e=qB(A),r=e.length,t=0,n=0,a=e.map(ed);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=PA;t<r&&(s=td(e,a,++t))===PA;);if(s!==PA||t===r){var o=$B.apply(null,e.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},nd=function(A){for(var e=rd(A),r=[],t;!(t=e.next()).done;)t.value&&r.push(t.value.slice());return r},ad=function(A){var e=123;if(A.createRange){var r=A.createRange();if(r.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height=e+"px",t.style.display="block",A.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(A.body.removeChild(t),a===e)return!0}}return!1},sd=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var r=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=e.firstChild,n=xr(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return A.body.removeChild(e),o},id=function(){return typeof new Image().crossOrigin<"u"},od=function(){return typeof new XMLHttpRequest().responseType=="string"},ld=function(A){var e=new Image,r=A.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},Ja=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},cd=function(A){var e=A.createElement("canvas"),r=100;e.width=r,e.height=r;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=e.toDataURL();n.src=a;var s=Kn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Wa(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=A.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Ja(l)?Wa(Kn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Ja(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Kn=function(A,e,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Wa=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){return e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},HA={get SUPPORT_RANGE_BOUNDS(){var A=ad(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=HA.SUPPORT_RANGE_BOUNDS&&sd(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=ld(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?cd(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=id();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=od();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Bt=(function(){function A(e,r){this.text=e,this.bounds=r}return A})(),gd=function(A,e,r,t){var n=dd(e,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ya(t,s,o.length).getClientRects();if(l.length>1){var c=Zn(o),g=0;c.forEach(function(u){a.push(new Bt(u,le.fromDOMRectList(A,Ya(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new Bt(o,le.fromDOMRectList(A,l)))}else{var B=t.splitText(o.length);a.push(new Bt(o,ud(A,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},ud=function(A,e){var r=e.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(t,e);var a=Er(A,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return le.EMPTY},Ya=function(A,e,r){var t=A.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(A,e),n.setEnd(A,e+r),n},Zn=function(A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return nd(A)},Bd=function(A,e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(A)).map(function(t){return t.segment})}return hd(A,e)},dd=function(A,e){return e.letterSpacing!==0?Zn(A):Bd(A,e)},fd=[32,160,4961,65792,65793,4153,4241],hd=function(A,e){for(var r=jc(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=xr(s),l="";o.forEach(function(c){fd.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},wd=(function(){function A(e,r,t){this.text=pd(r.data,t.textTransform),this.textBounds=gd(e,this.text,t,r)}return A})(),pd=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Cd,Qd);case 2:return A.toUpperCase();default:return A}},Cd=/(^|\s|:|-|\(|\))([a-z])/g,Qd=function(A,e,r){return A.length>0?e+r.toUpperCase():A},yi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e})(ae),Ei=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e})(ae),xi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=new XMLSerializer,s=Er(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e})(ae),Ii=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Tn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return e})(ae),md=[{type:15,flags:0,unit:"px",number:3}],vd=[{type:16,flags:0,number:50}],Ud=function(A){return A.width>A.height?new le(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new le(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Fd=function(A){var e=A.type===bd?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},pr="checkbox",Cr="radio",bd="password",Za=707406591,zn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Fd(t),(n.type===pr||n.type===Cr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=Ud(n.bounds)),n.type){case pr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=md;break;case Cr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=vd;break}return n}return e})(ae),Hi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return e})(ae),Si=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Li=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Mi(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?gt(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):oe.TRANSPARENT,s=t.contentWindow.document.body?gt(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):oe.TRANSPARENT;n.backgroundColor=Ce(a)?Ce(s)?n.styles.backgroundColor:s:a}}catch{}return n}return e})(ae),yd=["OL","UL","MENU"],sr=function(A,e,r,t){for(var n=e.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Ki(n)&&n.data.trim().length>0)r.textNodes.push(new wd(A,n,r.styles));else if(Ne(n))if(Ri(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return sr(A,o,r,t)});else{var s=ki(A,n);s.styles.isVisible()&&(Ed(n,s,t)?s.flags|=4:xd(s.styles)&&(s.flags|=2),yd.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?sr(A,n.shadowRoot,s,t):!Qr(n)&&!Ti(n)&&!mr(n)&&sr(A,n,s,t))}},ki=function(A,e){return On(e)?new yi(A,e):Di(e)?new Ei(A,e):Ti(e)?new xi(A,e):Id(e)?new Ii(A,e):Hd(e)?new Tn(A,e):Sd(e)?new zn(A,e):mr(e)?new Hi(A,e):Qr(e)?new Si(A,e):Oi(e)?new Li(A,e):new ae(A,e)},Mi=function(A,e){var r=ki(A,e);return r.flags|=4,sr(A,e,r,r),r},Ed=function(A,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||qn(A)&&r.styles.isTransparent()},xd=function(A){return A.isPositioned()||A.isFloating()},Ki=function(A){return A.nodeType===Node.TEXT_NODE},Ne=function(A){return A.nodeType===Node.ELEMENT_NODE},Dn=function(A){return Ne(A)&&typeof A.style<"u"&&!ir(A)},ir=function(A){return typeof A.className=="object"},Id=function(A){return A.tagName==="LI"},Hd=function(A){return A.tagName==="OL"},Sd=function(A){return A.tagName==="INPUT"},Ld=function(A){return A.tagName==="HTML"},Ti=function(A){return A.tagName==="svg"},qn=function(A){return A.tagName==="BODY"},Di=function(A){return A.tagName==="CANVAS"},za=function(A){return A.tagName==="VIDEO"},On=function(A){return A.tagName==="IMG"},Oi=function(A){return A.tagName==="IFRAME"},qa=function(A){return A.tagName==="STYLE"},kd=function(A){return A.tagName==="SCRIPT"},Qr=function(A){return A.tagName==="TEXTAREA"},mr=function(A){return A.tagName==="SELECT"},Ri=function(A){return A.tagName==="SLOT"},$a=function(A){return A.tagName.indexOf("-")>0},Md=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},A.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},A.prototype.pop=function(e){var r=this;e.forEach(function(t){return r.counters[t].pop()})},A.prototype.parse=function(e){var r=this,t=e.counterIncrement,n=e.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},A})(),As={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},es={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Kd={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Td={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Me=function(A,e,r,t,n,a){return A<e||A>r?vt(A,n,a.length>0):t.integers.reduce(function(s,o,l){for(;A>=o;)A-=o,s+=t.values[l];return s},"")+a},Ni=function(A,e,r,t){var n="";do r||A--,n=t(A)+n,A/=e;while(A*e>=e);return n},FA=function(A,e,r,t,n){var a=r-e+1;return(A<0?"-":"")+(Ni(Math.abs(A),a,t,function(s){return bA(Math.floor(s%a)+e)})+n)},me=function(A,e,r){r===void 0&&(r=". ");var t=e.length;return Ni(Math.abs(A),t,!1,function(n){return e[Math.floor(n%t)]})+r},De=1,ce=2,ge=4,it=8,ie=function(A,e,r,t,n,a){if(A<-9999||A>9999)return vt(A,4,n.length>0);var s=Math.abs(A),o=n;if(s===0)return e[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,De)&&o!==""?o=e[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,ce)||c===1&&l===1&&EA(a,ge)&&A>100||c===1&&l>1&&EA(a,it)?o=e[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(A<0?t:"")+o},ts="十百千萬",rs="拾佰仟萬",ns="マイナス",tn="마이너스",vt=function(A,e,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(A,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return me(A,"〇一二三四五六七八九",n);case 6:return Me(A,1,3999,As,3,t).toLowerCase();case 7:return Me(A,1,3999,As,3,t);case 8:return FA(A,945,969,!1,t);case 9:return FA(A,97,122,!1,t);case 10:return FA(A,65,90,!1,t);case 11:return FA(A,1632,1641,!0,t);case 12:case 49:return Me(A,1,9999,es,3,t);case 35:return Me(A,1,9999,es,3,t).toLowerCase();case 13:return FA(A,2534,2543,!0,t);case 14:case 30:return FA(A,6112,6121,!0,t);case 15:return me(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return me(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ie(A,"零一二三四五六七八九",ts,"負",n,ce|ge|it);case 47:return ie(A,"零壹貳參肆伍陸柒捌玖",rs,"負",n,De|ce|ge|it);case 42:return ie(A,"零一二三四五六七八九",ts,"负",n,ce|ge|it);case 41:return ie(A,"零壹贰叁肆伍陆柒捌玖",rs,"负",n,De|ce|ge|it);case 26:return ie(A,"〇一二三四五六七八九","十百千万",ns,n,0);case 25:return ie(A,"零壱弐参四伍六七八九","拾百千万",ns,n,De|ce|ge);case 31:return ie(A,"영일이삼사오육칠팔구","십백천만",tn,a,De|ce|ge);case 33:return ie(A,"零一二三四五六七八九","十百千萬",tn,a,0);case 32:return ie(A,"零壹貳參四五六七八九","拾百千",tn,a,De|ce|ge);case 18:return FA(A,2406,2415,!0,t);case 20:return Me(A,1,19999,Td,3,t);case 21:return FA(A,2790,2799,!0,t);case 22:return FA(A,2662,2671,!0,t);case 22:return Me(A,1,10999,Kd,3,t);case 23:return me(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return me(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(A,3302,3311,!0,t);case 28:return me(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return me(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(A,3792,3801,!0,t);case 37:return FA(A,6160,6169,!0,t);case 38:return FA(A,4160,4169,!0,t);case 39:return FA(A,2918,2927,!0,t);case 40:return FA(A,1776,1785,!0,t);case 43:return FA(A,3046,3055,!0,t);case 44:return FA(A,3174,3183,!0,t);case 45:return FA(A,3664,3673,!0,t);case 46:return FA(A,3872,3881,!0,t);default:return FA(A,48,57,!0,t)}},_i="data-html2canvas-ignore",as=(function(){function A(e,r,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Md,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,r){var t=this,n=Dd(e,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=Nd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Vd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Rd(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(Gd(document.doctype)+"<html></html>"),jd(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(e){if(Mn(e,2))debugger;if(Di(e))return this.createCanvasClone(e);if(za(e))return this.createVideoClone(e);if(qa(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return On(r)&&(On(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),$a(r)?this.createCustomElementClone(r):r},A.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return rn(e.style,r),r},A.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=e.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var a=e.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,r,t){(!Ne(r)||!kd(r)&&!r.hasAttribute(_i)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ne(r)||!qa(r))&&e.appendChild(this.cloneNode(r,t))},A.prototype.cloneChildNodes=function(e,r,t){for(var n=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Ne(a)&&Ri(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},A.prototype.cloneNode=function(e,r){if(Ki(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Ne(e)&&(Dn(e)||ir(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var a=t.getComputedStyle(e),s=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&Dn(n)&&(this.clonedReferenceElement=n),qn(n)&&Jd(n);var l=this.counters.parse(new Ta(this.context,a)),c=this.resolvePseudoContent(e,n,s,dt.BEFORE);$a(e)&&(r=!0),za(e)||this.cloneChildNodes(e,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(e,n,o,dt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||ir(e))&&!Oi(e)||r)&&rn(a,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Qr(e)||mr(e))&&(Qr(n)||mr(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ta(this.context,t));var l=new IB(this.context,t),c=o.createElement("html2canvaspseudoelement");rn(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(e.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(Xe),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?kn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(vt(U,y,!1)))}}else if(B.name==="counters"){var S=B.values.filter(Xe),C=S[0],H=S[1],x=S[2];if(C&&uA(C)){var L=a.counters.getCounterValues(C.value),h=x&&uA(x)?kn.parse(a.context,x.value):3,b=H&&H.type===0?H.value:"",k=L.map(function(O){return vt(O,h,!1)}).join(b);c.appendChild(o.createTextNode(k))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(Ka(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Ka(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Rn+" "+Nn;var g=n===dt.BEFORE?" "+Rn:" "+Nn;return ir(r)?r.className.baseValue+=g:r.className+=g,c}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),dt;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(dt||(dt={}));var Dd=function(A,e){var r=A.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(_i,"true"),A.body.appendChild(r),r},Od=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},Rd=function(A){return Promise.all([].slice.call(A.images,0).map(Od))},Nd=function(A){return new Promise(function(e,r){var t=A.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=A.onload=function(){t.onload=A.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),e(A))},50)}})},_d=["all","d","content"],rn=function(A,e){for(var r=A.length-1;r>=0;r--){var t=A.item(r);_d.indexOf(t)===-1&&e.style.setProperty(t,A.getPropertyValue(t))}return e},Gd=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},jd=function(A,e,r){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||r!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,r)},Vd=function(A){var e=A[0],r=A[1],t=A[2];e.scrollLeft=r,e.scrollTop=t},Pd=":before",Xd=":after",Rn="___html2canvas___pseudoelement_before",Nn="___html2canvas___pseudoelement_after",ss=`{
+ content: "" !important;
+ display: none !important;
+}`,Jd=function(A){Wd(A,"."+Rn+Pd+ss+`
+ .`+Nn+Xd+ss)},Wd=function(A,e){var r=A.ownerDocument;if(r){var t=r.createElement("style");t.textContent=e,A.appendChild(t)}},Gi=(function(){function A(){}return A.getOrigin=function(e){var r=A._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Yd=(function(){function A(e,r){this.context=e,this._options=r,this._cache={}}return A.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(an(e)||$d(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=Gi.isSameOrigin(e),t=!nn(e)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!nn(e)&&!r&&!an(e)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!nn(e)&&!an(e)&&!n&&!t?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,(Af(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},A})(),Zd=/^data:image\/svg\+xml/i,zd=/^data:image\/.*;base64,/i,qd=/^data:image\/.*/i,$d=function(A){return HA.SUPPORT_SVG_DRAWING||!ef(A)},nn=function(A){return qd.test(A)},Af=function(A){return zd.test(A)},an=function(A){return A.substr(0,4)==="blob"},ef=function(A){return A.substr(-3).toLowerCase()==="svg"||Zd.test(A)},V=(function(){function A(e,r){this.type=0,this.x=e,this.y=r}return A.prototype.add=function(e,r){return new A(this.x+e,this.y+r)},A})(),Ke=function(A,e,r){return new V(A.x+(e.x-A.x)*r,A.y+(e.y-A.y)*r)},qt=(function(){function A(e,r,t,n){this.type=1,this.start=e,this.startControl=r,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,r){var t=Ke(this.start,this.startControl,e),n=Ke(this.startControl,this.endControl,e),a=Ke(this.endControl,this.end,e),s=Ke(t,n,e),o=Ke(n,a,e),l=Ke(s,o,e);return r?new A(this.start,t,s,l):new A(l,o,a,this.end)},A.prototype.add=function(e,r){return new A(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),XA=function(A){return A.type===1},tf=(function(){function A(e){var r=e.styles,t=e.bounds,n=at(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=at(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=at(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=at(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,S=t.height-u,H=t.width-B,L=t.height-C,h=r.borderTopWidth,b=r.borderRightWidth,k=r.borderBottomWidth,M=r.borderLeftWidth,R=wA(r.paddingTop,e.bounds.width),O=wA(r.paddingRight,e.bounds.width),Z=wA(r.paddingBottom,e.bounds.width),D=wA(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+M/3,t.top+h/3,a-M/3,s-h/3,gA.TOP_LEFT):new V(t.left+M/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-b/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-b/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+H,t.top+S,B-b/3,u-k/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/3,t.top+t.height-k/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+M/3,t.top+L,Q-M/3,C-k/3,gA.BOTTOM_LEFT):new V(t.left+M/3,t.top+t.height-k/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+M*2/3,t.top+h*2/3,a-M*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+M*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-b*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-b*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+H,t.top+S,B-b*2/3,u-k*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b*2/3,t.top+t.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+M*2/3,t.top+L,Q-M*2/3,C-k*2/3,gA.BOTTOM_LEFT):new V(t.left+M*2/3,t.top+t.height-k*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+M/2,t.top+h/2,a-M/2,s-h/2,gA.TOP_LEFT):new V(t.left+M/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-b/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-b/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+H,t.top+S,B-b/2,u-k/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/2,t.top+t.height-k/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+M/2,t.top+L,Q-M/2,C-k/2,gA.BOTTOM_LEFT):new V(t.left+M/2,t.top+t.height-k/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+H,t.top+S,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+L,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+M,t.top+h,Math.max(0,a-M),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+M,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-b),t.top+h,y>t.width+b?0:Math.max(0,l-b),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-b,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(H,t.width-M),t.top+Math.min(S,t.height-k),Math.max(0,B-b),Math.max(0,u-k),gA.BOTTOM_RIGHT):new V(t.left+t.width-b,t.top+t.height-k),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+M,t.top+Math.min(L,t.height-k),Math.max(0,Q-M),Math.max(0,C-k),gA.BOTTOM_LEFT):new V(t.left+M,t.top+t.height-k),this.topLeftContentBox=a>0||s>0?QA(t.left+M+D,t.top+h+R,Math.max(0,a-(M+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+M+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+M+D),t.top+h+R,y>t.width+M+D?0:l-M+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(b+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(H,t.width-(M+D)),t.top+Math.min(S,t.height+h+R),Math.max(0,B-(b+O)),u-(k+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(b+O),t.top+t.height-(k+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+M+D,t.top+L,Math.max(0,Q-(M+D)),C-(k+Z),gA.BOTTOM_LEFT):new V(t.left+M+D,t.top+t.height-(k+Z))}return A})(),gA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(A,e,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=A+r,c=e+t;switch(n){case gA.TOP_LEFT:return new qt(new V(A,c),new V(A,c-o),new V(l-s,e),new V(l,e));case gA.TOP_RIGHT:return new qt(new V(A,e),new V(A+s,e),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new qt(new V(l,e),new V(l,e+o),new V(A+s,c),new V(A,c));case gA.BOTTOM_LEFT:default:return new qt(new V(l,c),new V(l-s,c),new V(A,e+o),new V(A,e))}},vr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},rf=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ur=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},nf=(function(){function A(e,r,t){this.offsetX=e,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return A})(),$t=(function(){function A(e,r){this.path=e,this.target=r,this.type=1}return A})(),af=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),sf=function(A){return A.type===0},ji=function(A){return A.type===1},of=function(A){return A.type===2},is=function(A,e){return A.length===e.length?A.some(function(r,t){return r===e[t]}):!1},lf=function(A,e,r,t,n){return A.map(function(a,s){switch(s){case 0:return a.add(e,r);case 1:return a.add(e+t,r);case 2:return a.add(e+t,r+n);case 3:return a.add(e,r+n)}return a})},Vi=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Pi=(function(){function A(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new tf(this.container),this.container.styles.opacity<1&&this.effects.push(new af(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new nf(t,n,a))}if(this.container.styles.overflowX!==0){var s=vr(this.curves),o=Ur(this.curves);is(s,o)?this.effects.push(new $t(s,6)):(this.effects.push(new $t(s,2)),this.effects.push(new $t(o,4)))}}return A.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!ji(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=vr(t.curves),o=Ur(t.curves);is(s,o)||n.unshift(new $t(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,e)})},A})(),_n=function(A,e,r,t){A.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Pi(n,A);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:e,g=new Vi(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);_n(o,g,a?g:r,l)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),_n(o,e,r,l);EA(n.flags,8)&&Xi(n,l)})},Xi=function(A,e){for(var r=A instanceof Tn?A.start:1,t=A instanceof Tn?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof Ii&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=vt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},cf=function(A){var e=new Pi(A,null),r=new Vi(e),t=[];return _n(e,r,r,t),Xi(e.container,t),r},os=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},gf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return WA(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},uf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Bf=function(A,e){switch(e){case 0:return Ar(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ar(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ar(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Ar(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Ar=function(A,e){var r=[];return XA(A)?r.push(A.subdivide(.5,!1)):r.push(A),XA(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},WA=function(A,e,r,t){var n=[];return XA(A)?n.push(A.subdivide(.5,!1)):n.push(A),XA(r)?n.push(r.subdivide(.5,!0)):n.push(r),XA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),XA(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Ji=function(A){var e=A.bounds,r=A.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Fr=function(A){var e=A.styles,r=A.bounds,t=wA(e.paddingLeft,r.width),n=wA(e.paddingRight,r.width),a=wA(e.paddingTop,r.width),s=wA(e.paddingBottom,r.width);return r.add(t+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+t+n),-(e.borderTopWidth+e.borderBottomWidth+a+s))},df=function(A,e){return A===0?e.bounds:A===2?Fr(e):Ji(e)},ff=function(A,e){return A===0?e.bounds:A===2?Fr(e):Ji(e)},sn=function(A,e,r){var t=df(Oe(A.styles.backgroundOrigin,e),A),n=ff(Oe(A.styles.backgroundClip,e),A),a=hf(Oe(A.styles.backgroundSize,e),r,t),s=a[0],o=a[1],l=at(Oe(A.styles.backgroundPosition,e),t.width-s,t.height-o),c=wf(Oe(A.styles.backgroundRepeat,e),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Te=function(A){return uA(A)&&A.value===_e.AUTO},er=function(A){return typeof A=="number"},hf=function(A,e,r){var t=e[0],n=e[1],a=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=er(a);if(uA(s)&&(s.value===_e.CONTAIN||s.value===_e.COVER)){if(er(a)){var c=r.width/r.height;return c<a!=(s.value===_e.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=er(t),B=er(n),u=g||B;if(Te(s)&&(!o||Te(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Te(s)?U=y*a:(!o||Te(o))&&(y=U/a),[U,y]}var S=null,H=null;if(yA(s)?S=wA(s,r.width):o&&yA(o)&&(H=wA(o,r.height)),S!==null&&(!o||Te(o))&&(H=g&&B?S/t*n:r.height),H!==null&&Te(s)&&(S=g&&B?H/n*t:r.width),S!==null&&H!==null)return[S,H];throw new Error("Unable to calculate background-size for element")},Oe=function(A,e){var r=A[e];return typeof r>"u"?A[0]:r},wf=function(A,e,r,t,n){var a=e[0],s=e[1],o=r[0],l=r[1];switch(A){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},pf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ls="Hidden Text",Cf=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=pf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ls)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(ls)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},A.prototype.getMetrics=function(e,r){var t=e+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(e,r)),this._data[t]},A})(),Wi=(function(){function A(e,r){this.context=e,this.options=r}return A})(),Qf=1e4,mf=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new Cf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return e.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},e.prototype.applyEffect=function(r){this.ctx.save(),of(r)&&(this.ctx.globalAlpha=r.opacity),sf(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),ji(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Zn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=yf(r.fontFamily).join(", "),a=xt(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Fr(r),s=Ur(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,H,p,Q,L,C,x,U,y,S,H,L;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof yi))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Ei&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof xi))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Li&&t.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof zn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===pr?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(Za),this.ctx.fill(),this.ctx.restore()):t.type===Cr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Za),this.ctx.fill(),this.ctx.restore())),vf(t)&&t.value.length){switch(u=this.createFontStyle(a),H=u[0],p=u[1],Q=this.fontMetrics.getMetrics(H,p).baseline,this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ff(t.styles.textAlign),L=Fr(t),C=0,t.styles.textAlign){case 1:C+=L.width/2;break;case 2:C+=L.width;break}x=L.add(C,0,0,-L.height/2+1),this.ctx.save(),this.path([new V(L.left,L.top),new V(L.left+L.width,L.top),new V(L.left+L.width,L.top+L.height),new V(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bt(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,S=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(H=this.createFontStyle(a)[0],this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new le(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ka(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bt(r.listValue,L),a.letterSpacing,ka(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=XA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),XA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},e.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,k,Q,R,tA,AA,D,z,C,x,U,y,S,H,L,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=sn(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],k=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,k,tA,AA)),[3,6];case 5:su(g)?(Q=sn(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=eu(g.angle,D,z),x=C[0],U=C[1],y=C[2],S=C[3],H=C[4],L=document.createElement("canvas"),L.width=D,L.height=z,h=L.getContext("2d"),b=h.createLinearGradient(U,S,y,H),Sa(g.stops,x).forEach(function(N){return b.addColorStop(N.stop,xA(N.color))}),h.fillStyle=b,h.fillRect(0,0,D,z),D>0&&z>0&&(k=a.ctx.createPattern(L,"repeat"),a.renderRepeat(R,k,tA,AA))):iu(g)&&(M=sn(r,t,[null,null,null]),R=M[0],O=M[1],Z=M[2],D=M[3],z=M[4],eA=g.position.length===0?[Jn]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=tu(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Sa(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,I=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,I),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-I),a.ctx.fillRect(O,_*(Z-I)+I,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(os(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=gf(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=uf(a,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!Ce(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=Uf(Oe(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ce(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=vr(r.curves),C=p.inset?0:Qf,x=lf(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!Ce(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,h,L,h;return kA(this,function(b){return this.ctx.save(),o=Bf(a,n),l=os(a,n),s===2&&(this.path(l),this.ctx.clip()),XA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),XA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),S=(p-y*Q)/(y-1),H=(p-(y+1)*Q)/y,C=H<=0||Math.abs(C-S)<Math.abs(C-H)?S:H),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(XA(l[0])&&(L=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),XA(l[1])&&(L=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=cf(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(Wi),vf=function(A){return A instanceof Si||A instanceof Hi?!0:A instanceof zn&&A.type!==Cr&&A.type!==pr},Uf=function(A,e){switch(A){case 0:return vr(e);case 2:return rf(e);default:return Ur(e)}},Ff=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},bf=["-apple-system","system-ui"],yf=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return bf.indexOf(e)===-1}):A},Ef=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Kn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,xf(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(Wi),xf=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},If=(function(){function A(e){var r=e.id,t=e.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,kt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,kt([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,kt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,kt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),Hf=(function(){function A(e,r){var t;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new If({id:this.instanceName,enabled:e.logging}),this.cache=(t=e.cache)!==null&&t!==void 0?t:new Yd(this,e)}return A.instanceCount=1,A})(),Sf=function(A,e){return e===void 0&&(e={}),Lf(A,e)};typeof window<"u"&&Gi.setContext(window);var Lf=function(A,e){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,b,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j;return kA(this,function(_){switch(_.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(M=e.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:e.proxy,useCORS:(R=e.useCORS)!==null&&R!==void 0?R:!1},a=Qn({logging:(O=e.logging)!==null&&O!==void 0?O:!0,cache:e.cache},n),s={windowWidth:(Z=e.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=e.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=e.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=e.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new le(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Hf(a,o),c=(tA=e.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=e.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new as(l,A,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=qn(u)||Ld(u)?oc(u.ownerDocument):Er(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,S=kf(l,u,e.backgroundColor),H={canvas:e.canvas,backgroundColor:S,scale:(aA=(dA=e.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=e.x)!==null&&q!==void 0?q:0)+U,y:((lA=e.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=e.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(I=e.height)!==null&&I!==void 0?I:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),b=new Ef(l,H),[4,b.render(u)]):[3,3];case 2:return L=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=Mi(l,u),S===h.styles.backgroundColor&&(h.styles.backgroundColor=oe.TRANSPARENT),l.logger.debug("Starting renderer for element at "+H.x+","+H.y+" with size "+H.width+"x"+H.height),b=new mf(l,H),[4,b.render(h)];case 4:L=_.sent(),_.label=5;case 5:return(!((j=e.removeContainer)!==null&&j!==void 0)||j)&&(as.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,L]}})})},kf=function(A,e,r){var t=e.ownerDocument,n=t.documentElement?gt(A,getComputedStyle(t.documentElement).backgroundColor):oe.TRANSPARENT,a=t.body?gt(A,getComputedStyle(t.body).backgroundColor):oe.TRANSPARENT,s=typeof r=="string"?gt(A,r):r===null?oe.TRANSPARENT:4294967295;return e===t.documentElement?Ce(n)?Ce(a)?s:a:n:s},on={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},IA.apply(this,arguments)},Mf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},Kf=function(A,e){var r=IA({},Mf);if(A)for(var t in on)Object.prototype.hasOwnProperty.call(on,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),on[t]));for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),e[t]));return r},cs=function(A,e){return A?IA(IA({},e.rbgcpControlBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlBtn)},ft=function(A,e){return A?IA(IA({},e.rbgcpControlIconBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlIconBtn)},tr=function(A,e){return A?IA(IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn),e.rbgcpControlBtnSelected):IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn)},ee=function(){return ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ee.apply(this,arguments)},Tf=function(A){var e=A.color,r=BA().defaultStyles,t=e??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Df=function(A){var e=A.onSelect,r=BA().defaultStyles,t=E.useState(null),n=t[0],a=t[1],s=E.useState(!1),o=s[0],l=s[1],c=E.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),Sf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,S=U*2,H=n.getImageData(y,S,1,1).data;e("rgba(".concat(H[0],", ").concat(H[1],", ").concat(H[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),S=y.toRgb(),H=S.r,L=S.g,h=S.b;e("rgba(".concat(H,", ").concat(L,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:ee(ee({},r.rbgcpEyedropperBtn),ft(o,r))},m.createElement(Tf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(ic,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},Gn=function(){return Gn=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Gn.apply(this,arguments)},ln=function(A){var e=A.value,r=A.reffy,t=A.label,n=A.config,a=A.callback,s=A.squareWidth,o=A.openAdvanced,l=A.defaultStyles,c=A.pickerIdSuffix,g=n.barSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useState(2),C=Q[0],x=Q[1],U=e*(s-18);E.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},S=function(h){u&&a(Pe(h,g))},H=function(h){u||a(Pe(h,g))},L=function(){p(!0)};return E.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return S(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Gn({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:L,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return S(h)},onClick:function(h){return H(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return H(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Of=function(A){var e=A.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=E.useRef(null),Q=E.useRef(null),C=E.useRef(null);Hl(p,o?.h,u*100,s),Sl(Q,o?.h,B*100,s),Ll(C,o?.h,B*100,s);var x=function(S){var H=SA({h:o?.h,s:S/100,l:u}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},U=function(S){var H=SA({h:o?.h,s:B,l:S/100}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},y=function(S){var H=SA({h:o?.h,s:o?.s*100,v:S}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:e?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:e?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:e?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(ln,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(ln,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(ln,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c})))},Ee=function(){return Ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Ee.apply(this,arguments)},Rf=function(A){var e=A.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:e?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:e?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:Ee({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},CA.apply(this,arguments)},Nf=function(){var A=BA(),e=A.gradientType,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=e==="linear-gradient",o=e==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement($l,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Ac,{color:o?"#568CF5":""})))},_f=function(){var A=BA(),e=A.currentLeft,r=A.currentColor,t=A.defaultStyles,n=A.handleGradient,a=A.pickerIdSuffix,s=function(o){n(r,Ve(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(ac,null),m.createElement("input",{value:e,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},Gf=function(){var A=BA(),e=A.degrees,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=Ve(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(nc,null),m.createElement("input",{value:e,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:e>99?0:e<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},jf=function(){var A=BA(),e=A.colors,r=A.selectedColor,t=A.createGradientStr,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(){if(e?.length>2){var o=e?.map(function(c,g){return CA(CA({},c),{value:g===r-1?yr(c):yt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ft(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(ql,null))},gs=function(A){var e=A.hideGradientType,r=A.hideGradientAngle,t=A.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:e?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!e&&m.createElement(Nf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(Gf,null)),!t&&m.createElement(_f,null),m.createElement(jf,null))},Ut=function(){return Ut=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Ut.apply(this,arguments)},Vf=function(A){var e,r,t=A.hideColorTypeBtns,n=A.setGradient,a=A.isGradient,s=A.setSolid,o=A.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:Ut({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:cs(!a,c)},(e=o?.CONTROLS)===null||e===void 0?void 0:e.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:cs(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Pf=function(A){var e=A.openInputType,r=A.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=e?"visibility 0ms linear":"visibility 100ms linear 150ms",c=e?"z-index 0ms linear":"z-index 100ms linear 150ms",g=e?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){e&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:Ut({visibility:e?"visible":"hidden",zIndex:e?"":-100,opacity:e?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:tr(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:tr(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:tr(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:tr(n==="cmyk",s)},"CMYK"))},Xf=function(A){var e,r,t=A.locales,n=A.hideEyeDrop,a=n===void 0?!1:n,s=A.hideAdvancedSliders,o=s===void 0?!1:s,l=A.hideColorGuide,c=l===void 0?!1:l,g=A.hideInputType,B=g===void 0?!1:g,u=A.hideColorTypeBtns,p=u===void 0?!1:u,Q=A.hideGradientControls,C=Q===void 0?!1:Q,x=A.hideGradientType,U=x===void 0?!1:x,y=A.hideGradientAngle,S=y===void 0?!1:y,H=A.hideGradientStop,L=H===void 0?!1:H,h=BA(),b=h.config,k=h.onChange,M=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=b.defaultColor,eA=b.defaultGradient,tA=E.useState(!1),AA=tA[0],dA=tA[1],aA=E.useState(!1),q=aA[0],lA=aA[1],sA=E.useState(!1),I=sA[0],j=sA[1],_=a&&o&&c&&B,F=(e=O?.color)!==null&&e!==void 0?e:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){k(F)},G=function(){k(N)},P=a&&o&&c&&B,$=P&&p;return $?M&&!C?m.createElement(gs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(Vf,{hideColorTypeBtns:p,setGradient:G,isGradient:M,setSolid:T,locales:t}),!P&&m.createElement("div",{style:Ut({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Df,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!I)},style:ft(I,Z)},m.createElement(ec,{color:I?"#568CF5":""})),!c&&m.createElement("div",{style:ft(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(rc,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ft(q,Z)},m.createElement(tc,{color:q?"#568CF5":""}),m.createElement(Pf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Of,{openAdvanced:I}),!c&&m.createElement(Rf,{openComparibles:AA}),M&&!C&&m.createElement(gs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}))},te=function(){return te=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},te.apply(this,arguments)},us=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Jf=function(A){var e=A.left,r=A.i,t=A.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return te(te({},U),{value:y===C?yr(U):yt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:te(te({},l.rbgcpGradientHandleWrap),{left:(e??0)*u})},m.createElement("div",{style:te(te({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Wf=function(){var A=BA(),e=A.value,r=A.colors,t=A.config,n=A.squareWidth,a=A.currentColor,s=A.handleGradient,o=A.pickerIdSuffix,l=A.createGradientStr,c=t.barSize,g=E.useState(!1),B=g[0],u=g[1];function p(S){return S.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(S){var H,L=Pe(S,c),h=(H=us(us([],r.map(function(b){return te(te({},b),{value:yt(b)})}),!0),[{value:a,left:L}],!1))===null||H===void 0?void 0:H.sort(function(b,k){return b.left-k.left});l(h)},C=function(){u(!1)},x=function(S){B||(Q(S),u(!0))},U=function(S){B&&s(a,Pe(S,c))},y=function(){C()};return E.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(e)},onMouseDown:function(S){return x(S)},onMouseMove:function(S){return U(S)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(S,H){return m.createElement(Jf,{i:H,left:S.left,key:"".concat(H,"-").concat(S),setDragging:u})}))},Yf=function(A){var e=A.locales,r=A.presets,t=A.hideHue,n=A.hideInputs,a=A.hidePresets,s=A.hideOpacity,o=A.hideEyeDrop,l=A.hideControls,c=A.hideInputType,g=A.hideColorGuide,B=A.hidePickerSquare,u=A.hideGradientType,p=A.hideGradientStop,Q=A.hideGradientAngle,C=A.hideColorTypeBtns,x=A.hideAdvancedSliders,U=A.hideGradientControls,y=BA(),S=y.isGradient,H=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(H)},!B&&m.createElement(Jl,null),!l&&m.createElement(Xf,{locales:e,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),S&&m.createElement(Wf,null),!t&&m.createElement(kl,null),!s&&m.createElement(Wl,null),!n&&m.createElement(Gl,null),!a&&m.createElement(zl,{presets:r}))},br=function(){return br=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},br.apply(this,arguments)};function Zf(A){var e=A.idSuffix,r=A.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=A.onChange,a=A.hideControls,s=a===void 0?!1:a,o=A.hideInputs,l=o===void 0?!1:o,c=A.hideOpacity,g=c===void 0?!1:c,B=A.hidePresets,u=B===void 0?!1:B,p=A.hideHue,Q=p===void 0?!1:p,C=A.presets,x=C===void 0?[]:C,U=A.hideEyeDrop,y=U===void 0?!1:U,S=A.hideAdvancedSliders,H=S===void 0?!1:S,L=A.hideColorGuide,h=L===void 0?!1:L,b=A.hideInputType,k=b===void 0?!1:b,M=A.hideColorTypeBtns,R=M===void 0?!1:M,O=A.hideGradientType,Z=O===void 0?!1:O,D=A.hideGradientAngle,z=D===void 0?!1:D,eA=A.hideGradientStop,tA=eA===void 0?!1:eA,AA=A.hideGradientControls,dA=AA===void 0?!1:AA,aA=A.locales,q=aA===void 0?Yl:aA,lA=A.width,sA=lA===void 0?294:lA,I=A.height,j=I===void 0?294:I,_=A.style,F=_===void 0?{}:_,N=A.className,T=A.disableDarkMode,G=T===void 0?!1:T,P=A.disableLightMode,$=P===void 0?!1:P,pA=A.hidePickerSquare,f=pA===void 0?!1:pA,v=A.showHexAlpha,w=v===void 0?!1:v,K=A.config,W=K===void 0?{}:K,X=Ul(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=Kf(oA,F),UA=oA?"-dark".concat(e?"-".concat(e):""):e?"-".concat(e):"";return m.createElement("div",{className:N,style:br(br({},fA.body),{width:sA})},m.createElement(xl,{value:X,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Yf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:H,hideColorGuide:h,hideInputType:k,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const cn="rgb(0, 0, 0)",zf=()=>{const[A,e]=E.useState(localStorage.getItem("customBackgroundColour")||cn),r=n=>{e(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{e(cn),localStorage.setItem("customBackgroundColour",cn),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Zf,{value:A,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),onKeyDown:rr(()=>t()),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var qf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],At=(A,e)=>{var r="";for(let t=1;t<=e;t++){let n=Math.floor(A)/Math.pow(83,e-t)%83;r+=qf[Math.floor(n)]}return r},gn=A=>{let e=A/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},un=A=>{let e=Math.max(0,Math.min(1,A));return e<=.0031308?Math.trunc(e*12.92*255+.5):Math.trunc((1.055*Math.pow(e,.4166666666666667)-.055)*255+.5)},$f=A=>A<0?-1:1,Bn=(A,e)=>$f(A)*Math.pow(Math.abs(A),e),Bs=class extends Error{constructor(A){super(A),this.name="ValidationError",this.message=A}},ds=4,Ah=(A,e,r,t)=>{let n=0,a=0,s=0,o=e*ds;for(let c=0;c<e;c++){let g=ds*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*gn(A[u]),a+=p*gn(A[u+1]),s+=p*gn(A[u+2])}}let l=1/(e*r);return[n*l,a*l,s*l]},eh=A=>{let e=un(A[0]),r=un(A[1]),t=un(A[2]);return(e<<16)+(r<<8)+t},th=(A,e)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(Bn(A[0]/e,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(Bn(A[1]/e,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(Bn(A[2]/e,.5)*9+9.5))));return r*19*19+t*19+n},rh=(A,e,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new Bs("BlurHash must have between 1 and 9 components");if(e*r*4!==A.length)throw new Bs("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=Ah(A,e,r,(C,x)=>p*Math.cos(Math.PI*u*C/e)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=At(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=At(u,1)}else g=1,l+=At(0,1);return l+=At(eh(s),4),o.forEach(B=>{l+=At(th(B,g),2)}),l},nh=rh;async function fs(A){return new Promise((e,r)=>{const t=new Image;t.onload=()=>{e({width:t.width,height:t.height}),typeof A!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof A=="string"?t.src=A:t.src=URL.createObjectURL(A)})}async function hs(A,e=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=nh(g.data,g.width,g.height,e,r);typeof A!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof A=="string"?a.src=A:a.src=URL.createObjectURL(A)})}function dn(A){const e=A.split(",")[1];if(!e)return 0;const r=(e.match(/=/g)||[]).length;return Math.floor(e.length*3/4-r)}function ws(A,e){return A&&A.name?A.name:`Image ${e+1}`}function ah(){const A={};return Object.keys(localStorage).forEach(e=>{A[e]=localStorage.getItem(e)}),new TextEncoder().encode(JSON.stringify(A)).length}function ve(A){if(A===0)return"0 Bytes";if(!A)return"Unknown";const e=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(A)/Math.log(e));return Math.round(A/Math.pow(e,t)*10)/10+" "+r[t]}const sh=({files:A,onConfirm:e,onCancel:r})=>{const[t,n]=E.useState(""),a=()=>{e(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(Us,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:A.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},fn=A=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(A.length))}catch{}},Yi=E.memo(()=>{const[A,e]=E.useState([]),[r,t]=E.useState(!1),[n,a]=E.useState([]),[s,o]=E.useState(!0),[l,c]=E.useState(!1),[g,B]=E.useState({current:0,total:0}),[u,p]=E.useState(!1),[Q,C]=E.useState(new Set),[x,U]=E.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,S]=E.useState(!1),[H,L]=E.useState({usage:0,quota:0}),h=E.useRef(null),b=E.useRef(0),k=5e7;E.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();L({usage:N.usage||0,quota:N.quota||k})}catch(N){console.warn("Could not get storage estimate:",N),L({usage:0,quota:k})}else L({usage:0,quota:k})})()},[A]),E.useEffect(()=>{(async()=>{try{await Qo();const N=await Ue();e(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!Ht(T.url))try{const G=await fs(T.url),P=await hs(T.url);await mo(T.id,{dimensions:G,blurHash:P});const $=await Ue();e($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const M=E.useCallback(async(F,N,T,G=!1)=>{try{const P={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await or(P);const $=await Ue();e($),fn($),G||hA.emit("refresh","background")}catch(P){throw console.error("Error saving background:",P),P}},[]),R=async(F,N="")=>{const T=A.reduce((P,$)=>$.url&&$.url.startsWith("data:")?P+dn($.url):P,0),G=H.quota||k;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(P){console.warn("Could not request storage persistence:",P)}if(Ht(F.type)){if(T+F.size>G)throw new Error("no_storage");const P=new FileReader;return new Promise(($,pA)=>{P.onloadend=()=>{$({dataUrl:P.result,metadata:{name:ws(F,A.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},P.onerror=pA,P.readAsDataURL(F)})}else{const P=await aa.compressAccurately(F,{size:450,accuracy:.9}),$=H.quota||k;if(T+P.size>$)throw new Error("no_storage");const pA=await aa.filetoDataURL(P),[f,v]=await Promise.all([fs(pA),hs(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:ws(F,A.length),dimensions:f,fileSize:dn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const P=await R(F[G],N);await M(F[G],P.dataUrl,P.metadata,!0),B({current:G+1,total:F.length})}catch(P){if(P.message==="no_storage"||P.name==="QuotaExceededError"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=E.useCallback(async(F,N)=>{try{F==="add"?await or(""):await fo(N);const T=await Ue();e(T),fn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await vo(F);const N=await Ue();e(N),C(new Set),fn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=E.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...A].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=A.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+dn(N.url):F,0),lA=H.quota||k,sA=q/lA*100,I=ah(),j=5242880;E.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),b.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),b.current--,b.current===0&&p(!1)},P=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),b.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=P,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[A.length,O]);const _=aA.filter(F=>F&&Ht(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(ra,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(ho,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[A.length," ",A.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",ve(q)," / ",ve(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(na,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):A.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=A.findIndex(G=>G===F),T=F&&Ht(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N),"aria-label":F.name||`${N+1}`})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=wo(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(po,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:ve(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(na,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button","aria-label":d.getMessage("modals.main.settings.sections.background.source.remove"),onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(ht,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ra,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(Co,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(_s,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(sh,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>S(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>S(!1),"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(ht,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[ve(q)," / ",ve(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[ve(I)," / ",ve(j)," (",Math.round(I/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>S(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Yi.displayName="CustomSettings";const ih=({usingImage:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!A}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!A})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const oh=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function Zi(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const lh=({backgroundFilter:A,onFilterChange:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:e,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:oh}),A!=="none"&&i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),ch=({backgroundType:A,onTypeChange:e})=>i.jsxs(rA,{final:A==="random_colour"||A==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:e,category:"background",items:Zi()})})]}),ps=({icon:A,title:e,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsx(A,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",onClick:n?a=>a.stopPropagation():void 0,children:n||i.jsx(vs,{})})]}),zi=E.memo(({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=E.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);E.useEffect(()=>{o&&A!=="source"&&e("source",r)},[o,A,e,r]);const l=()=>{switch(t){case"custom":return i.jsx(Yi,{});case"colour":return i.jsx(zf,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>A==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>e(null,r)}):A==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>e(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!A&&i.jsxs(i.Fragment,{children:[i.jsx(ps,{icon:Uo,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>e("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:Zi()})}),g&&i.jsx(ps,{icon:Fo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>e("effects",r)})]}),!A&&g&&i.jsx(ih,{usingImage:c}),A==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(ch,{backgroundType:t,onTypeChange:n}),l()]}),g&&A==="effects"&&i.jsx(lh,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});zi.displayName="BackgroundOptions";function gh(){const A=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...bo()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:A})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(Es,{name:"recentChats",category:"widgets"})})]})]})}const uh=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function Bh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const[t,n]=E.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(xo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>Ko(),icon:i.jsx(Io,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Ho,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(_s,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>To(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(So,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=A==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(yo,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Pn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>e("data",r),icon:i.jsx(Eo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...uh.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(cr,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(cr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function dh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(wn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(cr,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(wn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:lt.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=A==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Pn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(Lo,{}),onClick:()=>e("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const fh=E.memo(dh),hh=`BSD 3-Clause License
+
+Copyright (c) 2019-2026 The Mue Authors
+Copyright (c) 2018-2019 David Ralph
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+`;function wh(){const A=Object.keys(ko),{MUE_REPO_URL:e,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${A.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:hh})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function ph(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const Ch=E.memo(ph),Qh=E.lazy(()=>Mo(()=>import("./index-bn8Kdr1t.js"),__vite__mapDeps([0,1,2]),import.meta.url));function mh(){return localStorage.getItem("timeType")==="analogue"?i.jsx(E.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(Qh,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const vh=E.memo(mh);function Uh(A){return jn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(A)}function Fh(A){return jn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(A)}function bh(A){return jn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(A)}function yh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(Uh,{})}),i.jsx("div",{children:i.jsx(Fh,{})}),i.jsx("div",{children:i.jsx(bh,{})})]})})}const Eh=E.memo(yh);function xh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const Ih=E.memo(xh);function Hh(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const Sh=E.memo(Hh),Lh={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},kh=({id:A})=>{const{attributes:e,listeners:r,setNodeRef:t,transform:n,transition:a}=Is({id:A}),s={transform:Hs.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...e,...r,className:"sortableItem",children:[Lh[A],i.jsx(xs,{})]})},Mh=()=>{const[A,e]=E.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Ss(gr(Ms),gr(ks,{coordinateGetter:Ls})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&e(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Rs(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(Ch,{});case"time":return i.jsx(vh,{});case"quicklinks":return i.jsx(Eh,{});case"date":return i.jsx(Ih,{});case"message":return i.jsx(Sh,{});default:return null}};return E.useEffect(()=>{localStorage.setItem("order",JSON.stringify(A)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[A]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:A.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(Ks,{sensors:r,collisionDetection:Ts,onDragEnd:t,children:i.jsx(Ds,{items:A,strategy:Os,children:i.jsx("ul",{className:"sortableContainer",children:A.map(s=>n(s)?i.jsx(kh,{id:s},s):null)})})})]})]})]})},Cs=[{label:"modals.main.marketplace.product.overview",name:"order",component:Mh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:nl},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:il},{label:"modals.main.settings.sections.time.title",name:"time",component:ol},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:Bl},{label:"modals.main.settings.sections.date.title",name:"date",component:ll},{label:"modals.main.settings.sections.message.title",name:"message",component:dl},{label:"modals.main.settings.sections.background.title",name:"background",component:zi},{label:"wb.settings_taskbox",name:"taskbox",component:gh},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:fh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:Bh},{label:"wb.settings_credits",name:"credits",component:wh}];function Kh(A){const e=Ft(),r=E.useMemo(()=>Cs.map(t=>({...t,translatedLabel:e(t.label)})),[e]);return i.jsx(Al,{changeTab:t=>A.changeTab(t),current:"settings",currentTab:A.currentTab,onSectionChange:A.onSectionChange,onSubSectionChange:A.onSubSectionChange,currentSubSection:A.currentSubSection,deepLinkData:A.deepLinkData,navigationTrigger:A.navigationTrigger,sections:Cs,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:A.currentSubSection,onSubSectionChange:A.onSubSectionChange,sectionName:n})},n))})}const Dh=E.memo(Kh);export{Dh as default};
diff --git a/src/chrome/newtab/assets/Settings-DqpzHKoz.js b/src/chrome/newtab/assets/Settings-DqpzHKoz.js
deleted file mode 100644
index 1dd166c33..000000000
--- a/src/chrome/newtab/assets/Settings-DqpzHKoz.js
+++ /dev/null
@@ -1,53 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DdIzjGFh.js","./index-ZvUWfRHz.js","./index-C4nKw5hY.css"])))=>i.map(i=>d[i]);
-import{g as Cs,a as Ue,y as RA,v as d,s as zi,r as qi,E as hA,c as qn,b as ir,d as E,j as i,B as vA,M as $i,e as Ao,f as eo,h as Qs,S as ot,R as m,i as ms,u as Ut,k as to,D as ro,l as vs,m as we,n as $n,T as Aa,q as Us,o as no,p as Fs,t as ht,w as fn,x as wt,z as bs,C as mA,A as KA,F as ao,G as so,H as io,I as oo,J as Tr,K as ys,L as or,N as lr,O as hn,P as tr,Q as Es,U as xs,V as Is,W as lo,X as Hs,Y as cr,Z as Ss,_ as Ls,$ as ks,a0 as Ms,a1 as Ks,a2 as Ts,a3 as Ds,a4 as co,a5 as Os,a6 as ea,a7 as go,a8 as Rs,a9 as xt,aa as uo,ab as Bo,ac as It,ad as ta,ae as fo,af as ra,ag as ho,ah as wo,ai as po,aj as Ns,ak as Co,al as Qo,am as mo,an as na,ao as vo,ap as Uo,aq as Fo,ar as bo,as as yo,at as Eo,au as xo,av as Io,aw as Ho,ax as So,ay as Lo,az as ko,aA as Gn}from"./index-ZvUWfRHz.js";const wn="wbBackgroundsBackup";async function Mo(){const A={};Object.keys(localStorage).forEach(n=>{A[n]=localStorage.getItem(n)});try{const n=await Cs(),a=n>0?await Ue():[];if(a.length!==n)throw new Error("uploaded backgrounds could not be read");A[wn]=a.map(({id:s,...o})=>o)}catch(n){return console.error("Could not include uploaded backgrounds in the backup:",n),RA(d.getMessage("toasts.error")),!1}const e=new Date,t=`webbrain_newtab_settings_backup_${`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}_${e.getHours().toString().padStart(2,"0")}-${e.getMinutes().toString().padStart(2,"0")}-${e.getSeconds().toString().padStart(2,"0")}`}.json`;return zi(A,t),d.stats.postEvent("tab","Settings exported"),!0}function pt(A){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(A)}function Ge(A){let e=String(A??"").trim();if(!e)return null;const r=/^https?:\/\//i.exec(e);e=r?r[0].toLowerCase()+e.slice(r[0].length):`https://${e}`;try{if(!/^https?:$/.test(new URL(e).protocol))return null}catch{return null}return pt(e)?e:null}async function Ko(A,e=!1){let r,t;try{const s=JSON.parse(A);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[wn]:r,...t}=s);const o=_o(t);if(o)throw new Error(`invalid settings: ${o}`);if(Ro(t),r!==void 0&&!Vo(r))throw new Error(`invalid settings: ${wn} has an entry of the wrong shape`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Po(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),e||d.stats.postEvent("tab","Settings imported"),qi?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const je=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),NA=A=>typeof A=="string",To=A=>NA(A.key)&&A.key!==""||Number.isFinite(A.key),Do=["time","greeting","date","quicklinks","message"],_s=["applinks","quicklinks"],aa=A=>je(A)&&NA(A.name)&&NA(A.url)&&Ge(A.url)!==null&&To(A),Oo={applinks:aa,backgroundExclude:NA,customBackground:A=>NA(A)&&jn(A),customEvents:A=>je(A)&&NA(A.name)&&Number.isFinite(A.month)&&Number.isFinite(A.date),quicklinks:aa,messages:NA,order:A=>Do.includes(A),todo:A=>je(A)&&NA(A.value)};function Ro(A){for(const e of _s)e in A&&(A[e]=JSON.stringify(JSON.parse(A[e]).map(r=>({...r,url:Ge(r.url)}))));return A}const No=A=>NA(A)&&A.trim()!==""&&(typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("background",A));function _o(A){for(const[e,r]of Object.entries(A))if(r!==null&&typeof r=="object")return`${e} is not a plain value`;if("firstRun"in A&&(A.firstRun===null||String(A.firstRun)===""))return"firstRun is empty";for(const[e,r]of Object.entries(Oo)){if(!(e in A)||e==="customBackground"&&(A[e]===""||A[e]==="null"))continue;let t;try{t=JSON.parse(A[e])}catch{return`${e} is not valid JSON`}if(!Array.isArray(t))return`${e} is not a list`;if(!t.every(r))return`${e} has an entry of the wrong shape`;if(e==="order"&&new Set(t).size!==t.length)return"order lists a widget more than once";if(_s.includes(e)&&new Set(t.map(n=>String(n.key))).size!==t.length)return`${e} has entries that share a key`}if("timezone"in A&&A.timezone!=="auto")try{new Intl.DateTimeFormat("en",{timeZone:A.timezone})}catch{return"timezone is not a known time zone"}if("favourite"in A&&A.favourite!=="null")try{const e=JSON.parse(A.favourite);if(e!==null&&!je(e))return"favourite is not an object";if(e!==null){if(!(e.type==="random_colour"||e.type==="random_gradient"?No(e.url):jn(e.url)))return"favourite has no usable url";if(!(Ae(e.credit,NA)&&Ae(e.colour,NA)&&Ae(e.blur_hash,NA)&&Ae(e.hidden,a=>typeof a=="boolean")))return"favourite has malformed display details"}}catch{return"favourite is not valid JSON"}return null}function Go(A,e){if(/;base64$/i.test(A)){const r=e.replace(/\s+/g,"");return r.length%4===0&&/^[A-Za-z0-9+/]+={0,2}$/.test(r)}try{return decodeURIComponent(e),!0}catch{return!1}}const jn=A=>{if(typeof A!="string")return!1;const e=/^data:(image|video)\/[^;,]+((?:;[^,]*)?),([\s\S]+)$/i.exec(A);if(e)return Go(e[2],e[3]);try{return/^https?:$/.test(new URL(A).protocol)}catch{return!1}},Ae=(A,e)=>A==null||e(A),Ht=A=>typeof A=="number"&&Number.isFinite(A),jo=A=>je(A)&&jn(A.url)&&Ae(A.name,NA)&&Ae(A.folder,NA)&&Ae(A.blurHash,NA)&&Ae(A.fileSize,Ht)&&Ae(A.uploadDate,Ht)&&Ae(A.dimensions,e=>je(e)&&Ht(e.width)&&Ht(e.height)),Vo=A=>Array.isArray(A)&&A.every(jo),sa=({id:A,...e})=>e;async function Po(A){const e=A.map(sa),r=await Cs(),t=r>0?(await Ue()).map(sa):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await qn();for(const a of t)await ir(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await qn();for(const a of e)await ir(a)}catch(a){throw await n(),a}return n}function TA(A){const[e,r]=E.useState(localStorage.getItem(A.setting)==="true");E.useEffect(()=>{r(localStorage.getItem(A.setting)==="true")},[A.setting]);const t=()=>{const s=localStorage.getItem(A.setting)==="true";if(localStorage.setItem(A.setting,!s),r(!s),d.stats.postEvent("setting",`${A.name} ${e===!0?"enabled":"disabled"}`),hA.emit("toggle",A.setting),A.element&&!document.querySelector(A.element)){Qs();return}hA.emit("refresh",A.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:e?i.jsx($i,{}):i.jsx(Ao,{}),label:e?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(A.title)}`,"_blank"),icon:i.jsx(eo,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:A.secondaryTitle||A.title}),i.jsxs("div",{className:"headerActions",children:[A.visibilityToggle&&i.jsx(n,{}),A.report!==!1&&i.jsx(a,{}),A.children]})]})}function rA(A){const e=`${A.final?"settingsRow settingsNoBorder":"settingsRow"} ${A.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:e,children:A.children})}function nA(A){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A.title}),i.jsx("span",{className:"subtitle",children:A.subtitle})]})}function cA(A){return i.jsx("div",{className:"action",children:A.children})}const Xo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Jo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Wo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],lt={zoom:Xo,toast:Jo,background:Wo},Ft=({children:A,...e})=>{const[r,t]=E.useState(localStorage.getItem(e.setting)==="true");return E.useEffect(()=>{const n=a=>{a===e.setting&&t(localStorage.getItem(e.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[e.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[e.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(ot,{name:e.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:lt.zoom,category:e.zoomCategory||e.category})})]}),A]})};function Vn({title:A,subtitle:e,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:e})]})]}),i.jsx("div",{className:"action",onClick:m.Children.count(n)===0?void 0:a=>a.stopPropagation(),children:m.Children.count(n)===0?i.jsx(ms,{}):n})]})}function Yo({label:A,currentTab:e,onClick:r,navbarTab:t}){const n=Ut(),[a,s]=E.useState(!0);E.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=to(A,{getMessage:n}),l=ro.some(p=>n(p)===A),B=`${t?"navbar-item":"tab-list-item"}${e===A?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return A===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(A),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:A})]}),l&&i.jsx("hr",{})]})}const Zo=E.memo(Yo),zo=({isVisible:A,onHide:e})=>A?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("button",{type:"button",className:"closeModal",onClick:e,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(vs,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(we,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class qo extends E.PureComponent{constructor(e){super(e),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(e){return console.error(e),{error:!0,errorData:e}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx($n,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx($n,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(we,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const $o=({children:A,navbar:e=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Ut(),g=(()=>{if(a?.section&&o){const h=o.find(b=>b.name===a.section);if(h)return{label:l(h.label),name:h.name}}return{label:A[0]?.props.label,name:A[0]?.props.name}})(),[B,u]=E.useState(g.label),[p,Q]=E.useState(g.name),[C,x]=E.useState(localStorage.getItem("showReminder")==="true"),U=E.useRef(null),y=E.useRef(null),S=(h,b)=>{b!==p&&d.stats.postEvent("tab",`Opened ${b}`),u(h),Q(b),U.current&&(U.current.scrollTop=0),t&&t(h,b)};E.useEffect(()=>{t&&B&&t(B,p,{fromHistory:!0})},[]),E.useEffect(()=>{if(o&&p){const h=o.find(b=>b.name===p);if(h){const b=l(h.label);u(b)}}},[l,o,p]),E.useEffect(()=>{if(!(!s||y.current===s)){if(s?.type==="settings-default"){y.current=s;const h=A[0]?.props;h&&(u(h.label),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(h.label,h.name,{fromHistory:!0}));return}if(s?.type==="settings-section"&&o){const h=o.find(b=>b.name===s.data);if(h){y.current=s;const b=l(h.label);u(b),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(b,h.name,{fromHistory:!0})}}}},[s,o,l]),E.useEffect(()=>{n&&(u(A[0]?.props.label),Q(A[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(A[0]?.props.label,A[0]?.props.name))},[n]),E.useEffect(()=>{const h=()=>x(!0);return hA.on("reminder",h),()=>hA.off("reminder",h)},[]);const H=()=>{localStorage.setItem("showReminder","false"),x(!1)},L=r===Aa.SETTINGS||r===Aa.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[L?i.jsxs("div",{className:"modalSidebar",children:[A.map((h,b)=>i.jsx(Zo,{currentTab:B,label:h.props.label,onClick:k=>S(k,h.props.name),navbarTab:e},b)),i.jsx(zo,{isVisible:C,onHide:H})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:A.map((h,b)=>h.props.label!==B?null:i.jsx(qo,{children:h.props.children},`error-boundary-${b}`))})]})};async function gr(A){const e=String(A??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(e)?e:`https://${e}`).hostname.replace(/^www\./i,"")||e}catch{return e}}const Al=({item:A,deleteLink:e,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>e(A.key,C),href:A.url,target:g,rel:B,draggable:!1,children:A.name});const p=A.icon||Us(A.url,A.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,A.key),onDragOver:C=>a&&a(C,A.key),onDrop:C=>s&&s(C,A.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(no,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:A.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:A.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:A.url,children:A.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(A),icon:i.jsx(Fs,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>e(A.key,C),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function el({appsEnabled:A}){const e=Ut(),[r,t]=E.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=Ge(c),!c)return t(u=>({...u,urlError:e("widgets.quicklinks.url_error")}));if(g.length>0&&pt(g)===!1)return t(u=>({...u,iconError:e("widgets.quicklinks.icon_error")}));B.push({name:l||await gr(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=Ge(g),!g)return t(Q=>({...Q,urlError:e("widgets.quicklinks.url_error")}));if(B.length>0&&pt(B)===!1)return t(Q=>({...Q,iconError:e("widgets.quicklinks.icon_error")}));p.name=c||await gr(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!A,children:[i.jsx(nA,{title:e("widgets.navbar.apps.title"),subtitle:e("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(fn,{}),label:e("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(Al,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(bs,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function tl(){const A=Ut(),[e,r]=E.useState(localStorage.getItem("refresh")==="true"),[t,n]=E.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:A("modals.main.settings.additional_settings"),subtitle:A("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:A(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=E.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!e):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:A(u)})]})},g=[{icon:i.jsx(ao,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(so,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(io,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(we,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(oo,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:A("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!e,children:[i.jsx(nA,{title:A(`${a}.refresh`),subtitle:A("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:A("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:A("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:A(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(el,{appsEnabled:t})]})}const rl=E.memo(tl),ia=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],nl=A=>{const[e,r,t]=String(A).split("-").map(Number);return e&&r&&t?new Date(e,r-1,t):new Date},al=A=>`${A.getFullYear()}-${String(A.getMonth()+1).padStart(2,"0")}-${String(A.getDate()).padStart(2,"0")}`,sl=({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=E.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=E.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=E.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const b=h.target.value?nl(h.target.value):new Date;localStorage.setItem("birthday",b),s(b)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],b={id:"widgets.greeting.halloween",name:"",month:1,date:1},k=[...h,b];h.push(b),localStorage.setItem("customEvents",JSON.stringify(h)),n(k)},Q=h=>{const b=t.filter((k,M)=>M!==h);localStorage.setItem("customEvents",JSON.stringify(b)),n(b)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(ia)),n(ia),RA(d.getMessage("toasts.reset"))},x=(h,b)=>{n(M=>{const R=[...M];return R[h]=b,R});const k=JSON.parse(localStorage.getItem("customEvents")||"[]");k[h]=b,localStorage.setItem("customEvents",JSON.stringify(k))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(lr,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(ys,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:al(a),required:!0})]})]})]}),S=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(we,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(or,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,b)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Tr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:k=>{const M={...h,name:k.target.value};x(b,M)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=31){const R={...h,date:M};x(b,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=12){const R={...h,month:M};x(b,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(b),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},b))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Tr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(or,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),H=A==="events";let L;return H?L=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>e(null,r),report:!1}):L=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[L,H?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),S()]}):i.jsxs(Ft,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Vn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>e("events",r),icon:i.jsx(Tr,{})})]})]})},il=()=>{const[A,e]=E.useState(localStorage.getItem("timeType")||"digital"),[r,t]=E.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=E.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=E.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:A==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>e(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(hn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),onKeyDown:tr(()=>c("hourColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),onKeyDown:tr(()=>c("minuteColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),onKeyDown:tr(()=>c("secondColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(A){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(Ft,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function ol(){const[A,e]=E.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(Ft,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{e(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:A==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[A==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const ll=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(Es,{})}),cl=({value:A,enabled:e,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=xs({id:A.key,disabled:!e}),g={transform:Is.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||Us(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${e?"":"disabled"}`,role:"listitem",children:[i.jsx(ll,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(A),alt:A.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:A.name}),i.jsx("div",{className:"quicklink-url",children:A.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{e&&(u.stopPropagation(),r(A))},title:"Edit",disabled:!e,"aria-disabled":!e,children:[i.jsx(Fs,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{e&&(u.stopPropagation(),t(A.key,u))},title:"Remove",disabled:!e,"aria-disabled":!e,children:[i.jsx(lo,{}),i.jsx("span",{children:"Remove"})]})]})]})},gl=({items:A,enabled:e,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Hs(cr(ks,{activationConstraint:{distance:6}}),cr(Ls,{coordinateGetter:Ss}));return i.jsx(Ms,{sensors:a,collisionDetection:Ks,onDragEnd:r,children:i.jsx(Ts,{items:A.map(s=>s.key),strategy:Ds,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:A.map(s=>i.jsx(cl,{value:s,enabled:e,startEditLink:t,deleteLink:n},s.key))})})})},Ye=()=>{try{const A=localStorage.getItem("quicklinks");if(!A)return[];const e=JSON.parse(A);return Array.isArray(e)?e:[]}catch(A){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",A),[]}},ul=()=>{const[A,e]=E.useState(Ye()),[r,t]=E.useState(!1),[n,a]=E.useState(""),[s,o]=E.useState(""),[l,c]=E.useState(!1),[g,B]=E.useState(""),[u,p]=E.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=E.useRef(),C=E.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Ye().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Ye();if(O=Ge(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&pt(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await gr(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},S=R=>{c(!0),B(R),t(!0)},H=async(R,O,Z,D)=>{const z=Ye(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=Ge(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&pt(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await gr(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),e(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},L=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=A.findIndex(tA=>tA.key===O.id),z=A.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Os(A,D,z);C.current=!0,e(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};E.useEffect(()=>{x(u)},[u]),E.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Ye(),z=A||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),e(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,A]);const h="modals.main.settings.sections.quicklinks",b=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),k=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),M=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(fn,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(Ft,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(b,{}),i.jsx(k,{}),i.jsx(M,{}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(co,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(fn,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(gl,{items:A,enabled:u,onDragEnd:L,startEditLink:R=>S(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(bs,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>H(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Bl=()=>{const[A,e]=E.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...A];a==="add"?o.push(""):o.splice(s,1),e(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...A];c[o]=l,e(c),localStorage.setItem("messages",JSON.stringify(c)),Qs()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(Ft,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(or,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:A.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(ea,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(go,{value:A[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ea,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(or,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Dr={exports:{}},oa;function dl(){return oa||(oa=1,(function(A){(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,s=e.min,o=e.max,l=e.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,X,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=e.pow((v+.055)/1.055,2.4),w<=.03928?X=w/12.92:X=e.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=e.pow((K+.055)/1.055,2.4),.2126*W+.7152*X+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(H,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,X=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(P(f.r)&&P(f.g)&&P(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):P(f.h)&&P(f.s)&&P(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):P(f.h)&&P(f.s)&&P(f.l)&&(K=F(f.s),X=F(f.l),v=p(f.h,K,X),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=(K+W)/2;if(K==W)X=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,l:fA}}function p(f,v,w){var K,W,X;f=q(f,360),v=q(v,100),w=q(w,100);function oA(VA,We,ZA){return ZA<0&&(ZA+=1),ZA>1&&(ZA-=1),ZA<1/6?VA+(We-VA)*6*ZA:ZA<1/2?We:ZA<2/3?VA+(We-VA)*(2/3-ZA)*6:VA}if(v===0)K=W=X=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),X=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:X*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)X=0;else{switch(K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=e.floor(f),W=f-K,X=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,VA=[w,oA,X,X,fA,w][UA],We=[fA,w,w,oA,X,X][UA],ZA=[X,X,fA,w,w,oA][UA];return{r:VA*255,g:We*255,b:ZA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var X=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)&&X[3].charAt(0)==X[3].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0)+X[3].charAt(0):X.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function H(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function L(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function b(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function k(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function M(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,X=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,X.push(c(K));return X}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,X=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:X})),X=(X+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),X=w/100,oA={r:(W.r-K.r)*X+K.r,g:(W.g-K.g)*X+K.g,b:(W.b-K.b)*X+K.b,a:(W.a-K.a)*X+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(e.max(w.getLuminance(),K.getLuminance())+.05)/(e.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,X;switch(X=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":X=K>=4.5;break;case"AAlarge":X=K>=3;break;case"AAAsmall":X=K>=7;break}return X},c.mostReadable=function(f,v,w){var K=null,W=0,X,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var VA=0;VA<v.length;VA++)X=c.readability(f,v[VA]),X>W&&(W=X,K=c(v[VA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){I(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),e.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function I(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return e.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function P(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}A.exports?A.exports=c:window.tinycolor=c})(Math)})(Dr)),Dr.exports}var fl=dl();const SA=Rs(fl);var Re=function(){return Re=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Re.apply(this,arguments)},hl=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},wl=function(A){A===void 0&&(A="");var e={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(I){var j=new Error(A+": "+I);throw j}function t(I){A=A.substr(I)}function n(I){var j=/^[\n\r\t\s]+/.exec(A);j&&t(j[0].length);var _=I.exec(A);return _&&t(_[0].length),_}function a(I){var j=I(),_=[];if(j)for(_.push(j);n(e.comma);)j=I(),j?_.push(j):r("One extra comma");return _}function s(I,j,_){var F=n(j);if(F)return{type:I,value:F[_]}}function o(){var I=s("hex",e.hexColor,1);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(I){var j=Fe(I?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(I,j){var _=n(I);if(_){n(e.startCall)||r("Missing (");var F=j(_);return n(e.endCall)||r("Missing )"),F}}function g(){return c(e.hslColor,dA)}function B(){return c(e.rgbaColor,l)}function u(){return c(e.rgbColor,q)}function p(){var I=s("literal",e.literalColor,0);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(e.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var I,j=C();return j||r("Expected color definition"),j.left=parseInt((I=lA())===null||I===void 0?void 0:I.value),j}function U(I,j,_){return c(j,function(){var F=_();return F&&(n(e.comma)||r("Missing comma before color stops")),{type:I,orientation:F,colorStops:a(x)}})}function y(){return h()||b()}function S(){return U("linear-gradient",e.linearGradient,y)||U("repeating-linear-gradient",e.repeatingLinearGradient,y)||U("radial-gradient",e.radialGradient,k)||U("repeating-radial-gradient",e.repeatingRadialGradient,k)}function H(){return a(S)}function L(){var I,j=H();A.length>0&&r("Invalid input not EOF");var _=j[0],F=(I=_?.colorStops)===null||I===void 0?void 0:I.filter(function(T){return Fe(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,P){return P===0?br(G):bt(G)};return Re(Re({},_),{colorStops:_.colorStops.map(function(G,P){return Re(Re({},G),{value:T(G,P)})})})};return N()}function h(){return s("directional",e.sideOrCorner,1)}function b(){return s("angular",e.angleValue,1)}function k(){var I,j=M(),_;return j&&(I=[],I.push(j),_=A,n(e.comma)&&(j=M(),j?I.push(j):A=_)),I}function M(){var I=O()||Z();if(I)I.at=z();else{var j=D();if(j){I=j;var _=z();_&&(I.at=_)}else{var F=eA();F&&(I={type:"default-radial",at:F})}}return I}function R(){return s("px",e.pixelValue,1)||s("em",e.emValue,1)}function O(){var I=s("shape",/^(circle)/i,0);return I&&(I.style=R()||D()),I}function Z(){var I=s("shape",/^(ellipse)/i,0);return I&&(I.style=lA()||D()),I}function D(){return s("extent-keyword",e.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var I=eA();return I||r("Missing positioning value"),I}}function eA(){var I=tA();if(I.x||I.y)return{type:"position",value:I}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(e.number)[1]}var dA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},aA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},q=function(I){var j=Fe(I?.[0]),_=n(e.spacedRgbColor),F=_||hl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],P=F[4],$=P===void 0?1:P;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",e.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",e.positionKeywords,1)}return L()},bt=function(A){return A.value.toLowerCase()},br=function(A){return A.value.toUpperCase()},pl=function(A,e,r){var t=A?.includes("gradient");if(t){var n=A?.includes("conic"),a=n?r:A;n&&console.log("Sorry we cant handle conic gradients yet");var s=wl(a);return s?.colorStops}else{var a=A||e;return[{value:a}]}},Ve=function(A,e,r){return isNaN(A)||A<e?e:A>r?r:A},re=function(A){return Math.round(A)},ur=function(){return ur=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ur.apply(this,arguments)},Gs=function(A){var e=A.target.parentNode.getBoundingClientRect(),r=A.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:e?.x+t,offsetTop:e?.y,clientWidth:e?.width,clientHeight:e?.height}};function Pe(A,e){var r=Gs(A),t=r.offsetLeft,n=r.clientWidth,a=A.clientX-t-e/2,s=n-18,o=Ve(a,0,s);return Math.round(o/(s/100))}function Cl(A,e,r,t,n){var a=A*r-n/2,s=(100-e)/100*t-n/2;return[a,s]}var Ql=function(A){if(A.clientX)return{clientX:A.clientX,clientY:A.clientY};var e=A.touches[0]||{};return{clientX:e.clientX,clientY:e.clientY}};function ml(A,e){var r=Gs(A),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=Ql(A),l=o.clientX,c=o.clientY,g=function(){var u=l-t-e/2;return Ve(u,-9,a-10)},B=function(){var u=c-n-e/2;return Ve(u,-9,s-10)};return[g(),B()]}var Fe=function(A){var e;return A?.[0]===((e=A?.[0])===null||e===void 0?void 0:e.toUpperCase())},js=function(A){if(A==="to top")return 0;if(A==="to bottom")return 180;if(A==="to left")return 270;if(A==="to right")return 90;if(A==="to top right")return 45;if(A==="to bottom right")return 135;if(A==="to bottom left")return 225;if(A==="to top left")return 315;var e=A||0;return parseInt(e)},vl=function(A){var e,r,t,n,a;if(typeof A=="string")return A;if(!((e=A?.type)===null||e===void 0)&&e.includes("gradient")){var s=(r=A?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=A?.type,c=js((n=A?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=A?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},Ul=function(A,e){var r=A?.map(function(a,s){return ur(ur({},a),{index:s})}),t=r?.find(function(a){return Fe(a.value)}),n=t||r[0];return{currentColor:n?.value||e,selectedColor:n?.index||0,currentLeft:n?.left||0}},Fl=function(A){var e,r=A?.split(",")[0],t=(e=r?.split("(")[1])===null||e===void 0?void 0:e.replace("deg","");return js(t)},bl=function(A){var e=A?.includes("gradient"),r=A?.split("(")[0],t=Fl(A),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:e,gradientType:r}},DA=function(){return DA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},DA.apply(this,arguments)},yl=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Vs=E.createContext(null);function El(A){var e,r,t,n,a=A.value,s=A.children,o=A.onChange,l=A.isDarkMode,c=A.squareWidth,g=A.hideOpacity,B=A.showHexAlpha,u=A.squareHeight,p=A.passedConfig,Q=A.defaultStyles,C=A.pickerIdSuffix,x={barSize:(e=p.barSize)!==null&&e!==void 0?e:St.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:St.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:St.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:St.defaultGradient},U=pl(a,x.defaultColor,x.defaultGradient),y=bl(a),S=y.degrees,H=y.degreeStr,L=y.isGradient,h=y.gradientType,b=Ul(U,x.defaultGradient),k=b.currentColor,M=b.selectedColor,R=b.currentLeft,O=E.useState("rgb"),Z=O[0],D=O[1],z=E.useState({}),eA=z[0],tA=z[1],AA=SA(k),dA=AA.toRgb(),aA=AA.toHsv(),q=E.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];E.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[k]);var I=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),P=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(H,", ").concat(P.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var P=U?.filter(function(pA){return!Fe(pA.value)}),$=yl([{value:T.toUpperCase(),left:G??R}],P,!0);I($)},_=function(T){L?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(P,$){return DA(DA({},P),{value:$===M-1?br(P):bt(P)})}),G=T?.filter(function(P,$){return $!==M});I(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:S,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:L,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:k,selectedColor:M,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:I};return m.createElement(Vs.Provider,{value:N},s)}function BA(){var A=E.useContext(Vs);if(!A)throw new Error("usePicker has to be used within <PickerContext.Provider>");return A}var St={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},xl=function(A,e){E.useEffect(function(){var r,t=(r=A?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,e,14);for(var n=t.createLinearGradient(0,0,e,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[A,e])},Il=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Hl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Sl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:e,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[A,e,r,t])},Br=function(){return Br=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Br.apply(this,arguments)},Ll=function(){var A=E.useRef(null),e=BA(),r=e.config,t=e.handleChange,n=e.squareWidth,a=e.hc,s=e.setHc,o=e.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=r.barSize;xl(A,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Pe(U,B)*3.6,S=SA({h:y,s:a?.s,v:a?.v}),H=S.toRgb(),L=H.r,h=H.g,b=H.b;t("rgba(".concat(L,", ").concat(h,", ").concat(b,", ").concat(a.a,")")),s(Br(Br({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return E.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:A,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function kl(A,e,r){var t=0,n=0,a=0,s=0;if(A===null||e===null||r===null||isNaN(A)||isNaN(e)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(A<0||e<0||r<0||A>255||e>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(A===0&&e===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-A/255,n=1-e/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var Ml=function(A){var e=A.c,r=A.m,t=A.y,n=A.k,a=255*(1-e)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},Kl=function(A){return typeof A!="number"?"FF":A<0?"00":A>1?"FF":Math.round(A*255).toString(16).padStart(2,"0").toUpperCase()},YA=function(){return YA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},YA.apply(this,arguments)},GA=function(A){var e=A.label,r=A.value,t=A.callback,n=A.max,a=n===void 0?100:n,s=A.hideOpacity,o=A.defaultStyles,l=A.pickerIdSuffix,c=E.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";E.useEffect(function(){B(r)},[r]);var p=function(Q){var C=Ve(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(e,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:YA({},o.rbgcpInput),id:"rbgcp-".concat(e,"-input").concat(l)}),m.createElement("div",{style:YA({},o.rbgcpInputLabel)},e))},Tl=function(A){var e=A.opacity,r=A.tinyColor,t=A.showHexAlpha,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=E.useState(""),l=o[0],c=o[1],g=r.toHex(),B=E.useState(g),u=B[0],p=B[1];E.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(H){var L=SA(H.target.value);if(p(H.target.value),L.isValid()){var h=L.toRgb(),b=h.r,k=h.g,M=h.b,R="rgba(".concat(b,", ").concat(k,", ").concat(M,", ").concat(e,")");n(R)}},U=t?"".concat(u).concat(Kl(e)):u,y=t?"HEXA":"HEX",S=t?88:76;return m.createElement("div",{style:{width:S,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(H){return x(H)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:YA(YA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:YA({},a.rbgcpInputLabel)},y))},Dl=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"R",max:255,value:e?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:e?.g,b:e?.b})}}),m.createElement(GA,{label:"G",max:255,value:e?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:o,b:e?.b})}}),m.createElement(GA,{label:"B",max:255,value:e?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:e?.g,b:o})}}))},Ol=function(A){var e=A.hc,r=A.setHc,t=A.tinyColor,n=A.hideOpacity,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,S=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(S,", ").concat(e?.a,")")),r(YA(YA({},e),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(GA,{label:"S",value:re(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:p,l:g})}}),m.createElement(GA,{label:"L",value:re(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:c,l:p})}}))},Rl=function(A){var e=A.hc,r=A.setHc,t=A.hideOpacity,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(e?.a,")")),r(YA(YA({},e),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,e?.s,e?.v)}}),m.createElement(GA,{label:"S",hideOpacity:t,value:re(e?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:c,v:e?.v})}}),m.createElement(GA,{label:"V",hideOpacity:t,value:re(e?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:e?.s,v:c})}}))},Nl=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=kl(e?.r,e?.g,e?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=Ml(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"C",value:re(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(GA,{label:"M",value:re(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(GA,{label:"Y",value:re(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(GA,{label:"K",value:re(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},_l=function(){var A=BA(),e=A.hc,r=A.setHc,t=A.inputType,n=A.tinyColor,a=A.hideOpacity,s=A.showHexAlpha,o=A.handleChange,l=A.defaultStyles,c=A.pickerIdSuffix;return m.createElement("div",{style:YA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Tl,{opacity:e?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(Ol,{hc:e,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Dl,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(Rl,{hc:e,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(Nl,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(GA,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(e?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(e?.r,", ").concat(e?.g,", ").concat(e?.b,", ").concat(g/100,")"))}}))},Gl=function(A,e,r,t){E.useEffect(function(){if(A.current){var n=A.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(e,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[A,e,r,t])},Or,la;function jl(){if(la)return Or;la=1;var A="Expected a function",e=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof xt=="object"&&xt&&xt.Object===Object&&xt,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,b,k){var M,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(A);b=L(b)||0,y(k)&&(tA=!!k.leading,AA="maxWait"in k,O=AA?p(L(k.maxWait)||0,b):O,dA="trailing"in k?!!k.trailing:dA);function aA(T){var G=M,P=R;return M=R=void 0,eA=T,Z=h.apply(P,G),Z}function q(T){return eA=T,D=setTimeout(I,b),tA?aA(T):Z}function lA(T){var G=T-z,P=T-eA,$=b-G;return AA?Q($,O-P):$}function sA(T){var G=T-z,P=T-eA;return z===void 0||G>=b||G<0||AA&&P>=O}function I(){var T=C();if(sA(T))return j(T);D=setTimeout(I,lA(T))}function j(T){return D=void 0,dA&&M?aA(T):(M=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,M=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(M=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(I,b),aA(z)}return D===void 0&&(D=setTimeout(I,b)),Z}return N.cancel=_,N.flush=F,N}function U(h,b,k){var M=!0,R=!0;if(typeof h!="function")throw new TypeError(A);return y(k)&&(M="leading"in k?!!k.leading:M,R="trailing"in k?!!k.trailing:R),x(h,b,{leading:M,maxWait:b,trailing:R})}function y(h){var b=typeof h;return!!h&&(b=="object"||b=="function")}function S(h){return!!h&&typeof h=="object"}function H(h){return typeof h=="symbol"||S(h)&&u.call(h)==r}function L(h){if(typeof h=="number")return h;if(H(h))return e;if(y(h)){var b=typeof h.valueOf=="function"?h.valueOf():h;h=y(b)?b+"":b}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var k=a.test(h);return k||s.test(h)?o(h.slice(2),k?2:8):n.test(h)?e:+h}return Or=U,Or}var Vl=jl();const Pl=Rs(Vl);var be=function(){return be=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},be.apply(this,arguments)},Xl=function(){var A,e,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useRef(null),C=Cl(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=E.useState({x,y:U}),S=y[0],H=y[1];Gl(Q,t?.h,a,s),E.useEffect(function(){u||H({x:t?.v===0?S.x:x,y:U})},[x,U]);var L=function(O){var Z=Pl(function(){var D=ml(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;H({x:aA===0?S?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},b=function(O){u&&L(O)},k=function(O){u||L(O)},M=function(){p(!0)},R=function(O){p(!0),L(O)};return E.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return b(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:be(be(be({},l.rbgcpHandle),{transform:"translate(".concat((A=S?.x)!==null&&A!==void 0?A:0,"px, ").concat((e=S?.y)!==null&&e!==void 0?e:0,"px)")}),u?{transition:""}:{}),onMouseDown:M,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:be(be({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return k(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ue=function(){return ue=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ue.apply(this,arguments)},Jl=function(){var A=BA(),e=A.config,r=A.hc,t=r===void 0?{}:r,n=A.squareWidth,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=e.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var b=Pe(h,C)/100,k="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(b,")");a(k)},S=function(h){c&&y(h)},H=function(h){c||y(h)},L=n-18;return E.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return S(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ue(ue({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ue(ue({},s.rbgcpHandle),{left:L*t?.a,top:-2})}),m.createElement("div",{style:ue(ue({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return H(h)}}))},Wl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Yl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],Zl=function(A){var e=A.presets,r=e===void 0?[]:e,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Yl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Y.apply(this,arguments)},zl=function(){var A=BA().defaultStyles,e={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},e),A.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},ql=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},$l=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},Ac=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},ec=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},tc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},rc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},nc=function(){var A=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},ac=function(A){var e,r=A.children,t="id"+Math.random().toString(16).slice(2),n=E.useRef((e=document.getElementById(t))!==null&&e!==void 0?e:document.createElement("div")),a=E.useState(!n.current.parentElement)[0];return E.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),uo.createPortal(r,n.current)};const sc=E.memo(ac);var pn=function(A,e){return pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},pn(A,e)};function qA(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pn(A,e);function r(){this.constructor=A}A.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Cn=function(){return Cn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Cn.apply(this,arguments)};function OA(A,e,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(A,[])).next())})}function kA(A,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(A,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Lt(A,e,r){if(arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||e)}var le=(function(){function A(e,r,t,n){this.left=e,this.top=r,this.width=t,this.height=n}return A.prototype.add=function(e,r,t,n){return new A(this.left+e,this.top+r,this.width+t,this.height+n)},A.fromClientRect=function(e,r){return new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},A.fromDOMRectList=function(e,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),yr=function(A,e){return le.fromClientRect(A,e.getBoundingClientRect())},ic=function(A){var e=A.body,r=A.documentElement;if(!e||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),n=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new le(0,0,t,n)},Er=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},bA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var kt=0;kt<ca.length;kt++)oc[ca.charCodeAt(kt)]=kt;var ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mt=0;Mt<ga.length;Mt++)et[ga.charCodeAt(Mt)]=Mt;var lc=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=et[A.charCodeAt(t)],s=et[A.charCodeAt(t+1)],o=et[A.charCodeAt(t+2)],l=et[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},cc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},gc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},Ie=5,Pn=11,Rr=2,uc=Pn-Ie,Ps=65536>>Ie,Bc=1<<Ie,Nr=Bc-1,dc=1024>>Ie,fc=Ps+dc,hc=fc,wc=32,pc=hc+wc,Cc=65536>>Pn,Qc=1<<uc,mc=Qc-1,ua=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},vc=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},Uc=function(A,e){var r=lc(A),t=Array.isArray(r)?gc(r):new Uint32Array(r),n=Array.isArray(r)?cc(r):new Uint16Array(r),a=24,s=ua(n,a/2,t[4]/2),o=t[5]===2?ua(n,(a+t[4])/2):vc(t,Math.ceil((a+t[4])/4));return new Fc(t[0],t[1],t[2],t[3],s,o)},Fc=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>Ie],r=(r<<Rr)+(e&Nr),this.data[r];if(e<=65535)return r=this.index[Ps+(e-55296>>Ie)],r=(r<<Rr)+(e&Nr),this.data[r];if(e<this.highStart)return r=pc-Cc+(e>>Pn),r=this.index[r],r+=e>>Ie&mc,r=this.index[r],r=(r<<Rr)+(e&Nr),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kt=0;Kt<Ba.length;Kt++)bc[Ba.charCodeAt(Kt)]=Kt;var yc="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",da=50,Ec=1,Xs=2,Js=3,xc=4,Ic=5,fa=7,Ws=8,ha=9,de=10,Qn=11,wa=12,mn=13,Hc=14,tt=15,vn=16,Tt=17,Ze=18,Sc=19,pa=20,Un=21,ze=22,_r=23,Se=24,jA=25,rt=26,nt=27,Le=28,Lc=29,ye=30,kc=31,Dt=32,Ot=33,Fn=34,bn=35,yn=36,Ct=37,En=38,rr=39,nr=40,Gr=41,Ys=42,Mc=43,Kc=[9001,65288],Zs="!",iA="×",Rt="÷",xn=Uc(yc),se=[ye,yn],In=[Ec,Xs,Js,Ic],zs=[de,Ws],Ca=[nt,rt],Tc=In.concat(zs),Qa=[En,rr,nr,Fn,bn],Dc=[tt,mn],Oc=function(A,e){e===void 0&&(e="strict");var r=[],t=[],n=[];return A.forEach(function(a,s){var o=xn.get(a);if(o>da?(n.push(!0),o-=da):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(vn);if(o===xc||o===Qn){if(s===0)return t.push(s),r.push(ye);var l=r[s-1];return Tc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(ye))}if(t.push(s),o===kc)return r.push(e==="strict"?Un:Ct);if(o===Ys||o===Lc)return r.push(ye);if(o===Mc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(Ct):r.push(ye);r.push(o)}),[t,r,n]},jr=function(A,e,r,t){var n=t[r];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===e)return!0;if(s!==de)break}if(n===de)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(A)?A.indexOf(o)!==-1:A===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===e)return!0;if(s!==de)break}if(o!==de)break}return!1},ma=function(A,e){for(var r=A;r>=0;){var t=e[r];if(t===de)r--;else return t}return 0},Rc=function(A,e,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=e[a],c=s>=0?e[s]:0,g=e[o];if(l===Xs&&g===Js)return iA;if(In.indexOf(l)!==-1)return Zs;if(In.indexOf(g)!==-1||zs.indexOf(g)!==-1)return iA;if(ma(a,e)===Ws)return Rt;if(xn.get(A[a])===Qn||(l===Dt||l===Ot)&&xn.get(A[o])===Qn||l===fa||g===fa||l===ha||[de,mn,tt].indexOf(l)===-1&&g===ha||[Tt,Ze,Sc,Se,Le].indexOf(g)!==-1||ma(a,e)===ze||jr(_r,ze,a,e)||jr([Tt,Ze],Un,a,e)||jr(wa,wa,a,e))return iA;if(l===de)return Rt;if(l===_r||g===_r)return iA;if(g===vn||l===vn)return Rt;if([mn,tt,Un].indexOf(g)!==-1||l===Hc||c===yn&&Dc.indexOf(l)!==-1||l===Le&&g===yn||g===pa||se.indexOf(g)!==-1&&l===jA||se.indexOf(l)!==-1&&g===jA||l===nt&&[Ct,Dt,Ot].indexOf(g)!==-1||[Ct,Dt,Ot].indexOf(l)!==-1&&g===rt||se.indexOf(l)!==-1&&Ca.indexOf(g)!==-1||Ca.indexOf(l)!==-1&&se.indexOf(g)!==-1||[nt,rt].indexOf(l)!==-1&&(g===jA||[ze,tt].indexOf(g)!==-1&&e[o+1]===jA)||[ze,tt].indexOf(l)!==-1&&g===jA||l===jA&&[jA,Le,Se].indexOf(g)!==-1)return iA;if([jA,Le,Se,Tt,Ze].indexOf(g)!==-1)for(var B=a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if([nt,rt].indexOf(g)!==-1)for(var B=[Tt,Ze].indexOf(l)!==-1?s:a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if(En===l&&[En,rr,Fn,bn].indexOf(g)!==-1||[rr,Fn].indexOf(l)!==-1&&[rr,nr].indexOf(g)!==-1||[nr,bn].indexOf(l)!==-1&&g===nr||Qa.indexOf(l)!==-1&&[pa,rt].indexOf(g)!==-1||Qa.indexOf(g)!==-1&&l===nt||se.indexOf(l)!==-1&&se.indexOf(g)!==-1||l===Se&&se.indexOf(g)!==-1||se.concat(jA).indexOf(l)!==-1&&g===ze&&Kc.indexOf(A[o])===-1||se.concat(jA).indexOf(g)!==-1&&l===Ze)return iA;if(l===Gr&&g===Gr){for(var p=r[a],Q=1;p>0&&(p--,e[p]===Gr);)Q++;if(Q%2!==0)return iA}return l===Dt&&g===Ot?iA:Rt},Nc=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=Oc(A,e.lineBreak),t=r[0],n=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(o){return[jA,ye,Ys].indexOf(o)!==-1?Ct:o}));var s=e.wordBreak==="keep-all"?a.map(function(o,l){return o&&A[l]>=19968&&A[l]<=40959}):void 0;return[t,n,s]},_c=(function(){function A(e,r,t,n){this.codePoints=e,this.required=r===Zs,this.start=t,this.end=n}return A.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),Gc=function(A,e){var r=Er(A),t=Nc(r,e),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=Rc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new _c(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},jc=1,Vc=2,yt=4,va=8,dr=10,Ua=47,ct=92,Pc=9,Xc=32,Nt=34,qe=61,Jc=35,Wc=36,Yc=37,_t=39,Gt=40,$e=41,Zc=95,_A=45,zc=33,qc=60,$c=62,Ag=64,eg=91,tg=93,rg=61,ng=123,jt=63,ag=125,Fa=124,sg=126,ig=128,ba=65533,Vr=42,xe=43,og=44,lg=58,cg=59,Qt=46,gg=0,ug=8,Bg=11,dg=14,fg=31,hg=127,$A=-1,qs=48,$s=97,Ai=101,wg=102,pg=117,Cg=122,ei=65,ti=69,ri=70,Qg=85,mg=90,MA=function(A){return A>=qs&&A<=57},vg=function(A){return A>=55296&&A<=57343},ke=function(A){return MA(A)||A>=ei&&A<=ri||A>=$s&&A<=wg},Ug=function(A){return A>=$s&&A<=Cg},Fg=function(A){return A>=ei&&A<=mg},bg=function(A){return Ug(A)||Fg(A)},yg=function(A){return A>=ig},Vt=function(A){return A===dr||A===Pc||A===Xc},fr=function(A){return bg(A)||yg(A)||A===Zc},ya=function(A){return fr(A)||MA(A)||A===_A},Eg=function(A){return A>=gg&&A<=ug||A===Bg||A>=dg&&A<=fg||A===hg},Be=function(A,e){return A!==ct?!1:e!==dr},Pt=function(A,e,r){return A===_A?fr(e)||Be(e,r):fr(A)?!0:!!(A===ct&&Be(A,e))},Pr=function(A,e,r){return A===xe||A===_A?MA(e)?!0:e===Qt&&MA(r):MA(A===Qt?e:A)},xg=function(A){var e=0,r=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(r=-1),e++);for(var t=[];MA(A[e]);)t.push(A[e++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;A[e]===Qt&&e++;for(var a=[];MA(A[e]);)a.push(A[e++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(A[e]===ti||A[e]===Ai)&&e++;var l=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(l=-1),e++);for(var c=[];MA(A[e]);)c.push(A[e++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},Ig={type:2},Hg={type:3},Sg={type:4},Lg={type:13},kg={type:8},Mg={type:21},Kg={type:9},Tg={type:10},Dg={type:11},Og={type:12},Rg={type:14},Xt={type:23},Ng={type:1},_g={type:25},Gg={type:24},jg={type:26},Vg={type:27},Pg={type:28},Xg={type:29},Jg={type:31},Hn={type:32},ni=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(Er(e))},A.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==Hn;)e.push(r),r=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Nt:return this.consumeStringToken(Nt);case Jc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ya(r)||Be(t,n)){var a=Pt(r,t,n)?Vc:jc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Wc:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Lg;break;case _t:return this.consumeStringToken(_t);case Gt:return Ig;case $e:return Hg;case Vr:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Rg;break;case xe:if(Pr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case og:return Sg;case _A:var o=e,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Pr(o,l,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Pt(o,l,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===_A&&c===$c)return this.consumeCodePoint(),this.consumeCodePoint(),Gg;break;case Qt:if(Pr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Ua:if(this.peekCodePoint(0)===Vr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Vr&&(g=this.consumeCodePoint(),g===Ua))return this.consumeToken();if(g===$A)return this.consumeToken()}break;case lg:return jg;case cg:return Vg;case qc:if(this.peekCodePoint(0)===zc&&this.peekCodePoint(1)===_A&&this.peekCodePoint(2)===_A)return this.consumeCodePoint(),this.consumeCodePoint(),_g;break;case Ag:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Pt(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case eg:return Pg;case ct:if(Be(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case tg:return Xg;case rg:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),kg;break;case ng:return Dg;case ag:return Og;case pg:case Qg:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===xe&&(ke(C)||C===jt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Fa:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Kg;if(this.peekCodePoint(0)===Fa)return this.consumeCodePoint(),Mg;break;case sg:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Tg;break;case $A:return Hn}return Vt(e)?(this.consumeWhiteSpace(),Jg):MA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):fr(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:bA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();ke(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var t=!1;r===jt&&e.length<6;)e.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,e.map(function(l){return l===jt?qs:l})),16),a=parseInt(bA.apply(void 0,e.map(function(l){return l===jt?ri:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,e),16);if(this.peekCodePoint(0)===_A&&ke(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];ke(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Gt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Gt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===_t||r===Nt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Xt)}for(;;){var n=this.consumeCodePoint();if(n===$A||n===$e)return{type:22,value:bA.apply(void 0,e)};if(Vt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Xt);if(n===Nt||n===_t||n===Gt||Eg(n))return this.consumeBadUrlRemnants(),Xt;if(n===ct)if(Be(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Xt;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Vt(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===$e||e===$A)return;Be(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var r=5e4,t="";e>0;){var n=Math.min(r,e);t+=bA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},A.prototype.consumeStringToken=function(e){var r="",t=0;do{var n=this._value[t];if(n===$A||n===void 0||n===e)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===dr)return this._value.splice(0,t),Ng;if(n===ct){var a=this._value[t+1];a!==$A&&a!==void 0&&(a===dr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):Be(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},A.prototype.consumeNumber=function(){var e=[],r=yt,t=this.peekCodePoint(0);for((t===xe||t===_A)&&e.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Qt&&MA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=va;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===ti||t===Ai)&&((n===xe||n===_A)&&MA(a)||MA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=va;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[xg(e),r]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],t=e[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Pt(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Yc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ke(e)){for(var r=bA(e);ke(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Vt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||vg(t)||t>1114111?ba:t}return e===$A?ba:e},A.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(ya(r))e+=bA(r);else if(Be(r,this.peekCodePoint(0)))e+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},A})(),ai=(function(){function A(e){this._tokens=e}return A.create=function(e){var r=new ni;return r.write(e),new A(r.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},t=this.consumeToken();;){if(t.type===32||Yg(t,e))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Hn:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),Et=function(A){return A.type===15},Je=function(A){return A.type===17},uA=function(A){return A.type===20},Wg=function(A){return A.type===0},Sn=function(A,e){return uA(A)&&A.value===e},si=function(A){return A.type!==31},Xe=function(A){return A.type!==31&&A.type!==4},ne=function(A){var e=[],r=[];return A.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&e.push(r),e},Yg=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},Qe=function(A){return A.type===17||A.type===15},yA=function(A){return A.type===16||Qe(A)},ii=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},LA={type:17,number:0,flags:yt},Xn={type:16,number:50,flags:yt},fe={type:16,number:100,flags:yt},at=function(A,e,r){var t=A[0],n=A[1];return[wA(t,e),wA(typeof n<"u"?n:t,r)]},wA=function(A,e){if(A.type===16)return A.number/100*e;if(Et(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},oi="deg",li="grad",ci="rad",gi="turn",xr={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case oi:return Math.PI*e.number/180;case li:return Math.PI/200*e.number;case ci:return e.number;case gi:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},ui=function(A){return A.type===15&&(A.unit===oi||A.unit===li||A.unit===ci||A.unit===gi)},Bi=function(A){var e=A.filter(uA).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return JA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,fe];case"to right":case"left":return JA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fe,fe];case"to bottom":case"top":return JA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fe,LA];case"to left":case"right":return JA(270)}return 0},JA=function(A){return Math.PI*A/180},pe={name:"color",parse:function(A,e){if(e.type===18){var r=Zg[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(A,e.values)}if(e.type===5){if(e.value.length===3){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(e.value.length===4){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3),s=e.value.substring(3,4);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(e.value.length===6){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(e.value.length===8){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(e.type===20){var o=oe[e.value.toUpperCase()];if(typeof o<"u")return o}return oe.TRANSPARENT}},Ce=function(A){return(255&A)===0},xA=function(A){var e=255&A,r=255&A>>8,t=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+t+","+r+","+e/255+")":"rgb("+n+","+t+","+r+")"},he=function(A,e,r,t){return(A<<24|e<<16|r<<8|Math.round(t*255)<<0)>>>0},Ea=function(A,e){if(A.type===17)return A.number;if(A.type===16){var r=e===3?1:255;return e===3?A.number/100*r:Math.round(A.number/100*r)}return 0},xa=function(A,e){var r=e.filter(Xe);if(r.length===3){var t=r.map(Ea),n=t[0],a=t[1],s=t[2];return he(n,a,s,1)}if(r.length===4){var o=r.map(Ea),n=o[0],a=o[1],s=o[2],l=o[3];return he(n,a,s,l)}return 0};function Xr(A,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-A)*r*6+A:r<1/2?e:r<2/3?(e-A)*6*(2/3-r)+A:A}var Ia=function(A,e){var r=e.filter(Xe),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?JA(t.number):xr.parse(A,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return he(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=Xr(u,B,o+1/3),Q=Xr(u,B,o),C=Xr(u,B,o-1/3);return he(p*255,Q*255,C*255,g)},Zg={hsl:Ia,hsla:Ia,rgb:xa,rgba:xa},gt=function(A,e){return pe.parse(A,ai.create(e).parseComponentValue())},oe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},zg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ir=function(A,e){var r=pe.parse(A,e[0]),t=e[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Ha=function(A,e){var r=A[0],t=A[A.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=fe);for(var n=[],a=0,s=0;s<A.length;s++){var o=A[s].stop;if(o!==null){var l=wA(o,e);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return A.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/e),0)}})},$g=function(A,e,r){var t=e/2,n=r/2,a=wA(A[0],e)-t,s=n-wA(A[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},Au=function(A,e,r){var t=typeof A=="number"?A:$g(A,e,r),n=Math.abs(e*Math.sin(t))+Math.abs(r*Math.cos(t)),a=e/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},zA=function(A,e){return Math.sqrt(A*A+e*e)},Sa=function(A,e,r,t,n){var a=[[0,0],[0,e],[A,0],[A,e]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=zA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},eu=function(A,e,r,t,n){var a=0,s=0;switch(A.size){case 0:A.shape===0?a=s=Math.min(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(A.shape===0)a=s=Math.min(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(e),Math.abs(e-t)),l=Sa(t,n,e,r,!0),c=l[0],g=l[1];a=zA(c-e,(g-r)/o),s=o*a}break;case 1:A.shape===0?a=s=Math.max(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(A.shape===0)a=s=Math.max(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(e),Math.abs(e-t)),B=Sa(t,n,e,r,!1),c=B[0],g=B[1];a=zA(c-e,(g-r)/o),s=o*a}break}return Array.isArray(A.size)&&(a=wA(A.size[0],t),s=A.size.length===2?wA(A.size[1],n):a),[a,s]},tu=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=Bi(n);return}else if(ui(s)){r=xr.parse(A,s);return}}var o=Ir(A,n);t.push(o)}),{angle:r,stops:t,type:1}},Jt=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=Bi(n);return}else if(ui(s)){r=(xr.parse(A,s)+JA(270))%JA(360);return}}var o=Ir(A,n);t.push(o)}),{angle:r,stops:t,type:1}},ru=function(A,e){var r=JA(180),t=[],n=1,a=0,s=3,o=[];return ne(e).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=pe.parse(A,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=pe.parse(A,g.values[0]);t.push({stop:fe,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(Xe);if(u.length===2){var B=pe.parse(A,u[1]),p=u[0];Je(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+JA(180))%JA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},di="closest-side",fi="farthest-side",hi="closest-corner",wi="farthest-corner",pi="circle",Ci="ellipse",Qi="cover",mi="contain",nu=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(Xn),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(fe),B}else(yA(u)||Qe(u))&&a.push(u);else if(uA(u))switch(u.value){case pi:return r=0,!1;case Ci:return r=1,!1;case"at":return c=!0,!1;case di:return t=0,!1;case Qi:case fi:return t=1,!1;case mi:case hi:return t=2,!1;case wi:return t=3,!1}else if(Qe(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=Ir(A,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Wt=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(Xn),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(fe),!1}else if(yA(B)||Qe(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case pi:return r=0,!1;case Ci:return r=1,!1;case mi:case di:return t=0,!1;case fi:return t=1,!1;case hi:return t=2,!1;case Qi:case wi:return t=3,!1}else if(Qe(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=Ir(A,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},au=function(A){return A.type===1},su=function(A){return A.type===2},Jn={name:"image",parse:function(A,e){if(e.type===22){var r={url:e.value,type:0};return A.cache.addImage(e.value),r}if(e.type===18){var t=vi[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function iu(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!vi[A.name])}var vi={"linear-gradient":tu,"-moz-linear-gradient":Jt,"-ms-linear-gradient":Jt,"-o-linear-gradient":Jt,"-webkit-linear-gradient":Jt,"radial-gradient":nu,"-moz-radial-gradient":Wt,"-ms-radial-gradient":Wt,"-o-radial-gradient":Wt,"-webkit-radial-gradient":Wt,"-webkit-gradient":ru},ou={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(t){return Xe(t)&&iu(t)}).map(function(t){return Jn.parse(A,t)})}},lu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cu={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return ne(e).map(function(r){return r.filter(yA)}).map(ii)}},gu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map(uu)}},uu=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},_e;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(_e||(_e={}));var Bu={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(du)})}},du=function(A){return uA(A)||yA(A)},Hr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fu=Hr("top"),hu=Hr("right"),wu=Hr("bottom"),pu=Hr("left"),Sr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return ii(r.filter(yA))}}},Cu=Sr("top-left"),Qu=Sr("top-right"),mu=Sr("bottom-right"),vu=Sr("bottom-left"),Lr=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Uu=Lr("top"),Fu=Lr("right"),bu=Lr("bottom"),yu=Lr("left"),kr=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return Et(r)?r.number:0}}},Eu=kr("top"),xu=kr("right"),Iu=kr("bottom"),Hu=kr("left"),Su={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Lu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return e==="rtl"?1:0}},ku={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).reduce(function(r,t){return r|Mu(t.value)},0)}},Mu=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ku={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Tu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},hr;(function(A){A.NORMAL="normal",A.STRICT="strict"})(hr||(hr={}));var Du={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="strict"?hr.STRICT:hr.NORMAL}},Ou={name:"line-height",initialValue:"normal",prefix:!1,type:4},La=function(A,e){return uA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:yA(A)?wA(A,e):e},Ru={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:Jn.parse(A,e)}},Nu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return e==="inside"?0:1}},Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Mr=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},_u=Mr("top"),Gu=Mr("right"),ju=Mr("bottom"),Vu=Mr("left"),Pu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Xu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="break-word"?"break-word":"normal"}},Kr=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ju=Kr("top"),Wu=Kr("right"),Yu=Kr("bottom"),Zu=Kr("left"),zu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},qu={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$u={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Sn(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:oe.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=pe.parse(A,s)}return t})}},AB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},eB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=nB[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},tB=function(A){var e=A.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},rB=function(A){var e=A.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=e[0],t=e[1];e[2],e[3];var n=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],e.length===16?[r,t,n,a,s,o]:null},nB={matrix:tB,matrix3d:rB},ka={type:16,number:50,flags:yt},aB=[ka,ka],sB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var r=e.filter(yA);return r.length!==2?aB:[r[0],r[1]]}},iB={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ut;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(ut||(ut={}));var oB={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return ut.BREAK_ALL;case"keep-all":return ut.KEEP_ALL;default:return ut.NORMAL}}},lB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Je(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Ui={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},cB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:1}},gB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},BB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var r=[],t=[];return e.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},dB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:uA(e)&&e.value==="bold"?700:400}},hB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(uA).map(function(r){return r.value})}},wB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(A,e){return(A&e)!==0},pB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},CB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=e.filter(si),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Je(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},QB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var r=[],t=e.filter(si),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Je(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},mB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Et).map(function(r){return Ui.parse(A,r)})}},vB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var t=[],n=e.filter(Wg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},Ma=function(A,e,r){if(!A)return"";var t=A[Math.min(e,A.length-1)];return t?r?t.open:t.close:""},UB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Sn(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];Sn(s,"inset")?t.inset=!0:Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=pe.parse(A,s)}return t})}},FB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var r=[0,1,2],t=[];return e.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},bB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Et(e)?e.number:0}},EB=(function(){function A(e,r){var t,n;this.animationDuration=J(e,mB,r.animationDuration),this.backgroundClip=J(e,zg,r.backgroundClip),this.backgroundColor=J(e,qg,r.backgroundColor),this.backgroundImage=J(e,ou,r.backgroundImage),this.backgroundOrigin=J(e,lu,r.backgroundOrigin),this.backgroundPosition=J(e,cu,r.backgroundPosition),this.backgroundRepeat=J(e,gu,r.backgroundRepeat),this.backgroundSize=J(e,Bu,r.backgroundSize),this.borderTopColor=J(e,fu,r.borderTopColor),this.borderRightColor=J(e,hu,r.borderRightColor),this.borderBottomColor=J(e,wu,r.borderBottomColor),this.borderLeftColor=J(e,pu,r.borderLeftColor),this.borderTopLeftRadius=J(e,Cu,r.borderTopLeftRadius),this.borderTopRightRadius=J(e,Qu,r.borderTopRightRadius),this.borderBottomRightRadius=J(e,mu,r.borderBottomRightRadius),this.borderBottomLeftRadius=J(e,vu,r.borderBottomLeftRadius),this.borderTopStyle=J(e,Uu,r.borderTopStyle),this.borderRightStyle=J(e,Fu,r.borderRightStyle),this.borderBottomStyle=J(e,bu,r.borderBottomStyle),this.borderLeftStyle=J(e,yu,r.borderLeftStyle),this.borderTopWidth=J(e,Eu,r.borderTopWidth),this.borderRightWidth=J(e,xu,r.borderRightWidth),this.borderBottomWidth=J(e,Iu,r.borderBottomWidth),this.borderLeftWidth=J(e,Hu,r.borderLeftWidth),this.boxShadow=J(e,UB,r.boxShadow),this.color=J(e,Su,r.color),this.direction=J(e,Lu,r.direction),this.display=J(e,ku,r.display),this.float=J(e,Ku,r.cssFloat),this.fontFamily=J(e,BB,r.fontFamily),this.fontSize=J(e,dB,r.fontSize),this.fontStyle=J(e,wB,r.fontStyle),this.fontVariant=J(e,hB,r.fontVariant),this.fontWeight=J(e,fB,r.fontWeight),this.letterSpacing=J(e,Tu,r.letterSpacing),this.lineBreak=J(e,Du,r.lineBreak),this.lineHeight=J(e,Ou,r.lineHeight),this.listStyleImage=J(e,Ru,r.listStyleImage),this.listStylePosition=J(e,Nu,r.listStylePosition),this.listStyleType=J(e,Ln,r.listStyleType),this.marginTop=J(e,_u,r.marginTop),this.marginRight=J(e,Gu,r.marginRight),this.marginBottom=J(e,ju,r.marginBottom),this.marginLeft=J(e,Vu,r.marginLeft),this.opacity=J(e,cB,r.opacity);var a=J(e,Pu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=J(e,Xu,r.overflowWrap),this.paddingTop=J(e,Ju,r.paddingTop),this.paddingRight=J(e,Wu,r.paddingRight),this.paddingBottom=J(e,Yu,r.paddingBottom),this.paddingLeft=J(e,Zu,r.paddingLeft),this.paintOrder=J(e,FB,r.paintOrder),this.position=J(e,qu,r.position),this.textAlign=J(e,zu,r.textAlign),this.textDecorationColor=J(e,gB,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=J(e,uB,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=J(e,$u,r.textShadow),this.textTransform=J(e,AB,r.textTransform),this.transform=J(e,eB,r.transform),this.transformOrigin=J(e,sB,r.transformOrigin),this.visibility=J(e,iB,r.visibility),this.webkitTextStrokeColor=J(e,bB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=J(e,yB,r.webkitTextStrokeWidth),this.wordBreak=J(e,oB,r.wordBreak),this.zIndex=J(e,lB,r.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ce(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},A})(),xB=(function(){function A(e,r){this.content=J(e,pB,r.content),this.quotes=J(e,vB,r.quotes)}return A})(),Ka=(function(){function A(e,r){this.counterIncrement=J(e,CB,r.counterIncrement),this.counterReset=J(e,QB,r.counterReset)}return A})(),J=function(A,e,r){var t=new ni,n=r!==null&&typeof r<"u"?r.toString():e.initialValue;t.write(n);var a=new ai(t.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(A,uA(s)?s.value:e.initialValue);case 0:return e.parse(A,a.parseComponentValue());case 1:return e.parse(A,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return xr.parse(A,a.parseComponentValue());case"color":return pe.parse(A,a.parseComponentValue());case"image":return Jn.parse(A,a.parseComponentValue());case"length":var o=a.parseComponentValue();return Qe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return Ui.parse(A,a.parseComponentValue())}break}},IB="data-html2canvas-debug",HB=function(A){var e=A.getAttribute(IB);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},kn=function(A,e){var r=HB(A);return r===1||e===r},ae=(function(){function A(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,kn(r,3))debugger;this.styles=new EB(e,window.getComputedStyle(r,null)),Tn(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=yr(this.context,r),kn(r,4)&&(this.flags|=16)}return A})(),SB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Yt=0;Yt<Ta.length;Yt++)st[Ta.charCodeAt(Yt)]=Yt;var LB=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=st[A.charCodeAt(t)],s=st[A.charCodeAt(t+1)],o=st[A.charCodeAt(t+2)],l=st[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},kB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},MB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},He=5,Wn=11,Jr=2,KB=Wn-He,Fi=65536>>He,TB=1<<He,Wr=TB-1,DB=1024>>He,OB=Fi+DB,RB=OB,NB=32,_B=RB+NB,GB=65536>>Wn,jB=1<<KB,VB=jB-1,Da=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},PB=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},XB=function(A,e){var r=LB(A),t=Array.isArray(r)?MB(r):new Uint32Array(r),n=Array.isArray(r)?kB(r):new Uint16Array(r),a=24,s=Da(n,a/2,t[4]/2),o=t[5]===2?Da(n,(a+t[4])/2):PB(t,Math.ceil((a+t[4])/4));return new JB(t[0],t[1],t[2],t[3],s,o)},JB=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>He],r=(r<<Jr)+(e&Wr),this.data[r];if(e<=65535)return r=this.index[Fi+(e-55296>>He)],r=(r<<Jr)+(e&Wr),this.data[r];if(e<this.highStart)return r=_B-GB+(e>>Wn),r=this.index[r],r+=e>>He&VB,r=this.index[r],r=(r<<Jr)+(e&Wr),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",WB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Zt=0;Zt<Oa.length;Zt++)WB[Oa.charCodeAt(Zt)]=Zt;var YB=1,Yr=2,Zr=3,Ra=4,Na=5,ZB=7,_a=8,zr=9,qr=10,Ga=11,ja=12,Va=13,Pa=14,$r=15,zB=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},qB=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},$B=XB(SB),PA="×",An="÷",Ad=function(A){return $B.get(A)},ed=function(A,e,r){var t=r-2,n=e[t],a=e[r-1],s=e[r];if(a===Yr&&s===Zr)return PA;if(a===Yr||a===Zr||a===Ra||s===Yr||s===Zr||s===Ra)return An;if(a===_a&&[_a,zr,Ga,ja].indexOf(s)!==-1||(a===Ga||a===zr)&&(s===zr||s===qr)||(a===ja||a===qr)&&s===qr||s===Va||s===Na||s===ZB||a===YB)return PA;if(a===Va&&s===Pa){for(;n===Na;)n=e[--t];if(n===Pa)return PA}if(a===$r&&s===$r){for(var o=0;n===$r;)o++,n=e[--t];if(o%2===0)return PA}return An},td=function(A){var e=zB(A),r=e.length,t=0,n=0,a=e.map(Ad);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=PA;t<r&&(s=ed(e,a,++t))===PA;);if(s!==PA||t===r){var o=qB.apply(null,e.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},rd=function(A){for(var e=td(A),r=[],t;!(t=e.next()).done;)t.value&&r.push(t.value.slice());return r},nd=function(A){var e=123;if(A.createRange){var r=A.createRange();if(r.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height=e+"px",t.style.display="block",A.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(A.body.removeChild(t),a===e)return!0}}return!1},ad=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var r=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=e.firstChild,n=Er(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return A.body.removeChild(e),o},sd=function(){return typeof new Image().crossOrigin<"u"},id=function(){return typeof new XMLHttpRequest().responseType=="string"},od=function(A){var e=new Image,r=A.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},Xa=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},ld=function(A){var e=A.createElement("canvas"),r=100;e.width=r,e.height=r;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=e.toDataURL();n.src=a;var s=Mn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Ja(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=A.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Xa(l)?Ja(Mn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Xa(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Mn=function(A,e,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Ja=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){return e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},HA={get SUPPORT_RANGE_BOUNDS(){var A=nd(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=HA.SUPPORT_RANGE_BOUNDS&&ad(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=od(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?ld(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=sd();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=id();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Bt=(function(){function A(e,r){this.text=e,this.bounds=r}return A})(),cd=function(A,e,r,t){var n=Bd(e,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Wa(t,s,o.length).getClientRects();if(l.length>1){var c=Yn(o),g=0;c.forEach(function(u){a.push(new Bt(u,le.fromDOMRectList(A,Wa(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new Bt(o,le.fromDOMRectList(A,l)))}else{var B=t.splitText(o.length);a.push(new Bt(o,gd(A,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},gd=function(A,e){var r=e.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(t,e);var a=yr(A,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return le.EMPTY},Wa=function(A,e,r){var t=A.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(A,e),n.setEnd(A,e+r),n},Yn=function(A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return rd(A)},ud=function(A,e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(A)).map(function(t){return t.segment})}return fd(A,e)},Bd=function(A,e){return e.letterSpacing!==0?Yn(A):ud(A,e)},dd=[32,160,4961,65792,65793,4153,4241],fd=function(A,e){for(var r=Gc(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=Er(s),l="";o.forEach(function(c){dd.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},hd=(function(){function A(e,r,t){this.text=wd(r.data,t.textTransform),this.textBounds=cd(e,this.text,t,r)}return A})(),wd=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(pd,Cd);case 2:return A.toUpperCase();default:return A}},pd=/(^|\s|:|-|\(|\))([a-z])/g,Cd=function(A,e,r){return A.length>0?e+r.toUpperCase():A},bi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e})(ae),yi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e})(ae),Ei=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=new XMLSerializer,s=yr(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e})(ae),xi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Kn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return e})(ae),Qd=[{type:15,flags:0,unit:"px",number:3}],md=[{type:16,flags:0,number:50}],vd=function(A){return A.width>A.height?new le(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new le(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Ud=function(A){var e=A.type===Fd?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},wr="checkbox",pr="radio",Fd="password",Ya=707406591,Zn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Ud(t),(n.type===wr||n.type===pr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=vd(n.bounds)),n.type){case wr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Qd;break;case pr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=md;break}return n}return e})(ae),Ii=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return e})(ae),Hi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Si=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=ki(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?gt(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):oe.TRANSPARENT,s=t.contentWindow.document.body?gt(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):oe.TRANSPARENT;n.backgroundColor=Ce(a)?Ce(s)?n.styles.backgroundColor:s:a}}catch{}return n}return e})(ae),bd=["OL","UL","MENU"],ar=function(A,e,r,t){for(var n=e.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Mi(n)&&n.data.trim().length>0)r.textNodes.push(new hd(A,n,r.styles));else if(Ne(n))if(Oi(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return ar(A,o,r,t)});else{var s=Li(A,n);s.styles.isVisible()&&(yd(n,s,t)?s.flags|=4:Ed(s.styles)&&(s.flags|=2),bd.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?ar(A,n.shadowRoot,s,t):!Cr(n)&&!Ki(n)&&!Qr(n)&&ar(A,n,s,t))}},Li=function(A,e){return Dn(e)?new bi(A,e):Ti(e)?new yi(A,e):Ki(e)?new Ei(A,e):xd(e)?new xi(A,e):Id(e)?new Kn(A,e):Hd(e)?new Zn(A,e):Qr(e)?new Ii(A,e):Cr(e)?new Hi(A,e):Di(e)?new Si(A,e):new ae(A,e)},ki=function(A,e){var r=Li(A,e);return r.flags|=4,ar(A,e,r,r),r},yd=function(A,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||zn(A)&&r.styles.isTransparent()},Ed=function(A){return A.isPositioned()||A.isFloating()},Mi=function(A){return A.nodeType===Node.TEXT_NODE},Ne=function(A){return A.nodeType===Node.ELEMENT_NODE},Tn=function(A){return Ne(A)&&typeof A.style<"u"&&!sr(A)},sr=function(A){return typeof A.className=="object"},xd=function(A){return A.tagName==="LI"},Id=function(A){return A.tagName==="OL"},Hd=function(A){return A.tagName==="INPUT"},Sd=function(A){return A.tagName==="HTML"},Ki=function(A){return A.tagName==="svg"},zn=function(A){return A.tagName==="BODY"},Ti=function(A){return A.tagName==="CANVAS"},Za=function(A){return A.tagName==="VIDEO"},Dn=function(A){return A.tagName==="IMG"},Di=function(A){return A.tagName==="IFRAME"},za=function(A){return A.tagName==="STYLE"},Ld=function(A){return A.tagName==="SCRIPT"},Cr=function(A){return A.tagName==="TEXTAREA"},Qr=function(A){return A.tagName==="SELECT"},Oi=function(A){return A.tagName==="SLOT"},qa=function(A){return A.tagName.indexOf("-")>0},kd=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},A.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},A.prototype.pop=function(e){var r=this;e.forEach(function(t){return r.counters[t].pop()})},A.prototype.parse=function(e){var r=this,t=e.counterIncrement,n=e.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},A})(),$a={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},As={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Md={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Kd={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Me=function(A,e,r,t,n,a){return A<e||A>r?mt(A,n,a.length>0):t.integers.reduce(function(s,o,l){for(;A>=o;)A-=o,s+=t.values[l];return s},"")+a},Ri=function(A,e,r,t){var n="";do r||A--,n=t(A)+n,A/=e;while(A*e>=e);return n},FA=function(A,e,r,t,n){var a=r-e+1;return(A<0?"-":"")+(Ri(Math.abs(A),a,t,function(s){return bA(Math.floor(s%a)+e)})+n)},me=function(A,e,r){r===void 0&&(r=". ");var t=e.length;return Ri(Math.abs(A),t,!1,function(n){return e[Math.floor(n%t)]})+r},De=1,ce=2,ge=4,it=8,ie=function(A,e,r,t,n,a){if(A<-9999||A>9999)return mt(A,4,n.length>0);var s=Math.abs(A),o=n;if(s===0)return e[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,De)&&o!==""?o=e[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,ce)||c===1&&l===1&&EA(a,ge)&&A>100||c===1&&l>1&&EA(a,it)?o=e[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(A<0?t:"")+o},es="十百千萬",ts="拾佰仟萬",rs="マイナス",en="마이너스",mt=function(A,e,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(A,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return me(A,"〇一二三四五六七八九",n);case 6:return Me(A,1,3999,$a,3,t).toLowerCase();case 7:return Me(A,1,3999,$a,3,t);case 8:return FA(A,945,969,!1,t);case 9:return FA(A,97,122,!1,t);case 10:return FA(A,65,90,!1,t);case 11:return FA(A,1632,1641,!0,t);case 12:case 49:return Me(A,1,9999,As,3,t);case 35:return Me(A,1,9999,As,3,t).toLowerCase();case 13:return FA(A,2534,2543,!0,t);case 14:case 30:return FA(A,6112,6121,!0,t);case 15:return me(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return me(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ie(A,"零一二三四五六七八九",es,"負",n,ce|ge|it);case 47:return ie(A,"零壹貳參肆伍陸柒捌玖",ts,"負",n,De|ce|ge|it);case 42:return ie(A,"零一二三四五六七八九",es,"负",n,ce|ge|it);case 41:return ie(A,"零壹贰叁肆伍陆柒捌玖",ts,"负",n,De|ce|ge|it);case 26:return ie(A,"〇一二三四五六七八九","十百千万",rs,n,0);case 25:return ie(A,"零壱弐参四伍六七八九","拾百千万",rs,n,De|ce|ge);case 31:return ie(A,"영일이삼사오육칠팔구","십백천만",en,a,De|ce|ge);case 33:return ie(A,"零一二三四五六七八九","十百千萬",en,a,0);case 32:return ie(A,"零壹貳參四五六七八九","拾百千",en,a,De|ce|ge);case 18:return FA(A,2406,2415,!0,t);case 20:return Me(A,1,19999,Kd,3,t);case 21:return FA(A,2790,2799,!0,t);case 22:return FA(A,2662,2671,!0,t);case 22:return Me(A,1,10999,Md,3,t);case 23:return me(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return me(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(A,3302,3311,!0,t);case 28:return me(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return me(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(A,3792,3801,!0,t);case 37:return FA(A,6160,6169,!0,t);case 38:return FA(A,4160,4169,!0,t);case 39:return FA(A,2918,2927,!0,t);case 40:return FA(A,1776,1785,!0,t);case 43:return FA(A,3046,3055,!0,t);case 44:return FA(A,3174,3183,!0,t);case 45:return FA(A,3664,3673,!0,t);case 46:return FA(A,3872,3881,!0,t);default:return FA(A,48,57,!0,t)}},Ni="data-html2canvas-ignore",ns=(function(){function A(e,r,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new kd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,r){var t=this,n=Td(e,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=Rd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(jd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Od(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(_d(document.doctype)+"<html></html>"),Gd(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(e){if(kn(e,2))debugger;if(Ti(e))return this.createCanvasClone(e);if(Za(e))return this.createVideoClone(e);if(za(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Dn(r)&&(Dn(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),qa(r)?this.createCustomElementClone(r):r},A.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return tn(e.style,r),r},A.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=e.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var a=e.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,r,t){(!Ne(r)||!Ld(r)&&!r.hasAttribute(Ni)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ne(r)||!za(r))&&e.appendChild(this.cloneNode(r,t))},A.prototype.cloneChildNodes=function(e,r,t){for(var n=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Ne(a)&&Oi(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},A.prototype.cloneNode=function(e,r){if(Mi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Ne(e)&&(Tn(e)||sr(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var a=t.getComputedStyle(e),s=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&Tn(n)&&(this.clonedReferenceElement=n),zn(n)&&Xd(n);var l=this.counters.parse(new Ka(this.context,a)),c=this.resolvePseudoContent(e,n,s,dt.BEFORE);qa(e)&&(r=!0),Za(e)||this.cloneChildNodes(e,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(e,n,o,dt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||sr(e))&&!Di(e)||r)&&tn(a,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Cr(e)||Qr(e))&&(Cr(n)||Qr(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ka(this.context,t));var l=new xB(this.context,t),c=o.createElement("html2canvaspseudoelement");tn(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(e.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(Xe),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?Ln.parse(a.context,x.value):3;c.appendChild(o.createTextNode(mt(U,y,!1)))}}else if(B.name==="counters"){var S=B.values.filter(Xe),C=S[0],H=S[1],x=S[2];if(C&&uA(C)){var L=a.counters.getCounterValues(C.value),h=x&&uA(x)?Ln.parse(a.context,x.value):3,b=H&&H.type===0?H.value:"",k=L.map(function(O){return mt(O,h,!1)}).join(b);c.appendChild(o.createTextNode(k))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(Ma(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Ma(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=On+" "+Rn;var g=n===dt.BEFORE?" "+On:" "+Rn;return sr(r)?r.className.baseValue+=g:r.className+=g,c}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),dt;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(dt||(dt={}));var Td=function(A,e){var r=A.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(Ni,"true"),A.body.appendChild(r),r},Dd=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},Od=function(A){return Promise.all([].slice.call(A.images,0).map(Dd))},Rd=function(A){return new Promise(function(e,r){var t=A.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=A.onload=function(){t.onload=A.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),e(A))},50)}})},Nd=["all","d","content"],tn=function(A,e){for(var r=A.length-1;r>=0;r--){var t=A.item(r);Nd.indexOf(t)===-1&&e.style.setProperty(t,A.getPropertyValue(t))}return e},_d=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Gd=function(A,e,r){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||r!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,r)},jd=function(A){var e=A[0],r=A[1],t=A[2];e.scrollLeft=r,e.scrollTop=t},Vd=":before",Pd=":after",On="___html2canvas___pseudoelement_before",Rn="___html2canvas___pseudoelement_after",as=`{
- content: "" !important;
- display: none !important;
-}`,Xd=function(A){Jd(A,"."+On+Vd+as+`
- .`+Rn+Pd+as)},Jd=function(A,e){var r=A.ownerDocument;if(r){var t=r.createElement("style");t.textContent=e,A.appendChild(t)}},_i=(function(){function A(){}return A.getOrigin=function(e){var r=A._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Wd=(function(){function A(e,r){this.context=e,this._options=r,this._cache={}}return A.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(nn(e)||qd(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=_i.isSameOrigin(e),t=!rn(e)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!rn(e)&&!r&&!nn(e)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!rn(e)&&!nn(e)&&!n&&!t?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,($d(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},A})(),Yd=/^data:image\/svg\+xml/i,Zd=/^data:image\/.*;base64,/i,zd=/^data:image\/.*/i,qd=function(A){return HA.SUPPORT_SVG_DRAWING||!Af(A)},rn=function(A){return zd.test(A)},$d=function(A){return Zd.test(A)},nn=function(A){return A.substr(0,4)==="blob"},Af=function(A){return A.substr(-3).toLowerCase()==="svg"||Yd.test(A)},V=(function(){function A(e,r){this.type=0,this.x=e,this.y=r}return A.prototype.add=function(e,r){return new A(this.x+e,this.y+r)},A})(),Ke=function(A,e,r){return new V(A.x+(e.x-A.x)*r,A.y+(e.y-A.y)*r)},zt=(function(){function A(e,r,t,n){this.type=1,this.start=e,this.startControl=r,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,r){var t=Ke(this.start,this.startControl,e),n=Ke(this.startControl,this.endControl,e),a=Ke(this.endControl,this.end,e),s=Ke(t,n,e),o=Ke(n,a,e),l=Ke(s,o,e);return r?new A(this.start,t,s,l):new A(l,o,a,this.end)},A.prototype.add=function(e,r){return new A(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),XA=function(A){return A.type===1},ef=(function(){function A(e){var r=e.styles,t=e.bounds,n=at(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=at(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=at(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=at(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,S=t.height-u,H=t.width-B,L=t.height-C,h=r.borderTopWidth,b=r.borderRightWidth,k=r.borderBottomWidth,M=r.borderLeftWidth,R=wA(r.paddingTop,e.bounds.width),O=wA(r.paddingRight,e.bounds.width),Z=wA(r.paddingBottom,e.bounds.width),D=wA(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+M/3,t.top+h/3,a-M/3,s-h/3,gA.TOP_LEFT):new V(t.left+M/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-b/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-b/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+H,t.top+S,B-b/3,u-k/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/3,t.top+t.height-k/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+M/3,t.top+L,Q-M/3,C-k/3,gA.BOTTOM_LEFT):new V(t.left+M/3,t.top+t.height-k/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+M*2/3,t.top+h*2/3,a-M*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+M*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-b*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-b*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+H,t.top+S,B-b*2/3,u-k*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b*2/3,t.top+t.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+M*2/3,t.top+L,Q-M*2/3,C-k*2/3,gA.BOTTOM_LEFT):new V(t.left+M*2/3,t.top+t.height-k*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+M/2,t.top+h/2,a-M/2,s-h/2,gA.TOP_LEFT):new V(t.left+M/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-b/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-b/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+H,t.top+S,B-b/2,u-k/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/2,t.top+t.height-k/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+M/2,t.top+L,Q-M/2,C-k/2,gA.BOTTOM_LEFT):new V(t.left+M/2,t.top+t.height-k/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+H,t.top+S,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+L,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+M,t.top+h,Math.max(0,a-M),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+M,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-b),t.top+h,y>t.width+b?0:Math.max(0,l-b),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-b,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(H,t.width-M),t.top+Math.min(S,t.height-k),Math.max(0,B-b),Math.max(0,u-k),gA.BOTTOM_RIGHT):new V(t.left+t.width-b,t.top+t.height-k),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+M,t.top+Math.min(L,t.height-k),Math.max(0,Q-M),Math.max(0,C-k),gA.BOTTOM_LEFT):new V(t.left+M,t.top+t.height-k),this.topLeftContentBox=a>0||s>0?QA(t.left+M+D,t.top+h+R,Math.max(0,a-(M+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+M+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+M+D),t.top+h+R,y>t.width+M+D?0:l-M+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(b+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(H,t.width-(M+D)),t.top+Math.min(S,t.height+h+R),Math.max(0,B-(b+O)),u-(k+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(b+O),t.top+t.height-(k+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+M+D,t.top+L,Math.max(0,Q-(M+D)),C-(k+Z),gA.BOTTOM_LEFT):new V(t.left+M+D,t.top+t.height-(k+Z))}return A})(),gA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(A,e,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=A+r,c=e+t;switch(n){case gA.TOP_LEFT:return new zt(new V(A,c),new V(A,c-o),new V(l-s,e),new V(l,e));case gA.TOP_RIGHT:return new zt(new V(A,e),new V(A+s,e),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new zt(new V(l,e),new V(l,e+o),new V(A+s,c),new V(A,c));case gA.BOTTOM_LEFT:default:return new zt(new V(l,c),new V(l-s,c),new V(A,e+o),new V(A,e))}},mr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},tf=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},vr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},rf=(function(){function A(e,r,t){this.offsetX=e,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return A})(),qt=(function(){function A(e,r){this.path=e,this.target=r,this.type=1}return A})(),nf=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),af=function(A){return A.type===0},Gi=function(A){return A.type===1},sf=function(A){return A.type===2},ss=function(A,e){return A.length===e.length?A.some(function(r,t){return r===e[t]}):!1},of=function(A,e,r,t,n){return A.map(function(a,s){switch(s){case 0:return a.add(e,r);case 1:return a.add(e+t,r);case 2:return a.add(e+t,r+n);case 3:return a.add(e,r+n)}return a})},ji=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Vi=(function(){function A(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new ef(this.container),this.container.styles.opacity<1&&this.effects.push(new nf(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new rf(t,n,a))}if(this.container.styles.overflowX!==0){var s=mr(this.curves),o=vr(this.curves);ss(s,o)?this.effects.push(new qt(s,6)):(this.effects.push(new qt(s,2)),this.effects.push(new qt(o,4)))}}return A.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!Gi(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=mr(t.curves),o=vr(t.curves);ss(s,o)||n.unshift(new qt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,e)})},A})(),Nn=function(A,e,r,t){A.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Vi(n,A);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:e,g=new ji(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);Nn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Nn(o,e,r,l);EA(n.flags,8)&&Pi(n,l)})},Pi=function(A,e){for(var r=A instanceof Kn?A.start:1,t=A instanceof Kn?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof xi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=mt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},lf=function(A){var e=new Vi(A,null),r=new ji(e),t=[];return Nn(e,r,r,t),Pi(e.container,t),r},is=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},cf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return WA(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},gf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},uf=function(A,e){switch(e){case 0:return $t(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return $t(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return $t(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return $t(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},$t=function(A,e){var r=[];return XA(A)?r.push(A.subdivide(.5,!1)):r.push(A),XA(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},WA=function(A,e,r,t){var n=[];return XA(A)?n.push(A.subdivide(.5,!1)):n.push(A),XA(r)?n.push(r.subdivide(.5,!0)):n.push(r),XA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),XA(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Xi=function(A){var e=A.bounds,r=A.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Ur=function(A){var e=A.styles,r=A.bounds,t=wA(e.paddingLeft,r.width),n=wA(e.paddingRight,r.width),a=wA(e.paddingTop,r.width),s=wA(e.paddingBottom,r.width);return r.add(t+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+t+n),-(e.borderTopWidth+e.borderBottomWidth+a+s))},Bf=function(A,e){return A===0?e.bounds:A===2?Ur(e):Xi(e)},df=function(A,e){return A===0?e.bounds:A===2?Ur(e):Xi(e)},an=function(A,e,r){var t=Bf(Oe(A.styles.backgroundOrigin,e),A),n=df(Oe(A.styles.backgroundClip,e),A),a=ff(Oe(A.styles.backgroundSize,e),r,t),s=a[0],o=a[1],l=at(Oe(A.styles.backgroundPosition,e),t.width-s,t.height-o),c=hf(Oe(A.styles.backgroundRepeat,e),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Te=function(A){return uA(A)&&A.value===_e.AUTO},Ar=function(A){return typeof A=="number"},ff=function(A,e,r){var t=e[0],n=e[1],a=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=Ar(a);if(uA(s)&&(s.value===_e.CONTAIN||s.value===_e.COVER)){if(Ar(a)){var c=r.width/r.height;return c<a!=(s.value===_e.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Ar(t),B=Ar(n),u=g||B;if(Te(s)&&(!o||Te(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Te(s)?U=y*a:(!o||Te(o))&&(y=U/a),[U,y]}var S=null,H=null;if(yA(s)?S=wA(s,r.width):o&&yA(o)&&(H=wA(o,r.height)),S!==null&&(!o||Te(o))&&(H=g&&B?S/t*n:r.height),H!==null&&Te(s)&&(S=g&&B?H/n*t:r.width),S!==null&&H!==null)return[S,H];throw new Error("Unable to calculate background-size for element")},Oe=function(A,e){var r=A[e];return typeof r>"u"?A[0]:r},hf=function(A,e,r,t,n){var a=e[0],s=e[1],o=r[0],l=r[1];switch(A){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},wf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",os="Hidden Text",pf=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=wf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(os)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(os)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},A.prototype.getMetrics=function(e,r){var t=e+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(e,r)),this._data[t]},A})(),Ji=(function(){function A(e,r){this.context=e,this.options=r}return A})(),Cf=1e4,Qf=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new pf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return e.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},e.prototype.applyEffect=function(r){this.ctx.save(),sf(r)&&(this.ctx.globalAlpha=r.opacity),af(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Gi(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Yn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=bf(r.fontFamily).join(", "),a=Et(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Ur(r),s=vr(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,H,p,Q,L,C,x,U,y,S,H,L;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof bi))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof yi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof Ei))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Si&&t.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof Zn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===wr?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(Ya),this.ctx.fill(),this.ctx.restore()):t.type===pr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Ya),this.ctx.fill(),this.ctx.restore())),mf(t)&&t.value.length){switch(u=this.createFontStyle(a),H=u[0],p=u[1],Q=this.fontMetrics.getMetrics(H,p).baseline,this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Uf(t.styles.textAlign),L=Ur(t),C=0,t.styles.textAlign){case 1:C+=L.width/2;break;case 2:C+=L.width;break}x=L.add(C,0,0,-L.height/2+1),this.ctx.save(),this.path([new V(L.left,L.top),new V(L.left+L.width,L.top),new V(L.left+L.width,L.top+L.height),new V(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bt(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,S=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(H=this.createFontStyle(a)[0],this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new le(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,La(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bt(r.listValue,L),a.letterSpacing,La(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=XA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),XA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},e.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,k,Q,R,tA,AA,D,z,C,x,U,y,S,H,L,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=an(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],k=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,k,tA,AA)),[3,6];case 5:au(g)?(Q=an(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=Au(g.angle,D,z),x=C[0],U=C[1],y=C[2],S=C[3],H=C[4],L=document.createElement("canvas"),L.width=D,L.height=z,h=L.getContext("2d"),b=h.createLinearGradient(U,S,y,H),Ha(g.stops,x).forEach(function(N){return b.addColorStop(N.stop,xA(N.color))}),h.fillStyle=b,h.fillRect(0,0,D,z),D>0&&z>0&&(k=a.ctx.createPattern(L,"repeat"),a.renderRepeat(R,k,tA,AA))):su(g)&&(M=an(r,t,[null,null,null]),R=M[0],O=M[1],Z=M[2],D=M[3],z=M[4],eA=g.position.length===0?[Xn]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=eu(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Ha(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,I=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,I),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-I),a.ctx.fillRect(O,_*(Z-I)+I,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(is(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=cf(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=gf(a,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!Ce(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=vf(Oe(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ce(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=mr(r.curves),C=p.inset?0:Cf,x=of(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!Ce(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,h,L,h;return kA(this,function(b){return this.ctx.save(),o=uf(a,n),l=is(a,n),s===2&&(this.path(l),this.ctx.clip()),XA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),XA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),S=(p-y*Q)/(y-1),H=(p-(y+1)*Q)/y,C=H<=0||Math.abs(C-S)<Math.abs(C-H)?S:H),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(XA(l[0])&&(L=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),XA(l[1])&&(L=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=lf(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(Ji),mf=function(A){return A instanceof Hi||A instanceof Ii?!0:A instanceof Zn&&A.type!==pr&&A.type!==wr},vf=function(A,e){switch(A){case 0:return mr(e);case 2:return tf(e);default:return vr(e)}},Uf=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},Ff=["-apple-system","system-ui"],bf=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return Ff.indexOf(e)===-1}):A},yf=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Mn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Ef(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(Ji),Ef=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},xf=(function(){function A(e){var r=e.id,t=e.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Lt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Lt([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Lt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Lt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),If=(function(){function A(e,r){var t;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new xf({id:this.instanceName,enabled:e.logging}),this.cache=(t=e.cache)!==null&&t!==void 0?t:new Wd(this,e)}return A.instanceCount=1,A})(),Hf=function(A,e){return e===void 0&&(e={}),Sf(A,e)};typeof window<"u"&&_i.setContext(window);var Sf=function(A,e){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,b,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j;return kA(this,function(_){switch(_.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(M=e.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:e.proxy,useCORS:(R=e.useCORS)!==null&&R!==void 0?R:!1},a=Cn({logging:(O=e.logging)!==null&&O!==void 0?O:!0,cache:e.cache},n),s={windowWidth:(Z=e.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=e.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=e.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=e.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new le(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new If(a,o),c=(tA=e.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=e.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new ns(l,A,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=zn(u)||Sd(u)?ic(u.ownerDocument):yr(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,S=Lf(l,u,e.backgroundColor),H={canvas:e.canvas,backgroundColor:S,scale:(aA=(dA=e.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=e.x)!==null&&q!==void 0?q:0)+U,y:((lA=e.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=e.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(I=e.height)!==null&&I!==void 0?I:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),b=new yf(l,H),[4,b.render(u)]):[3,3];case 2:return L=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=ki(l,u),S===h.styles.backgroundColor&&(h.styles.backgroundColor=oe.TRANSPARENT),l.logger.debug("Starting renderer for element at "+H.x+","+H.y+" with size "+H.width+"x"+H.height),b=new Qf(l,H),[4,b.render(h)];case 4:L=_.sent(),_.label=5;case 5:return(!((j=e.removeContainer)!==null&&j!==void 0)||j)&&(ns.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,L]}})})},Lf=function(A,e,r){var t=e.ownerDocument,n=t.documentElement?gt(A,getComputedStyle(t.documentElement).backgroundColor):oe.TRANSPARENT,a=t.body?gt(A,getComputedStyle(t.body).backgroundColor):oe.TRANSPARENT,s=typeof r=="string"?gt(A,r):r===null?oe.TRANSPARENT:4294967295;return e===t.documentElement?Ce(n)?Ce(a)?s:a:n:s},sn={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},IA.apply(this,arguments)},kf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},Mf=function(A,e){var r=IA({},kf);if(A)for(var t in sn)Object.prototype.hasOwnProperty.call(sn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),sn[t]));for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),e[t]));return r},ls=function(A,e){return A?IA(IA({},e.rbgcpControlBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlBtn)},ft=function(A,e){return A?IA(IA({},e.rbgcpControlIconBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlIconBtn)},er=function(A,e){return A?IA(IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn),e.rbgcpControlBtnSelected):IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn)},ee=function(){return ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ee.apply(this,arguments)},Kf=function(A){var e=A.color,r=BA().defaultStyles,t=e??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Tf=function(A){var e=A.onSelect,r=BA().defaultStyles,t=E.useState(null),n=t[0],a=t[1],s=E.useState(!1),o=s[0],l=s[1],c=E.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),Hf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,S=U*2,H=n.getImageData(y,S,1,1).data;e("rgba(".concat(H[0],", ").concat(H[1],", ").concat(H[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),S=y.toRgb(),H=S.r,L=S.g,h=S.b;e("rgba(".concat(H,", ").concat(L,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:ee(ee({},r.rbgcpEyedropperBtn),ft(o,r))},m.createElement(Kf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(sc,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},_n=function(){return _n=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},_n.apply(this,arguments)},on=function(A){var e=A.value,r=A.reffy,t=A.label,n=A.config,a=A.callback,s=A.squareWidth,o=A.openAdvanced,l=A.defaultStyles,c=A.pickerIdSuffix,g=n.barSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useState(2),C=Q[0],x=Q[1],U=e*(s-18);E.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},S=function(h){u&&a(Pe(h,g))},H=function(h){u||a(Pe(h,g))},L=function(){p(!0)};return E.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return S(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:_n({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:L,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return S(h)},onClick:function(h){return H(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return H(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Df=function(A){var e=A.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=E.useRef(null),Q=E.useRef(null),C=E.useRef(null);Il(p,o?.h,u*100,s),Hl(Q,o?.h,B*100,s),Sl(C,o?.h,B*100,s);var x=function(S){var H=SA({h:o?.h,s:S/100,l:u}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},U=function(S){var H=SA({h:o?.h,s:B,l:S/100}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},y=function(S){var H=SA({h:o?.h,s:o?.s*100,v:S}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:e?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:e?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:e?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(on,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(on,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(on,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c})))},Ee=function(){return Ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Ee.apply(this,arguments)},Of=function(A){var e=A.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:e?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:e?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:Ee({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},CA.apply(this,arguments)},Rf=function(){var A=BA(),e=A.gradientType,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=e==="linear-gradient",o=e==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(ql,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement($l,{color:o?"#568CF5":""})))},Nf=function(){var A=BA(),e=A.currentLeft,r=A.currentColor,t=A.defaultStyles,n=A.handleGradient,a=A.pickerIdSuffix,s=function(o){n(r,Ve(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(nc,null),m.createElement("input",{value:e,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},_f=function(){var A=BA(),e=A.degrees,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=Ve(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(rc,null),m.createElement("input",{value:e,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:e>99?0:e<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},Gf=function(){var A=BA(),e=A.colors,r=A.selectedColor,t=A.createGradientStr,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(){if(e?.length>2){var o=e?.map(function(c,g){return CA(CA({},c),{value:g===r-1?br(c):bt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ft(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(zl,null))},cs=function(A){var e=A.hideGradientType,r=A.hideGradientAngle,t=A.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:e?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!e&&m.createElement(Rf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(_f,null)),!t&&m.createElement(Nf,null),m.createElement(Gf,null))},vt=function(){return vt=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},vt.apply(this,arguments)},jf=function(A){var e,r,t=A.hideColorTypeBtns,n=A.setGradient,a=A.isGradient,s=A.setSolid,o=A.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:vt({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:ls(!a,c)},(e=o?.CONTROLS)===null||e===void 0?void 0:e.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:ls(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Vf=function(A){var e=A.openInputType,r=A.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=e?"visibility 0ms linear":"visibility 100ms linear 150ms",c=e?"z-index 0ms linear":"z-index 100ms linear 150ms",g=e?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){e&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:vt({visibility:e?"visible":"hidden",zIndex:e?"":-100,opacity:e?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:er(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:er(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:er(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:er(n==="cmyk",s)},"CMYK"))},Pf=function(A){var e,r,t=A.locales,n=A.hideEyeDrop,a=n===void 0?!1:n,s=A.hideAdvancedSliders,o=s===void 0?!1:s,l=A.hideColorGuide,c=l===void 0?!1:l,g=A.hideInputType,B=g===void 0?!1:g,u=A.hideColorTypeBtns,p=u===void 0?!1:u,Q=A.hideGradientControls,C=Q===void 0?!1:Q,x=A.hideGradientType,U=x===void 0?!1:x,y=A.hideGradientAngle,S=y===void 0?!1:y,H=A.hideGradientStop,L=H===void 0?!1:H,h=BA(),b=h.config,k=h.onChange,M=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=b.defaultColor,eA=b.defaultGradient,tA=E.useState(!1),AA=tA[0],dA=tA[1],aA=E.useState(!1),q=aA[0],lA=aA[1],sA=E.useState(!1),I=sA[0],j=sA[1],_=a&&o&&c&&B,F=(e=O?.color)!==null&&e!==void 0?e:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){k(F)},G=function(){k(N)},P=a&&o&&c&&B,$=P&&p;return $?M&&!C?m.createElement(cs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(jf,{hideColorTypeBtns:p,setGradient:G,isGradient:M,setSolid:T,locales:t}),!P&&m.createElement("div",{style:vt({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Tf,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!I)},style:ft(I,Z)},m.createElement(Ac,{color:I?"#568CF5":""})),!c&&m.createElement("div",{style:ft(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(tc,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ft(q,Z)},m.createElement(ec,{color:q?"#568CF5":""}),m.createElement(Vf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Df,{openAdvanced:I}),!c&&m.createElement(Of,{openComparibles:AA}),M&&!C&&m.createElement(cs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}))},te=function(){return te=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},te.apply(this,arguments)},gs=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Xf=function(A){var e=A.left,r=A.i,t=A.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return te(te({},U),{value:y===C?br(U):bt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:te(te({},l.rbgcpGradientHandleWrap),{left:(e??0)*u})},m.createElement("div",{style:te(te({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Jf=function(){var A=BA(),e=A.value,r=A.colors,t=A.config,n=A.squareWidth,a=A.currentColor,s=A.handleGradient,o=A.pickerIdSuffix,l=A.createGradientStr,c=t.barSize,g=E.useState(!1),B=g[0],u=g[1];function p(S){return S.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(S){var H,L=Pe(S,c),h=(H=gs(gs([],r.map(function(b){return te(te({},b),{value:bt(b)})}),!0),[{value:a,left:L}],!1))===null||H===void 0?void 0:H.sort(function(b,k){return b.left-k.left});l(h)},C=function(){u(!1)},x=function(S){B||(Q(S),u(!0))},U=function(S){B&&s(a,Pe(S,c))},y=function(){C()};return E.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(e)},onMouseDown:function(S){return x(S)},onMouseMove:function(S){return U(S)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(S,H){return m.createElement(Xf,{i:H,left:S.left,key:"".concat(H,"-").concat(S),setDragging:u})}))},Wf=function(A){var e=A.locales,r=A.presets,t=A.hideHue,n=A.hideInputs,a=A.hidePresets,s=A.hideOpacity,o=A.hideEyeDrop,l=A.hideControls,c=A.hideInputType,g=A.hideColorGuide,B=A.hidePickerSquare,u=A.hideGradientType,p=A.hideGradientStop,Q=A.hideGradientAngle,C=A.hideColorTypeBtns,x=A.hideAdvancedSliders,U=A.hideGradientControls,y=BA(),S=y.isGradient,H=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(H)},!B&&m.createElement(Xl,null),!l&&m.createElement(Pf,{locales:e,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),S&&m.createElement(Jf,null),!t&&m.createElement(Ll,null),!s&&m.createElement(Jl,null),!n&&m.createElement(_l,null),!a&&m.createElement(Zl,{presets:r}))},Fr=function(){return Fr=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Fr.apply(this,arguments)};function Yf(A){var e=A.idSuffix,r=A.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=A.onChange,a=A.hideControls,s=a===void 0?!1:a,o=A.hideInputs,l=o===void 0?!1:o,c=A.hideOpacity,g=c===void 0?!1:c,B=A.hidePresets,u=B===void 0?!1:B,p=A.hideHue,Q=p===void 0?!1:p,C=A.presets,x=C===void 0?[]:C,U=A.hideEyeDrop,y=U===void 0?!1:U,S=A.hideAdvancedSliders,H=S===void 0?!1:S,L=A.hideColorGuide,h=L===void 0?!1:L,b=A.hideInputType,k=b===void 0?!1:b,M=A.hideColorTypeBtns,R=M===void 0?!1:M,O=A.hideGradientType,Z=O===void 0?!1:O,D=A.hideGradientAngle,z=D===void 0?!1:D,eA=A.hideGradientStop,tA=eA===void 0?!1:eA,AA=A.hideGradientControls,dA=AA===void 0?!1:AA,aA=A.locales,q=aA===void 0?Wl:aA,lA=A.width,sA=lA===void 0?294:lA,I=A.height,j=I===void 0?294:I,_=A.style,F=_===void 0?{}:_,N=A.className,T=A.disableDarkMode,G=T===void 0?!1:T,P=A.disableLightMode,$=P===void 0?!1:P,pA=A.hidePickerSquare,f=pA===void 0?!1:pA,v=A.showHexAlpha,w=v===void 0?!1:v,K=A.config,W=K===void 0?{}:K,X=vl(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=Mf(oA,F),UA=oA?"-dark".concat(e?"-".concat(e):""):e?"-".concat(e):"";return m.createElement("div",{className:N,style:Fr(Fr({},fA.body),{width:sA})},m.createElement(El,{value:X,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Wf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:H,hideColorGuide:h,hideInputType:k,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const ln="rgb(0, 0, 0)",Zf=()=>{const[A,e]=E.useState(localStorage.getItem("customBackgroundColour")||ln),r=n=>{e(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{e(ln),localStorage.setItem("customBackgroundColour",ln),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Yf,{value:A,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),onKeyDown:tr(()=>t()),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var zf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],At=(A,e)=>{var r="";for(let t=1;t<=e;t++){let n=Math.floor(A)/Math.pow(83,e-t)%83;r+=zf[Math.floor(n)]}return r},cn=A=>{let e=A/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},gn=A=>{let e=Math.max(0,Math.min(1,A));return e<=.0031308?Math.trunc(e*12.92*255+.5):Math.trunc((1.055*Math.pow(e,.4166666666666667)-.055)*255+.5)},qf=A=>A<0?-1:1,un=(A,e)=>qf(A)*Math.pow(Math.abs(A),e),us=class extends Error{constructor(A){super(A),this.name="ValidationError",this.message=A}},Bs=4,$f=(A,e,r,t)=>{let n=0,a=0,s=0,o=e*Bs;for(let c=0;c<e;c++){let g=Bs*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*cn(A[u]),a+=p*cn(A[u+1]),s+=p*cn(A[u+2])}}let l=1/(e*r);return[n*l,a*l,s*l]},Ah=A=>{let e=gn(A[0]),r=gn(A[1]),t=gn(A[2]);return(e<<16)+(r<<8)+t},eh=(A,e)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(un(A[0]/e,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(un(A[1]/e,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(un(A[2]/e,.5)*9+9.5))));return r*19*19+t*19+n},th=(A,e,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new us("BlurHash must have between 1 and 9 components");if(e*r*4!==A.length)throw new us("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=$f(A,e,r,(C,x)=>p*Math.cos(Math.PI*u*C/e)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=At(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=At(u,1)}else g=1,l+=At(0,1);return l+=At(Ah(s),4),o.forEach(B=>{l+=At(eh(B,g),2)}),l},rh=th;async function ds(A){return new Promise((e,r)=>{const t=new Image;t.onload=()=>{e({width:t.width,height:t.height}),typeof A!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof A=="string"?t.src=A:t.src=URL.createObjectURL(A)})}async function fs(A,e=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=rh(g.data,g.width,g.height,e,r);typeof A!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof A=="string"?a.src=A:a.src=URL.createObjectURL(A)})}function Bn(A){const e=A.split(",")[1];if(!e)return 0;const r=(e.match(/=/g)||[]).length;return Math.floor(e.length*3/4-r)}function hs(A,e){return A&&A.name?A.name:`Image ${e+1}`}function nh(){const A={};return Object.keys(localStorage).forEach(e=>{A[e]=localStorage.getItem(e)}),new TextEncoder().encode(JSON.stringify(A)).length}function ve(A){if(A===0)return"0 Bytes";if(!A)return"Unknown";const e=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(A)/Math.log(e));return Math.round(A/Math.pow(e,t)*10)/10+" "+r[t]}const ah=({files:A,onConfirm:e,onCancel:r})=>{const[t,n]=E.useState(""),a=()=>{e(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(vs,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:A.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},dn=A=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(A.length))}catch{}},Wi=E.memo(()=>{const[A,e]=E.useState([]),[r,t]=E.useState(!1),[n,a]=E.useState([]),[s,o]=E.useState(!0),[l,c]=E.useState(!1),[g,B]=E.useState({current:0,total:0}),[u,p]=E.useState(!1),[Q,C]=E.useState(new Set),[x,U]=E.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,S]=E.useState(!1),[H,L]=E.useState({usage:0,quota:0}),h=E.useRef(null),b=E.useRef(0),k=5e7;E.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();L({usage:N.usage||0,quota:N.quota||k})}catch(N){console.warn("Could not get storage estimate:",N),L({usage:0,quota:k})}else L({usage:0,quota:k})})()},[A]),E.useEffect(()=>{(async()=>{try{await Co();const N=await Ue();e(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!It(T.url))try{const G=await ds(T.url),P=await fs(T.url);await Qo(T.id,{dimensions:G,blurHash:P});const $=await Ue();e($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const M=E.useCallback(async(F,N,T,G=!1)=>{try{const P={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await ir(P);const $=await Ue();e($),dn($),G||hA.emit("refresh","background")}catch(P){throw console.error("Error saving background:",P),P}},[]),R=async(F,N="")=>{const T=A.reduce((P,$)=>$.url&&$.url.startsWith("data:")?P+Bn($.url):P,0),G=H.quota||k;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(P){console.warn("Could not request storage persistence:",P)}if(It(F.type)){if(T+F.size>G)throw new Error("no_storage");const P=new FileReader;return new Promise(($,pA)=>{P.onloadend=()=>{$({dataUrl:P.result,metadata:{name:hs(F,A.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},P.onerror=pA,P.readAsDataURL(F)})}else{const P=await na.compressAccurately(F,{size:450,accuracy:.9}),$=H.quota||k;if(T+P.size>$)throw new Error("no_storage");const pA=await na.filetoDataURL(P),[f,v]=await Promise.all([ds(pA),fs(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:hs(F,A.length),dimensions:f,fileSize:Bn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const P=await R(F[G],N);await M(F[G],P.dataUrl,P.metadata,!0),B({current:G+1,total:F.length})}catch(P){if(P.message==="no_storage"||P.name==="QuotaExceededError"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=E.useCallback(async(F,N)=>{try{F==="add"?await ir(""):await Bo(N);const T=await Ue();e(T),dn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await mo(F);const N=await Ue();e(N),C(new Set),dn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=E.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...A].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=A.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+Bn(N.url):F,0),lA=H.quota||k,sA=q/lA*100,I=nh(),j=5242880;E.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),b.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),b.current--,b.current===0&&p(!1)},P=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),b.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=P,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[A.length,O]);const _=aA.filter(F=>F&&It(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(ta,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(fo,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[A.length," ",A.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",ve(q)," / ",ve(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(ra,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):A.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=A.findIndex(G=>G===F),T=F&&It(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N),"aria-label":F.name||`${N+1}`})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=ho(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(wo,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:ve(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(ra,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button","aria-label":d.getMessage("modals.main.settings.sections.background.source.remove"),onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(ht,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ta,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(po,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(Ns,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(ah,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>S(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>S(!1),"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(ht,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[ve(q)," / ",ve(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[ve(I)," / ",ve(j)," (",Math.round(I/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>S(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Wi.displayName="CustomSettings";const sh=({usingImage:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!A}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!A})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const ih=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function Yi(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const oh=({backgroundFilter:A,onFilterChange:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:e,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:ih}),A!=="none"&&i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),lh=({backgroundType:A,onTypeChange:e})=>i.jsxs(rA,{final:A==="random_colour"||A==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:e,category:"background",items:Yi()})})]}),ws=({icon:A,title:e,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsx(A,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",onClick:n?a=>a.stopPropagation():void 0,children:n||i.jsx(ms,{})})]}),Zi=E.memo(({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=E.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);E.useEffect(()=>{o&&A!=="source"&&e("source",r)},[o,A,e,r]);const l=()=>{switch(t){case"custom":return i.jsx(Wi,{});case"colour":return i.jsx(Zf,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>A==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>e(null,r)}):A==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>e(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!A&&i.jsxs(i.Fragment,{children:[i.jsx(ws,{icon:vo,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>e("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:Yi()})}),g&&i.jsx(ws,{icon:Uo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>e("effects",r)})]}),!A&&g&&i.jsx(sh,{usingImage:c}),A==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(lh,{backgroundType:t,onTypeChange:n}),l()]}),g&&A==="effects"&&i.jsx(oh,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});Zi.displayName="BackgroundOptions";function ch(){const A=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...Fo()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:A})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(ys,{name:"recentChats",category:"widgets"})})]})]})}const gh=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function uh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const[t,n]=E.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(Eo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>Mo(),icon:i.jsx(xo,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Io,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(Ns,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>Ko(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(Ho,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=A==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(bo,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>e("data",r),icon:i.jsx(yo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...gh.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(lr,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(lr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Bh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(hn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(lr,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(hn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:lt.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=A==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(So,{}),onClick:()=>e("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const dh=E.memo(Bh),fh=`BSD 3-Clause License
-
-Copyright (c) 2019-2026 The Mue Authors
-Copyright (c) 2018-2019 David Ralph
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-`;function hh(){const A=Object.keys(Lo),{MUE_REPO_URL:e,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${A.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:fh})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function wh(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const ph=E.memo(wh),Ch=E.lazy(()=>ko(()=>import("./index-DdIzjGFh.js"),__vite__mapDeps([0,1,2]),import.meta.url));function Qh(){return localStorage.getItem("timeType")==="analogue"?i.jsx(E.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(Ch,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const mh=E.memo(Qh);function vh(A){return Gn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(A)}function Uh(A){return Gn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(A)}function Fh(A){return Gn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(A)}function bh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(vh,{})}),i.jsx("div",{children:i.jsx(Uh,{})}),i.jsx("div",{children:i.jsx(Fh,{})})]})})}const yh=E.memo(bh);function Eh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const xh=E.memo(Eh);function Ih(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const Hh=E.memo(Ih),Sh={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},Lh=({id:A})=>{const{attributes:e,listeners:r,setNodeRef:t,transform:n,transition:a}=xs({id:A}),s={transform:Is.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...e,...r,className:"sortableItem",children:[Sh[A],i.jsx(Es,{})]})},kh=()=>{const[A,e]=E.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Hs(cr(ks),cr(Ls,{coordinateGetter:Ss})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&e(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Os(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(ph,{});case"time":return i.jsx(mh,{});case"quicklinks":return i.jsx(yh,{});case"date":return i.jsx(xh,{});case"message":return i.jsx(Hh,{});default:return null}};return E.useEffect(()=>{localStorage.setItem("order",JSON.stringify(A)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[A]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:A.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(Ms,{sensors:r,collisionDetection:Ks,onDragEnd:t,children:i.jsx(Ts,{items:A,strategy:Ds,children:i.jsx("ul",{className:"sortableContainer",children:A.map(s=>n(s)?i.jsx(Lh,{id:s},s):null)})})})]})]})]})},ps=[{label:"modals.main.marketplace.product.overview",name:"order",component:kh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:rl},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:sl},{label:"modals.main.settings.sections.time.title",name:"time",component:il},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:ul},{label:"modals.main.settings.sections.date.title",name:"date",component:ol},{label:"modals.main.settings.sections.message.title",name:"message",component:Bl},{label:"modals.main.settings.sections.background.title",name:"background",component:Zi},{label:"wb.settings_taskbox",name:"taskbox",component:ch},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:dh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:uh},{label:"wb.settings_credits",name:"credits",component:hh}];function Mh(A){const e=Ut(),r=E.useMemo(()=>ps.map(t=>({...t,translatedLabel:e(t.label)})),[e]);return i.jsx($o,{changeTab:t=>A.changeTab(t),current:"settings",currentTab:A.currentTab,onSectionChange:A.onSectionChange,onSubSectionChange:A.onSubSectionChange,currentSubSection:A.currentSubSection,deepLinkData:A.deepLinkData,navigationTrigger:A.navigationTrigger,sections:ps,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:A.currentSubSection,onSubSectionChange:A.onSubSectionChange,sectionName:n})},n))})}const Th=E.memo(Mh);export{Th as default};
diff --git a/src/firefox/newtab/assets/index-ZvUWfRHz.js b/src/chrome/newtab/assets/index-7-Cak-QP.js
similarity index 96%
rename from src/firefox/newtab/assets/index-ZvUWfRHz.js
rename to src/chrome/newtab/assets/index-7-Cak-QP.js
index fb8ea4262..151892d46 100644
--- a/src/firefox/newtab/assets/index-ZvUWfRHz.js
+++ b/src/chrome/newtab/assets/index-7-Cak-QP.js
@@ -1,5 +1,5 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-DqpzHKoz.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
-var oN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function qS(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var u=function l(){var d=!1;try{d=this instanceof l}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var d=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(u,l,d.get?d:{enumerable:!0,get:function(){return o[l]}})}),u}var Qc={exports:{}},Ts={};var S_;function RS(){if(S_)return Ts;S_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(l,d,c){var f=null;if(c!==void 0&&(f=""+c),d.key!==void 0&&(f=""+d.key),"key"in d){c={};for(var p in d)p!=="key"&&(c[p]=d[p])}else c=d;return d=c.ref,{$$typeof:o,type:l,key:f,ref:d!==void 0?d:null,props:c}}return Ts.Fragment=n,Ts.jsx=u,Ts.jsxs=u,Ts}var M_;function BS(){return M_||(M_=1,Qc.exports=RS()),Qc.exports}var w=BS();const Fv="wbnt:";function Vv(o,n=Fv){const u=()=>{const d=[];for(let c=0;c<o.length;c+=1){const f=o.key(c);f!=null&&f.startsWith(n)&&d.push(f.slice(n.length))}return d},l={getItem:d=>o.getItem(n+String(d)),setItem:(d,c)=>o.setItem(n+String(d),String(c)),removeItem:d=>o.removeItem(n+String(d)),clear:()=>u().forEach(d=>o.removeItem(n+d)),key:d=>u()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return u().length;if(Object.prototype.hasOwnProperty.call(l,c))return l[c];if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:f},set(d,c,f){return typeof c!="string"?!1:(o.setItem(n+c,String(f)),!0)},deleteProperty(d,c){return typeof c=="string"&&o.removeItem(n+c),!0},has(d,c){return Object.prototype.hasOwnProperty.call(l,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>u(),getOwnPropertyDescriptor(d,c){if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:{value:f,enumerable:!0,configurable:!0,writable:!0}}})}function LS(o=globalThis){const n=o.localStorage,u=Vv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>u}),{real:n,shim:u}}function IS(){const o=new Map;return{get length(){return o.size},key:n=>[...o.keys()][n]??null,getItem:n=>o.has(String(n))?o.get(String(n)):null,setItem:(n,u)=>{o.set(String(n),String(u))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let Hl=null;try{const o=`${Fv}__probe`;window.localStorage.setItem(o,"1");const n=window.localStorage.getItem(o);if(window.localStorage.removeItem(o),n!=="1")throw new Error("localStorage did not keep a value");Hl=LS(window).real}catch{try{const o=IS(),n=Vv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}Hl=null}var Zc={exports:{}},Ns={},Xc={exports:{}},Jc={};var C_;function US(){return C_||(C_=1,(function(o){function n(I,N){var K=I.length;I.push(N);e:for(;0<K;){var ie=K-1>>>1,ne=I[ie];if(0<d(ne,N))I[ie]=N,I[K]=ne,K=ie;else break e}}function u(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var N=I[0],K=I.pop();if(K!==N){I[0]=K;e:for(var ie=0,ne=I.length,ye=ne>>>1;ie<ye;){var Ae=2*(ie+1)-1,Ve=I[Ae],D=Ae+1,te=I[D];if(0>d(Ve,K))D<ne&&0>d(te,Ve)?(I[ie]=te,I[D]=K,ie=D):(I[ie]=Ve,I[Ae]=K,ie=Ae);else if(D<ne&&0>d(te,K))I[ie]=te,I[D]=K,ie=D;else break e}}return N}function d(I,N){var K=I.sortIndex-N.sortIndex;return K!==0?K:I.id-N.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;o.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();o.unstable_now=function(){return f.now()-p}}var h=[],k=[],_=1,g=null,b=3,S=!1,C=!1,A=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var N=u(k);N!==null;){if(N.callback===null)l(k);else if(N.startTime<=I)l(k),N.sortIndex=N.expirationTime,n(h,N);else break;N=u(k)}}function Q(I){if(A=!1,G(I),!C)if(u(h)!==null)C=!0,H||(H=!0,ee());else{var N=u(k);N!==null&&Y(Q,N.startTime-I)}}var H=!1,j=-1,q=5,V=-1;function $(){return x?!0:!(o.unstable_now()-V<q)}function W(){if(x=!1,H){var I=o.unstable_now();V=I;var N=!0;try{e:{C=!1,A&&(A=!1,z(j),j=-1),S=!0;var K=b;try{t:{for(G(I),g=u(h);g!==null&&!(g.expirationTime>I&&$());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var ne=ie(g.expirationTime<=I);if(I=o.unstable_now(),typeof ne=="function"){g.callback=ne,G(I),N=!0;break t}g===u(h)&&l(h),G(I)}else l(h);g=u(h)}if(g!==null)N=!0;else{var ye=u(k);ye!==null&&Y(Q,ye.startTime-I),N=!1}}break e}finally{g=null,b=K,S=!1}N=void 0}}finally{N?ee():H=!1}}}var ee;if(typeof L=="function")ee=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,X=ae.port2;ae.port1.onmessage=W,ee=function(){X.postMessage(null)}}else ee=function(){T(W,0)};function Y(I,N){j=T(function(){I(o.unstable_now())},N)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(I){I.callback=null},o.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_next=function(I){switch(b){case 1:case 2:case 3:var N=3;break;default:N=b}var K=b;b=N;try{return I()}finally{b=K}},o.unstable_requestPaint=function(){x=!0},o.unstable_runWithPriority=function(I,N){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var K=b;b=I;try{return N()}finally{b=K}},o.unstable_scheduleCallback=function(I,N,K){var ie=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ie+K:ie):K=ie,I){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,I={id:_++,callback:N,priorityLevel:I,startTime:K,expirationTime:ne,sortIndex:-1},K>ie?(I.sortIndex=K,n(k,I),u(h)===null&&I===u(k)&&(A?(z(j),j=-1):A=!0,Y(Q,K-ie))):(I.sortIndex=ne,n(h,I),C||S||(C=!0,H||(H=!0,ee()))),I},o.unstable_shouldYield=$,o.unstable_wrapCallback=function(I){var N=b;return function(){var K=b;b=N;try{return I.apply(this,arguments)}finally{b=K}}}})(Jc)),Jc}var A_;function PS(){return A_||(A_=1,Xc.exports=US()),Xc.exports}var $c={exports:{}},be={};var x_;function HS(){if(x_)return be;x_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function z(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}z.prototype.isReactComponent={},z.prototype.setState=function(D,te){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,te,"setState")},z.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}var Q=G.prototype=new L;Q.constructor=G,x(Q,z.prototype),Q.isPureReactComponent=!0;var H=Array.isArray;function j(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(D,te,se){var ce=se.ref;return{$$typeof:o,type:D,key:te,ref:ce!==void 0?ce:null,props:se}}function W(D,te){return $(D.type,te,D.props)}function ee(D){return typeof D=="object"&&D!==null&&D.$$typeof===o}function ae(D){var te={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(se){return te[se]})}var X=/\/+/g;function Y(D,te){return typeof D=="object"&&D!==null&&D.key!=null?ae(""+D.key):te.toString(36)}function I(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(j,j):(D.status="pending",D.then(function(te){D.status==="pending"&&(D.status="fulfilled",D.value=te)},function(te){D.status==="pending"&&(D.status="rejected",D.reason=te)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function N(D,te,se,ce,ke){var we=typeof D;(we==="undefined"||we==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(we){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case o:case n:pe=!0;break;case _:return pe=D._init,N(pe(D._payload),te,se,ce,ke)}}if(pe)return ke=ke(D),pe=ce===""?"."+Y(D,0):ce,H(ke)?(se="",pe!=null&&(se=pe.replace(X,"$&/")+"/"),N(ke,te,se,"",function(Ct){return Ct})):ke!=null&&(ee(ke)&&(ke=W(ke,se+(ke.key==null||D&&D.key===ke.key?"":(""+ke.key).replace(X,"$&/")+"/")+pe)),te.push(ke)),1;pe=0;var ue=ce===""?".":ce+":";if(H(D))for(var fe=0;fe<D.length;fe++)ce=D[fe],we=ue+Y(ce,fe),pe+=N(ce,te,se,we,ke);else if(fe=C(D),typeof fe=="function")for(D=fe.call(D),fe=0;!(ce=D.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),pe+=N(ce,te,se,we,ke);else if(we==="object"){if(typeof D.then=="function")return N(I(D),te,se,ce,ke);throw te=String(D),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return pe}function K(D,te,se){if(D==null)return D;var ce=[],ke=0;return N(D,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(D){if(D._status===-1){var te=D._result,se=te();se.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),D._status===-1&&(D._status=0,D._result=se)}if(D._status===1)return D._result.default;throw D._result}var ne=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)};function ye(D){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=D(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(j,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ae(D){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[D]:se.indexOf(D)===-1&&se.push(D)}else ye(Ae.bind(null,D))}var Ve={map:K,forEach:function(D,te,se){K(D,function(){te.apply(this,arguments)},se)},count:function(D){var te=0;return K(D,function(){te++}),te},toArray:function(D){return K(D,function(te){return te})||[]},only:function(D){if(!ee(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return be.Activity=g,be.Children=Ve,be.Component=z,be.Fragment=u,be.Profiler=d,be.PureComponent=G,be.StrictMode=l,be.Suspense=h,be.ViewTransition=b,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,be.__COMPILER_RUNTIME={__proto__:null,c:function(D){return q.H.useMemoCache(D)}},be.addTransitionType=Ae,be.cache=function(D){return function(){return D.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(D,te,se){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ce=x({},D.props),ke=D.key;if(te!=null)for(we in te.key!==void 0&&(ke=""+te.key),te)!V.call(te,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&te.ref===void 0||(ce[we]=te[we]);var we=arguments.length-2;if(we===1)ce.children=se;else if(1<we){for(var pe=Array(we),ue=0;ue<we;ue++)pe[ue]=arguments[ue+2];ce.children=pe}return $(D.type,ke,ce)},be.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:c,_context:D},D},be.createElement=function(D,te,se){var ce,ke={},we=null;if(te!=null)for(ce in te.key!==void 0&&(we=""+te.key),te)V.call(te,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ke[ce]=te[ce]);var pe=arguments.length-2;if(pe===1)ke.children=se;else if(1<pe){for(var ue=Array(pe),fe=0;fe<pe;fe++)ue[fe]=arguments[fe+2];ke.children=ue}if(D&&D.defaultProps)for(ce in pe=D.defaultProps,pe)ke[ce]===void 0&&(ke[ce]=pe[ce]);return $(D,we,ke)},be.createRef=function(){return{current:null}},be.forwardRef=function(D){return{$$typeof:p,render:D}},be.isValidElement=ee,be.lazy=function(D){return{$$typeof:_,_payload:{_status:-1,_result:D},_init:ie}},be.memo=function(D,te){return{$$typeof:k,type:D,compare:te===void 0?null:te}},be.startTransition=ye,be.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},be.use=function(D){return q.H.use(D)},be.useActionState=function(D,te,se){return q.H.useActionState(D,te,se)},be.useCallback=function(D,te){return q.H.useCallback(D,te)},be.useContext=function(D){return q.H.useContext(D)},be.useDebugValue=function(){},be.useDeferredValue=function(D,te){return q.H.useDeferredValue(D,te)},be.useEffect=function(D,te){return q.H.useEffect(D,te)},be.useEffectEvent=function(D){return q.H.useEffectEvent(D)},be.useId=function(){return q.H.useId()},be.useImperativeHandle=function(D,te,se){return q.H.useImperativeHandle(D,te,se)},be.useInsertionEffect=function(D,te){return q.H.useInsertionEffect(D,te)},be.useLayoutEffect=function(D,te){return q.H.useLayoutEffect(D,te)},be.useMemo=function(D,te){return q.H.useMemo(D,te)},be.useOptimistic=function(D,te){return q.H.useOptimistic(D,te)},be.useReducer=function(D,te,se){return q.H.useReducer(D,te,se)},be.useRef=function(D){return q.H.useRef(D)},be.useState=function(D){return q.H.useState(D)},be.useSyncExternalStore=function(D,te,se){return q.H.useSyncExternalStore(D,te,se)},be.useTransition=function(){return q.H.useTransition()},be.version="19.3.1",be}var z_;function Zs(){return z_||(z_=1,$c.exports=HS()),$c.exports}var em={exports:{}},Mt={};var T_;function FS(){if(T_)return Mt;T_=1;var o=Zs();function n(_){var g="https://react.dev/errors/"+_;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+_+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(n(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function p(_,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:S===f?f:""+S,children:_,containerInfo:g,implementation:b}}var h=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Mt.browser=function(_){return{$$typeof:c,_reason:_}},Mt.createPortal=function(_,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return p(_,g,null,b)},Mt.flushSync=function(_){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,_)return _()}finally{h.T=g,l.p=b,l.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&l.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:A}):b==="script"&&l.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mt.preinitModule=function(_,g){if(typeof _=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=k(g.as,g.crossOrigin);l.d.M(_,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&l.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin);l.d.L(_,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mt.preloadModule=function(_,g){if(typeof _=="string")if(g){var b=k(g.as,g.crossOrigin);l.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else l.d.m(_)},Mt.requestFormReset=function(_){l.d.r(_)},Mt.unstable_batchedUpdates=function(_,g){return _(g)},Mt.useFormState=function(_,g,b){return h.H.useFormState(_,g,b)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.3.1",Mt}var N_;function qm(){if(N_)return em.exports;N_=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),em.exports=FS(),em.exports}var E_;function VS(){if(E_)return Ns;E_=1;var o=PS(),n=Zs(),u=qm();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function k(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===a)return h(s),e;if(r===i)return h(s),t;r=r.sibling}throw Error(l(188))}if(a.return!==i.return)a=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===a){m=!0,a=s,i=r;break}if(v===i){m=!0,i=s,a=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===a){m=!0,a=r,i=s;break}if(v===i){m=!0,i=r,a=s;break}v=v.sibling}if(!m)throw Error(l(189))}}if(a.alternate!==i)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,i,s,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,s,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,i,s,r))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function C(e){var t=[null,null],a=b(e);return a===null||A(t,e,a.child,{foundSelf:!1}),t}function A(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&A(e,t,a.child,i))return!0;a=a.sibling}return!1}function x(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var T=null,z=null;function L(e,t,a){return e===a?!0:e===t?(T=e,!0):!1}function G(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(T=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,a){for(var i=0,s=e;s;s=a(s))i++;s=0;for(var r=t;r;r=a(r))s++;for(;0<i-s;)e=a(e),i--;for(;0<s-i;)t=a(t),s--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var j=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ae=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),D=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case N:return"Suspense";case K:return"SuspenseList";case ye:return"Activity";case D:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var pe=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ct={pending:!1,data:null,method:null,action:null},Zt=[],Xt=-1;function _t(e){return{current:e}}function tt(e){0>Xt||(e.current=Zt[Xt],Zt[Xt]=null,Xt--)}function Le(e,t){Xt++,Zt[Xt]=e.current,e.current=t}var Bt=_t(null),Lt=_t(null),Jt=_t(null),Xa=_t(null);function $o(e,t){switch(Le(Jt,t),Le(Lt,e),Le(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dh(t),e=jh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Bt),Le(Bt,e)}function Ja(){tt(Bt),tt(Lt),tt(Jt)}function qn(e){var t=e.memoizedState;t!==null&&(kn._currentValue=t.memoizedState,Le(Xa,e)),t=Bt.current;var a=jh(t,e.type);t!==a&&(Le(Lt,e),Le(Bt,a))}function Ei(e){Lt.current===e&&(tt(Bt),tt(Lt)),Xa.current===e&&(tt(Xa),kn._currentValue=Ct)}var ja,$a;function It(e){if(ja===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ja=t&&t[1]||"",$a=-1<a.stack.indexOf(`
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-9hHATwdq.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
+var iN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function qS(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var u=function l(){var d=!1;try{d=this instanceof l}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var d=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(u,l,d.get?d:{enumerable:!0,get:function(){return o[l]}})}),u}var Qc={exports:{}},Ts={};var S_;function RS(){if(S_)return Ts;S_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(l,d,c){var f=null;if(c!==void 0&&(f=""+c),d.key!==void 0&&(f=""+d.key),"key"in d){c={};for(var p in d)p!=="key"&&(c[p]=d[p])}else c=d;return d=c.ref,{$$typeof:o,type:l,key:f,ref:d!==void 0?d:null,props:c}}return Ts.Fragment=n,Ts.jsx=u,Ts.jsxs=u,Ts}var M_;function BS(){return M_||(M_=1,Qc.exports=RS()),Qc.exports}var w=BS();const Fv="wbnt:";function Vv(o,n=Fv){const u=()=>{const d=[];for(let c=0;c<o.length;c+=1){const f=o.key(c);f!=null&&f.startsWith(n)&&d.push(f.slice(n.length))}return d},l={getItem:d=>o.getItem(n+String(d)),setItem:(d,c)=>o.setItem(n+String(d),String(c)),removeItem:d=>o.removeItem(n+String(d)),clear:()=>u().forEach(d=>o.removeItem(n+d)),key:d=>u()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return u().length;if(Object.prototype.hasOwnProperty.call(l,c))return l[c];if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:f},set(d,c,f){return typeof c!="string"?!1:(o.setItem(n+c,String(f)),!0)},deleteProperty(d,c){return typeof c=="string"&&o.removeItem(n+c),!0},has(d,c){return Object.prototype.hasOwnProperty.call(l,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>u(),getOwnPropertyDescriptor(d,c){if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:{value:f,enumerable:!0,configurable:!0,writable:!0}}})}function LS(o=globalThis){const n=o.localStorage,u=Vv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>u}),{real:n,shim:u}}function IS(){const o=new Map;return{get length(){return o.size},key:n=>[...o.keys()][n]??null,getItem:n=>o.has(String(n))?o.get(String(n)):null,setItem:(n,u)=>{o.set(String(n),String(u))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let Hl=null;try{const o=`${Fv}__probe`;window.localStorage.setItem(o,"1");const n=window.localStorage.getItem(o);if(window.localStorage.removeItem(o),n!=="1")throw new Error("localStorage did not keep a value");Hl=LS(window).real}catch{try{const o=IS(),n=Vv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}Hl=null}var Zc={exports:{}},Ns={},Xc={exports:{}},Jc={};var C_;function US(){return C_||(C_=1,(function(o){function n(I,N){var K=I.length;I.push(N);e:for(;0<K;){var ie=K-1>>>1,ne=I[ie];if(0<d(ne,N))I[ie]=N,I[K]=ne,K=ie;else break e}}function u(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var N=I[0],K=I.pop();if(K!==N){I[0]=K;e:for(var ie=0,ne=I.length,ye=ne>>>1;ie<ye;){var Ae=2*(ie+1)-1,Ve=I[Ae],D=Ae+1,te=I[D];if(0>d(Ve,K))D<ne&&0>d(te,Ve)?(I[ie]=te,I[D]=K,ie=D):(I[ie]=Ve,I[Ae]=K,ie=Ae);else if(D<ne&&0>d(te,K))I[ie]=te,I[D]=K,ie=D;else break e}}return N}function d(I,N){var K=I.sortIndex-N.sortIndex;return K!==0?K:I.id-N.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;o.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();o.unstable_now=function(){return f.now()-p}}var h=[],k=[],_=1,g=null,b=3,S=!1,C=!1,A=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var N=u(k);N!==null;){if(N.callback===null)l(k);else if(N.startTime<=I)l(k),N.sortIndex=N.expirationTime,n(h,N);else break;N=u(k)}}function Q(I){if(A=!1,G(I),!C)if(u(h)!==null)C=!0,H||(H=!0,ee());else{var N=u(k);N!==null&&Y(Q,N.startTime-I)}}var H=!1,j=-1,q=5,V=-1;function $(){return x?!0:!(o.unstable_now()-V<q)}function W(){if(x=!1,H){var I=o.unstable_now();V=I;var N=!0;try{e:{C=!1,A&&(A=!1,z(j),j=-1),S=!0;var K=b;try{t:{for(G(I),g=u(h);g!==null&&!(g.expirationTime>I&&$());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var ne=ie(g.expirationTime<=I);if(I=o.unstable_now(),typeof ne=="function"){g.callback=ne,G(I),N=!0;break t}g===u(h)&&l(h),G(I)}else l(h);g=u(h)}if(g!==null)N=!0;else{var ye=u(k);ye!==null&&Y(Q,ye.startTime-I),N=!1}}break e}finally{g=null,b=K,S=!1}N=void 0}}finally{N?ee():H=!1}}}var ee;if(typeof L=="function")ee=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,X=ae.port2;ae.port1.onmessage=W,ee=function(){X.postMessage(null)}}else ee=function(){T(W,0)};function Y(I,N){j=T(function(){I(o.unstable_now())},N)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(I){I.callback=null},o.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_next=function(I){switch(b){case 1:case 2:case 3:var N=3;break;default:N=b}var K=b;b=N;try{return I()}finally{b=K}},o.unstable_requestPaint=function(){x=!0},o.unstable_runWithPriority=function(I,N){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var K=b;b=I;try{return N()}finally{b=K}},o.unstable_scheduleCallback=function(I,N,K){var ie=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ie+K:ie):K=ie,I){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,I={id:_++,callback:N,priorityLevel:I,startTime:K,expirationTime:ne,sortIndex:-1},K>ie?(I.sortIndex=K,n(k,I),u(h)===null&&I===u(k)&&(A?(z(j),j=-1):A=!0,Y(Q,K-ie))):(I.sortIndex=ne,n(h,I),C||S||(C=!0,H||(H=!0,ee()))),I},o.unstable_shouldYield=$,o.unstable_wrapCallback=function(I){var N=b;return function(){var K=b;b=N;try{return I.apply(this,arguments)}finally{b=K}}}})(Jc)),Jc}var A_;function PS(){return A_||(A_=1,Xc.exports=US()),Xc.exports}var $c={exports:{}},be={};var x_;function HS(){if(x_)return be;x_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function z(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}z.prototype.isReactComponent={},z.prototype.setState=function(D,te){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,te,"setState")},z.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}var Q=G.prototype=new L;Q.constructor=G,x(Q,z.prototype),Q.isPureReactComponent=!0;var H=Array.isArray;function j(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(D,te,se){var ce=se.ref;return{$$typeof:o,type:D,key:te,ref:ce!==void 0?ce:null,props:se}}function W(D,te){return $(D.type,te,D.props)}function ee(D){return typeof D=="object"&&D!==null&&D.$$typeof===o}function ae(D){var te={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(se){return te[se]})}var X=/\/+/g;function Y(D,te){return typeof D=="object"&&D!==null&&D.key!=null?ae(""+D.key):te.toString(36)}function I(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(j,j):(D.status="pending",D.then(function(te){D.status==="pending"&&(D.status="fulfilled",D.value=te)},function(te){D.status==="pending"&&(D.status="rejected",D.reason=te)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function N(D,te,se,ce,ke){var we=typeof D;(we==="undefined"||we==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(we){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case o:case n:pe=!0;break;case _:return pe=D._init,N(pe(D._payload),te,se,ce,ke)}}if(pe)return ke=ke(D),pe=ce===""?"."+Y(D,0):ce,H(ke)?(se="",pe!=null&&(se=pe.replace(X,"$&/")+"/"),N(ke,te,se,"",function(Ct){return Ct})):ke!=null&&(ee(ke)&&(ke=W(ke,se+(ke.key==null||D&&D.key===ke.key?"":(""+ke.key).replace(X,"$&/")+"/")+pe)),te.push(ke)),1;pe=0;var ue=ce===""?".":ce+":";if(H(D))for(var fe=0;fe<D.length;fe++)ce=D[fe],we=ue+Y(ce,fe),pe+=N(ce,te,se,we,ke);else if(fe=C(D),typeof fe=="function")for(D=fe.call(D),fe=0;!(ce=D.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),pe+=N(ce,te,se,we,ke);else if(we==="object"){if(typeof D.then=="function")return N(I(D),te,se,ce,ke);throw te=String(D),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return pe}function K(D,te,se){if(D==null)return D;var ce=[],ke=0;return N(D,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(D){if(D._status===-1){var te=D._result,se=te();se.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),D._status===-1&&(D._status=0,D._result=se)}if(D._status===1)return D._result.default;throw D._result}var ne=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)};function ye(D){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=D(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(j,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ae(D){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[D]:se.indexOf(D)===-1&&se.push(D)}else ye(Ae.bind(null,D))}var Ve={map:K,forEach:function(D,te,se){K(D,function(){te.apply(this,arguments)},se)},count:function(D){var te=0;return K(D,function(){te++}),te},toArray:function(D){return K(D,function(te){return te})||[]},only:function(D){if(!ee(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return be.Activity=g,be.Children=Ve,be.Component=z,be.Fragment=u,be.Profiler=d,be.PureComponent=G,be.StrictMode=l,be.Suspense=h,be.ViewTransition=b,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,be.__COMPILER_RUNTIME={__proto__:null,c:function(D){return q.H.useMemoCache(D)}},be.addTransitionType=Ae,be.cache=function(D){return function(){return D.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(D,te,se){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ce=x({},D.props),ke=D.key;if(te!=null)for(we in te.key!==void 0&&(ke=""+te.key),te)!V.call(te,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&te.ref===void 0||(ce[we]=te[we]);var we=arguments.length-2;if(we===1)ce.children=se;else if(1<we){for(var pe=Array(we),ue=0;ue<we;ue++)pe[ue]=arguments[ue+2];ce.children=pe}return $(D.type,ke,ce)},be.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:c,_context:D},D},be.createElement=function(D,te,se){var ce,ke={},we=null;if(te!=null)for(ce in te.key!==void 0&&(we=""+te.key),te)V.call(te,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ke[ce]=te[ce]);var pe=arguments.length-2;if(pe===1)ke.children=se;else if(1<pe){for(var ue=Array(pe),fe=0;fe<pe;fe++)ue[fe]=arguments[fe+2];ke.children=ue}if(D&&D.defaultProps)for(ce in pe=D.defaultProps,pe)ke[ce]===void 0&&(ke[ce]=pe[ce]);return $(D,we,ke)},be.createRef=function(){return{current:null}},be.forwardRef=function(D){return{$$typeof:p,render:D}},be.isValidElement=ee,be.lazy=function(D){return{$$typeof:_,_payload:{_status:-1,_result:D},_init:ie}},be.memo=function(D,te){return{$$typeof:k,type:D,compare:te===void 0?null:te}},be.startTransition=ye,be.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},be.use=function(D){return q.H.use(D)},be.useActionState=function(D,te,se){return q.H.useActionState(D,te,se)},be.useCallback=function(D,te){return q.H.useCallback(D,te)},be.useContext=function(D){return q.H.useContext(D)},be.useDebugValue=function(){},be.useDeferredValue=function(D,te){return q.H.useDeferredValue(D,te)},be.useEffect=function(D,te){return q.H.useEffect(D,te)},be.useEffectEvent=function(D){return q.H.useEffectEvent(D)},be.useId=function(){return q.H.useId()},be.useImperativeHandle=function(D,te,se){return q.H.useImperativeHandle(D,te,se)},be.useInsertionEffect=function(D,te){return q.H.useInsertionEffect(D,te)},be.useLayoutEffect=function(D,te){return q.H.useLayoutEffect(D,te)},be.useMemo=function(D,te){return q.H.useMemo(D,te)},be.useOptimistic=function(D,te){return q.H.useOptimistic(D,te)},be.useReducer=function(D,te,se){return q.H.useReducer(D,te,se)},be.useRef=function(D){return q.H.useRef(D)},be.useState=function(D){return q.H.useState(D)},be.useSyncExternalStore=function(D,te,se){return q.H.useSyncExternalStore(D,te,se)},be.useTransition=function(){return q.H.useTransition()},be.version="19.3.1",be}var z_;function Zs(){return z_||(z_=1,$c.exports=HS()),$c.exports}var em={exports:{}},Mt={};var T_;function FS(){if(T_)return Mt;T_=1;var o=Zs();function n(_){var g="https://react.dev/errors/"+_;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+_+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(n(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function p(_,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:S===f?f:""+S,children:_,containerInfo:g,implementation:b}}var h=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Mt.browser=function(_){return{$$typeof:c,_reason:_}},Mt.createPortal=function(_,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return p(_,g,null,b)},Mt.flushSync=function(_){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,_)return _()}finally{h.T=g,l.p=b,l.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&l.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:A}):b==="script"&&l.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mt.preinitModule=function(_,g){if(typeof _=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=k(g.as,g.crossOrigin);l.d.M(_,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&l.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin);l.d.L(_,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mt.preloadModule=function(_,g){if(typeof _=="string")if(g){var b=k(g.as,g.crossOrigin);l.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else l.d.m(_)},Mt.requestFormReset=function(_){l.d.r(_)},Mt.unstable_batchedUpdates=function(_,g){return _(g)},Mt.useFormState=function(_,g,b){return h.H.useFormState(_,g,b)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.3.1",Mt}var N_;function qm(){if(N_)return em.exports;N_=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),em.exports=FS(),em.exports}var E_;function VS(){if(E_)return Ns;E_=1;var o=PS(),n=Zs(),u=qm();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function k(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===a)return h(s),e;if(r===i)return h(s),t;r=r.sibling}throw Error(l(188))}if(a.return!==i.return)a=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===a){m=!0,a=s,i=r;break}if(v===i){m=!0,i=s,a=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===a){m=!0,a=r,i=s;break}if(v===i){m=!0,i=r,a=s;break}v=v.sibling}if(!m)throw Error(l(189))}}if(a.alternate!==i)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,i,s,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,s,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,i,s,r))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function C(e){var t=[null,null],a=b(e);return a===null||A(t,e,a.child,{foundSelf:!1}),t}function A(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&A(e,t,a.child,i))return!0;a=a.sibling}return!1}function x(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var T=null,z=null;function L(e,t,a){return e===a?!0:e===t?(T=e,!0):!1}function G(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(T=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,a){for(var i=0,s=e;s;s=a(s))i++;s=0;for(var r=t;r;r=a(r))s++;for(;0<i-s;)e=a(e),i--;for(;0<s-i;)t=a(t),s--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var j=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ae=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),D=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case N:return"Suspense";case K:return"SuspenseList";case ye:return"Activity";case D:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var pe=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ct={pending:!1,data:null,method:null,action:null},Zt=[],Xt=-1;function _t(e){return{current:e}}function tt(e){0>Xt||(e.current=Zt[Xt],Zt[Xt]=null,Xt--)}function Le(e,t){Xt++,Zt[Xt]=e.current,e.current=t}var Bt=_t(null),Lt=_t(null),Jt=_t(null),Xa=_t(null);function $o(e,t){switch(Le(Jt,t),Le(Lt,e),Le(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dh(t),e=jh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Bt),Le(Bt,e)}function Ja(){tt(Bt),tt(Lt),tt(Jt)}function qn(e){var t=e.memoizedState;t!==null&&(kn._currentValue=t.memoizedState,Le(Xa,e)),t=Bt.current;var a=jh(t,e.type);t!==a&&(Le(Lt,e),Le(Bt,a))}function Ei(e){Lt.current===e&&(tt(Bt),tt(Lt)),Xa.current===e&&(tt(Xa),kn._currentValue=Ct)}var ja,$a;function It(e){if(ja===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ja=t&&t[1]||"",$a=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ja+e+$a}var Di=!1;function ua(e,t){if(!e||Di)return"";Di=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(oe){var O=oe}Reflect.construct(e,[],J)}else{try{J.call()}catch(oe){O=oe}J=!1;try{var P=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),J=!0,new e}finally{J&&(P!==void 0?Object.defineProperty(e.prototype,"props",P):delete e.prototype.props)}}}else{try{throw Error()}catch(oe){O=oe}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(oe){if(oe&&O&&typeof oe.stack=="string")return[oe.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),m=r[0],v=r[1];if(m&&v){var M=m.split(`
`),B=v.split(`
@@ -847,13 +847,13 @@ Not: "{category}" kategorisine ait görselleri beğenmediyseniz, arka plan kayna
Примітка: якщо вам не подобаються "{category}" зображення, ви можете вимкнути цю категорію у налаштуваннях джерела фону.`,confirm:"Підтвердити"},search:"Пошук",quicklinks:{new:"Нове посилання",edit:"Редагувати посилання",name:"Ім'я",url:"URL",icon:"Іконка (необов'язково)",add:"Додати",name_error:"Необхідно вказати ім'я",url_error:"Необхідно вказати URL-адресу"},date:{week:"Тиждень"},weather:{not_found:"Не знайдено",meters:"{amount} метрів",extra_information:"Додаткова інформація",feels_like:"Відчувається як {amount}"},quote:{link_tooltip:"Відкрити у Вікіпедії",share:"Поділитися",copy:"Скопіювати",favourite:"Улюблене",unfavourite:"Неулюблене"},navbar:{tooltips:{refresh:"Оновити"},notes:{title:"Примітки",placeholder:"Введіть тут"},todo:{title:"Todo",pin:"Прикріпити",add:"Додати",no_todos:"Немає Todos"},apps:{title:"Додатки",no_apps:"Не знайдено жодного посилання на додаток"}}},HM=JSON.parse(`{"main":{"title":"Параметри","loading":"Завантаження...","file_upload_error":"Розмір файлу більше 2 МБ","navbar":{"settings":"Налаштування","library":"Доповнення","discover":"Маркетплейс"},"error_boundary":{"title":"Помилка","message":"Не вдалося завантажити цей компонент Mue","report_error":"Надіслати звіт про помилку","sent":"Відправлено!","refresh":"Оновити"},"settings":{"enabled":"Увімкнено","open_knowledgebase":"Відкрита база знань","additional_settings":"Додаткові налаштування","reminder":{"title":"ЗАМІТКА","message":"Щоб всі зміни набули чинності, сторінку необхідно оновити."},"sections":{"header":{"more_info":"Більше інформації","report_issue":"Повідомити про проблему","enabled":"Виберіть, показувати цей віджет чи ні","size":"Повзунок для керування розміром віджету"},"time":{"title":"Час","format":"Формат","type":"Тип","type_subtitle":"Виберіть, чи відображати час у цифровому форматі, аналоговому форматі або у відсотках від завершення дня","digital":{"title":"Цифровий","subtitle":"Змініть вигляд цифрового годинника","seconds":"Секунди","twentyfourhour":"24 години","twelvehour":"12 годин","zero":"Додатковий нуль"},"analogue":{"title":"Аналоговий","subtitle":"Змініть вигляд аналогового годинника","second_hand":"Секундна стрілка","minute_hand":"Хвилинна стрілка","hour_hand":"Годинникова стрілка","hour_marks":"Годинникові мітки","minute_marks":"Хвилинні мітки","round_clock":"Закруглений фон"},"percentage_complete":"Відсоток виконання","vertical_clock":{"title":"Вертикальний годинник","change_hour_colour":"Змінити колір тексту годинника","change_minute_colour":"Змінити колір хвилинного тексту","change_second_colour":"Змінити другий колір тексту"}},"date":{"title":"Дата","week_number":"Номер тижня","day_of_week":"День тижня","datenth":"Дата n-та","type":{"short":"Коротка","long":"Довга","subtitle":"Відображати дату в довгій чи в короткій формі"},"type_settings":"Налаштування та формат відображення для вибраного типу дати","short_date":"Коротка дата","short_format":"Короткий формат","long_format":"Довгий формат","short_separator":{"title":"Короткий сепаратор","dots":"Крапки","dash":"Тире","gaps":"Пробіли","slashes":"Слеши"}},"quote":{"title":"Цитата","additional":"Інші налаштування для налаштування стилю віджету котирувань","author_link":"Посилання на автора","author_details":"Інформація про автора","custom":"Користувацька цитата","custom_subtitle":"Встановіть свої власні користувацьки цитати","no_quotes":"Без лапок","author":"Автор","custom_buttons":"Кнопки","custom_author":"Користувацький автор","author_img":"Показати зображення автора","add":"Додати цитату","source_subtitle":"Виберіть, звідки отримувати цитати","buttons":{"title":"Кнопки","subtitle":"Виберіть, які кнопки показувати на цитаті","copy":"Скопіювати","tweet":"Твітнути","favourite":"Улюблене"}},"greeting":{"title":"Привітання","events":"Події","events_description":"Керуйте подіями на Mue, такими як дні народження.","enable_events":"Показувати повідомлення в особливі дні","default":"Привітання за замовчуванням","name":"Ім'я для привітання","birthday":"День народження","birthday_subtitle":"Показувати привітання з днем народження, коли твій день народження","birthday_age":"Рік народження","birthday_date":"Дата народження","additional":"Налаштування відображення привітання","custom":"Користувацькі події","event_name":"Назва події","day":"День","month":"Місяць","no_events":"Немає подій","no_events_description":"Додати кілька подій","add_event":"Додати подію"},"background":{"title":"Фон","transition":"Затухаючий перехід","photo_information":"Показати інформацію про фото","show_map":"Показувати карту місцезнаходження на інформації про фото, якщо вона доступна","categories":"Категорії","buttons":{"title":"Кнопки","view":"Перегляд","favourite":"Улюблені","download":"Завантажити'"},"effects":{"title":"Ефекти","subtitle":"Додати ефекти до фонових зображень","blur":"Розмиття","brightness":"Яскравість","filters":{"title":"Фільтр фону","amount":"Кількість фільтрів","grayscale":"Відтінки сірого","sepia":"Сепія","invert":"Негатив","saturate":"Насиченість","contrast":"Контраст"}},"type":{"title":"Тип","api":"API","custom_image":"Користувацьке зображення","custom_colour":"Користувацький колір/градієнт","random_colour":"Випадковий колір","random_gradient":"Випадковий градієнт"},"unsplash":{"title":"Колекція(ї) Unsplash","subtitle":"Виберіть колекцію(ї), яку ви хочете використати для фону","id":"Ідентифікатор(и) колекції","id_subtitle":"Введіть список ідентифікаторів Unsplash через кому"},"source":{"title":"Джерело","subtitle":"Виберіть, звідки взяти фонові зображення","api":"API для фону","custom_background":"Користувацький фон","custom_colour":"Користувацький колір фону","upload":"Вавантажити","add_colour":"Додати колір","add_background":"Додати фон","drop_to_upload":"Перетягніть для завантаження","formats":"Доступні формати: {list}","select":"Або виберіть","add_url":"Додати URL","disabled":"Вимкнено","loop_video":"Циклічне відео","mute_video":"Вимкнути звук відео","quality":{"title":"Якість","original":"Original","high":"Висока якість","normal":"Нормальна якість","datasaver":"Data Saver"},"custom_title":"Користувацькі зображення","custom_description":"Виберіть зображення з вашего локального комп'ютера","remove":"Видалити зображення","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Відображати","display_subtitle":"Зміна способу завантаження фону та інформації про фотографію","api":"Налаштування API","api_subtitle":"Варіанти отримання зображення із зовнішнього сервісу (API)"},"search":{"title":"Пошук","additional":"Додаткові параметри відображення та функціональності пошукового віджета","search_engine":"Пошукова система","search_engine_subtitle":"Виберіть пошукову систему в рядку пошуку","custom":"Користувацька URL-адреса пошуку","autocomplete":"Автозаповнення","autocomplete_provider":"Провайдер автозаповнення","autocomplete_provider_subtitle":"Пошукова система для автоматичного заповнення випадаючих результатів","voice_search":"Голосовий пошук","dropdown":"Випадаючий список пошуку","focus":"Фокус на відкритій вкладці","chrome_policy_warning":"У версії 7.2 можливість вибору пошукової системи в Mue була видалена відповідно до нових вимог Chrome Web Store. Тепер Mue використовує пошукову систему, встановлену за замовчуванням у вашому браузері. Ви можете змінити її в налаштуваннях Chrome."},"weather":{"title":"Погода","location":"Місцезнаходження","auto":"Auto","widget_type":"Тип віджету","temp_format":{"title":"Формат температури","celsius":"Цельсії","fahrenheit":"Фаренгейт","kelvin":"Кельвін"},"extra_info":{"title":"Extra information","show_location":"Показати розташування","show_description":"Показати опис","weather_description":"Опис погоди","cloudiness":"Хмарність","humidity":"Вологість","visibility":"Видимість","wind_speed":"Швидкість вітру","wind_direction":"Напрямок вітру","min_temp":"Мінімальна температура","max_temp":"Максимальна температура","atmospheric_pressure":"Атмосферний тиск"},"options":{"basic":"Базовий","standard":"Стандартний","expanded":"Розширений","custom":"Свій"},"custom_settings":"Користувацькі налаштування"},"quicklinks":{"title":"Швидкі посилання","additional":"Додаткові налаштування відображення швидких посилань і функцій","open_new":"Відкрити в новій вкладці","tooltip":"Спливаюча підказка","text_only":"Показувати тільки текст","add_link":"Додати посилання","no_quicklinks":"Немає швидких посилань","edit":"Редагувати","style":"Стиль","options":{"icon":"Іконка","text_only":"Тільки текст","metro":"Метро"},"styling":"Стиль швидких посилань","styling_description":"Налаштувати зовнішній вигляд швидких посилань"},"message":{"title":"Message","add":"Add message","messages":"Повідомлення","text":"Текст","no_messages":"Немає повідомлень","add_some":"Йдемо далі і додайте ще.","content":"Зміст повідомлення"},"appearance":{"title":"Оформлення","style":{"title":"Стиль віджетів","description":"Обирайте між двома стилями: застарілим (доступний для користувачів попередніх версій 7.0) та наш стильний і сучасний стиль.","legacy":"Застаріле","new":"Новий"},"theme":{"title":"Theme","description":"Змінити тему віджетів і модальних вікон Mue","auto":"Автоматично","light":"Світла","dark":"Темна"},"navbar":{"title":"Навігаційна панель","widgets":"Віджети навігаційної панелі","notes":"Примітки","refresh":"Оновити","refresh_subtitle":"Виберіть, що буде оновлюватися, коли ви натискаєте кнопку \\"Оновити\\"","hover":"Відображення тільки при наведенні","additional":"Налаштуйте стиль навігаційної панелі та кнопки, які ви хочете відображати","refresh_options":{"none":"None","page":"Сторінка"},"apps_subtitle":"Створіть ярлик для інших сайтів, які ви часто використовуєте."},"font":{"title":"Шрифт","description":"Змінити шрифт, який використовується у Mue","custom":"Користувацький шрифт","google":"Імпорт з Google Fonts","weight":{"title":"Товщина шрифту","thin":"Тонкий","extra_light":"Дуже тонкий","light":"Світло","normal":"Нормальний","medium":"Medium","semi_bold":"Напівжирний","bold":"Жирний","extra_bold":"Дуже жирний"},"style":{"title":"Стиль шрифту","normal":"Normal","italic":"Italic","oblique":"Курсив"}},"accessibility":{"title":"Доступність","description":"Налаштування спеціальних можливостей для Mue","animations":"Анімації","text_shadow":{"title":"Тінь тексту віджета","new":"Новий","old":"Старий","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Тривалість підказки","milliseconds":"мілісекунди"}},"order":{"title":"Порядок віджетів"},"advanced":{"title":"Додатково","offline_mode":"Офлайн режим","offline_subtitle":"Якщо ввімкнено, всі запити до онлайн-сервісів будуть вимкнені.","data":"Data","data_description":"Виберіть, чи потрібно експортувати налаштування Mue на комп'ютер, імпортувати існуючий файл налаштувань або скинути налаштування до значень за замовчуванням","data_subtitle":"Керуйте своїми даними на Mue.","reset_modal":{"title":"ПОПЕРЕДЖЕННЯ","question":"Ви хочете скинути Mue?","information":"Це призведе до видалення всіх даних. Якщо ви хочете зберегти свої дані та налаштування, будь ласка, спочатку експортуйте їх.","cancel":"Скасувати"},"customisation":"Кастомізація","custom_css":"Користувацький CSS","custom_css_subtitle":"Налаштуйте стиль Mue під себе за допомогою каскадних таблиць стилів (CSS).","custom_js":"Користувацький JS","tab_name":"Назва вкладки","tab_name_subtitle":"Змініть назву вкладки, яка з'являється у вашому браузері","timezone":{"title":"Часовий пояс","subtitle":"Виберіть часовий пояс зі списку замість автоматично встановленого на вашому комп'ютері","automatic":"Автоматичний"},"experimental_warning":"Зверніть увагу, що команда Mue не зможе надати підтримку, якщо у вас увімкнено експериментальний режим. Будь ласка, спочатку вимкніть його і перевірте, чи проблема не зникне, перш ніж звертатися до служби підтримки.","preview_data_disabled":{"title":"Налаштування даних вимкнено","description":"Налаштування даних вимкнено в режимі попереднього перегляду. Вийдіть із режиму попереднього перегляду, щоб скористатися цією функцією."}},"stats":{"title":"Статистика","sections":{"tabs_opened":"Відкриті вкладки","backgrounds_favourited":"Улюблені фони","backgrounds_downloaded":"Завантажені фони","quotes_favourited":"Улюблені цитати","quicklinks_added":"Додано швидкі посилання","settings_changed":"Змінено налаштування","addons_installed":"Встановлені доповнення"},"usage":"Статистика використання","achievements":"Досягнення","achievement_unlocked":"Досягнення розблоковано:{name}","unlocked":"{count} Розблоковано","locked":"Закрито","clear_modal":{"question":"Ви хочете очистити свою статистику?","information":"Це очистить усі досягнення та статистику використання."}},"experimental":{"title":"Експериментальний","warning":"Ці налаштування не були повністю протестовані/реалізовані і можуть працювати некоректно!","developer":"Developer"},"language":{"title":"Мова","quote":"Мова цитат","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Журнал змін","by":"Автор {author}"},"about":{"title":"О нас","version":{"title":"Версія","checking_update":"Перевірка наявності оновлень","update_available":"Доступне оновлення","no_update":"Оновлення не доступне","offline_mode":"Не вдається перевірити наявність оновлень в автономному режимі","error":{"title":"Не вдалося отримати інформацію про оновлення","description":"Виникла помилка"}},"contact_us":"Зв'яжіться з нами","support_mue":"Підтримайте Mue","support_subtitle":"Оскільки Mue є повністю безкоштовним, ми покладаємося на пожертви, щоб покрити рахунки за сервер і фінансувати розробку","support_donate":"Пожертвувати","form_button":"Форма","resources_used":{"title":"Використані ресурси","bg_images":"Офлайн фонові зображення"},"contributors":"Учасники","supporters":"Підтримка","no_supporters":"Наразі підтримки Муе немає","photographers":"Фотографи","curators":"Творці доповнень"}},"buttons":{"reset":"Скинути","import":"Імпорт","export":"Експорт","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"від {author}","all":"Усе","learn_more":"Дізнатися більше","photo_packs":"Набори фото","quote_packs":"Набори цитат","preset_settings":"Пресети налаштувань","no_items":"У цій категорії немає елементів","collection":"Колекція","explore_collection":"Дослідити колекцію","add_all":"Додати все до Муе","collections":"Колекції","cant_find":"Не можете знайти те, що шукаєте?","knowledgebase_one":"Завітайте на сторінку","knowledgebase_two":"база знань","knowledgebase_three":"щоб створити свій власний.","installing":"Встановлення","product":{"overview":"Огляд","information":"Інформація","last_updated":"Останнє оновлення","description":"Опис","details":"Деталі","more_from_curator":"Більше схоже на це від {name}","show_more":"Показати більше","show_less":"Показати менше","show_all":"Показати всі","showing":"Показати","no_images":"Ні. Зображення","no_quotes":"Ні. Цитати","version":"Версія","created_by":"Створено","updated_at":"Оновлено на","part_of":"Частина","explore":"Дослідити","buttons":{"addtomue":"Додати до","remove":"Видалити","update_addon":"Оновлення доповнення","back":"Назад","report":"Звіт","not_available_preview":"Недоступно в режимі попереднього перегляду"},"not_in_language":"Це доповнення недоступне вашою мовою","third_party_api":"Це доповнення використовує сторонній API","sideload_warning":"Це доповнення було завантажено збоку.","setting":"Налаштування'","value":"Значення"},"offline":{"title":"Схоже, ти не в мережі","description":"Будь ласка, підключіться до Інтернету"}},"addons":{"added":"Додано","check_updates":"Перевірте наявність оновлень","no_updates":"Оновлення не доступні","updates_available":"Доступні оновлення {amount}","empty":{"title":"Порожньо","description":"Аддони не встановлені"},"sideload":{"title":"Додаткове завантаження","description":"Встановіть аддон Mue, якого немає на маркетплейсі, зі свого комп'ютера","failed":"Не вдалося підвантажити аддон","errors":{"no_name":"Ім'я не вказано","no_author":"Автор не вказаний","no_type":"Тип не вказано","invalid_photos":"Об'єкт з недійсними фотографіями","invalid_quotes":"Неправильний об'єкт лапок"}},"sort":{"title":"Сортування","newest":"Встановлені (найновіші)","a_z":"За алфавітом (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Створити","moved_title":"Створення доповнення переїхало!","moved_description":"Після оновлення 7.1 створення аддонів було перенесено у веб-інтерфейс","moved_button":"Незабаром...."}}},"update":{"title":"Оновлення","offline":{"title":"Офлайн","description":"Неможливо отримати журнали оновлень в автономному режимі"},"error":{"title":"Помилка","description":"Не вдалося підключитися до сервера"}},"welcome":{"tip":"Коротка порада","sections":{"intro":{"title":"Ласкаво просимо до Mue Tab","description":"Дякуємо, що встановили Mue, сподіваємося, вам сподобається наше розширення.","notices":{"discord_title":"Приєднуйтесь до нашого Discord","discord_description":"Поспілкуйтеся зі спільнотою та розробниками Mue","discord_join":"Приєднатися","github_title":"Зробіть свій внесок на GitHub","github_description":"Повідомляйте про помилки, додавайте функції або зробіть пожертву","github_open":"Відкрито"}},"language":{"title":"Виберіть свою мову","description":"Mue може відображатися мовами, переліченими нижче. Ви також можете додавати нові переклади на нашій сторінці"},"theme":{"title":"Виберіть тему","description":"Mue доступний як у світлій, так і у темній темах, або може бути автоматично встановлений залежно від теми вашої системи.","tip":"За допомогою налаштувань Авто буде використано тему, встановлену на вашому комп'ютері. Цей параметр впливає на модальності і деякі віджети, що відображаються на екрані, такі як погода і нотатки."},"style":{"title":"Виберіть стиль","description":"Наразі Mue пропонує вибір між старим дизайном та нещодавно випущеним сучасним дизайном.","legacy":"Спадщина","modern":"Сучасний"},"settings":{"title":"Налаштування імпорту","description":"Встановлюєте Mue на новий пристрій? Не соромтеся імпортувати свої старі налаштування!","tip":"Ви можете експортувати свої старі налаштування, перейшовши на вкладку \\"Додатково\\" у вашому старому налаштуванні Mue. Потім вам потрібно натиснути кнопку експорту, яка завантажить JSON-файл. Ви можете завантажити цей файл сюди, щоб перенести ваші налаштування та уподобання з попередньої інсталяції Mue."},"privacy":{"title":"Параметри конфіденційності","description":"Увімкніть налаштування для додаткового захисту вашої конфіденційності за допомогою Mue.","offline_mode_description":"Увімкнення офлайн-режиму вимкне всі запити до будь-яких сервісів. Це призведе до вимкнення онлайн-фону, онлайн-котирувань, біржі, погоди, швидких посилань, журналу змін та деякої інформації про вкладки.","links":{"title":"Посилання","privacy_policy":"Політика конфіденційності","source_code":"Вихідний код"}},"final":{"title":"Останній крок","description":"Ваш досвід роботи з Mue Tab ось-ось почнеться.","changes":"Зміни","changes_description":"Щоб змінити налаштування пізніше, натисніть на іконку налаштувань у верхньому правому куті вкладки.","imported":"Імпортовані налаштування {amount}"}},"buttons":{"next":"Далі","preview":"Попередній перегляд","previous":"Попередні","close":"Закрити","finish":"Фініш"},"preview":{"description":"Наразі ви перебуваєте в режимі попереднього перегляду. Після закриття цієї вкладки налаштування буде скинуто.","continue":"Продовжити налаштування"}},"share":{"copy_link":"Скопіювати посилання","email":"Електронна пошта"}}`),FM={quote:"Скопійовані квоти",notes:"Нотатки скопійовано",reset:"Скидання успішно виконано",installed:"Успішно встановлено",uninstalled:"Успішно видалено",updated:"Успішно оновлено",error:"Щось пішло не так",imported:"Успішно імпортовано",no_storage:"Недостатньо місця для зберігання",link_copied:"Посилання скопійовано",stats_reset:"Статистику скинуто"},zb={tabname:UM,widgets:PM,modals:HM,toasts:FM},VM="Tab mới",GM={greeting:{morning:"Chào buổi sáng",afternoon:"Chào buổi chiều",evening:"Chào buổi tối",christmas:"Merry Christmas",newyear:"Happy New Year",halloween:"Happy Halloween",birthday:"Happy Birthday"},background:{credit:"Photo by",unsplash:"on Unsplash",information:"Information",download:"Download",downloads:"Downloads",views:"Views",likes:"Likes",location:"Location",camera:"Camera",resolution:"Resolution",source:"Source",category:"Category",exclude:"Don't show again",exclude_confirm:`Are you sure you don't want to see this image again?
Note: if you don't like "{category}" images, you can deselect the category in the background source settings.`,confirm:"Confirm"},search:"Search",quicklinks:{new:"New Link",edit:"Edit Link",name:"Name",url:"URL",icon:"Icon (optional)",add:"Add",name_error:"Must provide name",url_error:"Must provide URL"},date:{week:"Week"},weather:{not_found:"Not Found",meters:"{amount} metres",extra_information:"Extra Information",feels_like:"Feels like {amount}"},quote:{link_tooltip:"Open on Wikipedia",share:"Share",copy:"Copy",favourite:"Favourite",unfavourite:"Unfavourite"},navbar:{tooltips:{refresh:"Refresh"},notes:{title:"Notes",placeholder:"Type here"},todo:{title:"Todo",pin:"Pin",add:"Add",no_todos:"No Todos"},apps:{title:"Apps",no_apps:"No app links found"}}},KM=JSON.parse(`{"main":{"title":"Options","loading":"Loading...","file_upload_error":"File is over 2MB","navbar":{"settings":"Settings","library":"Library","discover":"Discover"},"error_boundary":{"title":"Error","message":"Failed to load this component of Mue","report_error":"Send Error Report","sent":"Sent!","refresh":"Refresh"},"settings":{"enabled":"Enabled","open_knowledgebase":"Open Knowledgebase","additional_settings":"Additional Settings","reminder":{"title":"NOTICE","message":"In order for all of the changes to take place, the page must be refreshed."},"sections":{"header":{"more_info":"More info","report_issue":"Report Issue","enabled":"Choose whether or not to show this widget","size":"Slider to control how large the widget is"},"time":{"title":"Time","format":"Format","type":"Type","type_subtitle":"Choose whether to display the time in digital format, analogue format, or a percentage completion of the day","digital":{"title":"Digital","subtitle":"Change how the digital clock looks","seconds":"Seconds","twentyfourhour":"24 Hour","twelvehour":"12 hour","zero":"Zero-padded"},"analogue":{"title":"Analogue","subtitle":"Change how the analogue clock looks","second_hand":"Seconds hand","minute_hand":"Minutes hand","hour_hand":"Hours hand","hour_marks":"Hour marks","minute_marks":"Minute marks","round_clock":"Rounded background"},"percentage_complete":"Percentage complete","vertical_clock":{"title":"Vertical Clock","change_hour_colour":"Change hour text colour","change_minute_colour":"Change minute text colour","change_second_colour":"Change second text colour"}},"date":{"title":"Date","week_number":"Week number","day_of_week":"Day of week","datenth":"Date nth","type":{"short":"Short","long":"Long","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"Author details","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),YM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Tb={tabname:VM,widgets:GM,modals:KM,toasts:YM},WM="新标签页",QM={greeting:{morning:"早上好",afternoon:"下午好",evening:"晚上好",christmas:"圣诞节快乐",newyear:"新年快乐",halloween:"万圣节快乐",birthday:"生日快乐"},background:{credit:"图像作者:",unsplash:"@ Unsplash",information:"信息",download:"下载",downloads:"下载",views:"风景",likes:"喜爱",location:"地点",camera:"摄影",resolution:"分辨率",source:"来源",category:"分类",exclude:"不再显示",exclude_confirm:`您确定不希望看到这张照片吗?
值得注意的是,如果你不喜欢 "{category}" 图片, 你可以在背景的来源设置中取消选择。`,confirm:"确认"},search:"搜索",quicklinks:{new:"新快捷方式",edit:"编辑链接",name:"名称",url:"链接",icon:"图标 (可选)",add:"添加",name_error:"请输入名称",url_error:"请输入链接"},date:{week:"周"},weather:{not_found:"未找到",meters:"{amount}米",extra_information:"更多信息",feels_like:"体感温度 {amount}"},quote:{link_tooltip:"在维基百科中打开",share:"分享",copy:"复制",favourite:"收藏",unfavourite:"不感兴趣"},navbar:{tooltips:{refresh:"刷新"},notes:{title:"便签",placeholder:"请键入内容"},todo:{title:"计划任务",pin:"固定",add:"添加",no_todos:"未找到任务"},apps:{title:"应用",no_apps:"未找到应用链接"}}},ZM=JSON.parse(`{"main":{"title":"选项","loading":"载入中...","file_upload_error":"大小超过了 2MB","navbar":{"settings":"设置","library":"我的插件","discover":"插件市场"},"error_boundary":{"title":"错误","message":"无法载入该Mue组件","report_error":"发送错误报告","sent":"已发送!","refresh":"刷新"},"settings":{"enabled":"已启用","open_knowledgebase":"打开知识库","additional_settings":"更多设置","reminder":{"title":"注意","message":"刷新页面后设置才会生效"},"sections":{"header":{"more_info":"更多信息","report_issue":"报告 Issue","enabled":"选择是否显示此小部件","size":"滑动以控制该小部件的大小"},"time":{"title":"时间","format":"格式","type":"类型","type_subtitle":"选择时间显示类型(数字、模拟或百分比)","digital":{"title":"数字时钟","subtitle":"选择数字时钟的样式","seconds":"显示秒","twentyfourhour":"使用 24 小时制","twelvehour":"使用 12 小时制","zero":"加零补足两位数字"},"analogue":{"title":"模拟时钟","subtitle":"选择模拟时钟的样式","second_hand":"秒针","minute_hand":"分针","hour_hand":"时针","hour_marks":"时钟刻度","minute_marks":"分钟刻度","round_clock":"Rounded background"},"percentage_complete":"今天过去了%几","vertical_clock":{"title":"垂直时钟","change_hour_colour":"选择小时数颜色","change_minute_colour":"选择分钟数颜色","change_second_colour":"选择秒钟数颜色"}},"date":{"title":"显示日期","week_number":"第n周","day_of_week":"星期n","datenth":"添加th后缀","type":{"short":"短格式","long":"长格式","subtitle":"选择日期显示格式(短格式或长格式)"},"type_settings":"所选日期类型的显示设置和格式","short_date":"简写日期","short_format":"简写格式","long_format":"长格式","short_separator":{"title":"简写分隔","dots":"点","dash":"横杠","gaps":"空格","slashes":"斜杠"}},"quote":{"title":"名言警句","additional":"名言警句小部件的其他设置","author_link":"出处链接","author_details":"作者详情","custom":"自定义名言","custom_subtitle":"自定义名言","no_quotes":"没有名言","author":"作者","custom_buttons":"按钮","custom_author":"自定义出处","author_img":"显示作者图片","add":"继续添加名言","source_subtitle":"选择名言来源","buttons":{"title":"下方按钮","subtitle":"选择名言下显示的按钮","copy":"显示复制按钮","tweet":"显示发推按钮","favourite":"显示收藏按钮"}},"greeting":{"title":"问候","events":"节日问候","events_description":"设定 Mue 上的时间,如生日","enable_events":"在特定的事件显示节日问候","default":"常规问候","name":"您在问候中的名字","birthday":"生日","birthday_subtitle":"在您的生日时祝您生日快了","birthday_age":"显示年龄","birthday_date":"生日日期","additional":"设置显示的问候","custom":"自定义事件","event_name":"时间名","day":"日","month":"月","no_events":"没有事件","no_events_description":"试着添加一些事件","add_event":"添加事件"},"background":{"title":"背景","transition":"过渡动画","photo_information":"显示图片信息","show_map":"在图片信息内显示位置信息 (如果可用)","categories":"分类","buttons":{"title":"显示顶部按钮","view":"仅显示背景","favourite":"收藏","download":"下载"},"effects":{"title":"背景特效","subtitle":"为背景图片添加特效","blur":"模糊程度","brightness":"更改亮度","filters":{"title":"背景滤镜","amount":"数值","grayscale":"灰度","sepia":"相片","invert":"反色","saturate":"饱和度","contrast":"对比度"}},"type":{"title":"来源","api":"网络图像库API","custom_image":"自定义图像/视频","custom_colour":"自定义纯色背景","random_colour":"随机纯色背景","random_gradient":"随机渐变色背景"},"unsplash":{"title":"Unsplash 分类(s)","subtitle":"选择背景的分类","id":"分类 ID","id_subtitle":"输入 Unsplash 分类 ID,以英文逗号分隔"},"source":{"title":"来源","subtitle":"选择背景图片来与那","api":"背景来源","custom_background":"自定义背景 (支持图片/视频)","custom_colour":"自定义背景颜色","upload":"选择","add_colour":"添加颜色","add_background":"继续添加背景","drop_to_upload":"拖拽到此处上传","formats":"支持的格式: {list}","select":"或者选择文件","add_url":"添加 URL","disabled":"已禁用","loop_video":"循环播放","mute_video":"静音","quality":{"title":"画质","original":"原画","high":"高画质","normal":"普通画质","datasaver":"省流模式"},"custom_title":"自定义图片","custom_description":"从你的计算机本地选择图片","remove":"删除图片","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"显示","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"搜索栏","additional":"Additional options for search widget display and functionality","search_engine":"搜索引擎","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"自定义搜索链接","autocomplete":"搜索联想","autocomplete_provider":"联想功能提供引擎","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"语音搜索","dropdown":"搜索框左侧显示搜索引擎选择框","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"天气","location":"位置","auto":"自动定位","widget_type":"Widget Type","temp_format":{"title":"温度单位","celsius":"摄氏度","fahrenheit":"华氏度","kelvin":"开尔文"},"extra_info":{"title":"更多信息","show_location":"显示位置","show_description":"显示描述","weather_description":"Weather description","cloudiness":"云量","humidity":"湿度","visibility":"能见度","wind_speed":"风速","wind_direction":"风向","min_temp":"最低温度","max_temp":"最高温度","atmospheric_pressure":"大气压"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"快捷方式","additional":"Additional settings for quick links display and functions","open_new":"在新标签页打开","tooltip":"光标停留时下方显示标题","text_only":"仅显示标题","add_link":"Add Link","no_quicklinks":"No quicklinks","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Quick Links Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"消息","add":"继续添加消息","messages":"Messages","text":"文本","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"外观","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"主题","description":"Change the theme of the Mue widgets and modals","auto":"自动选择","light":"日间主题","dark":"夜间主题"},"navbar":{"title":"右上方功能键","widgets":"Navbar Widgets","notes":"便签","refresh":"刷新键","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"不显示","page":"页面"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"字体","description":"Change the font used in Mue","custom":"自定义字体","google":"从 Google Fonts 导入","weight":{"title":"字体粗细","thin":"极细","extra_light":"细字","light":"较细","normal":"一般","medium":"中等","semi_bold":"较粗","bold":"粗体","extra_bold":"加粗"},"style":{"title":"字体样式","normal":"常规","italic":"意大利斜体","oblique":"伪斜体"}},"accessibility":{"title":"无障碍设定","description":"Accessibility settings for Mue","animations":"动画效果","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"小部件缩放","toast_duration":"窗口弹出时间长度","milliseconds":"毫秒"}},"order":{"title":"小部件顺序"},"advanced":{"title":"高级","offline_mode":"启用离线模式","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"数据和设置","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","reset_modal":{"title":"警告","question":"您想要重置 Mue 的所有设置吗?","information":"本操作将删除所有数据。若您想保留数据及设置,请先将其导出。","cancel":"取消"},"customisation":"自定义","custom_css":"自定义 CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"自定义 JS","tab_name":"新标签页名称","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"时区","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"自动"},"experimental_warning":"请注意 Mue 团队无法提供实验性功能的支持。若您遇到问题,请先关闭实验性功能,再寻求帮助。","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"统计","sections":{"tabs_opened":"页面打开次数","backgrounds_favourited":"收藏的背景","backgrounds_downloaded":"下载过背景","quotes_favourited":"收藏的名言警句","quicklinks_added":"添加的快捷方式","settings_changed":"更改的设置","addons_installed":"添加的插件"},"usage":"启用统计","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"实验性功能","warning":"以下设置仍未完成编写或测试,可能无法正常运作!","developer":"开发者"},"language":{"title":"语言","quote":"名言语言","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"更新日志","by":"By {author}"},"about":{"title":"关于","version":{"title":"版本","checking_update":"正在检查更新……","update_available":"可下载更新","no_update":"无可下载更新","offline_mode":"离线模式下不能检查更新","error":{"title":"获取更新信息失败","description":"错误"}},"contact_us":"联系我们","support_mue":"支持 Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"使用资源","bg_images":"离线背景"},"contributors":"贡献者","supporters":"支持者","no_supporters":"There are currently no Mue supporters","photographers":"背景摄影者","curators":"Add-on creators"}},"buttons":{"reset":"重置","import":"导入","export":"导出","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"图片包","quote_packs":"名言包","preset_settings":"预设设定","no_items":"本类别为空","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"总览","information":"信息","last_updated":"更新日期","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"版本","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"添加至 Mue","remove":"卸载","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"您目前似乎离线","description":"请连接到互联网。"}},"addons":{"added":"已添加","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"这里空空如也","description":"请访问插件市场来添加插件。"},"sideload":{"title":"上传插件","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"排序","newest":"安装过 (从新到旧)","a_z":"首字母 (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"创建","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Get Started"}}},"update":{"title":"更新日志","offline":{"title":"离线模式已启用","description":"不能从官网获取更新日志"},"error":{"title":"错误","description":"无法连接到服务器"}},"welcome":{"tip":"快速提示","sections":{"intro":{"title":"欢迎使用 Mue 新标签插件","description":"感谢您的安装。祝您使用愉快。","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"更改语言","description":"Mue 支持以下语言。你也可以在这里添加新的翻译"},"theme":{"title":"选择一个主题","description":"Mue 支持日间和夜间主题,或者设置为自动选择,主题将跟随系统主题自动切换","tip":"使用自动选择将使用您的电脑的主题。这个设置也会影响设置界面和一些小组件的主题,比如天气和便签。"},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"导入设置","description":"在新设备上安装 Mue? 可以直接导入之前的设置!","tip":"您可以通过在之前设备上点击右上角的设置,打开高级选项卡,然后点击导出按钮,浏览器将自动下载一个 json 文件。你可以在上面点击导入按钮导入该 json 文件来导入你之前的设置和偏好。"},"privacy":{"title":"隐私设置","description":"进行一些设置来和 Mue 更好的保护您的隐私","offline_mode_description":"启用离线模式将会关闭所有服务的网络访问。该选项会关闭所有在线背景图片、在线名言警句、插件市场、天气、快捷方式、更新历史和一些关于信息的网络访问。","links":{"title":"链接","privacy_policy":"隐私政策","source_code":"源代码"}},"final":{"title":"最后一步","description":"马上即可开始使用 Mue!","changes":"更改的设置","changes_description":"如果需要进一步设置,点击右上角的设置图标即可弹出完整设置对话框。如果显示不正常,刷新即可。","imported":"导入{amount}设置"}},"buttons":{"next":"下一步","preview":"Preview","previous":"上一步","close":"关闭","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),XM={quote:"名言已复制",notes:"便签已复制",reset:"重置成功",installed:"安装成功",uninstalled:"卸载成功",updated:"Successfully updated",error:"发生错误",imported:"导入成功",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Nb={tabname:WM,widgets:QM,modals:ZM,toasts:XM},JM="新分頁",$M={greeting:{morning:"早安",afternoon:"午安",evening:"晚安",christmas:"聖誕快樂",newyear:"新年快樂",halloween:"萬聖節快樂",birthday:"生日快樂"},background:{credit:"影像來自",unsplash:"在 Unsplash 上",information:"資訊",download:"下載",downloads:"下載",views:"檢視",likes:"喜歡",location:"地點",camera:"相機",resolution:"解析度",source:"來源",category:"類別",exclude:"不要再顯示",exclude_confirm:`你確定你不想再次看到此影像嗎?
-注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},eC=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),tC={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Eb={tabname:JM,widgets:$M,modals:eC,toasts:tC};function Bl(o){return new E0("en_GB",{ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb})}const aC={ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb},oC="https://webbrain.one",iC="https://webbrain.one/privacy",nC="https://github.com/esokullu/webbrain",sC="https://github.com/esokullu/webbrain/issues/new",rC="https://github.com/mue/mue",lC="7.6.0",uC="1.0.0",dC=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:sC,MUE_REPO_URL:rC,MUE_VERSION:lC,PRIVACY_URL:iC,REPO_URL:nC,VERSION:uC,WEBSITE_URL:oC},Symbol.toStringTag,{value:"Module"}));class cC{static async postEvent(){}static async tabLoad(){}}const me={language:{},languagecode:"",stats:cC,constants:dC},mC={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Rm(){let o;try{o=String(Hl?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const pC=new Set(["ar","fa","he","ur"]);function fC(){const o=Rm(),n=String(o||"en").replace("_","-");return{lang:n,dir:pC.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function gC(){return mC[Rm()]||"en_GB"}const hC=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],_C={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","Runs immediately: WebBrain starts acting in your browser as soon as you press Enter.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","Se ejecuta de inmediato: WebBrain empieza a actuar en tu navegador en cuanto pulsas Intro.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","S’exécute immédiatement : WebBrain commence à agir dans votre navigateur dès que vous appuyez sur Entrée.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","Wird sofort ausgeführt: WebBrain beginnt in Ihrem Browser zu handeln, sobald Sie die Eingabetaste drücken.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","Hemen çalışır: Enter’a bastığınız anda WebBrain tarayıcınızda işlem yapmaya başlar.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","Executa imediatamente: o WebBrain começa a agir no seu navegador assim que pressionar Enter.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","Запускается сразу: WebBrain начнёт действовать в вашем браузере, как только вы нажмёте Enter.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","Запускається одразу: WebBrain почне діяти у вашому браузері, щойно ви натиснете Enter.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","将立即执行:按下 Enter 后,WebBrain 会马上开始在您的浏览器中操作。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","すぐに実行されます。Enter を押すと、WebBrain はすぐにブラウザーの操作を始めます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","즉시 실행됩니다. Enter를 누르는 즉시 WebBrain이 브라우저에서 작업을 시작합니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يُنفَّذ فورًا: يبدأ WebBrain بالعمل في متصفحك بمجرد ضغطك على Enter.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","מופעל מיד: WebBrain מתחיל לפעול בדפדפן שלך ברגע שתלחץ על Enter.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","तुरंत चलता है: Enter दबाते ही WebBrain आपके ब्राउज़र में काम करना शुरू कर देगा।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","Langsung dijalankan: WebBrain mulai bertindak di browser Anda begitu Anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","Dijalankan serta-merta: WebBrain mula bertindak dalam pelayar anda sebaik sahaja anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Agad na tatakbo: magsisimulang kumilos ang WebBrain sa iyong browser sa sandaling pindutin mo ang Enter.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","Uruchamia się natychmiast: WebBrain zacznie działać w Twojej przeglądarce zaraz po naciśnięciu Enter.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","ทำงานทันที: WebBrain จะเริ่มดำเนินการในเบราว์เซอร์ของคุณทันทีที่คุณกด Enter","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","Chạy ngay lập tức: WebBrain bắt đầu thao tác trong trình duyệt của bạn ngay khi bạn nhấn Enter.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","সঙ্গে সঙ্গে চলে: Enter চাপামাত্র WebBrain আপনার ব্রাউজারে কাজ শুরু করবে।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","بلافاصله اجرا می‌شود: به‌محض فشردن Enter، WebBrain در مرورگر شما شروع به عمل می‌کند.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","Wordt direct uitgevoerd: WebBrain begint in uw browser te handelen zodra u op Enter drukt.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},Sm=Object.fromEntries(Object.entries(_C).map(([o,n])=>[o,Object.fromEntries(hC.map((u,l)=>[`wb.${u}`,n[l]]))]));function Wt(o,n=Rm()){return Sm[n]?.[o]??Sm.en[o]??o}const Db=o=>typeof o=="string"&&o.startsWith("wb.");function Mm(o=document.documentElement){const n=fC(),{lang:u,dir:l}=Sm[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const jb=y.createContext();function vC({children:o,initialLanguage:n}){const[u,l]=y.useState(n),d=y.useRef(Bl());y.useEffect(()=>{u!==n&&(d.current=Bl()),me.language=d.current,me.languagecode=u,Mm()},[u,n]);const c=y.useCallback(h=>{d.current=Bl(),me.language=d.current,me.languagecode=h,Mm();const k=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(k===_||!k){const g=aC[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=y.useCallback((h,k={})=>Db(h)?Wt(h):d.current?d.current.getMessage(u,h,k):h,[u]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),y.useEffect(()=>{me.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(jb.Provider,{value:p,children:o})}function Ob(){const o=y.useContext(jb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Zo(){const{t:o}=Ob();return o}function bC({info:o}){const n=Zo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const yC=y.memo(bC);var qb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},R_=ve.createContext&&ve.createContext(qb),kC=["attr","size","title"];function wC(o,n){if(o==null)return{};var u,l,d=SC(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function SC(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Fl(){return Fl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Fl.apply(null,arguments)}function B_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Vl(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?B_(Object(u),!0).forEach(function(l){MC(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):B_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function MC(o,n,u){return(n=CC(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function CC(o){var n=AC(o,"string");return typeof n=="symbol"?n:n+""}function AC(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Rb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Vl({key:u},n.attr),Rb(n.child)))}function le(o){return n=>ve.createElement(xC,Fl({attr:Vl({},o.attr)},n),Rb(o.child))}function xC(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=wC(o,kC),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Fl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Vl(Vl({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return R_!==void 0?ve.createElement(R_.Consumer,null,u=>n(u)):n(qb)}function zC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function nN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Us(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function TC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function Bb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Ps(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function NC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Bm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Lb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function EC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function DC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function jC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function OC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function qC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function RC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ib(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function BC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function L_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function Ub(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function LC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function IC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function I_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function UC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function PC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function HC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function FC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Pb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function VC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function GC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function KC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function YC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function Lm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function WC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function QC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function ZC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function XC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function JC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function $C(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function U_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function yN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function P_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function eA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function kN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function wN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function SN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function tA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function aA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function oA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function MN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function CN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function iA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function nA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function sA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function rA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Wo={SETTINGS:"settings"},Re={SETTINGS:DC,LIBRARY:$C,TASKBOX:Ib,DISCOVER:QC,NAVBAR:TC,GREETING:zC,TIME:FC,QUOTE:tA,QUICKLINKS:LC,DATE:XC,MESSAGE:aA,BACKGROUND:eA,SEARCH:Lm,WEATHER:RC,APPEARANCE:BC,LANGUAGE:KC,ADVANCED:iA,EXPERIMENTAL:JC,STATS:rA,CHANGELOG:oA,ABOUT:WC,ADDED:nA,CREATE:UC,OVERVIEW:GC,COLLECTIONS:OC},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},AN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],lA=[{tab:Wo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],xN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],js=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Wo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Gl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},H_=()=>js()!==null,uA="MueCustomBackgrounds",dA=1,zt="backgrounds";function Ni(){return new Promise((o,n)=>{const u=indexedDB.open(uA,dA);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Hb(){try{const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function cA(){return(await Hb()).map(n=>n.url||n)}const $s=o=>{const n=new Promise((u,l)=>{o.oncomplete=()=>u(),o.onerror=()=>l(o.error||new Error("IndexedDB request failed")),o.onabort=()=>l(o.error||new Error("IndexedDB transaction aborted"))});return n.catch(()=>{}),n};async function mA(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},f=d.add(c);return await l,f.result}async function zN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result[o];f&&d.delete(f.id)},await l}async function TN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result;o.filter(p=>f[p]).forEach(p=>d.delete(f[p].id))},await l}async function Fb(){const n=(await Ni()).transaction(zt,"readwrite"),u=$s(n);n.objectStore(zt).clear(),await u}async function pA(){const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function NN(o,n){const l=(await Ni()).transaction(zt,"readwrite"),d=$s(l),c=l.objectStore(zt),f=c.get(o);let p=!0;if(f.onsuccess=()=>{const h=f.result;h?(Object.assign(h,n),h.updatedAt=Date.now(),c.put(h)):p=!1},await d,!p)throw new Error("Background not found")}async function EN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await pA()>0)return!1;try{for(const l of n)await mA(l)}catch(l){try{await Fb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function fA({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(l)try{const g=await cA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),k=()=>{Gl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:me.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:me.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:k,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:me.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(yC,{info:o,api:n,url:u})]})}const gA=y.memo(fA),F_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function hA({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=y.useState(F_);return y.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(F_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const _A=y.memo(hA);function vA(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:d.photoInfo?{...d.photoInfo}:c.photoInfo}))},[]),l=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const bA={photo:[5]},am={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:bA};function Vb(o){const n=Object.keys(am),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${am[u].photo[Math.floor(Math.random()*am[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function yA(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}const kA=[".mp4",".webm",".ogg"];function Im(o){const n=String(o??""),u=n.toLowerCase();if(u.startsWith("data:video/")||u.startsWith("video/"))return!0;let l;try{l=new URL(n).pathname}catch{l=n.split(/[?#]/)[0]}return l=l.toLowerCase(),kA.some(d=>l.endsWith(d))}const Gb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function wA(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Gb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,video:Im(n.url),photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return MA();case"colour":return SA();case"random_colour":case"random_gradient":return yA(u);case"custom":return await CA(o);default:return null}}function SA(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function MA(){return{...Vb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function CA(o){let n=await Hb();if(!n||n.length===0){const c=Gb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Vb("custom");const d={url:l,type:"custom",video:Im(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function AA(o,n){const u=y.useRef(0),l=y.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const k=localStorage.getItem("welcomeImage");if(k){o(JSON.parse(k));return}}const h=await wA();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=y.useCallback(()=>{n(),l()},[l,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function xA(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const zA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ll=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+zA.indexOf(o[n++]);return l},Kb=Math.pow,Os=Math.PI,Yb=3294.6,Wb=269.025,TA=o=>o>10.31475?Kb(o/Wb+.052132,2.4):o/Yb,NA=o=>~~(o>1227e-8?Wb*Kb(o,.416666)-13.025:o*Yb+1),Kl=4096,Qb=new Uint8ClampedArray(Kl+1);for(let o=0;o<=Kl;o++)Qb[o]=NA(o/Kl);const om=o=>o<=0?0:o>=1?255:Qb[o*Kl+.5|0],qs=o=>(o<0?-1:1)*o*o,V_=o=>{for(o+=Os/2;o>Os;)o-=Os*2;const n=1.27323954*o-.405284735*qs(o);return .225*(qs(n)-n)+n};function EA(o){const n=Ll(o,2,6);return[n>>16,n>>8&255,n&255]}function DA(o,n,u,l){const d=Ll(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,A,x,T,z,L;const G=(Ll(o,1,2)+1)/13446*(l|1),Q=new Float64Array(p*3),H=EA(o);for(h=0;h<3;h++)Q[h]=TA(H[h]);for(h=1;h<p;h++)L=Ll(o,4+h*2,6+h*2),Q[h*3]=qs(~~(L/361)-9)*G,Q[h*3+1]=qs(~~(L/19)%19-9)*G,Q[h*3+2]=qs(L%19-9)*G;const j=new Float64Array(f*u),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<u;g++)j[k*u+g]=V_(Os*g*k/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=V_(Os*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)x=j[k*u+g],T=(h+k*c)*3,b+=Q[T]*x,S+=Q[T+1]*x,C+=Q[T+2]*x;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)A=q[h*n+_],T=h*3,b+=W[T]*A,S+=W[T+1]*A,C+=W[T+2]*A;z=4*_+g*V,$[z]=om(b),$[z+1]=om(S),$[z+2]=om(C),$[z+3]=255}}return $}function jA(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(DA(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Um(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Pm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Zb=()=>document.documentElement.dataset.bgMaximised==="true",OA={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},G_=1200,Nl=o=>`url("${String(o).replace(/[\\"]/g,"\\$&").replace(/\r?\n|\r/g,"\\a ")}")`;function qA(o,n){const u=y.useRef(null),l=y.useRef(n);l.current=n,y.useEffect(()=>{if(o.video)return;const d=document.getElementById("backgroundImage");if(!d)return;let c=!1,f=null;return(async()=>{if(o.url){const h=localStorage.getItem("bgtransition")!=="false",k=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!h||k){if(/^https?:/i.test(o.url)){const A=new Image;A.src=o.url;const x=await new Promise(T=>{A.onload=()=>T(!0),A.onerror=()=>T(!1)});if(c)return;if(!x){l.current?.(o.url);return}}d.style.background=Nl(o.url),document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let _=document.getElementById("backgroundOverlay");if(_||(_=document.createElement("div"),_.id="backgroundOverlay",d.parentNode.insertBefore(_,d.nextSibling)),o.photoInfo?.colour&&(d.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const A=jA(o.photoInfo.blur_hash,64,64);A&&(d.style.backgroundImage=Nl(A))}const g=await xA(o.url);if(c){g&&URL.revokeObjectURL(g);return}const b=g||o.url;g&&(u.current&&URL.revokeObjectURL(u.current),u.current=g);const S=new Image;S.src=b;const C=await new Promise(A=>{S.onload=()=>A(!0),S.onerror=()=>A(!1)});if(c)return;if(!C&&/^https?:/i.test(o.url)){l.current?.(o.url);return}_.style.transition="none",_.style.opacity="0",_.style.backgroundImage="",_.offsetHeight,_.style.backgroundImage=Nl(b),_.offsetHeight,_.style.transition=`opacity ${G_/1e3}s ease-in-out`,_.offsetHeight,_.style.opacity="1",f=setTimeout(()=>{d.style.backgroundImage=Nl(b),_.style.opacity="0",_.style.backgroundImage=""},G_+100)}else o.style?d.setAttribute("style",o.style):d.style.backgroundImage=""})(),()=>{c=!0,clearTimeout(f),u.current&&(URL.revokeObjectURL(u.current),u.current=null);const h=document.getElementById("backgroundOverlay");h&&h.remove()}},[o.url,o.style,o.video,o.photoInfo])}function RA(o){return y.useMemo(()=>({WebkitFilter:Zb()?"blur(0px) brightness(100%)":Um()}),[o])}function BA(o){return y.useMemo(()=>Zb()?OA:Pm(),[o])}function LA(o,n){y.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Um(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Pm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function IA(){const{backgroundData:o,updateBackground:n,resetBackground:u}=vA(),{refreshBackground:l}=AA(n,u),d=RA(o),c=BA(o);return qA(o,f=>{f===o.url&&!o.video&&n({video:!0})}),LA(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(_A,{url:o.url,filterStyle:d}):w.jsx(gA,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const UA=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),PA=function(o,n){return new URL(o,n).href},K_={},Hm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let k=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=k(u.map(_=>{if(_=PA(_,l),_ in K_)return;K_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const A=f[C];if(A.href===_&&(!g||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":UA,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,A)=>{S.addEventListener("load",C),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Xb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Fm(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Jb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function HA(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Jb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ds(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Jb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const FA=y.lazy(()=>Hm(()=>import("./index-DdIzjGFh.js"),[],import.meta.url));function VA({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(FA,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function GA({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Ds(u)).join(""),KA=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,u]=y.useState(""),[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),A=y.useRef(void 0),x=(T=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{A.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Fm(z,L)),localStorage.getItem("timeType")){case"percentageComplete":u(HA(z.getHours()/24)),_("");break;case"analogue":Hm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(z);break;default:{let G,Q="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);Q=`:${Yt(j)}`,h(Yt(j))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Yt(q)}:${Yt(j)}${Q}`,d(Yt(q)),f(Yt(j))}else{const q=z.getHours();G=`${Ds(q)}:${Yt(j)}${Q}`,d(Ds(q)),f(Yt(j))}u(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Yt(V)}:${Yt(q)}${Q}`,d(Yt(V)),f(Yt(q))}else G=`${Ds(j)}:${Yt(q)}${Q}`,d(Ds(j)),f(Yt(q));u(G),_(z.getHours()>11?"PM":"AM")}break}}x()},T)};return y.useEffect(()=>{const T=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(A.current),A.current=null,x(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),x(0),_e.on("refresh",T),()=>{_e.off("refresh",T),A.current&&clearTimeout(A.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(VA,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(GA,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},YA=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},Y_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},WA=()=>{const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Fm(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const A=localStorage.getItem("defaultGreetingMessage");A==="false"?C="":C=YA(g,C);let x="";const T=localStorage.getItem("greetingName");typeof T=="string"&&T.replace(/\s/g,"").length>0&&(x=`, ${T.trim()}`);const z=localStorage.getItem("birthdayenabled");if(A==="false"&&z!=="true"&&(x=x.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&Y_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Xb(Y_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${x}`),k()},_)};return y.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},QA="wbNewtabHandoff:",nu=o=>`${QA}${o}`,ZA=4e3,su=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Hs=()=>su()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Yl=null;async function XA(){let o=null;try{o=await Hs()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await tx(Hs(),o.id),Yl=o,Yl}function JA({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,ZA),mode:n==="act"?"act":"ask",createdAt:l}}const $b=16e4,ho=new Map;function ey(o,n=""){let u;const l=new Promise(c=>{u=c}),d=(c=!0)=>{ho.get(o)?.promise===l&&ho.delete(o),u(c)};return ho.set(o,{promise:l,release:d,text:n}),d}const $A=o=>ho.has(o),ex=o=>ho.get(o)?.text??"";function W_(o=Yl){return ho.get(o?.id)?.promise??Promise.resolve(!0)}async function tx(o,n,u=Date.now()){if(!o?.storage?.local?.get||ho.has(n))return!1;const l=nu(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||ho.has(n))return!1;const c=$b-(u-Number(d.createdAt||0));return c>0?(ty(o,n,ey(n,String(d.text??"")),c),!0):!1}function ty(o,n,u,l=$b){const d=nu(n);let c;const f=(h,k)=>{(!k||k==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(h=!0){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u(h)}c=setTimeout(()=>p(!1),l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function ax({text:o,mode:n},u=Hs(),l=Yl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(ho.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=su();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=ey(l.id,String(o??"")),f=JA({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[nu(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(k){h=Promise.reject(k),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(ty(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async k=>{throw await p.catch(()=>{}),await ox(u,l.id,f.id),c(),k})}async function ox(o,n,u){const l=nu(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function ix(o=Hs()){return su()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const Q_=new Set(["http:","https:"]);function nx(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return Q_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return Q_.has(u.protocol)?u.href:null}catch{return null}return null}async function sx(o,n=Hs(),u=l=>window.location.assign(l)){const l=nx(o);if(l)return u(l),!0;if(su()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const rx=[{id:"ask",icon:PC},{id:"act",icon:Ib},{id:"search",icon:Lm}],ay=()=>rx.filter(o=>o.id!=="search"||ix()),lx=()=>{const o=localStorage.getItem("taskBoxMode");return ay().some(n=>n.id===o)?o:"ask"};function ux(){const[o,n]=y.useState(lx),[u,l]=y.useState(""),[d,c]=y.useState(""),[f,p]=y.useState(!1),h=y.useRef(null),k=y.useRef(!1);y.useEffect(()=>{let g=!0;return XA().then(b=>{if(g&&b?.id!=null&&$A(b.id)){p(!0);const S=ex(b.id);W_(b).then(C=>{g&&(p(!1),C===!1&&(l(A=>A||S),c(Wt("wb.panel_failed"))))})}}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||k.current)){if(c(""),o==="search"){sx(b).catch(()=>c(Wt("wb.panel_failed")));return}k.current=!0,p(!0),ax({text:b,mode:o}).then(()=>(l(""),W_())).then(S=>{S===!1&&(l(C=>C||b),c(Wt("wb.panel_failed")))}).catch(()=>c(Wt("wb.panel_failed"))).finally(()=>{k.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Wt(`wb.placeholder_${o}`),"aria-label":Wt(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Wt("wb.go"),disabled:f||!u.trim(),children:w.jsx(Lb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:ay().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:Wt(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint taskBoxWarning",role:"note",children:Wt("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const Z_="webbrain_chat_history",im="records";async function dx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===Z_))return[];const l=await new Promise((d,c)=>{const f=n.open(Z_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(im)?await new Promise((d,c)=>{const f=[],p=l.transaction([im],"readonly").objectStore(im),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},k.onerror=()=>c(k.error)}):[]}finally{l.close()}}const X_="../src/ui/history.html";function cx(){const[o,n]=y.useState(null);return y.useEffect(()=>{let u=!1;return dx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Wt("wb.recent_title")}),w.jsx("a",{href:X_,children:Wt("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Wt("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${X_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const Cm=Math.min,An=Math.max,Wl=Math.round,_o=o=>({x:o,y:o}),mx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(o,n,u){return An(o,Cm(n,u))}function ru(o,n){return typeof o=="function"?o(n):o}function Tn(o){return o.split("-")[0]}function lu(o){return o.split("-")[1]}function oy(o){return o==="x"?"y":"x"}function iy(o){return o==="y"?"height":"width"}function Yo(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ny(o){return oy(Yo(o))}function fx(o,n,u){u===void 0&&(u=!1);const l=lu(o),d=ny(o),c=iy(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Ql(f)),[f,Ql(f)]}function gx(o){const n=Ql(o);return[Am(o),n,Am(n)]}function Am(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const J_=["left","right"],$_=["right","left"],hx=["top","bottom"],_x=["bottom","top"];function vx(o,n,u){switch(o){case"top":case"bottom":return u?n?$_:J_:n?J_:$_;case"left":case"right":return n?hx:_x;default:return[]}}function bx(o,n,u,l){const d=lu(o);let c=vx(Tn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Am)))),c}function Ql(o){const n=Tn(o);return mx[n]+o.slice(n.length)}function yx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function kx(o){return typeof o!="number"?yx(o):{top:o,right:o,bottom:o,left:o}}function Zl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function ev(o,n,u){let{reference:l,floating:d}=o;const c=Yo(n),f=ny(n),p=iy(f),h=Tn(n),k=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=lu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&k?-1:1)),S}async function wx(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=ru(n,o),C=kx(S),x=p[b?g==="floating"?"reference":"floating":g],T=Zl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(x)))==null||u?x:x.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Q=Zl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(T.top-Q.top+C.top)/G.y,bottom:(Q.bottom-T.bottom+C.bottom)/G.y,left:(T.left-Q.left+C.left)/G.x,right:(Q.right-T.right+C.right)/G.x}}const Sx=50,Mx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:wx},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=ev(k,l,h),b=l,S=0;const C={};for(let A=0;A<c.length;A++){const x=c[A];if(!x)continue;const{name:T,fn:z}=x,{x:L,y:G,data:Q,reset:H}=await z({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[T]={...C[T],...Q},H&&S<Sx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=ev(k,b,h)),A=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},Cx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...x}=ru(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const T=Tn(d),z=Yo(p),L=Tn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),Q=b||(L||!A?[Ql(p)]:gx(p)),H=C!=="none";!b&&H&&Q.push(...bx(p,A,C,G));const j=[p,...Q],q=await h.detectOverflow(n,x),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[T]),g){const X=fx(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=j[X];if(Y&&(!(g==="alignment"?z!==Yo(Y):!1)||$.every(K=>Yo(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const N=(ae=$.filter(K=>{if(H){const ie=Yo(K.placement);return ie===z||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];N&&(I=N);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},Ax=new Set(["left","top"]);async function xx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=Tn(u),p=lu(u),h=Yo(u)==="y",k=Ax.has(f)?-1:1,_=c&&h?-1:1,g=ru(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*k}:{x:b*k,y:S*_}}const zx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await xx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Tx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=ru(o,n),_={x:u,y:l},g=await c.detectOverflow(n,k),b=Yo(d),S=oy(b);let C=_[S],A=_[b];const x=(z,L)=>px(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=x(S,C)),p&&(A=x(b,A));const T=h.fn({...n,[S]:C,[b]:A});return{...T,data:{x:T.x-u,y:T.y-l,enabled:{[S]:f,[b]:p}}}}}};function uu(){return typeof window<"u"}function Nn(o){return sy(o)?(o.nodeName||"").toLowerCase():"#document"}function la(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Xo(o){var n;return(n=(sy(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function sy(o){return uu()?o instanceof Node||o instanceof la(o).Node:!1}function Wa(o){return uu()?o instanceof Element||o instanceof la(o).Element:!1}function Jo(o){return uu()?o instanceof HTMLElement||o instanceof la(o).HTMLElement:!1}function tv(o){return!uu()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof la(o).ShadowRoot}function du(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Nx(o){return/^(table|td|th)$/.test(Nn(o))}function cu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Ex=/transform|translate|scale|rotate|perspective|filter/,Dx=/paint|layout|strict|content/,Mi=o=>!!o&&o!=="none";let nm;function Vm(o){const n=Wa(o)?Qa(o):o;return Mi(n.transform)||Mi(n.translate)||Mi(n.scale)||Mi(n.rotate)||Mi(n.perspective)||!Gm()&&(Mi(n.backdropFilter)||Mi(n.filter))||Ex.test(n.willChange||"")||Dx.test(n.contain||"")}function jx(o){let n=Ti(o);for(;Jo(n)&&!Fs(n);){if(Vm(n))return n;if(cu(n))return null;n=Ti(n)}return null}function Gm(){return nm==null&&(nm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nm}function Fs(o){return/^(html|body|#document)$/.test(Nn(o))}function Qa(o){return la(o).getComputedStyle(o)}function mu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Ti(o){if(Nn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||tv(o)&&o.host||Xo(o);return tv(n)?n.host:n}function ry(o){const n=Ti(o);return Fs(n)?(o.ownerDocument||o).body:Jo(n)&&du(n)?n:ry(n)}function ly(o,n,u){var l;n===void 0&&(n=[]);const d=ry(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=la(d);return c?(xm(f),n.concat(f,f.visualViewport||[],du(d)?d:[],[])):n.concat(d,ly(d,[]))}function xm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function uy(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Jo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Wl(u)!==c||Wl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function dy(o){return Wa(o)?o:o.contextElement}function xn(o){const n=dy(o);if(!Jo(n))return _o(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=uy(n);let f=(c?Wl(u.width):u.width)/l,p=(c?Wl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Ox=_o(0);function cy(o){const n=la(o);return!Gm()||!n.visualViewport?Ox:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function qx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===la(o)}function Vs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=dy(o);let f=_o(1);n&&(l?Wa(l)&&(f=xn(l)):f=xn(o));const p=qx(c,u,l)?cy(c):_o(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=la(c),S=Wa(l)?la(l):l;let C=b,A=xm(C);for(;A&&S!==C;){const x=xn(A),T=A.getBoundingClientRect(),z=Qa(A),L=T.left+(A.clientLeft+parseFloat(z.paddingLeft))*x.x,G=T.top+(A.clientTop+parseFloat(z.paddingTop))*x.y;h*=x.x,k*=x.y,_*=x.x,g*=x.y,h+=L,k+=G,C=la(A),A=xm(C)}}return Zl({width:_,height:g,x:h,y:k})}function pu(o,n){const u=mu(o).scrollLeft;return n?n.left+u:Vs(Xo(o)).left+u}function my(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-pu(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Rx(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Xo(l),p=n?cu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},k=_o(1);const _=_o(0),g=Jo(l);if((g||!c)&&((Nn(l)!=="body"||du(f))&&(h=mu(l)),g)){const S=Vs(l);k=xn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?my(f,h):_o(0);return{width:u.width*k.x,height:u.height*k.y,x:u.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:u.y*k.y-h.scrollTop*k.y+_.y+b.y}}function Bx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Lx(o){const n=mu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+pu(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ix=25;function Ux(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=la(o),c=Xo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Gm()||n==="fixed";l?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(pu(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),A=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,x=Math.abs(c.clientWidth-S.clientWidth-A),T=getComputedStyle(c).scrollbarGutter==="stable both-edges"?x/2:x;T<=Ix&&(p-=T)}return{width:p,height:h,x:k,y:_}}function Px(o,n){const u=Vs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=xn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=l*c.y;return{width:f,height:p,x:h,y:k}}function av(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=Ux(o,u,n);else if(n==="document")l=Lx(Xo(o));else if(Wa(n))l=Px(n,u);else{const d=cy(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Zl(l)}function Hx(o,n){const u=n.get(o);if(u)return u;let l=ly(o,[]).filter(p=>Wa(p)&&Nn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?Ti(o):o;for(;Wa(f)&&!Fs(f);){const p=Qa(f),h=Vm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=Ti(f)}return n.set(o,l),l}function Fx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?cu(n)?[]:Hx(n,this._c):[].concat(u),l],p=av(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=av(n,f[b],d);h=An(S.top,h),k=Cm(S.right,k),_=Cm(S.bottom,_),g=An(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function Vx(o){const{width:n,height:u}=uy(o);return{width:n,height:u}}function Gx(o,n,u){const l=Jo(n),d=Xo(n),c=u==="fixed",f=Vs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=_o(0);if((l||!c)&&((Nn(n)!=="body"||du(d))&&(p=mu(n)),l)){const b=Vs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=pu(d));const k=d&&!l&&!c?my(d,p):_o(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function sm(o){return Qa(o).position==="static"}function ov(o,n){if(!Jo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Xo(o)===u&&(u=u.ownerDocument.body),u}function py(o,n){const u=la(o);if(cu(o))return u;if(!Jo(o)){let d=Ti(o);for(;d&&!Fs(d);){if(Wa(d)&&!sm(d))return d;d=Ti(d)}return u}let l=ov(o,n);for(;l&&Nx(l)&&sm(l);)l=ov(l,n);return l&&Fs(l)&&sm(l)&&!Vm(l)?u:l||jx(o)||u}const Kx=async function(o){const n=this.getOffsetParent||py,u=this.getDimensions,l=await u(o.floating);return{reference:Gx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Yx(o){return Qa(o).direction==="rtl"}const Wx={convertOffsetParentRelativeRectToViewportRelativeRect:Rx,getDocumentElement:Xo,getClippingRect:Fx,getOffsetParent:py,getElementRects:Kx,getClientRects:Bx,getDimensions:Vx,getScale:xn,isElement:Wa,isRTL:Yx},Qx=zx,Zx=Tx,Xx=Cx,Jx=(o,n,u)=>{const l=new Map,d=u??{},c={...Wx,...d.platform,_c:l};return Mx(o,n,{...d,platform:c})};var Cn=qm(),$x=typeof document<"u",e2=function(){},Il=$x?y.useLayoutEffect:e2;function Xl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Xl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Xl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function fy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(o,n){const u=fy(o);return Math.round(n*u)/u}function rm(o){const n=y.useRef(o);return Il(()=>{n.current=o}),n}function fu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(l);Xl(b,l)||S(l);const[C,A]=y.useState(null),[x,T]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,A(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,T(K))},[]),G=c||C,Q=f||x,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=rm(h),W=rm(d),ee=rm(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Jx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Xl(q.current,ne)&&(q.current=ne,Cn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);Il(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const X=y.useRef(!1);Il(()=>(X.current=!0,()=>{X.current=!1}),[]),Il(()=>{if(G&&(H.current=G),Q&&(j.current=Q),G&&Q){if($.current)return $.current(G,Q,ae);ae()}},[G,Q,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:Q}),[G,Q]),N=y.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=iv(I.floating,_.x),ne=iv(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...fy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:N}),[_,ae,Y,I,N])}const t2=(o,n)=>{const u=Qx(o);return{name:u.name,fn:u.fn,options:[o,n]}},gu=(o,n)=>{const u=Zx(o);return{name:u.name,fn:u.fn,options:[o,n]}},a2=(o,n)=>{const u=Xx(o);return{name:u.name,fn:u.fn,options:[o,n]}},o2={position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function i2({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=`tooltip-${y.useId().replace(/:/g,"")}`,b=y.useRef(null),{x:S,y:C,refs:A,strategy:x,placement:T}=fu({placement:l||"bottom",middleware:[a2(),t2(15),gu()],elements:{reference:k}}),z=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Q=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"tooltip",style:u,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:Q,ref:_,children:[y.isValidElement(o)&&!o.props["aria-describedby"]?y.cloneElement(o,{"aria-describedby":g}):o,w.jsxs("span",{id:g,role:"tooltip",style:o2,children:[n,d?` ${d}`:""]})]}),(c||p)&&w.jsxs("span",{ref:A.setFloating,style:{position:x,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":T,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(i2),Gs=y.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),A=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return A;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Gs.displayName="Button";const Qo=o=>n=>{n.target===n.currentTarget&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),o(n))};function n2({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?me.getMessage("widgets.quicklinks.edit"):me.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:me.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.welcome.buttons.close"),onClick:()=>l(),onKeyDown:Qo(()=>l()),children:w.jsx(Ps,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.url"),value:k,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Gs,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Gs,{type:"settings",onClick:()=>u(p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("widgets.quicklinks.add")})]})]})}const DN=y.memo(n2),s2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],r2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function zm(o){localStorage.clear(),s2.forEach(l=>localStorage.setItem(l.name,l.value));const n=r2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",me.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function l2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function lm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||me.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");if(u){const d=document.createElement("style");d.id="customcss",d.textContent=u,document.head.appendChild(d)}const l=localStorage.getItem("font");if(l){const d=document.createElement("style");d.id="customfont",d.textContent=`
+注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},eC=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),tC={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Eb={tabname:JM,widgets:$M,modals:eC,toasts:tC};function Bl(o){return new E0("en_GB",{ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb})}const aC={ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb},oC="https://webbrain.one",iC="https://webbrain.one/privacy",nC="https://github.com/esokullu/webbrain",sC="https://github.com/esokullu/webbrain/issues/new",rC="https://github.com/mue/mue",lC="7.6.0",uC="1.0.0",dC=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:sC,MUE_REPO_URL:rC,MUE_VERSION:lC,PRIVACY_URL:iC,REPO_URL:nC,VERSION:uC,WEBSITE_URL:oC},Symbol.toStringTag,{value:"Module"}));class cC{static async postEvent(){}static async tabLoad(){}}const me={language:{},languagecode:"",stats:cC,constants:dC},mC={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Rm(){let o;try{o=String(Hl?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const pC=new Set(["ar","fa","he","ur"]);function fC(){const o=Rm(),n=String(o||"en").replace("_","-");return{lang:n,dir:pC.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function gC(){return mC[Rm()]||"en_GB"}const hC=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],_C={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","Runs immediately: WebBrain starts acting in your browser as soon as you press Enter.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","Se ejecuta de inmediato: WebBrain empieza a actuar en tu navegador en cuanto pulsas Intro.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","S’exécute immédiatement : WebBrain commence à agir dans votre navigateur dès que vous appuyez sur Entrée.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","Wird sofort ausgeführt: WebBrain beginnt in Ihrem Browser zu handeln, sobald Sie die Eingabetaste drücken.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","Hemen çalışır: Enter’a bastığınız anda WebBrain tarayıcınızda işlem yapmaya başlar.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","Executa imediatamente: o WebBrain começa a agir no seu navegador assim que pressionar Enter.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","Запускается сразу: WebBrain начнёт действовать в вашем браузере, как только вы нажмёте Enter.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","Запускається одразу: WebBrain почне діяти у вашому браузері, щойно ви натиснете Enter.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","将立即执行:按下 Enter 后,WebBrain 会马上开始在您的浏览器中操作。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","すぐに実行されます。Enter を押すと、WebBrain はすぐにブラウザーの操作を始めます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","즉시 실행됩니다. Enter를 누르는 즉시 WebBrain이 브라우저에서 작업을 시작합니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يُنفَّذ فورًا: يبدأ WebBrain بالعمل في متصفحك بمجرد ضغطك على Enter.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","מופעל מיד: WebBrain מתחיל לפעול בדפדפן שלך ברגע שתלחץ על Enter.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","तुरंत चलता है: Enter दबाते ही WebBrain आपके ब्राउज़र में काम करना शुरू कर देगा।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","Langsung dijalankan: WebBrain mulai bertindak di browser Anda begitu Anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","Dijalankan serta-merta: WebBrain mula bertindak dalam pelayar anda sebaik sahaja anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Agad na tatakbo: magsisimulang kumilos ang WebBrain sa iyong browser sa sandaling pindutin mo ang Enter.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","Uruchamia się natychmiast: WebBrain zacznie działać w Twojej przeglądarce zaraz po naciśnięciu Enter.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","ทำงานทันที: WebBrain จะเริ่มดำเนินการในเบราว์เซอร์ของคุณทันทีที่คุณกด Enter","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","Chạy ngay lập tức: WebBrain bắt đầu thao tác trong trình duyệt của bạn ngay khi bạn nhấn Enter.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","সঙ্গে সঙ্গে চলে: Enter চাপামাত্র WebBrain আপনার ব্রাউজারে কাজ শুরু করবে।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","بلافاصله اجرا می‌شود: به‌محض فشردن Enter، WebBrain در مرورگر شما شروع به عمل می‌کند.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","Wordt direct uitgevoerd: WebBrain begint in uw browser te handelen zodra u op Enter drukt.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},Sm=Object.fromEntries(Object.entries(_C).map(([o,n])=>[o,Object.fromEntries(hC.map((u,l)=>[`wb.${u}`,n[l]]))]));function Wt(o,n=Rm()){return Sm[n]?.[o]??Sm.en[o]??o}const Db=o=>typeof o=="string"&&o.startsWith("wb.");function Mm(o=document.documentElement){const n=fC(),{lang:u,dir:l}=Sm[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const jb=y.createContext();function vC({children:o,initialLanguage:n}){const[u,l]=y.useState(n),d=y.useRef(Bl());y.useEffect(()=>{u!==n&&(d.current=Bl()),me.language=d.current,me.languagecode=u,Mm()},[u,n]);const c=y.useCallback(h=>{d.current=Bl(),me.language=d.current,me.languagecode=h,Mm();const k=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(k===_||!k){const g=aC[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=y.useCallback((h,k={})=>Db(h)?Wt(h):d.current?d.current.getMessage(u,h,k):h,[u]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),y.useEffect(()=>{me.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(jb.Provider,{value:p,children:o})}function Ob(){const o=y.useContext(jb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Zo(){const{t:o}=Ob();return o}function bC({info:o}){const n=Zo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const yC=y.memo(bC);var qb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},R_=ve.createContext&&ve.createContext(qb),kC=["attr","size","title"];function wC(o,n){if(o==null)return{};var u,l,d=SC(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function SC(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Fl(){return Fl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Fl.apply(null,arguments)}function B_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Vl(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?B_(Object(u),!0).forEach(function(l){MC(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):B_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function MC(o,n,u){return(n=CC(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function CC(o){var n=AC(o,"string");return typeof n=="symbol"?n:n+""}function AC(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Rb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Vl({key:u},n.attr),Rb(n.child)))}function le(o){return n=>ve.createElement(xC,Fl({attr:Vl({},o.attr)},n),Rb(o.child))}function xC(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=wC(o,kC),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Fl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Vl(Vl({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return R_!==void 0?ve.createElement(R_.Consumer,null,u=>n(u)):n(qb)}function zC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Us(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function TC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function Bb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Ps(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function NC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Bm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Lb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function EC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function DC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function jC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function OC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function qC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function RC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ib(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function BC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function L_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function Ub(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function LC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function IC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function I_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function UC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function PC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function HC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function FC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Pb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function VC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function GC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function KC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function yN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function YC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function Lm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function WC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function QC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function ZC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function XC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function JC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function $C(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function U_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function kN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function P_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function eA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function wN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function SN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function MN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function tA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function aA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function oA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function CN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function AN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function iA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function nA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function sA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function rA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Wo={SETTINGS:"settings"},Re={SETTINGS:DC,LIBRARY:$C,TASKBOX:Ib,DISCOVER:QC,NAVBAR:TC,GREETING:zC,TIME:FC,QUOTE:tA,QUICKLINKS:LC,DATE:XC,MESSAGE:aA,BACKGROUND:eA,SEARCH:Lm,WEATHER:RC,APPEARANCE:BC,LANGUAGE:KC,ADVANCED:iA,EXPERIMENTAL:JC,STATS:rA,CHANGELOG:oA,ABOUT:WC,ADDED:nA,CREATE:UC,OVERVIEW:GC,COLLECTIONS:OC},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},xN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],lA=[{tab:Wo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],zN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],js=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Wo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Gl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},H_=()=>js()!==null,uA="MueCustomBackgrounds",dA=1,zt="backgrounds";function Ni(){return new Promise((o,n)=>{const u=indexedDB.open(uA,dA);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Hb(){try{const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function cA(){return(await Hb()).map(n=>n.url||n)}const $s=o=>{const n=new Promise((u,l)=>{o.oncomplete=()=>u(),o.onerror=()=>l(o.error||new Error("IndexedDB request failed")),o.onabort=()=>l(o.error||new Error("IndexedDB transaction aborted"))});return n.catch(()=>{}),n};async function mA(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},f=d.add(c);return await l,f.result}async function TN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result[o];f&&d.delete(f.id)},await l}async function NN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result;o.filter(p=>f[p]).forEach(p=>d.delete(f[p].id))},await l}async function Fb(){const n=(await Ni()).transaction(zt,"readwrite"),u=$s(n);n.objectStore(zt).clear(),await u}async function pA(){const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function EN(o,n){const l=(await Ni()).transaction(zt,"readwrite"),d=$s(l),c=l.objectStore(zt),f=c.get(o);let p=!0;if(f.onsuccess=()=>{const h=f.result;h?(Object.assign(h,n),h.updatedAt=Date.now(),c.put(h)):p=!1},await d,!p)throw new Error("Background not found")}async function DN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await pA()>0)return!1;try{for(const l of n)await mA(l)}catch(l){try{await Fb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function fA({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(l)try{const g=await cA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),k=()=>{Gl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:me.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:me.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:k,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:me.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(yC,{info:o,api:n,url:u})]})}const gA=y.memo(fA),F_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function hA({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=y.useState(F_);return y.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(F_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const _A=y.memo(hA);function vA(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:d.photoInfo?{...d.photoInfo}:c.photoInfo}))},[]),l=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const bA={photo:[5]},am={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:bA};function Vb(o){const n=Object.keys(am),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${am[u].photo[Math.floor(Math.random()*am[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function yA(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}const kA=[".mp4",".webm",".ogg"];function Im(o){const n=String(o??""),u=n.toLowerCase();if(u.startsWith("data:video/")||u.startsWith("video/"))return!0;let l;try{l=new URL(n).pathname}catch{l=n.split(/[?#]/)[0]}return l=l.toLowerCase(),kA.some(d=>l.endsWith(d))}const Gb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function wA(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Gb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,video:Im(n.url),photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return MA();case"colour":return SA();case"random_colour":case"random_gradient":return yA(u);case"custom":return await CA(o);default:return null}}function SA(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function MA(){return{...Vb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function CA(o){let n=await Hb();if(!n||n.length===0){const c=Gb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Vb("custom");const d={url:l,type:"custom",video:Im(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function AA(o,n){const u=y.useRef(0),l=y.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const k=localStorage.getItem("welcomeImage");if(k){o(JSON.parse(k));return}}const h=await wA();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=y.useCallback(()=>{n(),l()},[l,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function xA(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const zA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ll=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+zA.indexOf(o[n++]);return l},Kb=Math.pow,Os=Math.PI,Yb=3294.6,Wb=269.025,TA=o=>o>10.31475?Kb(o/Wb+.052132,2.4):o/Yb,NA=o=>~~(o>1227e-8?Wb*Kb(o,.416666)-13.025:o*Yb+1),Kl=4096,Qb=new Uint8ClampedArray(Kl+1);for(let o=0;o<=Kl;o++)Qb[o]=NA(o/Kl);const om=o=>o<=0?0:o>=1?255:Qb[o*Kl+.5|0],qs=o=>(o<0?-1:1)*o*o,V_=o=>{for(o+=Os/2;o>Os;)o-=Os*2;const n=1.27323954*o-.405284735*qs(o);return .225*(qs(n)-n)+n};function EA(o){const n=Ll(o,2,6);return[n>>16,n>>8&255,n&255]}function DA(o,n,u,l){const d=Ll(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,A,x,T,z,L;const G=(Ll(o,1,2)+1)/13446*(l|1),Q=new Float64Array(p*3),H=EA(o);for(h=0;h<3;h++)Q[h]=TA(H[h]);for(h=1;h<p;h++)L=Ll(o,4+h*2,6+h*2),Q[h*3]=qs(~~(L/361)-9)*G,Q[h*3+1]=qs(~~(L/19)%19-9)*G,Q[h*3+2]=qs(L%19-9)*G;const j=new Float64Array(f*u),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<u;g++)j[k*u+g]=V_(Os*g*k/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=V_(Os*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)x=j[k*u+g],T=(h+k*c)*3,b+=Q[T]*x,S+=Q[T+1]*x,C+=Q[T+2]*x;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)A=q[h*n+_],T=h*3,b+=W[T]*A,S+=W[T+1]*A,C+=W[T+2]*A;z=4*_+g*V,$[z]=om(b),$[z+1]=om(S),$[z+2]=om(C),$[z+3]=255}}return $}function jA(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(DA(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Um(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Pm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Zb=()=>document.documentElement.dataset.bgMaximised==="true",OA={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},G_=1200,Nl=o=>`url("${String(o).replace(/[\\"]/g,"\\$&").replace(/\r?\n|\r/g,"\\a ")}")`;function qA(o,n){const u=y.useRef(null),l=y.useRef(n);l.current=n,y.useEffect(()=>{if(o.video)return;const d=document.getElementById("backgroundImage");if(!d)return;let c=!1,f=null;return(async()=>{if(o.url){const h=localStorage.getItem("bgtransition")!=="false",k=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!h||k){if(/^https?:/i.test(o.url)){const A=new Image;A.src=o.url;const x=await new Promise(T=>{A.onload=()=>T(!0),A.onerror=()=>T(!1)});if(c)return;if(!x){l.current?.(o.url);return}}d.style.background=Nl(o.url),document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let _=document.getElementById("backgroundOverlay");if(_||(_=document.createElement("div"),_.id="backgroundOverlay",d.parentNode.insertBefore(_,d.nextSibling)),o.photoInfo?.colour&&(d.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const A=jA(o.photoInfo.blur_hash,64,64);A&&(d.style.backgroundImage=Nl(A))}const g=await xA(o.url);if(c){g&&URL.revokeObjectURL(g);return}const b=g||o.url;g&&(u.current&&URL.revokeObjectURL(u.current),u.current=g);const S=new Image;S.src=b;const C=await new Promise(A=>{S.onload=()=>A(!0),S.onerror=()=>A(!1)});if(c)return;if(!C&&/^https?:/i.test(o.url)){l.current?.(o.url);return}_.style.transition="none",_.style.opacity="0",_.style.backgroundImage="",_.offsetHeight,_.style.backgroundImage=Nl(b),_.offsetHeight,_.style.transition=`opacity ${G_/1e3}s ease-in-out`,_.offsetHeight,_.style.opacity="1",f=setTimeout(()=>{d.style.backgroundImage=Nl(b),_.style.opacity="0",_.style.backgroundImage=""},G_+100)}else o.style?d.setAttribute("style",o.style):d.style.backgroundImage=""})(),()=>{c=!0,clearTimeout(f),u.current&&(URL.revokeObjectURL(u.current),u.current=null);const h=document.getElementById("backgroundOverlay");h&&h.remove()}},[o.url,o.style,o.video,o.photoInfo])}function RA(o){return y.useMemo(()=>({WebkitFilter:Zb()?"blur(0px) brightness(100%)":Um()}),[o])}function BA(o){return y.useMemo(()=>Zb()?OA:Pm(),[o])}function LA(o,n){y.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Um(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Pm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function IA(){const{backgroundData:o,updateBackground:n,resetBackground:u}=vA(),{refreshBackground:l}=AA(n,u),d=RA(o),c=BA(o);return qA(o,f=>{f===o.url&&!o.video&&n({video:!0})}),LA(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(_A,{url:o.url,filterStyle:d}):w.jsx(gA,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const UA=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),PA=function(o,n){return new URL(o,n).href},K_={},Hm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let k=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=k(u.map(_=>{if(_=PA(_,l),_ in K_)return;K_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const A=f[C];if(A.href===_&&(!g||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":UA,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,A)=>{S.addEventListener("load",C),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Xb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Fm(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Jb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function HA(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Jb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ds(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Jb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const FA=y.lazy(()=>Hm(()=>import("./index-bn8Kdr1t.js"),[],import.meta.url));function VA({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(FA,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function GA({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Ds(u)).join(""),KA=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,u]=y.useState(""),[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),A=y.useRef(void 0),x=(T=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{A.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Fm(z,L)),localStorage.getItem("timeType")){case"percentageComplete":u(HA(z.getHours()/24)),_("");break;case"analogue":Hm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(z);break;default:{let G,Q="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);Q=`:${Yt(j)}`,h(Yt(j))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Yt(q)}:${Yt(j)}${Q}`,d(Yt(q)),f(Yt(j))}else{const q=z.getHours();G=`${Ds(q)}:${Yt(j)}${Q}`,d(Ds(q)),f(Yt(j))}u(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Yt(V)}:${Yt(q)}${Q}`,d(Yt(V)),f(Yt(q))}else G=`${Ds(j)}:${Yt(q)}${Q}`,d(Ds(j)),f(Yt(q));u(G),_(z.getHours()>11?"PM":"AM")}break}}x()},T)};return y.useEffect(()=>{const T=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(A.current),A.current=null,x(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),x(0),_e.on("refresh",T),()=>{_e.off("refresh",T),A.current&&clearTimeout(A.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(VA,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(GA,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},YA=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},Y_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},WA=()=>{const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Fm(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const A=localStorage.getItem("defaultGreetingMessage");A==="false"?C="":C=YA(g,C);let x="";const T=localStorage.getItem("greetingName");typeof T=="string"&&T.replace(/\s/g,"").length>0&&(x=`, ${T.trim()}`);const z=localStorage.getItem("birthdayenabled");if(A==="false"&&z!=="true"&&(x=x.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&Y_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Xb(Y_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${x}`),k()},_)};return y.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},QA="wbNewtabHandoff:",nu=o=>`${QA}${o}`,ZA=4e3,su=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Hs=()=>su()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Yl=null;async function XA(){let o=null;try{o=await Hs()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await tx(Hs(),o.id),Yl=o,Yl}function JA({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,ZA),mode:n==="act"?"act":"ask",createdAt:l}}const $b=16e4,ho=new Map;function ey(o,n=""){let u;const l=new Promise(c=>{u=c}),d=(c=!0)=>{ho.get(o)?.promise===l&&ho.delete(o),u(c)};return ho.set(o,{promise:l,release:d,text:n}),d}const $A=o=>ho.has(o),ex=o=>ho.get(o)?.text??"";function W_(o=Yl){return ho.get(o?.id)?.promise??Promise.resolve(!0)}async function tx(o,n,u=Date.now()){if(!o?.storage?.local?.get||ho.has(n))return!1;const l=nu(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||ho.has(n))return!1;const c=$b-(u-Number(d.createdAt||0));return c>0?(ty(o,n,ey(n,String(d.text??"")),c),!0):!1}function ty(o,n,u,l=$b){const d=nu(n);let c;const f=(h,k)=>{(!k||k==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(h=!0){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u(h)}c=setTimeout(()=>p(!1),l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function ax({text:o,mode:n},u=Hs(),l=Yl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(ho.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=su();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=ey(l.id,String(o??"")),f=JA({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[nu(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(k){h=Promise.reject(k),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(ty(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async k=>{throw await p.catch(()=>{}),await ox(u,l.id,f.id),c(),k})}async function ox(o,n,u){const l=nu(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function ix(o=Hs()){return su()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const Q_=new Set(["http:","https:"]);function nx(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return Q_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return Q_.has(u.protocol)?u.href:null}catch{return null}return null}async function sx(o,n=Hs(),u=l=>window.location.assign(l)){const l=nx(o);if(l)return u(l),!0;if(su()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const rx=[{id:"ask",icon:PC},{id:"act",icon:Ib},{id:"search",icon:Lm}],ay=()=>rx.filter(o=>o.id!=="search"||ix()),lx=()=>{const o=localStorage.getItem("taskBoxMode");return ay().some(n=>n.id===o)?o:"ask"};function ux(){const[o,n]=y.useState(lx),[u,l]=y.useState(""),[d,c]=y.useState(""),[f,p]=y.useState(!1),h=y.useRef(null),k=y.useRef(!1);y.useEffect(()=>{let g=!0;return XA().then(b=>{if(g&&b?.id!=null&&$A(b.id)){p(!0);const S=ex(b.id);W_(b).then(C=>{g&&(p(!1),C===!1&&(l(A=>A||S),c(Wt("wb.panel_failed"))))})}}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||k.current)){if(c(""),o==="search"){sx(b).catch(()=>c(Wt("wb.panel_failed")));return}k.current=!0,p(!0),ax({text:b,mode:o}).then(()=>(l(""),W_())).then(S=>{S===!1&&(l(C=>C||b),c(Wt("wb.panel_failed")))}).catch(()=>c(Wt("wb.panel_failed"))).finally(()=>{k.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Wt(`wb.placeholder_${o}`),"aria-label":Wt(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Wt("wb.go"),disabled:f||!u.trim(),children:w.jsx(Lb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:ay().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:Wt(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint taskBoxWarning",role:"note",children:Wt("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const Z_="webbrain_chat_history",im="records";async function dx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===Z_))return[];const l=await new Promise((d,c)=>{const f=n.open(Z_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(im)?await new Promise((d,c)=>{const f=[],p=l.transaction([im],"readonly").objectStore(im),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},k.onerror=()=>c(k.error)}):[]}finally{l.close()}}const X_="../src/ui/history.html";function cx(){const[o,n]=y.useState(null);return y.useEffect(()=>{let u=!1;return dx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Wt("wb.recent_title")}),w.jsx("a",{href:X_,children:Wt("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Wt("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${X_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const Cm=Math.min,An=Math.max,Wl=Math.round,_o=o=>({x:o,y:o}),mx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(o,n,u){return An(o,Cm(n,u))}function ru(o,n){return typeof o=="function"?o(n):o}function Tn(o){return o.split("-")[0]}function lu(o){return o.split("-")[1]}function oy(o){return o==="x"?"y":"x"}function iy(o){return o==="y"?"height":"width"}function Yo(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ny(o){return oy(Yo(o))}function fx(o,n,u){u===void 0&&(u=!1);const l=lu(o),d=ny(o),c=iy(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Ql(f)),[f,Ql(f)]}function gx(o){const n=Ql(o);return[Am(o),n,Am(n)]}function Am(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const J_=["left","right"],$_=["right","left"],hx=["top","bottom"],_x=["bottom","top"];function vx(o,n,u){switch(o){case"top":case"bottom":return u?n?$_:J_:n?J_:$_;case"left":case"right":return n?hx:_x;default:return[]}}function bx(o,n,u,l){const d=lu(o);let c=vx(Tn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Am)))),c}function Ql(o){const n=Tn(o);return mx[n]+o.slice(n.length)}function yx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function kx(o){return typeof o!="number"?yx(o):{top:o,right:o,bottom:o,left:o}}function Zl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function ev(o,n,u){let{reference:l,floating:d}=o;const c=Yo(n),f=ny(n),p=iy(f),h=Tn(n),k=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=lu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&k?-1:1)),S}async function wx(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=ru(n,o),C=kx(S),x=p[b?g==="floating"?"reference":"floating":g],T=Zl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(x)))==null||u?x:x.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Q=Zl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(T.top-Q.top+C.top)/G.y,bottom:(Q.bottom-T.bottom+C.bottom)/G.y,left:(T.left-Q.left+C.left)/G.x,right:(Q.right-T.right+C.right)/G.x}}const Sx=50,Mx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:wx},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=ev(k,l,h),b=l,S=0;const C={};for(let A=0;A<c.length;A++){const x=c[A];if(!x)continue;const{name:T,fn:z}=x,{x:L,y:G,data:Q,reset:H}=await z({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[T]={...C[T],...Q},H&&S<Sx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=ev(k,b,h)),A=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},Cx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...x}=ru(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const T=Tn(d),z=Yo(p),L=Tn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),Q=b||(L||!A?[Ql(p)]:gx(p)),H=C!=="none";!b&&H&&Q.push(...bx(p,A,C,G));const j=[p,...Q],q=await h.detectOverflow(n,x),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[T]),g){const X=fx(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=j[X];if(Y&&(!(g==="alignment"?z!==Yo(Y):!1)||$.every(K=>Yo(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const N=(ae=$.filter(K=>{if(H){const ie=Yo(K.placement);return ie===z||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];N&&(I=N);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},Ax=new Set(["left","top"]);async function xx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=Tn(u),p=lu(u),h=Yo(u)==="y",k=Ax.has(f)?-1:1,_=c&&h?-1:1,g=ru(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*k}:{x:b*k,y:S*_}}const zx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await xx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Tx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=ru(o,n),_={x:u,y:l},g=await c.detectOverflow(n,k),b=Yo(d),S=oy(b);let C=_[S],A=_[b];const x=(z,L)=>px(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=x(S,C)),p&&(A=x(b,A));const T=h.fn({...n,[S]:C,[b]:A});return{...T,data:{x:T.x-u,y:T.y-l,enabled:{[S]:f,[b]:p}}}}}};function uu(){return typeof window<"u"}function Nn(o){return sy(o)?(o.nodeName||"").toLowerCase():"#document"}function la(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Xo(o){var n;return(n=(sy(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function sy(o){return uu()?o instanceof Node||o instanceof la(o).Node:!1}function Wa(o){return uu()?o instanceof Element||o instanceof la(o).Element:!1}function Jo(o){return uu()?o instanceof HTMLElement||o instanceof la(o).HTMLElement:!1}function tv(o){return!uu()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof la(o).ShadowRoot}function du(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Nx(o){return/^(table|td|th)$/.test(Nn(o))}function cu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Ex=/transform|translate|scale|rotate|perspective|filter/,Dx=/paint|layout|strict|content/,Mi=o=>!!o&&o!=="none";let nm;function Vm(o){const n=Wa(o)?Qa(o):o;return Mi(n.transform)||Mi(n.translate)||Mi(n.scale)||Mi(n.rotate)||Mi(n.perspective)||!Gm()&&(Mi(n.backdropFilter)||Mi(n.filter))||Ex.test(n.willChange||"")||Dx.test(n.contain||"")}function jx(o){let n=Ti(o);for(;Jo(n)&&!Fs(n);){if(Vm(n))return n;if(cu(n))return null;n=Ti(n)}return null}function Gm(){return nm==null&&(nm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nm}function Fs(o){return/^(html|body|#document)$/.test(Nn(o))}function Qa(o){return la(o).getComputedStyle(o)}function mu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Ti(o){if(Nn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||tv(o)&&o.host||Xo(o);return tv(n)?n.host:n}function ry(o){const n=Ti(o);return Fs(n)?(o.ownerDocument||o).body:Jo(n)&&du(n)?n:ry(n)}function ly(o,n,u){var l;n===void 0&&(n=[]);const d=ry(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=la(d);return c?(xm(f),n.concat(f,f.visualViewport||[],du(d)?d:[],[])):n.concat(d,ly(d,[]))}function xm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function uy(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Jo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Wl(u)!==c||Wl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function dy(o){return Wa(o)?o:o.contextElement}function xn(o){const n=dy(o);if(!Jo(n))return _o(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=uy(n);let f=(c?Wl(u.width):u.width)/l,p=(c?Wl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Ox=_o(0);function cy(o){const n=la(o);return!Gm()||!n.visualViewport?Ox:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function qx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===la(o)}function Vs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=dy(o);let f=_o(1);n&&(l?Wa(l)&&(f=xn(l)):f=xn(o));const p=qx(c,u,l)?cy(c):_o(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=la(c),S=Wa(l)?la(l):l;let C=b,A=xm(C);for(;A&&S!==C;){const x=xn(A),T=A.getBoundingClientRect(),z=Qa(A),L=T.left+(A.clientLeft+parseFloat(z.paddingLeft))*x.x,G=T.top+(A.clientTop+parseFloat(z.paddingTop))*x.y;h*=x.x,k*=x.y,_*=x.x,g*=x.y,h+=L,k+=G,C=la(A),A=xm(C)}}return Zl({width:_,height:g,x:h,y:k})}function pu(o,n){const u=mu(o).scrollLeft;return n?n.left+u:Vs(Xo(o)).left+u}function my(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-pu(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Rx(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Xo(l),p=n?cu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},k=_o(1);const _=_o(0),g=Jo(l);if((g||!c)&&((Nn(l)!=="body"||du(f))&&(h=mu(l)),g)){const S=Vs(l);k=xn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?my(f,h):_o(0);return{width:u.width*k.x,height:u.height*k.y,x:u.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:u.y*k.y-h.scrollTop*k.y+_.y+b.y}}function Bx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Lx(o){const n=mu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+pu(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ix=25;function Ux(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=la(o),c=Xo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Gm()||n==="fixed";l?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(pu(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),A=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,x=Math.abs(c.clientWidth-S.clientWidth-A),T=getComputedStyle(c).scrollbarGutter==="stable both-edges"?x/2:x;T<=Ix&&(p-=T)}return{width:p,height:h,x:k,y:_}}function Px(o,n){const u=Vs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=xn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=l*c.y;return{width:f,height:p,x:h,y:k}}function av(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=Ux(o,u,n);else if(n==="document")l=Lx(Xo(o));else if(Wa(n))l=Px(n,u);else{const d=cy(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Zl(l)}function Hx(o,n){const u=n.get(o);if(u)return u;let l=ly(o,[]).filter(p=>Wa(p)&&Nn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?Ti(o):o;for(;Wa(f)&&!Fs(f);){const p=Qa(f),h=Vm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=Ti(f)}return n.set(o,l),l}function Fx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?cu(n)?[]:Hx(n,this._c):[].concat(u),l],p=av(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=av(n,f[b],d);h=An(S.top,h),k=Cm(S.right,k),_=Cm(S.bottom,_),g=An(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function Vx(o){const{width:n,height:u}=uy(o);return{width:n,height:u}}function Gx(o,n,u){const l=Jo(n),d=Xo(n),c=u==="fixed",f=Vs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=_o(0);if((l||!c)&&((Nn(n)!=="body"||du(d))&&(p=mu(n)),l)){const b=Vs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=pu(d));const k=d&&!l&&!c?my(d,p):_o(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function sm(o){return Qa(o).position==="static"}function ov(o,n){if(!Jo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Xo(o)===u&&(u=u.ownerDocument.body),u}function py(o,n){const u=la(o);if(cu(o))return u;if(!Jo(o)){let d=Ti(o);for(;d&&!Fs(d);){if(Wa(d)&&!sm(d))return d;d=Ti(d)}return u}let l=ov(o,n);for(;l&&Nx(l)&&sm(l);)l=ov(l,n);return l&&Fs(l)&&sm(l)&&!Vm(l)?u:l||jx(o)||u}const Kx=async function(o){const n=this.getOffsetParent||py,u=this.getDimensions,l=await u(o.floating);return{reference:Gx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Yx(o){return Qa(o).direction==="rtl"}const Wx={convertOffsetParentRelativeRectToViewportRelativeRect:Rx,getDocumentElement:Xo,getClippingRect:Fx,getOffsetParent:py,getElementRects:Kx,getClientRects:Bx,getDimensions:Vx,getScale:xn,isElement:Wa,isRTL:Yx},Qx=zx,Zx=Tx,Xx=Cx,Jx=(o,n,u)=>{const l=new Map,d=u??{},c={...Wx,...d.platform,_c:l};return Mx(o,n,{...d,platform:c})};var Cn=qm(),$x=typeof document<"u",e2=function(){},Il=$x?y.useLayoutEffect:e2;function Xl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Xl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Xl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function fy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(o,n){const u=fy(o);return Math.round(n*u)/u}function rm(o){const n=y.useRef(o);return Il(()=>{n.current=o}),n}function fu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(l);Xl(b,l)||S(l);const[C,A]=y.useState(null),[x,T]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,A(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,T(K))},[]),G=c||C,Q=f||x,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=rm(h),W=rm(d),ee=rm(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Jx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Xl(q.current,ne)&&(q.current=ne,Cn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);Il(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const X=y.useRef(!1);Il(()=>(X.current=!0,()=>{X.current=!1}),[]),Il(()=>{if(G&&(H.current=G),Q&&(j.current=Q),G&&Q){if($.current)return $.current(G,Q,ae);ae()}},[G,Q,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:Q}),[G,Q]),N=y.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=iv(I.floating,_.x),ne=iv(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...fy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:N}),[_,ae,Y,I,N])}const t2=(o,n)=>{const u=Qx(o);return{name:u.name,fn:u.fn,options:[o,n]}},gu=(o,n)=>{const u=Zx(o);return{name:u.name,fn:u.fn,options:[o,n]}},a2=(o,n)=>{const u=Xx(o);return{name:u.name,fn:u.fn,options:[o,n]}},o2={position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function i2({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=`tooltip-${y.useId().replace(/:/g,"")}`,b=y.useRef(null),{x:S,y:C,refs:A,strategy:x,placement:T}=fu({placement:l||"bottom",middleware:[a2(),t2(15),gu()],elements:{reference:k}}),z=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Q=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"tooltip",style:u,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:Q,ref:_,children:[y.isValidElement(o)&&!o.props["aria-describedby"]?y.cloneElement(o,{"aria-describedby":g}):o,w.jsxs("span",{id:g,role:"tooltip",style:o2,children:[n,d?` ${d}`:""]})]}),(c||p)&&w.jsxs("span",{ref:A.setFloating,style:{position:x,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":T,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(i2),Gs=y.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),A=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return A;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Gs.displayName="Button";const Qo=o=>n=>{n.target===n.currentTarget&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),o(n))};function n2({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?me.getMessage("widgets.quicklinks.edit"):me.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:me.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.welcome.buttons.close"),onClick:()=>l(),onKeyDown:Qo(()=>l()),children:w.jsx(Ps,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.url"),value:k,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Gs,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Gs,{type:"settings",onClick:()=>u(p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("widgets.quicklinks.add")})]})]})}const jN=y.memo(n2),s2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],r2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function zm(o){localStorage.clear(),s2.forEach(l=>localStorage.setItem(l.name,l.value));const n=r2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",me.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function l2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function lm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||me.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");if(u){const d=document.createElement("style");d.id="customcss",d.textContent=u,document.head.appendChild(d)}const l=localStorage.getItem("font");if(l){const d=document.createElement("style");d.id="customfont",d.textContent=`
* {
font-family: '${l}', 'Lexend Deca', 'Inter', sans-serif !important;
font-weight: ${localStorage.getItem("fontweight")};
font-style: ${localStorage.getItem("fontstyle")};
}
- `,document.head.appendChild(d)}localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function u2(){const o=Object.keys(localStorage);if(o.length===0)return zm();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),zm(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function d2({modalClose:o}){const n=async()=>{me.stats.postEvent("setting","Reset");try{await Fb()}catch(u){console.error("Could not clear the uploaded backgrounds, reset cancelled:",u),je(me.getMessage("toasts.error"));return}zm("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),onClick:o,onKeyDown:Qo(o),children:w.jsx(Ps,{})})})]}),w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Gs,{type:"secondary",onClick:o,icon:w.jsx(Ps,{}),label:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Gs,{type:"settings",onClick:()=>n(),icon:w.jsx(HC,{}),label:me.getMessage("modals.main.settings.buttons.reset")})]})]})}const jN=y.memo(d2),nv={[Wo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Wo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Wo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},c2=({currentTab:o=Wo.SETTINGS})=>{const n=nv[o]||nv[Wo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},m2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(c2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.loading")})]})})})})]}),p2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function f2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Zo(),g=lA.find(({tab:A})=>A===o),b=g?_(g.messageKey):"",S=(A,x)=>{if(!A||!x)return A;const T=`modals.main.settings.sections.${x}.${A}.title`,z=_(T);return!z||z===T?A.charAt(0).toUpperCase()+A.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null,u):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(EC,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Lb,{})})},"forwardTooltip")]}),w.jsx("img",{src:p2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((A,x)=>{const T=x===C.length-1,z=A.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:A.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),A.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${A.label}`,children:A.label}):w.jsx("span",{className:`breadcrumb-item ${T?"breadcrumb-current":""}`,"aria-current":T?"page":void 0,children:A.label}),!T&&w.jsx(NC,{className:"breadcrumb-separator","aria-hidden":"true"})]},x)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("button",{type:"button",className:"closeModal",onClick:c,"aria-label":_("modals.welcome.buttons.close"),children:w.jsx(Ps,{})})},"closeTooltip")})]})}const g2=y.lazy(()=>Hm(()=>import("./Settings-DqpzHKoz.js"),__vite__mapDeps([1,2]),import.meta.url));function h2({modalClose:o,deepLinkData:n}){const u=Wo.SETTINGS,[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?js(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash?C&&(_({type:"settings-default",timestamp:Date.now()}),h(null)):o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C,{fromHistory:A=!1}={})=>{d(S),f(C),!A&&(h(null),C&&Gl(`#${u}/${C}`,!1))},b=(S,C)=>{h(S),C&&Gl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(f2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(y.Suspense,{fallback:w.jsx(m2,{currentTab:u}),children:w.jsx(g2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},u)})})]})}const _2=y.memo(h2),sv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function gy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${sv[c%sv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const rv=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},hy=y.memo(()=>{const[o,n]=y.useState(rv()),[u,l]=y.useState(0),d=y.useRef(null),c=y.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);y.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(rv()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||gy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>k(_,g))})});hy.displayName="QuickLinks";const v2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${me.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Fm(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,A=g.getFullYear(),x=localStorage.getItem("datezero")==="true";let T=x?("00"+S).slice(-2):S,z=x?("00"+C).slice(-2):C,L=A;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Q,H]=[T,z];T=H,z=Q;break}case"YMD":{const Q=T;T=L,L=Q;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${T}.${z}.${L}`;break;case"dash":G=`${T}-${z}-${L}`;break;case"gaps":G=`${T} - ${z} - ${L}`;break;case"slashes":G=`${T}/${z}/${L}`;break}n(G)}else{const S=me.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Xb(g.getDate()):g.getDate(),A=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",x=g.toLocaleDateString(S,{month:"long"}),T=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${x} ${C}, ${T}${A?`, ${A}`:""}`;break;case"YMD":z=`${T} ${x} ${C}${A?`, ${A}`:""}`;break;default:z=`${C} ${x} ${T}${A?`, ${A}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},lv=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},b2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=lv();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=lv();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function En(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const y2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.default),l=y.useRef(null),d=y.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),A=1-Math.pow(1-C,3),x=p+(h-p)*A,T=Math.round(x/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,T),u(T),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),je(me.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,onKeyDown:Qo(c),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});y2.displayName="SliderComponent";const k2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),uv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Ci=o=>localStorage.getItem(o)==="true",w2=()=>{const[o,n]=y.useState(uv),u=y.useMemo(()=>({time:Ci("time")&&w.jsx(KA,{}),greeting:Ci("greeting")&&w.jsx(WA,{}),date:Ci("date")&&w.jsx(v2,{}),quicklinks:Ci("quicklinksenabled")?w.jsx(hy,{}):null,message:Ci("message")&&w.jsx(b2,{})}),[o]);return y.useEffect(()=>{const l=d=>{d==="widgets"&&n(uv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(k2,{children:[o.map((l,d)=>w.jsx(y.Fragment,{children:Object.hasOwn(u,l)?u[l]:null},d)),Ci("taskBox")&&w.jsx(ux,{}),Ci("recentChats")&&w.jsx(cx,{})]})};var El={exports:{}},Go={},um={exports:{}},dm,dv;function S2(){if(dv)return dm;dv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dm=o,dm}var cm,cv;function M2(){if(cv)return cm;cv=1;var o=S2();function n(){}function u(){}return u.resetWarningCache=n,cm=function(){function l(f,p,h,k,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},cm}var mv;function _y(){return mv||(mv=1,um.exports=M2()()),um.exports}var Dl={exports:{}},ya={},jl={exports:{}},pv;function vy(){return pv||(pv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function k(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(k)}o.exports=n.default})(jl,jl.exports)),jl.exports}var fv;function C2(){if(fv)return ya;fv=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.resetState=f,ya.log=p,ya.handleBlur=h,ya.handleFocus=k,ya.markForFocusLater=_,ya.returnFocus=g,ya.popWithoutFocus=b,ya.setupScopedFocus=S,ya.teardownScopedFocus=C;var o=vy(),n=u(o);function u(A){return A&&A.__esModule?A:{default:A}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var A=(0,n.default)(d)[0]||d;A.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=null;try{l.length!==0&&(x=l.pop(),x.focus({preventScroll:A}));return}catch{console.warn(["You tried to return focus to",x,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(A){d=A,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ya}var Ol={exports:{}},gv;function A2(){return gv||(gv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=vy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var k=(0,l.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var A=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),x=A!=null&&A[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(x){var T=k.indexOf(C);if(T>-1&&(T+=g?-1:1),_=k[T],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Ol,Ol.exports)),Ol.exports}var Ea={},mm,hv;function x2(){if(hv)return mm;hv=1;var o=function(){};return mm=o,mm}var Ya={},pm={exports:{}};var _v;function z2(){return _v||(_v=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(pm)),pm.exports}var vv;function Km(){if(vv)return Ya;vv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=z2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var bv;function by(){if(bv)return Ea;bv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=k,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=x2(),n=l(o),u=Km();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var A=document.querySelectorAll(C);p(A,C),C=A}return d=C||d,d}function k(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function g(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function b(){d=null}return Ea}var Ai={},yv;function T2(){if(yv)return Ai;yv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(k,_){k.classList.remove(_)}function l(){var k=document.getElementsByTagName("html")[0];for(var _ in o)u(k,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Mn={},kv;function yy(){if(kv)return Mn;kv=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.log=l,Mn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Mn.default=u,Mn}var Es={},wv;function N2(){if(wv)return Es;wv=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.resetState=f,Es.log=p;var o=yy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function k(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),Es}var Sv;function E2(){return Sv||(Sv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(X[N]=I[N])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var N=0;N<I.length;N++){var K=I[N];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,N){return I&&X(Y.prototype,I),N&&X(Y,N),Y}})(),c=Zs(),f=_y(),p=Q(f),h=C2(),k=G(h),_=A2(),g=Q(_),b=by(),S=G(b),C=T2(),A=G(C),x=Km(),T=Q(x),z=yy(),L=Q(z);N2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Q(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var N=j(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return N.setOverlayRef=function(K){N.overlay=K,N.props.overlayRef&&N.props.overlayRef(K)},N.setContentRef=function(K){N.content=K,N.props.contentRef&&N.props.contentRef(K)},N.afterClose=function(){var K=N.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ae=K.bodyOpenClassName,Ve=K.parentSelector,D=Ve&&Ve().ownerDocument||document;Ae&&A.remove(D.body,Ae),ye&&A.remove(D.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),N.props.shouldFocusAfterRender&&(N.props.shouldReturnFocusAfterClose?(k.returnFocus(N.props.preventScroll),k.teardownScopedFocus()):k.popWithoutFocus()),N.props.onAfterClose&&N.props.onAfterClose(),L.default.deregister(N)},N.open=function(){N.beforeOpen(),N.state.afterOpen&&N.state.beforeClose?(clearTimeout(N.closeTimer),N.setState({beforeClose:!1})):(N.props.shouldFocusAfterRender&&(k.setupScopedFocus(N.node),k.markForFocusLater()),N.setState({isOpen:!0},function(){N.openAnimationFrame=requestAnimationFrame(function(){N.setState({afterOpen:!0}),N.props.isOpen&&N.props.onAfterOpen&&N.props.onAfterOpen({overlayEl:N.overlay,contentEl:N.content})})}))},N.close=function(){N.props.closeTimeoutMS>0?N.closeWithTimeout():N.closeWithoutTimeout()},N.focusContent=function(){return N.content&&!N.contentHasFocus()&&N.content.focus({preventScroll:!0})},N.closeWithTimeout=function(){var K=Date.now()+N.props.closeTimeoutMS;N.setState({beforeClose:!0,closesAt:K},function(){N.closeTimer=setTimeout(N.closeWithoutTimeout,N.state.closesAt-Date.now())})},N.closeWithoutTimeout=function(){N.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},N.afterClose)},N.handleKeyDown=function(K){$(K)&&(0,g.default)(N.content,K),N.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),N.requestClose(K))},N.handleOverlayOnClick=function(K){N.shouldClose===null&&(N.shouldClose=!0),N.shouldClose&&N.props.shouldCloseOnOverlayClick&&(N.ownerHandlesClose()?N.requestClose(K):N.focusContent()),N.shouldClose=null},N.handleContentOnMouseUp=function(){N.shouldClose=!1},N.handleOverlayOnMouseDown=function(K){!N.props.shouldCloseOnOverlayClick&&K.target==N.overlay&&K.preventDefault()},N.handleContentOnClick=function(){N.shouldClose=!1},N.handleContentOnMouseDown=function(){N.shouldClose=!1},N.requestClose=function(K){return N.ownerHandlesClose()&&N.props.onRequestClose(K)},N.ownerHandlesClose=function(){return N.props.onRequestClose},N.shouldBeClosed=function(){return!N.state.isOpen&&!N.state.beforeClose},N.contentHasFocus=function(){return document.activeElement===N.content||N.content.contains(document.activeElement)},N.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return N.state.afterOpen&&(ye=ye+" "+ne.afterOpen),N.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},N.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},N.state={afterOpen:!1,beforeClose:!1},N.shouldClose=null,N.moveFromContentToOverlay=null,N}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(N,K){this.props.isOpen&&!N.isOpen?this.open():!this.props.isOpen&&N.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var N=this.props,K=N.appElement,ie=N.ariaHideApp,ne=N.htmlOpenClassName,ye=N.bodyOpenClassName,Ae=N.parentSelector,Ve=Ae&&Ae().ownerDocument||document;ye&&A.add(Ve.body,ye),ne&&A.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var N=this.props,K=N.id,ie=N.className,ne=N.overlayClassName,ye=N.defaultStyles,Ae=N.children,Ve=ie?{}:ye.content,D=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},D,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ae);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(T.default),p.default.instanceOf(x.SafeHTMLCollection),p.default.instanceOf(x.SafeNodeList),p.default.arrayOf(p.default.instanceOf(T.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(Dl,Dl.exports)),Dl.exports}function ky(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function wy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function Sy(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}ky.__suppressDeprecationWarning=!0;wy.__suppressDeprecationWarning=!0;Sy.__suppressDeprecationWarning=!0;function D2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
+ `,document.head.appendChild(d)}localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function u2(){const o=Object.keys(localStorage);if(o.length===0)return zm();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),zm(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function d2({modalClose:o}){const n=async()=>{me.stats.postEvent("setting","Reset");try{await Fb()}catch(u){console.error("Could not clear the uploaded backgrounds, reset cancelled:",u),je(me.getMessage("toasts.error"));return}zm("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),onClick:o,onKeyDown:Qo(o),children:w.jsx(Ps,{})})})]}),w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Gs,{type:"secondary",onClick:o,icon:w.jsx(Ps,{}),label:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Gs,{type:"settings",onClick:()=>n(),icon:w.jsx(HC,{}),label:me.getMessage("modals.main.settings.buttons.reset")})]})]})}const ON=y.memo(d2),nv={[Wo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Wo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Wo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},c2=({currentTab:o=Wo.SETTINGS})=>{const n=nv[o]||nv[Wo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},m2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(c2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.loading")})]})})})})]}),p2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function f2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Zo(),g=lA.find(({tab:A})=>A===o),b=g?_(g.messageKey):"",S=(A,x)=>{if(!A||!x)return A;const T=`modals.main.settings.sections.${x}.${A}.title`,z=_(T);return!z||z===T?A.charAt(0).toUpperCase()+A.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null,u):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(EC,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Lb,{})})},"forwardTooltip")]}),w.jsx("img",{src:p2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((A,x)=>{const T=x===C.length-1,z=A.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:A.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),A.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${A.label}`,children:A.label}):w.jsx("span",{className:`breadcrumb-item ${T?"breadcrumb-current":""}`,"aria-current":T?"page":void 0,children:A.label}),!T&&w.jsx(NC,{className:"breadcrumb-separator","aria-hidden":"true"})]},x)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("button",{type:"button",className:"closeModal",onClick:c,"aria-label":_("modals.welcome.buttons.close"),children:w.jsx(Ps,{})})},"closeTooltip")})]})}const g2=y.lazy(()=>Hm(()=>import("./Settings-9hHATwdq.js"),__vite__mapDeps([1,2]),import.meta.url));function h2({modalClose:o,deepLinkData:n}){const u=Wo.SETTINGS,[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?js(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash?C&&(_({type:"settings-default",timestamp:Date.now()}),h(null)):o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C,{fromHistory:A=!1}={})=>{d(S),f(C),!A&&(h(null),C&&Gl(`#${u}/${C}`,!1))},b=(S,C)=>{h(S),C&&Gl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(f2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(y.Suspense,{fallback:w.jsx(m2,{currentTab:u}),children:w.jsx(g2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},u)})})]})}const _2=y.memo(h2),sv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function gy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${sv[c%sv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const rv=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},hy=y.memo(()=>{const[o,n]=y.useState(rv()),[u,l]=y.useState(0),d=y.useRef(null),c=y.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);y.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(rv()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||gy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>k(_,g))})});hy.displayName="QuickLinks";const v2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${me.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Fm(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,A=g.getFullYear(),x=localStorage.getItem("datezero")==="true";let T=x?("00"+S).slice(-2):S,z=x?("00"+C).slice(-2):C,L=A;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Q,H]=[T,z];T=H,z=Q;break}case"YMD":{const Q=T;T=L,L=Q;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${T}.${z}.${L}`;break;case"dash":G=`${T}-${z}-${L}`;break;case"gaps":G=`${T} - ${z} - ${L}`;break;case"slashes":G=`${T}/${z}/${L}`;break}n(G)}else{const S=me.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Xb(g.getDate()):g.getDate(),A=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",x=g.toLocaleDateString(S,{month:"long"}),T=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${x} ${C}, ${T}${A?`, ${A}`:""}`;break;case"YMD":z=`${T} ${x} ${C}${A?`, ${A}`:""}`;break;default:z=`${C} ${x} ${T}${A?`, ${A}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},lv=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},b2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=lv();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=lv();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function En(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const y2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.default),l=y.useRef(null),d=y.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),A=1-Math.pow(1-C,3),x=p+(h-p)*A,T=Math.round(x/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,T),u(T),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),je(me.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,onKeyDown:Qo(c),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});y2.displayName="SliderComponent";const k2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),uv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Ci=o=>localStorage.getItem(o)==="true",w2=()=>{const[o,n]=y.useState(uv),u=y.useMemo(()=>({time:Ci("time")&&w.jsx(KA,{}),greeting:Ci("greeting")&&w.jsx(WA,{}),date:Ci("date")&&w.jsx(v2,{}),quicklinks:Ci("quicklinksenabled")?w.jsx(hy,{}):null,message:Ci("message")&&w.jsx(b2,{})}),[o]);return y.useEffect(()=>{const l=d=>{d==="widgets"&&n(uv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(k2,{children:[o.map((l,d)=>w.jsx(y.Fragment,{children:Object.hasOwn(u,l)?u[l]:null},d)),Ci("taskBox")&&w.jsx(ux,{}),Ci("recentChats")&&w.jsx(cx,{})]})};var El={exports:{}},Go={},um={exports:{}},dm,dv;function S2(){if(dv)return dm;dv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dm=o,dm}var cm,cv;function M2(){if(cv)return cm;cv=1;var o=S2();function n(){}function u(){}return u.resetWarningCache=n,cm=function(){function l(f,p,h,k,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},cm}var mv;function _y(){return mv||(mv=1,um.exports=M2()()),um.exports}var Dl={exports:{}},ya={},jl={exports:{}},pv;function vy(){return pv||(pv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function k(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(k)}o.exports=n.default})(jl,jl.exports)),jl.exports}var fv;function C2(){if(fv)return ya;fv=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.resetState=f,ya.log=p,ya.handleBlur=h,ya.handleFocus=k,ya.markForFocusLater=_,ya.returnFocus=g,ya.popWithoutFocus=b,ya.setupScopedFocus=S,ya.teardownScopedFocus=C;var o=vy(),n=u(o);function u(A){return A&&A.__esModule?A:{default:A}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var A=(0,n.default)(d)[0]||d;A.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=null;try{l.length!==0&&(x=l.pop(),x.focus({preventScroll:A}));return}catch{console.warn(["You tried to return focus to",x,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(A){d=A,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ya}var Ol={exports:{}},gv;function A2(){return gv||(gv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=vy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var k=(0,l.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var A=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),x=A!=null&&A[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(x){var T=k.indexOf(C);if(T>-1&&(T+=g?-1:1),_=k[T],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Ol,Ol.exports)),Ol.exports}var Ea={},mm,hv;function x2(){if(hv)return mm;hv=1;var o=function(){};return mm=o,mm}var Ya={},pm={exports:{}};var _v;function z2(){return _v||(_v=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(pm)),pm.exports}var vv;function Km(){if(vv)return Ya;vv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=z2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var bv;function by(){if(bv)return Ea;bv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=k,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=x2(),n=l(o),u=Km();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var A=document.querySelectorAll(C);p(A,C),C=A}return d=C||d,d}function k(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function g(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function b(){d=null}return Ea}var Ai={},yv;function T2(){if(yv)return Ai;yv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(k,_){k.classList.remove(_)}function l(){var k=document.getElementsByTagName("html")[0];for(var _ in o)u(k,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Mn={},kv;function yy(){if(kv)return Mn;kv=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.log=l,Mn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Mn.default=u,Mn}var Es={},wv;function N2(){if(wv)return Es;wv=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.resetState=f,Es.log=p;var o=yy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function k(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),Es}var Sv;function E2(){return Sv||(Sv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(X[N]=I[N])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var N=0;N<I.length;N++){var K=I[N];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,N){return I&&X(Y.prototype,I),N&&X(Y,N),Y}})(),c=Zs(),f=_y(),p=Q(f),h=C2(),k=G(h),_=A2(),g=Q(_),b=by(),S=G(b),C=T2(),A=G(C),x=Km(),T=Q(x),z=yy(),L=Q(z);N2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Q(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var N=j(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return N.setOverlayRef=function(K){N.overlay=K,N.props.overlayRef&&N.props.overlayRef(K)},N.setContentRef=function(K){N.content=K,N.props.contentRef&&N.props.contentRef(K)},N.afterClose=function(){var K=N.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ae=K.bodyOpenClassName,Ve=K.parentSelector,D=Ve&&Ve().ownerDocument||document;Ae&&A.remove(D.body,Ae),ye&&A.remove(D.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),N.props.shouldFocusAfterRender&&(N.props.shouldReturnFocusAfterClose?(k.returnFocus(N.props.preventScroll),k.teardownScopedFocus()):k.popWithoutFocus()),N.props.onAfterClose&&N.props.onAfterClose(),L.default.deregister(N)},N.open=function(){N.beforeOpen(),N.state.afterOpen&&N.state.beforeClose?(clearTimeout(N.closeTimer),N.setState({beforeClose:!1})):(N.props.shouldFocusAfterRender&&(k.setupScopedFocus(N.node),k.markForFocusLater()),N.setState({isOpen:!0},function(){N.openAnimationFrame=requestAnimationFrame(function(){N.setState({afterOpen:!0}),N.props.isOpen&&N.props.onAfterOpen&&N.props.onAfterOpen({overlayEl:N.overlay,contentEl:N.content})})}))},N.close=function(){N.props.closeTimeoutMS>0?N.closeWithTimeout():N.closeWithoutTimeout()},N.focusContent=function(){return N.content&&!N.contentHasFocus()&&N.content.focus({preventScroll:!0})},N.closeWithTimeout=function(){var K=Date.now()+N.props.closeTimeoutMS;N.setState({beforeClose:!0,closesAt:K},function(){N.closeTimer=setTimeout(N.closeWithoutTimeout,N.state.closesAt-Date.now())})},N.closeWithoutTimeout=function(){N.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},N.afterClose)},N.handleKeyDown=function(K){$(K)&&(0,g.default)(N.content,K),N.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),N.requestClose(K))},N.handleOverlayOnClick=function(K){N.shouldClose===null&&(N.shouldClose=!0),N.shouldClose&&N.props.shouldCloseOnOverlayClick&&(N.ownerHandlesClose()?N.requestClose(K):N.focusContent()),N.shouldClose=null},N.handleContentOnMouseUp=function(){N.shouldClose=!1},N.handleOverlayOnMouseDown=function(K){!N.props.shouldCloseOnOverlayClick&&K.target==N.overlay&&K.preventDefault()},N.handleContentOnClick=function(){N.shouldClose=!1},N.handleContentOnMouseDown=function(){N.shouldClose=!1},N.requestClose=function(K){return N.ownerHandlesClose()&&N.props.onRequestClose(K)},N.ownerHandlesClose=function(){return N.props.onRequestClose},N.shouldBeClosed=function(){return!N.state.isOpen&&!N.state.beforeClose},N.contentHasFocus=function(){return document.activeElement===N.content||N.content.contains(document.activeElement)},N.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return N.state.afterOpen&&(ye=ye+" "+ne.afterOpen),N.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},N.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},N.state={afterOpen:!1,beforeClose:!1},N.shouldClose=null,N.moveFromContentToOverlay=null,N}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(N,K){this.props.isOpen&&!N.isOpen?this.open():!this.props.isOpen&&N.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var N=this.props,K=N.appElement,ie=N.ariaHideApp,ne=N.htmlOpenClassName,ye=N.bodyOpenClassName,Ae=N.parentSelector,Ve=Ae&&Ae().ownerDocument||document;ye&&A.add(Ve.body,ye),ne&&A.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var N=this.props,K=N.id,ie=N.className,ne=N.overlayClassName,ye=N.defaultStyles,Ae=N.children,Ve=ie?{}:ye.content,D=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},D,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ae);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(T.default),p.default.instanceOf(x.SafeHTMLCollection),p.default.instanceOf(x.SafeNodeList),p.default.arrayOf(p.default.instanceOf(T.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(Dl,Dl.exports)),Dl.exports}function ky(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function wy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function Sy(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}ky.__suppressDeprecationWarning=!0;wy.__suppressDeprecationWarning=!0;Sy.__suppressDeprecationWarning=!0;function D2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
`+c+" uses "+f+" but also contains the following legacy lifecycles:"+(u!==null?`
`+u:"")+(l!==null?`
@@ -861,8 +861,8 @@ Note: if you don't like "{category}" images, you can deselect the category in th
`+d:"")+`
The above lifecycles should be removed. Learn more about this warning here:
-https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(n.componentWillMount=ky,n.componentWillReceiveProps=wy),typeof n.getSnapshotBeforeUpdate=="function"){if(typeof n.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");n.componentWillUpdate=Sy;var p=n.componentDidUpdate;n.componentDidUpdate=function(k,_,g){var b=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:g;p.call(this,k,_,b)}}return o}const j2=Object.freeze(Object.defineProperty({__proto__:null,polyfill:D2},Symbol.toStringTag,{value:"Module"})),O2=qS(j2);var Mv;function q2(){if(Mv)return Go;Mv=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.bodyOpenClassName=Go.portalClassName=void 0;var o=Object.assign||function(W){for(var ee=1;ee<arguments.length;ee++){var ae=arguments[ee];for(var X in ae)Object.prototype.hasOwnProperty.call(ae,X)&&(W[X]=ae[X])}return W},n=(function(){function W(ee,ae){for(var X=0;X<ae.length;X++){var Y=ae[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(ee,Y.key,Y)}}return function(ee,ae,X){return ae&&W(ee.prototype,ae),X&&W(ee,X),ee}})(),u=Zs(),l=x(u),d=qm(),c=x(d),f=_y(),p=x(f),h=E2(),k=x(h),_=by(),g=A(_),b=Km(),S=x(b),C=O2;function A(W){if(W&&W.__esModule)return W;var ee={};if(W!=null)for(var ae in W)Object.prototype.hasOwnProperty.call(W,ae)&&(ee[ae]=W[ae]);return ee.default=W,ee}function x(W){return W&&W.__esModule?W:{default:W}}function T(W,ee){if(!(W instanceof ee))throw new TypeError("Cannot call a class as a function")}function z(W,ee){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:W}function L(W,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);W.prototype=Object.create(ee&&ee.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(W,ee):W.__proto__=ee)}var G=Go.portalClassName="ReactModalPortal",Q=Go.bodyOpenClassName="ReactModal__Body--open",H=b.canUseDOM&&c.default.createPortal!==void 0,j=function(ee){return document.createElement(ee)},q=function(){return H?c.default.createPortal:c.default.unstable_renderSubtreeIntoContainer};function V(W){return W()}var $=(function(W){L(ee,W);function ee(){var ae,X,Y,I;T(this,ee);for(var N=arguments.length,K=Array(N),ie=0;ie<N;ie++)K[ie]=arguments[ie];return I=(X=(Y=z(this,(ae=ee.__proto__||Object.getPrototypeOf(ee)).call.apply(ae,[this].concat(K))),Y),Y.removePortal=function(){!H&&c.default.unmountComponentAtNode(Y.node);var ne=V(Y.props.parentSelector);ne&&ne.contains(Y.node)?ne.removeChild(Y.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},Y.portalRef=function(ne){Y.portal=ne},Y.renderPortal=function(ne){var ye=q(),Ae=ye(Y,l.default.createElement(k.default,o({defaultStyles:ee.defaultStyles},ne)),Y.node);Y.portalRef(Ae)},X),z(Y,I)}return n(ee,[{key:"componentDidMount",value:function(){if(b.canUseDOM){H||(this.node=j("div")),this.node.className=this.props.portalClassName;var X=V(this.props.parentSelector);X.appendChild(this.node),!H&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(X){var Y=V(X.parentSelector),I=V(this.props.parentSelector);return{prevParent:Y,nextParent:I}}},{key:"componentDidUpdate",value:function(X,Y,I){if(b.canUseDOM){var N=this.props,K=N.isOpen,ie=N.portalClassName;X.portalClassName!==ie&&(this.node.className=ie);var ne=I.prevParent,ye=I.nextParent;ye!==ne&&(ne.removeChild(this.node),ye.appendChild(this.node)),!(!X.isOpen&&!K)&&!H&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!b.canUseDOM||!this.node||!this.portal)){var X=this.portal.state,Y=Date.now(),I=X.isOpen&&this.props.closeTimeoutMS&&(X.closesAt||Y+this.props.closeTimeoutMS);I?(X.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,I-Y)):this.removePortal()}}},{key:"render",value:function(){if(!b.canUseDOM||!H)return null;!this.node&&H&&(this.node=j("div"));var X=q();return X(l.default.createElement(k.default,o({ref:this.portalRef,defaultStyles:ee.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(X){g.setElement(X)}}]),ee})(u.Component);return $.propTypes={isOpen:p.default.bool.isRequired,style:p.default.shape({content:p.default.object,overlay:p.default.object}),portalClassName:p.default.string,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,className:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),overlayClassName:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),appElement:p.default.oneOfType([p.default.instanceOf(S.default),p.default.instanceOf(b.SafeHTMLCollection),p.default.instanceOf(b.SafeNodeList),p.default.arrayOf(p.default.instanceOf(S.default))]),onAfterOpen:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,ariaHideApp:p.default.bool,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,parentSelector:p.default.func,aria:p.default.object,data:p.default.object,role:p.default.string,contentLabel:p.default.string,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func},$.defaultProps={isOpen:!1,portalClassName:G,bodyOpenClassName:Q,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(ee,ae){return l.default.createElement("div",ee,ae)},contentElement:function(ee,ae){return l.default.createElement("div",ee,ae)}},$.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,C.polyfill)($),Go.default=$,Go}var Cv;function R2(){return Cv||(Cv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=q2(),l=d(u);function d(c){return c&&c.__esModule?c:{default:c}}n.default=l.default,o.exports=n.default})(El,El.exports)),El.exports}var B2=R2();const L2=Om(B2),I2=({appsRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const[c,f]=y.useState(JSON.parse(localStorage.getItem("applinks"))),[p,h]=y.useState(localStorage.getItem("appsPinned")==="true"?"visible":"hidden"),[k,_]=y.useState(localStorage.getItem("refresh")==="false"?"-200px":"-130px"),[g,b]=y.useState(localStorage.getItem("appsPinned")==="true"),[S,C]=y.useState("1.2rem"),A=()=>{C(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};y.useEffect(()=>{const L=G=>{if(G==="navbar"){f(JSON.parse(localStorage.getItem("applinks")));try{A()}catch{}}};return A(),_e.on("refresh",L),()=>{_e.off("refresh",L)}},[]);const x=()=>{b(!0)},T=()=>{b(localStorage.getItem("appsPinned")==="true")},z=c;return w.jsxs("div",{className:"notes",onMouseLeave:T,onFocus:x,onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||T()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:x,onFocus:x,"aria-label":me.getMessage("widgets.navbar.apps.title"),ref:o,style:{fontSize:S},children:w.jsx(P_,{className:"topicons"})}),g&&w.jsxs("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:[w.jsx("div",{className:"flexTodo",children:w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(P_,{}),w.jsx("span",{children:me.getMessage("widgets.navbar.apps.title")})]})}),z.length>0?w.jsx("div",{className:"appsShortcutContainer",children:z.map((L,G)=>w.jsx(ht,{title:L.name.split(" ")[0],subtitle:L.name.split(" ").slice(1).join(" "),children:w.jsxs("a",{href:L.url,className:"appsIcon",children:[w.jsx("img",{src:L.icon===""?gy(L.url,L.name):L.icon,width:"40px",height:"40px",alt:"Google"}),w.jsx("span",{children:L.name})]})},G))}):w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:me.language.getMessage(me.languagecode,"widgets.navbar.apps.no_apps")})]})})]})]})};function U2(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(I2,{appsRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const P2=y.memo(U2),H2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${c?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=y.useCallback(c=>{(c.key===" "||c.key==="Enter")&&!o.disabled&&(c.preventDefault(),l())},[l,o.disabled]);return w.jsxs("div",{className:`checkbox-wrapper ${o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"checkbox-label",children:o.text}),w.jsx("input",{type:"checkbox",name:o.name,checked:n,onChange:l,disabled:o.disabled||!1,className:"checkbox-input","aria-label":o.text,onKeyDown:d}),w.jsx("div",{className:`checkbox-box ${n?"checked":""}`,children:n&&w.jsx(Bm,{})})]})});H2.displayName="Checkbox";function F2({label:o,options:n,onChange:u}){let l=(localStorage.getItem("apiCategories")||"").split(",");l[0]===""&&(l=[]);const[d,c]=y.useState(l),[f,p]=y.useState(!1),h=y.useRef(null);y.useEffect(()=>{const g=b=>{h.current&&!h.current.contains(b.target)&&p(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const k=g=>{let b;d.includes(g)?b=d.filter(S=>S!==g):b=[...d,g],c(b),localStorage.setItem("apiCategories",b.join(",")),u&&u(b)},_=(g,b)=>{g.stopPropagation(),k(b)};return w.jsxs("div",{className:"chipSelect",ref:h,children:[o&&w.jsx("label",{className:"chipSelect-label",children:o}),w.jsxs("div",{className:"chipSelect-control",onClick:()=>p(!f),onKeyDown:Qo(()=>p(!f)),role:"combobox","aria-haspopup":"listbox","aria-expanded":f,"aria-label":o||void 0,tabIndex:0,children:[w.jsx("div",{className:"chipSelect-value",children:d.length===0?w.jsx("span",{className:"chipSelect-placeholder",children:"Select options..."}):w.jsx("div",{className:"chipSelect-chips",children:d.map(g=>w.jsxs("span",{className:"chipSelect-chip",children:[g.charAt(0).toUpperCase()+g.slice(1),w.jsx("button",{type:"button",className:"chipSelect-chip-remove","aria-label":`Remove ${g}`,onClick:b=>_(b,g),children:w.jsx(Ps,{})})]},g))})}),w.jsx(Bb,{className:`chipSelect-arrow ${f?"open":""}`})]}),f&&w.jsx("div",{className:"chipSelect-dropdown",role:"listbox","aria-multiselectable":"true",children:n.map(g=>w.jsxs("div",{className:`chipSelect-option ${d.includes(g.name)?"selected":""}`,onClick:()=>k(g.name),onKeyDown:Qo(()=>k(g.name)),role:"option","aria-selected":d.includes(g.name),tabIndex:0,children:[w.jsx("span",{className:"chipSelect-option-checkbox",children:d.includes(g.name)&&"✓"}),w.jsxs("span",{className:"chipSelect-option-label",children:[g.name.charAt(0).toUpperCase()+g.name.slice(1),g.count&&` (${g.count})`]})]},g.name))})]})}y.memo(F2);const V2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.items[0]?.value),[l,d]=y.useState(!1),[c,f]=y.useState(-1),p=y.useRef(null),h=y.useRef([]);y.useEffect(()=>{const x=T=>{p.current&&!p.current.contains(T.target)&&(d(!1),f(-1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const k=y.useCallback(x=>{if(x!==me.getMessage("modals.main.loading")){if(me.stats.postEvent("setting",`${o.name} from ${n} to ${x}`),u(x),d(!1),f(-1),o.noSetting||(localStorage.setItem(o.name,x),o.name2!==void 0&&o.name2!==null&&localStorage.setItem(o.name2,o.value2)),o.onChange&&o.onChange(x),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[n,o]),_=y.useCallback(x=>{if(!o.disabled)switch(x.key){case"Enter":case" ":{x.preventDefault();const T=l&&c>=0?o.items.filter(z=>z!==null)[c]:null;T?k(T.value):d(!l);break}case"Escape":d(!1),f(-1);break;case"ArrowDown":x.preventDefault(),l?f(T=>T<o.items.filter(z=>z!==null).length-1?T+1:T):d(!0);break;case"ArrowUp":x.preventDefault(),l&&f(T=>T>0?T-1:T);break}},[l,c,k,o.items,o.disabled]),g=y.useCallback((x,T)=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),k(T.value))},[k]),b=y.useCallback(()=>{const x=o.default||o.items[0]?.value;k(x),je(me.getMessage("toasts.reset"))},[k,o.default,o.items]),S="dropdown"+o.name,C=o.label||"",A=o.items.find(x=>x?.value===n);return w.jsxs("div",{className:`dropdown ${S} ${o.disabled?"disabled":""}`,ref:p,children:[C&&w.jsxs("div",{className:"dropdown-header",children:[w.jsx("label",{className:"dropdown-label",children:C}),w.jsxs("span",{className:"dropdown-reset",onClick:b,onKeyDown:Qo(b),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"dropdown-control",onClick:()=>!o.disabled&&d(!l),onKeyDown:_,role:"button","aria-haspopup":"listbox","aria-expanded":l,"aria-label":C||o.name,tabIndex:o.disabled?-1:0,children:[w.jsx("span",{className:"dropdown-value",children:A?.text||n}),w.jsx(Bb,{className:`dropdown-arrow ${l?"open":""}`})]}),l&&w.jsx("div",{className:"dropdown-menu",role:"listbox",children:o.items.map((x,T)=>x!==null?w.jsxs("div",{ref:z=>h.current[T]=z,className:`dropdown-option ${n===x.value?"selected":""} ${T===c?"focused":""}`,onClick:()=>k(x.value),onKeyDown:z=>g(z,x),role:"option","aria-selected":n===x.value,tabIndex:0,children:[w.jsx("span",{className:"dropdown-option-text",children:x.text}),n===x.value&&w.jsx(Bm,{className:"dropdown-option-check"})]},S+x.value):null)})]})});V2.displayName="Dropdown";var Ul={exports:{}},G2=Ul.exports,Av;function K2(){return Av||(Av=1,(function(o,n){(function(u,l){o.exports=l()})(G2,(function(){return(function(u){var l={};function d(c){if(l[c])return l[c].exports;var f=l[c]={i:c,l:!1,exports:{}};return u[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}return d.m=u,d.c=l,d.d=function(c,f,p){d.o(c,f)||Object.defineProperty(c,f,{enumerable:!0,get:p})},d.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},d.t=function(c,f){if(1&f&&(c=d(c)),8&f||4&f&&typeof c=="object"&&c&&c.__esModule)return c;var p=Object.create(null);if(d.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:c}),2&f&&typeof c!="string")for(var h in c)d.d(p,h,function(k){return c[k]}.bind(null,h));return p},d.n=function(c){var f=c&&c.__esModule?function(){return c.default}:function(){return c};return d.d(f,"a",f),f},d.o=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)},d.p="",d(d.s=0)})([function(u,l,d){var c;function f(H){return["image/png","image/jpeg","image/gif"].some(j=>j===H)}d.r(l),d.d(l,"canvastoDataURL",(function(){return h})),d.d(l,"canvastoFile",(function(){return k})),d.d(l,"dataURLtoFile",(function(){return g})),d.d(l,"dataURLtoImage",(function(){return b})),d.d(l,"downloadFile",(function(){return S})),d.d(l,"filetoDataURL",(function(){return C})),d.d(l,"imagetoCanvas",(function(){return x})),d.d(l,"urltoBlob",(function(){return T})),d.d(l,"urltoImage",(function(){return z})),d.d(l,"compress",(function(){return G})),d.d(l,"compressAccurately",(function(){return Q})),d.d(l,"EImageType",(function(){return c})),(function(H){H.PNG="image/png",H.JPEG="image/jpeg",H.GIF="image/gif"})(c||(c={}));var p=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function h(H,j=.92,q=c.JPEG){return p(this,void 0,void 0,(function*(){return f(q)||(q=c.JPEG),H.toDataURL(q,j)}))}function k(H,j=.92,q=c.JPEG){return new Promise(V=>H.toBlob($=>V($),q,j))}var _=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function g(H,j){return _(this,void 0,void 0,(function*(){const q=H.split(",");let V=q[0].match(/:(.*?);/)[1];const $=atob(q[1]);let W=$.length;const ee=new Uint8Array(W);for(;W--;)ee[W]=$.charCodeAt(W);return f(j)&&(V=j),new Blob([ee],{type:V})}))}function b(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("dataURLtoImage(): dataURL is illegal")),V.src=H})}function S(H,j){const q=document.createElement("a");q.href=window.URL.createObjectURL(H),q.download=j||Date.now().toString(36),document.body.appendChild(q);const V=document.createEvent("MouseEvents");V.initEvent("click",!1,!1),q.dispatchEvent(V),document.body.removeChild(q)}function C(H){return new Promise(j=>{const q=new FileReader;q.onloadend=V=>j(V.target.result),q.readAsDataURL(H)})}var A=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function x(H,j={}){return A(this,void 0,void 0,(function*(){const q=Object.assign({},j),V=document.createElement("canvas"),$=V.getContext("2d");let W,ee;for(const ae in q)Object.prototype.hasOwnProperty.call(q,ae)&&(q[ae]=Number(q[ae]));if(q.scale){const ae=q.scale>0&&q.scale<10?q.scale:1;ee=H.width*ae,W=H.height*ae}else ee=q.width||q.height*H.width/H.height||H.width,W=q.height||q.width*H.height/H.width||H.height;switch([5,6,7,8].some(ae=>ae===q.orientation)?(V.height=ee,V.width=W):(V.height=W,V.width=ee),q.orientation){case 3:$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 6:$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 8:$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;case 2:$.translate(V.width,0),$.scale(-1,1),$.drawImage(H,0,0,V.width,V.height);break;case 4:$.translate(V.width,0),$.scale(-1,1),$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 5:$.translate(V.width,0),$.scale(-1,1),$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 7:$.translate(V.width,0),$.scale(-1,1),$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;default:$.drawImage(H,0,0,V.width,V.height)}return V}))}function T(H){return fetch(H).then(j=>j.blob())}function z(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("urltoImage(): Image failed to load, please check the image URL")),V.src=H})}var L=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function G(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compress(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({quality:j})),j.quality=Number(j.quality),Number.isNaN(j.quality))return H;const q=yield C(H);let V=q.split(",")[0].match(/:(.*?);/)[1],$=c.JPEG;f(j.type)&&($=j.type,V=j.type);const W=yield b(q),ee=yield x(W,Object.assign({},j)),ae=yield h(ee,j.quality,$),X=yield g(ae,V);return X.size>H.size?H:X}))}function Q(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({size:j})),j.size=Number(j.size),Number.isNaN(j.size)||1024*j.size>H.size)return H;j.accuracy=Number(j.accuracy),(!j.accuracy||j.accuracy<.8||j.accuracy>.99)&&(j.accuracy=.95);const q=j.size*(2-j.accuracy)*1024,V=1024*j.size,$=j.size*j.accuracy*1024,W=yield C(H);let ee=W.split(",")[0].match(/:(.*?);/)[1],ae=c.JPEG;f(j.type)&&(ae=j.type,ee=j.type);const X=yield b(W),Y=yield x(X,Object.assign({},j));let I,N=.5;const K=[null,null];for(let ne=1;ne<=7;ne++){I=yield h(Y,N,ae);const ye=.75*I.length;if(ne===7){(q<ye||$>ye)&&(I=[I,...K].filter(Ae=>Ae).sort((Ae,Ve)=>Math.abs(.75*Ae.length-V)-Math.abs(.75*Ve.length-V))[0]);break}if(q<ye)K[1]=I,N-=Math.pow(.5,ne+1);else{if(!($>ye))break;K[0]=I,N+=Math.pow(.5,ne+1)}}const ie=yield g(I,ee);return ie.size>H.size?H:ie}))}}])}))})(Ul)),Ul.exports}var fm,xv;function Y2(){return xv||(xv=1,fm=K2()),fm}var zv=Y2();const W2=y.memo(({id:o,type:n,accept:u,loadFunction:l,multiple:d})=>(y.useEffect(()=>{const c=document.getElementById(o);if(!c)return;const f=p=>{const h=Array.from(p.target.files);if(p.target.value="",h.length!==0)if(n==="settings"){const k=new FileReader,_=h[0];k.readAsText(_,"UTF-8"),k.onload=g=>l(g.target.result)}else if(typeof l=="function"&&l.length===1)l(h);else{const k={};Object.keys(localStorage).forEach(g=>{k[g]=localStorage.getItem(g)});const _=new TextEncoder().encode(JSON.stringify(k)).length;h.forEach((g,b)=>{if(Im(g.type)===!0)return _+g.size>485e4?je(me.getMessage("toasts.no_storage")):l(g,b);zv.compressAccurately(g,{size:450,accuracy:.9}).then(async S=>{if(_+S.size>485e4)return je(me.getMessage("toasts.no_storage"));l({target:{result:await zv.filetoDataURL(S)}},b)})})}};return c.onchange=f,()=>{c&&(c.onchange=null)}},[o,n,l,d]),w.jsx("input",{id:o,type:"file",style:{display:"none"},accept:u,multiple:d!==void 0?d:n!=="settings"})));W2.displayName="FileUpload";const Q2=y.memo(o=>{const{changeLanguage:n}=Ob(),[u,l]=y.useState(localStorage.getItem(o.name)),d=y.useCallback(async c=>{if(c!=="loading"){if(o.name==="language"){n(c),l(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.onChange&&o.onChange(c),_e.emit("refresh",o.category);return}if(localStorage.setItem(o.name,c),l(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[u,o,n]);return w.jsxs("div",{className:"radio-group",children:[o.title&&w.jsx("legend",{className:o.smallTitle?"radio-title-small":"radio-title",children:o.title}),w.jsx("div",{className:"radio-options",role:"radiogroup","aria-label":o.name,children:o.options.map(c=>w.jsxs("label",{className:`radio-option ${u===c.value?"selected":""} ${c.disabled||o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"radio-label",children:c.name}),w.jsx("input",{type:"radio",name:o.name,value:c.value,checked:u===c.value,onChange:()=>d(c.value),disabled:c.disabled||o.disabled||!1,className:"radio-input","aria-label":c.name,tabIndex:0}),w.jsx("div",{className:"radio-circle",children:u===c.value&&w.jsx("div",{className:"radio-dot"})})]},c.value))})]})});Q2.displayName="Radio";const Z2=y.memo(({value:o,onChange:n,placeholder:u,fullWidth:l})=>w.jsxs("div",{className:`search-input-container${l?" full-width":""}`,children:[w.jsx(Lm,{className:"search-input-icon"}),w.jsx("input",{type:"text",className:"search-input-field",value:o,onChange:n,placeholder:u})]}));Z2.displayName="SearchInput";const X2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${n?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=o.text||o.title||o.name;return w.jsxs("div",{className:"switch-wrapper",children:[!o.header&&w.jsx("span",{className:"switch-label",children:o.text}),w.jsx("div",{className:`switch-track ${n?"checked":""}`,onClick:l,"aria-hidden":"true",children:w.jsx("div",{className:"switch-thumb"})}),w.jsx("input",{type:"checkbox",role:"switch",name:o.name,checked:n,onChange:l,className:"switch-input","aria-label":d})]})});X2.displayName="Switch";const J2=y.memo(o=>{const{name:n,upperCaseFirst:u,element:l,category:d,onChange:c,title:f,textarea:p,customcss:h,placeholder:k}=o,_=o.default,[g,b]=y.useState(localStorage.getItem(n)||""),S=y.useCallback(A=>{let x=A.target.value;if(u===!0&&(x=x.charAt(0).toUpperCase()+x.slice(1)),localStorage.setItem(n,x),b(x),c&&c(x),l&&!document.querySelector(l)){En();return}_e.emit("refresh",d)},[n,u,l,d,c]),C=y.useCallback(()=>{S({target:{value:_||""}}),je(me.getMessage("toasts.reset"))},[S,_]);return w.jsx("div",{className:"text-field-container",children:p===!0?w.jsxs("div",{className:`text-field ${h?"customcss":""}`,children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("textarea",{value:g,onChange:S,spellCheck:!1,rows:4,className:"text-field-textarea"})]}):w.jsxs("div",{className:"text-field",children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("input",{type:"text",value:g,onChange:S,placeholder:k||"",className:"text-field-input"})]})})});J2.displayName="Text";const Ym=y.memo(({value:o,onChange:n,placeholder:u,minRows:l=1,maxRows:d,className:c,style:f,readOnly:p})=>{const h=y.useRef(null),k=y.useCallback(()=>{const _=h.current;if(!_)return;_.style.height="auto";const g=window.getComputedStyle(_),b=parseInt(g.lineHeight)||24,S=parseInt(g.paddingTop)||0,C=parseInt(g.paddingBottom)||0,A=l*b+S+C,x=d?d*b+S+C:1/0,T=Math.min(Math.max(_.scrollHeight,A),x);_.style.height=`${T}px`},[l,d]);return y.useEffect(()=>{k()},[o,k]),y.useEffect(()=>(k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]),w.jsx("textarea",{ref:h,className:`textarea-autosize${c?` ${c}`:""}`,value:o,onChange:n,placeholder:u,style:f,readOnly:p,rows:l})});Ym.displayName="Textarea";const $2=({notesRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const c=Zo(),[f,p]=y.useState(localStorage.getItem("notes")||""),[h,k]=y.useState(localStorage.getItem("notesPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const z=L=>{L==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",z),()=>{_e.off("refresh",z)}},[]);const b=z=>{localStorage.setItem("notes",z.target.value),p(z.target.value)},S=()=>{k(!0)},C=()=>{k(localStorage.getItem("notesPinned")==="true")},A=()=>{me.stats.postEvent("feature","Notes pin");const z=localStorage.getItem("notesPinned")==="true";localStorage.setItem("notesPinned",!z),k(!z)},x=()=>{me.stats.postEvent("feature","Notes copied"),navigator.clipboard.writeText(f),je(c("toasts.notes"))},T=()=>{!f||f===""||(me.stats.postEvent("feature","Notes download"),l2(f,"mue-notes.txt","text/plain"))};return w.jsxs("div",{className:"notes",onMouseLeave:C,onFocus:S,onBlur:z=>{z.currentTarget.contains(z.relatedTarget)||C()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:S,onFocus:S,ref:o,style:{fontSize:_},"aria-label":c("widgets.navbar.notes.title"),children:w.jsx(U_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44",left:l??""},children:w.jsxs("div",{className:"flexNotes",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(U_,{}),w.jsx("span",{children:c("widgets.navbar.notes.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:A,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.quote.copy"),children:w.jsx("button",{onClick:x,disabled:f==="","aria-label":c("widgets.quote.copy"),children:w.jsx(IC,{})})}),w.jsx(ht,{title:c("widgets.background.download"),children:w.jsx("button",{onClick:T,disabled:f==="","aria-label":c("widgets.background.download"),children:w.jsx(qC,{})})})]}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:f,onChange:b,minRows:5})]})})]})};function ez(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx($2,{notesRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const tz=y.memo(ez);function az(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>l=>{n.forEach(d=>d(l))},n)}const hu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dn(o){const n=Object.prototype.toString.call(o);return n==="[object Window]"||n==="[object global]"}function Wm(o){return"nodeType"in o}function Qt(o){var n,u;return o?Dn(o)?o:Wm(o)&&(n=(u=o.ownerDocument)==null?void 0:u.defaultView)!=null?n:window:window}function Qm(o){const{Document:n}=Qt(o);return o instanceof n}function er(o){return Dn(o)?!1:o instanceof Qt(o).HTMLElement}function My(o){return o instanceof Qt(o).SVGElement}function jn(o){return o?Dn(o)?o.document:Wm(o)?Qm(o)?o:er(o)||My(o)?o.ownerDocument:document:document:document}const Za=hu?y.useLayoutEffect:y.useEffect;function Zm(o){const n=y.useRef(o);return Za(()=>{n.current=o}),y.useCallback(function(){for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return n.current==null?void 0:n.current(...l)},[])}function oz(){const o=y.useRef(null),n=y.useCallback((l,d)=>{o.current=setInterval(l,d)},[]),u=y.useCallback(()=>{o.current!==null&&(clearInterval(o.current),o.current=null)},[]);return[n,u]}function Ks(o,n){n===void 0&&(n=[o]);const u=y.useRef(o);return Za(()=>{u.current!==o&&(u.current=o)},n),u}function tr(o,n){const u=y.useRef();return y.useMemo(()=>{const l=o(u.current);return u.current=l,l},[...n])}function Jl(o){const n=Zm(o),u=y.useRef(null),l=y.useCallback(d=>{d!==u.current&&n?.(d,u.current),u.current=d},[]);return[u,l]}function Tm(o){const n=y.useRef();return y.useEffect(()=>{n.current=o},[o]),n.current}let gm={};function ar(o,n){return y.useMemo(()=>{if(n)return n;const u=gm[o]==null?0:gm[o]+1;return gm[o]=u,o+"-"+u},[o,n])}function Cy(o){return function(n){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return l.reduce((c,f)=>{const p=Object.entries(f);for(const[h,k]of p){const _=c[h];_!=null&&(c[h]=_+o*k)}return c},{...n})}}const zn=Cy(1),Ys=Cy(-1);function iz(o){return"clientX"in o&&"clientY"in o}function Xm(o){if(!o)return!1;const{KeyboardEvent:n}=Qt(o.target);return n&&o instanceof n}function nz(o){if(!o)return!1;const{TouchEvent:n}=Qt(o.target);return n&&o instanceof n}function Nm(o){if(nz(o)){if(o.touches&&o.touches.length){const{clientX:n,clientY:u}=o.touches[0];return{x:n,y:u}}else if(o.changedTouches&&o.changedTouches.length){const{clientX:n,clientY:u}=o.changedTouches[0];return{x:n,y:u}}}return iz(o)?{x:o.clientX,y:o.clientY}:null}const Ws=Object.freeze({Translate:{toString(o){if(!o)return;const{x:n,y:u}=o;return"translate3d("+(n?Math.round(n):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(o){if(!o)return;const{scaleX:n,scaleY:u}=o;return"scaleX("+n+") scaleY("+u+")"}},Transform:{toString(o){if(o)return[Ws.Translate.toString(o),Ws.Scale.toString(o)].join(" ")}},Transition:{toString(o){let{property:n,duration:u,easing:l}=o;return n+" "+u+"ms "+l}}}),Tv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function sz(o){return o.matches(Tv)?o:o.querySelector(Tv)}const rz={display:"none"};function lz(o){let{id:n,value:u}=o;return ve.createElement("div",{id:n,style:rz},u)}function uz(o){let{id:n,announcement:u,ariaLiveType:l="assertive"}=o;const d={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ve.createElement("div",{id:n,style:d,role:"status","aria-live":l,"aria-atomic":!0},u)}function dz(){const[o,n]=y.useState("");return{announce:y.useCallback(l=>{l!=null&&n(l)},[]),announcement:o}}const Ay=y.createContext(null);function cz(o){const n=y.useContext(Ay);y.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(o)},[o,n])}function mz(){const[o]=y.useState(()=>new Set),n=y.useCallback(l=>(o.add(l),()=>o.delete(l)),[o]);return[y.useCallback(l=>{let{type:d,event:c}=l;o.forEach(f=>{var p;return(p=f[d])==null?void 0:p.call(f,c)})},[o]),n]}const pz={draggable:`
+https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(n.componentWillMount=ky,n.componentWillReceiveProps=wy),typeof n.getSnapshotBeforeUpdate=="function"){if(typeof n.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");n.componentWillUpdate=Sy;var p=n.componentDidUpdate;n.componentDidUpdate=function(k,_,g){var b=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:g;p.call(this,k,_,b)}}return o}const j2=Object.freeze(Object.defineProperty({__proto__:null,polyfill:D2},Symbol.toStringTag,{value:"Module"})),O2=qS(j2);var Mv;function q2(){if(Mv)return Go;Mv=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.bodyOpenClassName=Go.portalClassName=void 0;var o=Object.assign||function(W){for(var ee=1;ee<arguments.length;ee++){var ae=arguments[ee];for(var X in ae)Object.prototype.hasOwnProperty.call(ae,X)&&(W[X]=ae[X])}return W},n=(function(){function W(ee,ae){for(var X=0;X<ae.length;X++){var Y=ae[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(ee,Y.key,Y)}}return function(ee,ae,X){return ae&&W(ee.prototype,ae),X&&W(ee,X),ee}})(),u=Zs(),l=x(u),d=qm(),c=x(d),f=_y(),p=x(f),h=E2(),k=x(h),_=by(),g=A(_),b=Km(),S=x(b),C=O2;function A(W){if(W&&W.__esModule)return W;var ee={};if(W!=null)for(var ae in W)Object.prototype.hasOwnProperty.call(W,ae)&&(ee[ae]=W[ae]);return ee.default=W,ee}function x(W){return W&&W.__esModule?W:{default:W}}function T(W,ee){if(!(W instanceof ee))throw new TypeError("Cannot call a class as a function")}function z(W,ee){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:W}function L(W,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);W.prototype=Object.create(ee&&ee.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(W,ee):W.__proto__=ee)}var G=Go.portalClassName="ReactModalPortal",Q=Go.bodyOpenClassName="ReactModal__Body--open",H=b.canUseDOM&&c.default.createPortal!==void 0,j=function(ee){return document.createElement(ee)},q=function(){return H?c.default.createPortal:c.default.unstable_renderSubtreeIntoContainer};function V(W){return W()}var $=(function(W){L(ee,W);function ee(){var ae,X,Y,I;T(this,ee);for(var N=arguments.length,K=Array(N),ie=0;ie<N;ie++)K[ie]=arguments[ie];return I=(X=(Y=z(this,(ae=ee.__proto__||Object.getPrototypeOf(ee)).call.apply(ae,[this].concat(K))),Y),Y.removePortal=function(){!H&&c.default.unmountComponentAtNode(Y.node);var ne=V(Y.props.parentSelector);ne&&ne.contains(Y.node)?ne.removeChild(Y.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},Y.portalRef=function(ne){Y.portal=ne},Y.renderPortal=function(ne){var ye=q(),Ae=ye(Y,l.default.createElement(k.default,o({defaultStyles:ee.defaultStyles},ne)),Y.node);Y.portalRef(Ae)},X),z(Y,I)}return n(ee,[{key:"componentDidMount",value:function(){if(b.canUseDOM){H||(this.node=j("div")),this.node.className=this.props.portalClassName;var X=V(this.props.parentSelector);X.appendChild(this.node),!H&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(X){var Y=V(X.parentSelector),I=V(this.props.parentSelector);return{prevParent:Y,nextParent:I}}},{key:"componentDidUpdate",value:function(X,Y,I){if(b.canUseDOM){var N=this.props,K=N.isOpen,ie=N.portalClassName;X.portalClassName!==ie&&(this.node.className=ie);var ne=I.prevParent,ye=I.nextParent;ye!==ne&&(ne.removeChild(this.node),ye.appendChild(this.node)),!(!X.isOpen&&!K)&&!H&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!b.canUseDOM||!this.node||!this.portal)){var X=this.portal.state,Y=Date.now(),I=X.isOpen&&this.props.closeTimeoutMS&&(X.closesAt||Y+this.props.closeTimeoutMS);I?(X.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,I-Y)):this.removePortal()}}},{key:"render",value:function(){if(!b.canUseDOM||!H)return null;!this.node&&H&&(this.node=j("div"));var X=q();return X(l.default.createElement(k.default,o({ref:this.portalRef,defaultStyles:ee.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(X){g.setElement(X)}}]),ee})(u.Component);return $.propTypes={isOpen:p.default.bool.isRequired,style:p.default.shape({content:p.default.object,overlay:p.default.object}),portalClassName:p.default.string,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,className:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),overlayClassName:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),appElement:p.default.oneOfType([p.default.instanceOf(S.default),p.default.instanceOf(b.SafeHTMLCollection),p.default.instanceOf(b.SafeNodeList),p.default.arrayOf(p.default.instanceOf(S.default))]),onAfterOpen:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,ariaHideApp:p.default.bool,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,parentSelector:p.default.func,aria:p.default.object,data:p.default.object,role:p.default.string,contentLabel:p.default.string,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func},$.defaultProps={isOpen:!1,portalClassName:G,bodyOpenClassName:Q,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(ee,ae){return l.default.createElement("div",ee,ae)},contentElement:function(ee,ae){return l.default.createElement("div",ee,ae)}},$.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,C.polyfill)($),Go.default=$,Go}var Cv;function R2(){return Cv||(Cv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=q2(),l=d(u);function d(c){return c&&c.__esModule?c:{default:c}}n.default=l.default,o.exports=n.default})(El,El.exports)),El.exports}var B2=R2();const L2=Om(B2),I2=()=>typeof document<"u"&&document.getElementById("center")||void 0,U2=({appsRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const[c,f]=y.useState(JSON.parse(localStorage.getItem("applinks"))),[p,h]=y.useState(localStorage.getItem("appsPinned")==="true"?"visible":"hidden"),[k,_]=y.useState(localStorage.getItem("refresh")==="false"?"-200px":"-130px"),[g,b]=y.useState(localStorage.getItem("appsPinned")==="true"),[S,C]=y.useState("1.2rem"),A=()=>{C(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};y.useEffect(()=>{const L=G=>{if(G==="navbar"){f(JSON.parse(localStorage.getItem("applinks")));try{A()}catch{}}};return A(),_e.on("refresh",L),()=>{_e.off("refresh",L)}},[]);const x=()=>{b(!0)},T=()=>{b(localStorage.getItem("appsPinned")==="true")},z=c;return w.jsxs("div",{className:"notes",onMouseLeave:T,onFocus:x,onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||T()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:x,onFocus:x,"aria-label":me.getMessage("widgets.navbar.apps.title"),ref:o,style:{fontSize:S},children:w.jsx(P_,{className:"topicons"})}),g&&w.jsxs("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:[w.jsx("div",{className:"flexTodo",children:w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(P_,{}),w.jsx("span",{children:me.getMessage("widgets.navbar.apps.title")})]})}),z.length>0?w.jsx("div",{className:"appsShortcutContainer",children:z.map((L,G)=>w.jsx(ht,{title:L.name.split(" ")[0],subtitle:L.name.split(" ").slice(1).join(" "),children:w.jsxs("a",{href:L.url,className:"appsIcon",children:[w.jsx("img",{src:L.icon===""?gy(L.url,L.name):L.icon,width:"40px",height:"40px",alt:"Google"}),w.jsx("span",{children:L.name})]})},G))}):w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:me.language.getMessage(me.languagecode,"widgets.navbar.apps.no_apps")})]})})]})]})};function P2(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(U2,{appsRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const H2=y.memo(P2),F2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${c?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=y.useCallback(c=>{(c.key===" "||c.key==="Enter")&&!o.disabled&&(c.preventDefault(),l())},[l,o.disabled]);return w.jsxs("div",{className:`checkbox-wrapper ${o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"checkbox-label",children:o.text}),w.jsx("input",{type:"checkbox",name:o.name,checked:n,onChange:l,disabled:o.disabled||!1,className:"checkbox-input","aria-label":o.text,onKeyDown:d}),w.jsx("div",{className:`checkbox-box ${n?"checked":""}`,children:n&&w.jsx(Bm,{})})]})});F2.displayName="Checkbox";function V2({label:o,options:n,onChange:u}){let l=(localStorage.getItem("apiCategories")||"").split(",");l[0]===""&&(l=[]);const[d,c]=y.useState(l),[f,p]=y.useState(!1),h=y.useRef(null);y.useEffect(()=>{const g=b=>{h.current&&!h.current.contains(b.target)&&p(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const k=g=>{let b;d.includes(g)?b=d.filter(S=>S!==g):b=[...d,g],c(b),localStorage.setItem("apiCategories",b.join(",")),u&&u(b)},_=(g,b)=>{g.stopPropagation(),k(b)};return w.jsxs("div",{className:"chipSelect",ref:h,children:[o&&w.jsx("label",{className:"chipSelect-label",children:o}),w.jsxs("div",{className:"chipSelect-control",onClick:()=>p(!f),onKeyDown:Qo(()=>p(!f)),role:"combobox","aria-haspopup":"listbox","aria-expanded":f,"aria-label":o||void 0,tabIndex:0,children:[w.jsx("div",{className:"chipSelect-value",children:d.length===0?w.jsx("span",{className:"chipSelect-placeholder",children:"Select options..."}):w.jsx("div",{className:"chipSelect-chips",children:d.map(g=>w.jsxs("span",{className:"chipSelect-chip",children:[g.charAt(0).toUpperCase()+g.slice(1),w.jsx("button",{type:"button",className:"chipSelect-chip-remove","aria-label":`Remove ${g}`,onClick:b=>_(b,g),children:w.jsx(Ps,{})})]},g))})}),w.jsx(Bb,{className:`chipSelect-arrow ${f?"open":""}`})]}),f&&w.jsx("div",{className:"chipSelect-dropdown",role:"listbox","aria-multiselectable":"true",children:n.map(g=>w.jsxs("div",{className:`chipSelect-option ${d.includes(g.name)?"selected":""}`,onClick:()=>k(g.name),onKeyDown:Qo(()=>k(g.name)),role:"option","aria-selected":d.includes(g.name),tabIndex:0,children:[w.jsx("span",{className:"chipSelect-option-checkbox",children:d.includes(g.name)&&"✓"}),w.jsxs("span",{className:"chipSelect-option-label",children:[g.name.charAt(0).toUpperCase()+g.name.slice(1),g.count&&` (${g.count})`]})]},g.name))})]})}y.memo(V2);const G2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.items[0]?.value),[l,d]=y.useState(!1),[c,f]=y.useState(-1),p=y.useRef(null),h=y.useRef([]);y.useEffect(()=>{const x=T=>{p.current&&!p.current.contains(T.target)&&(d(!1),f(-1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const k=y.useCallback(x=>{if(x!==me.getMessage("modals.main.loading")){if(me.stats.postEvent("setting",`${o.name} from ${n} to ${x}`),u(x),d(!1),f(-1),o.noSetting||(localStorage.setItem(o.name,x),o.name2!==void 0&&o.name2!==null&&localStorage.setItem(o.name2,o.value2)),o.onChange&&o.onChange(x),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[n,o]),_=y.useCallback(x=>{if(!o.disabled)switch(x.key){case"Enter":case" ":{x.preventDefault();const T=l&&c>=0?o.items.filter(z=>z!==null)[c]:null;T?k(T.value):d(!l);break}case"Escape":d(!1),f(-1);break;case"ArrowDown":x.preventDefault(),l?f(T=>T<o.items.filter(z=>z!==null).length-1?T+1:T):d(!0);break;case"ArrowUp":x.preventDefault(),l&&f(T=>T>0?T-1:T);break}},[l,c,k,o.items,o.disabled]),g=y.useCallback((x,T)=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),k(T.value))},[k]),b=y.useCallback(()=>{const x=o.default||o.items[0]?.value;k(x),je(me.getMessage("toasts.reset"))},[k,o.default,o.items]),S="dropdown"+o.name,C=o.label||"",A=o.items.find(x=>x?.value===n);return w.jsxs("div",{className:`dropdown ${S} ${o.disabled?"disabled":""}`,ref:p,children:[C&&w.jsxs("div",{className:"dropdown-header",children:[w.jsx("label",{className:"dropdown-label",children:C}),w.jsxs("span",{className:"dropdown-reset",onClick:b,onKeyDown:Qo(b),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"dropdown-control",onClick:()=>!o.disabled&&d(!l),onKeyDown:_,role:"button","aria-haspopup":"listbox","aria-expanded":l,"aria-label":C||o.name,tabIndex:o.disabled?-1:0,children:[w.jsx("span",{className:"dropdown-value",children:A?.text||n}),w.jsx(Bb,{className:`dropdown-arrow ${l?"open":""}`})]}),l&&w.jsx("div",{className:"dropdown-menu",role:"listbox",children:o.items.map((x,T)=>x!==null?w.jsxs("div",{ref:z=>h.current[T]=z,className:`dropdown-option ${n===x.value?"selected":""} ${T===c?"focused":""}`,onClick:()=>k(x.value),onKeyDown:z=>g(z,x),role:"option","aria-selected":n===x.value,tabIndex:0,children:[w.jsx("span",{className:"dropdown-option-text",children:x.text}),n===x.value&&w.jsx(Bm,{className:"dropdown-option-check"})]},S+x.value):null)})]})});G2.displayName="Dropdown";var Ul={exports:{}},K2=Ul.exports,Av;function Y2(){return Av||(Av=1,(function(o,n){(function(u,l){o.exports=l()})(K2,(function(){return(function(u){var l={};function d(c){if(l[c])return l[c].exports;var f=l[c]={i:c,l:!1,exports:{}};return u[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}return d.m=u,d.c=l,d.d=function(c,f,p){d.o(c,f)||Object.defineProperty(c,f,{enumerable:!0,get:p})},d.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},d.t=function(c,f){if(1&f&&(c=d(c)),8&f||4&f&&typeof c=="object"&&c&&c.__esModule)return c;var p=Object.create(null);if(d.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:c}),2&f&&typeof c!="string")for(var h in c)d.d(p,h,function(k){return c[k]}.bind(null,h));return p},d.n=function(c){var f=c&&c.__esModule?function(){return c.default}:function(){return c};return d.d(f,"a",f),f},d.o=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)},d.p="",d(d.s=0)})([function(u,l,d){var c;function f(H){return["image/png","image/jpeg","image/gif"].some(j=>j===H)}d.r(l),d.d(l,"canvastoDataURL",(function(){return h})),d.d(l,"canvastoFile",(function(){return k})),d.d(l,"dataURLtoFile",(function(){return g})),d.d(l,"dataURLtoImage",(function(){return b})),d.d(l,"downloadFile",(function(){return S})),d.d(l,"filetoDataURL",(function(){return C})),d.d(l,"imagetoCanvas",(function(){return x})),d.d(l,"urltoBlob",(function(){return T})),d.d(l,"urltoImage",(function(){return z})),d.d(l,"compress",(function(){return G})),d.d(l,"compressAccurately",(function(){return Q})),d.d(l,"EImageType",(function(){return c})),(function(H){H.PNG="image/png",H.JPEG="image/jpeg",H.GIF="image/gif"})(c||(c={}));var p=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function h(H,j=.92,q=c.JPEG){return p(this,void 0,void 0,(function*(){return f(q)||(q=c.JPEG),H.toDataURL(q,j)}))}function k(H,j=.92,q=c.JPEG){return new Promise(V=>H.toBlob($=>V($),q,j))}var _=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function g(H,j){return _(this,void 0,void 0,(function*(){const q=H.split(",");let V=q[0].match(/:(.*?);/)[1];const $=atob(q[1]);let W=$.length;const ee=new Uint8Array(W);for(;W--;)ee[W]=$.charCodeAt(W);return f(j)&&(V=j),new Blob([ee],{type:V})}))}function b(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("dataURLtoImage(): dataURL is illegal")),V.src=H})}function S(H,j){const q=document.createElement("a");q.href=window.URL.createObjectURL(H),q.download=j||Date.now().toString(36),document.body.appendChild(q);const V=document.createEvent("MouseEvents");V.initEvent("click",!1,!1),q.dispatchEvent(V),document.body.removeChild(q)}function C(H){return new Promise(j=>{const q=new FileReader;q.onloadend=V=>j(V.target.result),q.readAsDataURL(H)})}var A=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function x(H,j={}){return A(this,void 0,void 0,(function*(){const q=Object.assign({},j),V=document.createElement("canvas"),$=V.getContext("2d");let W,ee;for(const ae in q)Object.prototype.hasOwnProperty.call(q,ae)&&(q[ae]=Number(q[ae]));if(q.scale){const ae=q.scale>0&&q.scale<10?q.scale:1;ee=H.width*ae,W=H.height*ae}else ee=q.width||q.height*H.width/H.height||H.width,W=q.height||q.width*H.height/H.width||H.height;switch([5,6,7,8].some(ae=>ae===q.orientation)?(V.height=ee,V.width=W):(V.height=W,V.width=ee),q.orientation){case 3:$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 6:$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 8:$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;case 2:$.translate(V.width,0),$.scale(-1,1),$.drawImage(H,0,0,V.width,V.height);break;case 4:$.translate(V.width,0),$.scale(-1,1),$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 5:$.translate(V.width,0),$.scale(-1,1),$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 7:$.translate(V.width,0),$.scale(-1,1),$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;default:$.drawImage(H,0,0,V.width,V.height)}return V}))}function T(H){return fetch(H).then(j=>j.blob())}function z(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("urltoImage(): Image failed to load, please check the image URL")),V.src=H})}var L=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function G(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compress(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({quality:j})),j.quality=Number(j.quality),Number.isNaN(j.quality))return H;const q=yield C(H);let V=q.split(",")[0].match(/:(.*?);/)[1],$=c.JPEG;f(j.type)&&($=j.type,V=j.type);const W=yield b(q),ee=yield x(W,Object.assign({},j)),ae=yield h(ee,j.quality,$),X=yield g(ae,V);return X.size>H.size?H:X}))}function Q(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({size:j})),j.size=Number(j.size),Number.isNaN(j.size)||1024*j.size>H.size)return H;j.accuracy=Number(j.accuracy),(!j.accuracy||j.accuracy<.8||j.accuracy>.99)&&(j.accuracy=.95);const q=j.size*(2-j.accuracy)*1024,V=1024*j.size,$=j.size*j.accuracy*1024,W=yield C(H);let ee=W.split(",")[0].match(/:(.*?);/)[1],ae=c.JPEG;f(j.type)&&(ae=j.type,ee=j.type);const X=yield b(W),Y=yield x(X,Object.assign({},j));let I,N=.5;const K=[null,null];for(let ne=1;ne<=7;ne++){I=yield h(Y,N,ae);const ye=.75*I.length;if(ne===7){(q<ye||$>ye)&&(I=[I,...K].filter(Ae=>Ae).sort((Ae,Ve)=>Math.abs(.75*Ae.length-V)-Math.abs(.75*Ve.length-V))[0]);break}if(q<ye)K[1]=I,N-=Math.pow(.5,ne+1);else{if(!($>ye))break;K[0]=I,N+=Math.pow(.5,ne+1)}}const ie=yield g(I,ee);return ie.size>H.size?H:ie}))}}])}))})(Ul)),Ul.exports}var fm,xv;function W2(){return xv||(xv=1,fm=Y2()),fm}var zv=W2();const Q2=y.memo(({id:o,type:n,accept:u,loadFunction:l,multiple:d})=>(y.useEffect(()=>{const c=document.getElementById(o);if(!c)return;const f=p=>{const h=Array.from(p.target.files);if(p.target.value="",h.length!==0)if(n==="settings"){const k=new FileReader,_=h[0];k.readAsText(_,"UTF-8"),k.onload=g=>l(g.target.result)}else if(typeof l=="function"&&l.length===1)l(h);else{const k={};Object.keys(localStorage).forEach(g=>{k[g]=localStorage.getItem(g)});const _=new TextEncoder().encode(JSON.stringify(k)).length;h.forEach((g,b)=>{if(Im(g.type)===!0)return _+g.size>485e4?je(me.getMessage("toasts.no_storage")):l(g,b);zv.compressAccurately(g,{size:450,accuracy:.9}).then(async S=>{if(_+S.size>485e4)return je(me.getMessage("toasts.no_storage"));l({target:{result:await zv.filetoDataURL(S)}},b)})})}};return c.onchange=f,()=>{c&&(c.onchange=null)}},[o,n,l,d]),w.jsx("input",{id:o,type:"file",style:{display:"none"},accept:u,multiple:d!==void 0?d:n!=="settings"})));Q2.displayName="FileUpload";const Z2=y.memo(o=>{const{changeLanguage:n}=Ob(),[u,l]=y.useState(localStorage.getItem(o.name)),d=y.useCallback(async c=>{if(c!=="loading"){if(o.name==="language"){n(c),l(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.onChange&&o.onChange(c),_e.emit("refresh",o.category);return}if(localStorage.setItem(o.name,c),l(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[u,o,n]);return w.jsxs("div",{className:"radio-group",children:[o.title&&w.jsx("legend",{className:o.smallTitle?"radio-title-small":"radio-title",children:o.title}),w.jsx("div",{className:"radio-options",role:"radiogroup","aria-label":o.name,children:o.options.map(c=>w.jsxs("label",{className:`radio-option ${u===c.value?"selected":""} ${c.disabled||o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"radio-label",children:c.name}),w.jsx("input",{type:"radio",name:o.name,value:c.value,checked:u===c.value,onChange:()=>d(c.value),disabled:c.disabled||o.disabled||!1,className:"radio-input","aria-label":c.name,tabIndex:0}),w.jsx("div",{className:"radio-circle",children:u===c.value&&w.jsx("div",{className:"radio-dot"})})]},c.value))})]})});Z2.displayName="Radio";const X2=y.memo(({value:o,onChange:n,placeholder:u,fullWidth:l})=>w.jsxs("div",{className:`search-input-container${l?" full-width":""}`,children:[w.jsx(Lm,{className:"search-input-icon"}),w.jsx("input",{type:"text",className:"search-input-field",value:o,onChange:n,placeholder:u})]}));X2.displayName="SearchInput";const J2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${n?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=o.text||o.title||o.name;return w.jsxs("div",{className:"switch-wrapper",children:[!o.header&&w.jsx("span",{className:"switch-label",children:o.text}),w.jsx("div",{className:`switch-track ${n?"checked":""}`,onClick:l,"aria-hidden":"true",children:w.jsx("div",{className:"switch-thumb"})}),w.jsx("input",{type:"checkbox",role:"switch",name:o.name,checked:n,onChange:l,className:"switch-input","aria-label":d})]})});J2.displayName="Switch";const $2=y.memo(o=>{const{name:n,upperCaseFirst:u,element:l,category:d,onChange:c,title:f,textarea:p,customcss:h,placeholder:k}=o,_=o.default,[g,b]=y.useState(localStorage.getItem(n)||""),S=y.useCallback(A=>{let x=A.target.value;if(u===!0&&(x=x.charAt(0).toUpperCase()+x.slice(1)),localStorage.setItem(n,x),b(x),c&&c(x),l&&!document.querySelector(l)){En();return}_e.emit("refresh",d)},[n,u,l,d,c]),C=y.useCallback(()=>{S({target:{value:_||""}}),je(me.getMessage("toasts.reset"))},[S,_]);return w.jsx("div",{className:"text-field-container",children:p===!0?w.jsxs("div",{className:`text-field ${h?"customcss":""}`,children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("textarea",{value:g,onChange:S,spellCheck:!1,rows:4,className:"text-field-textarea"})]}):w.jsxs("div",{className:"text-field",children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("input",{type:"text",value:g,onChange:S,placeholder:k||"",className:"text-field-input"})]})})});$2.displayName="Text";const Ym=y.memo(({value:o,onChange:n,placeholder:u,minRows:l=1,maxRows:d,className:c,style:f,readOnly:p})=>{const h=y.useRef(null),k=y.useCallback(()=>{const _=h.current;if(!_)return;_.style.height="auto";const g=window.getComputedStyle(_),b=parseInt(g.lineHeight)||24,S=parseInt(g.paddingTop)||0,C=parseInt(g.paddingBottom)||0,A=l*b+S+C,x=d?d*b+S+C:1/0,T=Math.min(Math.max(_.scrollHeight,A),x);_.style.height=`${T}px`},[l,d]);return y.useEffect(()=>{k()},[o,k]),y.useEffect(()=>(k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]),w.jsx("textarea",{ref:h,className:`textarea-autosize${c?` ${c}`:""}`,value:o,onChange:n,placeholder:u,style:f,readOnly:p,rows:l})});Ym.displayName="Textarea";const ez=({notesRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const c=Zo(),[f,p]=y.useState(localStorage.getItem("notes")||""),[h,k]=y.useState(localStorage.getItem("notesPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const z=L=>{L==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",z),()=>{_e.off("refresh",z)}},[]);const b=z=>{localStorage.setItem("notes",z.target.value),p(z.target.value)},S=()=>{k(!0)},C=()=>{k(localStorage.getItem("notesPinned")==="true")},A=()=>{me.stats.postEvent("feature","Notes pin");const z=localStorage.getItem("notesPinned")==="true";localStorage.setItem("notesPinned",!z),k(!z)},x=()=>{me.stats.postEvent("feature","Notes copied"),navigator.clipboard.writeText(f),je(c("toasts.notes"))},T=()=>{!f||f===""||(me.stats.postEvent("feature","Notes download"),l2(f,"mue-notes.txt","text/plain"))};return w.jsxs("div",{className:"notes",onMouseLeave:C,onFocus:S,onBlur:z=>{z.currentTarget.contains(z.relatedTarget)||C()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:S,onFocus:S,ref:o,style:{fontSize:_},"aria-label":c("widgets.navbar.notes.title"),children:w.jsx(U_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44",left:l??""},children:w.jsxs("div",{className:"flexNotes",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(U_,{}),w.jsx("span",{children:c("widgets.navbar.notes.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:A,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.quote.copy"),children:w.jsx("button",{onClick:x,disabled:f==="","aria-label":c("widgets.quote.copy"),children:w.jsx(IC,{})})}),w.jsx(ht,{title:c("widgets.background.download"),children:w.jsx("button",{onClick:T,disabled:f==="","aria-label":c("widgets.background.download"),children:w.jsx(qC,{})})})]}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:f,onChange:b,minRows:5})]})})]})};function tz(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(ez,{notesRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const az=y.memo(tz);function oz(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>l=>{n.forEach(d=>d(l))},n)}const hu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dn(o){const n=Object.prototype.toString.call(o);return n==="[object Window]"||n==="[object global]"}function Wm(o){return"nodeType"in o}function Qt(o){var n,u;return o?Dn(o)?o:Wm(o)&&(n=(u=o.ownerDocument)==null?void 0:u.defaultView)!=null?n:window:window}function Qm(o){const{Document:n}=Qt(o);return o instanceof n}function er(o){return Dn(o)?!1:o instanceof Qt(o).HTMLElement}function My(o){return o instanceof Qt(o).SVGElement}function jn(o){return o?Dn(o)?o.document:Wm(o)?Qm(o)?o:er(o)||My(o)?o.ownerDocument:document:document:document}const Za=hu?y.useLayoutEffect:y.useEffect;function Zm(o){const n=y.useRef(o);return Za(()=>{n.current=o}),y.useCallback(function(){for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return n.current==null?void 0:n.current(...l)},[])}function iz(){const o=y.useRef(null),n=y.useCallback((l,d)=>{o.current=setInterval(l,d)},[]),u=y.useCallback(()=>{o.current!==null&&(clearInterval(o.current),o.current=null)},[]);return[n,u]}function Ks(o,n){n===void 0&&(n=[o]);const u=y.useRef(o);return Za(()=>{u.current!==o&&(u.current=o)},n),u}function tr(o,n){const u=y.useRef();return y.useMemo(()=>{const l=o(u.current);return u.current=l,l},[...n])}function Jl(o){const n=Zm(o),u=y.useRef(null),l=y.useCallback(d=>{d!==u.current&&n?.(d,u.current),u.current=d},[]);return[u,l]}function Tm(o){const n=y.useRef();return y.useEffect(()=>{n.current=o},[o]),n.current}let gm={};function ar(o,n){return y.useMemo(()=>{if(n)return n;const u=gm[o]==null?0:gm[o]+1;return gm[o]=u,o+"-"+u},[o,n])}function Cy(o){return function(n){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return l.reduce((c,f)=>{const p=Object.entries(f);for(const[h,k]of p){const _=c[h];_!=null&&(c[h]=_+o*k)}return c},{...n})}}const zn=Cy(1),Ys=Cy(-1);function nz(o){return"clientX"in o&&"clientY"in o}function Xm(o){if(!o)return!1;const{KeyboardEvent:n}=Qt(o.target);return n&&o instanceof n}function sz(o){if(!o)return!1;const{TouchEvent:n}=Qt(o.target);return n&&o instanceof n}function Nm(o){if(sz(o)){if(o.touches&&o.touches.length){const{clientX:n,clientY:u}=o.touches[0];return{x:n,y:u}}else if(o.changedTouches&&o.changedTouches.length){const{clientX:n,clientY:u}=o.changedTouches[0];return{x:n,y:u}}}return nz(o)?{x:o.clientX,y:o.clientY}:null}const Ws=Object.freeze({Translate:{toString(o){if(!o)return;const{x:n,y:u}=o;return"translate3d("+(n?Math.round(n):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(o){if(!o)return;const{scaleX:n,scaleY:u}=o;return"scaleX("+n+") scaleY("+u+")"}},Transform:{toString(o){if(o)return[Ws.Translate.toString(o),Ws.Scale.toString(o)].join(" ")}},Transition:{toString(o){let{property:n,duration:u,easing:l}=o;return n+" "+u+"ms "+l}}}),Tv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function rz(o){return o.matches(Tv)?o:o.querySelector(Tv)}const lz={display:"none"};function uz(o){let{id:n,value:u}=o;return ve.createElement("div",{id:n,style:lz},u)}function dz(o){let{id:n,announcement:u,ariaLiveType:l="assertive"}=o;const d={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ve.createElement("div",{id:n,style:d,role:"status","aria-live":l,"aria-atomic":!0},u)}function cz(){const[o,n]=y.useState("");return{announce:y.useCallback(l=>{l!=null&&n(l)},[]),announcement:o}}const Ay=y.createContext(null);function mz(o){const n=y.useContext(Ay);y.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(o)},[o,n])}function pz(){const[o]=y.useState(()=>new Set),n=y.useCallback(l=>(o.add(l),()=>o.delete(l)),[o]);return[y.useCallback(l=>{let{type:d,event:c}=l;o.forEach(f=>{var p;return(p=f[d])==null?void 0:p.call(f,c)})},[o]),n]}const fz={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
- `},fz={onDragStart(o){let{active:n}=o;return"Picked up draggable item "+n.id+"."},onDragOver(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was moved over droppable area "+u.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was dropped over droppable area "+u.id:"Draggable item "+n.id+" was dropped."},onDragCancel(o){let{active:n}=o;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function gz(o){let{announcements:n=fz,container:u,hiddenTextDescribedById:l,screenReaderInstructions:d=pz}=o;const{announce:c,announcement:f}=dz(),p=ar("DndLiveRegion"),[h,k]=y.useState(!1);if(y.useEffect(()=>{k(!0)},[]),cz(y.useMemo(()=>({onDragStart(g){let{active:b}=g;c(n.onDragStart({active:b}))},onDragMove(g){let{active:b,over:S}=g;n.onDragMove&&c(n.onDragMove({active:b,over:S}))},onDragOver(g){let{active:b,over:S}=g;c(n.onDragOver({active:b,over:S}))},onDragEnd(g){let{active:b,over:S}=g;c(n.onDragEnd({active:b,over:S}))},onDragCancel(g){let{active:b,over:S}=g;c(n.onDragCancel({active:b,over:S}))}}),[c,n])),!h)return null;const _=ve.createElement(ve.Fragment,null,ve.createElement(lz,{id:l,value:d.draggable}),ve.createElement(uz,{id:p,announcement:f}));return u?Cn.createPortal(_,u):_}var ut;(function(o){o.DragStart="dragStart",o.DragMove="dragMove",o.DragEnd="dragEnd",o.DragCancel="dragCancel",o.DragOver="dragOver",o.RegisterDroppable="registerDroppable",o.SetDroppableDisabled="setDroppableDisabled",o.UnregisterDroppable="unregisterDroppable"})(ut||(ut={}));function $l(){}function Nv(o,n){return y.useMemo(()=>({sensor:o,options:n??{}}),[o,n])}function hz(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>[...n].filter(l=>l!=null),[...n])}const Da=Object.freeze({x:0,y:0});function xy(o,n){return Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))}function zy(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return u-l}function _z(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return l-u}function Ev(o){let{left:n,top:u,height:l,width:d}=o;return[{x:n,y:u},{x:n+d,y:u},{x:n,y:u+l},{x:n+d,y:u+l}]}function Ty(o,n){if(!o||o.length===0)return null;const[u]=o;return u[n]}function Dv(o,n,u){return n===void 0&&(n=o.left),u===void 0&&(u=o.top),{x:n+o.width*.5,y:u+o.height*.5}}const vz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Dv(n,n.left,n.top),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=xy(Dv(h),d);c.push({id:p,data:{droppableContainer:f,value:k}})}}return c.sort(zy)},bz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Ev(n),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=Ev(h),_=d.reduce((b,S,C)=>b+xy(k[C],S),0),g=Number((_/4).toFixed(4));c.push({id:p,data:{droppableContainer:f,value:g}})}}return c.sort(zy)};function yz(o,n){const u=Math.max(n.top,o.top),l=Math.max(n.left,o.left),d=Math.min(n.left+n.width,o.left+o.width),c=Math.min(n.top+n.height,o.top+o.height),f=d-l,p=c-u;if(l<d&&u<c){const h=n.width*n.height,k=o.width*o.height,_=f*p,g=_/(h+k-_);return Number(g.toFixed(4))}return 0}const kz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=[];for(const c of l){const{id:f}=c,p=u.get(f);if(p){const h=yz(p,n);h>0&&d.push({id:f,data:{droppableContainer:c,value:h}})}}return d.sort(_z)};function wz(o,n,u){return{...o,scaleX:n&&u?n.width/u.width:1,scaleY:n&&u?n.height/u.height:1}}function Ny(o,n){return o&&n?{x:o.left-n.left,y:o.top-n.top}:Da}function Sz(o){return function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),c=1;c<l;c++)d[c-1]=arguments[c];return d.reduce((f,p)=>({...f,top:f.top+o*p.y,bottom:f.bottom+o*p.y,left:f.left+o*p.x,right:f.right+o*p.x}),{...u})}}const Mz=Sz(1);function Cz(o){if(o.startsWith("matrix3d(")){const n=o.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(o.startsWith("matrix(")){const n=o.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function Az(o,n,u){const l=Cz(n);if(!l)return o;const{scaleX:d,scaleY:c,x:f,y:p}=l,h=o.left-f-(1-d)*parseFloat(u),k=o.top-p-(1-c)*parseFloat(u.slice(u.indexOf(" ")+1)),_=d?o.width/d:o.width,g=c?o.height/c:o.height;return{width:_,height:g,top:k,right:h+_,bottom:k+g,left:h}}const xz={ignoreTransform:!1};function On(o,n){n===void 0&&(n=xz);let u=o.getBoundingClientRect();if(n.ignoreTransform){const{transform:k,transformOrigin:_}=Qt(o).getComputedStyle(o);k&&(u=Az(u,k,_))}const{top:l,left:d,width:c,height:f,bottom:p,right:h}=u;return{top:l,left:d,width:c,height:f,bottom:p,right:h}}function jv(o){return On(o,{ignoreTransform:!0})}function zz(o){const n=o.innerWidth,u=o.innerHeight;return{top:0,left:0,right:n,bottom:u,width:n,height:u}}function Tz(o,n){return n===void 0&&(n=Qt(o).getComputedStyle(o)),n.position==="fixed"}function Nz(o,n){n===void 0&&(n=Qt(o).getComputedStyle(o));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(d=>{const c=n[d];return typeof c=="string"?u.test(c):!1})}function _u(o,n){const u=[];function l(d){if(n!=null&&u.length>=n||!d)return u;if(Qm(d)&&d.scrollingElement!=null&&!u.includes(d.scrollingElement))return u.push(d.scrollingElement),u;if(!er(d)||My(d)||u.includes(d))return u;const c=Qt(o).getComputedStyle(d);return d!==o&&Nz(d,c)&&u.push(d),Tz(d,c)?u:l(d.parentNode)}return o?l(o):u}function Ey(o){const[n]=_u(o,1);return n??null}function hm(o){return!hu||!o?null:Dn(o)?o:Wm(o)?Qm(o)||o===jn(o).scrollingElement?window:er(o)?o:null:null}function Dy(o){return Dn(o)?o.scrollX:o.scrollLeft}function jy(o){return Dn(o)?o.scrollY:o.scrollTop}function Em(o){return{x:Dy(o),y:jy(o)}}var gt;(function(o){o[o.Forward=1]="Forward",o[o.Backward=-1]="Backward"})(gt||(gt={}));function Oy(o){return!hu||!o?!1:o===document.scrollingElement}function qy(o){const n={x:0,y:0},u=Oy(o)?{height:window.innerHeight,width:window.innerWidth}:{height:o.clientHeight,width:o.clientWidth},l={x:o.scrollWidth-u.width,y:o.scrollHeight-u.height},d=o.scrollTop<=n.y,c=o.scrollLeft<=n.x,f=o.scrollTop>=l.y,p=o.scrollLeft>=l.x;return{isTop:d,isLeft:c,isBottom:f,isRight:p,maxScroll:l,minScroll:n}}const Ez={x:.2,y:.2};function Dz(o,n,u,l,d){let{top:c,left:f,right:p,bottom:h}=u;l===void 0&&(l=10),d===void 0&&(d=Ez);const{isTop:k,isBottom:_,isLeft:g,isRight:b}=qy(o),S={x:0,y:0},C={x:0,y:0},A={height:n.height*d.y,width:n.width*d.x};return!k&&c<=n.top+A.height?(S.y=gt.Backward,C.y=l*Math.abs((n.top+A.height-c)/A.height)):!_&&h>=n.bottom-A.height&&(S.y=gt.Forward,C.y=l*Math.abs((n.bottom-A.height-h)/A.height)),!b&&p>=n.right-A.width?(S.x=gt.Forward,C.x=l*Math.abs((n.right-A.width-p)/A.width)):!g&&f<=n.left+A.width&&(S.x=gt.Backward,C.x=l*Math.abs((n.left+A.width-f)/A.width)),{direction:S,speed:C}}function jz(o){if(o===document.scrollingElement){const{innerWidth:c,innerHeight:f}=window;return{top:0,left:0,right:c,bottom:f,width:c,height:f}}const{top:n,left:u,right:l,bottom:d}=o.getBoundingClientRect();return{top:n,left:u,right:l,bottom:d,width:o.clientWidth,height:o.clientHeight}}function Ry(o){return o.reduce((n,u)=>zn(n,Em(u)),Da)}function Oz(o){return o.reduce((n,u)=>n+Dy(u),0)}function qz(o){return o.reduce((n,u)=>n+jy(u),0)}function Rz(o,n){if(n===void 0&&(n=On),!o)return;const{top:u,left:l,bottom:d,right:c}=n(o);Ey(o)&&(d<=0||c<=0||u>=window.innerHeight||l>=window.innerWidth)&&o.scrollIntoView({block:"center",inline:"center"})}const Bz=[["x",["left","right"],Oz],["y",["top","bottom"],qz]];class Jm{constructor(n,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=_u(u),d=Ry(l);this.rect={...n},this.width=n.width,this.height=n.height;for(const[c,f,p]of Bz)for(const h of f)Object.defineProperty(this,h,{get:()=>{const k=p(l),_=d[c]-k;return this.rect[h]+_},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Rs{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...u)})},this.target=n}add(n,u,l){var d;(d=this.target)==null||d.addEventListener(n,u,l),this.listeners.push([n,u,l])}}function Lz(o){const{EventTarget:n}=Qt(o);return o instanceof n?o:jn(o)}function _m(o,n){const u=Math.abs(o.x),l=Math.abs(o.y);return typeof n=="number"?Math.sqrt(u**2+l**2)>n:"x"in n&&"y"in n?u>n.x&&l>n.y:"x"in n?u>n.x:"y"in n?l>n.y:!1}var ka;(function(o){o.Click="click",o.DragStart="dragstart",o.Keydown="keydown",o.ContextMenu="contextmenu",o.Resize="resize",o.SelectionChange="selectionchange",o.VisibilityChange="visibilitychange"})(ka||(ka={}));function Ov(o){o.preventDefault()}function Iz(o){o.stopPropagation()}var Ee;(function(o){o.Space="Space",o.Down="ArrowDown",o.Right="ArrowRight",o.Left="ArrowLeft",o.Up="ArrowUp",o.Esc="Escape",o.Enter="Enter",o.Tab="Tab"})(Ee||(Ee={}));const By={start:[Ee.Space,Ee.Enter],cancel:[Ee.Esc],end:[Ee.Space,Ee.Enter,Ee.Tab]},Uz=(o,n)=>{let{currentCoordinates:u}=n;switch(o.code){case Ee.Right:return{...u,x:u.x+25};case Ee.Left:return{...u,x:u.x-25};case Ee.Down:return{...u,y:u.y+25};case Ee.Up:return{...u,y:u.y-25}}};class $m{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:u}}=n;this.props=n,this.listeners=new Rs(jn(u)),this.windowListeners=new Rs(Qt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ka.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:u}=this.props,l=n.node.current;l&&Rz(l),u(Da)}handleKeyDown(n){if(Xm(n)){const{active:u,context:l,options:d}=this.props,{keyboardCodes:c=By,coordinateGetter:f=Uz,scrollBehavior:p="smooth"}=d,{code:h}=n;if(c.end.includes(h)){this.handleEnd(n);return}if(c.cancel.includes(h)){this.handleCancel(n);return}const{collisionRect:k}=l.current,_=k?{x:k.left,y:k.top}:Da;this.referenceCoordinates||(this.referenceCoordinates=_);const g=f(n,{active:u,context:l.current,currentCoordinates:_});if(g){const b=Ys(g,_),S={x:0,y:0},{scrollableAncestors:C}=l.current;for(const A of C){const x=n.code,{isTop:T,isRight:z,isLeft:L,isBottom:G,maxScroll:Q,minScroll:H}=qy(A),j=jz(A),q={x:Math.min(x===Ee.Right?j.right-j.width/2:j.right,Math.max(x===Ee.Right?j.left:j.left+j.width/2,g.x)),y:Math.min(x===Ee.Down?j.bottom-j.height/2:j.bottom,Math.max(x===Ee.Down?j.top:j.top+j.height/2,g.y))},V=x===Ee.Right&&!z||x===Ee.Left&&!L,$=x===Ee.Down&&!G||x===Ee.Up&&!T;if(V&&q.x!==g.x){const W=A.scrollLeft+b.x,ee=x===Ee.Right&&W<=Q.x||x===Ee.Left&&W>=H.x;if(ee&&!b.y){A.scrollTo({left:W,behavior:p});return}ee?S.x=A.scrollLeft-W:S.x=x===Ee.Right?A.scrollLeft-Q.x:A.scrollLeft-H.x,S.x&&A.scrollBy({left:-S.x,behavior:p});break}else if($&&q.y!==g.y){const W=A.scrollTop+b.y,ee=x===Ee.Down&&W<=Q.y||x===Ee.Up&&W>=H.y;if(ee&&!b.x){A.scrollTo({top:W,behavior:p});return}ee?S.y=A.scrollTop-W:S.y=x===Ee.Down?A.scrollTop-Q.y:A.scrollTop-H.y,S.y&&A.scrollBy({top:-S.y,behavior:p});break}}this.handleMove(n,zn(Ys(g,this.referenceCoordinates),S))}}}handleMove(n,u){const{onMove:l}=this.props;n.preventDefault(),l(u)}handleEnd(n){const{onEnd:u}=this.props;n.preventDefault(),this.detach(),u()}handleCancel(n){const{onCancel:u}=this.props;n.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}$m.activators=[{eventName:"onKeyDown",handler:(o,n,u)=>{let{keyboardCodes:l=By,onActivation:d}=n,{active:c}=u;const{code:f}=o.nativeEvent;if(l.start.includes(f)){const p=c.activatorNode.current;return p&&o.target!==p?!1:(o.preventDefault(),d?.({event:o.nativeEvent}),!0)}return!1}}];function qv(o){return!!(o&&"distance"in o)}function Rv(o){return!!(o&&"delay"in o)}class ep{constructor(n,u,l){var d;l===void 0&&(l=Lz(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=u;const{event:c}=n,{target:f}=c;this.props=n,this.events=u,this.document=jn(f),this.documentListeners=new Rs(this.document),this.listeners=new Rs(l),this.windowListeners=new Rs(Qt(f)),this.initialCoordinates=(d=Nm(c))!=null?d:Da,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:u,bypassActivationConstraint:l}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.DragStart,Ov),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),this.windowListeners.add(ka.ContextMenu,Ov),this.documentListeners.add(ka.Keydown,this.handleKeydown),u){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Rv(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(qv(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,u){const{active:l,onPending:d}=this.props;d(l,n,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:n}=this,{onStart:u}=this.props;n&&(this.activated=!0,this.documentListeners.add(ka.Click,Iz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ka.SelectionChange,this.removeTextSelection),u(n))}handleMove(n){var u;const{activated:l,initialCoordinates:d,props:c}=this,{onMove:f,options:{activationConstraint:p}}=c;if(!d)return;const h=(u=Nm(n))!=null?u:Da,k=Ys(d,h);if(!l&&p){if(qv(p)){if(p.tolerance!=null&&_m(k,p.tolerance))return this.handleCancel();if(_m(k,p.distance))return this.handleStart()}if(Rv(p)&&_m(k,p.tolerance))return this.handleCancel();this.handlePending(p,k);return}n.cancelable&&n.preventDefault(),f(h)}handleEnd(){const{onAbort:n,onEnd:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleCancel(){const{onAbort:n,onCancel:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleKeydown(n){n.code===Ee.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Pz={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tp extends ep{constructor(n){const{event:u}=n,l=jn(u.target);super(n,Pz,l)}}tp.activators=[{eventName:"onPointerDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return!u.isPrimary||u.button!==0?!1:(l?.({event:u}),!0)}}];const Hz={move:{name:"mousemove"},end:{name:"mouseup"}};var Dm;(function(o){o[o.RightClick=2]="RightClick"})(Dm||(Dm={}));class Fz extends ep{constructor(n){super(n,Hz,jn(n.event.target))}}Fz.activators=[{eventName:"onMouseDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return u.button===Dm.RightClick?!1:(l?.({event:u}),!0)}}];const vm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Vz extends ep{constructor(n){super(n,vm)}static setup(){return window.addEventListener(vm.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(vm.move.name,n)};function n(){}}}Vz.activators=[{eventName:"onTouchStart",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;const{touches:d}=u;return d.length>1?!1:(l?.({event:u}),!0)}}];var Bs;(function(o){o[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect"})(Bs||(Bs={}));var eu;(function(o){o[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder"})(eu||(eu={}));function Gz(o){let{acceleration:n,activator:u=Bs.Pointer,canScroll:l,draggingRect:d,enabled:c,interval:f=5,order:p=eu.TreeOrder,pointerCoordinates:h,scrollableAncestors:k,scrollableAncestorRects:_,delta:g,threshold:b}=o;const S=Yz({delta:g,disabled:!c}),[C,A]=oz(),x=y.useRef({x:0,y:0}),T=y.useRef({x:0,y:0}),z=y.useMemo(()=>{switch(u){case Bs.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case Bs.DraggableRect:return d}},[u,d,h]),L=y.useRef(null),G=y.useCallback(()=>{const H=L.current;if(!H)return;const j=x.current.x*T.current.x,q=x.current.y*T.current.y;H.scrollBy(j,q)},[]),Q=y.useMemo(()=>p===eu.TreeOrder?[...k].reverse():k,[p,k]);y.useEffect(()=>{if(!c||!k.length||!z){A();return}for(const H of Q){if(l?.(H)===!1)continue;const j=k.indexOf(H),q=_[j];if(!q)continue;const{direction:V,speed:$}=Dz(H,q,z,n,b);for(const W of["x","y"])S[W][V[W]]||($[W]=0,V[W]=0);if($.x>0||$.y>0){A(),L.current=H,C(G,f),x.current=$,T.current=V;return}}x.current={x:0,y:0},T.current={x:0,y:0},A()},[n,G,l,A,c,f,JSON.stringify(z),JSON.stringify(S),C,k,Q,_,JSON.stringify(b)])}const Kz={x:{[gt.Backward]:!1,[gt.Forward]:!1},y:{[gt.Backward]:!1,[gt.Forward]:!1}};function Yz(o){let{delta:n,disabled:u}=o;const l=Tm(n);return tr(d=>{if(u||!l||!d)return Kz;const c={x:Math.sign(n.x-l.x),y:Math.sign(n.y-l.y)};return{x:{[gt.Backward]:d.x[gt.Backward]||c.x===-1,[gt.Forward]:d.x[gt.Forward]||c.x===1},y:{[gt.Backward]:d.y[gt.Backward]||c.y===-1,[gt.Forward]:d.y[gt.Forward]||c.y===1}}},[u,n,l])}function Wz(o,n){const u=n!=null?o.get(n):void 0,l=u?u.node.current:null;return tr(d=>{var c;return n==null?null:(c=l??d)!=null?c:null},[l,n])}function Qz(o,n){return y.useMemo(()=>o.reduce((u,l)=>{const{sensor:d}=l,c=d.activators.map(f=>({eventName:f.eventName,handler:n(f.handler,l)}));return[...u,...c]},[]),[o,n])}var Qs;(function(o){o[o.Always=0]="Always",o[o.BeforeDragging=1]="BeforeDragging",o[o.WhileDragging=2]="WhileDragging"})(Qs||(Qs={}));var jm;(function(o){o.Optimized="optimized"})(jm||(jm={}));const Bv=new Map;function Zz(o,n){let{dragging:u,dependencies:l,config:d}=n;const[c,f]=y.useState(null),{frequency:p,measure:h,strategy:k}=d,_=y.useRef(o),g=x(),b=Ks(g),S=y.useCallback(function(T){T===void 0&&(T=[]),!b.current&&f(z=>z===null?T:z.concat(T.filter(L=>!z.includes(L))))},[b]),C=y.useRef(null),A=tr(T=>{if(g&&!u)return Bv;if(!T||T===Bv||_.current!==o||c!=null){const z=new Map;for(let L of o){if(!L)continue;if(c&&c.length>0&&!c.includes(L.id)&&L.rect.current){z.set(L.id,L.rect.current);continue}const G=L.node.current,Q=G?new Jm(h(G),G):null;L.rect.current=Q,Q&&z.set(L.id,Q)}return z}return T},[o,c,u,g,h]);return y.useEffect(()=>{_.current=o},[o]),y.useEffect(()=>{g||S()},[u,g]),y.useEffect(()=>{c&&c.length>0&&f(null)},[JSON.stringify(c)]),y.useEffect(()=>{g||typeof p!="number"||C.current!==null||(C.current=setTimeout(()=>{S(),C.current=null},p))},[p,g,S,...l]),{droppableRects:A,measureDroppableContainers:S,measuringScheduled:c!=null};function x(){switch(k){case Qs.Always:return!1;case Qs.BeforeDragging:return u;default:return!u}}}function Ly(o,n){return tr(u=>o?u||(typeof n=="function"?n(o):o):null,[n,o])}function Xz(o,n){return Ly(o,n)}function Jz(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:c}=window;return new c(l)},[l,u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function vu(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:c}=window;return new c(l)},[u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function $z(o){return new Jm(On(o),o)}function Lv(o,n,u){n===void 0&&(n=$z);const[l,d]=y.useState(null);function c(){d(h=>{if(!o)return null;if(o.isConnected===!1){var k;return(k=h??u)!=null?k:null}const _=n(o);return JSON.stringify(h)===JSON.stringify(_)?h:_})}const f=Jz({callback(h){if(o)for(const k of h){const{type:_,target:g}=k;if(_==="childList"&&g instanceof HTMLElement&&g.contains(o)){c();break}}}}),p=vu({callback:c});return Za(()=>{c(),o?(p?.observe(o),f?.observe(document.body,{childList:!0,subtree:!0})):(p?.disconnect(),f?.disconnect())},[o]),l}function eT(o){const n=Ly(o);return Ny(o,n)}const Iv=[];function tT(o){const n=y.useRef(o),u=tr(l=>o?l&&l!==Iv&&o&&n.current&&o.parentNode===n.current.parentNode?l:_u(o):Iv,[o]);return y.useEffect(()=>{n.current=o},[o]),u}function aT(o){const[n,u]=y.useState(null),l=y.useRef(o),d=y.useCallback(c=>{const f=hm(c.target);f&&u(p=>p?(p.set(f,Em(f)),new Map(p)):null)},[]);return y.useEffect(()=>{const c=l.current;if(o!==c){f(c);const p=o.map(h=>{const k=hm(h);return k?(k.addEventListener("scroll",d,{passive:!0}),[k,Em(k)]):null}).filter(h=>h!=null);u(p.length?new Map(p):null),l.current=o}return()=>{f(o),f(c)};function f(p){p.forEach(h=>{const k=hm(h);k?.removeEventListener("scroll",d)})}},[d,o]),y.useMemo(()=>o.length?n?Array.from(n.values()).reduce((c,f)=>zn(c,f),Da):Ry(o):Da,[o,n])}function Uv(o,n){n===void 0&&(n=[]);const u=y.useRef(null);return y.useEffect(()=>{u.current=null},n),y.useEffect(()=>{const l=o!==Da;l&&!u.current&&(u.current=o),!l&&u.current&&(u.current=null)},[o]),u.current?Ys(o,u.current):Da}function oT(o){y.useEffect(()=>{if(!hu)return;const n=o.map(u=>{let{sensor:l}=u;return l.setup==null?void 0:l.setup()});return()=>{for(const u of n)u?.()}},o.map(n=>{let{sensor:u}=n;return u}))}function iT(o,n){return y.useMemo(()=>o.reduce((u,l)=>{let{eventName:d,handler:c}=l;return u[d]=f=>{c(f,n)},u},{}),[o,n])}function Iy(o){return y.useMemo(()=>o?zz(o):null,[o])}const Pv=[];function nT(o,n){n===void 0&&(n=On);const[u]=o,l=Iy(u?Qt(u):null),[d,c]=y.useState(Pv);function f(){c(()=>o.length?o.map(h=>Oy(h)?l:new Jm(n(h),h)):Pv)}const p=vu({callback:f});return Za(()=>{p?.disconnect(),f(),o.forEach(h=>p?.observe(h))},[o]),d}function sT(o){if(!o)return null;if(o.children.length>1)return o;const n=o.children[0];return er(n)?n:o}function rT(o){let{measure:n}=o;const[u,l]=y.useState(null),d=y.useCallback(k=>{for(const{target:_}of k)if(er(_)){l(g=>{const b=n(_);return g?{...g,width:b.width,height:b.height}:b});break}},[n]),c=vu({callback:d}),f=y.useCallback(k=>{const _=sT(k);c?.disconnect(),_&&c?.observe(_),l(_?n(_):null)},[n,c]),[p,h]=Jl(f);return y.useMemo(()=>({nodeRef:p,rect:u,setRef:h}),[u,p,h])}const lT=[{sensor:tp,options:{}},{sensor:$m,options:{}}],uT={current:{}},Pl={draggable:{measure:jv},droppable:{measure:jv,strategy:Qs.WhileDragging,frequency:jm.Optimized},dragOverlay:{measure:On}};class Ls extends Map{get(n){var u;return n!=null&&(u=super.get(n))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:u}=n;return!u})}getNodeFor(n){var u,l;return(u=(l=this.get(n))==null?void 0:l.node.current)!=null?u:void 0}}const dT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ls,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:$l},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pl,measureDroppableContainers:$l,windowRect:null,measuringScheduled:!1},cT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:$l,draggableNodes:new Map,over:null,measureDroppableContainers:$l},bu=y.createContext(cT),Uy=y.createContext(dT);function mT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ls}}}function pT(o,n){switch(n.type){case ut.DragStart:return{...o,draggable:{...o.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case ut.DragMove:return o.draggable.active==null?o:{...o,draggable:{...o.draggable,translate:{x:n.coordinates.x-o.draggable.initialCoordinates.x,y:n.coordinates.y-o.draggable.initialCoordinates.y}}};case ut.DragEnd:case ut.DragCancel:return{...o,draggable:{...o.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ut.RegisterDroppable:{const{element:u}=n,{id:l}=u,d=new Ls(o.droppable.containers);return d.set(l,u),{...o,droppable:{...o.droppable,containers:d}}}case ut.SetDroppableDisabled:{const{id:u,key:l,disabled:d}=n,c=o.droppable.containers.get(u);if(!c||l!==c.key)return o;const f=new Ls(o.droppable.containers);return f.set(u,{...c,disabled:d}),{...o,droppable:{...o.droppable,containers:f}}}case ut.UnregisterDroppable:{const{id:u,key:l}=n,d=o.droppable.containers.get(u);if(!d||l!==d.key)return o;const c=new Ls(o.droppable.containers);return c.delete(u),{...o,droppable:{...o.droppable,containers:c}}}default:return o}}function fT(o){let{disabled:n}=o;const{active:u,activatorEvent:l,draggableNodes:d}=y.useContext(bu),c=Tm(l),f=Tm(u?.id);return y.useEffect(()=>{if(!n&&!l&&c&&f!=null){if(!Xm(c)||document.activeElement===c.target)return;const p=d.get(f);if(!p)return;const{activatorNode:h,node:k}=p;if(!h.current&&!k.current)return;requestAnimationFrame(()=>{for(const _ of[h.current,k.current]){if(!_)continue;const g=sz(_);if(g){g.focus();break}}})}},[l,n,d,f,c]),null}function gT(o,n){let{transform:u,...l}=n;return o!=null&&o.length?o.reduce((d,c)=>c({transform:d,...l}),u):u}function hT(o){return y.useMemo(()=>({draggable:{...Pl.draggable,...o?.draggable},droppable:{...Pl.droppable,...o?.droppable},dragOverlay:{...Pl.dragOverlay,...o?.dragOverlay}}),[o?.draggable,o?.droppable,o?.dragOverlay])}function _T(o){let{activeNode:n,measure:u,initialRect:l,config:d=!0}=o;const c=y.useRef(!1),{x:f,y:p}=typeof d=="boolean"?{x:d,y:d}:d;Za(()=>{if(!f&&!p||!n){c.current=!1;return}if(c.current||!l)return;const k=n?.node.current;if(!k||k.isConnected===!1)return;const _=u(k),g=Ny(_,l);if(f||(g.x=0),p||(g.y=0),c.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const b=Ey(k);b&&b.scrollBy({top:g.y,left:g.x})}},[n,f,p,l,u])}const Py=y.createContext({...Da,scaleX:1,scaleY:1});var Ko;(function(o){o[o.Uninitialized=0]="Uninitialized",o[o.Initializing=1]="Initializing",o[o.Initialized=2]="Initialized"})(Ko||(Ko={}));const vT=y.memo(function(n){var u,l,d,c;let{id:f,accessibility:p,autoScroll:h=!0,children:k,sensors:_=lT,collisionDetection:g=kz,measuring:b,modifiers:S,...C}=n;const A=y.useReducer(pT,void 0,mT),[x,T]=A,[z,L]=mz(),[G,Q]=y.useState(Ko.Uninitialized),H=G===Ko.Initialized,{draggable:{active:j,nodes:q,translate:V},droppable:{containers:$}}=x,W=j!=null?q.get(j):null,ee=y.useRef({initial:null,translated:null}),ae=y.useMemo(()=>{var rt;return j!=null?{id:j,data:(rt=W?.data)!=null?rt:uT,rect:ee}:null},[j,W]),X=y.useRef(null),[Y,I]=y.useState(null),[N,K]=y.useState(null),ie=Ks(C,Object.values(C)),ne=ar("DndDescribedBy",f),ye=y.useMemo(()=>$.getEnabled(),[$]),Ae=hT(b),{droppableRects:Ve,measureDroppableContainers:D,measuringScheduled:te}=Zz(ye,{dragging:H,dependencies:[V.x,V.y],config:Ae.droppable}),se=Wz(q,j),ce=y.useMemo(()=>N?Nm(N):null,[N]),ke=sr(),we=Xz(se,Ae.draggable.measure);_T({activeNode:j!=null?q.get(j):null,config:ke.layoutShiftCompensation,initialRect:we,measure:Ae.draggable.measure});const pe=Lv(se,Ae.draggable.measure,we),ue=Lv(se?se.parentElement:null),fe=y.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Ve,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:$,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ct=$.getNodeFor((u=fe.current.over)==null?void 0:u.id),Zt=rT({measure:Ae.dragOverlay.measure}),Xt=(l=Zt.nodeRef.current)!=null?l:se,_t=H?(d=Zt.rect)!=null?d:pe:null,tt=!!(Zt.nodeRef.current&&Zt.rect),Le=eT(tt?null:pe),Bt=Iy(Xt?Qt(Xt):null),Lt=tT(H?Ct??se:null),Jt=nT(Lt),Xa=gT(S,{transform:{x:V.x-Le.x,y:V.y-Le.y,scaleX:1,scaleY:1},activatorEvent:N,active:ae,activeNodeRect:pe,containerNodeRect:ue,draggingNodeRect:_t,over:fe.current.over,overlayNodeRect:Zt.rect,scrollableAncestors:Lt,scrollableAncestorRects:Jt,windowRect:Bt}),$o=ce?zn(ce,V):null,Ja=aT(Lt),qn=Uv(Ja),Ei=Uv(Ja,[pe]),ja=zn(Xa,qn),$a=_t?Mz(_t,Xa):null,It=ae&&$a?g({active:ae,collisionRect:$a,droppableRects:Ve,droppableContainers:ye,pointerCoordinates:$o}):null,Di=Ty(It,"id"),[ua,or]=y.useState(null),ir=tt?Xa:zn(Xa,Ei),Rn=wz(ir,(c=ua?.rect)!=null?c:null,pe),ei=y.useRef(null),ji=y.useCallback((rt,dt)=>{let{sensor:Nt,options:wa}=dt;if(X.current==null)return;const Ut=q.get(X.current);if(!Ut)return;const Et=rt.nativeEvent,At=new Nt({active:X.current,activeNode:Ut,event:Et,options:wa,context:fe,onAbort(Ke){if(!q.get(Ke))return;const{onDragAbort:da}=ie.current,Sa={id:Ke};da?.(Sa),z({type:"onDragAbort",event:Sa})},onPending(Ke,Xe,da,Sa){if(!q.get(Ke))return;const{onDragPending:Oa}=ie.current,$t={id:Ke,constraint:Xe,initialCoordinates:da,offset:Sa};Oa?.($t),z({type:"onDragPending",event:$t})},onStart(Ke){const Xe=X.current;if(Xe==null)return;const da=q.get(Xe);if(!da)return;const{onDragStart:Sa}=ie.current,ti={activatorEvent:Et,active:{id:Xe,data:da.data,rect:ee}};Cn.unstable_batchedUpdates(()=>{Sa?.(ti),Q(Ko.Initializing),T({type:ut.DragStart,initialCoordinates:Ke,active:Xe}),z({type:"onDragStart",event:ti}),I(ei.current),K(Et)})},onMove(Ke){T({type:ut.DragMove,coordinates:Ke})},onEnd:at(ut.DragEnd),onCancel:at(ut.DragCancel)});ei.current=At;function at(Ke){return async function(){const{active:da,collisions:Sa,over:ti,scrollAdjustedTranslate:Oa}=fe.current;let $t=null;if(da&&Oa){const{cancelDrop:qa}=ie.current;$t={activatorEvent:Et,active:da,collisions:Sa,delta:Oa,over:ti},Ke===ut.DragEnd&&typeof qa=="function"&&await Promise.resolve(qa($t))&&(Ke=ut.DragCancel)}X.current=null,Cn.unstable_batchedUpdates(()=>{T({type:Ke}),Q(Ko.Uninitialized),or(null),I(null),K(null),ei.current=null;const qa=Ke===ut.DragEnd?"onDragEnd":"onDragCancel";if($t){const Ma=ie.current[qa];Ma?.($t),z({type:qa,event:$t})}})}}},[q]),yu=y.useCallback((rt,dt)=>(Nt,wa)=>{const Ut=Nt.nativeEvent,Et=q.get(wa);if(X.current!==null||!Et||Ut.dndKit||Ut.defaultPrevented)return;const At={active:Et};rt(Nt,dt.options,At)===!0&&(Ut.dndKit={capturedBy:dt.sensor},X.current=wa,ji(Nt,dt))},[q,ji]),nr=Qz(_,yu);oT(_),Za(()=>{pe&&G===Ko.Initializing&&Q(Ko.Initialized)},[pe,G]),y.useEffect(()=>{const{onDragMove:rt}=ie.current,{active:dt,activatorEvent:Nt,collisions:wa,over:Ut}=fe.current;if(!dt||!Nt)return;const Et={active:dt,activatorEvent:Nt,collisions:wa,delta:{x:ja.x,y:ja.y},over:Ut};Cn.unstable_batchedUpdates(()=>{rt?.(Et),z({type:"onDragMove",event:Et})})},[ja.x,ja.y]),y.useEffect(()=>{const{active:rt,activatorEvent:dt,collisions:Nt,droppableContainers:wa,scrollAdjustedTranslate:Ut}=fe.current;if(!rt||X.current==null||!dt||!Ut)return;const{onDragOver:Et}=ie.current,At=wa.get(Di),at=At&&At.rect.current?{id:At.id,rect:At.rect.current,data:At.data,disabled:At.disabled}:null,Ke={active:rt,activatorEvent:dt,collisions:Nt,delta:{x:Ut.x,y:Ut.y},over:at};Cn.unstable_batchedUpdates(()=>{or(at),Et?.(Ke),z({type:"onDragOver",event:Ke})})},[Di]),Za(()=>{fe.current={activatorEvent:N,active:ae,activeNode:se,collisionRect:$a,collisions:It,droppableRects:Ve,draggableNodes:q,draggingNode:Xt,draggingNodeRect:_t,droppableContainers:$,over:ua,scrollableAncestors:Lt,scrollAdjustedTranslate:ja},ee.current={initial:_t,translated:$a}},[ae,se,It,$a,q,Xt,_t,Ve,$,ua,Lt,ja]),Gz({...ke,delta:V,draggingRect:$a,pointerCoordinates:$o,scrollableAncestors:Lt,scrollableAncestorRects:Jt});const Tt=y.useMemo(()=>({active:ae,activeNode:se,activeNodeRect:pe,activatorEvent:N,collisions:It,containerNodeRect:ue,dragOverlay:Zt,draggableNodes:q,droppableContainers:$,droppableRects:Ve,over:ua,measureDroppableContainers:D,scrollableAncestors:Lt,scrollableAncestorRects:Jt,measuringConfiguration:Ae,measuringScheduled:te,windowRect:Bt}),[ae,se,pe,N,It,ue,Zt,q,$,Ve,ua,D,Lt,Jt,Ae,te,Bt]),ku=y.useMemo(()=>({activatorEvent:N,activators:nr,active:ae,activeNodeRect:pe,ariaDescribedById:{draggable:ne},dispatch:T,draggableNodes:q,over:ua,measureDroppableContainers:D}),[N,nr,ae,pe,T,ne,q,ua,D]);return ve.createElement(Ay.Provider,{value:L},ve.createElement(bu.Provider,{value:ku},ve.createElement(Uy.Provider,{value:Tt},ve.createElement(Py.Provider,{value:Rn},k)),ve.createElement(fT,{disabled:p?.restoreFocus===!1})),ve.createElement(gz,{...p,hiddenTextDescribedById:ne}));function sr(){const rt=Y?.autoScrollEnabled===!1,dt=typeof h=="object"?h.enabled===!1:h===!1,Nt=H&&!rt&&!dt;return typeof h=="object"?{...h,enabled:Nt}:{enabled:Nt}}}),bT=y.createContext(null),Hv="button",yT="Draggable";function kT(o){let{id:n,data:u,disabled:l=!1,attributes:d}=o;const c=ar(yT),{activators:f,activatorEvent:p,active:h,activeNodeRect:k,ariaDescribedById:_,draggableNodes:g,over:b}=y.useContext(bu),{role:S=Hv,roleDescription:C="draggable",tabIndex:A=0}=d??{},x=h?.id===n,T=y.useContext(x?Py:bT),[z,L]=Jl(),[G,Q]=Jl(),H=iT(f,n),j=Ks(u);Za(()=>(g.set(n,{id:n,key:c,node:z,activatorNode:G,data:j}),()=>{const V=g.get(n);V&&V.key===c&&g.delete(n)}),[g,n]);const q=y.useMemo(()=>({role:S,tabIndex:A,"aria-disabled":l,"aria-pressed":x&&S===Hv?!0:void 0,"aria-roledescription":C,"aria-describedby":_.draggable}),[l,S,A,x,C,_.draggable]);return{active:h,activatorEvent:p,activeNodeRect:k,attributes:q,isDragging:x,listeners:l?void 0:H,node:z,over:b,setNodeRef:L,setActivatorNodeRef:Q,transform:T}}function wT(){return y.useContext(Uy)}const ST="Droppable",MT={timeout:25};function CT(o){let{data:n,disabled:u=!1,id:l,resizeObserverConfig:d}=o;const c=ar(ST),{active:f,dispatch:p,over:h,measureDroppableContainers:k}=y.useContext(bu),_=y.useRef({disabled:u}),g=y.useRef(!1),b=y.useRef(null),S=y.useRef(null),{disabled:C,updateMeasurementsFor:A,timeout:x}={...MT,...d},T=Ks(A??l),z=y.useCallback(()=>{if(!g.current){g.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{k(Array.isArray(T.current)?T.current:[T.current]),S.current=null},x)},[x]),L=vu({callback:z,disabled:C||!f}),G=y.useCallback((q,V)=>{L&&(V&&(L.unobserve(V),g.current=!1),q&&L.observe(q))},[L]),[Q,H]=Jl(G),j=Ks(n);return y.useEffect(()=>{!L||!Q.current||(L.disconnect(),g.current=!1,L.observe(Q.current))},[Q,L]),y.useEffect(()=>(p({type:ut.RegisterDroppable,element:{id:l,key:c,disabled:u,node:Q,rect:b,data:j}}),()=>p({type:ut.UnregisterDroppable,key:c,id:l})),[l]),y.useEffect(()=>{u!==_.current.disabled&&(p({type:ut.SetDroppableDisabled,id:l,key:c,disabled:u}),_.current.disabled=u)},[l,c,u,p]),{active:f,rect:b,isOver:h?.id===l,node:Q,over:h,setNodeRef:H}}function ap(o,n,u){const l=o.slice();return l.splice(u<0?l.length+u:u,0,l.splice(n,1)[0]),l}function AT(o,n){return o.reduce((u,l,d)=>{const c=n.get(l);return c&&(u[d]=c),u},Array(o.length))}function ql(o){return o!==null&&o>=0}function xT(o,n){if(o===n)return!0;if(o.length!==n.length)return!1;for(let u=0;u<o.length;u++)if(o[u]!==n[u])return!1;return!0}function zT(o){return typeof o=="boolean"?{draggable:o,droppable:o}:o}const Hy=o=>{let{rects:n,activeIndex:u,overIndex:l,index:d}=o;const c=ap(n,l,u),f=n[d],p=c[d];return!p||!f?null:{x:p.left-f.left,y:p.top-f.top,scaleX:p.width/f.width,scaleY:p.height/f.height}},Rl={scaleX:1,scaleY:1},TT=o=>{var n;let{activeIndex:u,activeNodeRect:l,index:d,rects:c,overIndex:f}=o;const p=(n=c[u])!=null?n:l;if(!p)return null;if(d===u){const k=c[f];return k?{x:0,y:u<f?k.top+k.height-(p.top+p.height):k.top-p.top,...Rl}:null}const h=NT(c,d,u);return d>u&&d<=f?{x:0,y:-p.height-h,...Rl}:d<u&&d>=f?{x:0,y:p.height+h,...Rl}:{x:0,y:0,...Rl}};function NT(o,n,u){const l=o[n],d=o[n-1],c=o[n+1];return l?u<n?d?l.top-(d.top+d.height):c?c.top-(l.top+l.height):0:c?c.top-(l.top+l.height):d?l.top-(d.top+d.height):0:0}const Fy="Sortable",Vy=ve.createContext({activeIndex:-1,containerId:Fy,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Hy,disabled:{draggable:!1,droppable:!1}});function ET(o){let{children:n,id:u,items:l,strategy:d=Hy,disabled:c=!1}=o;const{active:f,dragOverlay:p,droppableRects:h,over:k,measureDroppableContainers:_}=wT(),g=ar(Fy,u),b=p.rect!==null,S=y.useMemo(()=>l.map(H=>typeof H=="object"&&"id"in H?H.id:H),[l]),C=f!=null,A=f?S.indexOf(f.id):-1,x=k?S.indexOf(k.id):-1,T=y.useRef(S),z=!xT(S,T.current),L=x!==-1&&A===-1||z,G=zT(c);Za(()=>{z&&C&&_(S)},[z,S,C,_]),y.useEffect(()=>{T.current=S},[S]);const Q=y.useMemo(()=>({activeIndex:A,containerId:g,disabled:G,disableTransforms:L,items:S,overIndex:x,useDragOverlay:b,sortedRects:AT(S,h),strategy:d}),[A,g,G.draggable,G.droppable,L,S,x,h,b,d]);return ve.createElement(Vy.Provider,{value:Q},n)}const DT=o=>{let{id:n,items:u,activeIndex:l,overIndex:d}=o;return ap(u,l,d).indexOf(n)},jT=o=>{let{containerId:n,isSorting:u,wasDragging:l,index:d,items:c,newIndex:f,previousItems:p,previousContainerId:h,transition:k}=o;return!k||!l||p!==c&&d===f?!1:u?!0:f!==d&&n===h},OT={duration:200,easing:"ease"},Gy="transform",qT=Ws.Transition.toString({property:Gy,duration:0,easing:"linear"}),RT={roleDescription:"sortable"};function BT(o){let{disabled:n,index:u,node:l,rect:d}=o;const[c,f]=y.useState(null),p=y.useRef(u);return Za(()=>{if(!n&&u!==p.current&&l.current){const h=d.current;if(h){const k=On(l.current,{ignoreTransform:!0}),_={x:h.left-k.left,y:h.top-k.top,scaleX:h.width/k.width,scaleY:h.height/k.height};(_.x||_.y)&&f(_)}}u!==p.current&&(p.current=u)},[n,u,l,d]),y.useEffect(()=>{c&&f(null)},[c]),c}function LT(o){let{animateLayoutChanges:n=jT,attributes:u,disabled:l,data:d,getNewIndex:c=DT,id:f,strategy:p,resizeObserverConfig:h,transition:k=OT}=o;const{items:_,containerId:g,activeIndex:b,disabled:S,disableTransforms:C,sortedRects:A,overIndex:x,useDragOverlay:T,strategy:z}=y.useContext(Vy),L=IT(l,S),G=_.indexOf(f),Q=y.useMemo(()=>({sortable:{containerId:g,index:G,items:_},...d}),[g,d,G,_]),H=y.useMemo(()=>_.slice(_.indexOf(f)),[_,f]),{rect:j,node:q,isOver:V,setNodeRef:$}=CT({id:f,data:Q,disabled:L.droppable,resizeObserverConfig:{updateMeasurementsFor:H,...h}}),{active:W,activatorEvent:ee,activeNodeRect:ae,attributes:X,setNodeRef:Y,listeners:I,isDragging:N,over:K,setActivatorNodeRef:ie,transform:ne}=kT({id:f,data:Q,attributes:{...RT,...u},disabled:L.draggable}),ye=az($,Y),Ae=!!W,Ve=Ae&&!C&&ql(b)&&ql(x),D=!T&&N,te=D&&Ve?ne:null,ce=Ve?te??(p??z)({rects:A,activeNodeRect:ae,activeIndex:b,overIndex:x,index:G}):null,ke=ql(b)&&ql(x)?c({id:f,items:_,activeIndex:b,overIndex:x}):G,we=W?.id,pe=y.useRef({activeId:we,items:_,newIndex:ke,containerId:g}),ue=_!==pe.current.items,fe=n({active:W,containerId:g,isDragging:N,isSorting:Ae,id:f,index:G,items:_,newIndex:pe.current.newIndex,previousItems:pe.current.items,previousContainerId:pe.current.containerId,transition:k,wasDragging:pe.current.activeId!=null}),Ct=BT({disabled:!fe,index:G,node:q,rect:j});return y.useEffect(()=>{Ae&&pe.current.newIndex!==ke&&(pe.current.newIndex=ke),g!==pe.current.containerId&&(pe.current.containerId=g),_!==pe.current.items&&(pe.current.items=_)},[Ae,ke,g,_]),y.useEffect(()=>{if(we===pe.current.activeId)return;if(we!=null&&pe.current.activeId==null){pe.current.activeId=we;return}const Xt=setTimeout(()=>{pe.current.activeId=we},50);return()=>clearTimeout(Xt)},[we]),{active:W,activeIndex:b,attributes:X,data:Q,rect:j,index:G,newIndex:ke,items:_,isOver:V,isSorting:Ae,isDragging:N,listeners:I,node:q,overIndex:x,over:K,setNodeRef:ye,setActivatorNodeRef:ie,setDroppableNodeRef:$,setDraggableNodeRef:Y,transform:Ct??ce,transition:Zt()};function Zt(){if(Ct||ue&&pe.current.newIndex===G)return qT;if(!(D&&!Xm(ee)||!k)&&(Ae||fe))return Ws.Transition.toString({...k,property:Gy})}}function IT(o,n){var u,l;return typeof o=="boolean"?{draggable:o,droppable:!1}:{draggable:(u=o?.draggable)!=null?u:n.draggable,droppable:(l=o?.droppable)!=null?l:n.droppable}}function tu(o){if(!o)return!1;const n=o.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const UT=[Ee.Down,Ee.Right,Ee.Up,Ee.Left],PT=(o,n)=>{let{context:{active:u,collisionRect:l,droppableRects:d,droppableContainers:c,over:f,scrollableAncestors:p}}=n;if(UT.includes(o.code)){if(o.preventDefault(),!u||!l)return;const h=[];c.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const b=d.get(g.id);if(b)switch(o.code){case Ee.Down:l.top<b.top&&h.push(g);break;case Ee.Up:l.top>b.top&&h.push(g);break;case Ee.Left:l.left>b.left&&h.push(g);break;case Ee.Right:l.left<b.left&&h.push(g);break}});const k=bz({collisionRect:l,droppableRects:d,droppableContainers:h});let _=Ty(k,"id");if(_===f?.id&&k.length>1&&(_=k[1].id),_!=null){const g=c.get(u.id),b=c.get(_),S=b?d.get(b.id):null,C=b?.node.current;if(C&&S&&g&&b){const x=_u(C).some((H,j)=>p[j]!==H),T=Ky(g,b),z=HT(g,b),L=x||!T?{x:0,y:0}:{x:z?l.width-S.width:0,y:z?l.height-S.height:0},G={x:S.left,y:S.top};return L.x&&L.y?G:Ys(G,L)}}}};function Ky(o,n){return!tu(o)||!tu(n)?!1:o.data.current.sortable.containerId===n.data.current.sortable.containerId}function HT(o,n){return!tu(o)||!tu(n)||!Ky(o,n)?!1:o.data.current.sortable.index<n.data.current.sortable.index}const FT=o=>w.jsx("div",{className:"todo-drag-handle",...o,children:w.jsx(sA,{})}),VT=({id:o,children:n})=>{const{attributes:u,listeners:l,setNodeRef:d,transform:c,transition:f}=LT({id:o}),p={transform:Ws.Transform.toString(c),transition:f};return w.jsx("div",{ref:d,style:p,children:typeof n=="function"?n({attributes:u,listeners:l}):n})},GT=({items:o,onDragEnd:n,children:u})=>{const l=hz(Nv(tp,{activationConstraint:{distance:5}}),Nv($m,{coordinateGetter:PT}));return w.jsx(vT,{sensors:l,collisionDetection:vz,onDragEnd:n,children:w.jsx(ET,{items:o,strategy:TT,children:w.jsx("div",{children:u})})})};function KT({todoRef:o,floatRef:n,position:u,xPosition:l,yPosition:d}){const c=Zo(),[f,p]=y.useState(JSON.parse(localStorage.getItem("todo"))||[]),[h,k]=y.useState(localStorage.getItem("todoPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const T=z=>{z==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",T),()=>{_e.off("refresh",T)}},[]);const b=()=>{k(!0)},S=()=>{k(localStorage.getItem("todoPinned")==="true")},C=T=>{const{active:z,over:L}=T;if(L&&z.id!==L.id){const G=Number(z.id),Q=Number(L.id);p(H=>{const j=ap(H,G,Q);return localStorage.setItem("todo",JSON.stringify(j)),j})}},A=(T,z,L)=>{p(G=>{const Q=[...G];switch(T){case"add":Q.push({value:"",done:!1});break;case"remove":Q.splice(z,1);break;case"set":Q[z]={value:L.target.value,done:Q[z].done};break;case"done":Q[z].done=!Q[z].done;break}return localStorage.setItem("todo",JSON.stringify(Q)),Q})},x=()=>{me.stats.postEvent("feature","Todo pin");const T=localStorage.getItem("todoPinned")==="true";localStorage.setItem("todoPinned",!T),k(!T)};return w.jsxs("div",{className:"notes",onMouseLeave:S,onFocus:b,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||S()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:b,onFocus:b,"aria-label":c("widgets.navbar.todo.title"),ref:o,style:{fontSize:_},children:w.jsx(L_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:w.jsxs("div",{className:"flexTodo",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(L_,{}),w.jsx("span",{children:c("widgets.navbar.todo.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:x,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.navbar.todo.add"),children:w.jsx("button",{onClick:()=>A("add"),"aria-label":c("widgets.navbar.todo.add"),children:w.jsx(VC,{})})})]}),w.jsx("div",{className:"todoRows",children:f.length===0?w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:c("widgets.navbar.todo.no_todos")}),w.jsx("span",{className:"subtitle",children:c("modals.main.settings.sections.message.add_some")})]})}):w.jsx(GT,{items:f.map((T,z)=>z),onDragEnd:C,children:f.map((T,z)=>w.jsx(VT,{id:z,children:({attributes:L,listeners:G})=>w.jsxs("div",{className:"todoRow"+(T.done?" done":""),children:[w.jsx("div",{className:"todo-checkbox"+(T.done?" checked":""),role:"checkbox","aria-checked":!!T.done,"aria-label":T.value||c("widgets.navbar.todo.title"),tabIndex:0,onClick:()=>A("done",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("done",z))},children:T.done&&w.jsx(Bm,{})}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:T.value,onChange:Q=>A("set",z,Q),readOnly:T.done,minRows:1}),w.jsx(ht,{title:c("modals.main.marketplace.product.buttons.remove"),children:w.jsx(ZC,{role:"button",tabIndex:0,"aria-label":c("modals.main.marketplace.product.buttons.remove"),onClick:()=>A("remove",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("remove",z))}})}),w.jsx(FT,{...L,...G})]})},z))})})]})})]})}function YT(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(KT,{todoRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const WT=y.memo(YT);function QT(){const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState(localStorage.getItem("refreshOption")||"");y.useEffect(()=>{const p=h=>{(h==="navbar"||h==="background"||h==="language")&&(d(localStorage.getItem("refreshOption")),c())};return _e.on("refresh",p),c(),()=>{_e.off("refresh",p)}},[o]);function c(){let p;switch(localStorage.getItem("refreshOption")){case"background":p=o("modals.main.settings.sections.background.title");break;case"quote":p=o("modals.main.settings.sections.quote.title");break;case"quotebackground":p=new Intl.ListFormat(localStorage.getItem("language")?.replace(/_/gm,"-")||"en-GB",{style:"long",type:"conjunction"}).format([o("modals.main.settings.sections.quote.title"),o("modals.main.settings.sections.background.title")]);break;default:p=o("modals.main.settings.sections.appearance.navbar.refresh_options.page");break}u(p)}function f(){switch(l){case"background":return _e.emit("refresh","backgroundrefresh");case"quote":return _e.emit("refresh","quoterefresh");case"quotebackground":return _e.emit("refresh","quoterefresh"),_e.emit("refresh","backgroundrefresh");default:window.location.reload()}}return w.jsx(ht,{title:o("widgets.navbar.tooltips.refresh"),subtitle:n,children:w.jsx("button",{className:"navbarButton",onClick:f,"aria-label":o("widgets.navbar.tooltips.refresh"),children:w.jsx(Us,{className:"refreshicon topicons"})})})}const Yy=y.memo(({fontSize:o})=>{const n=Zo(),[u,l]=y.useState(!1),d=y.useRef(!1),c=y.useCallback(p=>{p?delete document.documentElement.dataset.bgMaximised:document.documentElement.dataset.bgMaximised="true";const h=document.getElementById("backgroundVideo");h&&(h.style.webkitFilter=p?Um():"blur(0px) brightness(100%)");const k=document.getElementById("backgroundFilterOverlay");if(k){const _=p?Pm():{backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""};k.style.backdropFilter=_.backdropFilter,k.style.webkitBackdropFilter=_.WebkitBackdropFilter,k.style.backgroundColor=_.backgroundColor}},[]);y.useEffect(()=>()=>{if(!d.current)return;const p=document.getElementById("widgets");p&&(p.style.display="flex"),c(!0)},[c]);const f=y.useCallback(()=>{const p=document.getElementById("widgets");u?(p&&(p.style.display="flex"),l(!1),d.current=!1,c(!0),me.stats.postEvent("feature","Background unmaximise")):(p&&(p.style.display="none"),l(!0),d.current=!0,c(!1),me.stats.postEvent("feature","Background maximise"))},[u,c]);return w.jsx(ht,{title:n("modals.main.settings.sections.background.buttons.view"),children:w.jsx("button",{className:"navbarButton",style:{fontSize:o},onClick:f,"aria-label":n("modals.main.settings.sections.background.buttons.view"),children:w.jsx(jC,{className:"topicons"})})})});Yy.displayName="Maximise";const ZT=({openModal:o})=>{const n=Zo();y.useRef();const[u]=y.useState(localStorage.getItem("widgetStyle")==="legacy"?"navbar old":"navbar new"),l=()=>{switch(localStorage.getItem("refreshOption")){case"background":return n("modals.main.settings.sections.background.title");case"quote":return n("modals.main.settings.sections.quote.title");case"quotebackground":return n("modals.main.settings.sections.quote.title")+" "+n("modals.main.settings.sections.background.title");default:return n("modals.main.settings.sections.appearance.navbar.refresh_options.page")}},d=()=>Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem",[c,f]=y.useState(l()),[p,h]=y.useState(localStorage.getItem("refresh")),[k,_]=y.useState(localStorage.getItem("refreshOption")||""),[g,b]=y.useState(!1),[S,C]=y.useState(d()),[A,x]=y.useState(localStorage.getItem("navbarHover")==="true"),[T,z]=y.useState(localStorage.getItem("view")==="true"),[L,G]=y.useState(localStorage.getItem("notesEnabled")==="true"),[Q,H]=y.useState(localStorage.getItem("todoEnabled")==="true"),[j,q]=y.useState(localStorage.getItem("appsEnabled")==="true"),[V,$]=y.useState(localStorage.getItem("background")==="true");y.useEffect(()=>{const ee=ae=>{(ae==="navbar"||ae==="background")&&(h(localStorage.getItem("refresh")),_(localStorage.getItem("refreshOption")),x(localStorage.getItem("navbarHover")==="true"),z(localStorage.getItem("view")==="true"),G(localStorage.getItem("notesEnabled")==="true"),H(localStorage.getItem("todoEnabled")==="true"),q(localStorage.getItem("appsEnabled")==="true"),$(localStorage.getItem("background")==="true"),f(l()),C(d()))};return _e.on("refresh",ee),()=>{_e.off("refresh",ee)}},[]);const W=w.jsx("div",{className:"navbar-container",children:w.jsxs("div",{className:u,children:[T&&V?w.jsx(Yy,{fontSize:S}):null,L&&w.jsx(tz,{fontSize:S}),Q&&w.jsx(WT,{fontSize:S}),j&&w.jsx(P2,{fontSize:S}),p!=="false"&&w.jsx(QT,{fontSize:S}),w.jsx(ht,{title:n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx("button",{className:"navbarButton",onClick:()=>o("mainModal"),style:{fontSize:S},"aria-label":n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx(YC,{className:"settings-icon topicons"})})})]})});return A?w.jsx("div",{className:"navbar-hover",children:W}):W},XT=()=>{const[o,n]=y.useState(!1),[u,l]=y.useState(null),d=y.useRef(!1);d.current=o,y.useEffect(()=>{H_()&&(l(js()),n(!0));const f=h=>{h==="openMainModal"&&(l(js()),n(!0))},p=()=>{!d.current&&H_()&&(l(js()),n(!0))};return _e.on("modal",f),window.addEventListener("popstate",p),()=>{_e.off("modal",f),window.removeEventListener("popstate",p)}},[]);const c=f=>{n(f),l(null),f!==!1&&Gl("#settings")};return w.jsxs(w.Fragment,{children:[w.jsx(ZT,{openModal:()=>c(!0)}),w.jsx(L2,{closeTimeoutMS:300,id:"modal",onRequestClose:()=>c(!1),isOpen:o,className:"Modal mainModal",overlayClassName:"Overlay",ariaHideApp:!1,children:w.jsx(_2,{modalClose:()=>c(!1),deepLinkData:u})})]})},JT=o=>{y.useEffect(()=>{localStorage.getItem("firstRun")||(u2(),Hl?window.location.reload():o?.()),lm();const n=l=>{l==="other"&&lm(!0)},u=()=>{lm(!0),o?.()};return _e.on("refresh",n),_e.on("settingsimported",u),me.stats.tabLoad(),()=>{_e.off("refresh",n),_e.off("settingsimported",u)}},[])},$T=()=>{const[o,n]=y.useState(2500),[u,l]=y.useState(!1);y.useEffect(()=>{const p=localStorage.getItem("toastDisplayTime"),h=localStorage.getItem("background");p&&n(parseInt(p,10)),h==="true"&&l(!0);const k=_=>{_==="background"&&l(localStorage.getItem("background")==="true")};return _e.on("refresh",k),()=>_e.off("refresh",k)},[]);const[d,c]=y.useState(0);JT(()=>{c(p=>p+1),l(localStorage.getItem("background")==="true"),n(parseInt(localStorage.getItem("toastDisplayTime"),10)||2500)});const f=localStorage.getItem("language")||"en_GB";return w.jsxs(vC,{initialLanguage:f,children:[u&&w.jsx(IA,{},d),w.jsx(z0,{position:"top-center",autoClose:o,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0}),w.jsxs("div",{id:"center",children:[w.jsx(w2,{}),w.jsx(XT,{})]},d)]})};class eN extends y.PureComponent{constructor(n){super(n),this.state={error:!1}}componentDidCatch(n,u){this.setState({error:!0}),console.error("WebBrain new tab crashed:",n,u)}render(){return this.state.error?w.jsx("div",{className:"criticalError",children:w.jsxs("div",{className:"criticalError-message",children:[w.jsx("h1",{children:"The WebBrain new tab hit an error"}),w.jsx("p",{children:"Reload the tab. If it keeps happening, reset the new tab settings or report it."}),w.jsxs("div",{className:"criticalError-actions",children:[w.jsx("button",{onClick:()=>window.location.reload(),children:"Reload"}),w.jsx("a",{href:"https://github.com/esokullu/webbrain/issues/new",target:"_blank",rel:"noreferrer",children:"Report issue"})]})]})}):this.props.children}}const Wy=gC();localStorage.setItem("language",Wy);me.language=Bl();me.languagecode=Wy;Mm();me.getMessage=(o,n)=>Db(o)?Wt(o):me.language.getMessage(me.languagecode,o,n||{});const tN=document.getElementById("root"),aN=KS.createRoot(tN);aN.render(w.jsx(eN,{children:w.jsx($T,{})}));export{tp as $,V2 as A,Gs as B,H2 as C,xN as D,_e as E,jC as F,U_ as G,L_ as H,P_ as I,sN as J,X2 as K,gN as L,MN as M,J2 as N,Q2 as O,Qo as P,sA as Q,ve as R,y2 as S,Wo as T,LT as U,Ws as V,ZC as W,hz as X,Nv as Y,PT as Z,$m as _,Hb as a,vT as a0,vz as a1,ET as a2,TT as a3,pN as a4,ap as a5,aA as a6,Ym as a7,Om as a8,oN as a9,le as aA,xi as aB,Cn as aa,zN as ab,Im as ac,uN as ad,wN as ae,ht as af,jA as ag,nN as ah,cN as ai,W2 as aj,EN as ak,NN as al,TN as am,zv as an,bN as ao,kN as ap,ix as aq,jN as ar,hN as as,HC as at,qC as au,dN as av,vN as aw,yN as ax,am as ay,Hm as az,mA as b,Fb as c,y as d,CN as e,fN as f,pA as g,En as h,SN as i,w as j,AN as k,Ps as l,Us as m,_N as n,mN as o,lN as p,gy as q,Hl as r,l2 as s,rN as t,Zo as u,me as v,I_ as w,L2 as x,je as y,DN as z};
+ `},gz={onDragStart(o){let{active:n}=o;return"Picked up draggable item "+n.id+"."},onDragOver(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was moved over droppable area "+u.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was dropped over droppable area "+u.id:"Draggable item "+n.id+" was dropped."},onDragCancel(o){let{active:n}=o;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function hz(o){let{announcements:n=gz,container:u,hiddenTextDescribedById:l,screenReaderInstructions:d=fz}=o;const{announce:c,announcement:f}=cz(),p=ar("DndLiveRegion"),[h,k]=y.useState(!1);if(y.useEffect(()=>{k(!0)},[]),mz(y.useMemo(()=>({onDragStart(g){let{active:b}=g;c(n.onDragStart({active:b}))},onDragMove(g){let{active:b,over:S}=g;n.onDragMove&&c(n.onDragMove({active:b,over:S}))},onDragOver(g){let{active:b,over:S}=g;c(n.onDragOver({active:b,over:S}))},onDragEnd(g){let{active:b,over:S}=g;c(n.onDragEnd({active:b,over:S}))},onDragCancel(g){let{active:b,over:S}=g;c(n.onDragCancel({active:b,over:S}))}}),[c,n])),!h)return null;const _=ve.createElement(ve.Fragment,null,ve.createElement(uz,{id:l,value:d.draggable}),ve.createElement(dz,{id:p,announcement:f}));return u?Cn.createPortal(_,u):_}var ut;(function(o){o.DragStart="dragStart",o.DragMove="dragMove",o.DragEnd="dragEnd",o.DragCancel="dragCancel",o.DragOver="dragOver",o.RegisterDroppable="registerDroppable",o.SetDroppableDisabled="setDroppableDisabled",o.UnregisterDroppable="unregisterDroppable"})(ut||(ut={}));function $l(){}function Nv(o,n){return y.useMemo(()=>({sensor:o,options:n??{}}),[o,n])}function _z(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>[...n].filter(l=>l!=null),[...n])}const Da=Object.freeze({x:0,y:0});function xy(o,n){return Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))}function zy(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return u-l}function vz(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return l-u}function Ev(o){let{left:n,top:u,height:l,width:d}=o;return[{x:n,y:u},{x:n+d,y:u},{x:n,y:u+l},{x:n+d,y:u+l}]}function Ty(o,n){if(!o||o.length===0)return null;const[u]=o;return u[n]}function Dv(o,n,u){return n===void 0&&(n=o.left),u===void 0&&(u=o.top),{x:n+o.width*.5,y:u+o.height*.5}}const bz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Dv(n,n.left,n.top),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=xy(Dv(h),d);c.push({id:p,data:{droppableContainer:f,value:k}})}}return c.sort(zy)},yz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Ev(n),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=Ev(h),_=d.reduce((b,S,C)=>b+xy(k[C],S),0),g=Number((_/4).toFixed(4));c.push({id:p,data:{droppableContainer:f,value:g}})}}return c.sort(zy)};function kz(o,n){const u=Math.max(n.top,o.top),l=Math.max(n.left,o.left),d=Math.min(n.left+n.width,o.left+o.width),c=Math.min(n.top+n.height,o.top+o.height),f=d-l,p=c-u;if(l<d&&u<c){const h=n.width*n.height,k=o.width*o.height,_=f*p,g=_/(h+k-_);return Number(g.toFixed(4))}return 0}const wz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=[];for(const c of l){const{id:f}=c,p=u.get(f);if(p){const h=kz(p,n);h>0&&d.push({id:f,data:{droppableContainer:c,value:h}})}}return d.sort(vz)};function Sz(o,n,u){return{...o,scaleX:n&&u?n.width/u.width:1,scaleY:n&&u?n.height/u.height:1}}function Ny(o,n){return o&&n?{x:o.left-n.left,y:o.top-n.top}:Da}function Mz(o){return function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),c=1;c<l;c++)d[c-1]=arguments[c];return d.reduce((f,p)=>({...f,top:f.top+o*p.y,bottom:f.bottom+o*p.y,left:f.left+o*p.x,right:f.right+o*p.x}),{...u})}}const Cz=Mz(1);function Az(o){if(o.startsWith("matrix3d(")){const n=o.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(o.startsWith("matrix(")){const n=o.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function xz(o,n,u){const l=Az(n);if(!l)return o;const{scaleX:d,scaleY:c,x:f,y:p}=l,h=o.left-f-(1-d)*parseFloat(u),k=o.top-p-(1-c)*parseFloat(u.slice(u.indexOf(" ")+1)),_=d?o.width/d:o.width,g=c?o.height/c:o.height;return{width:_,height:g,top:k,right:h+_,bottom:k+g,left:h}}const zz={ignoreTransform:!1};function On(o,n){n===void 0&&(n=zz);let u=o.getBoundingClientRect();if(n.ignoreTransform){const{transform:k,transformOrigin:_}=Qt(o).getComputedStyle(o);k&&(u=xz(u,k,_))}const{top:l,left:d,width:c,height:f,bottom:p,right:h}=u;return{top:l,left:d,width:c,height:f,bottom:p,right:h}}function jv(o){return On(o,{ignoreTransform:!0})}function Tz(o){const n=o.innerWidth,u=o.innerHeight;return{top:0,left:0,right:n,bottom:u,width:n,height:u}}function Nz(o,n){return n===void 0&&(n=Qt(o).getComputedStyle(o)),n.position==="fixed"}function Ez(o,n){n===void 0&&(n=Qt(o).getComputedStyle(o));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(d=>{const c=n[d];return typeof c=="string"?u.test(c):!1})}function _u(o,n){const u=[];function l(d){if(n!=null&&u.length>=n||!d)return u;if(Qm(d)&&d.scrollingElement!=null&&!u.includes(d.scrollingElement))return u.push(d.scrollingElement),u;if(!er(d)||My(d)||u.includes(d))return u;const c=Qt(o).getComputedStyle(d);return d!==o&&Ez(d,c)&&u.push(d),Nz(d,c)?u:l(d.parentNode)}return o?l(o):u}function Ey(o){const[n]=_u(o,1);return n??null}function hm(o){return!hu||!o?null:Dn(o)?o:Wm(o)?Qm(o)||o===jn(o).scrollingElement?window:er(o)?o:null:null}function Dy(o){return Dn(o)?o.scrollX:o.scrollLeft}function jy(o){return Dn(o)?o.scrollY:o.scrollTop}function Em(o){return{x:Dy(o),y:jy(o)}}var gt;(function(o){o[o.Forward=1]="Forward",o[o.Backward=-1]="Backward"})(gt||(gt={}));function Oy(o){return!hu||!o?!1:o===document.scrollingElement}function qy(o){const n={x:0,y:0},u=Oy(o)?{height:window.innerHeight,width:window.innerWidth}:{height:o.clientHeight,width:o.clientWidth},l={x:o.scrollWidth-u.width,y:o.scrollHeight-u.height},d=o.scrollTop<=n.y,c=o.scrollLeft<=n.x,f=o.scrollTop>=l.y,p=o.scrollLeft>=l.x;return{isTop:d,isLeft:c,isBottom:f,isRight:p,maxScroll:l,minScroll:n}}const Dz={x:.2,y:.2};function jz(o,n,u,l,d){let{top:c,left:f,right:p,bottom:h}=u;l===void 0&&(l=10),d===void 0&&(d=Dz);const{isTop:k,isBottom:_,isLeft:g,isRight:b}=qy(o),S={x:0,y:0},C={x:0,y:0},A={height:n.height*d.y,width:n.width*d.x};return!k&&c<=n.top+A.height?(S.y=gt.Backward,C.y=l*Math.abs((n.top+A.height-c)/A.height)):!_&&h>=n.bottom-A.height&&(S.y=gt.Forward,C.y=l*Math.abs((n.bottom-A.height-h)/A.height)),!b&&p>=n.right-A.width?(S.x=gt.Forward,C.x=l*Math.abs((n.right-A.width-p)/A.width)):!g&&f<=n.left+A.width&&(S.x=gt.Backward,C.x=l*Math.abs((n.left+A.width-f)/A.width)),{direction:S,speed:C}}function Oz(o){if(o===document.scrollingElement){const{innerWidth:c,innerHeight:f}=window;return{top:0,left:0,right:c,bottom:f,width:c,height:f}}const{top:n,left:u,right:l,bottom:d}=o.getBoundingClientRect();return{top:n,left:u,right:l,bottom:d,width:o.clientWidth,height:o.clientHeight}}function Ry(o){return o.reduce((n,u)=>zn(n,Em(u)),Da)}function qz(o){return o.reduce((n,u)=>n+Dy(u),0)}function Rz(o){return o.reduce((n,u)=>n+jy(u),0)}function Bz(o,n){if(n===void 0&&(n=On),!o)return;const{top:u,left:l,bottom:d,right:c}=n(o);Ey(o)&&(d<=0||c<=0||u>=window.innerHeight||l>=window.innerWidth)&&o.scrollIntoView({block:"center",inline:"center"})}const Lz=[["x",["left","right"],qz],["y",["top","bottom"],Rz]];class Jm{constructor(n,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=_u(u),d=Ry(l);this.rect={...n},this.width=n.width,this.height=n.height;for(const[c,f,p]of Lz)for(const h of f)Object.defineProperty(this,h,{get:()=>{const k=p(l),_=d[c]-k;return this.rect[h]+_},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Rs{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...u)})},this.target=n}add(n,u,l){var d;(d=this.target)==null||d.addEventListener(n,u,l),this.listeners.push([n,u,l])}}function Iz(o){const{EventTarget:n}=Qt(o);return o instanceof n?o:jn(o)}function _m(o,n){const u=Math.abs(o.x),l=Math.abs(o.y);return typeof n=="number"?Math.sqrt(u**2+l**2)>n:"x"in n&&"y"in n?u>n.x&&l>n.y:"x"in n?u>n.x:"y"in n?l>n.y:!1}var ka;(function(o){o.Click="click",o.DragStart="dragstart",o.Keydown="keydown",o.ContextMenu="contextmenu",o.Resize="resize",o.SelectionChange="selectionchange",o.VisibilityChange="visibilitychange"})(ka||(ka={}));function Ov(o){o.preventDefault()}function Uz(o){o.stopPropagation()}var Ee;(function(o){o.Space="Space",o.Down="ArrowDown",o.Right="ArrowRight",o.Left="ArrowLeft",o.Up="ArrowUp",o.Esc="Escape",o.Enter="Enter",o.Tab="Tab"})(Ee||(Ee={}));const By={start:[Ee.Space,Ee.Enter],cancel:[Ee.Esc],end:[Ee.Space,Ee.Enter,Ee.Tab]},Pz=(o,n)=>{let{currentCoordinates:u}=n;switch(o.code){case Ee.Right:return{...u,x:u.x+25};case Ee.Left:return{...u,x:u.x-25};case Ee.Down:return{...u,y:u.y+25};case Ee.Up:return{...u,y:u.y-25}}};class $m{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:u}}=n;this.props=n,this.listeners=new Rs(jn(u)),this.windowListeners=new Rs(Qt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ka.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:u}=this.props,l=n.node.current;l&&Bz(l),u(Da)}handleKeyDown(n){if(Xm(n)){const{active:u,context:l,options:d}=this.props,{keyboardCodes:c=By,coordinateGetter:f=Pz,scrollBehavior:p="smooth"}=d,{code:h}=n;if(c.end.includes(h)){this.handleEnd(n);return}if(c.cancel.includes(h)){this.handleCancel(n);return}const{collisionRect:k}=l.current,_=k?{x:k.left,y:k.top}:Da;this.referenceCoordinates||(this.referenceCoordinates=_);const g=f(n,{active:u,context:l.current,currentCoordinates:_});if(g){const b=Ys(g,_),S={x:0,y:0},{scrollableAncestors:C}=l.current;for(const A of C){const x=n.code,{isTop:T,isRight:z,isLeft:L,isBottom:G,maxScroll:Q,minScroll:H}=qy(A),j=Oz(A),q={x:Math.min(x===Ee.Right?j.right-j.width/2:j.right,Math.max(x===Ee.Right?j.left:j.left+j.width/2,g.x)),y:Math.min(x===Ee.Down?j.bottom-j.height/2:j.bottom,Math.max(x===Ee.Down?j.top:j.top+j.height/2,g.y))},V=x===Ee.Right&&!z||x===Ee.Left&&!L,$=x===Ee.Down&&!G||x===Ee.Up&&!T;if(V&&q.x!==g.x){const W=A.scrollLeft+b.x,ee=x===Ee.Right&&W<=Q.x||x===Ee.Left&&W>=H.x;if(ee&&!b.y){A.scrollTo({left:W,behavior:p});return}ee?S.x=A.scrollLeft-W:S.x=x===Ee.Right?A.scrollLeft-Q.x:A.scrollLeft-H.x,S.x&&A.scrollBy({left:-S.x,behavior:p});break}else if($&&q.y!==g.y){const W=A.scrollTop+b.y,ee=x===Ee.Down&&W<=Q.y||x===Ee.Up&&W>=H.y;if(ee&&!b.x){A.scrollTo({top:W,behavior:p});return}ee?S.y=A.scrollTop-W:S.y=x===Ee.Down?A.scrollTop-Q.y:A.scrollTop-H.y,S.y&&A.scrollBy({top:-S.y,behavior:p});break}}this.handleMove(n,zn(Ys(g,this.referenceCoordinates),S))}}}handleMove(n,u){const{onMove:l}=this.props;n.preventDefault(),l(u)}handleEnd(n){const{onEnd:u}=this.props;n.preventDefault(),this.detach(),u()}handleCancel(n){const{onCancel:u}=this.props;n.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}$m.activators=[{eventName:"onKeyDown",handler:(o,n,u)=>{let{keyboardCodes:l=By,onActivation:d}=n,{active:c}=u;const{code:f}=o.nativeEvent;if(l.start.includes(f)){const p=c.activatorNode.current;return p&&o.target!==p?!1:(o.preventDefault(),d?.({event:o.nativeEvent}),!0)}return!1}}];function qv(o){return!!(o&&"distance"in o)}function Rv(o){return!!(o&&"delay"in o)}class ep{constructor(n,u,l){var d;l===void 0&&(l=Iz(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=u;const{event:c}=n,{target:f}=c;this.props=n,this.events=u,this.document=jn(f),this.documentListeners=new Rs(this.document),this.listeners=new Rs(l),this.windowListeners=new Rs(Qt(f)),this.initialCoordinates=(d=Nm(c))!=null?d:Da,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:u,bypassActivationConstraint:l}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.DragStart,Ov),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),this.windowListeners.add(ka.ContextMenu,Ov),this.documentListeners.add(ka.Keydown,this.handleKeydown),u){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Rv(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(qv(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,u){const{active:l,onPending:d}=this.props;d(l,n,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:n}=this,{onStart:u}=this.props;n&&(this.activated=!0,this.documentListeners.add(ka.Click,Uz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ka.SelectionChange,this.removeTextSelection),u(n))}handleMove(n){var u;const{activated:l,initialCoordinates:d,props:c}=this,{onMove:f,options:{activationConstraint:p}}=c;if(!d)return;const h=(u=Nm(n))!=null?u:Da,k=Ys(d,h);if(!l&&p){if(qv(p)){if(p.tolerance!=null&&_m(k,p.tolerance))return this.handleCancel();if(_m(k,p.distance))return this.handleStart()}if(Rv(p)&&_m(k,p.tolerance))return this.handleCancel();this.handlePending(p,k);return}n.cancelable&&n.preventDefault(),f(h)}handleEnd(){const{onAbort:n,onEnd:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleCancel(){const{onAbort:n,onCancel:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleKeydown(n){n.code===Ee.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Hz={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tp extends ep{constructor(n){const{event:u}=n,l=jn(u.target);super(n,Hz,l)}}tp.activators=[{eventName:"onPointerDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return!u.isPrimary||u.button!==0?!1:(l?.({event:u}),!0)}}];const Fz={move:{name:"mousemove"},end:{name:"mouseup"}};var Dm;(function(o){o[o.RightClick=2]="RightClick"})(Dm||(Dm={}));class Vz extends ep{constructor(n){super(n,Fz,jn(n.event.target))}}Vz.activators=[{eventName:"onMouseDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return u.button===Dm.RightClick?!1:(l?.({event:u}),!0)}}];const vm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Gz extends ep{constructor(n){super(n,vm)}static setup(){return window.addEventListener(vm.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(vm.move.name,n)};function n(){}}}Gz.activators=[{eventName:"onTouchStart",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;const{touches:d}=u;return d.length>1?!1:(l?.({event:u}),!0)}}];var Bs;(function(o){o[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect"})(Bs||(Bs={}));var eu;(function(o){o[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder"})(eu||(eu={}));function Kz(o){let{acceleration:n,activator:u=Bs.Pointer,canScroll:l,draggingRect:d,enabled:c,interval:f=5,order:p=eu.TreeOrder,pointerCoordinates:h,scrollableAncestors:k,scrollableAncestorRects:_,delta:g,threshold:b}=o;const S=Wz({delta:g,disabled:!c}),[C,A]=iz(),x=y.useRef({x:0,y:0}),T=y.useRef({x:0,y:0}),z=y.useMemo(()=>{switch(u){case Bs.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case Bs.DraggableRect:return d}},[u,d,h]),L=y.useRef(null),G=y.useCallback(()=>{const H=L.current;if(!H)return;const j=x.current.x*T.current.x,q=x.current.y*T.current.y;H.scrollBy(j,q)},[]),Q=y.useMemo(()=>p===eu.TreeOrder?[...k].reverse():k,[p,k]);y.useEffect(()=>{if(!c||!k.length||!z){A();return}for(const H of Q){if(l?.(H)===!1)continue;const j=k.indexOf(H),q=_[j];if(!q)continue;const{direction:V,speed:$}=jz(H,q,z,n,b);for(const W of["x","y"])S[W][V[W]]||($[W]=0,V[W]=0);if($.x>0||$.y>0){A(),L.current=H,C(G,f),x.current=$,T.current=V;return}}x.current={x:0,y:0},T.current={x:0,y:0},A()},[n,G,l,A,c,f,JSON.stringify(z),JSON.stringify(S),C,k,Q,_,JSON.stringify(b)])}const Yz={x:{[gt.Backward]:!1,[gt.Forward]:!1},y:{[gt.Backward]:!1,[gt.Forward]:!1}};function Wz(o){let{delta:n,disabled:u}=o;const l=Tm(n);return tr(d=>{if(u||!l||!d)return Yz;const c={x:Math.sign(n.x-l.x),y:Math.sign(n.y-l.y)};return{x:{[gt.Backward]:d.x[gt.Backward]||c.x===-1,[gt.Forward]:d.x[gt.Forward]||c.x===1},y:{[gt.Backward]:d.y[gt.Backward]||c.y===-1,[gt.Forward]:d.y[gt.Forward]||c.y===1}}},[u,n,l])}function Qz(o,n){const u=n!=null?o.get(n):void 0,l=u?u.node.current:null;return tr(d=>{var c;return n==null?null:(c=l??d)!=null?c:null},[l,n])}function Zz(o,n){return y.useMemo(()=>o.reduce((u,l)=>{const{sensor:d}=l,c=d.activators.map(f=>({eventName:f.eventName,handler:n(f.handler,l)}));return[...u,...c]},[]),[o,n])}var Qs;(function(o){o[o.Always=0]="Always",o[o.BeforeDragging=1]="BeforeDragging",o[o.WhileDragging=2]="WhileDragging"})(Qs||(Qs={}));var jm;(function(o){o.Optimized="optimized"})(jm||(jm={}));const Bv=new Map;function Xz(o,n){let{dragging:u,dependencies:l,config:d}=n;const[c,f]=y.useState(null),{frequency:p,measure:h,strategy:k}=d,_=y.useRef(o),g=x(),b=Ks(g),S=y.useCallback(function(T){T===void 0&&(T=[]),!b.current&&f(z=>z===null?T:z.concat(T.filter(L=>!z.includes(L))))},[b]),C=y.useRef(null),A=tr(T=>{if(g&&!u)return Bv;if(!T||T===Bv||_.current!==o||c!=null){const z=new Map;for(let L of o){if(!L)continue;if(c&&c.length>0&&!c.includes(L.id)&&L.rect.current){z.set(L.id,L.rect.current);continue}const G=L.node.current,Q=G?new Jm(h(G),G):null;L.rect.current=Q,Q&&z.set(L.id,Q)}return z}return T},[o,c,u,g,h]);return y.useEffect(()=>{_.current=o},[o]),y.useEffect(()=>{g||S()},[u,g]),y.useEffect(()=>{c&&c.length>0&&f(null)},[JSON.stringify(c)]),y.useEffect(()=>{g||typeof p!="number"||C.current!==null||(C.current=setTimeout(()=>{S(),C.current=null},p))},[p,g,S,...l]),{droppableRects:A,measureDroppableContainers:S,measuringScheduled:c!=null};function x(){switch(k){case Qs.Always:return!1;case Qs.BeforeDragging:return u;default:return!u}}}function Ly(o,n){return tr(u=>o?u||(typeof n=="function"?n(o):o):null,[n,o])}function Jz(o,n){return Ly(o,n)}function $z(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:c}=window;return new c(l)},[l,u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function vu(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:c}=window;return new c(l)},[u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function eT(o){return new Jm(On(o),o)}function Lv(o,n,u){n===void 0&&(n=eT);const[l,d]=y.useState(null);function c(){d(h=>{if(!o)return null;if(o.isConnected===!1){var k;return(k=h??u)!=null?k:null}const _=n(o);return JSON.stringify(h)===JSON.stringify(_)?h:_})}const f=$z({callback(h){if(o)for(const k of h){const{type:_,target:g}=k;if(_==="childList"&&g instanceof HTMLElement&&g.contains(o)){c();break}}}}),p=vu({callback:c});return Za(()=>{c(),o?(p?.observe(o),f?.observe(document.body,{childList:!0,subtree:!0})):(p?.disconnect(),f?.disconnect())},[o]),l}function tT(o){const n=Ly(o);return Ny(o,n)}const Iv=[];function aT(o){const n=y.useRef(o),u=tr(l=>o?l&&l!==Iv&&o&&n.current&&o.parentNode===n.current.parentNode?l:_u(o):Iv,[o]);return y.useEffect(()=>{n.current=o},[o]),u}function oT(o){const[n,u]=y.useState(null),l=y.useRef(o),d=y.useCallback(c=>{const f=hm(c.target);f&&u(p=>p?(p.set(f,Em(f)),new Map(p)):null)},[]);return y.useEffect(()=>{const c=l.current;if(o!==c){f(c);const p=o.map(h=>{const k=hm(h);return k?(k.addEventListener("scroll",d,{passive:!0}),[k,Em(k)]):null}).filter(h=>h!=null);u(p.length?new Map(p):null),l.current=o}return()=>{f(o),f(c)};function f(p){p.forEach(h=>{const k=hm(h);k?.removeEventListener("scroll",d)})}},[d,o]),y.useMemo(()=>o.length?n?Array.from(n.values()).reduce((c,f)=>zn(c,f),Da):Ry(o):Da,[o,n])}function Uv(o,n){n===void 0&&(n=[]);const u=y.useRef(null);return y.useEffect(()=>{u.current=null},n),y.useEffect(()=>{const l=o!==Da;l&&!u.current&&(u.current=o),!l&&u.current&&(u.current=null)},[o]),u.current?Ys(o,u.current):Da}function iT(o){y.useEffect(()=>{if(!hu)return;const n=o.map(u=>{let{sensor:l}=u;return l.setup==null?void 0:l.setup()});return()=>{for(const u of n)u?.()}},o.map(n=>{let{sensor:u}=n;return u}))}function nT(o,n){return y.useMemo(()=>o.reduce((u,l)=>{let{eventName:d,handler:c}=l;return u[d]=f=>{c(f,n)},u},{}),[o,n])}function Iy(o){return y.useMemo(()=>o?Tz(o):null,[o])}const Pv=[];function sT(o,n){n===void 0&&(n=On);const[u]=o,l=Iy(u?Qt(u):null),[d,c]=y.useState(Pv);function f(){c(()=>o.length?o.map(h=>Oy(h)?l:new Jm(n(h),h)):Pv)}const p=vu({callback:f});return Za(()=>{p?.disconnect(),f(),o.forEach(h=>p?.observe(h))},[o]),d}function rT(o){if(!o)return null;if(o.children.length>1)return o;const n=o.children[0];return er(n)?n:o}function lT(o){let{measure:n}=o;const[u,l]=y.useState(null),d=y.useCallback(k=>{for(const{target:_}of k)if(er(_)){l(g=>{const b=n(_);return g?{...g,width:b.width,height:b.height}:b});break}},[n]),c=vu({callback:d}),f=y.useCallback(k=>{const _=rT(k);c?.disconnect(),_&&c?.observe(_),l(_?n(_):null)},[n,c]),[p,h]=Jl(f);return y.useMemo(()=>({nodeRef:p,rect:u,setRef:h}),[u,p,h])}const uT=[{sensor:tp,options:{}},{sensor:$m,options:{}}],dT={current:{}},Pl={draggable:{measure:jv},droppable:{measure:jv,strategy:Qs.WhileDragging,frequency:jm.Optimized},dragOverlay:{measure:On}};class Ls extends Map{get(n){var u;return n!=null&&(u=super.get(n))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:u}=n;return!u})}getNodeFor(n){var u,l;return(u=(l=this.get(n))==null?void 0:l.node.current)!=null?u:void 0}}const cT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ls,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:$l},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pl,measureDroppableContainers:$l,windowRect:null,measuringScheduled:!1},mT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:$l,draggableNodes:new Map,over:null,measureDroppableContainers:$l},bu=y.createContext(mT),Uy=y.createContext(cT);function pT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ls}}}function fT(o,n){switch(n.type){case ut.DragStart:return{...o,draggable:{...o.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case ut.DragMove:return o.draggable.active==null?o:{...o,draggable:{...o.draggable,translate:{x:n.coordinates.x-o.draggable.initialCoordinates.x,y:n.coordinates.y-o.draggable.initialCoordinates.y}}};case ut.DragEnd:case ut.DragCancel:return{...o,draggable:{...o.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ut.RegisterDroppable:{const{element:u}=n,{id:l}=u,d=new Ls(o.droppable.containers);return d.set(l,u),{...o,droppable:{...o.droppable,containers:d}}}case ut.SetDroppableDisabled:{const{id:u,key:l,disabled:d}=n,c=o.droppable.containers.get(u);if(!c||l!==c.key)return o;const f=new Ls(o.droppable.containers);return f.set(u,{...c,disabled:d}),{...o,droppable:{...o.droppable,containers:f}}}case ut.UnregisterDroppable:{const{id:u,key:l}=n,d=o.droppable.containers.get(u);if(!d||l!==d.key)return o;const c=new Ls(o.droppable.containers);return c.delete(u),{...o,droppable:{...o.droppable,containers:c}}}default:return o}}function gT(o){let{disabled:n}=o;const{active:u,activatorEvent:l,draggableNodes:d}=y.useContext(bu),c=Tm(l),f=Tm(u?.id);return y.useEffect(()=>{if(!n&&!l&&c&&f!=null){if(!Xm(c)||document.activeElement===c.target)return;const p=d.get(f);if(!p)return;const{activatorNode:h,node:k}=p;if(!h.current&&!k.current)return;requestAnimationFrame(()=>{for(const _ of[h.current,k.current]){if(!_)continue;const g=rz(_);if(g){g.focus();break}}})}},[l,n,d,f,c]),null}function hT(o,n){let{transform:u,...l}=n;return o!=null&&o.length?o.reduce((d,c)=>c({transform:d,...l}),u):u}function _T(o){return y.useMemo(()=>({draggable:{...Pl.draggable,...o?.draggable},droppable:{...Pl.droppable,...o?.droppable},dragOverlay:{...Pl.dragOverlay,...o?.dragOverlay}}),[o?.draggable,o?.droppable,o?.dragOverlay])}function vT(o){let{activeNode:n,measure:u,initialRect:l,config:d=!0}=o;const c=y.useRef(!1),{x:f,y:p}=typeof d=="boolean"?{x:d,y:d}:d;Za(()=>{if(!f&&!p||!n){c.current=!1;return}if(c.current||!l)return;const k=n?.node.current;if(!k||k.isConnected===!1)return;const _=u(k),g=Ny(_,l);if(f||(g.x=0),p||(g.y=0),c.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const b=Ey(k);b&&b.scrollBy({top:g.y,left:g.x})}},[n,f,p,l,u])}const Py=y.createContext({...Da,scaleX:1,scaleY:1});var Ko;(function(o){o[o.Uninitialized=0]="Uninitialized",o[o.Initializing=1]="Initializing",o[o.Initialized=2]="Initialized"})(Ko||(Ko={}));const bT=y.memo(function(n){var u,l,d,c;let{id:f,accessibility:p,autoScroll:h=!0,children:k,sensors:_=uT,collisionDetection:g=wz,measuring:b,modifiers:S,...C}=n;const A=y.useReducer(fT,void 0,pT),[x,T]=A,[z,L]=pz(),[G,Q]=y.useState(Ko.Uninitialized),H=G===Ko.Initialized,{draggable:{active:j,nodes:q,translate:V},droppable:{containers:$}}=x,W=j!=null?q.get(j):null,ee=y.useRef({initial:null,translated:null}),ae=y.useMemo(()=>{var rt;return j!=null?{id:j,data:(rt=W?.data)!=null?rt:dT,rect:ee}:null},[j,W]),X=y.useRef(null),[Y,I]=y.useState(null),[N,K]=y.useState(null),ie=Ks(C,Object.values(C)),ne=ar("DndDescribedBy",f),ye=y.useMemo(()=>$.getEnabled(),[$]),Ae=_T(b),{droppableRects:Ve,measureDroppableContainers:D,measuringScheduled:te}=Xz(ye,{dragging:H,dependencies:[V.x,V.y],config:Ae.droppable}),se=Qz(q,j),ce=y.useMemo(()=>N?Nm(N):null,[N]),ke=sr(),we=Jz(se,Ae.draggable.measure);vT({activeNode:j!=null?q.get(j):null,config:ke.layoutShiftCompensation,initialRect:we,measure:Ae.draggable.measure});const pe=Lv(se,Ae.draggable.measure,we),ue=Lv(se?se.parentElement:null),fe=y.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Ve,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:$,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ct=$.getNodeFor((u=fe.current.over)==null?void 0:u.id),Zt=lT({measure:Ae.dragOverlay.measure}),Xt=(l=Zt.nodeRef.current)!=null?l:se,_t=H?(d=Zt.rect)!=null?d:pe:null,tt=!!(Zt.nodeRef.current&&Zt.rect),Le=tT(tt?null:pe),Bt=Iy(Xt?Qt(Xt):null),Lt=aT(H?Ct??se:null),Jt=sT(Lt),Xa=hT(S,{transform:{x:V.x-Le.x,y:V.y-Le.y,scaleX:1,scaleY:1},activatorEvent:N,active:ae,activeNodeRect:pe,containerNodeRect:ue,draggingNodeRect:_t,over:fe.current.over,overlayNodeRect:Zt.rect,scrollableAncestors:Lt,scrollableAncestorRects:Jt,windowRect:Bt}),$o=ce?zn(ce,V):null,Ja=oT(Lt),qn=Uv(Ja),Ei=Uv(Ja,[pe]),ja=zn(Xa,qn),$a=_t?Cz(_t,Xa):null,It=ae&&$a?g({active:ae,collisionRect:$a,droppableRects:Ve,droppableContainers:ye,pointerCoordinates:$o}):null,Di=Ty(It,"id"),[ua,or]=y.useState(null),ir=tt?Xa:zn(Xa,Ei),Rn=Sz(ir,(c=ua?.rect)!=null?c:null,pe),ei=y.useRef(null),ji=y.useCallback((rt,dt)=>{let{sensor:Nt,options:wa}=dt;if(X.current==null)return;const Ut=q.get(X.current);if(!Ut)return;const Et=rt.nativeEvent,At=new Nt({active:X.current,activeNode:Ut,event:Et,options:wa,context:fe,onAbort(Ke){if(!q.get(Ke))return;const{onDragAbort:da}=ie.current,Sa={id:Ke};da?.(Sa),z({type:"onDragAbort",event:Sa})},onPending(Ke,Xe,da,Sa){if(!q.get(Ke))return;const{onDragPending:Oa}=ie.current,$t={id:Ke,constraint:Xe,initialCoordinates:da,offset:Sa};Oa?.($t),z({type:"onDragPending",event:$t})},onStart(Ke){const Xe=X.current;if(Xe==null)return;const da=q.get(Xe);if(!da)return;const{onDragStart:Sa}=ie.current,ti={activatorEvent:Et,active:{id:Xe,data:da.data,rect:ee}};Cn.unstable_batchedUpdates(()=>{Sa?.(ti),Q(Ko.Initializing),T({type:ut.DragStart,initialCoordinates:Ke,active:Xe}),z({type:"onDragStart",event:ti}),I(ei.current),K(Et)})},onMove(Ke){T({type:ut.DragMove,coordinates:Ke})},onEnd:at(ut.DragEnd),onCancel:at(ut.DragCancel)});ei.current=At;function at(Ke){return async function(){const{active:da,collisions:Sa,over:ti,scrollAdjustedTranslate:Oa}=fe.current;let $t=null;if(da&&Oa){const{cancelDrop:qa}=ie.current;$t={activatorEvent:Et,active:da,collisions:Sa,delta:Oa,over:ti},Ke===ut.DragEnd&&typeof qa=="function"&&await Promise.resolve(qa($t))&&(Ke=ut.DragCancel)}X.current=null,Cn.unstable_batchedUpdates(()=>{T({type:Ke}),Q(Ko.Uninitialized),or(null),I(null),K(null),ei.current=null;const qa=Ke===ut.DragEnd?"onDragEnd":"onDragCancel";if($t){const Ma=ie.current[qa];Ma?.($t),z({type:qa,event:$t})}})}}},[q]),yu=y.useCallback((rt,dt)=>(Nt,wa)=>{const Ut=Nt.nativeEvent,Et=q.get(wa);if(X.current!==null||!Et||Ut.dndKit||Ut.defaultPrevented)return;const At={active:Et};rt(Nt,dt.options,At)===!0&&(Ut.dndKit={capturedBy:dt.sensor},X.current=wa,ji(Nt,dt))},[q,ji]),nr=Zz(_,yu);iT(_),Za(()=>{pe&&G===Ko.Initializing&&Q(Ko.Initialized)},[pe,G]),y.useEffect(()=>{const{onDragMove:rt}=ie.current,{active:dt,activatorEvent:Nt,collisions:wa,over:Ut}=fe.current;if(!dt||!Nt)return;const Et={active:dt,activatorEvent:Nt,collisions:wa,delta:{x:ja.x,y:ja.y},over:Ut};Cn.unstable_batchedUpdates(()=>{rt?.(Et),z({type:"onDragMove",event:Et})})},[ja.x,ja.y]),y.useEffect(()=>{const{active:rt,activatorEvent:dt,collisions:Nt,droppableContainers:wa,scrollAdjustedTranslate:Ut}=fe.current;if(!rt||X.current==null||!dt||!Ut)return;const{onDragOver:Et}=ie.current,At=wa.get(Di),at=At&&At.rect.current?{id:At.id,rect:At.rect.current,data:At.data,disabled:At.disabled}:null,Ke={active:rt,activatorEvent:dt,collisions:Nt,delta:{x:Ut.x,y:Ut.y},over:at};Cn.unstable_batchedUpdates(()=>{or(at),Et?.(Ke),z({type:"onDragOver",event:Ke})})},[Di]),Za(()=>{fe.current={activatorEvent:N,active:ae,activeNode:se,collisionRect:$a,collisions:It,droppableRects:Ve,draggableNodes:q,draggingNode:Xt,draggingNodeRect:_t,droppableContainers:$,over:ua,scrollableAncestors:Lt,scrollAdjustedTranslate:ja},ee.current={initial:_t,translated:$a}},[ae,se,It,$a,q,Xt,_t,Ve,$,ua,Lt,ja]),Kz({...ke,delta:V,draggingRect:$a,pointerCoordinates:$o,scrollableAncestors:Lt,scrollableAncestorRects:Jt});const Tt=y.useMemo(()=>({active:ae,activeNode:se,activeNodeRect:pe,activatorEvent:N,collisions:It,containerNodeRect:ue,dragOverlay:Zt,draggableNodes:q,droppableContainers:$,droppableRects:Ve,over:ua,measureDroppableContainers:D,scrollableAncestors:Lt,scrollableAncestorRects:Jt,measuringConfiguration:Ae,measuringScheduled:te,windowRect:Bt}),[ae,se,pe,N,It,ue,Zt,q,$,Ve,ua,D,Lt,Jt,Ae,te,Bt]),ku=y.useMemo(()=>({activatorEvent:N,activators:nr,active:ae,activeNodeRect:pe,ariaDescribedById:{draggable:ne},dispatch:T,draggableNodes:q,over:ua,measureDroppableContainers:D}),[N,nr,ae,pe,T,ne,q,ua,D]);return ve.createElement(Ay.Provider,{value:L},ve.createElement(bu.Provider,{value:ku},ve.createElement(Uy.Provider,{value:Tt},ve.createElement(Py.Provider,{value:Rn},k)),ve.createElement(gT,{disabled:p?.restoreFocus===!1})),ve.createElement(hz,{...p,hiddenTextDescribedById:ne}));function sr(){const rt=Y?.autoScrollEnabled===!1,dt=typeof h=="object"?h.enabled===!1:h===!1,Nt=H&&!rt&&!dt;return typeof h=="object"?{...h,enabled:Nt}:{enabled:Nt}}}),yT=y.createContext(null),Hv="button",kT="Draggable";function wT(o){let{id:n,data:u,disabled:l=!1,attributes:d}=o;const c=ar(kT),{activators:f,activatorEvent:p,active:h,activeNodeRect:k,ariaDescribedById:_,draggableNodes:g,over:b}=y.useContext(bu),{role:S=Hv,roleDescription:C="draggable",tabIndex:A=0}=d??{},x=h?.id===n,T=y.useContext(x?Py:yT),[z,L]=Jl(),[G,Q]=Jl(),H=nT(f,n),j=Ks(u);Za(()=>(g.set(n,{id:n,key:c,node:z,activatorNode:G,data:j}),()=>{const V=g.get(n);V&&V.key===c&&g.delete(n)}),[g,n]);const q=y.useMemo(()=>({role:S,tabIndex:A,"aria-disabled":l,"aria-pressed":x&&S===Hv?!0:void 0,"aria-roledescription":C,"aria-describedby":_.draggable}),[l,S,A,x,C,_.draggable]);return{active:h,activatorEvent:p,activeNodeRect:k,attributes:q,isDragging:x,listeners:l?void 0:H,node:z,over:b,setNodeRef:L,setActivatorNodeRef:Q,transform:T}}function ST(){return y.useContext(Uy)}const MT="Droppable",CT={timeout:25};function AT(o){let{data:n,disabled:u=!1,id:l,resizeObserverConfig:d}=o;const c=ar(MT),{active:f,dispatch:p,over:h,measureDroppableContainers:k}=y.useContext(bu),_=y.useRef({disabled:u}),g=y.useRef(!1),b=y.useRef(null),S=y.useRef(null),{disabled:C,updateMeasurementsFor:A,timeout:x}={...CT,...d},T=Ks(A??l),z=y.useCallback(()=>{if(!g.current){g.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{k(Array.isArray(T.current)?T.current:[T.current]),S.current=null},x)},[x]),L=vu({callback:z,disabled:C||!f}),G=y.useCallback((q,V)=>{L&&(V&&(L.unobserve(V),g.current=!1),q&&L.observe(q))},[L]),[Q,H]=Jl(G),j=Ks(n);return y.useEffect(()=>{!L||!Q.current||(L.disconnect(),g.current=!1,L.observe(Q.current))},[Q,L]),y.useEffect(()=>(p({type:ut.RegisterDroppable,element:{id:l,key:c,disabled:u,node:Q,rect:b,data:j}}),()=>p({type:ut.UnregisterDroppable,key:c,id:l})),[l]),y.useEffect(()=>{u!==_.current.disabled&&(p({type:ut.SetDroppableDisabled,id:l,key:c,disabled:u}),_.current.disabled=u)},[l,c,u,p]),{active:f,rect:b,isOver:h?.id===l,node:Q,over:h,setNodeRef:H}}function ap(o,n,u){const l=o.slice();return l.splice(u<0?l.length+u:u,0,l.splice(n,1)[0]),l}function xT(o,n){return o.reduce((u,l,d)=>{const c=n.get(l);return c&&(u[d]=c),u},Array(o.length))}function ql(o){return o!==null&&o>=0}function zT(o,n){if(o===n)return!0;if(o.length!==n.length)return!1;for(let u=0;u<o.length;u++)if(o[u]!==n[u])return!1;return!0}function TT(o){return typeof o=="boolean"?{draggable:o,droppable:o}:o}const Hy=o=>{let{rects:n,activeIndex:u,overIndex:l,index:d}=o;const c=ap(n,l,u),f=n[d],p=c[d];return!p||!f?null:{x:p.left-f.left,y:p.top-f.top,scaleX:p.width/f.width,scaleY:p.height/f.height}},Rl={scaleX:1,scaleY:1},NT=o=>{var n;let{activeIndex:u,activeNodeRect:l,index:d,rects:c,overIndex:f}=o;const p=(n=c[u])!=null?n:l;if(!p)return null;if(d===u){const k=c[f];return k?{x:0,y:u<f?k.top+k.height-(p.top+p.height):k.top-p.top,...Rl}:null}const h=ET(c,d,u);return d>u&&d<=f?{x:0,y:-p.height-h,...Rl}:d<u&&d>=f?{x:0,y:p.height+h,...Rl}:{x:0,y:0,...Rl}};function ET(o,n,u){const l=o[n],d=o[n-1],c=o[n+1];return l?u<n?d?l.top-(d.top+d.height):c?c.top-(l.top+l.height):0:c?c.top-(l.top+l.height):d?l.top-(d.top+d.height):0:0}const Fy="Sortable",Vy=ve.createContext({activeIndex:-1,containerId:Fy,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Hy,disabled:{draggable:!1,droppable:!1}});function DT(o){let{children:n,id:u,items:l,strategy:d=Hy,disabled:c=!1}=o;const{active:f,dragOverlay:p,droppableRects:h,over:k,measureDroppableContainers:_}=ST(),g=ar(Fy,u),b=p.rect!==null,S=y.useMemo(()=>l.map(H=>typeof H=="object"&&"id"in H?H.id:H),[l]),C=f!=null,A=f?S.indexOf(f.id):-1,x=k?S.indexOf(k.id):-1,T=y.useRef(S),z=!zT(S,T.current),L=x!==-1&&A===-1||z,G=TT(c);Za(()=>{z&&C&&_(S)},[z,S,C,_]),y.useEffect(()=>{T.current=S},[S]);const Q=y.useMemo(()=>({activeIndex:A,containerId:g,disabled:G,disableTransforms:L,items:S,overIndex:x,useDragOverlay:b,sortedRects:xT(S,h),strategy:d}),[A,g,G.draggable,G.droppable,L,S,x,h,b,d]);return ve.createElement(Vy.Provider,{value:Q},n)}const jT=o=>{let{id:n,items:u,activeIndex:l,overIndex:d}=o;return ap(u,l,d).indexOf(n)},OT=o=>{let{containerId:n,isSorting:u,wasDragging:l,index:d,items:c,newIndex:f,previousItems:p,previousContainerId:h,transition:k}=o;return!k||!l||p!==c&&d===f?!1:u?!0:f!==d&&n===h},qT={duration:200,easing:"ease"},Gy="transform",RT=Ws.Transition.toString({property:Gy,duration:0,easing:"linear"}),BT={roleDescription:"sortable"};function LT(o){let{disabled:n,index:u,node:l,rect:d}=o;const[c,f]=y.useState(null),p=y.useRef(u);return Za(()=>{if(!n&&u!==p.current&&l.current){const h=d.current;if(h){const k=On(l.current,{ignoreTransform:!0}),_={x:h.left-k.left,y:h.top-k.top,scaleX:h.width/k.width,scaleY:h.height/k.height};(_.x||_.y)&&f(_)}}u!==p.current&&(p.current=u)},[n,u,l,d]),y.useEffect(()=>{c&&f(null)},[c]),c}function IT(o){let{animateLayoutChanges:n=OT,attributes:u,disabled:l,data:d,getNewIndex:c=jT,id:f,strategy:p,resizeObserverConfig:h,transition:k=qT}=o;const{items:_,containerId:g,activeIndex:b,disabled:S,disableTransforms:C,sortedRects:A,overIndex:x,useDragOverlay:T,strategy:z}=y.useContext(Vy),L=UT(l,S),G=_.indexOf(f),Q=y.useMemo(()=>({sortable:{containerId:g,index:G,items:_},...d}),[g,d,G,_]),H=y.useMemo(()=>_.slice(_.indexOf(f)),[_,f]),{rect:j,node:q,isOver:V,setNodeRef:$}=AT({id:f,data:Q,disabled:L.droppable,resizeObserverConfig:{updateMeasurementsFor:H,...h}}),{active:W,activatorEvent:ee,activeNodeRect:ae,attributes:X,setNodeRef:Y,listeners:I,isDragging:N,over:K,setActivatorNodeRef:ie,transform:ne}=wT({id:f,data:Q,attributes:{...BT,...u},disabled:L.draggable}),ye=oz($,Y),Ae=!!W,Ve=Ae&&!C&&ql(b)&&ql(x),D=!T&&N,te=D&&Ve?ne:null,ce=Ve?te??(p??z)({rects:A,activeNodeRect:ae,activeIndex:b,overIndex:x,index:G}):null,ke=ql(b)&&ql(x)?c({id:f,items:_,activeIndex:b,overIndex:x}):G,we=W?.id,pe=y.useRef({activeId:we,items:_,newIndex:ke,containerId:g}),ue=_!==pe.current.items,fe=n({active:W,containerId:g,isDragging:N,isSorting:Ae,id:f,index:G,items:_,newIndex:pe.current.newIndex,previousItems:pe.current.items,previousContainerId:pe.current.containerId,transition:k,wasDragging:pe.current.activeId!=null}),Ct=LT({disabled:!fe,index:G,node:q,rect:j});return y.useEffect(()=>{Ae&&pe.current.newIndex!==ke&&(pe.current.newIndex=ke),g!==pe.current.containerId&&(pe.current.containerId=g),_!==pe.current.items&&(pe.current.items=_)},[Ae,ke,g,_]),y.useEffect(()=>{if(we===pe.current.activeId)return;if(we!=null&&pe.current.activeId==null){pe.current.activeId=we;return}const Xt=setTimeout(()=>{pe.current.activeId=we},50);return()=>clearTimeout(Xt)},[we]),{active:W,activeIndex:b,attributes:X,data:Q,rect:j,index:G,newIndex:ke,items:_,isOver:V,isSorting:Ae,isDragging:N,listeners:I,node:q,overIndex:x,over:K,setNodeRef:ye,setActivatorNodeRef:ie,setDroppableNodeRef:$,setDraggableNodeRef:Y,transform:Ct??ce,transition:Zt()};function Zt(){if(Ct||ue&&pe.current.newIndex===G)return RT;if(!(D&&!Xm(ee)||!k)&&(Ae||fe))return Ws.Transition.toString({...k,property:Gy})}}function UT(o,n){var u,l;return typeof o=="boolean"?{draggable:o,droppable:!1}:{draggable:(u=o?.draggable)!=null?u:n.draggable,droppable:(l=o?.droppable)!=null?l:n.droppable}}function tu(o){if(!o)return!1;const n=o.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const PT=[Ee.Down,Ee.Right,Ee.Up,Ee.Left],HT=(o,n)=>{let{context:{active:u,collisionRect:l,droppableRects:d,droppableContainers:c,over:f,scrollableAncestors:p}}=n;if(PT.includes(o.code)){if(o.preventDefault(),!u||!l)return;const h=[];c.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const b=d.get(g.id);if(b)switch(o.code){case Ee.Down:l.top<b.top&&h.push(g);break;case Ee.Up:l.top>b.top&&h.push(g);break;case Ee.Left:l.left>b.left&&h.push(g);break;case Ee.Right:l.left<b.left&&h.push(g);break}});const k=yz({collisionRect:l,droppableRects:d,droppableContainers:h});let _=Ty(k,"id");if(_===f?.id&&k.length>1&&(_=k[1].id),_!=null){const g=c.get(u.id),b=c.get(_),S=b?d.get(b.id):null,C=b?.node.current;if(C&&S&&g&&b){const x=_u(C).some((H,j)=>p[j]!==H),T=Ky(g,b),z=FT(g,b),L=x||!T?{x:0,y:0}:{x:z?l.width-S.width:0,y:z?l.height-S.height:0},G={x:S.left,y:S.top};return L.x&&L.y?G:Ys(G,L)}}}};function Ky(o,n){return!tu(o)||!tu(n)?!1:o.data.current.sortable.containerId===n.data.current.sortable.containerId}function FT(o,n){return!tu(o)||!tu(n)||!Ky(o,n)?!1:o.data.current.sortable.index<n.data.current.sortable.index}const VT=o=>w.jsx("div",{className:"todo-drag-handle",...o,children:w.jsx(sA,{})}),GT=({id:o,children:n})=>{const{attributes:u,listeners:l,setNodeRef:d,transform:c,transition:f}=IT({id:o}),p={transform:Ws.Transform.toString(c),transition:f};return w.jsx("div",{ref:d,style:p,children:typeof n=="function"?n({attributes:u,listeners:l}):n})},KT=({items:o,onDragEnd:n,children:u})=>{const l=_z(Nv(tp,{activationConstraint:{distance:5}}),Nv($m,{coordinateGetter:HT}));return w.jsx(bT,{sensors:l,collisionDetection:bz,onDragEnd:n,children:w.jsx(DT,{items:o,strategy:NT,children:w.jsx("div",{children:u})})})};function YT({todoRef:o,floatRef:n,position:u,xPosition:l,yPosition:d}){const c=Zo(),[f,p]=y.useState(JSON.parse(localStorage.getItem("todo"))||[]),[h,k]=y.useState(localStorage.getItem("todoPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const T=z=>{z==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",T),()=>{_e.off("refresh",T)}},[]);const b=()=>{k(!0)},S=()=>{k(localStorage.getItem("todoPinned")==="true")},C=T=>{const{active:z,over:L}=T;if(L&&z.id!==L.id){const G=Number(z.id),Q=Number(L.id);p(H=>{const j=ap(H,G,Q);return localStorage.setItem("todo",JSON.stringify(j)),j})}},A=(T,z,L)=>{p(G=>{const Q=[...G];switch(T){case"add":Q.push({value:"",done:!1});break;case"remove":Q.splice(z,1);break;case"set":Q[z]={value:L.target.value,done:Q[z].done};break;case"done":Q[z].done=!Q[z].done;break}return localStorage.setItem("todo",JSON.stringify(Q)),Q})},x=()=>{me.stats.postEvent("feature","Todo pin");const T=localStorage.getItem("todoPinned")==="true";localStorage.setItem("todoPinned",!T),k(!T)};return w.jsxs("div",{className:"notes",onMouseLeave:S,onFocus:b,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||S()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:b,onFocus:b,"aria-label":c("widgets.navbar.todo.title"),ref:o,style:{fontSize:_},children:w.jsx(L_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:w.jsxs("div",{className:"flexTodo",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(L_,{}),w.jsx("span",{children:c("widgets.navbar.todo.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:x,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.navbar.todo.add"),children:w.jsx("button",{onClick:()=>A("add"),"aria-label":c("widgets.navbar.todo.add"),children:w.jsx(VC,{})})})]}),w.jsx("div",{className:"todoRows",children:f.length===0?w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:c("widgets.navbar.todo.no_todos")}),w.jsx("span",{className:"subtitle",children:c("modals.main.settings.sections.message.add_some")})]})}):w.jsx(KT,{items:f.map((T,z)=>z),onDragEnd:C,children:f.map((T,z)=>w.jsx(GT,{id:z,children:({attributes:L,listeners:G})=>w.jsxs("div",{className:"todoRow"+(T.done?" done":""),children:[w.jsx("div",{className:"todo-checkbox"+(T.done?" checked":""),role:"checkbox","aria-checked":!!T.done,"aria-label":T.value||c("widgets.navbar.todo.title"),tabIndex:0,onClick:()=>A("done",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("done",z))},children:T.done&&w.jsx(Bm,{})}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:T.value,onChange:Q=>A("set",z,Q),readOnly:T.done,minRows:1}),w.jsx(ht,{title:c("modals.main.marketplace.product.buttons.remove"),children:w.jsx(ZC,{role:"button",tabIndex:0,"aria-label":c("modals.main.marketplace.product.buttons.remove"),onClick:()=>A("remove",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("remove",z))}})}),w.jsx(VT,{...L,...G})]})},z))})})]})})]})}function WT(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(YT,{todoRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const QT=y.memo(WT);function ZT(){const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState(localStorage.getItem("refreshOption")||"");y.useEffect(()=>{const p=h=>{(h==="navbar"||h==="background"||h==="language")&&(d(localStorage.getItem("refreshOption")),c())};return _e.on("refresh",p),c(),()=>{_e.off("refresh",p)}},[o]);function c(){let p;switch(localStorage.getItem("refreshOption")){case"background":p=o("modals.main.settings.sections.background.title");break;case"quote":p=o("modals.main.settings.sections.quote.title");break;case"quotebackground":p=new Intl.ListFormat(localStorage.getItem("language")?.replace(/_/gm,"-")||"en-GB",{style:"long",type:"conjunction"}).format([o("modals.main.settings.sections.quote.title"),o("modals.main.settings.sections.background.title")]);break;default:p=o("modals.main.settings.sections.appearance.navbar.refresh_options.page");break}u(p)}function f(){switch(l){case"background":return _e.emit("refresh","backgroundrefresh");case"quote":return _e.emit("refresh","quoterefresh");case"quotebackground":return _e.emit("refresh","quoterefresh"),_e.emit("refresh","backgroundrefresh");default:window.location.reload()}}return w.jsx(ht,{title:o("widgets.navbar.tooltips.refresh"),subtitle:n,children:w.jsx("button",{className:"navbarButton",onClick:f,"aria-label":o("widgets.navbar.tooltips.refresh"),children:w.jsx(Us,{className:"refreshicon topicons"})})})}const Yy=y.memo(({fontSize:o})=>{const n=Zo(),[u,l]=y.useState(!1),d=y.useRef(!1),c=y.useCallback(p=>{p?delete document.documentElement.dataset.bgMaximised:document.documentElement.dataset.bgMaximised="true";const h=document.getElementById("backgroundVideo");h&&(h.style.webkitFilter=p?Um():"blur(0px) brightness(100%)");const k=document.getElementById("backgroundFilterOverlay");if(k){const _=p?Pm():{backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""};k.style.backdropFilter=_.backdropFilter,k.style.webkitBackdropFilter=_.WebkitBackdropFilter,k.style.backgroundColor=_.backgroundColor}},[]);y.useEffect(()=>()=>{if(!d.current)return;const p=document.getElementById("widgets");p&&(p.style.display="flex"),c(!0)},[c]);const f=y.useCallback(()=>{const p=document.getElementById("widgets");u?(p&&(p.style.display="flex"),l(!1),d.current=!1,c(!0),me.stats.postEvent("feature","Background unmaximise")):(p&&(p.style.display="none"),l(!0),d.current=!0,c(!1),me.stats.postEvent("feature","Background maximise"))},[u,c]);return w.jsx(ht,{title:n("modals.main.settings.sections.background.buttons.view"),children:w.jsx("button",{className:"navbarButton",style:{fontSize:o},onClick:f,"aria-label":n("modals.main.settings.sections.background.buttons.view"),children:w.jsx(jC,{className:"topicons"})})})});Yy.displayName="Maximise";const XT=({openModal:o})=>{const n=Zo();y.useRef();const[u]=y.useState(localStorage.getItem("widgetStyle")==="legacy"?"navbar old":"navbar new"),l=()=>{switch(localStorage.getItem("refreshOption")){case"background":return n("modals.main.settings.sections.background.title");case"quote":return n("modals.main.settings.sections.quote.title");case"quotebackground":return n("modals.main.settings.sections.quote.title")+" "+n("modals.main.settings.sections.background.title");default:return n("modals.main.settings.sections.appearance.navbar.refresh_options.page")}},d=()=>Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem",[c,f]=y.useState(l()),[p,h]=y.useState(localStorage.getItem("refresh")),[k,_]=y.useState(localStorage.getItem("refreshOption")||""),[g,b]=y.useState(!1),[S,C]=y.useState(d()),[A,x]=y.useState(localStorage.getItem("navbarHover")==="true"),[T,z]=y.useState(localStorage.getItem("view")==="true"),[L,G]=y.useState(localStorage.getItem("notesEnabled")==="true"),[Q,H]=y.useState(localStorage.getItem("todoEnabled")==="true"),[j,q]=y.useState(localStorage.getItem("appsEnabled")==="true"),[V,$]=y.useState(localStorage.getItem("background")==="true");y.useEffect(()=>{const ee=ae=>{(ae==="navbar"||ae==="background")&&(h(localStorage.getItem("refresh")),_(localStorage.getItem("refreshOption")),x(localStorage.getItem("navbarHover")==="true"),z(localStorage.getItem("view")==="true"),G(localStorage.getItem("notesEnabled")==="true"),H(localStorage.getItem("todoEnabled")==="true"),q(localStorage.getItem("appsEnabled")==="true"),$(localStorage.getItem("background")==="true"),f(l()),C(d()))};return _e.on("refresh",ee),()=>{_e.off("refresh",ee)}},[]);const W=w.jsx("div",{className:"navbar-container",children:w.jsxs("div",{className:u,children:[T&&V?w.jsx(Yy,{fontSize:S}):null,L&&w.jsx(az,{fontSize:S}),Q&&w.jsx(QT,{fontSize:S}),j&&w.jsx(H2,{fontSize:S}),p!=="false"&&w.jsx(ZT,{fontSize:S}),w.jsx(ht,{title:n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx("button",{className:"navbarButton",onClick:()=>o("mainModal"),style:{fontSize:S},"aria-label":n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx(YC,{className:"settings-icon topicons"})})})]})});return A?w.jsx("div",{className:"navbar-hover",children:W}):W},JT=()=>{const[o,n]=y.useState(!1),[u,l]=y.useState(null),d=y.useRef(!1);d.current=o,y.useEffect(()=>{H_()&&(l(js()),n(!0));const f=h=>{h==="openMainModal"&&(l(js()),n(!0))},p=()=>{!d.current&&H_()&&(l(js()),n(!0))};return _e.on("modal",f),window.addEventListener("popstate",p),()=>{_e.off("modal",f),window.removeEventListener("popstate",p)}},[]);const c=f=>{n(f),l(null),f!==!1&&Gl("#settings")};return w.jsxs(w.Fragment,{children:[w.jsx(XT,{openModal:()=>c(!0)}),w.jsx(L2,{closeTimeoutMS:300,id:"modal",onRequestClose:()=>c(!1),isOpen:o,className:"Modal mainModal",overlayClassName:"Overlay",appElement:I2(),children:w.jsx(_2,{modalClose:()=>c(!1),deepLinkData:u})})]})},$T=o=>{y.useEffect(()=>{localStorage.getItem("firstRun")||(u2(),Hl?window.location.reload():o?.()),lm();const n=l=>{l==="other"&&lm(!0)},u=()=>{lm(!0),o?.()};return _e.on("refresh",n),_e.on("settingsimported",u),me.stats.tabLoad(),()=>{_e.off("refresh",n),_e.off("settingsimported",u)}},[])},eN=()=>{const[o,n]=y.useState(2500),[u,l]=y.useState(!1);y.useEffect(()=>{const p=localStorage.getItem("toastDisplayTime"),h=localStorage.getItem("background");p&&n(parseInt(p,10)),h==="true"&&l(!0);const k=_=>{_==="background"&&l(localStorage.getItem("background")==="true")};return _e.on("refresh",k),()=>_e.off("refresh",k)},[]);const[d,c]=y.useState(0);$T(()=>{c(p=>p+1),l(localStorage.getItem("background")==="true"),n(parseInt(localStorage.getItem("toastDisplayTime"),10)||2500)});const f=localStorage.getItem("language")||"en_GB";return w.jsxs(vC,{initialLanguage:f,children:[u&&w.jsx(IA,{},d),w.jsx(z0,{position:"top-center",autoClose:o,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0}),w.jsxs("div",{id:"center",children:[w.jsx(w2,{}),w.jsx(JT,{})]},d)]})};class tN extends y.PureComponent{constructor(n){super(n),this.state={error:!1}}componentDidCatch(n,u){this.setState({error:!0}),console.error("WebBrain new tab crashed:",n,u)}render(){return this.state.error?w.jsx("div",{className:"criticalError",children:w.jsxs("div",{className:"criticalError-message",children:[w.jsx("h1",{children:"The WebBrain new tab hit an error"}),w.jsx("p",{children:"Reload the tab. If it keeps happening, reset the new tab settings or report it."}),w.jsxs("div",{className:"criticalError-actions",children:[w.jsx("button",{onClick:()=>window.location.reload(),children:"Reload"}),w.jsx("a",{href:"https://github.com/esokullu/webbrain/issues/new",target:"_blank",rel:"noreferrer",children:"Report issue"})]})]})}):this.props.children}}const Wy=gC();localStorage.setItem("language",Wy);me.language=Bl();me.languagecode=Wy;Mm();me.getMessage=(o,n)=>Db(o)?Wt(o):me.language.getMessage(me.languagecode,o,n||{});const aN=document.getElementById("root"),oN=KS.createRoot(aN);oN.render(w.jsx(tN,{children:w.jsx(eN,{})}));export{$m as $,I2 as A,Gs as B,F2 as C,zN as D,_e as E,G2 as F,jC as G,U_ as H,L_ as I,P_ as J,rN as K,J2 as L,CN as M,hN as N,$2 as O,Z2 as P,Qo as Q,ve as R,y2 as S,Wo as T,sA as U,IT as V,Ws as W,ZC as X,_z as Y,Nv as Z,HT as _,Hb as a,tp as a0,bT as a1,bz as a2,DT as a3,NT as a4,fN as a5,ap as a6,aA as a7,Ym as a8,Om as a9,Hm as aA,le as aB,xi as aC,iN as aa,Cn as ab,TN as ac,Im as ad,dN as ae,SN as af,ht as ag,jA as ah,sN as ai,mN as aj,Q2 as ak,DN as al,EN as am,NN as an,zv as ao,yN as ap,wN as aq,ix as ar,ON as as,_N as at,HC as au,qC as av,cN as aw,bN as ax,kN as ay,am as az,mA as b,Fb as c,y as d,AN as e,gN as f,pA as g,En as h,MN as i,w as j,xN as k,Ps as l,Us as m,vN as n,pN as o,uN as p,gy as q,Hl as r,l2 as s,lN as t,Zo as u,me as v,I_ as w,L2 as x,je as y,jN as z};
diff --git a/src/firefox/newtab/assets/index-DdIzjGFh.js b/src/chrome/newtab/assets/index-bn8Kdr1t.js
similarity index 96%
rename from src/firefox/newtab/assets/index-DdIzjGFh.js
rename to src/chrome/newtab/assets/index-bn8Kdr1t.js
index bcdeffc2c..f5df0b812 100644
--- a/src/firefox/newtab/assets/index-DdIzjGFh.js
+++ b/src/chrome/newtab/assets/index-bn8Kdr1t.js
@@ -1,2 +1,2 @@
-import{j as m,d as K,aB as de}from"./index-ZvUWfRHz.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
-${n}`,pe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ve=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),be=(e,n,t)=>{const r=t===""?"":`with ${t.trim()}() `,o=he.bind(null,r,n.toString());Object.defineProperty(o,"name",ve);const{writable:i,enumerable:c,configurable:a}=pe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:c,configurable:a})};function Ne(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(n))fe(e,n,o,t);return ge(e,n),be(e,n,r),e}const v=2147483647,ke=new WeakMap,H=new WeakMap,we=new WeakMap;function ye(e,n){const t=e.get(n);if(t){if(t.maxAge<=Date.now()){e.delete(n);return}return t}}function R(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r=="number"&&Number.isFinite(r)){if(r>v)throw new TypeError(`The \`maxAge\` option cannot exceed ${v}.`);if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const o=function(...i){const c=n?n(i):i[0],a=ye(t,c);if(a)return a.data;const l=e.apply(this,i),s=typeof r=="function"?r(...i):r;if(s!==void 0&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return l;if(s>v)throw new TypeError(`The \`maxAge\` function result cannot exceed ${v}.`)}if(t.set(c,{data:l,maxAge:s===void 0||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),s!==void 0&&s!==Number.POSITIVE_INFINITY){const g=setTimeout(()=>{t.delete(c),H.get(o)?.delete(g)},s);g.unref?.();const h=H.get(o)??new Set;h.add(g),H.set(o,h)}return l};return Ne(o,e,{ignoreNonConfigurable:!0}),ke.set(o,t),we.set(o,n??(i=>i[0])),o}function Me(e){return typeof e=="string"}function Se(e,n,t){return t.indexOf(e)===n}function He(e){return e.toLowerCase()===e}function J(e){return e.indexOf(",")===-1?e:e.split(",")}function O(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var n=e.split(".")[0],t=n===void 0?"":n;return O(t)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],t=r===void 0?"":r;return O(t)}if(e.indexOf("-")===-1||!He(e))return e;var o=e.split("-"),i=o[0],c=o[1],a=c===void 0?"":c;return"".concat(i,"-").concat(a.toUpperCase())}function Oe(e){var n=e===void 0?{}:e,t=n.useFallbackLocale,r=t===void 0?!0:t,o=n.fallbackLocale,i=o===void 0?"en-US":o,c=[];if(typeof navigator<"u"){for(var a=navigator.languages||[],l=[],s=0,g=a;s<g.length;s++){var h=g[s];l=l.concat(J(h))}var p=navigator.language,b=p&&J(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=R(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=R(Le,{cacheKey:JSON.stringify});function je(e,n){return n.toLocaleString(e||Ie()||void 0)}function _e(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function Pe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Math.max.apply(Math,e.filter(_e))}function Fe(e){var n=e.className,t=e.formatHour,r=t===void 0?je:t,o=e.hourHandLength,i=o===void 0?50:o,c=e.hourHandOppositeLength,a=e.hourHandWidth,l=a===void 0?4:a,s=e.hourMarksLength,g=s===void 0?10:s,h=e.hourMarksWidth,p=h===void 0?3:h,b=e.locale,x=e.minuteHandLength,A=x===void 0?70:x,B=e.minuteHandOppositeLength,L=e.minuteHandWidth,X=L===void 0?2:L,I=e.minuteMarksLength,j=I===void 0?6:I,_=e.minuteMarksWidth,G=_===void 0?1:_,P=e.renderHourMarks,N=P===void 0?!0:P,T=e.renderMinuteHand,F=T===void 0?!0:T,W=e.renderMinuteMarks,E=W===void 0?!0:W,Q=e.renderNumbers,C=e.renderSecondHand,$=C===void 0?!0:C,U=e.secondHandLength,Z=U===void 0?90:U,ee=e.secondHandOppositeLength,V=e.secondHandWidth,ne=V===void 0?1:V,z=e.size,D=z===void 0?150:z,k=e.useMillisecondPrecision,u=e.value;function te(){if(!E)return null;for(var f=[],d=1;d<=60;d+=1){var ue=N&&!(d%5);ue||f.push(m.jsx(q,{angle:d*6,length:j,name:"minute",width:G},"minute_".concat(d)))}return f}function re(){if(!N)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(q,{angle:d*30,length:g,name:"hour",width:p},"hour_".concat(d)));return f}function oe(){if(!Q)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(le,{angle:d*30,length:Pe(N&&g,E&&j,0),name:"number",number:r(b,d)},"number_".concat(d)));return f}function ie(){return m.jsxs("div",{className:"react-clock__face",children:[te(),re(),oe()]})}function ce(){var f=u?Y(u)*30+w(u)/2+y(u)/120+(k?M(u)/12e4:0):0;return m.jsx(S,{angle:f,length:i,name:"hour",oppositeLength:c,width:l})}function se(){if(!F)return null;var f=u?Y(u)*360+w(u)*6+y(u)/10+(k?M(u)/1e4:0):0;return m.jsx(S,{angle:f,length:A,name:"minute",oppositeLength:B,width:X})}function ae(){if(!$)return null;var f=u?w(u)*360+y(u)*6+(k?M(u)*.006:0):0;return m.jsx(S,{angle:f,length:Z,name:"second",oppositeLength:ee,width:ne})}return m.jsxs("time",{className:de("react-clock",n),dateTime:u instanceof Date?u.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:F?"2-digit":void 0,second:$?"2-digit":void 0}):u||void 0,style:{width:D,height:D},children:[ie(),ce(),se(),ae()]})}export{Fe as Clock,Fe as default};
+import{j as m,d as K,aC as de}from"./index-7-Cak-QP.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
+${n}`,pe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ve=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),be=(e,n,t)=>{const r=t===""?"":`with ${t.trim()}() `,o=he.bind(null,r,n.toString());Object.defineProperty(o,"name",ve);const{writable:i,enumerable:c,configurable:a}=pe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:c,configurable:a})};function Ne(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(n))fe(e,n,o,t);return ge(e,n),be(e,n,r),e}const v=2147483647,ke=new WeakMap,H=new WeakMap,we=new WeakMap;function ye(e,n){const t=e.get(n);if(t){if(t.maxAge<=Date.now()){e.delete(n);return}return t}}function R(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r=="number"&&Number.isFinite(r)){if(r>v)throw new TypeError(`The \`maxAge\` option cannot exceed ${v}.`);if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const o=function(...i){const c=n?n(i):i[0],a=ye(t,c);if(a)return a.data;const l=e.apply(this,i),s=typeof r=="function"?r(...i):r;if(s!==void 0&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return l;if(s>v)throw new TypeError(`The \`maxAge\` function result cannot exceed ${v}.`)}if(t.set(c,{data:l,maxAge:s===void 0||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),s!==void 0&&s!==Number.POSITIVE_INFINITY){const g=setTimeout(()=>{t.delete(c),H.get(o)?.delete(g)},s);g.unref?.();const h=H.get(o)??new Set;h.add(g),H.set(o,h)}return l};return Ne(o,e,{ignoreNonConfigurable:!0}),ke.set(o,t),we.set(o,n??(i=>i[0])),o}function Me(e){return typeof e=="string"}function Se(e,n,t){return t.indexOf(e)===n}function He(e){return e.toLowerCase()===e}function J(e){return e.indexOf(",")===-1?e:e.split(",")}function O(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var n=e.split(".")[0],t=n===void 0?"":n;return O(t)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],t=r===void 0?"":r;return O(t)}if(e.indexOf("-")===-1||!He(e))return e;var o=e.split("-"),i=o[0],c=o[1],a=c===void 0?"":c;return"".concat(i,"-").concat(a.toUpperCase())}function Oe(e){var n=e===void 0?{}:e,t=n.useFallbackLocale,r=t===void 0?!0:t,o=n.fallbackLocale,i=o===void 0?"en-US":o,c=[];if(typeof navigator<"u"){for(var a=navigator.languages||[],l=[],s=0,g=a;s<g.length;s++){var h=g[s];l=l.concat(J(h))}var p=navigator.language,b=p&&J(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=R(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=R(Le,{cacheKey:JSON.stringify});function je(e,n){return n.toLocaleString(e||Ie()||void 0)}function _e(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function Pe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Math.max.apply(Math,e.filter(_e))}function Fe(e){var n=e.className,t=e.formatHour,r=t===void 0?je:t,o=e.hourHandLength,i=o===void 0?50:o,c=e.hourHandOppositeLength,a=e.hourHandWidth,l=a===void 0?4:a,s=e.hourMarksLength,g=s===void 0?10:s,h=e.hourMarksWidth,p=h===void 0?3:h,b=e.locale,x=e.minuteHandLength,A=x===void 0?70:x,X=e.minuteHandOppositeLength,L=e.minuteHandWidth,B=L===void 0?2:L,I=e.minuteMarksLength,j=I===void 0?6:I,_=e.minuteMarksWidth,G=_===void 0?1:_,P=e.renderHourMarks,N=P===void 0?!0:P,T=e.renderMinuteHand,F=T===void 0?!0:T,W=e.renderMinuteMarks,E=W===void 0?!0:W,Q=e.renderNumbers,C=e.renderSecondHand,$=C===void 0?!0:C,U=e.secondHandLength,Z=U===void 0?90:U,ee=e.secondHandOppositeLength,V=e.secondHandWidth,ne=V===void 0?1:V,z=e.size,D=z===void 0?150:z,k=e.useMillisecondPrecision,u=e.value;function te(){if(!E)return null;for(var f=[],d=1;d<=60;d+=1){var ue=N&&!(d%5);ue||f.push(m.jsx(q,{angle:d*6,length:j,name:"minute",width:G},"minute_".concat(d)))}return f}function re(){if(!N)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(q,{angle:d*30,length:g,name:"hour",width:p},"hour_".concat(d)));return f}function oe(){if(!Q)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(le,{angle:d*30,length:Pe(N&&g,E&&j,0),name:"number",number:r(b,d)},"number_".concat(d)));return f}function ie(){return m.jsxs("div",{className:"react-clock__face",children:[te(),re(),oe()]})}function ce(){var f=u?Y(u)*30+w(u)/2+y(u)/120+(k?M(u)/12e4:0):0;return m.jsx(S,{angle:f,length:i,name:"hour",oppositeLength:c,width:l})}function se(){if(!F)return null;var f=u?Y(u)*360+w(u)*6+y(u)/10+(k?M(u)/1e4:0):0;return m.jsx(S,{angle:f,length:A,name:"minute",oppositeLength:X,width:B})}function ae(){if(!$)return null;var f=u?w(u)*360+y(u)*6+(k?M(u)*.006:0):0;return m.jsx(S,{angle:f,length:Z,name:"second",oppositeLength:ee,width:ne})}return m.jsxs("time",{className:de("react-clock",n),dateTime:u instanceof Date?u.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:F?"2-digit":void 0,second:$?"2-digit":void 0}):u||void 0,style:{width:D,height:D},children:[ie(),ce(),se(),ae()]})}export{Fe as Clock,Fe as default};
diff --git a/src/chrome/newtab/index.html b/src/chrome/newtab/index.html
index 828387c54..72df5e787 100644
--- a/src/chrome/newtab/index.html
+++ b/src/chrome/newtab/index.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" sizes="16x16" href="../icons/icon16.png" />
<title>New Tab</title>
- <script type="module" crossorigin src="./assets/index-ZvUWfRHz.js"></script>
+ <script type="module" crossorigin src="./assets/index-7-Cak-QP.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C4nKw5hY.css">
</head>
<body>
diff --git a/src/firefox/newtab/assets/Settings-9hHATwdq.js b/src/firefox/newtab/assets/Settings-9hHATwdq.js
new file mode 100644
index 000000000..8a30b0ca0
--- /dev/null
+++ b/src/firefox/newtab/assets/Settings-9hHATwdq.js
@@ -0,0 +1,53 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-bn8Kdr1t.js","./index-7-Cak-QP.js","./index-C4nKw5hY.css"])))=>i.map(i=>d[i]);
+import{g as Qs,a as Ue,y as RA,v as d,s as qi,r as $i,E as hA,c as $n,b as or,d as E,j as i,B as vA,M as Ao,e as eo,f as to,h as ms,S as ot,R as m,i as vs,u as Ft,k as ro,D as no,l as Us,m as we,n as Aa,T as ea,q as Fs,o as ao,p as bs,t as ht,w as hn,x as wt,z as ys,A as pt,C as mA,F as KA,G as so,H as io,I as oo,J as lo,K as Dr,L as Es,N as lr,O as cr,P as wn,Q as rr,U as xs,V as Is,W as Hs,X as co,Y as Ss,Z as gr,_ as Ls,$ as ks,a0 as Ms,a1 as Ks,a2 as Ts,a3 as Ds,a4 as Os,a5 as go,a6 as Rs,a7 as ta,a8 as uo,a9 as Ns,aa as It,ab as Bo,ac as fo,ad as Ht,ae as ra,af as ho,ag as na,ah as wo,ai as po,aj as Co,ak as _s,al as Qo,am as mo,an as vo,ao as aa,ap as Uo,aq as Fo,ar as bo,as as yo,at as Eo,au as xo,av as Io,aw as Ho,ax as So,ay as Lo,az as ko,aA as Mo,aB as jn}from"./index-7-Cak-QP.js";const pn="wbBackgroundsBackup";async function Ko(){const A={};Object.keys(localStorage).forEach(n=>{A[n]=localStorage.getItem(n)});try{const n=await Qs(),a=n>0?await Ue():[];if(a.length!==n)throw new Error("uploaded backgrounds could not be read");A[pn]=a.map(({id:s,...o})=>o)}catch(n){return console.error("Could not include uploaded backgrounds in the backup:",n),RA(d.getMessage("toasts.error")),!1}const e=new Date,t=`webbrain_newtab_settings_backup_${`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}_${e.getHours().toString().padStart(2,"0")}-${e.getMinutes().toString().padStart(2,"0")}-${e.getSeconds().toString().padStart(2,"0")}`}.json`;return qi(A,t),d.stats.postEvent("tab","Settings exported"),!0}function Ct(A){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(A)}function Ge(A){let e=String(A??"").trim();if(!e)return null;const r=/^https?:\/\//i.exec(e);e=r?r[0].toLowerCase()+e.slice(r[0].length):`https://${e}`;try{if(!/^https?:$/.test(new URL(e).protocol))return null}catch{return null}return Ct(e)?e:null}async function To(A,e=!1){let r,t;try{const s=JSON.parse(A);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[pn]:r,...t}=s);const o=Go(t);if(o)throw new Error(`invalid settings: ${o}`);if(No(t),r!==void 0&&!Po(r))throw new Error(`invalid settings: ${pn} has an entry of the wrong shape`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Xo(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),e||d.stats.postEvent("tab","Settings imported"),$i?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const je=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),NA=A=>typeof A=="string",Do=A=>NA(A.key)&&A.key!==""||Number.isFinite(A.key),Oo=["time","greeting","date","quicklinks","message"],Gs=["applinks","quicklinks"],sa=A=>je(A)&&NA(A.name)&&NA(A.url)&&Ge(A.url)!==null&&Do(A),Ro={applinks:sa,backgroundExclude:NA,customBackground:A=>NA(A)&&Vn(A),customEvents:A=>je(A)&&NA(A.name)&&Number.isFinite(A.month)&&Number.isFinite(A.date),quicklinks:sa,messages:NA,order:A=>Oo.includes(A),todo:A=>je(A)&&NA(A.value)};function No(A){for(const e of Gs)e in A&&(A[e]=JSON.stringify(JSON.parse(A[e]).map(r=>({...r,url:Ge(r.url)}))));return A}const _o=A=>NA(A)&&A.trim()!==""&&(typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("background",A));function Go(A){for(const[e,r]of Object.entries(A))if(r!==null&&typeof r=="object")return`${e} is not a plain value`;if("firstRun"in A&&(A.firstRun===null||String(A.firstRun)===""))return"firstRun is empty";for(const[e,r]of Object.entries(Ro)){if(!(e in A)||e==="customBackground"&&(A[e]===""||A[e]==="null"))continue;let t;try{t=JSON.parse(A[e])}catch{return`${e} is not valid JSON`}if(!Array.isArray(t))return`${e} is not a list`;if(!t.every(r))return`${e} has an entry of the wrong shape`;if(e==="order"&&new Set(t).size!==t.length)return"order lists a widget more than once";if(Gs.includes(e)&&new Set(t.map(n=>String(n.key))).size!==t.length)return`${e} has entries that share a key`}if("timezone"in A&&A.timezone!=="auto")try{new Intl.DateTimeFormat("en",{timeZone:A.timezone})}catch{return"timezone is not a known time zone"}if("favourite"in A&&A.favourite!=="null")try{const e=JSON.parse(A.favourite);if(e!==null&&!je(e))return"favourite is not an object";if(e!==null){if(!(e.type==="random_colour"||e.type==="random_gradient"?_o(e.url):Vn(e.url)))return"favourite has no usable url";if(!(Ae(e.credit,NA)&&Ae(e.colour,NA)&&Ae(e.blur_hash,NA)&&Ae(e.hidden,a=>typeof a=="boolean")))return"favourite has malformed display details"}}catch{return"favourite is not valid JSON"}return null}function jo(A,e){if(/;base64$/i.test(A)){const r=e.replace(/\s+/g,"");return r.length%4===0&&/^[A-Za-z0-9+/]+={0,2}$/.test(r)}try{return decodeURIComponent(e),!0}catch{return!1}}const Vn=A=>{if(typeof A!="string")return!1;const e=/^data:(image|video)\/[^;,]+((?:;[^,]*)?),([\s\S]+)$/i.exec(A);if(e)return jo(e[2],e[3]);try{return/^https?:$/.test(new URL(A).protocol)}catch{return!1}},Ae=(A,e)=>A==null||e(A),St=A=>typeof A=="number"&&Number.isFinite(A),Vo=A=>je(A)&&Vn(A.url)&&Ae(A.name,NA)&&Ae(A.folder,NA)&&Ae(A.blurHash,NA)&&Ae(A.fileSize,St)&&Ae(A.uploadDate,St)&&Ae(A.dimensions,e=>je(e)&&St(e.width)&&St(e.height)),Po=A=>Array.isArray(A)&&A.every(Vo),ia=({id:A,...e})=>e;async function Xo(A){const e=A.map(ia),r=await Qs(),t=r>0?(await Ue()).map(ia):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await $n();for(const a of t)await or(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await $n();for(const a of e)await or(a)}catch(a){throw await n(),a}return n}function TA(A){const[e,r]=E.useState(localStorage.getItem(A.setting)==="true");E.useEffect(()=>{r(localStorage.getItem(A.setting)==="true")},[A.setting]);const t=()=>{const s=localStorage.getItem(A.setting)==="true";if(localStorage.setItem(A.setting,!s),r(!s),d.stats.postEvent("setting",`${A.name} ${e===!0?"enabled":"disabled"}`),hA.emit("toggle",A.setting),A.element&&!document.querySelector(A.element)){ms();return}hA.emit("refresh",A.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:e?i.jsx(Ao,{}):i.jsx(eo,{}),label:e?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(A.title)}`,"_blank"),icon:i.jsx(to,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:A.secondaryTitle||A.title}),i.jsxs("div",{className:"headerActions",children:[A.visibilityToggle&&i.jsx(n,{}),A.report!==!1&&i.jsx(a,{}),A.children]})]})}function rA(A){const e=`${A.final?"settingsRow settingsNoBorder":"settingsRow"} ${A.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:e,children:A.children})}function nA(A){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A.title}),i.jsx("span",{className:"subtitle",children:A.subtitle})]})}function cA(A){return i.jsx("div",{className:"action",children:A.children})}const Jo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Wo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Yo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],lt={zoom:Jo,toast:Wo,background:Yo},bt=({children:A,...e})=>{const[r,t]=E.useState(localStorage.getItem(e.setting)==="true");return E.useEffect(()=>{const n=a=>{a===e.setting&&t(localStorage.getItem(e.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[e.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",inert:!r,children:[e.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(ot,{name:e.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:lt.zoom,category:e.zoomCategory||e.category})})]}),A]})};function Pn({title:A,subtitle:e,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:e})]})]}),i.jsx("div",{className:"action",onClick:m.Children.count(n)===0?void 0:a=>a.stopPropagation(),children:m.Children.count(n)===0?i.jsx(vs,{}):n})]})}function Zo({label:A,currentTab:e,onClick:r,navbarTab:t}){const n=Ft(),[a,s]=E.useState(!0);E.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=ro(A,{getMessage:n}),l=no.some(p=>n(p)===A),B=`${t?"navbar-item":"tab-list-item"}${e===A?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return A===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(A),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:A})]}),l&&i.jsx("hr",{})]})}const zo=E.memo(Zo),qo=({isVisible:A,onHide:e})=>A?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("button",{type:"button",className:"closeModal",onClick:e,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(Us,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(we,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class $o extends E.PureComponent{constructor(e){super(e),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(e){return console.error(e),{error:!0,errorData:e}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Aa,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx(Aa,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(we,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const Al=({children:A,navbar:e=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Ft(),g=(()=>{if(a?.section&&o){const h=o.find(b=>b.name===a.section);if(h)return{label:l(h.label),name:h.name}}return{label:A[0]?.props.label,name:A[0]?.props.name}})(),[B,u]=E.useState(g.label),[p,Q]=E.useState(g.name),[C,x]=E.useState(localStorage.getItem("showReminder")==="true"),U=E.useRef(null),y=E.useRef(null),S=(h,b)=>{b!==p&&d.stats.postEvent("tab",`Opened ${b}`),u(h),Q(b),U.current&&(U.current.scrollTop=0),t&&t(h,b)};E.useEffect(()=>{t&&B&&t(B,p,{fromHistory:!0})},[]),E.useEffect(()=>{if(o&&p){const h=o.find(b=>b.name===p);if(h){const b=l(h.label);u(b)}}},[l,o,p]),E.useEffect(()=>{if(!(!s||y.current===s)){if(s?.type==="settings-default"){y.current=s;const h=A[0]?.props;h&&(u(h.label),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(h.label,h.name,{fromHistory:!0}));return}if(s?.type==="settings-section"&&o){const h=o.find(b=>b.name===s.data);if(h){y.current=s;const b=l(h.label);u(b),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(b,h.name,{fromHistory:!0})}}}},[s,o,l]),E.useEffect(()=>{n&&(u(A[0]?.props.label),Q(A[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(A[0]?.props.label,A[0]?.props.name))},[n]),E.useEffect(()=>{const h=()=>x(!0);return hA.on("reminder",h),()=>hA.off("reminder",h)},[]);const H=()=>{localStorage.setItem("showReminder","false"),x(!1)},L=r===ea.SETTINGS||r===ea.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[L?i.jsxs("div",{className:"modalSidebar",children:[A.map((h,b)=>i.jsx(zo,{currentTab:B,label:h.props.label,onClick:k=>S(k,h.props.name),navbarTab:e},b)),i.jsx(qo,{isVisible:C,onHide:H})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:A.map((h,b)=>h.props.label!==B?null:i.jsx($o,{children:h.props.children},`error-boundary-${b}`))})]})};async function ur(A){const e=String(A??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(e)?e:`https://${e}`).hostname.replace(/^www\./i,"")||e}catch{return e}}const el=({item:A,deleteLink:e,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>e(A.key,C),href:A.url,target:g,rel:B,draggable:!1,children:A.name});const p=A.icon||Fs(A.url,A.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,A.key),onDragOver:C=>a&&a(C,A.key),onDrop:C=>s&&s(C,A.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(ao,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:A.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:A.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:A.url,children:A.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(A),icon:i.jsx(bs,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>e(A.key,C),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function tl({appsEnabled:A}){const e=Ft(),[r,t]=E.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=Ge(c),!c)return t(u=>({...u,urlError:e("widgets.quicklinks.url_error")}));if(g.length>0&&Ct(g)===!1)return t(u=>({...u,iconError:e("widgets.quicklinks.icon_error")}));B.push({name:l||await ur(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=Ge(g),!g)return t(Q=>({...Q,urlError:e("widgets.quicklinks.url_error")}));if(B.length>0&&Ct(B)===!1)return t(Q=>({...Q,iconError:e("widgets.quicklinks.icon_error")}));p.name=c||await ur(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!A,children:[i.jsx(nA,{title:e("widgets.navbar.apps.title"),subtitle:e("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(hn,{}),label:e("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(el,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(ys,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function rl(){const A=Ft(),[e,r]=E.useState(localStorage.getItem("refresh")==="true"),[t,n]=E.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:A("modals.main.settings.additional_settings"),subtitle:A("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:A(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=E.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!e):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:A(u)})]})},g=[{icon:i.jsx(so,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(io,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(oo,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(we,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(lo,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:A("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!e,children:[i.jsx(nA,{title:A(`${a}.refresh`),subtitle:A("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:A("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:A("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:A(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(tl,{appsEnabled:t})]})}const nl=E.memo(rl),oa=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],al=A=>{const[e,r,t]=String(A).split("-").map(Number);return e&&r&&t?new Date(e,r-1,t):new Date},sl=A=>`${A.getFullYear()}-${String(A.getMonth()+1).padStart(2,"0")}-${String(A.getDate()).padStart(2,"0")}`,il=({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=E.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=E.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=E.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const b=h.target.value?al(h.target.value):new Date;localStorage.setItem("birthday",b),s(b)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],b={id:"widgets.greeting.halloween",name:"",month:1,date:1},k=[...h,b];h.push(b),localStorage.setItem("customEvents",JSON.stringify(h)),n(k)},Q=h=>{const b=t.filter((k,M)=>M!==h);localStorage.setItem("customEvents",JSON.stringify(b)),n(b)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(oa)),n(oa),RA(d.getMessage("toasts.reset"))},x=(h,b)=>{n(M=>{const R=[...M];return R[h]=b,R});const k=JSON.parse(localStorage.getItem("customEvents")||"[]");k[h]=b,localStorage.setItem("customEvents",JSON.stringify(k))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(cr,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(Es,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:sl(a),required:!0})]})]})]}),S=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(we,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(lr,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,b)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Dr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:k=>{const M={...h,name:k.target.value};x(b,M)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=31){const R={...h,date:M};x(b,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=12){const R={...h,month:M};x(b,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(b),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},b))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Dr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(lr,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),H=A==="events";let L;return H?L=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>e(null,r),report:!1}):L=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[L,H?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),S()]}):i.jsxs(bt,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Pn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>e("events",r),icon:i.jsx(Dr,{})})]})]})},ol=()=>{const[A,e]=E.useState(localStorage.getItem("timeType")||"digital"),[r,t]=E.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=E.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=E.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:A==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>e(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(wn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),onKeyDown:rr(()=>c("hourColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),onKeyDown:rr(()=>c("minuteColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),onKeyDown:rr(()=>c("secondColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(A){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(bt,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function ll(){const[A,e]=E.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(bt,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{e(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:A==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[A==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const cl=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(xs,{})}),gl=({value:A,enabled:e,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=Is({id:A.key,disabled:!e}),g={transform:Hs.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||Fs(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${e?"":"disabled"}`,role:"listitem",children:[i.jsx(cl,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(A),alt:A.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:A.name}),i.jsx("div",{className:"quicklink-url",children:A.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{e&&(u.stopPropagation(),r(A))},title:"Edit",disabled:!e,"aria-disabled":!e,children:[i.jsx(bs,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{e&&(u.stopPropagation(),t(A.key,u))},title:"Remove",disabled:!e,"aria-disabled":!e,children:[i.jsx(co,{}),i.jsx("span",{children:"Remove"})]})]})]})},ul=({items:A,enabled:e,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Ss(gr(Ms,{activationConstraint:{distance:6}}),gr(ks,{coordinateGetter:Ls}));return i.jsx(Ks,{sensors:a,collisionDetection:Ts,onDragEnd:r,children:i.jsx(Ds,{items:A.map(s=>s.key),strategy:Os,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:A.map(s=>i.jsx(gl,{value:s,enabled:e,startEditLink:t,deleteLink:n},s.key))})})})},Ye=()=>{try{const A=localStorage.getItem("quicklinks");if(!A)return[];const e=JSON.parse(A);return Array.isArray(e)?e:[]}catch(A){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",A),[]}},Bl=()=>{const[A,e]=E.useState(Ye()),[r,t]=E.useState(!1),[n,a]=E.useState(""),[s,o]=E.useState(""),[l,c]=E.useState(!1),[g,B]=E.useState(""),[u,p]=E.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=E.useRef(),C=E.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Ye().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Ye();if(O=Ge(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&Ct(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await ur(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},S=R=>{c(!0),B(R),t(!0)},H=async(R,O,Z,D)=>{const z=Ye(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=Ge(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&Ct(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await ur(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),e(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},L=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=A.findIndex(tA=>tA.key===O.id),z=A.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Rs(A,D,z);C.current=!0,e(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};E.useEffect(()=>{x(u)},[u]),E.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Ye(),z=A||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),e(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,A]);const h="modals.main.settings.sections.quicklinks",b=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),k=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),M=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(hn,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(bt,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(b,{}),i.jsx(k,{}),i.jsx(M,{}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(go,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(hn,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(ul,{items:A,enabled:u,onDragEnd:L,startEditLink:R=>S(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(ys,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>H(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},dl=()=>{const[A,e]=E.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...A];a==="add"?o.push(""):o.splice(s,1),e(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...A];c[o]=l,e(c),localStorage.setItem("messages",JSON.stringify(c)),ms()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(bt,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(lr,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:A.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(ta,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(uo,{value:A[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ta,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(lr,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Or={exports:{}},la;function fl(){return la||(la=1,(function(A){(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,s=e.min,o=e.max,l=e.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,X,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=e.pow((v+.055)/1.055,2.4),w<=.03928?X=w/12.92:X=e.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=e.pow((K+.055)/1.055,2.4),.2126*W+.7152*X+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(H,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,X=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(P(f.r)&&P(f.g)&&P(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):P(f.h)&&P(f.s)&&P(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):P(f.h)&&P(f.s)&&P(f.l)&&(K=F(f.s),X=F(f.l),v=p(f.h,K,X),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=(K+W)/2;if(K==W)X=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,l:fA}}function p(f,v,w){var K,W,X;f=q(f,360),v=q(v,100),w=q(w,100);function oA(VA,We,ZA){return ZA<0&&(ZA+=1),ZA>1&&(ZA-=1),ZA<1/6?VA+(We-VA)*6*ZA:ZA<1/2?We:ZA<2/3?VA+(We-VA)*(2/3-ZA)*6:VA}if(v===0)K=W=X=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),X=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:X*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)X=0;else{switch(K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=e.floor(f),W=f-K,X=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,VA=[w,oA,X,X,fA,w][UA],We=[fA,w,w,oA,X,X][UA],ZA=[X,X,fA,w,w,oA][UA];return{r:VA*255,g:We*255,b:ZA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var X=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)&&X[3].charAt(0)==X[3].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0)+X[3].charAt(0):X.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function H(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function L(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function b(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function k(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function M(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,X=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,X.push(c(K));return X}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,X=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:X})),X=(X+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),X=w/100,oA={r:(W.r-K.r)*X+K.r,g:(W.g-K.g)*X+K.g,b:(W.b-K.b)*X+K.b,a:(W.a-K.a)*X+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(e.max(w.getLuminance(),K.getLuminance())+.05)/(e.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,X;switch(X=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":X=K>=4.5;break;case"AAlarge":X=K>=3;break;case"AAAsmall":X=K>=7;break}return X},c.mostReadable=function(f,v,w){var K=null,W=0,X,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var VA=0;VA<v.length;VA++)X=c.readability(f,v[VA]),X>W&&(W=X,K=c(v[VA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){I(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),e.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function I(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return e.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function P(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}A.exports?A.exports=c:window.tinycolor=c})(Math)})(Or)),Or.exports}var hl=fl();const SA=Ns(hl);var Re=function(){return Re=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Re.apply(this,arguments)},wl=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},pl=function(A){A===void 0&&(A="");var e={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(I){var j=new Error(A+": "+I);throw j}function t(I){A=A.substr(I)}function n(I){var j=/^[\n\r\t\s]+/.exec(A);j&&t(j[0].length);var _=I.exec(A);return _&&t(_[0].length),_}function a(I){var j=I(),_=[];if(j)for(_.push(j);n(e.comma);)j=I(),j?_.push(j):r("One extra comma");return _}function s(I,j,_){var F=n(j);if(F)return{type:I,value:F[_]}}function o(){var I=s("hex",e.hexColor,1);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(I){var j=Fe(I?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(I,j){var _=n(I);if(_){n(e.startCall)||r("Missing (");var F=j(_);return n(e.endCall)||r("Missing )"),F}}function g(){return c(e.hslColor,dA)}function B(){return c(e.rgbaColor,l)}function u(){return c(e.rgbColor,q)}function p(){var I=s("literal",e.literalColor,0);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(e.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var I,j=C();return j||r("Expected color definition"),j.left=parseInt((I=lA())===null||I===void 0?void 0:I.value),j}function U(I,j,_){return c(j,function(){var F=_();return F&&(n(e.comma)||r("Missing comma before color stops")),{type:I,orientation:F,colorStops:a(x)}})}function y(){return h()||b()}function S(){return U("linear-gradient",e.linearGradient,y)||U("repeating-linear-gradient",e.repeatingLinearGradient,y)||U("radial-gradient",e.radialGradient,k)||U("repeating-radial-gradient",e.repeatingRadialGradient,k)}function H(){return a(S)}function L(){var I,j=H();A.length>0&&r("Invalid input not EOF");var _=j[0],F=(I=_?.colorStops)===null||I===void 0?void 0:I.filter(function(T){return Fe(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,P){return P===0?yr(G):yt(G)};return Re(Re({},_),{colorStops:_.colorStops.map(function(G,P){return Re(Re({},G),{value:T(G,P)})})})};return N()}function h(){return s("directional",e.sideOrCorner,1)}function b(){return s("angular",e.angleValue,1)}function k(){var I,j=M(),_;return j&&(I=[],I.push(j),_=A,n(e.comma)&&(j=M(),j?I.push(j):A=_)),I}function M(){var I=O()||Z();if(I)I.at=z();else{var j=D();if(j){I=j;var _=z();_&&(I.at=_)}else{var F=eA();F&&(I={type:"default-radial",at:F})}}return I}function R(){return s("px",e.pixelValue,1)||s("em",e.emValue,1)}function O(){var I=s("shape",/^(circle)/i,0);return I&&(I.style=R()||D()),I}function Z(){var I=s("shape",/^(ellipse)/i,0);return I&&(I.style=lA()||D()),I}function D(){return s("extent-keyword",e.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var I=eA();return I||r("Missing positioning value"),I}}function eA(){var I=tA();if(I.x||I.y)return{type:"position",value:I}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(e.number)[1]}var dA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},aA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},q=function(I){var j=Fe(I?.[0]),_=n(e.spacedRgbColor),F=_||wl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],P=F[4],$=P===void 0?1:P;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",e.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",e.positionKeywords,1)}return L()},yt=function(A){return A.value.toLowerCase()},yr=function(A){return A.value.toUpperCase()},Cl=function(A,e,r){var t=A?.includes("gradient");if(t){var n=A?.includes("conic"),a=n?r:A;n&&console.log("Sorry we cant handle conic gradients yet");var s=pl(a);return s?.colorStops}else{var a=A||e;return[{value:a}]}},Ve=function(A,e,r){return isNaN(A)||A<e?e:A>r?r:A},re=function(A){return Math.round(A)},Br=function(){return Br=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Br.apply(this,arguments)},js=function(A){var e=A.target.parentNode.getBoundingClientRect(),r=A.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:e?.x+t,offsetTop:e?.y,clientWidth:e?.width,clientHeight:e?.height}};function Pe(A,e){var r=js(A),t=r.offsetLeft,n=r.clientWidth,a=A.clientX-t-e/2,s=n-18,o=Ve(a,0,s);return Math.round(o/(s/100))}function Ql(A,e,r,t,n){var a=A*r-n/2,s=(100-e)/100*t-n/2;return[a,s]}var ml=function(A){if(A.clientX)return{clientX:A.clientX,clientY:A.clientY};var e=A.touches[0]||{};return{clientX:e.clientX,clientY:e.clientY}};function vl(A,e){var r=js(A),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=ml(A),l=o.clientX,c=o.clientY,g=function(){var u=l-t-e/2;return Ve(u,-9,a-10)},B=function(){var u=c-n-e/2;return Ve(u,-9,s-10)};return[g(),B()]}var Fe=function(A){var e;return A?.[0]===((e=A?.[0])===null||e===void 0?void 0:e.toUpperCase())},Vs=function(A){if(A==="to top")return 0;if(A==="to bottom")return 180;if(A==="to left")return 270;if(A==="to right")return 90;if(A==="to top right")return 45;if(A==="to bottom right")return 135;if(A==="to bottom left")return 225;if(A==="to top left")return 315;var e=A||0;return parseInt(e)},Ul=function(A){var e,r,t,n,a;if(typeof A=="string")return A;if(!((e=A?.type)===null||e===void 0)&&e.includes("gradient")){var s=(r=A?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=A?.type,c=Vs((n=A?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=A?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},Fl=function(A,e){var r=A?.map(function(a,s){return Br(Br({},a),{index:s})}),t=r?.find(function(a){return Fe(a.value)}),n=t||r[0];return{currentColor:n?.value||e,selectedColor:n?.index||0,currentLeft:n?.left||0}},bl=function(A){var e,r=A?.split(",")[0],t=(e=r?.split("(")[1])===null||e===void 0?void 0:e.replace("deg","");return Vs(t)},yl=function(A){var e=A?.includes("gradient"),r=A?.split("(")[0],t=bl(A),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:e,gradientType:r}},DA=function(){return DA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},DA.apply(this,arguments)},El=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Ps=E.createContext(null);function xl(A){var e,r,t,n,a=A.value,s=A.children,o=A.onChange,l=A.isDarkMode,c=A.squareWidth,g=A.hideOpacity,B=A.showHexAlpha,u=A.squareHeight,p=A.passedConfig,Q=A.defaultStyles,C=A.pickerIdSuffix,x={barSize:(e=p.barSize)!==null&&e!==void 0?e:Lt.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:Lt.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:Lt.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:Lt.defaultGradient},U=Cl(a,x.defaultColor,x.defaultGradient),y=yl(a),S=y.degrees,H=y.degreeStr,L=y.isGradient,h=y.gradientType,b=Fl(U,x.defaultGradient),k=b.currentColor,M=b.selectedColor,R=b.currentLeft,O=E.useState("rgb"),Z=O[0],D=O[1],z=E.useState({}),eA=z[0],tA=z[1],AA=SA(k),dA=AA.toRgb(),aA=AA.toHsv(),q=E.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];E.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[k]);var I=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),P=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(H,", ").concat(P.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var P=U?.filter(function(pA){return!Fe(pA.value)}),$=El([{value:T.toUpperCase(),left:G??R}],P,!0);I($)},_=function(T){L?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(P,$){return DA(DA({},P),{value:$===M-1?yr(P):yt(P)})}),G=T?.filter(function(P,$){return $!==M});I(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:S,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:L,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:k,selectedColor:M,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:I};return m.createElement(Ps.Provider,{value:N},s)}function BA(){var A=E.useContext(Ps);if(!A)throw new Error("usePicker has to be used within <PickerContext.Provider>");return A}var Lt={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},Il=function(A,e){E.useEffect(function(){var r,t=(r=A?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,e,14);for(var n=t.createLinearGradient(0,0,e,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[A,e])},Hl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Sl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Ll=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:e,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[A,e,r,t])},dr=function(){return dr=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},dr.apply(this,arguments)},kl=function(){var A=E.useRef(null),e=BA(),r=e.config,t=e.handleChange,n=e.squareWidth,a=e.hc,s=e.setHc,o=e.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=r.barSize;Il(A,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Pe(U,B)*3.6,S=SA({h:y,s:a?.s,v:a?.v}),H=S.toRgb(),L=H.r,h=H.g,b=H.b;t("rgba(".concat(L,", ").concat(h,", ").concat(b,", ").concat(a.a,")")),s(dr(dr({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return E.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:A,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function Ml(A,e,r){var t=0,n=0,a=0,s=0;if(A===null||e===null||r===null||isNaN(A)||isNaN(e)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(A<0||e<0||r<0||A>255||e>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(A===0&&e===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-A/255,n=1-e/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var Kl=function(A){var e=A.c,r=A.m,t=A.y,n=A.k,a=255*(1-e)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},Tl=function(A){return typeof A!="number"?"FF":A<0?"00":A>1?"FF":Math.round(A*255).toString(16).padStart(2,"0").toUpperCase()},YA=function(){return YA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},YA.apply(this,arguments)},GA=function(A){var e=A.label,r=A.value,t=A.callback,n=A.max,a=n===void 0?100:n,s=A.hideOpacity,o=A.defaultStyles,l=A.pickerIdSuffix,c=E.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";E.useEffect(function(){B(r)},[r]);var p=function(Q){var C=Ve(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(e,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:YA({},o.rbgcpInput),id:"rbgcp-".concat(e,"-input").concat(l)}),m.createElement("div",{style:YA({},o.rbgcpInputLabel)},e))},Dl=function(A){var e=A.opacity,r=A.tinyColor,t=A.showHexAlpha,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=E.useState(""),l=o[0],c=o[1],g=r.toHex(),B=E.useState(g),u=B[0],p=B[1];E.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(H){var L=SA(H.target.value);if(p(H.target.value),L.isValid()){var h=L.toRgb(),b=h.r,k=h.g,M=h.b,R="rgba(".concat(b,", ").concat(k,", ").concat(M,", ").concat(e,")");n(R)}},U=t?"".concat(u).concat(Tl(e)):u,y=t?"HEXA":"HEX",S=t?88:76;return m.createElement("div",{style:{width:S,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(H){return x(H)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:YA(YA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:YA({},a.rbgcpInputLabel)},y))},Ol=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"R",max:255,value:e?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:e?.g,b:e?.b})}}),m.createElement(GA,{label:"G",max:255,value:e?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:o,b:e?.b})}}),m.createElement(GA,{label:"B",max:255,value:e?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:e?.g,b:o})}}))},Rl=function(A){var e=A.hc,r=A.setHc,t=A.tinyColor,n=A.hideOpacity,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,S=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(S,", ").concat(e?.a,")")),r(YA(YA({},e),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(GA,{label:"S",value:re(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:p,l:g})}}),m.createElement(GA,{label:"L",value:re(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:c,l:p})}}))},Nl=function(A){var e=A.hc,r=A.setHc,t=A.hideOpacity,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(e?.a,")")),r(YA(YA({},e),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,e?.s,e?.v)}}),m.createElement(GA,{label:"S",hideOpacity:t,value:re(e?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:c,v:e?.v})}}),m.createElement(GA,{label:"V",hideOpacity:t,value:re(e?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:e?.s,v:c})}}))},_l=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=Ml(e?.r,e?.g,e?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=Kl(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"C",value:re(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(GA,{label:"M",value:re(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(GA,{label:"Y",value:re(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(GA,{label:"K",value:re(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},Gl=function(){var A=BA(),e=A.hc,r=A.setHc,t=A.inputType,n=A.tinyColor,a=A.hideOpacity,s=A.showHexAlpha,o=A.handleChange,l=A.defaultStyles,c=A.pickerIdSuffix;return m.createElement("div",{style:YA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Dl,{opacity:e?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(Rl,{hc:e,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Ol,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(Nl,{hc:e,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(_l,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(GA,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(e?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(e?.r,", ").concat(e?.g,", ").concat(e?.b,", ").concat(g/100,")"))}}))},jl=function(A,e,r,t){E.useEffect(function(){if(A.current){var n=A.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(e,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[A,e,r,t])},Rr,ca;function Vl(){if(ca)return Rr;ca=1;var A="Expected a function",e=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof It=="object"&&It&&It.Object===Object&&It,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,b,k){var M,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(A);b=L(b)||0,y(k)&&(tA=!!k.leading,AA="maxWait"in k,O=AA?p(L(k.maxWait)||0,b):O,dA="trailing"in k?!!k.trailing:dA);function aA(T){var G=M,P=R;return M=R=void 0,eA=T,Z=h.apply(P,G),Z}function q(T){return eA=T,D=setTimeout(I,b),tA?aA(T):Z}function lA(T){var G=T-z,P=T-eA,$=b-G;return AA?Q($,O-P):$}function sA(T){var G=T-z,P=T-eA;return z===void 0||G>=b||G<0||AA&&P>=O}function I(){var T=C();if(sA(T))return j(T);D=setTimeout(I,lA(T))}function j(T){return D=void 0,dA&&M?aA(T):(M=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,M=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(M=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(I,b),aA(z)}return D===void 0&&(D=setTimeout(I,b)),Z}return N.cancel=_,N.flush=F,N}function U(h,b,k){var M=!0,R=!0;if(typeof h!="function")throw new TypeError(A);return y(k)&&(M="leading"in k?!!k.leading:M,R="trailing"in k?!!k.trailing:R),x(h,b,{leading:M,maxWait:b,trailing:R})}function y(h){var b=typeof h;return!!h&&(b=="object"||b=="function")}function S(h){return!!h&&typeof h=="object"}function H(h){return typeof h=="symbol"||S(h)&&u.call(h)==r}function L(h){if(typeof h=="number")return h;if(H(h))return e;if(y(h)){var b=typeof h.valueOf=="function"?h.valueOf():h;h=y(b)?b+"":b}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var k=a.test(h);return k||s.test(h)?o(h.slice(2),k?2:8):n.test(h)?e:+h}return Rr=U,Rr}var Pl=Vl();const Xl=Ns(Pl);var be=function(){return be=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},be.apply(this,arguments)},Jl=function(){var A,e,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useRef(null),C=Ql(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=E.useState({x,y:U}),S=y[0],H=y[1];jl(Q,t?.h,a,s),E.useEffect(function(){u||H({x:t?.v===0?S.x:x,y:U})},[x,U]);var L=function(O){var Z=Xl(function(){var D=vl(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;H({x:aA===0?S?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},b=function(O){u&&L(O)},k=function(O){u||L(O)},M=function(){p(!0)},R=function(O){p(!0),L(O)};return E.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return b(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:be(be(be({},l.rbgcpHandle),{transform:"translate(".concat((A=S?.x)!==null&&A!==void 0?A:0,"px, ").concat((e=S?.y)!==null&&e!==void 0?e:0,"px)")}),u?{transition:""}:{}),onMouseDown:M,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:be(be({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return k(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ue=function(){return ue=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ue.apply(this,arguments)},Wl=function(){var A=BA(),e=A.config,r=A.hc,t=r===void 0?{}:r,n=A.squareWidth,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=e.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var b=Pe(h,C)/100,k="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(b,")");a(k)},S=function(h){c&&y(h)},H=function(h){c||y(h)},L=n-18;return E.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return S(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ue(ue({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ue(ue({},s.rbgcpHandle),{left:L*t?.a,top:-2})}),m.createElement("div",{style:ue(ue({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return H(h)}}))},Yl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Zl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],zl=function(A){var e=A.presets,r=e===void 0?[]:e,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Zl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Y.apply(this,arguments)},ql=function(){var A=BA().defaultStyles,e={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},e),A.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},$l=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},Ac=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},ec=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},tc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},rc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},nc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},ac=function(){var A=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},sc=function(A){var e,r=A.children,t="id"+Math.random().toString(16).slice(2),n=E.useRef((e=document.getElementById(t))!==null&&e!==void 0?e:document.createElement("div")),a=E.useState(!n.current.parentElement)[0];return E.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),Bo.createPortal(r,n.current)};const ic=E.memo(sc);var Cn=function(A,e){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},Cn(A,e)};function qA(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Cn(A,e);function r(){this.constructor=A}A.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Qn=function(){return Qn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Qn.apply(this,arguments)};function OA(A,e,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(A,[])).next())})}function kA(A,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(A,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function kt(A,e,r){if(arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||e)}var le=(function(){function A(e,r,t,n){this.left=e,this.top=r,this.width=t,this.height=n}return A.prototype.add=function(e,r,t,n){return new A(this.left+e,this.top+r,this.width+t,this.height+n)},A.fromClientRect=function(e,r){return new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},A.fromDOMRectList=function(e,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),Er=function(A,e){return le.fromClientRect(A,e.getBoundingClientRect())},oc=function(A){var e=A.body,r=A.documentElement;if(!e||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),n=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new le(0,0,t,n)},xr=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},bA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mt=0;Mt<ga.length;Mt++)lc[ga.charCodeAt(Mt)]=Mt;var ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kt=0;Kt<ua.length;Kt++)et[ua.charCodeAt(Kt)]=Kt;var cc=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=et[A.charCodeAt(t)],s=et[A.charCodeAt(t+1)],o=et[A.charCodeAt(t+2)],l=et[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},gc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},uc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},Ie=5,Xn=11,Nr=2,Bc=Xn-Ie,Xs=65536>>Ie,dc=1<<Ie,_r=dc-1,fc=1024>>Ie,hc=Xs+fc,wc=hc,pc=32,Cc=wc+pc,Qc=65536>>Xn,mc=1<<Bc,vc=mc-1,Ba=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},Uc=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},Fc=function(A,e){var r=cc(A),t=Array.isArray(r)?uc(r):new Uint32Array(r),n=Array.isArray(r)?gc(r):new Uint16Array(r),a=24,s=Ba(n,a/2,t[4]/2),o=t[5]===2?Ba(n,(a+t[4])/2):Uc(t,Math.ceil((a+t[4])/4));return new bc(t[0],t[1],t[2],t[3],s,o)},bc=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>Ie],r=(r<<Nr)+(e&_r),this.data[r];if(e<=65535)return r=this.index[Xs+(e-55296>>Ie)],r=(r<<Nr)+(e&_r),this.data[r];if(e<this.highStart)return r=Cc-Qc+(e>>Xn),r=this.index[r],r+=e>>Ie&vc,r=this.index[r],r=(r<<Nr)+(e&_r),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Tt=0;Tt<da.length;Tt++)yc[da.charCodeAt(Tt)]=Tt;var Ec="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",fa=50,xc=1,Js=2,Ws=3,Ic=4,Hc=5,ha=7,Ys=8,wa=9,de=10,mn=11,pa=12,vn=13,Sc=14,tt=15,Un=16,Dt=17,Ze=18,Lc=19,Ca=20,Fn=21,ze=22,Gr=23,Se=24,jA=25,rt=26,nt=27,Le=28,kc=29,ye=30,Mc=31,Ot=32,Rt=33,bn=34,yn=35,En=36,Qt=37,xn=38,nr=39,ar=40,jr=41,Zs=42,Kc=43,Tc=[9001,65288],zs="!",iA="×",Nt="÷",In=Fc(Ec),se=[ye,En],Hn=[xc,Js,Ws,Hc],qs=[de,Ys],Qa=[nt,rt],Dc=Hn.concat(qs),ma=[xn,nr,ar,bn,yn],Oc=[tt,vn],Rc=function(A,e){e===void 0&&(e="strict");var r=[],t=[],n=[];return A.forEach(function(a,s){var o=In.get(a);if(o>fa?(n.push(!0),o-=fa):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(Un);if(o===Ic||o===mn){if(s===0)return t.push(s),r.push(ye);var l=r[s-1];return Dc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(ye))}if(t.push(s),o===Mc)return r.push(e==="strict"?Fn:Qt);if(o===Zs||o===kc)return r.push(ye);if(o===Kc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(Qt):r.push(ye);r.push(o)}),[t,r,n]},Vr=function(A,e,r,t){var n=t[r];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===e)return!0;if(s!==de)break}if(n===de)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(A)?A.indexOf(o)!==-1:A===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===e)return!0;if(s!==de)break}if(o!==de)break}return!1},va=function(A,e){for(var r=A;r>=0;){var t=e[r];if(t===de)r--;else return t}return 0},Nc=function(A,e,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=e[a],c=s>=0?e[s]:0,g=e[o];if(l===Js&&g===Ws)return iA;if(Hn.indexOf(l)!==-1)return zs;if(Hn.indexOf(g)!==-1||qs.indexOf(g)!==-1)return iA;if(va(a,e)===Ys)return Nt;if(In.get(A[a])===mn||(l===Ot||l===Rt)&&In.get(A[o])===mn||l===ha||g===ha||l===wa||[de,vn,tt].indexOf(l)===-1&&g===wa||[Dt,Ze,Lc,Se,Le].indexOf(g)!==-1||va(a,e)===ze||Vr(Gr,ze,a,e)||Vr([Dt,Ze],Fn,a,e)||Vr(pa,pa,a,e))return iA;if(l===de)return Nt;if(l===Gr||g===Gr)return iA;if(g===Un||l===Un)return Nt;if([vn,tt,Fn].indexOf(g)!==-1||l===Sc||c===En&&Oc.indexOf(l)!==-1||l===Le&&g===En||g===Ca||se.indexOf(g)!==-1&&l===jA||se.indexOf(l)!==-1&&g===jA||l===nt&&[Qt,Ot,Rt].indexOf(g)!==-1||[Qt,Ot,Rt].indexOf(l)!==-1&&g===rt||se.indexOf(l)!==-1&&Qa.indexOf(g)!==-1||Qa.indexOf(l)!==-1&&se.indexOf(g)!==-1||[nt,rt].indexOf(l)!==-1&&(g===jA||[ze,tt].indexOf(g)!==-1&&e[o+1]===jA)||[ze,tt].indexOf(l)!==-1&&g===jA||l===jA&&[jA,Le,Se].indexOf(g)!==-1)return iA;if([jA,Le,Se,Dt,Ze].indexOf(g)!==-1)for(var B=a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if([nt,rt].indexOf(g)!==-1)for(var B=[Dt,Ze].indexOf(l)!==-1?s:a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if(xn===l&&[xn,nr,bn,yn].indexOf(g)!==-1||[nr,bn].indexOf(l)!==-1&&[nr,ar].indexOf(g)!==-1||[ar,yn].indexOf(l)!==-1&&g===ar||ma.indexOf(l)!==-1&&[Ca,rt].indexOf(g)!==-1||ma.indexOf(g)!==-1&&l===nt||se.indexOf(l)!==-1&&se.indexOf(g)!==-1||l===Se&&se.indexOf(g)!==-1||se.concat(jA).indexOf(l)!==-1&&g===ze&&Tc.indexOf(A[o])===-1||se.concat(jA).indexOf(g)!==-1&&l===Ze)return iA;if(l===jr&&g===jr){for(var p=r[a],Q=1;p>0&&(p--,e[p]===jr);)Q++;if(Q%2!==0)return iA}return l===Ot&&g===Rt?iA:Nt},_c=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=Rc(A,e.lineBreak),t=r[0],n=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(o){return[jA,ye,Zs].indexOf(o)!==-1?Qt:o}));var s=e.wordBreak==="keep-all"?a.map(function(o,l){return o&&A[l]>=19968&&A[l]<=40959}):void 0;return[t,n,s]},Gc=(function(){function A(e,r,t,n){this.codePoints=e,this.required=r===zs,this.start=t,this.end=n}return A.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),jc=function(A,e){var r=xr(A),t=_c(r,e),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=Nc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new Gc(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},Vc=1,Pc=2,Et=4,Ua=8,fr=10,Fa=47,ct=92,Xc=9,Jc=32,_t=34,qe=61,Wc=35,Yc=36,Zc=37,Gt=39,jt=40,$e=41,zc=95,_A=45,qc=33,$c=60,Ag=62,eg=64,tg=91,rg=93,ng=61,ag=123,Vt=63,sg=125,ba=124,ig=126,og=128,ya=65533,Pr=42,xe=43,lg=44,cg=58,gg=59,mt=46,ug=0,Bg=8,dg=11,fg=14,hg=31,wg=127,$A=-1,$s=48,Ai=97,ei=101,pg=102,Cg=117,Qg=122,ti=65,ri=69,ni=70,mg=85,vg=90,MA=function(A){return A>=$s&&A<=57},Ug=function(A){return A>=55296&&A<=57343},ke=function(A){return MA(A)||A>=ti&&A<=ni||A>=Ai&&A<=pg},Fg=function(A){return A>=Ai&&A<=Qg},bg=function(A){return A>=ti&&A<=vg},yg=function(A){return Fg(A)||bg(A)},Eg=function(A){return A>=og},Pt=function(A){return A===fr||A===Xc||A===Jc},hr=function(A){return yg(A)||Eg(A)||A===zc},Ea=function(A){return hr(A)||MA(A)||A===_A},xg=function(A){return A>=ug&&A<=Bg||A===dg||A>=fg&&A<=hg||A===wg},Be=function(A,e){return A!==ct?!1:e!==fr},Xt=function(A,e,r){return A===_A?hr(e)||Be(e,r):hr(A)?!0:!!(A===ct&&Be(A,e))},Xr=function(A,e,r){return A===xe||A===_A?MA(e)?!0:e===mt&&MA(r):MA(A===mt?e:A)},Ig=function(A){var e=0,r=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(r=-1),e++);for(var t=[];MA(A[e]);)t.push(A[e++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;A[e]===mt&&e++;for(var a=[];MA(A[e]);)a.push(A[e++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(A[e]===ri||A[e]===ei)&&e++;var l=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(l=-1),e++);for(var c=[];MA(A[e]);)c.push(A[e++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},Hg={type:2},Sg={type:3},Lg={type:4},kg={type:13},Mg={type:8},Kg={type:21},Tg={type:9},Dg={type:10},Og={type:11},Rg={type:12},Ng={type:14},Jt={type:23},_g={type:1},Gg={type:25},jg={type:24},Vg={type:26},Pg={type:27},Xg={type:28},Jg={type:29},Wg={type:31},Sn={type:32},ai=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(xr(e))},A.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==Sn;)e.push(r),r=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case _t:return this.consumeStringToken(_t);case Wc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ea(r)||Be(t,n)){var a=Xt(r,t,n)?Pc:Vc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Yc:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),kg;break;case Gt:return this.consumeStringToken(Gt);case jt:return Hg;case $e:return Sg;case Pr:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Ng;break;case xe:if(Xr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case lg:return Lg;case _A:var o=e,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Xr(o,l,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Xt(o,l,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===_A&&c===Ag)return this.consumeCodePoint(),this.consumeCodePoint(),jg;break;case mt:if(Xr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Fa:if(this.peekCodePoint(0)===Pr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Pr&&(g=this.consumeCodePoint(),g===Fa))return this.consumeToken();if(g===$A)return this.consumeToken()}break;case cg:return Vg;case gg:return Pg;case $c:if(this.peekCodePoint(0)===qc&&this.peekCodePoint(1)===_A&&this.peekCodePoint(2)===_A)return this.consumeCodePoint(),this.consumeCodePoint(),Gg;break;case eg:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Xt(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case tg:return Xg;case ct:if(Be(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case rg:return Jg;case ng:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Mg;break;case ag:return Og;case sg:return Rg;case Cg:case mg:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===xe&&(ke(C)||C===Vt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case ba:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Tg;if(this.peekCodePoint(0)===ba)return this.consumeCodePoint(),Kg;break;case ig:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Dg;break;case $A:return Sn}return Pt(e)?(this.consumeWhiteSpace(),Wg):MA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):hr(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:bA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();ke(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var t=!1;r===Vt&&e.length<6;)e.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,e.map(function(l){return l===Vt?$s:l})),16),a=parseInt(bA.apply(void 0,e.map(function(l){return l===Vt?ni:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,e),16);if(this.peekCodePoint(0)===_A&&ke(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];ke(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===jt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===jt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Gt||r===_t){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Jt)}for(;;){var n=this.consumeCodePoint();if(n===$A||n===$e)return{type:22,value:bA.apply(void 0,e)};if(Pt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Jt);if(n===_t||n===Gt||n===jt||xg(n))return this.consumeBadUrlRemnants(),Jt;if(n===ct)if(Be(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Jt;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Pt(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===$e||e===$A)return;Be(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var r=5e4,t="";e>0;){var n=Math.min(r,e);t+=bA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},A.prototype.consumeStringToken=function(e){var r="",t=0;do{var n=this._value[t];if(n===$A||n===void 0||n===e)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===fr)return this._value.splice(0,t),_g;if(n===ct){var a=this._value[t+1];a!==$A&&a!==void 0&&(a===fr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):Be(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},A.prototype.consumeNumber=function(){var e=[],r=Et,t=this.peekCodePoint(0);for((t===xe||t===_A)&&e.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===mt&&MA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ua;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===ri||t===ei)&&((n===xe||n===_A)&&MA(a)||MA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Ua;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Ig(e),r]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],t=e[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Xt(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Zc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ke(e)){for(var r=bA(e);ke(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Pt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||Ug(t)||t>1114111?ya:t}return e===$A?ya:e},A.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(Ea(r))e+=bA(r);else if(Be(r,this.peekCodePoint(0)))e+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},A})(),si=(function(){function A(e){this._tokens=e}return A.create=function(e){var r=new ai;return r.write(e),new A(r.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},t=this.consumeToken();;){if(t.type===32||Zg(t,e))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Sn:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),xt=function(A){return A.type===15},Je=function(A){return A.type===17},uA=function(A){return A.type===20},Yg=function(A){return A.type===0},Ln=function(A,e){return uA(A)&&A.value===e},ii=function(A){return A.type!==31},Xe=function(A){return A.type!==31&&A.type!==4},ne=function(A){var e=[],r=[];return A.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&e.push(r),e},Zg=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},Qe=function(A){return A.type===17||A.type===15},yA=function(A){return A.type===16||Qe(A)},oi=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},LA={type:17,number:0,flags:Et},Jn={type:16,number:50,flags:Et},fe={type:16,number:100,flags:Et},at=function(A,e,r){var t=A[0],n=A[1];return[wA(t,e),wA(typeof n<"u"?n:t,r)]},wA=function(A,e){if(A.type===16)return A.number/100*e;if(xt(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},li="deg",ci="grad",gi="rad",ui="turn",Ir={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case li:return Math.PI*e.number/180;case ci:return Math.PI/200*e.number;case gi:return e.number;case ui:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},Bi=function(A){return A.type===15&&(A.unit===li||A.unit===ci||A.unit===gi||A.unit===ui)},di=function(A){var e=A.filter(uA).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return JA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,fe];case"to right":case"left":return JA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fe,fe];case"to bottom":case"top":return JA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fe,LA];case"to left":case"right":return JA(270)}return 0},JA=function(A){return Math.PI*A/180},pe={name:"color",parse:function(A,e){if(e.type===18){var r=zg[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(A,e.values)}if(e.type===5){if(e.value.length===3){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(e.value.length===4){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3),s=e.value.substring(3,4);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(e.value.length===6){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(e.value.length===8){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(e.type===20){var o=oe[e.value.toUpperCase()];if(typeof o<"u")return o}return oe.TRANSPARENT}},Ce=function(A){return(255&A)===0},xA=function(A){var e=255&A,r=255&A>>8,t=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+t+","+r+","+e/255+")":"rgb("+n+","+t+","+r+")"},he=function(A,e,r,t){return(A<<24|e<<16|r<<8|Math.round(t*255)<<0)>>>0},xa=function(A,e){if(A.type===17)return A.number;if(A.type===16){var r=e===3?1:255;return e===3?A.number/100*r:Math.round(A.number/100*r)}return 0},Ia=function(A,e){var r=e.filter(Xe);if(r.length===3){var t=r.map(xa),n=t[0],a=t[1],s=t[2];return he(n,a,s,1)}if(r.length===4){var o=r.map(xa),n=o[0],a=o[1],s=o[2],l=o[3];return he(n,a,s,l)}return 0};function Jr(A,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-A)*r*6+A:r<1/2?e:r<2/3?(e-A)*6*(2/3-r)+A:A}var Ha=function(A,e){var r=e.filter(Xe),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?JA(t.number):Ir.parse(A,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return he(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=Jr(u,B,o+1/3),Q=Jr(u,B,o),C=Jr(u,B,o-1/3);return he(p*255,Q*255,C*255,g)},zg={hsl:Ha,hsla:Ha,rgb:Ia,rgba:Ia},gt=function(A,e){return pe.parse(A,si.create(e).parseComponentValue())},oe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},qg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$g={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Hr=function(A,e){var r=pe.parse(A,e[0]),t=e[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Sa=function(A,e){var r=A[0],t=A[A.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=fe);for(var n=[],a=0,s=0;s<A.length;s++){var o=A[s].stop;if(o!==null){var l=wA(o,e);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return A.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/e),0)}})},Au=function(A,e,r){var t=e/2,n=r/2,a=wA(A[0],e)-t,s=n-wA(A[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},eu=function(A,e,r){var t=typeof A=="number"?A:Au(A,e,r),n=Math.abs(e*Math.sin(t))+Math.abs(r*Math.cos(t)),a=e/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},zA=function(A,e){return Math.sqrt(A*A+e*e)},La=function(A,e,r,t,n){var a=[[0,0],[0,e],[A,0],[A,e]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=zA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},tu=function(A,e,r,t,n){var a=0,s=0;switch(A.size){case 0:A.shape===0?a=s=Math.min(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(A.shape===0)a=s=Math.min(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(e),Math.abs(e-t)),l=La(t,n,e,r,!0),c=l[0],g=l[1];a=zA(c-e,(g-r)/o),s=o*a}break;case 1:A.shape===0?a=s=Math.max(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(A.shape===0)a=s=Math.max(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(e),Math.abs(e-t)),B=La(t,n,e,r,!1),c=B[0],g=B[1];a=zA(c-e,(g-r)/o),s=o*a}break}return Array.isArray(A.size)&&(a=wA(A.size[0],t),s=A.size.length===2?wA(A.size[1],n):a),[a,s]},ru=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=di(n);return}else if(Bi(s)){r=Ir.parse(A,s);return}}var o=Hr(A,n);t.push(o)}),{angle:r,stops:t,type:1}},Wt=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=di(n);return}else if(Bi(s)){r=(Ir.parse(A,s)+JA(270))%JA(360);return}}var o=Hr(A,n);t.push(o)}),{angle:r,stops:t,type:1}},nu=function(A,e){var r=JA(180),t=[],n=1,a=0,s=3,o=[];return ne(e).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=pe.parse(A,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=pe.parse(A,g.values[0]);t.push({stop:fe,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(Xe);if(u.length===2){var B=pe.parse(A,u[1]),p=u[0];Je(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+JA(180))%JA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},fi="closest-side",hi="farthest-side",wi="closest-corner",pi="farthest-corner",Ci="circle",Qi="ellipse",mi="cover",vi="contain",au=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(Jn),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(fe),B}else(yA(u)||Qe(u))&&a.push(u);else if(uA(u))switch(u.value){case Ci:return r=0,!1;case Qi:return r=1,!1;case"at":return c=!0,!1;case fi:return t=0,!1;case mi:case hi:return t=1,!1;case vi:case wi:return t=2,!1;case pi:return t=3,!1}else if(Qe(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=Hr(A,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Yt=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(Jn),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(fe),!1}else if(yA(B)||Qe(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case Ci:return r=0,!1;case Qi:return r=1,!1;case vi:case fi:return t=0,!1;case hi:return t=1,!1;case wi:return t=2,!1;case mi:case pi:return t=3,!1}else if(Qe(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=Hr(A,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},su=function(A){return A.type===1},iu=function(A){return A.type===2},Wn={name:"image",parse:function(A,e){if(e.type===22){var r={url:e.value,type:0};return A.cache.addImage(e.value),r}if(e.type===18){var t=Ui[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function ou(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!Ui[A.name])}var Ui={"linear-gradient":ru,"-moz-linear-gradient":Wt,"-ms-linear-gradient":Wt,"-o-linear-gradient":Wt,"-webkit-linear-gradient":Wt,"radial-gradient":au,"-moz-radial-gradient":Yt,"-ms-radial-gradient":Yt,"-o-radial-gradient":Yt,"-webkit-radial-gradient":Yt,"-webkit-gradient":nu},lu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(t){return Xe(t)&&ou(t)}).map(function(t){return Wn.parse(A,t)})}},cu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gu={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return ne(e).map(function(r){return r.filter(yA)}).map(oi)}},uu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map(Bu)}},Bu=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},_e;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(_e||(_e={}));var du={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(fu)})}},fu=function(A){return uA(A)||yA(A)},Sr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},hu=Sr("top"),wu=Sr("right"),pu=Sr("bottom"),Cu=Sr("left"),Lr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return oi(r.filter(yA))}}},Qu=Lr("top-left"),mu=Lr("top-right"),vu=Lr("bottom-right"),Uu=Lr("bottom-left"),kr=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Fu=kr("top"),bu=kr("right"),yu=kr("bottom"),Eu=kr("left"),Mr=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return xt(r)?r.number:0}}},xu=Mr("top"),Iu=Mr("right"),Hu=Mr("bottom"),Su=Mr("left"),Lu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ku={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return e==="rtl"?1:0}},Mu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).reduce(function(r,t){return r|Ku(t.value)},0)}},Ku=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Tu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Du={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},wr;(function(A){A.NORMAL="normal",A.STRICT="strict"})(wr||(wr={}));var Ou={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="strict"?wr.STRICT:wr.NORMAL}},Ru={name:"line-height",initialValue:"normal",prefix:!1,type:4},ka=function(A,e){return uA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:yA(A)?wA(A,e):e},Nu={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:Wn.parse(A,e)}},_u={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return e==="inside"?0:1}},kn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Kr=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},Gu=Kr("top"),ju=Kr("right"),Vu=Kr("bottom"),Pu=Kr("left"),Xu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Ju={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="break-word"?"break-word":"normal"}},Tr=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Wu=Tr("top"),Yu=Tr("right"),Zu=Tr("bottom"),zu=Tr("left"),qu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},$u={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},AB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Ln(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:oe.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=pe.parse(A,s)}return t})}},eB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},tB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=aB[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},rB=function(A){var e=A.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},nB=function(A){var e=A.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=e[0],t=e[1];e[2],e[3];var n=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],e.length===16?[r,t,n,a,s,o]:null},aB={matrix:rB,matrix3d:nB},Ma={type:16,number:50,flags:Et},sB=[Ma,Ma],iB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var r=e.filter(yA);return r.length!==2?sB:[r[0],r[1]]}},oB={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ut;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(ut||(ut={}));var lB={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return ut.BREAK_ALL;case"keep-all":return ut.KEEP_ALL;default:return ut.NORMAL}}},cB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Je(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Fi={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},gB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:1}},uB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},BB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},dB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var r=[],t=[];return e.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},fB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},hB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:uA(e)&&e.value==="bold"?700:400}},wB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(uA).map(function(r){return r.value})}},pB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(A,e){return(A&e)!==0},CB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},QB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=e.filter(ii),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Je(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},mB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var r=[],t=e.filter(ii),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Je(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},vB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(xt).map(function(r){return Fi.parse(A,r)})}},UB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var t=[],n=e.filter(Yg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},Ka=function(A,e,r){if(!A)return"";var t=A[Math.min(e,A.length-1)];return t?r?t.open:t.close:""},FB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Ln(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];Ln(s,"inset")?t.inset=!0:Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=pe.parse(A,s)}return t})}},bB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var r=[0,1,2],t=[];return e.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},yB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},EB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return xt(e)?e.number:0}},xB=(function(){function A(e,r){var t,n;this.animationDuration=J(e,vB,r.animationDuration),this.backgroundClip=J(e,qg,r.backgroundClip),this.backgroundColor=J(e,$g,r.backgroundColor),this.backgroundImage=J(e,lu,r.backgroundImage),this.backgroundOrigin=J(e,cu,r.backgroundOrigin),this.backgroundPosition=J(e,gu,r.backgroundPosition),this.backgroundRepeat=J(e,uu,r.backgroundRepeat),this.backgroundSize=J(e,du,r.backgroundSize),this.borderTopColor=J(e,hu,r.borderTopColor),this.borderRightColor=J(e,wu,r.borderRightColor),this.borderBottomColor=J(e,pu,r.borderBottomColor),this.borderLeftColor=J(e,Cu,r.borderLeftColor),this.borderTopLeftRadius=J(e,Qu,r.borderTopLeftRadius),this.borderTopRightRadius=J(e,mu,r.borderTopRightRadius),this.borderBottomRightRadius=J(e,vu,r.borderBottomRightRadius),this.borderBottomLeftRadius=J(e,Uu,r.borderBottomLeftRadius),this.borderTopStyle=J(e,Fu,r.borderTopStyle),this.borderRightStyle=J(e,bu,r.borderRightStyle),this.borderBottomStyle=J(e,yu,r.borderBottomStyle),this.borderLeftStyle=J(e,Eu,r.borderLeftStyle),this.borderTopWidth=J(e,xu,r.borderTopWidth),this.borderRightWidth=J(e,Iu,r.borderRightWidth),this.borderBottomWidth=J(e,Hu,r.borderBottomWidth),this.borderLeftWidth=J(e,Su,r.borderLeftWidth),this.boxShadow=J(e,FB,r.boxShadow),this.color=J(e,Lu,r.color),this.direction=J(e,ku,r.direction),this.display=J(e,Mu,r.display),this.float=J(e,Tu,r.cssFloat),this.fontFamily=J(e,dB,r.fontFamily),this.fontSize=J(e,fB,r.fontSize),this.fontStyle=J(e,pB,r.fontStyle),this.fontVariant=J(e,wB,r.fontVariant),this.fontWeight=J(e,hB,r.fontWeight),this.letterSpacing=J(e,Du,r.letterSpacing),this.lineBreak=J(e,Ou,r.lineBreak),this.lineHeight=J(e,Ru,r.lineHeight),this.listStyleImage=J(e,Nu,r.listStyleImage),this.listStylePosition=J(e,_u,r.listStylePosition),this.listStyleType=J(e,kn,r.listStyleType),this.marginTop=J(e,Gu,r.marginTop),this.marginRight=J(e,ju,r.marginRight),this.marginBottom=J(e,Vu,r.marginBottom),this.marginLeft=J(e,Pu,r.marginLeft),this.opacity=J(e,gB,r.opacity);var a=J(e,Xu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=J(e,Ju,r.overflowWrap),this.paddingTop=J(e,Wu,r.paddingTop),this.paddingRight=J(e,Yu,r.paddingRight),this.paddingBottom=J(e,Zu,r.paddingBottom),this.paddingLeft=J(e,zu,r.paddingLeft),this.paintOrder=J(e,bB,r.paintOrder),this.position=J(e,$u,r.position),this.textAlign=J(e,qu,r.textAlign),this.textDecorationColor=J(e,uB,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=J(e,BB,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=J(e,AB,r.textShadow),this.textTransform=J(e,eB,r.textTransform),this.transform=J(e,tB,r.transform),this.transformOrigin=J(e,iB,r.transformOrigin),this.visibility=J(e,oB,r.visibility),this.webkitTextStrokeColor=J(e,yB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=J(e,EB,r.webkitTextStrokeWidth),this.wordBreak=J(e,lB,r.wordBreak),this.zIndex=J(e,cB,r.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ce(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},A})(),IB=(function(){function A(e,r){this.content=J(e,CB,r.content),this.quotes=J(e,UB,r.quotes)}return A})(),Ta=(function(){function A(e,r){this.counterIncrement=J(e,QB,r.counterIncrement),this.counterReset=J(e,mB,r.counterReset)}return A})(),J=function(A,e,r){var t=new ai,n=r!==null&&typeof r<"u"?r.toString():e.initialValue;t.write(n);var a=new si(t.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(A,uA(s)?s.value:e.initialValue);case 0:return e.parse(A,a.parseComponentValue());case 1:return e.parse(A,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Ir.parse(A,a.parseComponentValue());case"color":return pe.parse(A,a.parseComponentValue());case"image":return Wn.parse(A,a.parseComponentValue());case"length":var o=a.parseComponentValue();return Qe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return Fi.parse(A,a.parseComponentValue())}break}},HB="data-html2canvas-debug",SB=function(A){var e=A.getAttribute(HB);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Mn=function(A,e){var r=SB(A);return r===1||e===r},ae=(function(){function A(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Mn(r,3))debugger;this.styles=new xB(e,window.getComputedStyle(r,null)),Dn(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Er(this.context,r),Mn(r,4)&&(this.flags|=16)}return A})(),LB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Zt=0;Zt<Da.length;Zt++)st[Da.charCodeAt(Zt)]=Zt;var kB=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=st[A.charCodeAt(t)],s=st[A.charCodeAt(t+1)],o=st[A.charCodeAt(t+2)],l=st[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},MB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},KB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},He=5,Yn=11,Wr=2,TB=Yn-He,bi=65536>>He,DB=1<<He,Yr=DB-1,OB=1024>>He,RB=bi+OB,NB=RB,_B=32,GB=NB+_B,jB=65536>>Yn,VB=1<<TB,PB=VB-1,Oa=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},XB=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},JB=function(A,e){var r=kB(A),t=Array.isArray(r)?KB(r):new Uint32Array(r),n=Array.isArray(r)?MB(r):new Uint16Array(r),a=24,s=Oa(n,a/2,t[4]/2),o=t[5]===2?Oa(n,(a+t[4])/2):XB(t,Math.ceil((a+t[4])/4));return new WB(t[0],t[1],t[2],t[3],s,o)},WB=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>He],r=(r<<Wr)+(e&Yr),this.data[r];if(e<=65535)return r=this.index[bi+(e-55296>>He)],r=(r<<Wr)+(e&Yr),this.data[r];if(e<this.highStart)return r=GB-jB+(e>>Yn),r=this.index[r],r+=e>>He&PB,r=this.index[r],r=(r<<Wr)+(e&Yr),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var zt=0;zt<Ra.length;zt++)YB[Ra.charCodeAt(zt)]=zt;var ZB=1,Zr=2,zr=3,Na=4,_a=5,zB=7,Ga=8,qr=9,$r=10,ja=11,Va=12,Pa=13,Xa=14,An=15,qB=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},$B=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},Ad=JB(LB),PA="×",en="÷",ed=function(A){return Ad.get(A)},td=function(A,e,r){var t=r-2,n=e[t],a=e[r-1],s=e[r];if(a===Zr&&s===zr)return PA;if(a===Zr||a===zr||a===Na||s===Zr||s===zr||s===Na)return en;if(a===Ga&&[Ga,qr,ja,Va].indexOf(s)!==-1||(a===ja||a===qr)&&(s===qr||s===$r)||(a===Va||a===$r)&&s===$r||s===Pa||s===_a||s===zB||a===ZB)return PA;if(a===Pa&&s===Xa){for(;n===_a;)n=e[--t];if(n===Xa)return PA}if(a===An&&s===An){for(var o=0;n===An;)o++,n=e[--t];if(o%2===0)return PA}return en},rd=function(A){var e=qB(A),r=e.length,t=0,n=0,a=e.map(ed);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=PA;t<r&&(s=td(e,a,++t))===PA;);if(s!==PA||t===r){var o=$B.apply(null,e.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},nd=function(A){for(var e=rd(A),r=[],t;!(t=e.next()).done;)t.value&&r.push(t.value.slice());return r},ad=function(A){var e=123;if(A.createRange){var r=A.createRange();if(r.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height=e+"px",t.style.display="block",A.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(A.body.removeChild(t),a===e)return!0}}return!1},sd=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var r=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=e.firstChild,n=xr(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return A.body.removeChild(e),o},id=function(){return typeof new Image().crossOrigin<"u"},od=function(){return typeof new XMLHttpRequest().responseType=="string"},ld=function(A){var e=new Image,r=A.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},Ja=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},cd=function(A){var e=A.createElement("canvas"),r=100;e.width=r,e.height=r;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=e.toDataURL();n.src=a;var s=Kn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Wa(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=A.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Ja(l)?Wa(Kn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Ja(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Kn=function(A,e,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Wa=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){return e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},HA={get SUPPORT_RANGE_BOUNDS(){var A=ad(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=HA.SUPPORT_RANGE_BOUNDS&&sd(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=ld(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?cd(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=id();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=od();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Bt=(function(){function A(e,r){this.text=e,this.bounds=r}return A})(),gd=function(A,e,r,t){var n=dd(e,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Ya(t,s,o.length).getClientRects();if(l.length>1){var c=Zn(o),g=0;c.forEach(function(u){a.push(new Bt(u,le.fromDOMRectList(A,Ya(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new Bt(o,le.fromDOMRectList(A,l)))}else{var B=t.splitText(o.length);a.push(new Bt(o,ud(A,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},ud=function(A,e){var r=e.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(t,e);var a=Er(A,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return le.EMPTY},Ya=function(A,e,r){var t=A.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(A,e),n.setEnd(A,e+r),n},Zn=function(A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return nd(A)},Bd=function(A,e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(A)).map(function(t){return t.segment})}return hd(A,e)},dd=function(A,e){return e.letterSpacing!==0?Zn(A):Bd(A,e)},fd=[32,160,4961,65792,65793,4153,4241],hd=function(A,e){for(var r=jc(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=xr(s),l="";o.forEach(function(c){fd.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},wd=(function(){function A(e,r,t){this.text=pd(r.data,t.textTransform),this.textBounds=gd(e,this.text,t,r)}return A})(),pd=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(Cd,Qd);case 2:return A.toUpperCase();default:return A}},Cd=/(^|\s|:|-|\(|\))([a-z])/g,Qd=function(A,e,r){return A.length>0?e+r.toUpperCase():A},yi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e})(ae),Ei=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e})(ae),xi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=new XMLSerializer,s=Er(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e})(ae),Ii=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Tn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return e})(ae),md=[{type:15,flags:0,unit:"px",number:3}],vd=[{type:16,flags:0,number:50}],Ud=function(A){return A.width>A.height?new le(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new le(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Fd=function(A){var e=A.type===bd?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},pr="checkbox",Cr="radio",bd="password",Za=707406591,zn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Fd(t),(n.type===pr||n.type===Cr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=Ud(n.bounds)),n.type){case pr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=md;break;case Cr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=vd;break}return n}return e})(ae),Hi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return e})(ae),Si=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Li=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Mi(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?gt(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):oe.TRANSPARENT,s=t.contentWindow.document.body?gt(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):oe.TRANSPARENT;n.backgroundColor=Ce(a)?Ce(s)?n.styles.backgroundColor:s:a}}catch{}return n}return e})(ae),yd=["OL","UL","MENU"],sr=function(A,e,r,t){for(var n=e.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Ki(n)&&n.data.trim().length>0)r.textNodes.push(new wd(A,n,r.styles));else if(Ne(n))if(Ri(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return sr(A,o,r,t)});else{var s=ki(A,n);s.styles.isVisible()&&(Ed(n,s,t)?s.flags|=4:xd(s.styles)&&(s.flags|=2),yd.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?sr(A,n.shadowRoot,s,t):!Qr(n)&&!Ti(n)&&!mr(n)&&sr(A,n,s,t))}},ki=function(A,e){return On(e)?new yi(A,e):Di(e)?new Ei(A,e):Ti(e)?new xi(A,e):Id(e)?new Ii(A,e):Hd(e)?new Tn(A,e):Sd(e)?new zn(A,e):mr(e)?new Hi(A,e):Qr(e)?new Si(A,e):Oi(e)?new Li(A,e):new ae(A,e)},Mi=function(A,e){var r=ki(A,e);return r.flags|=4,sr(A,e,r,r),r},Ed=function(A,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||qn(A)&&r.styles.isTransparent()},xd=function(A){return A.isPositioned()||A.isFloating()},Ki=function(A){return A.nodeType===Node.TEXT_NODE},Ne=function(A){return A.nodeType===Node.ELEMENT_NODE},Dn=function(A){return Ne(A)&&typeof A.style<"u"&&!ir(A)},ir=function(A){return typeof A.className=="object"},Id=function(A){return A.tagName==="LI"},Hd=function(A){return A.tagName==="OL"},Sd=function(A){return A.tagName==="INPUT"},Ld=function(A){return A.tagName==="HTML"},Ti=function(A){return A.tagName==="svg"},qn=function(A){return A.tagName==="BODY"},Di=function(A){return A.tagName==="CANVAS"},za=function(A){return A.tagName==="VIDEO"},On=function(A){return A.tagName==="IMG"},Oi=function(A){return A.tagName==="IFRAME"},qa=function(A){return A.tagName==="STYLE"},kd=function(A){return A.tagName==="SCRIPT"},Qr=function(A){return A.tagName==="TEXTAREA"},mr=function(A){return A.tagName==="SELECT"},Ri=function(A){return A.tagName==="SLOT"},$a=function(A){return A.tagName.indexOf("-")>0},Md=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},A.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},A.prototype.pop=function(e){var r=this;e.forEach(function(t){return r.counters[t].pop()})},A.prototype.parse=function(e){var r=this,t=e.counterIncrement,n=e.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},A})(),As={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},es={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Kd={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Td={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Me=function(A,e,r,t,n,a){return A<e||A>r?vt(A,n,a.length>0):t.integers.reduce(function(s,o,l){for(;A>=o;)A-=o,s+=t.values[l];return s},"")+a},Ni=function(A,e,r,t){var n="";do r||A--,n=t(A)+n,A/=e;while(A*e>=e);return n},FA=function(A,e,r,t,n){var a=r-e+1;return(A<0?"-":"")+(Ni(Math.abs(A),a,t,function(s){return bA(Math.floor(s%a)+e)})+n)},me=function(A,e,r){r===void 0&&(r=". ");var t=e.length;return Ni(Math.abs(A),t,!1,function(n){return e[Math.floor(n%t)]})+r},De=1,ce=2,ge=4,it=8,ie=function(A,e,r,t,n,a){if(A<-9999||A>9999)return vt(A,4,n.length>0);var s=Math.abs(A),o=n;if(s===0)return e[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,De)&&o!==""?o=e[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,ce)||c===1&&l===1&&EA(a,ge)&&A>100||c===1&&l>1&&EA(a,it)?o=e[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(A<0?t:"")+o},ts="十百千萬",rs="拾佰仟萬",ns="マイナス",tn="마이너스",vt=function(A,e,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(A,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return me(A,"〇一二三四五六七八九",n);case 6:return Me(A,1,3999,As,3,t).toLowerCase();case 7:return Me(A,1,3999,As,3,t);case 8:return FA(A,945,969,!1,t);case 9:return FA(A,97,122,!1,t);case 10:return FA(A,65,90,!1,t);case 11:return FA(A,1632,1641,!0,t);case 12:case 49:return Me(A,1,9999,es,3,t);case 35:return Me(A,1,9999,es,3,t).toLowerCase();case 13:return FA(A,2534,2543,!0,t);case 14:case 30:return FA(A,6112,6121,!0,t);case 15:return me(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return me(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ie(A,"零一二三四五六七八九",ts,"負",n,ce|ge|it);case 47:return ie(A,"零壹貳參肆伍陸柒捌玖",rs,"負",n,De|ce|ge|it);case 42:return ie(A,"零一二三四五六七八九",ts,"负",n,ce|ge|it);case 41:return ie(A,"零壹贰叁肆伍陆柒捌玖",rs,"负",n,De|ce|ge|it);case 26:return ie(A,"〇一二三四五六七八九","十百千万",ns,n,0);case 25:return ie(A,"零壱弐参四伍六七八九","拾百千万",ns,n,De|ce|ge);case 31:return ie(A,"영일이삼사오육칠팔구","십백천만",tn,a,De|ce|ge);case 33:return ie(A,"零一二三四五六七八九","十百千萬",tn,a,0);case 32:return ie(A,"零壹貳參四五六七八九","拾百千",tn,a,De|ce|ge);case 18:return FA(A,2406,2415,!0,t);case 20:return Me(A,1,19999,Td,3,t);case 21:return FA(A,2790,2799,!0,t);case 22:return FA(A,2662,2671,!0,t);case 22:return Me(A,1,10999,Kd,3,t);case 23:return me(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return me(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(A,3302,3311,!0,t);case 28:return me(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return me(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(A,3792,3801,!0,t);case 37:return FA(A,6160,6169,!0,t);case 38:return FA(A,4160,4169,!0,t);case 39:return FA(A,2918,2927,!0,t);case 40:return FA(A,1776,1785,!0,t);case 43:return FA(A,3046,3055,!0,t);case 44:return FA(A,3174,3183,!0,t);case 45:return FA(A,3664,3673,!0,t);case 46:return FA(A,3872,3881,!0,t);default:return FA(A,48,57,!0,t)}},_i="data-html2canvas-ignore",as=(function(){function A(e,r,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new Md,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,r){var t=this,n=Dd(e,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=Nd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Vd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Rd(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(Gd(document.doctype)+"<html></html>"),jd(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(e){if(Mn(e,2))debugger;if(Di(e))return this.createCanvasClone(e);if(za(e))return this.createVideoClone(e);if(qa(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return On(r)&&(On(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),$a(r)?this.createCustomElementClone(r):r},A.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return rn(e.style,r),r},A.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=e.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var a=e.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,r,t){(!Ne(r)||!kd(r)&&!r.hasAttribute(_i)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ne(r)||!qa(r))&&e.appendChild(this.cloneNode(r,t))},A.prototype.cloneChildNodes=function(e,r,t){for(var n=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Ne(a)&&Ri(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},A.prototype.cloneNode=function(e,r){if(Ki(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Ne(e)&&(Dn(e)||ir(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var a=t.getComputedStyle(e),s=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&Dn(n)&&(this.clonedReferenceElement=n),qn(n)&&Jd(n);var l=this.counters.parse(new Ta(this.context,a)),c=this.resolvePseudoContent(e,n,s,dt.BEFORE);$a(e)&&(r=!0),za(e)||this.cloneChildNodes(e,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(e,n,o,dt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||ir(e))&&!Oi(e)||r)&&rn(a,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Qr(e)||mr(e))&&(Qr(n)||mr(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ta(this.context,t));var l=new IB(this.context,t),c=o.createElement("html2canvaspseudoelement");rn(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(e.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(Xe),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?kn.parse(a.context,x.value):3;c.appendChild(o.createTextNode(vt(U,y,!1)))}}else if(B.name==="counters"){var S=B.values.filter(Xe),C=S[0],H=S[1],x=S[2];if(C&&uA(C)){var L=a.counters.getCounterValues(C.value),h=x&&uA(x)?kn.parse(a.context,x.value):3,b=H&&H.type===0?H.value:"",k=L.map(function(O){return vt(O,h,!1)}).join(b);c.appendChild(o.createTextNode(k))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(Ka(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Ka(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=Rn+" "+Nn;var g=n===dt.BEFORE?" "+Rn:" "+Nn;return ir(r)?r.className.baseValue+=g:r.className+=g,c}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),dt;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(dt||(dt={}));var Dd=function(A,e){var r=A.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(_i,"true"),A.body.appendChild(r),r},Od=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},Rd=function(A){return Promise.all([].slice.call(A.images,0).map(Od))},Nd=function(A){return new Promise(function(e,r){var t=A.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=A.onload=function(){t.onload=A.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),e(A))},50)}})},_d=["all","d","content"],rn=function(A,e){for(var r=A.length-1;r>=0;r--){var t=A.item(r);_d.indexOf(t)===-1&&e.style.setProperty(t,A.getPropertyValue(t))}return e},Gd=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},jd=function(A,e,r){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||r!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,r)},Vd=function(A){var e=A[0],r=A[1],t=A[2];e.scrollLeft=r,e.scrollTop=t},Pd=":before",Xd=":after",Rn="___html2canvas___pseudoelement_before",Nn="___html2canvas___pseudoelement_after",ss=`{
+ content: "" !important;
+ display: none !important;
+}`,Jd=function(A){Wd(A,"."+Rn+Pd+ss+`
+ .`+Nn+Xd+ss)},Wd=function(A,e){var r=A.ownerDocument;if(r){var t=r.createElement("style");t.textContent=e,A.appendChild(t)}},Gi=(function(){function A(){}return A.getOrigin=function(e){var r=A._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Yd=(function(){function A(e,r){this.context=e,this._options=r,this._cache={}}return A.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(an(e)||$d(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=Gi.isSameOrigin(e),t=!nn(e)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!nn(e)&&!r&&!an(e)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!nn(e)&&!an(e)&&!n&&!t?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,(Af(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},A})(),Zd=/^data:image\/svg\+xml/i,zd=/^data:image\/.*;base64,/i,qd=/^data:image\/.*/i,$d=function(A){return HA.SUPPORT_SVG_DRAWING||!ef(A)},nn=function(A){return qd.test(A)},Af=function(A){return zd.test(A)},an=function(A){return A.substr(0,4)==="blob"},ef=function(A){return A.substr(-3).toLowerCase()==="svg"||Zd.test(A)},V=(function(){function A(e,r){this.type=0,this.x=e,this.y=r}return A.prototype.add=function(e,r){return new A(this.x+e,this.y+r)},A})(),Ke=function(A,e,r){return new V(A.x+(e.x-A.x)*r,A.y+(e.y-A.y)*r)},qt=(function(){function A(e,r,t,n){this.type=1,this.start=e,this.startControl=r,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,r){var t=Ke(this.start,this.startControl,e),n=Ke(this.startControl,this.endControl,e),a=Ke(this.endControl,this.end,e),s=Ke(t,n,e),o=Ke(n,a,e),l=Ke(s,o,e);return r?new A(this.start,t,s,l):new A(l,o,a,this.end)},A.prototype.add=function(e,r){return new A(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),XA=function(A){return A.type===1},tf=(function(){function A(e){var r=e.styles,t=e.bounds,n=at(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=at(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=at(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=at(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,S=t.height-u,H=t.width-B,L=t.height-C,h=r.borderTopWidth,b=r.borderRightWidth,k=r.borderBottomWidth,M=r.borderLeftWidth,R=wA(r.paddingTop,e.bounds.width),O=wA(r.paddingRight,e.bounds.width),Z=wA(r.paddingBottom,e.bounds.width),D=wA(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+M/3,t.top+h/3,a-M/3,s-h/3,gA.TOP_LEFT):new V(t.left+M/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-b/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-b/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+H,t.top+S,B-b/3,u-k/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/3,t.top+t.height-k/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+M/3,t.top+L,Q-M/3,C-k/3,gA.BOTTOM_LEFT):new V(t.left+M/3,t.top+t.height-k/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+M*2/3,t.top+h*2/3,a-M*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+M*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-b*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-b*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+H,t.top+S,B-b*2/3,u-k*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b*2/3,t.top+t.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+M*2/3,t.top+L,Q-M*2/3,C-k*2/3,gA.BOTTOM_LEFT):new V(t.left+M*2/3,t.top+t.height-k*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+M/2,t.top+h/2,a-M/2,s-h/2,gA.TOP_LEFT):new V(t.left+M/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-b/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-b/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+H,t.top+S,B-b/2,u-k/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/2,t.top+t.height-k/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+M/2,t.top+L,Q-M/2,C-k/2,gA.BOTTOM_LEFT):new V(t.left+M/2,t.top+t.height-k/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+H,t.top+S,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+L,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+M,t.top+h,Math.max(0,a-M),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+M,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-b),t.top+h,y>t.width+b?0:Math.max(0,l-b),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-b,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(H,t.width-M),t.top+Math.min(S,t.height-k),Math.max(0,B-b),Math.max(0,u-k),gA.BOTTOM_RIGHT):new V(t.left+t.width-b,t.top+t.height-k),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+M,t.top+Math.min(L,t.height-k),Math.max(0,Q-M),Math.max(0,C-k),gA.BOTTOM_LEFT):new V(t.left+M,t.top+t.height-k),this.topLeftContentBox=a>0||s>0?QA(t.left+M+D,t.top+h+R,Math.max(0,a-(M+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+M+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+M+D),t.top+h+R,y>t.width+M+D?0:l-M+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(b+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(H,t.width-(M+D)),t.top+Math.min(S,t.height+h+R),Math.max(0,B-(b+O)),u-(k+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(b+O),t.top+t.height-(k+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+M+D,t.top+L,Math.max(0,Q-(M+D)),C-(k+Z),gA.BOTTOM_LEFT):new V(t.left+M+D,t.top+t.height-(k+Z))}return A})(),gA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(A,e,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=A+r,c=e+t;switch(n){case gA.TOP_LEFT:return new qt(new V(A,c),new V(A,c-o),new V(l-s,e),new V(l,e));case gA.TOP_RIGHT:return new qt(new V(A,e),new V(A+s,e),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new qt(new V(l,e),new V(l,e+o),new V(A+s,c),new V(A,c));case gA.BOTTOM_LEFT:default:return new qt(new V(l,c),new V(l-s,c),new V(A,e+o),new V(A,e))}},vr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},rf=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Ur=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},nf=(function(){function A(e,r,t){this.offsetX=e,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return A})(),$t=(function(){function A(e,r){this.path=e,this.target=r,this.type=1}return A})(),af=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),sf=function(A){return A.type===0},ji=function(A){return A.type===1},of=function(A){return A.type===2},is=function(A,e){return A.length===e.length?A.some(function(r,t){return r===e[t]}):!1},lf=function(A,e,r,t,n){return A.map(function(a,s){switch(s){case 0:return a.add(e,r);case 1:return a.add(e+t,r);case 2:return a.add(e+t,r+n);case 3:return a.add(e,r+n)}return a})},Vi=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Pi=(function(){function A(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new tf(this.container),this.container.styles.opacity<1&&this.effects.push(new af(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new nf(t,n,a))}if(this.container.styles.overflowX!==0){var s=vr(this.curves),o=Ur(this.curves);is(s,o)?this.effects.push(new $t(s,6)):(this.effects.push(new $t(s,2)),this.effects.push(new $t(o,4)))}}return A.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!ji(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=vr(t.curves),o=Ur(t.curves);is(s,o)||n.unshift(new $t(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,e)})},A})(),_n=function(A,e,r,t){A.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Pi(n,A);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:e,g=new Vi(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);_n(o,g,a?g:r,l)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),_n(o,e,r,l);EA(n.flags,8)&&Xi(n,l)})},Xi=function(A,e){for(var r=A instanceof Tn?A.start:1,t=A instanceof Tn?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof Ii&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=vt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},cf=function(A){var e=new Pi(A,null),r=new Vi(e),t=[];return _n(e,r,r,t),Xi(e.container,t),r},os=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},gf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return WA(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},uf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},Bf=function(A,e){switch(e){case 0:return Ar(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return Ar(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return Ar(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return Ar(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},Ar=function(A,e){var r=[];return XA(A)?r.push(A.subdivide(.5,!1)):r.push(A),XA(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},WA=function(A,e,r,t){var n=[];return XA(A)?n.push(A.subdivide(.5,!1)):n.push(A),XA(r)?n.push(r.subdivide(.5,!0)):n.push(r),XA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),XA(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Ji=function(A){var e=A.bounds,r=A.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Fr=function(A){var e=A.styles,r=A.bounds,t=wA(e.paddingLeft,r.width),n=wA(e.paddingRight,r.width),a=wA(e.paddingTop,r.width),s=wA(e.paddingBottom,r.width);return r.add(t+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+t+n),-(e.borderTopWidth+e.borderBottomWidth+a+s))},df=function(A,e){return A===0?e.bounds:A===2?Fr(e):Ji(e)},ff=function(A,e){return A===0?e.bounds:A===2?Fr(e):Ji(e)},sn=function(A,e,r){var t=df(Oe(A.styles.backgroundOrigin,e),A),n=ff(Oe(A.styles.backgroundClip,e),A),a=hf(Oe(A.styles.backgroundSize,e),r,t),s=a[0],o=a[1],l=at(Oe(A.styles.backgroundPosition,e),t.width-s,t.height-o),c=wf(Oe(A.styles.backgroundRepeat,e),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Te=function(A){return uA(A)&&A.value===_e.AUTO},er=function(A){return typeof A=="number"},hf=function(A,e,r){var t=e[0],n=e[1],a=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=er(a);if(uA(s)&&(s.value===_e.CONTAIN||s.value===_e.COVER)){if(er(a)){var c=r.width/r.height;return c<a!=(s.value===_e.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=er(t),B=er(n),u=g||B;if(Te(s)&&(!o||Te(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Te(s)?U=y*a:(!o||Te(o))&&(y=U/a),[U,y]}var S=null,H=null;if(yA(s)?S=wA(s,r.width):o&&yA(o)&&(H=wA(o,r.height)),S!==null&&(!o||Te(o))&&(H=g&&B?S/t*n:r.height),H!==null&&Te(s)&&(S=g&&B?H/n*t:r.width),S!==null&&H!==null)return[S,H];throw new Error("Unable to calculate background-size for element")},Oe=function(A,e){var r=A[e];return typeof r>"u"?A[0]:r},wf=function(A,e,r,t,n){var a=e[0],s=e[1],o=r[0],l=r[1];switch(A){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},pf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ls="Hidden Text",Cf=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=pf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(ls)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(ls)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},A.prototype.getMetrics=function(e,r){var t=e+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(e,r)),this._data[t]},A})(),Wi=(function(){function A(e,r){this.context=e,this.options=r}return A})(),Qf=1e4,mf=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new Cf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return e.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},e.prototype.applyEffect=function(r){this.ctx.save(),of(r)&&(this.ctx.globalAlpha=r.opacity),sf(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),ji(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Zn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=yf(r.fontFamily).join(", "),a=xt(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Fr(r),s=Ur(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,H,p,Q,L,C,x,U,y,S,H,L;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof yi))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Ei&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof xi))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Li&&t.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof zn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===pr?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(Za),this.ctx.fill(),this.ctx.restore()):t.type===Cr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Za),this.ctx.fill(),this.ctx.restore())),vf(t)&&t.value.length){switch(u=this.createFontStyle(a),H=u[0],p=u[1],Q=this.fontMetrics.getMetrics(H,p).baseline,this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ff(t.styles.textAlign),L=Fr(t),C=0,t.styles.textAlign){case 1:C+=L.width/2;break;case 2:C+=L.width;break}x=L.add(C,0,0,-L.height/2+1),this.ctx.save(),this.path([new V(L.left,L.top),new V(L.left+L.width,L.top),new V(L.left+L.width,L.top+L.height),new V(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bt(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,S=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(H=this.createFontStyle(a)[0],this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new le(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,ka(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bt(r.listValue,L),a.letterSpacing,ka(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=XA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),XA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},e.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,k,Q,R,tA,AA,D,z,C,x,U,y,S,H,L,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=sn(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],k=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,k,tA,AA)),[3,6];case 5:su(g)?(Q=sn(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=eu(g.angle,D,z),x=C[0],U=C[1],y=C[2],S=C[3],H=C[4],L=document.createElement("canvas"),L.width=D,L.height=z,h=L.getContext("2d"),b=h.createLinearGradient(U,S,y,H),Sa(g.stops,x).forEach(function(N){return b.addColorStop(N.stop,xA(N.color))}),h.fillStyle=b,h.fillRect(0,0,D,z),D>0&&z>0&&(k=a.ctx.createPattern(L,"repeat"),a.renderRepeat(R,k,tA,AA))):iu(g)&&(M=sn(r,t,[null,null,null]),R=M[0],O=M[1],Z=M[2],D=M[3],z=M[4],eA=g.position.length===0?[Jn]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=tu(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Sa(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,I=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,I),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-I),a.ctx.fillRect(O,_*(Z-I)+I,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(os(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=gf(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=uf(a,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!Ce(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=Uf(Oe(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ce(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=vr(r.curves),C=p.inset?0:Qf,x=lf(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!Ce(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,h,L,h;return kA(this,function(b){return this.ctx.save(),o=Bf(a,n),l=os(a,n),s===2&&(this.path(l),this.ctx.clip()),XA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),XA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),S=(p-y*Q)/(y-1),H=(p-(y+1)*Q)/y,C=H<=0||Math.abs(C-S)<Math.abs(C-H)?S:H),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(XA(l[0])&&(L=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),XA(l[1])&&(L=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=cf(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(Wi),vf=function(A){return A instanceof Si||A instanceof Hi?!0:A instanceof zn&&A.type!==Cr&&A.type!==pr},Uf=function(A,e){switch(A){case 0:return vr(e);case 2:return rf(e);default:return Ur(e)}},Ff=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},bf=["-apple-system","system-ui"],yf=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return bf.indexOf(e)===-1}):A},Ef=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Kn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,xf(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(Wi),xf=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},If=(function(){function A(e){var r=e.id,t=e.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,kt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,kt([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,kt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,kt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),Hf=(function(){function A(e,r){var t;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new If({id:this.instanceName,enabled:e.logging}),this.cache=(t=e.cache)!==null&&t!==void 0?t:new Yd(this,e)}return A.instanceCount=1,A})(),Sf=function(A,e){return e===void 0&&(e={}),Lf(A,e)};typeof window<"u"&&Gi.setContext(window);var Lf=function(A,e){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,b,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j;return kA(this,function(_){switch(_.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(M=e.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:e.proxy,useCORS:(R=e.useCORS)!==null&&R!==void 0?R:!1},a=Qn({logging:(O=e.logging)!==null&&O!==void 0?O:!0,cache:e.cache},n),s={windowWidth:(Z=e.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=e.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=e.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=e.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new le(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Hf(a,o),c=(tA=e.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=e.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new as(l,A,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=qn(u)||Ld(u)?oc(u.ownerDocument):Er(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,S=kf(l,u,e.backgroundColor),H={canvas:e.canvas,backgroundColor:S,scale:(aA=(dA=e.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=e.x)!==null&&q!==void 0?q:0)+U,y:((lA=e.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=e.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(I=e.height)!==null&&I!==void 0?I:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),b=new Ef(l,H),[4,b.render(u)]):[3,3];case 2:return L=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=Mi(l,u),S===h.styles.backgroundColor&&(h.styles.backgroundColor=oe.TRANSPARENT),l.logger.debug("Starting renderer for element at "+H.x+","+H.y+" with size "+H.width+"x"+H.height),b=new mf(l,H),[4,b.render(h)];case 4:L=_.sent(),_.label=5;case 5:return(!((j=e.removeContainer)!==null&&j!==void 0)||j)&&(as.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,L]}})})},kf=function(A,e,r){var t=e.ownerDocument,n=t.documentElement?gt(A,getComputedStyle(t.documentElement).backgroundColor):oe.TRANSPARENT,a=t.body?gt(A,getComputedStyle(t.body).backgroundColor):oe.TRANSPARENT,s=typeof r=="string"?gt(A,r):r===null?oe.TRANSPARENT:4294967295;return e===t.documentElement?Ce(n)?Ce(a)?s:a:n:s},on={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},IA.apply(this,arguments)},Mf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ linear-gradient(
+ 45deg,
+ rgba(0, 0, 0, 0.18) 25%,
+ transparent 25%,
+ transparent 75%,
+ rgba(0, 0, 0, 0.18) 75%,
+ rgba(0, 0, 0, 0.18) 0
+ ),
+ white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},Kf=function(A,e){var r=IA({},Mf);if(A)for(var t in on)Object.prototype.hasOwnProperty.call(on,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),on[t]));for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),e[t]));return r},cs=function(A,e){return A?IA(IA({},e.rbgcpControlBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlBtn)},ft=function(A,e){return A?IA(IA({},e.rbgcpControlIconBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlIconBtn)},tr=function(A,e){return A?IA(IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn),e.rbgcpControlBtnSelected):IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn)},ee=function(){return ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ee.apply(this,arguments)},Tf=function(A){var e=A.color,r=BA().defaultStyles,t=e??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Df=function(A){var e=A.onSelect,r=BA().defaultStyles,t=E.useState(null),n=t[0],a=t[1],s=E.useState(!1),o=s[0],l=s[1],c=E.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),Sf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,S=U*2,H=n.getImageData(y,S,1,1).data;e("rgba(".concat(H[0],", ").concat(H[1],", ").concat(H[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),S=y.toRgb(),H=S.r,L=S.g,h=S.b;e("rgba(".concat(H,", ").concat(L,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:ee(ee({},r.rbgcpEyedropperBtn),ft(o,r))},m.createElement(Tf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(ic,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},Gn=function(){return Gn=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Gn.apply(this,arguments)},ln=function(A){var e=A.value,r=A.reffy,t=A.label,n=A.config,a=A.callback,s=A.squareWidth,o=A.openAdvanced,l=A.defaultStyles,c=A.pickerIdSuffix,g=n.barSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useState(2),C=Q[0],x=Q[1],U=e*(s-18);E.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},S=function(h){u&&a(Pe(h,g))},H=function(h){u||a(Pe(h,g))},L=function(){p(!0)};return E.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return S(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:Gn({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:L,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return S(h)},onClick:function(h){return H(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return H(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Of=function(A){var e=A.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=E.useRef(null),Q=E.useRef(null),C=E.useRef(null);Hl(p,o?.h,u*100,s),Sl(Q,o?.h,B*100,s),Ll(C,o?.h,B*100,s);var x=function(S){var H=SA({h:o?.h,s:S/100,l:u}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},U=function(S){var H=SA({h:o?.h,s:B,l:S/100}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},y=function(S){var H=SA({h:o?.h,s:o?.s*100,v:S}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:e?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:e?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:e?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(ln,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(ln,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(ln,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c})))},Ee=function(){return Ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Ee.apply(this,arguments)},Rf=function(A){var e=A.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:e?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:e?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:Ee({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},CA.apply(this,arguments)},Nf=function(){var A=BA(),e=A.gradientType,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=e==="linear-gradient",o=e==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement($l,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(Ac,{color:o?"#568CF5":""})))},_f=function(){var A=BA(),e=A.currentLeft,r=A.currentColor,t=A.defaultStyles,n=A.handleGradient,a=A.pickerIdSuffix,s=function(o){n(r,Ve(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(ac,null),m.createElement("input",{value:e,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},Gf=function(){var A=BA(),e=A.degrees,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=Ve(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(nc,null),m.createElement("input",{value:e,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:e>99?0:e<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},jf=function(){var A=BA(),e=A.colors,r=A.selectedColor,t=A.createGradientStr,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(){if(e?.length>2){var o=e?.map(function(c,g){return CA(CA({},c),{value:g===r-1?yr(c):yt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ft(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(ql,null))},gs=function(A){var e=A.hideGradientType,r=A.hideGradientAngle,t=A.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:e?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!e&&m.createElement(Nf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(Gf,null)),!t&&m.createElement(_f,null),m.createElement(jf,null))},Ut=function(){return Ut=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Ut.apply(this,arguments)},Vf=function(A){var e,r,t=A.hideColorTypeBtns,n=A.setGradient,a=A.isGradient,s=A.setSolid,o=A.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:Ut({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:cs(!a,c)},(e=o?.CONTROLS)===null||e===void 0?void 0:e.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:cs(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Pf=function(A){var e=A.openInputType,r=A.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=e?"visibility 0ms linear":"visibility 100ms linear 150ms",c=e?"z-index 0ms linear":"z-index 100ms linear 150ms",g=e?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){e&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:Ut({visibility:e?"visible":"hidden",zIndex:e?"":-100,opacity:e?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:tr(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:tr(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:tr(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:tr(n==="cmyk",s)},"CMYK"))},Xf=function(A){var e,r,t=A.locales,n=A.hideEyeDrop,a=n===void 0?!1:n,s=A.hideAdvancedSliders,o=s===void 0?!1:s,l=A.hideColorGuide,c=l===void 0?!1:l,g=A.hideInputType,B=g===void 0?!1:g,u=A.hideColorTypeBtns,p=u===void 0?!1:u,Q=A.hideGradientControls,C=Q===void 0?!1:Q,x=A.hideGradientType,U=x===void 0?!1:x,y=A.hideGradientAngle,S=y===void 0?!1:y,H=A.hideGradientStop,L=H===void 0?!1:H,h=BA(),b=h.config,k=h.onChange,M=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=b.defaultColor,eA=b.defaultGradient,tA=E.useState(!1),AA=tA[0],dA=tA[1],aA=E.useState(!1),q=aA[0],lA=aA[1],sA=E.useState(!1),I=sA[0],j=sA[1],_=a&&o&&c&&B,F=(e=O?.color)!==null&&e!==void 0?e:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){k(F)},G=function(){k(N)},P=a&&o&&c&&B,$=P&&p;return $?M&&!C?m.createElement(gs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(Vf,{hideColorTypeBtns:p,setGradient:G,isGradient:M,setSolid:T,locales:t}),!P&&m.createElement("div",{style:Ut({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Df,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!I)},style:ft(I,Z)},m.createElement(ec,{color:I?"#568CF5":""})),!c&&m.createElement("div",{style:ft(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(rc,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ft(q,Z)},m.createElement(tc,{color:q?"#568CF5":""}),m.createElement(Pf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Of,{openAdvanced:I}),!c&&m.createElement(Rf,{openComparibles:AA}),M&&!C&&m.createElement(gs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}))},te=function(){return te=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},te.apply(this,arguments)},us=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Jf=function(A){var e=A.left,r=A.i,t=A.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return te(te({},U),{value:y===C?yr(U):yt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:te(te({},l.rbgcpGradientHandleWrap),{left:(e??0)*u})},m.createElement("div",{style:te(te({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Wf=function(){var A=BA(),e=A.value,r=A.colors,t=A.config,n=A.squareWidth,a=A.currentColor,s=A.handleGradient,o=A.pickerIdSuffix,l=A.createGradientStr,c=t.barSize,g=E.useState(!1),B=g[0],u=g[1];function p(S){return S.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(S){var H,L=Pe(S,c),h=(H=us(us([],r.map(function(b){return te(te({},b),{value:yt(b)})}),!0),[{value:a,left:L}],!1))===null||H===void 0?void 0:H.sort(function(b,k){return b.left-k.left});l(h)},C=function(){u(!1)},x=function(S){B||(Q(S),u(!0))},U=function(S){B&&s(a,Pe(S,c))},y=function(){C()};return E.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(e)},onMouseDown:function(S){return x(S)},onMouseMove:function(S){return U(S)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(S,H){return m.createElement(Jf,{i:H,left:S.left,key:"".concat(H,"-").concat(S),setDragging:u})}))},Yf=function(A){var e=A.locales,r=A.presets,t=A.hideHue,n=A.hideInputs,a=A.hidePresets,s=A.hideOpacity,o=A.hideEyeDrop,l=A.hideControls,c=A.hideInputType,g=A.hideColorGuide,B=A.hidePickerSquare,u=A.hideGradientType,p=A.hideGradientStop,Q=A.hideGradientAngle,C=A.hideColorTypeBtns,x=A.hideAdvancedSliders,U=A.hideGradientControls,y=BA(),S=y.isGradient,H=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(H)},!B&&m.createElement(Jl,null),!l&&m.createElement(Xf,{locales:e,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),S&&m.createElement(Wf,null),!t&&m.createElement(kl,null),!s&&m.createElement(Wl,null),!n&&m.createElement(Gl,null),!a&&m.createElement(zl,{presets:r}))},br=function(){return br=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},br.apply(this,arguments)};function Zf(A){var e=A.idSuffix,r=A.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=A.onChange,a=A.hideControls,s=a===void 0?!1:a,o=A.hideInputs,l=o===void 0?!1:o,c=A.hideOpacity,g=c===void 0?!1:c,B=A.hidePresets,u=B===void 0?!1:B,p=A.hideHue,Q=p===void 0?!1:p,C=A.presets,x=C===void 0?[]:C,U=A.hideEyeDrop,y=U===void 0?!1:U,S=A.hideAdvancedSliders,H=S===void 0?!1:S,L=A.hideColorGuide,h=L===void 0?!1:L,b=A.hideInputType,k=b===void 0?!1:b,M=A.hideColorTypeBtns,R=M===void 0?!1:M,O=A.hideGradientType,Z=O===void 0?!1:O,D=A.hideGradientAngle,z=D===void 0?!1:D,eA=A.hideGradientStop,tA=eA===void 0?!1:eA,AA=A.hideGradientControls,dA=AA===void 0?!1:AA,aA=A.locales,q=aA===void 0?Yl:aA,lA=A.width,sA=lA===void 0?294:lA,I=A.height,j=I===void 0?294:I,_=A.style,F=_===void 0?{}:_,N=A.className,T=A.disableDarkMode,G=T===void 0?!1:T,P=A.disableLightMode,$=P===void 0?!1:P,pA=A.hidePickerSquare,f=pA===void 0?!1:pA,v=A.showHexAlpha,w=v===void 0?!1:v,K=A.config,W=K===void 0?{}:K,X=Ul(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=Kf(oA,F),UA=oA?"-dark".concat(e?"-".concat(e):""):e?"-".concat(e):"";return m.createElement("div",{className:N,style:br(br({},fA.body),{width:sA})},m.createElement(xl,{value:X,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Yf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:H,hideColorGuide:h,hideInputType:k,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const cn="rgb(0, 0, 0)",zf=()=>{const[A,e]=E.useState(localStorage.getItem("customBackgroundColour")||cn),r=n=>{e(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{e(cn),localStorage.setItem("customBackgroundColour",cn),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Zf,{value:A,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),onKeyDown:rr(()=>t()),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var qf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],At=(A,e)=>{var r="";for(let t=1;t<=e;t++){let n=Math.floor(A)/Math.pow(83,e-t)%83;r+=qf[Math.floor(n)]}return r},gn=A=>{let e=A/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},un=A=>{let e=Math.max(0,Math.min(1,A));return e<=.0031308?Math.trunc(e*12.92*255+.5):Math.trunc((1.055*Math.pow(e,.4166666666666667)-.055)*255+.5)},$f=A=>A<0?-1:1,Bn=(A,e)=>$f(A)*Math.pow(Math.abs(A),e),Bs=class extends Error{constructor(A){super(A),this.name="ValidationError",this.message=A}},ds=4,Ah=(A,e,r,t)=>{let n=0,a=0,s=0,o=e*ds;for(let c=0;c<e;c++){let g=ds*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*gn(A[u]),a+=p*gn(A[u+1]),s+=p*gn(A[u+2])}}let l=1/(e*r);return[n*l,a*l,s*l]},eh=A=>{let e=un(A[0]),r=un(A[1]),t=un(A[2]);return(e<<16)+(r<<8)+t},th=(A,e)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(Bn(A[0]/e,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(Bn(A[1]/e,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(Bn(A[2]/e,.5)*9+9.5))));return r*19*19+t*19+n},rh=(A,e,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new Bs("BlurHash must have between 1 and 9 components");if(e*r*4!==A.length)throw new Bs("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=Ah(A,e,r,(C,x)=>p*Math.cos(Math.PI*u*C/e)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=At(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=At(u,1)}else g=1,l+=At(0,1);return l+=At(eh(s),4),o.forEach(B=>{l+=At(th(B,g),2)}),l},nh=rh;async function fs(A){return new Promise((e,r)=>{const t=new Image;t.onload=()=>{e({width:t.width,height:t.height}),typeof A!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof A=="string"?t.src=A:t.src=URL.createObjectURL(A)})}async function hs(A,e=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=nh(g.data,g.width,g.height,e,r);typeof A!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof A=="string"?a.src=A:a.src=URL.createObjectURL(A)})}function dn(A){const e=A.split(",")[1];if(!e)return 0;const r=(e.match(/=/g)||[]).length;return Math.floor(e.length*3/4-r)}function ws(A,e){return A&&A.name?A.name:`Image ${e+1}`}function ah(){const A={};return Object.keys(localStorage).forEach(e=>{A[e]=localStorage.getItem(e)}),new TextEncoder().encode(JSON.stringify(A)).length}function ve(A){if(A===0)return"0 Bytes";if(!A)return"Unknown";const e=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(A)/Math.log(e));return Math.round(A/Math.pow(e,t)*10)/10+" "+r[t]}const sh=({files:A,onConfirm:e,onCancel:r})=>{const[t,n]=E.useState(""),a=()=>{e(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(Us,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:A.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},fn=A=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(A.length))}catch{}},Yi=E.memo(()=>{const[A,e]=E.useState([]),[r,t]=E.useState(!1),[n,a]=E.useState([]),[s,o]=E.useState(!0),[l,c]=E.useState(!1),[g,B]=E.useState({current:0,total:0}),[u,p]=E.useState(!1),[Q,C]=E.useState(new Set),[x,U]=E.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,S]=E.useState(!1),[H,L]=E.useState({usage:0,quota:0}),h=E.useRef(null),b=E.useRef(0),k=5e7;E.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();L({usage:N.usage||0,quota:N.quota||k})}catch(N){console.warn("Could not get storage estimate:",N),L({usage:0,quota:k})}else L({usage:0,quota:k})})()},[A]),E.useEffect(()=>{(async()=>{try{await Qo();const N=await Ue();e(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!Ht(T.url))try{const G=await fs(T.url),P=await hs(T.url);await mo(T.id,{dimensions:G,blurHash:P});const $=await Ue();e($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const M=E.useCallback(async(F,N,T,G=!1)=>{try{const P={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await or(P);const $=await Ue();e($),fn($),G||hA.emit("refresh","background")}catch(P){throw console.error("Error saving background:",P),P}},[]),R=async(F,N="")=>{const T=A.reduce((P,$)=>$.url&&$.url.startsWith("data:")?P+dn($.url):P,0),G=H.quota||k;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(P){console.warn("Could not request storage persistence:",P)}if(Ht(F.type)){if(T+F.size>G)throw new Error("no_storage");const P=new FileReader;return new Promise(($,pA)=>{P.onloadend=()=>{$({dataUrl:P.result,metadata:{name:ws(F,A.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},P.onerror=pA,P.readAsDataURL(F)})}else{const P=await aa.compressAccurately(F,{size:450,accuracy:.9}),$=H.quota||k;if(T+P.size>$)throw new Error("no_storage");const pA=await aa.filetoDataURL(P),[f,v]=await Promise.all([fs(pA),hs(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:ws(F,A.length),dimensions:f,fileSize:dn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const P=await R(F[G],N);await M(F[G],P.dataUrl,P.metadata,!0),B({current:G+1,total:F.length})}catch(P){if(P.message==="no_storage"||P.name==="QuotaExceededError"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=E.useCallback(async(F,N)=>{try{F==="add"?await or(""):await fo(N);const T=await Ue();e(T),fn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await vo(F);const N=await Ue();e(N),C(new Set),fn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=E.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...A].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=A.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+dn(N.url):F,0),lA=H.quota||k,sA=q/lA*100,I=ah(),j=5242880;E.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),b.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),b.current--,b.current===0&&p(!1)},P=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),b.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=P,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[A.length,O]);const _=aA.filter(F=>F&&Ht(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(ra,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(ho,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[A.length," ",A.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",ve(q)," / ",ve(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(na,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):A.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=A.findIndex(G=>G===F),T=F&&Ht(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N),"aria-label":F.name||`${N+1}`})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=wo(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(po,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:ve(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(na,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button","aria-label":d.getMessage("modals.main.settings.sections.background.source.remove"),onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(ht,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ra,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(Co,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(_s,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(sh,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>S(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>S(!1),"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(ht,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[ve(q)," / ",ve(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[ve(I)," / ",ve(j)," (",Math.round(I/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>S(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Yi.displayName="CustomSettings";const ih=({usingImage:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!A}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!A})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const oh=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function Zi(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const lh=({backgroundFilter:A,onFilterChange:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:e,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:oh}),A!=="none"&&i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),ch=({backgroundType:A,onTypeChange:e})=>i.jsxs(rA,{final:A==="random_colour"||A==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:e,category:"background",items:Zi()})})]}),ps=({icon:A,title:e,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsx(A,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",onClick:n?a=>a.stopPropagation():void 0,children:n||i.jsx(vs,{})})]}),zi=E.memo(({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=E.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);E.useEffect(()=>{o&&A!=="source"&&e("source",r)},[o,A,e,r]);const l=()=>{switch(t){case"custom":return i.jsx(Yi,{});case"colour":return i.jsx(zf,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>A==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>e(null,r)}):A==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>e(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!A&&i.jsxs(i.Fragment,{children:[i.jsx(ps,{icon:Uo,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>e("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:Zi()})}),g&&i.jsx(ps,{icon:Fo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>e("effects",r)})]}),!A&&g&&i.jsx(ih,{usingImage:c}),A==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(ch,{backgroundType:t,onTypeChange:n}),l()]}),g&&A==="effects"&&i.jsx(lh,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});zi.displayName="BackgroundOptions";function gh(){const A=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...bo()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:A})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(Es,{name:"recentChats",category:"widgets"})})]})]})}const uh=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function Bh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const[t,n]=E.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(xo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>Ko(),icon:i.jsx(Io,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Ho,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(_s,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>To(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(So,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=A==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",appElement:pt(),aria:{modal:!0},children:i.jsx(yo,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Pn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>e("data",r),icon:i.jsx(Eo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...uh.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(cr,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(cr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function dh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(wn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(cr,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(wn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:lt.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=A==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Pn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(Lo,{}),onClick:()=>e("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const fh=E.memo(dh),hh=`BSD 3-Clause License
+
+Copyright (c) 2019-2026 The Mue Authors
+Copyright (c) 2018-2019 David Ralph
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+`;function wh(){const A=Object.keys(ko),{MUE_REPO_URL:e,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${A.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:hh})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function ph(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const Ch=E.memo(ph),Qh=E.lazy(()=>Mo(()=>import("./index-bn8Kdr1t.js"),__vite__mapDeps([0,1,2]),import.meta.url));function mh(){return localStorage.getItem("timeType")==="analogue"?i.jsx(E.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(Qh,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const vh=E.memo(mh);function Uh(A){return jn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(A)}function Fh(A){return jn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(A)}function bh(A){return jn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(A)}function yh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(Uh,{})}),i.jsx("div",{children:i.jsx(Fh,{})}),i.jsx("div",{children:i.jsx(bh,{})})]})})}const Eh=E.memo(yh);function xh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const Ih=E.memo(xh);function Hh(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const Sh=E.memo(Hh),Lh={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},kh=({id:A})=>{const{attributes:e,listeners:r,setNodeRef:t,transform:n,transition:a}=Is({id:A}),s={transform:Hs.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...e,...r,className:"sortableItem",children:[Lh[A],i.jsx(xs,{})]})},Mh=()=>{const[A,e]=E.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Ss(gr(Ms),gr(ks,{coordinateGetter:Ls})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&e(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Rs(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(Ch,{});case"time":return i.jsx(vh,{});case"quicklinks":return i.jsx(Eh,{});case"date":return i.jsx(Ih,{});case"message":return i.jsx(Sh,{});default:return null}};return E.useEffect(()=>{localStorage.setItem("order",JSON.stringify(A)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[A]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:A.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(Ks,{sensors:r,collisionDetection:Ts,onDragEnd:t,children:i.jsx(Ds,{items:A,strategy:Os,children:i.jsx("ul",{className:"sortableContainer",children:A.map(s=>n(s)?i.jsx(kh,{id:s},s):null)})})})]})]})]})},Cs=[{label:"modals.main.marketplace.product.overview",name:"order",component:Mh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:nl},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:il},{label:"modals.main.settings.sections.time.title",name:"time",component:ol},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:Bl},{label:"modals.main.settings.sections.date.title",name:"date",component:ll},{label:"modals.main.settings.sections.message.title",name:"message",component:dl},{label:"modals.main.settings.sections.background.title",name:"background",component:zi},{label:"wb.settings_taskbox",name:"taskbox",component:gh},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:fh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:Bh},{label:"wb.settings_credits",name:"credits",component:wh}];function Kh(A){const e=Ft(),r=E.useMemo(()=>Cs.map(t=>({...t,translatedLabel:e(t.label)})),[e]);return i.jsx(Al,{changeTab:t=>A.changeTab(t),current:"settings",currentTab:A.currentTab,onSectionChange:A.onSectionChange,onSubSectionChange:A.onSubSectionChange,currentSubSection:A.currentSubSection,deepLinkData:A.deepLinkData,navigationTrigger:A.navigationTrigger,sections:Cs,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:A.currentSubSection,onSubSectionChange:A.onSubSectionChange,sectionName:n})},n))})}const Dh=E.memo(Kh);export{Dh as default};
diff --git a/src/firefox/newtab/assets/Settings-DqpzHKoz.js b/src/firefox/newtab/assets/Settings-DqpzHKoz.js
deleted file mode 100644
index 1dd166c33..000000000
--- a/src/firefox/newtab/assets/Settings-DqpzHKoz.js
+++ /dev/null
@@ -1,53 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DdIzjGFh.js","./index-ZvUWfRHz.js","./index-C4nKw5hY.css"])))=>i.map(i=>d[i]);
-import{g as Cs,a as Ue,y as RA,v as d,s as zi,r as qi,E as hA,c as qn,b as ir,d as E,j as i,B as vA,M as $i,e as Ao,f as eo,h as Qs,S as ot,R as m,i as ms,u as Ut,k as to,D as ro,l as vs,m as we,n as $n,T as Aa,q as Us,o as no,p as Fs,t as ht,w as fn,x as wt,z as bs,C as mA,A as KA,F as ao,G as so,H as io,I as oo,J as Tr,K as ys,L as or,N as lr,O as hn,P as tr,Q as Es,U as xs,V as Is,W as lo,X as Hs,Y as cr,Z as Ss,_ as Ls,$ as ks,a0 as Ms,a1 as Ks,a2 as Ts,a3 as Ds,a4 as co,a5 as Os,a6 as ea,a7 as go,a8 as Rs,a9 as xt,aa as uo,ab as Bo,ac as It,ad as ta,ae as fo,af as ra,ag as ho,ah as wo,ai as po,aj as Ns,ak as Co,al as Qo,am as mo,an as na,ao as vo,ap as Uo,aq as Fo,ar as bo,as as yo,at as Eo,au as xo,av as Io,aw as Ho,ax as So,ay as Lo,az as ko,aA as Gn}from"./index-ZvUWfRHz.js";const wn="wbBackgroundsBackup";async function Mo(){const A={};Object.keys(localStorage).forEach(n=>{A[n]=localStorage.getItem(n)});try{const n=await Cs(),a=n>0?await Ue():[];if(a.length!==n)throw new Error("uploaded backgrounds could not be read");A[wn]=a.map(({id:s,...o})=>o)}catch(n){return console.error("Could not include uploaded backgrounds in the backup:",n),RA(d.getMessage("toasts.error")),!1}const e=new Date,t=`webbrain_newtab_settings_backup_${`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}_${e.getHours().toString().padStart(2,"0")}-${e.getMinutes().toString().padStart(2,"0")}-${e.getSeconds().toString().padStart(2,"0")}`}.json`;return zi(A,t),d.stats.postEvent("tab","Settings exported"),!0}function pt(A){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._~#=]{1,256}\.[a-zA-Z0-9()]{1,63}\b([-a-zA-Z0-9()!@:%_.~#?&=]*)/.test(A)}function Ge(A){let e=String(A??"").trim();if(!e)return null;const r=/^https?:\/\//i.exec(e);e=r?r[0].toLowerCase()+e.slice(r[0].length):`https://${e}`;try{if(!/^https?:$/.test(new URL(e).protocol))return null}catch{return null}return pt(e)?e:null}async function Ko(A,e=!1){let r,t;try{const s=JSON.parse(A);if(!s||typeof s!="object"||Array.isArray(s))throw new Error("settings file is not an object");({[wn]:r,...t}=s);const o=_o(t);if(o)throw new Error(`invalid settings: ${o}`);if(Ro(t),r!==void 0&&!Vo(r))throw new Error(`invalid settings: ${wn} has an entry of the wrong shape`)}catch(s){return console.error("Could not read the settings file:",s),RA(d.getMessage("toasts.error")),!1}let n=null;const a=new Map;try{Array.isArray(r)&&(n=await Po(r)),Object.keys(t).forEach(s=>{a.has(s)||a.set(s,localStorage.getItem(s)),localStorage.setItem(s,t[s])})}catch(s){return console.error("Settings import failed, rolling back:",s),a.forEach((o,l)=>{try{o===null?localStorage.removeItem(l):localStorage.setItem(l,o)}catch{}}),n&&await n(),RA(d.getMessage("toasts.error")),!1}return RA(d.getMessage("toasts.imported")),e||d.stats.postEvent("tab","Settings imported"),qi?setTimeout(()=>window.location.reload(),1200):hA.emit("settingsimported"),!0}const je=A=>A!==null&&typeof A=="object"&&!Array.isArray(A),NA=A=>typeof A=="string",To=A=>NA(A.key)&&A.key!==""||Number.isFinite(A.key),Do=["time","greeting","date","quicklinks","message"],_s=["applinks","quicklinks"],aa=A=>je(A)&&NA(A.name)&&NA(A.url)&&Ge(A.url)!==null&&To(A),Oo={applinks:aa,backgroundExclude:NA,customBackground:A=>NA(A)&&jn(A),customEvents:A=>je(A)&&NA(A.name)&&Number.isFinite(A.month)&&Number.isFinite(A.date),quicklinks:aa,messages:NA,order:A=>Do.includes(A),todo:A=>je(A)&&NA(A.value)};function Ro(A){for(const e of _s)e in A&&(A[e]=JSON.stringify(JSON.parse(A[e]).map(r=>({...r,url:Ge(r.url)}))));return A}const No=A=>NA(A)&&A.trim()!==""&&(typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("background",A));function _o(A){for(const[e,r]of Object.entries(A))if(r!==null&&typeof r=="object")return`${e} is not a plain value`;if("firstRun"in A&&(A.firstRun===null||String(A.firstRun)===""))return"firstRun is empty";for(const[e,r]of Object.entries(Oo)){if(!(e in A)||e==="customBackground"&&(A[e]===""||A[e]==="null"))continue;let t;try{t=JSON.parse(A[e])}catch{return`${e} is not valid JSON`}if(!Array.isArray(t))return`${e} is not a list`;if(!t.every(r))return`${e} has an entry of the wrong shape`;if(e==="order"&&new Set(t).size!==t.length)return"order lists a widget more than once";if(_s.includes(e)&&new Set(t.map(n=>String(n.key))).size!==t.length)return`${e} has entries that share a key`}if("timezone"in A&&A.timezone!=="auto")try{new Intl.DateTimeFormat("en",{timeZone:A.timezone})}catch{return"timezone is not a known time zone"}if("favourite"in A&&A.favourite!=="null")try{const e=JSON.parse(A.favourite);if(e!==null&&!je(e))return"favourite is not an object";if(e!==null){if(!(e.type==="random_colour"||e.type==="random_gradient"?No(e.url):jn(e.url)))return"favourite has no usable url";if(!(Ae(e.credit,NA)&&Ae(e.colour,NA)&&Ae(e.blur_hash,NA)&&Ae(e.hidden,a=>typeof a=="boolean")))return"favourite has malformed display details"}}catch{return"favourite is not valid JSON"}return null}function Go(A,e){if(/;base64$/i.test(A)){const r=e.replace(/\s+/g,"");return r.length%4===0&&/^[A-Za-z0-9+/]+={0,2}$/.test(r)}try{return decodeURIComponent(e),!0}catch{return!1}}const jn=A=>{if(typeof A!="string")return!1;const e=/^data:(image|video)\/[^;,]+((?:;[^,]*)?),([\s\S]+)$/i.exec(A);if(e)return Go(e[2],e[3]);try{return/^https?:$/.test(new URL(A).protocol)}catch{return!1}},Ae=(A,e)=>A==null||e(A),Ht=A=>typeof A=="number"&&Number.isFinite(A),jo=A=>je(A)&&jn(A.url)&&Ae(A.name,NA)&&Ae(A.folder,NA)&&Ae(A.blurHash,NA)&&Ae(A.fileSize,Ht)&&Ae(A.uploadDate,Ht)&&Ae(A.dimensions,e=>je(e)&&Ht(e.width)&&Ht(e.height)),Vo=A=>Array.isArray(A)&&A.every(jo),sa=({id:A,...e})=>e;async function Po(A){const e=A.map(sa),r=await Cs(),t=r>0?(await Ue()).map(sa):[];if(t.length!==r)throw new Error("current gallery could not be read");const n=async()=>{try{await qn();for(const a of t)await ir(a)}catch(a){console.error("Rollback of the background gallery failed:",a)}};try{await qn();for(const a of e)await ir(a)}catch(a){throw await n(),a}return n}function TA(A){const[e,r]=E.useState(localStorage.getItem(A.setting)==="true");E.useEffect(()=>{r(localStorage.getItem(A.setting)==="true")},[A.setting]);const t=()=>{const s=localStorage.getItem(A.setting)==="true";if(localStorage.setItem(A.setting,!s),r(!s),d.stats.postEvent("setting",`${A.name} ${e===!0?"enabled":"disabled"}`),hA.emit("toggle",A.setting),A.element&&!document.querySelector(A.element)){Qs();return}hA.emit("refresh",A.category)},n=()=>i.jsx(vA,{type:"settings",onClick:t,icon:e?i.jsx($i,{}):i.jsx(Ao,{}),label:e?"Hide":"Show"}),a=()=>i.jsx(vA,{type:"settings",onClick:()=>window.open(`${d.constants.BUG_REPORT}?title=${encodeURIComponent(A.title)}`,"_blank"),icon:i.jsx(eo,{}),label:d.getMessage("modals.main.settings.sections.header.report_issue")});return i.jsxs("div",{className:"modalHeader",children:[i.jsx("span",{className:"mainTitle",children:A.secondaryTitle||A.title}),i.jsxs("div",{className:"headerActions",children:[A.visibilityToggle&&i.jsx(n,{}),A.report!==!1&&i.jsx(a,{}),A.children]})]})}function rA(A){const e=`${A.final?"settingsRow settingsNoBorder":"settingsRow"} ${A.inactive?"preferencesInactive":""}`;return i.jsx("div",{className:e,children:A.children})}function nA(A){return i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A.title}),i.jsx("span",{className:"subtitle",children:A.subtitle})]})}function cA(A){return i.jsx("div",{className:"action",children:A.children})}const Xo=[{value:10,label:"0.1x"},{value:100,label:"1x"},{value:200,label:"2x"},{value:400,label:"4x"}],Jo=[{value:500,label:"0.5s"},{value:1e3,label:"1s"},{value:1500,label:"1.5s"},{value:2e3,label:"2s"},{value:2500,label:"2.5s"},{value:3e3,label:"3s"},{value:4e3,label:"4s"},{value:5e3,label:"5s"}],Wo=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"},{value:100,label:"100%"}],lt={zoom:Xo,toast:Jo,background:Wo},Ft=({children:A,...e})=>{const[r,t]=E.useState(localStorage.getItem(e.setting)==="true");return E.useEffect(()=>{const n=a=>{a===e.setting&&t(localStorage.getItem(e.setting)==="true")};return hA.on("toggle",n),()=>hA.off("toggle",n)},[e.setting]),i.jsxs("div",{className:r?"preferences":"preferencesInactive",children:[e.zoomSetting&&i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.widget_zoom"),subtitle:d.getMessage("modals.main.settings.sections.header.size")}),i.jsx(cA,{children:i.jsx(ot,{name:e.zoomSetting,min:"10",max:"400",default:"100",display:"%",marks:lt.zoom,category:e.zoomCategory||e.category})})]}),A]})};function Vn({title:A,subtitle:e,icon:r,onClick:t,children:n}){return i.jsxs("div",{className:"moreSettings",onClick:t,role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsxs("div",{className:"left",children:[r,i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:A}),i.jsx("span",{className:"subtitle",children:e})]})]}),i.jsx("div",{className:"action",onClick:m.Children.count(n)===0?void 0:a=>a.stopPropagation(),children:m.Children.count(n)===0?i.jsx(ms,{}):n})]})}function Yo({label:A,currentTab:e,onClick:r,navbarTab:t}){const n=Ut(),[a,s]=E.useState(!0);E.useEffect(()=>{s(localStorage.getItem("experimental")!=="false")},[]);const o=to(A,{getMessage:n}),l=ro.some(p=>n(p)===A),B=`${t?"navbar-item":"tab-list-item"}${e===A?` ${t?"navbar-item-active":"tab-list-active"}`:""}`;return A===n("modals.main.settings.sections.experimental.title")&&!a?i.jsx("hr",{}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{className:B,onClick:()=>r(A),children:[o&&i.jsx(o,{})," ",i.jsx("span",{children:A})]}),l&&i.jsx("hr",{})]})}const Zo=E.memo(Yo),zo=({isVisible:A,onHide:e})=>A?i.jsxs("div",{className:"reminder-info",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.reminder.title")}),i.jsx("button",{type:"button",className:"closeModal",onClick:e,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(vs,{})})]}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.reminder.message")}),i.jsxs("button",{onClick:()=>window.location.reload(),children:[i.jsx(we,{}),d.getMessage("modals.main.error_boundary.refresh")]})]}):null;class qo extends E.PureComponent{constructor(e){super(e),this.state={error:!1,errorData:"",showReport:!0}}static getDerivedStateFromError(e){return console.error(e),{error:!0,errorData:e}}reportError(){window.open(d.constants.BUG_REPORT,"_blank","noopener,noreferrer"),this.setState({showReport:!1})}render(){return this.state.error?i.jsx("div",{className:"emptyItems",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx($n,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.error_boundary.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.message")}),i.jsxs("div",{className:"buttonsRow",children:[this.state.showReport?i.jsx(vA,{type:"settings",icon:i.jsx($n,{}),label:d.getMessage("modals.main.error_boundary.report_error"),onClick:()=>this.reportError()}):i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.error_boundary.sent")}),i.jsx(vA,{type:"settings",icon:i.jsx(we,{}),label:d.getMessage("modals.main.error_boundary.refresh"),onClick:()=>window.location.reload()})]})]})}):this.props.children}}const $o=({children:A,navbar:e=!1,currentTab:r,onSectionChange:t,resetToFirst:n,deepLinkData:a,navigationTrigger:s,sections:o})=>{const l=Ut(),g=(()=>{if(a?.section&&o){const h=o.find(b=>b.name===a.section);if(h)return{label:l(h.label),name:h.name}}return{label:A[0]?.props.label,name:A[0]?.props.name}})(),[B,u]=E.useState(g.label),[p,Q]=E.useState(g.name),[C,x]=E.useState(localStorage.getItem("showReminder")==="true"),U=E.useRef(null),y=E.useRef(null),S=(h,b)=>{b!==p&&d.stats.postEvent("tab",`Opened ${b}`),u(h),Q(b),U.current&&(U.current.scrollTop=0),t&&t(h,b)};E.useEffect(()=>{t&&B&&t(B,p,{fromHistory:!0})},[]),E.useEffect(()=>{if(o&&p){const h=o.find(b=>b.name===p);if(h){const b=l(h.label);u(b)}}},[l,o,p]),E.useEffect(()=>{if(!(!s||y.current===s)){if(s?.type==="settings-default"){y.current=s;const h=A[0]?.props;h&&(u(h.label),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(h.label,h.name,{fromHistory:!0}));return}if(s?.type==="settings-section"&&o){const h=o.find(b=>b.name===s.data);if(h){y.current=s;const b=l(h.label);u(b),Q(h.name),U.current&&(U.current.scrollTop=0),t?.(b,h.name,{fromHistory:!0})}}}},[s,o,l]),E.useEffect(()=>{n&&(u(A[0]?.props.label),Q(A[0]?.props.name),U.current&&(U.current.scrollTop=0),t&&t(A[0]?.props.label,A[0]?.props.name))},[n]),E.useEffect(()=>{const h=()=>x(!0);return hA.on("reminder",h),()=>hA.off("reminder",h)},[]);const H=()=>{localStorage.setItem("showReminder","false"),x(!1)},L=r===Aa.SETTINGS||r===Aa.DISCOVER;return i.jsxs("div",{style:{display:"flex",width:"100%",height:"100%",overflow:"hidden"},children:[L?i.jsxs("div",{className:"modalSidebar",children:[A.map((h,b)=>i.jsx(Zo,{currentTab:B,label:h.props.label,onClick:k=>S(k,h.props.name),navbarTab:e},b)),i.jsx(zo,{isVisible:C,onHide:H})]}):null,i.jsx("div",{className:"modalTabContent",ref:U,children:A.map((h,b)=>h.props.label!==B?null:i.jsx(qo,{children:h.props.children},`error-boundary-${b}`))})]})};async function gr(A){const e=String(A??"").trim();try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(e)?e:`https://${e}`).hostname.replace(/^www\./i,"")||e}catch{return e}}const Al=({item:A,deleteLink:e,startEditLink:r,draggable:t=!1,onDragStart:n,onDragOver:a,onDrop:s,onDragEnd:o,isDragOver:l=!1,isDragging:c=!1})=>{let g,B=null;if(localStorage.getItem("quicklinksnewtab")==="true"&&(g="_blank",B="noopener noreferrer"),localStorage.getItem("quicklinksText")==="true")return i.jsx("a",{className:"quicklinkstext",onContextMenu:C=>e(A.key,C),href:A.url,target:g,rel:B,draggable:!1,children:A.name});const p=A.icon||Us(A.url,A.name),Q=`messageMap ${c?"dragging":""} ${l?"drag-over":""}`;return i.jsxs("div",{className:Q,draggable:t,onDragStart:C=>n&&n(C,A.key),onDragOver:C=>a&&a(C,A.key),onDrop:C=>s&&s(C,A.key),onDragEnd:C=>o&&o(C),children:[i.jsx("div",{className:"dragHandle","aria-hidden":!0,children:i.jsx(no,{})}),i.jsx("div",{className:"icon",children:i.jsx("img",{src:p,alt:A.name,draggable:!1,style:{height:"30px",width:"30px"}})}),i.jsxs("div",{className:"messageText",children:[i.jsx("div",{className:"title",children:A.name}),i.jsx("div",{className:"subtitle",children:i.jsx("a",{className:"quicklinknostyle",target:"_blank",rel:"noopener noreferrer",href:A.url,children:A.url})})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsx(vA,{type:"settings",onClick:()=>r(A),icon:i.jsx(Fs,{}),label:d.getMessage("modals.main.settings.sections.quicklinks.edit")}),i.jsx(vA,{type:"settings",onClick:C=>e(A.key,C),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]})};function el({appsEnabled:A}){const e=Ut(),[r,t]=E.useState({newLink:!1,edit:!1,items:JSON.parse(localStorage.getItem("applinks")),urlError:"",iconError:"",editData:null}),n=async(l,c,g)=>{const B=JSON.parse(localStorage.getItem("applinks"));if(c=Ge(c),!c)return t(u=>({...u,urlError:e("widgets.quicklinks.url_error")}));if(g.length>0&&pt(g)===!1)return t(u=>({...u,iconError:e("widgets.quicklinks.icon_error")}));B.push({name:l||await gr(c),url:c,icon:g||"",key:Math.random().toString(36).substring(7)+1}),localStorage.setItem("applinks",JSON.stringify(B)),t({newLink:!1,edit:!1,items:B,urlError:"",iconError:""}),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link add")},a=l=>{t(c=>({...c,edit:!0,editData:l}))},s=async(l,c,g,B)=>{const u=JSON.parse(localStorage.getItem("applinks")),p=u.find(Q=>Q.key===l.key);if(p){if(g=Ge(g),!g)return t(Q=>({...Q,urlError:e("widgets.quicklinks.url_error")}));if(B.length>0&&pt(B)===!1)return t(Q=>({...Q,iconError:e("widgets.quicklinks.icon_error")}));p.name=c||await gr(g),p.url=g,p.icon=B||"",localStorage.setItem("applinks",JSON.stringify(u)),t(Q=>({...Q,items:u,edit:!1,newLink:!1})),hA.emit("refresh","navbar")}},o=(l,c)=>{c.preventDefault();const g=JSON.parse(localStorage.getItem("applinks")).filter(B=>B.key!==l);localStorage.setItem("applinks",JSON.stringify(g)),t(B=>({...B,items:g})),hA.emit("refresh","navbar"),d.stats.postEvent("feature","App link delete")};return i.jsxs(i.Fragment,{children:[i.jsxs(rA,{final:!0,inactive:!A,children:[i.jsx(nA,{title:e("widgets.navbar.apps.title"),subtitle:e("modals.main.settings.sections.appearance.navbar.apps_subtitle")}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>t(l=>({...l,newLink:!0})),icon:i.jsx(fn,{}),label:e("modals.main.settings.sections.quicklinks.add_link")})})]}),i.jsx("div",{className:"messagesContainer",children:r.items.map((l,c)=>i.jsx(Al,{item:l,startEditLink:()=>a(l),deleteLink:(g,B)=>o(g,B)},c))}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>t(l=>({...l,newLink:!1,edit:!1})),isOpen:r.edit||r.newLink,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(bs,{urlError:r.urlError,iconError:r.iconError,addLink:(l,c,g)=>n(l,c,g),editLink:(l,c,g,B)=>s(l,c,g,B),edit:r.edit,editData:r.editData,closeModal:()=>t(l=>({...l,newLink:!1,edit:!1}))})})]})}function tl(){const A=Ut(),[e,r]=E.useState(localStorage.getItem("refresh")==="true"),[t,n]=E.useState(localStorage.getItem("appsEnabled")==="true"||!1),a="modals.main.settings.sections.appearance.navbar",s=()=>i.jsxs(rA,{final:!1,children:[i.jsx(nA,{title:A("modals.main.settings.additional_settings"),subtitle:A("modals.main.settings.sections.appearance.navbar.additional")}),i.jsx(cA,{children:i.jsx(mA,{name:"navbarHover",text:A(`${a}.hover`),category:"navbar"})})]}),o=()=>{const c=({icon:B,messageKey:u,settingName:p})=>{const[Q,C]=E.useState(localStorage.getItem(p)!=="true"),x=()=>{localStorage.setItem(p,Q),p==="refresh"?r(!e):p==="appsEnabled"&&n(!t),C(!Q),d.stats.postEvent("setting",`${p} ${Q?"disabled":"enabled"}`),hA.emit("refresh","navbar")};return i.jsxs("button",{onClick:x,className:`navbarButtonOption ${Q===!0?"disabled":""}`,children:[B,i.jsx("span",{className:"subtitle",children:A(u)})]})},g=[{icon:i.jsx(ao,{}),settingName:"view",messageKey:"modals.main.settings.sections.background.buttons.view"},{icon:i.jsx(so,{}),settingName:"notesEnabled",messageKey:`${a}.notes`},{icon:i.jsx(io,{}),settingName:"todoEnabled",messageKey:"widgets.navbar.todo.title"},{icon:i.jsx(we,{}),settingName:"refresh",messageKey:`${a}.refresh`},{icon:i.jsx(oo,{}),settingName:"appsEnabled",messageKey:"widgets.navbar.apps.title"}];return i.jsxs(rA,{children:[i.jsx(nA,{title:A("modals.main.settings.sections.appearance.navbar.widgets")}),i.jsx(cA,{children:i.jsx("div",{className:"navbarButtonOptions",children:g.map((B,u)=>i.jsx(c,{...B},u))})})]})},l=()=>i.jsxs(rA,{final:!1,inactive:!e,children:[i.jsx(nA,{title:A(`${a}.refresh`),subtitle:A("modals.main.settings.sections.appearance.navbar.refresh_subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"refreshOption",category:"navbar",items:[{value:"page",text:A("modals.main.settings.sections.appearance.navbar.refresh_options.page")},{value:"background",text:A("modals.main.settings.sections.background.title")}]})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:A(`${a}.title`),setting:"navbar",category:"widgets",zoomSetting:"zoomNavbar",zoomCategory:"navbar"}),i.jsx(s,{}),i.jsx(o,{}),i.jsx(l,{}),i.jsx(el,{appsEnabled:t})]})}const rl=E.memo(tl),ia=[{id:"widgets.greeting.christmas",name:"Merry Christmas",month:12,date:25},{id:"widgets.greeting.newyear",name:"Happy New Year",month:1,date:1},{id:"widgets.greeting.halloween",name:"Happy Halloween",month:10,date:31}],nl=A=>{const[e,r,t]=String(A).split("-").map(Number);return e&&r&&t?new Date(e,r-1,t):new Date},al=A=>`${A.getFullYear()}-${String(A.getMonth()+1).padStart(2,"0")}-${String(A.getDate()).padStart(2,"0")}`,sl=({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(JSON.parse(localStorage.getItem("customEvents"))||[]),[a,s]=E.useState(()=>{const h=localStorage.getItem("birthday");return h?new Date(h):new Date}),[o,l]=E.useState(localStorage.getItem("birthdayenabled")==="true"?"preferences":"preferencesInactive"),[c,g]=E.useState(localStorage.getItem("events")==="true"?"preferences":"preferencesInactive"),B=h=>{const b=h.target.value?nl(h.target.value):new Date;localStorage.setItem("birthday",b),s(b)},u="modals.main.settings.sections.greeting",p=()=>{const h=JSON.parse(localStorage.getItem("customEvents"))||[],b={id:"widgets.greeting.halloween",name:"",month:1,date:1},k=[...h,b];h.push(b),localStorage.setItem("customEvents",JSON.stringify(h)),n(k)},Q=h=>{const b=t.filter((k,M)=>M!==h);localStorage.setItem("customEvents",JSON.stringify(b)),n(b)},C=()=>{localStorage.setItem("customEvents",JSON.stringify(ia)),n(ia),RA(d.getMessage("toasts.reset"))},x=(h,b)=>{n(M=>{const R=[...M];return R[h]=b,R});const k=JSON.parse(localStorage.getItem("customEvents")||"[]");k[h]=b,localStorage.setItem("customEvents",JSON.stringify(k))},U=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${u}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"defaultGreetingMessage",text:d.getMessage(`${u}.default`),category:"greeting"}),i.jsx(lr,{title:d.getMessage(`${u}.name`),name:"greetingName",category:"greeting"})]})]}),y=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.birthday`),subtitle:d.getMessage("modals.main.settings.sections.greeting.birthday_subtitle")}),i.jsxs(cA,{children:[i.jsx(ys,{name:"birthdayenabled",text:d.getMessage("modals.main.settings.enabled"),category:"greeting",onChange:h=>{l(h?"preferences":"preferencesInactive")}}),i.jsxs("div",{className:o,children:[i.jsx(mA,{name:"birthdayage",text:d.getMessage(`${u}.birthday_age`),category:"greeting"}),i.jsx("p",{style:{marginRight:"auto"},children:d.getMessage(`${u}.birthday_date`)}),i.jsx("input",{type:"date",onChange:B,value:al(a),required:!0})]})]})]}),S=()=>i.jsxs("div",{className:c,children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${u}.custom`)}),i.jsx(cA,{children:i.jsxs("div",{className:"headerActions",children:[i.jsx(vA,{type:"settings",onClick:C,icon:i.jsx(we,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(or,{}),label:d.getMessage("widgets.quicklinks.add")})]})})]}),i.jsx("div",{className:"messagesContainer",children:t.map((h,b)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(Tr,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.event_name`)}),i.jsx("input",{type:"text",className:"text-field-input",value:h.name,placeholder:d.getMessage(`${u}.event_name`),onChange:k=>{const M={...h,name:k.target.value};x(b,M)}})]})]}),i.jsx("div",{children:i.jsxs("div",{className:"messageAction",children:[i.jsxs("div",{className:"eventDateSelection",children:[i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.day`),":"]}),i.jsx("input",{id:"day",type:"number",min:"1",max:"31",value:h.date,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=31){const R={...h,date:M};x(b,R)}}}),i.jsx("hr",{}),i.jsxs("label",{className:"subtitle",children:[d.getMessage(`${u}.month`),":"]}),i.jsx("input",{id:"month",type:"number",min:"1",max:"12",value:h.month,onChange:k=>{const M=parseInt(k.target.value,10);if(M>=1&&M<=12){const R={...h,month:M};x(b,R)}}})]}),i.jsx(vA,{type:"settings",onClick:()=>Q(b),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})]})})]},b))}),t.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(Tr,{}),i.jsx("span",{className:"title",children:d.getMessage(`${u}.no_events`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${u}.no_events_description`)}),i.jsx(vA,{type:"settings",onClick:p,icon:i.jsx(or,{}),label:d.getMessage(`${u}.add_event`)})]})})]}),H=A==="events";let L;return H?L=i.jsx(TA,{title:d.getMessage(`${u}.title`),secondaryTitle:d.getMessage(`${u}.events.title`),goBack:()=>e(null,r),report:!1}):L=i.jsx(TA,{title:d.getMessage(`${u}.title`),setting:"greeting",category:"widgets",zoomSetting:"zoomGreeting",visibilityToggle:!0}),i.jsxs(i.Fragment,{children:[L,H?i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.enable_events`)}),i.jsx(cA,{children:i.jsx(mA,{name:"events",text:d.getMessage(`${u}.events`),category:"greeting",onChange:h=>{g(h?"preferences":"preferencesInactive")}})})]}),y(),S()]}):i.jsxs(Ft,{setting:"greeting",zoomSetting:"zoomGreeting",category:"greeting",visibilityToggle:!0,children:[i.jsx(U,{}),i.jsx(Vn,{title:d.getMessage(`${u}.events`),subtitle:d.getMessage(`${u}.events_description`),onClick:()=>e("events",r),icon:i.jsx(Tr,{})})]})]})},il=()=>{const[A,e]=E.useState(localStorage.getItem("timeType")||"digital"),[r,t]=E.useState(localStorage.getItem("hourColour")||"#ffffff"),[n,a]=E.useState(localStorage.getItem("minuteColour")||"#ffffff"),[s,o]=E.useState(localStorage.getItem("secondColour")||"#ffffff"),l="modals.main.settings.sections.time",c=(C,x)=>{const U=x.target.value;C==="hourColour"?t(U):C==="minuteColour"?a(U):C==="secondColour"&&o(U),localStorage.setItem(C,U)},g=()=>i.jsxs(rA,{final:A==="percentageComplete",children:[i.jsx(nA,{title:d.getMessage(`${l}.type`),subtitle:d.getMessage(`${l}.type_subtitle`)}),i.jsx(cA,{children:i.jsx(KA,{name:"timeType",onChange:C=>e(C),category:"clock",items:[{value:"digital",text:d.getMessage(`${l}.digital.title`)},{value:"analogue",text:d.getMessage(`${l}.analogue.title`)},{value:"percentageComplete",text:d.getMessage(`${l}.percentage_complete`)},{value:"verticalClock",text:d.getMessage(`${l}.vertical_clock.title`)}]})})]}),B=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.digital.title`),subtitle:d.getMessage(`${l}.digital.subtitle`)}),i.jsxs(cA,{children:[i.jsx(hn,{name:"timeformat",options:[{name:d.getMessage(`${l}.digital.twentyfourhour`),value:"twentyfourhour"},{name:d.getMessage(`${l}.digital.twelvehour`),value:"twelvehour"}],smallTitle:!0,category:"clock"}),i.jsx(mA,{name:"seconds",text:d.getMessage(`${l}.digital.seconds`),category:"clock"}),i.jsx(mA,{name:"zero",text:d.getMessage(`${l}.digital.zero`),category:"clock"})]})]}),u=i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${l}.analogue.title`),subtitle:d.getMessage(`${l}.analogue.subtitle`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"secondHand",text:d.getMessage(`${l}.analogue.second_hand`),category:"clock"}),i.jsx(mA,{name:"minuteHand",text:d.getMessage(`${l}.analogue.minute_hand`),category:"clock"}),i.jsx(mA,{name:"hourHand",text:d.getMessage(`${l}.analogue.hour_hand`),category:"clock"}),i.jsx(mA,{name:"hourMarks",text:d.getMessage(`${l}.analogue.hour_marks`),category:"clock"}),i.jsx(mA,{name:"minuteMarks",text:d.getMessage(`${l}.analogue.minute_marks`),category:"clock"}),i.jsx(mA,{name:"roundClock",text:d.getMessage(`${l}.analogue.round_clock`),category:"clock"})]})]}),p=i.jsxs(i.Fragment,{children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_hour_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"hourColour",className:"minuteColour",onChange:C=>c("hourColour",C),value:r}),i.jsx("label",{htmlFor:"hourColour",className:"customBackgroundHex",children:r})]}),i.jsxs("span",{className:"link",onClick:()=>c("hourColour",{target:{value:"#ffffff"}}),onKeyDown:tr(()=>c("hourColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_minute_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"minuteColour",className:"minuteColour",onChange:C=>c("minuteColour",C),value:n}),i.jsx("label",{htmlFor:"minuteColour",className:"customBackgroundHex",children:n})]}),i.jsxs("span",{className:"link",onClick:()=>c("minuteColour",{target:{value:"#ffffff"}}),onKeyDown:tr(()=>c("minuteColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.vertical_clock.change_second_colour")}),i.jsxs(cA,{children:[i.jsxs("div",{className:"colourInput",children:[i.jsx("input",{type:"color",name:"secondColour",className:"secondColour",onChange:C=>c("secondColour",C),value:s}),i.jsx("label",{htmlFor:"secondColour",className:"customBackgroundHex",children:s})]}),i.jsxs("span",{className:"link",onClick:()=>c("secondColour",{target:{value:"#ffffff"}}),onKeyDown:tr(()=>c("secondColour",{target:{value:"#ffffff"}})),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})]})]}),B]}),Q=()=>{switch(A){case"digital":return B;case"analogue":return u;case"verticalClock":return p;default:return null}};return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${l}.title`),setting:"time",category:"widgets",zoomSetting:"zoomClock",visibilityToggle:!0}),i.jsxs(Ft,{setting:"time",zoomSetting:"zoomClock",category:"clock",visibilityToggle:!0,children:[i.jsx(g,{}),Q()]})]})};function ol(){const[A,e]=E.useState(localStorage.getItem("dateType")||"long"),r=["DMY","MDY","YMD"],t=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.long_format"),name:"longFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(mA,{name:"dayofweek",text:d.getMessage("modals.main.settings.sections.date.day_of_week"),category:"date"}),i.jsx(mA,{name:"datenth",text:d.getMessage("modals.main.settings.sections.date.datenth"),category:"date"})]}),n=i.jsxs(i.Fragment,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_format"),name:"dateFormat",category:"date",items:r.map(a=>({value:a,text:a}))}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.date.short_separator.title"),name:"shortFormat",category:"date",items:[{value:"dash",text:d.getMessage("modals.main.settings.sections.date.short_separator.dash")},{value:"dots",text:d.getMessage("modals.main.settings.sections.date.short_separator.dots")},{value:"gaps",text:d.getMessage("modals.main.settings.sections.date.short_separator.gaps")},{value:"slashes",text:d.getMessage("modals.main.settings.sections.date.short_separator.slashes")}]})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.date.title"),setting:"date",category:"widgets",zoomSetting:"zoomDate",visibilityToggle:!0}),i.jsxs(Ft,{setting:"date",visibilityToggle:!0,category:"date",zoomSetting:"zoomDate",children:[i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.time.type"),subtitle:d.getMessage("modals.main.settings.sections.date.type.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"dateType",onChange:a=>{e(a),localStorage.setItem("dateType",a)},category:"date",items:[{value:"long",text:d.getMessage("modals.main.settings.sections.date.type.long")},{value:"short",text:d.getMessage("modals.main.settings.sections.date.type.short")}]})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:A==="long"?d.getMessage("modals.main.settings.sections.date.type.long"):d.getMessage("modals.main.settings.sections.date.type.short"),subtitle:d.getMessage("modals.main.settings.sections.date.type_settings")}),i.jsxs(cA,{children:[A==="long"?t:n,i.jsx(mA,{name:"weeknumber",text:d.getMessage("modals.main.settings.sections.date.week_number"),category:"date"}),i.jsx(mA,{name:"datezero",text:d.getMessage("modals.main.settings.sections.time.digital.zero"),category:"date"})]})]})]})]})}const ll=()=>i.jsx("div",{className:"quicklink-drag-handle","aria-hidden":"true",children:i.jsx(Es,{})}),cl=({value:A,enabled:e,startEditLink:r,deleteLink:t})=>{const{attributes:n,listeners:a,setNodeRef:s,transform:o,transition:l,isDragging:c}=xs({id:A.key,disabled:!e}),g={transform:Is.Transform.toString(o),transition:l,opacity:c?.5:1},B=u=>u.icon||Us(u.url,u.name);return i.jsxs("div",{ref:s,style:g,...n,...a,className:`quicklink-item ${e?"":"disabled"}`,role:"listitem",children:[i.jsx(ll,{}),i.jsx("div",{className:"quicklink-icon",children:i.jsx("img",{src:B(A),alt:A.name,draggable:!1})}),i.jsxs("div",{className:"quicklink-content",children:[i.jsx("div",{className:"quicklink-name",children:A.name}),i.jsx("div",{className:"quicklink-url",children:A.url})]}),i.jsxs("div",{className:"quicklink-actions",children:[i.jsxs("button",{className:"quicklink-action-btn",onClick:u=>{e&&(u.stopPropagation(),r(A))},title:"Edit",disabled:!e,"aria-disabled":!e,children:[i.jsx(Fs,{}),i.jsx("span",{children:"Edit"})]}),i.jsxs("button",{className:"quicklink-action-btn quicklink-remove-btn",onClick:u=>{e&&(u.stopPropagation(),t(A.key,u))},title:"Remove",disabled:!e,"aria-disabled":!e,children:[i.jsx(lo,{}),i.jsx("span",{children:"Remove"})]})]})]})},gl=({items:A,enabled:e,onDragEnd:r,startEditLink:t,deleteLink:n})=>{const a=Hs(cr(ks,{activationConstraint:{distance:6}}),cr(Ls,{coordinateGetter:Ss}));return i.jsx(Ms,{sensors:a,collisionDetection:Ks,onDragEnd:r,children:i.jsx(Ts,{items:A.map(s=>s.key),strategy:Ds,children:i.jsx("div",{className:"quicklinks-list",role:"list",children:A.map(s=>i.jsx(cl,{value:s,enabled:e,startEditLink:t,deleteLink:n},s.key))})})})},Ye=()=>{try{const A=localStorage.getItem("quicklinks");if(!A)return[];const e=JSON.parse(A);return Array.isArray(e)?e:[]}catch(A){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",A),[]}},ul=()=>{const[A,e]=E.useState(Ye()),[r,t]=E.useState(!1),[n,a]=E.useState(""),[s,o]=E.useState(""),[l,c]=E.useState(!1),[g,B]=E.useState(""),[u,p]=E.useState(localStorage.getItem("quicklinksenabled")!=="false"),Q=E.useRef(),C=E.useRef(!1),x=R=>{if(!Q||!Q.current)return;const O=Q.current;O.classList.toggle("disabled",!R),R?O.removeAttribute("aria-hidden"):O.setAttribute("aria-hidden","true")},U=(R,O)=>{O.preventDefault();const D=Ye().filter(z=>z.key!==R);C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),d.stats.postEvent("feature","Quicklink delete"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},y=async(R,O,Z)=>{const D=Ye();if(O=Ge(O),!O){a(d.getMessage("widgets.quicklinks.url_error"));return}if(Z.length>0&&pt(Z)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}const z={name:R||await gr(O),url:O,icon:Z||"",key:Date.now().toString()+Math.random().toString(36).substring(2)};D.push(z),C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(D)),e(D),t(!1),a(""),o(""),d.stats.postEvent("feature","Quicklink add"),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)},S=R=>{c(!0),B(R),t(!0)},H=async(R,O,Z,D)=>{const z=Ye(),eA=z.find(tA=>tA.key===R.key);if(eA){if(Z=Ge(Z),!Z){a(d.getMessage("widgets.quicklinks.url_error"));return}if(D.length>0&&pt(D)===!1){o(d.getMessage("widgets.quicklinks.url_error"));return}eA.name=O||await gr(Z),eA.url=Z,eA.icon=D||"",C.current=!0,localStorage.setItem("quicklinks",JSON.stringify(z)),e(z),t(!1),c(!1),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)}},L=R=>{const{active:O,over:Z}=R;if(!Z||!u||O.id===Z.id)return;const D=A.findIndex(tA=>tA.key===O.id),z=A.findIndex(tA=>tA.key===Z.id);if(D===-1||z===-1)return;const eA=Os(A,D,z);C.current=!0,e(eA),localStorage.setItem("quicklinks",JSON.stringify(eA)),hA.emit("refresh","quicklinks"),setTimeout(()=>{C.current=!1},0)};E.useEffect(()=>{x(u)},[u]),E.useEffect(()=>{x(u);const R=O=>{if(O!=="quicklinks"||C.current)return;const Z=localStorage.getItem("quicklinksenabled")!=="false",D=Ye(),z=A||[],eA=z.length===D.length&&z.every(tA=>D.some(AA=>AA.key===tA.key));(Z!==u||!eA)&&(x(Z),e(D),p(Z))};return hA.on("refresh",R),()=>{hA.off("refresh",R)}},[u,A]);const h="modals.main.settings.sections.quicklinks",b=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.additional_settings"),subtitle:d.getMessage(`${h}.additional`)}),i.jsxs(cA,{children:[i.jsx(mA,{name:"quicklinksnewtab",text:d.getMessage(`${h}.open_new`),category:"quicklinks"}),i.jsx(mA,{name:"quicklinkstooltip",text:d.getMessage(`${h}.tooltip`),category:"quicklinks"})]})]}),k=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage(`${h}.styling`),subtitle:d.getMessage("modals.main.settings.sections.quicklinks.styling_description")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage(`${h}.style`),name:"quickLinksStyle",category:"quicklinks",items:[{value:"icon",text:d.getMessage(`${h}.options.icon`)},{value:"text",text:d.getMessage(`${h}.options.text_only`)},{value:"metro",text:d.getMessage(`${h}.options.metro`)}]})})]}),M=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${h}.title`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>u&&t(!0),icon:i.jsx(fn,{}),label:d.getMessage(`${h}.add_link`),disabled:!u})})]});return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${h}.title`),setting:"quicklinksenabled",category:"widgets",zoomSetting:"zoomQuicklinks",visibilityToggle:!0}),i.jsxs(Ft,{setting:"quicklinksenabled",category:"quicklinks",visibilityToggle:!0,zoomSetting:"zoomQuicklinks",children:[i.jsx(b,{}),i.jsx(k,{}),i.jsx(M,{}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(co,{}),i.jsx("span",{className:"title",children:d.getMessage(`${h}.no_quicklinks`)}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.message.add_some")}),i.jsx(vA,{type:"settings",onClick:()=>t(!0),icon:i.jsx(fn,{}),label:d.getMessage(`${h}.add_link`)})]})})]}),i.jsx("div",{className:`quicklinks-container ${u?"":"disabled"}`,ref:Q,"aria-hidden":!u,children:i.jsx("div",{className:`messagesContainer ${u?"":"disabled"}`,children:i.jsx(gl,{items:A,enabled:u,onDragEnd:L,startEditLink:R=>S(R),deleteLink:(R,O)=>U(R,O)})})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a(""),o(""),c(!1),B("")},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(bs,{urlError:n,iconError:s,addLink:(R,O,Z)=>y(R,O,Z),editLink:(R,O,Z,D)=>H(R,O,Z,D),edit:l,editData:g,closeModal:()=>{t(!1),a(""),o(""),c(!1)}})})]})},Bl=()=>{const[A,e]=E.useState(JSON.parse(localStorage.getItem("messages"))||[]),r=(a,s)=>{const o=[...A];a==="add"?o.push(""):o.splice(s,1),e(o),localStorage.setItem("messages",JSON.stringify(o)),hA.emit("refresh","message")},t=(a,s,o)=>{const l=a.target.value,c=[...A];c[o]=l,e(c),localStorage.setItem("messages",JSON.stringify(c)),Qs()},n="modals.main.settings.sections.message";return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage(`${n}.title`),setting:"message",category:"widgets",zoomSetting:"zoomMessage",visibilityToggle:!0}),i.jsxs(Ft,{setting:"message",visibilityToggle:!0,category:"message",zoomSetting:"zoomMessage",children:[i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage(`${n}.messages`)}),i.jsx(cA,{children:i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(or,{}),label:d.getMessage(`${n}.add`)})})]}),i.jsx("div",{className:"messagesContainer",children:A.map((a,s)=>i.jsxs("div",{className:"messageMap",children:[i.jsxs("div",{className:"flexGrow",children:[i.jsx("div",{className:"icon",children:i.jsx(ea,{})}),i.jsxs("div",{className:"messageText",children:[i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.title`)}),i.jsx(go,{value:A[s],placeholder:d.getMessage("modals.main.settings.sections.message.content"),onChange:o=>t(o,!0,s),minRows:2})]})]}),i.jsx("div",{children:i.jsx("div",{className:"messageAction",children:i.jsx(vA,{type:"settings",onClick:()=>r("remove",s),icon:i.jsx(ht,{}),label:d.getMessage("modals.main.marketplace.product.buttons.remove")})})})]},s))}),A.length===0&&i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ea,{}),i.jsx("span",{className:"title",children:d.getMessage(`${n}.no_messages`)}),i.jsx("span",{className:"subtitle",children:d.getMessage(`${n}.add_some`)}),i.jsx(vA,{type:"settings",onClick:()=>r("add"),icon:i.jsx(or,{}),label:d.getMessage(`${n}.add`)})]})})]})]})};var Dr={exports:{}},oa;function dl(){return oa||(oa=1,(function(A){(function(e){var r=/^\s+/,t=/\s+$/,n=0,a=e.round,s=e.min,o=e.max,l=e.random;function c(f,v){if(f=f||"",v=v||{},f instanceof c)return f;if(!(this instanceof c))return new c(f,v);var w=g(f);this._originalInput=f,this._r=w.r,this._g=w.g,this._b=w.b,this._a=w.a,this._roundA=a(100*this._a)/100,this._format=v.format||w.format,this._gradientType=v.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=w.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),v,w,K,W,X,oA;return v=f.r/255,w=f.g/255,K=f.b/255,v<=.03928?W=v/12.92:W=e.pow((v+.055)/1.055,2.4),w<=.03928?X=w/12.92:X=e.pow((w+.055)/1.055,2.4),K<=.03928?oA=K/12.92:oA=e.pow((K+.055)/1.055,2.4),.2126*W+.7152*X+.0722*oA},setAlpha:function(f){return this._a=aA(f),this._roundA=a(100*this._a)/100,this},toHsv:function(){var f=Q(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=Q(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.v*100);return this._a==1?"hsv("+v+", "+w+"%, "+K+"%)":"hsva("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var f=u(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=u(this._r,this._g,this._b),v=a(f.h*360),w=a(f.s*100),K=a(f.l*100);return this._a==1?"hsl("+v+", "+w+"%, "+K+"%)":"hsla("+v+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(f){return x(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return U(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(q(this._r,255)*100)+"%",g:a(q(this._g,255)*100)+"%",b:a(q(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%)":"rgba("+a(q(this._r,255)*100)+"%, "+a(q(this._g,255)*100)+"%, "+a(q(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:AA[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var v="#"+y(this._r,this._g,this._b,this._a),w=v,K=this._gradientType?"GradientType = 1, ":"";if(f){var W=c(f);w="#"+y(W._r,W._g,W._b,W._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+v+",endColorstr="+w+")"},toString:function(f){var v=!!f;f=f||this._format;var w=!1,K=this._a<1&&this._a>=0,W=!v&&K&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return W?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(w=this.toRgbString()),f==="prgb"&&(w=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(w=this.toHexString()),f==="hex3"&&(w=this.toHexString(!0)),f==="hex4"&&(w=this.toHex8String(!0)),f==="hex8"&&(w=this.toHex8String()),f==="name"&&(w=this.toName()),f==="hsl"&&(w=this.toHslString()),f==="hsv"&&(w=this.toHsvString()),w||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(f,v){var w=f.apply(null,[this].concat([].slice.call(v)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(h,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(H,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(f,v){return f.apply(null,[this].concat([].slice.call(v)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(eA,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(Z,arguments)}},c.fromRatio=function(f,v){if(typeof f=="object"){var w={};for(var K in f)f.hasOwnProperty(K)&&(K==="a"?w[K]=f[K]:w[K]=F(f[K]));f=w}return c(f,v)};function g(f){var v={r:0,g:0,b:0},w=1,K=null,W=null,X=null,oA=!1,fA=!1;return typeof f=="string"&&(f=$(f)),typeof f=="object"&&(P(f.r)&&P(f.g)&&P(f.b)?(v=B(f.r,f.g,f.b),oA=!0,fA=String(f.r).substr(-1)==="%"?"prgb":"rgb"):P(f.h)&&P(f.s)&&P(f.v)?(K=F(f.s),W=F(f.v),v=C(f.h,K,W),oA=!0,fA="hsv"):P(f.h)&&P(f.s)&&P(f.l)&&(K=F(f.s),X=F(f.l),v=p(f.h,K,X),oA=!0,fA="hsl"),f.hasOwnProperty("a")&&(w=f.a)),w=aA(w),{ok:oA,format:f.format||fA,r:s(255,o(v.r,0)),g:s(255,o(v.g,0)),b:s(255,o(v.b,0)),a:w}}function B(f,v,w){return{r:q(f,255)*255,g:q(v,255)*255,b:q(w,255)*255}}function u(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=(K+W)/2;if(K==W)X=oA=0;else{var UA=K-W;switch(oA=fA>.5?UA/(2-K-W):UA/(K+W),K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,l:fA}}function p(f,v,w){var K,W,X;f=q(f,360),v=q(v,100),w=q(w,100);function oA(VA,We,ZA){return ZA<0&&(ZA+=1),ZA>1&&(ZA-=1),ZA<1/6?VA+(We-VA)*6*ZA:ZA<1/2?We:ZA<2/3?VA+(We-VA)*(2/3-ZA)*6:VA}if(v===0)K=W=X=w;else{var fA=w<.5?w*(1+v):w+v-w*v,UA=2*w-fA;K=oA(UA,fA,f+1/3),W=oA(UA,fA,f),X=oA(UA,fA,f-1/3)}return{r:K*255,g:W*255,b:X*255}}function Q(f,v,w){f=q(f,255),v=q(v,255),w=q(w,255);var K=o(f,v,w),W=s(f,v,w),X,oA,fA=K,UA=K-W;if(oA=K===0?0:UA/K,K==W)X=0;else{switch(K){case f:X=(v-w)/UA+(v<w?6:0);break;case v:X=(w-f)/UA+2;break;case w:X=(f-v)/UA+4;break}X/=6}return{h:X,s:oA,v:fA}}function C(f,v,w){f=q(f,360)*6,v=q(v,100),w=q(w,100);var K=e.floor(f),W=f-K,X=w*(1-v),oA=w*(1-W*v),fA=w*(1-(1-W)*v),UA=K%6,VA=[w,oA,X,X,fA,w][UA],We=[fA,w,w,oA,X,X][UA],ZA=[X,X,fA,w,w,oA][UA];return{r:VA*255,g:We*255,b:ZA*255}}function x(f,v,w,K){var W=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return K&&W[0].charAt(0)==W[0].charAt(1)&&W[1].charAt(0)==W[1].charAt(1)&&W[2].charAt(0)==W[2].charAt(1)?W[0].charAt(0)+W[1].charAt(0)+W[2].charAt(0):W.join("")}function U(f,v,w,K,W){var X=[_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16)),_(N(K))];return W&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)&&X[3].charAt(0)==X[3].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0)+X[3].charAt(0):X.join("")}function y(f,v,w,K){var W=[_(N(K)),_(a(f).toString(16)),_(a(v).toString(16)),_(a(w).toString(16))];return W.join("")}c.equals=function(f,v){return!f||!v?!1:c(f).toRgbString()==c(v).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})};function S(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s-=v/100,w.s=lA(w.s),c(w)}function H(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.s+=v/100,w.s=lA(w.s),c(w)}function L(f){return c(f).desaturate(100)}function h(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l+=v/100,w.l=lA(w.l),c(w)}function b(f,v){v=v===0?0:v||10;var w=c(f).toRgb();return w.r=o(0,s(255,w.r-a(255*-(v/100)))),w.g=o(0,s(255,w.g-a(255*-(v/100)))),w.b=o(0,s(255,w.b-a(255*-(v/100)))),c(w)}function k(f,v){v=v===0?0:v||10;var w=c(f).toHsl();return w.l-=v/100,w.l=lA(w.l),c(w)}function M(f,v){var w=c(f).toHsl(),K=(w.h+v)%360;return w.h=K<0?360+K:K,c(w)}function R(f){var v=c(f).toHsl();return v.h=(v.h+180)%360,c(v)}function O(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+120)%360,s:v.s,l:v.l}),c({h:(w+240)%360,s:v.s,l:v.l})]}function Z(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+90)%360,s:v.s,l:v.l}),c({h:(w+180)%360,s:v.s,l:v.l}),c({h:(w+270)%360,s:v.s,l:v.l})]}function D(f){var v=c(f).toHsl(),w=v.h;return[c(f),c({h:(w+72)%360,s:v.s,l:v.l}),c({h:(w+216)%360,s:v.s,l:v.l})]}function z(f,v,w){v=v||6,w=w||30;var K=c(f).toHsl(),W=360/w,X=[c(f)];for(K.h=(K.h-(W*v>>1)+720)%360;--v;)K.h=(K.h+W)%360,X.push(c(K));return X}function eA(f,v){v=v||6;for(var w=c(f).toHsv(),K=w.h,W=w.s,X=w.v,oA=[],fA=1/v;v--;)oA.push(c({h:K,s:W,v:X})),X=(X+fA)%1;return oA}c.mix=function(f,v,w){w=w===0?0:w||50;var K=c(f).toRgb(),W=c(v).toRgb(),X=w/100,oA={r:(W.r-K.r)*X+K.r,g:(W.g-K.g)*X+K.g,b:(W.b-K.b)*X+K.b,a:(W.a-K.a)*X+K.a};return c(oA)},c.readability=function(f,v){var w=c(f),K=c(v);return(e.max(w.getLuminance(),K.getLuminance())+.05)/(e.min(w.getLuminance(),K.getLuminance())+.05)},c.isReadable=function(f,v,w){var K=c.readability(f,v),W,X;switch(X=!1,W=pA(w),W.level+W.size){case"AAsmall":case"AAAlarge":X=K>=4.5;break;case"AAlarge":X=K>=3;break;case"AAAsmall":X=K>=7;break}return X},c.mostReadable=function(f,v,w){var K=null,W=0,X,oA,fA,UA;w=w||{},oA=w.includeFallbackColors,fA=w.level,UA=w.size;for(var VA=0;VA<v.length;VA++)X=c.readability(f,v[VA]),X>W&&(W=X,K=c(v[VA]));return c.isReadable(f,K,{level:fA,size:UA})||!oA?K:(w.includeFallbackColors=!1,c.mostReadable(f,["#fff","#000"],w))};var tA=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},AA=c.hexNames=dA(tA);function dA(f){var v={};for(var w in f)f.hasOwnProperty(w)&&(v[f[w]]=w);return v}function aA(f){return f=parseFloat(f),(isNaN(f)||f<0||f>1)&&(f=1),f}function q(f,v){I(f)&&(f="100%");var w=j(f);return f=s(v,o(0,parseFloat(f))),w&&(f=parseInt(f*v,10)/100),e.abs(f-v)<1e-6?1:f%v/parseFloat(v)}function lA(f){return s(1,o(0,f))}function sA(f){return parseInt(f,16)}function I(f){return typeof f=="string"&&f.indexOf(".")!=-1&&parseFloat(f)===1}function j(f){return typeof f=="string"&&f.indexOf("%")!=-1}function _(f){return f.length==1?"0"+f:""+f}function F(f){return f<=1&&(f=f*100+"%"),f}function N(f){return e.round(parseFloat(f)*255).toString(16)}function T(f){return sA(f)/255}var G=(function(){var f="[-\\+]?\\d+%?",v="[-\\+]?\\d*\\.\\d+%?",w="(?:"+v+")|(?:"+f+")",K="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",W="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?";return{CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function P(f){return!!G.CSS_UNIT.exec(f)}function $(f){f=f.replace(r,"").replace(t,"").toLowerCase();var v=!1;if(tA[f])f=tA[f],v=!0;else if(f=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=G.rgb.exec(f))?{r:w[1],g:w[2],b:w[3]}:(w=G.rgba.exec(f))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=G.hsl.exec(f))?{h:w[1],s:w[2],l:w[3]}:(w=G.hsla.exec(f))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=G.hsv.exec(f))?{h:w[1],s:w[2],v:w[3]}:(w=G.hsva.exec(f))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=G.hex8.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),a:T(w[4]),format:v?"name":"hex8"}:(w=G.hex6.exec(f))?{r:sA(w[1]),g:sA(w[2]),b:sA(w[3]),format:v?"name":"hex"}:(w=G.hex4.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),a:T(w[4]+""+w[4]),format:v?"name":"hex8"}:(w=G.hex3.exec(f))?{r:sA(w[1]+""+w[1]),g:sA(w[2]+""+w[2]),b:sA(w[3]+""+w[3]),format:v?"name":"hex"}:!1}function pA(f){var v,w;return f=f||{level:"AA",size:"small"},v=(f.level||"AA").toUpperCase(),w=(f.size||"small").toLowerCase(),v!=="AA"&&v!=="AAA"&&(v="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:v,size:w}}A.exports?A.exports=c:window.tinycolor=c})(Math)})(Dr)),Dr.exports}var fl=dl();const SA=Rs(fl);var Re=function(){return Re=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Re.apply(this,arguments)},hl=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},wl=function(A){A===void 0&&(A="");var e={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,spacedRgbColor:/^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})\s+\/\s+([0-1](\.\d+)?)/,rgbaColor:/^rgba/i,hslColor:/^hsl/i,hsvColor:/^hsv/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/};function r(I){var j=new Error(A+": "+I);throw j}function t(I){A=A.substr(I)}function n(I){var j=/^[\n\r\t\s]+/.exec(A);j&&t(j[0].length);var _=I.exec(A);return _&&t(_[0].length),_}function a(I){var j=I(),_=[];if(j)for(_.push(j);n(e.comma);)j=I(),j?_.push(j):r("One extra comma");return _}function s(I,j,_){var F=n(j);if(F)return{type:I,value:F[_]}}function o(){var I=s("hex",e.hexColor,1);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}var l=function(I){var j=Fe(I?.[0]);return{value:"".concat(j?"RGBA":"rgba","(").concat(a(AA),")")}};function c(I,j){var _=n(I);if(_){n(e.startCall)||r("Missing (");var F=j(_);return n(e.endCall)||r("Missing )"),F}}function g(){return c(e.hslColor,dA)}function B(){return c(e.rgbaColor,l)}function u(){return c(e.rgbColor,q)}function p(){var I=s("literal",e.literalColor,0);if(I?.value){var j=SA(I?.value).toRgb(),_=j.r,F=j.g,N=j.b,T=j.a;return{value:"rgba(".concat(_,", ").concat(F,", ").concat(N,", ").concat(T,")")}}}function Q(){return c(e.hsvColor,aA)}function C(){return o()||g()||B()||u()||p()||Q()}function x(){var I,j=C();return j||r("Expected color definition"),j.left=parseInt((I=lA())===null||I===void 0?void 0:I.value),j}function U(I,j,_){return c(j,function(){var F=_();return F&&(n(e.comma)||r("Missing comma before color stops")),{type:I,orientation:F,colorStops:a(x)}})}function y(){return h()||b()}function S(){return U("linear-gradient",e.linearGradient,y)||U("repeating-linear-gradient",e.repeatingLinearGradient,y)||U("radial-gradient",e.radialGradient,k)||U("repeating-radial-gradient",e.repeatingRadialGradient,k)}function H(){return a(S)}function L(){var I,j=H();A.length>0&&r("Invalid input not EOF");var _=j[0],F=(I=_?.colorStops)===null||I===void 0?void 0:I.filter(function(T){return Fe(T.value)}).length,N=function(){if(F>0)return _;var T=function(G,P){return P===0?br(G):bt(G)};return Re(Re({},_),{colorStops:_.colorStops.map(function(G,P){return Re(Re({},G),{value:T(G,P)})})})};return N()}function h(){return s("directional",e.sideOrCorner,1)}function b(){return s("angular",e.angleValue,1)}function k(){var I,j=M(),_;return j&&(I=[],I.push(j),_=A,n(e.comma)&&(j=M(),j?I.push(j):A=_)),I}function M(){var I=O()||Z();if(I)I.at=z();else{var j=D();if(j){I=j;var _=z();_&&(I.at=_)}else{var F=eA();F&&(I={type:"default-radial",at:F})}}return I}function R(){return s("px",e.pixelValue,1)||s("em",e.emValue,1)}function O(){var I=s("shape",/^(circle)/i,0);return I&&(I.style=R()||D()),I}function Z(){var I=s("shape",/^(ellipse)/i,0);return I&&(I.style=lA()||D()),I}function D(){return s("extent-keyword",e.extentKeywords,1)}function z(){if(s("position",/^at/,0)){var I=eA();return I||r("Missing positioning value"),I}}function eA(){var I=tA();if(I.x||I.y)return{type:"position",value:I}}function tA(){return{x:lA(),y:lA()}}function AA(){return n(e.number)[1]}var dA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],l:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},aA=function(I){var j=Fe(I?.[0]),_=a(AA),F=SA({h:_[0],s:_[1],v:_[2],a:_[3]||1}).toRgb(),N=F.r,T=F.g,G=F.b,P=F.a;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat(P,")")}},q=function(I){var j=Fe(I?.[0]),_=n(e.spacedRgbColor),F=_||hl([null],a(AA),!0),N=F[1],T=F[2],G=F[3],P=F[4],$=P===void 0?1:P;return{value:"".concat(j?"RGBA":"rgba","(").concat(N,", ").concat(T,", ").concat(G,", ").concat($,")")}};function lA(){return s("%",e.percentageValue,1)||sA()||R()}function sA(){return s("position-keyword",e.positionKeywords,1)}return L()},bt=function(A){return A.value.toLowerCase()},br=function(A){return A.value.toUpperCase()},pl=function(A,e,r){var t=A?.includes("gradient");if(t){var n=A?.includes("conic"),a=n?r:A;n&&console.log("Sorry we cant handle conic gradients yet");var s=wl(a);return s?.colorStops}else{var a=A||e;return[{value:a}]}},Ve=function(A,e,r){return isNaN(A)||A<e?e:A>r?r:A},re=function(A){return Math.round(A)},ur=function(){return ur=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ur.apply(this,arguments)},Gs=function(A){var e=A.target.parentNode.getBoundingClientRect(),r=A.target.className,t=r==="c-resize ps-rl"?15:0;return{offsetLeft:e?.x+t,offsetTop:e?.y,clientWidth:e?.width,clientHeight:e?.height}};function Pe(A,e){var r=Gs(A),t=r.offsetLeft,n=r.clientWidth,a=A.clientX-t-e/2,s=n-18,o=Ve(a,0,s);return Math.round(o/(s/100))}function Cl(A,e,r,t,n){var a=A*r-n/2,s=(100-e)/100*t-n/2;return[a,s]}var Ql=function(A){if(A.clientX)return{clientX:A.clientX,clientY:A.clientY};var e=A.touches[0]||{};return{clientX:e.clientX,clientY:e.clientY}};function ml(A,e){var r=Gs(A),t=r.offsetLeft,n=r.offsetTop,a=r.clientWidth,s=r.clientHeight,o=Ql(A),l=o.clientX,c=o.clientY,g=function(){var u=l-t-e/2;return Ve(u,-9,a-10)},B=function(){var u=c-n-e/2;return Ve(u,-9,s-10)};return[g(),B()]}var Fe=function(A){var e;return A?.[0]===((e=A?.[0])===null||e===void 0?void 0:e.toUpperCase())},js=function(A){if(A==="to top")return 0;if(A==="to bottom")return 180;if(A==="to left")return 270;if(A==="to right")return 90;if(A==="to top right")return 45;if(A==="to bottom right")return 135;if(A==="to bottom left")return 225;if(A==="to top left")return 315;var e=A||0;return parseInt(e)},vl=function(A){var e,r,t,n,a;if(typeof A=="string")return A;if(!((e=A?.type)===null||e===void 0)&&e.includes("gradient")){var s=(r=A?.colorStops)===null||r===void 0?void 0:r.sort(function(u,p){return u?.left-p?.left}),o=(t=s?.map(function(u){return"".concat(u?.value," ").concat(u?.left,"%")}))===null||t===void 0?void 0:t.join(", "),l=A?.type,c=js((n=A?.orientation)===null||n===void 0?void 0:n.value),g=l==="linear-gradient"?"".concat(c,"deg"):"circle";return"".concat(l,"(").concat(g,", ").concat(o,")")}else{var B=((a=A?.colorStops[0])===null||a===void 0?void 0:a.value)||"rgba(175, 51, 242, 1)";return B}},Ul=function(A,e){var r=A?.map(function(a,s){return ur(ur({},a),{index:s})}),t=r?.find(function(a){return Fe(a.value)}),n=t||r[0];return{currentColor:n?.value||e,selectedColor:n?.index||0,currentLeft:n?.left||0}},Fl=function(A){var e,r=A?.split(",")[0],t=(e=r?.split("(")[1])===null||e===void 0?void 0:e.replace("deg","");return js(t)},bl=function(A){var e=A?.includes("gradient"),r=A?.split("(")[0],t=Fl(A),n=r==="linear-gradient"?"".concat(t,"deg"):"circle";return{degrees:t,degreeStr:n,isGradient:e,gradientType:r}},DA=function(){return DA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},DA.apply(this,arguments)},yl=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Vs=E.createContext(null);function El(A){var e,r,t,n,a=A.value,s=A.children,o=A.onChange,l=A.isDarkMode,c=A.squareWidth,g=A.hideOpacity,B=A.showHexAlpha,u=A.squareHeight,p=A.passedConfig,Q=A.defaultStyles,C=A.pickerIdSuffix,x={barSize:(e=p.barSize)!==null&&e!==void 0?e:St.barSize,crossSize:(r=p.crossSize)!==null&&r!==void 0?r:St.crossSize,defaultColor:(t=p.defaultColor)!==null&&t!==void 0?t:St.defaultColor,defaultGradient:(n=p.defaultGradient)!==null&&n!==void 0?n:St.defaultGradient},U=pl(a,x.defaultColor,x.defaultGradient),y=bl(a),S=y.degrees,H=y.degreeStr,L=y.isGradient,h=y.gradientType,b=Ul(U,x.defaultGradient),k=b.currentColor,M=b.selectedColor,R=b.currentLeft,O=E.useState("rgb"),Z=O[0],D=O[1],z=E.useState({}),eA=z[0],tA=z[1],AA=SA(k),dA=AA.toRgb(),aA=AA.toHsv(),q=E.useState(DA(DA({},dA),aA)),lA=q[0],sA=q[1];E.useEffect(function(){aA?.s===0?sA(DA(DA(DA({},dA),aA),{h:lA?.h})):sA(DA(DA({},dA),aA))},[k]);var I=function(T){var G=T.sort(function(pA,f){return pA.left-f.left}),P=G?.map(function(pA){return"".concat(pA?.value," ").concat(pA.left,"%")}),$="".concat(h,"(").concat(H,", ").concat(P.join(", "),")");tA(DA(DA({},eA),{gradient:$})),o($)},j=function(T,G){var P=U?.filter(function(pA){return!Fe(pA.value)}),$=yl([{value:T.toUpperCase(),left:G??R}],P,!0);I($)},_=function(T){L?j(T):(tA(DA(DA({},eA),{color:T})),o(T))},F=function(){if(U?.length>2){var T=U?.map(function(P,$){return DA(DA({},P),{value:$===M-1?br(P):bt(P)})}),G=T?.filter(function(P,$){return $!==M});I(G)}},N={hc:lA,setHc:sA,value:a,colors:U,config:x,degrees:S,onChange:o,previous:eA,inputType:Z,tinyColor:AA,isDarkMode:l,isGradient:L,squareWidth:c,hideOpacity:g,currentLeft:R,deletePoint:F,showHexAlpha:B,squareHeight:u,setInputType:D,gradientType:h,handleChange:_,currentColor:k,selectedColor:M,defaultStyles:Q,handleGradient:j,pickerIdSuffix:C,createGradientStr:I};return m.createElement(Vs.Provider,{value:N},s)}function BA(){var A=E.useContext(Vs);if(!A)throw new Error("usePicker has to be used within <PickerContext.Provider>");return A}var St={barSize:18,crossSize:18,defaultColor:"rgba(175, 51, 242, 1)",defaultGradient:"linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%)"},xl=function(A,e){E.useEffect(function(){var r,t=(r=A?.current)===null||r===void 0?void 0:r.getContext("2d",{willReadFrequently:!0});if(t){t.rect(0,0,e,14);for(var n=t.createLinearGradient(0,0,e,0),a=0;a<=360;a+=30)n.addColorStop(a/360,"hsl(".concat(a,", 100%, 50%)"));t.fillStyle=n,t.fill()}},[A,e])},Il=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(o,"%, ").concat(r,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Hl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10)s.addColorStop(o/100,"hsl(".concat(e,", ").concat(r,"%, ").concat(o,"%)"));a.fillStyle=s,a.fill()}},[A,e,r,t])},Sl=function(A,e,r,t){E.useEffect(function(){var n,a=(n=A?.current)===null||n===void 0?void 0:n.getContext("2d",{willReadFrequently:!0});if(a){a.rect(0,0,t,14);for(var s=a.createLinearGradient(0,0,t,0),o=0;o<=100;o+=10){var l=SA({h:e,s:r,v:o});s.addColorStop(o/100,l.toHslString())}a.fillStyle=s,a.fill()}},[A,e,r,t])},Br=function(){return Br=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Br.apply(this,arguments)},Ll=function(){var A=E.useRef(null),e=BA(),r=e.config,t=e.handleChange,n=e.squareWidth,a=e.hc,s=e.setHc,o=e.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=r.barSize;xl(A,n);var u=function(){g(!1)},p=function(){g(!0)},Q=function(U){var y=Pe(U,B)*3.6,S=SA({h:y,s:a?.s,v:a?.v}),H=S.toRgb(),L=H.r,h=H.g,b=H.b;t("rgba(".concat(L,", ").concat(h,", ").concat(b,", ").concat(a.a,")")),s(Br(Br({},a),{h:y}))},C=function(U){c&&Q(U)},x=function(U){c||Q(U)};return E.useEffect(function(){var U=function(){u()};return window.addEventListener("mouseup",U),function(){window.removeEventListener("mouseup",U)}},[]),m.createElement("div",{style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},onMouseMove:function(U){return C(U)},id:"rbgcp-hue-wrap".concat(o)},m.createElement("div",{tabIndex:0,role:"button",style:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 10ms linear",position:"absolute",left:a?.h*((n-18)/360),top:-2,cursor:"ew-resize",boxSizing:"border-box"},onMouseDown:p,id:"rbgcp-hue-handle".concat(o)}),m.createElement("canvas",{ref:A,height:"14px",width:"".concat(n,"px"),onClick:function(U){return x(U)},id:"rbgcp-hue-bar".concat(o),style:{borderRadius:14,position:"relative",verticalAlign:"top"}}))};function kl(A,e,r){var t=0,n=0,a=0,s=0;if(A===null||e===null||r===null||isNaN(A)||isNaN(e)||isNaN(r))return console.log("Please enter numeric RGB values!"),{c:0,m:0,k:0,y:1};if(A<0||e<0||r<0||A>255||e>255||r>255)return console.log("RGB values must be in the range 0 to 255."),{c:0,m:0,k:0,y:1};if(A===0&&e===0&&r===0)return s=1,{c:0,m:0,k:0,y:1};t=1-A/255,n=1-e/255,a=1-r/255;var o=Math.min(t,Math.min(n,a));return t=(t-o)/(1-o),n=(n-o)/(1-o),a=(a-o)/(1-o),s=o,{c:t,m:n,y:a,k:s}}var Ml=function(A){var e=A.c,r=A.m,t=A.y,n=A.k,a=255*(1-e)*(1-n),s=255*(1-r)*(1-n),o=255*(1-t)*(1-n);return{r:a,g:s,b:o}},Kl=function(A){return typeof A!="number"?"FF":A<0?"00":A>1?"FF":Math.round(A*255).toString(16).padStart(2,"0").toUpperCase()},YA=function(){return YA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},YA.apply(this,arguments)},GA=function(A){var e=A.label,r=A.value,t=A.callback,n=A.max,a=n===void 0?100:n,s=A.hideOpacity,o=A.defaultStyles,l=A.pickerIdSuffix,c=E.useState(r),g=c[0],B=c[1],u=s?"25%":"20%";E.useEffect(function(){B(r)},[r]);var p=function(Q){var C=Ve(parseFloat(Q.target.value),0,a);B(C),t(C)};return m.createElement("div",{style:{width:u,flexShrink:1},id:"rbgcp-".concat(e,"-input-wrapper").concat(l)},m.createElement("input",{value:g,onChange:function(Q){return p(Q)},style:YA({},o.rbgcpInput),id:"rbgcp-".concat(e,"-input").concat(l)}),m.createElement("div",{style:YA({},o.rbgcpInputLabel)},e))},Tl=function(A){var e=A.opacity,r=A.tinyColor,t=A.showHexAlpha,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=E.useState(""),l=o[0],c=o[1],g=r.toHex(),B=E.useState(g),u=B[0],p=B[1];E.useEffect(function(){l!=="hex"&&p(g)},[r,l,g]);var Q=function(){c("hex")},C=function(){c("")},x=function(H){var L=SA(H.target.value);if(p(H.target.value),L.isValid()){var h=L.toRgb(),b=h.r,k=h.g,M=h.b,R="rgba(".concat(b,", ").concat(k,", ").concat(M,", ").concat(e,")");n(R)}},U=t?"".concat(u).concat(Kl(e)):u,y=t?"HEXA":"HEX",S=t?88:76;return m.createElement("div",{style:{width:S,flexShrink:0},id:"rbgcp-hex-input-wrapper".concat(s)},m.createElement("input",{onBlur:C,onFocus:Q,onChange:function(H){return x(H)},value:U?.toUpperCase(),id:"rbgcp-hex-input".concat(s),style:YA(YA({},a.rbgcpInput),a.rbgcpHexInput)}),m.createElement("div",{style:YA({},a.rbgcpInputLabel)},y))},Dl=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=o.r,c=o.g,g=o.b;t("rgba(".concat(l,", ").concat(c,", ").concat(g,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"R",max:255,value:e?.r,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:o,g:e?.g,b:e?.b})}}),m.createElement(GA,{label:"G",max:255,value:e?.g,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:o,b:e?.b})}}),m.createElement(GA,{label:"B",max:255,value:e?.b,hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(o){return s({r:e?.r,g:e?.g,b:o})}}))},Ol=function(A){var e=A.hc,r=A.setHc,t=A.tinyColor,n=A.hideOpacity,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=t.toHsl(),c=l.s,g=l.l,B=function(p,Q,C){var x=SA({h:p,s:Q,l:C}).toRgb(),U=x.r,y=x.g,S=x.b;a("rgba(".concat(U,", ").concat(y,", ").concat(S,", ").concat(e?.a,")")),r(YA(YA({},e),{h:p}))},u=function(p){var Q=SA(p).toRgb(),C=Q.r,x=Q.g,U=Q.b;a("rgba(".concat(C,", ").concat(x,", ").concat(U,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return B(p,c,g)}}),m.createElement(GA,{label:"S",value:re(c*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:p,l:g})}}),m.createElement(GA,{label:"L",value:re(g*100),hideOpacity:n,defaultStyles:s,pickerIdSuffix:o,callback:function(p){return u({h:e?.h,s:c,l:p})}}))},Rl=function(A){var e=A.hc,r=A.setHc,t=A.hideOpacity,n=A.handleChange,a=A.defaultStyles,s=A.pickerIdSuffix,o=function(c,g,B){var u=SA({h:c,s:g,v:B}).toRgb(),p=u.r,Q=u.g,C=u.b;n("rgba(".concat(p,", ").concat(Q,", ").concat(C,", ").concat(e?.a,")")),r(YA(YA({},e),{h:c}))},l=function(c){var g=SA(c).toRgb(),B=g.r,u=g.g,p=g.b;n("rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"H",max:360,value:re(e?.h),hideOpacity:t,defaultStyles:a,pickerIdSuffix:s,callback:function(c){return o(c,e?.s,e?.v)}}),m.createElement(GA,{label:"S",hideOpacity:t,value:re(e?.s*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:c,v:e?.v})}}),m.createElement(GA,{label:"V",hideOpacity:t,value:re(e?.v*100),defaultStyles:a,pickerIdSuffix:s,callback:function(c){return l({h:e?.h,s:e?.s,v:c})}}))},Nl=function(A){var e=A.hc,r=A.hideOpacity,t=A.handleChange,n=A.defaultStyles,a=A.pickerIdSuffix,s=kl(e?.r,e?.g,e?.b),o=s.c,l=s.m,c=s.y,g=s.k,B=function(u){var p=Ml(u),Q=p.r,C=p.g,x=p.b;t("rgba(".concat(Q,", ").concat(C,", ").concat(x,", ").concat(e?.a,")"))};return m.createElement(m.Fragment,null,m.createElement(GA,{label:"C",value:re(o*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:u/100,m:l,y:c,k:g})}}),m.createElement(GA,{label:"M",value:re(l*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:u/100,y:c,k:g})}}),m.createElement(GA,{label:"Y",value:re(c*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:u/100,k:g})}}),m.createElement(GA,{label:"K",value:re(g*100),hideOpacity:r,defaultStyles:n,pickerIdSuffix:a,callback:function(u){return B({c:o,m:l,y:c,k:u/100})}}))},_l=function(){var A=BA(),e=A.hc,r=A.setHc,t=A.inputType,n=A.tinyColor,a=A.hideOpacity,s=A.showHexAlpha,o=A.handleChange,l=A.defaultStyles,c=A.pickerIdSuffix;return m.createElement("div",{style:YA({columnGap:6,paddingTop:14,display:"flex",justifyContent:"space-between"},l.rbgcpInputsWrap),id:"rbgcp-inputs-wrap".concat(c)},t!=="cmyk"&&m.createElement(Tl,{opacity:e?.a,tinyColor:n,showHexAlpha:s,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsl"&&m.createElement(Ol,{hc:e,setHc:r,tinyColor:n,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="rgb"&&m.createElement(Dl,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="hsv"&&m.createElement(Rl,{hc:e,setHc:r,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),t==="cmyk"&&m.createElement(Nl,{hc:e,hideOpacity:a,handleChange:o,defaultStyles:l,pickerIdSuffix:c}),!a&&m.createElement(GA,{label:"A",hideOpacity:a,defaultStyles:l,value:Math.round(e?.a*100),pickerIdSuffix:c,callback:function(g){return o("rgba(".concat(e?.r,", ").concat(e?.g,", ").concat(e?.b,", ").concat(g/100,")"))}}))},Gl=function(A,e,r,t){E.useEffect(function(){if(A.current){var n=A.current.getContext("2d",{willReadFrequently:!0});if(n){n.fillStyle="hsl(".concat(e,", 100%, 50%)"),n.fillRect(0,0,r,t);var a=n.createLinearGradient(0,0,r,0);a.addColorStop(0,"rgba(255, 255, 255, 1)"),a.addColorStop(1,"rgba(255, 255, 255, 0)"),n.fillStyle=a,n.fillRect(0,0,r,t);var s=n.createLinearGradient(0,0,0,t);s.addColorStop(0,"rgba(0, 0, 0, 0)"),s.addColorStop(1,"rgba(0, 0, 0, 1)"),n.fillStyle=s,n.fillRect(0,0,r,t)}}},[A,e,r,t])},Or,la;function jl(){if(la)return Or;la=1;var A="Expected a function",e=NaN,r="[object Symbol]",t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,l=typeof xt=="object"&&xt&&xt.Object===Object&&xt,c=typeof self=="object"&&self&&self.Object===Object&&self,g=l||c||Function("return this")(),B=Object.prototype,u=B.toString,p=Math.max,Q=Math.min,C=function(){return g.Date.now()};function x(h,b,k){var M,R,O,Z,D,z,eA=0,tA=!1,AA=!1,dA=!0;if(typeof h!="function")throw new TypeError(A);b=L(b)||0,y(k)&&(tA=!!k.leading,AA="maxWait"in k,O=AA?p(L(k.maxWait)||0,b):O,dA="trailing"in k?!!k.trailing:dA);function aA(T){var G=M,P=R;return M=R=void 0,eA=T,Z=h.apply(P,G),Z}function q(T){return eA=T,D=setTimeout(I,b),tA?aA(T):Z}function lA(T){var G=T-z,P=T-eA,$=b-G;return AA?Q($,O-P):$}function sA(T){var G=T-z,P=T-eA;return z===void 0||G>=b||G<0||AA&&P>=O}function I(){var T=C();if(sA(T))return j(T);D=setTimeout(I,lA(T))}function j(T){return D=void 0,dA&&M?aA(T):(M=R=void 0,Z)}function _(){D!==void 0&&clearTimeout(D),eA=0,M=z=R=D=void 0}function F(){return D===void 0?Z:j(C())}function N(){var T=C(),G=sA(T);if(M=arguments,R=this,z=T,G){if(D===void 0)return q(z);if(AA)return D=setTimeout(I,b),aA(z)}return D===void 0&&(D=setTimeout(I,b)),Z}return N.cancel=_,N.flush=F,N}function U(h,b,k){var M=!0,R=!0;if(typeof h!="function")throw new TypeError(A);return y(k)&&(M="leading"in k?!!k.leading:M,R="trailing"in k?!!k.trailing:R),x(h,b,{leading:M,maxWait:b,trailing:R})}function y(h){var b=typeof h;return!!h&&(b=="object"||b=="function")}function S(h){return!!h&&typeof h=="object"}function H(h){return typeof h=="symbol"||S(h)&&u.call(h)==r}function L(h){if(typeof h=="number")return h;if(H(h))return e;if(y(h)){var b=typeof h.valueOf=="function"?h.valueOf():h;h=y(b)?b+"":b}if(typeof h!="string")return h===0?h:+h;h=h.replace(t,"");var k=a.test(h);return k||s.test(h)?o(h.slice(2),k?2:8):n.test(h)?e:+h}return Or=U,Or}var Vl=jl();const Pl=Rs(Vl);var be=function(){return be=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},be.apply(this,arguments)},Xl=function(){var A,e,r=BA(),t=r.hc,n=r.config,a=r.squareWidth,s=r.squareHeight,o=r.handleChange,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.crossSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useRef(null),C=Cl(t?.s,t?.v*100,a,s,g),x=C[0],U=C[1],y=E.useState({x,y:U}),S=y[0],H=y[1];Gl(Q,t?.h,a,s),E.useEffect(function(){u||H({x:t?.v===0?S.x:x,y:U})},[x,U]);var L=function(O){var Z=Pl(function(){var D=ml(O,g),z=D[0],eA=D[1];if(z&&eA){var tA=Math.min(z+g/2,a-1),AA=Math.min(eA+g/2,s-1),dA=tA/a*100,aA=100-AA/s*100;H({x:aA===0?S?.x:z,y:eA});var q=SA("hsva(".concat(t?.h,", ").concat(dA,"%, ").concat(aA,"%, ").concat(t?.a,")"));o(q.toRgbString())}},250);Z()},h=function(){p(!1)},b=function(O){u&&L(O)},k=function(O){u||L(O)},M=function(){p(!0)},R=function(O){p(!0),L(O)};return E.useEffect(function(){var O=function(){h()};return window.addEventListener("mouseup",O),function(){window.removeEventListener("mouseup",O)}},[]),m.createElement("div",{style:{position:"relative",marginBottom:12},id:"rbgcp-square-wrapper".concat(c)},m.createElement("div",{onMouseUp:h,onTouchEnd:h,onMouseDown:R,onTouchStart:R,onMouseMove:function(O){return b(O)},id:"rbgcp-square".concat(c),style:{position:"relative",cursor:"ew-cross"}},m.createElement("div",{style:be(be(be({},l.rbgcpHandle),{transform:"translate(".concat((A=S?.x)!==null&&A!==void 0?A:0,"px, ").concat((e=S?.y)!==null&&e!==void 0?e:0,"px)")}),u?{transition:""}:{}),onMouseDown:M,id:"rbgcp-square-handle".concat(c)}),m.createElement("div",{style:be(be({},l.rbgcpCanvasWrapper),{height:s}),id:"rbgcp-square-canvas-wrapper".concat(c),onClick:function(O){return k(O)}},m.createElement("canvas",{ref:Q,width:"".concat(a,"px"),height:"".concat(s,"px"),id:"rbgcp-square-canvas".concat(c)}))))},ue=function(){return ue=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ue.apply(this,arguments)},Jl=function(){var A=BA(),e=A.config,r=A.hc,t=r===void 0?{}:r,n=A.squareWidth,a=A.handleChange,s=A.defaultStyles,o=A.pickerIdSuffix,l=E.useState(!1),c=l[0],g=l[1],B=t.r,u=t.g,p=t.b,Q="linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(".concat(B,",").concat(u,",").concat(p,",.5) 100%)"),C=e.barSize,x=function(){g(!1)},U=function(){g(!0)},y=function(h){var b=Pe(h,C)/100,k="rgba(".concat(B,", ").concat(u,", ").concat(p,", ").concat(b,")");a(k)},S=function(h){c&&y(h)},H=function(h){c||y(h)},L=n-18;return E.useEffect(function(){var h=function(){x()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{onMouseDown:U,onMouseMove:function(h){return S(h)},style:{height:14,marginTop:17,marginBottom:4,cursor:"ew-resize",position:"relative"},id:"rbgcp-opacity-wrapper".concat(o)},m.createElement("div",{id:"rbgcp-opacity-checkered-bg".concat(o),style:ue(ue({},s.rbgcpCheckered),{width:"100%",height:14})}),m.createElement("div",{id:"rbgcp-opacity-handle".concat(o),style:ue(ue({},s.rbgcpHandle),{left:L*t?.a,top:-2})}),m.createElement("div",{style:ue(ue({},s.rbgcpOpacityOverlay),{background:Q}),id:"rbgcp-opacity-overlay".concat(o),onClick:function(h){return H(h)}}))},Wl={CONTROLS:{SOLID:"Solid",GRADIENT:"Gradient"}},Yl=["rgba(0,0,0,1)","rgba(128,128,128, 1)","rgba(192,192,192, 1)","rgba(255,255,255, 1)","rgba(0,0,128,1)","rgba(0,0,255,1)","rgba(0,255,255, 1)","rgba(0,128,0,1)","rgba(128,128,0, 1)","rgba(0,128,128,1)","rgba(0,255,0, 1)","rgba(128,0,0, 1)","rgba(128,0,128, 1)","rgba(175, 51, 242, 1)","rgba(255,0,255, 1)","rgba(255,0,0, 1)","rgba(240, 103, 46, 1)","rgba(255,255,0, 1)"],Zl=function(A){var e=A.presets,r=e===void 0?[]:e,t=BA(),n=t.value,a=t.onChange,s=t.isDarkMode,o=t.squareWidth,l=t.handleChange,c=t.pickerIdSuffix,g=function(){return r?.length>0?r?.slice(0,18):Yl},B=function(p){p?.includes("gradient")?a(p):l(p)},u=function(p){if(!p||s)return"";var Q=p?.replace(" ","");return Q==="rgba(255,255,255,1)"?"1px solid #96959c":""};return m.createElement("div",{style:{marginTop:14,display:"flex",justifyContent:"space-between"},id:"rbgcp-footer-wrapper".concat(c)},m.createElement("div",{style:{width:50,height:50,flexShrink:0,borderRadius:6,background:n,border:u(n)},id:"rbgcp-preview".concat(c)}),m.createElement("div",{style:{rowGap:3,display:"flex",flexWrap:"wrap",width:o-57,justifyContent:"space-between"},id:"rbgcp-presets-wrapper".concat(c)},g().map(function(p,Q){return m.createElement("div",{key:"".concat(p,"-").concat(Q),id:"rbgcp-preset-".concat(Q,"-wrapper").concat(c),style:{width:"calc(100% / 9)",paddingLeft:3}},m.createElement("div",{style:{height:23.5,width:"100%",background:p,borderRadius:4,border:u(p)},onClick:function(){return B(p)},id:"rbgcp-preset-".concat(Q).concat(c)}))})))},Y=function(){return Y=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Y.apply(this,arguments)},zl=function(){var A=BA().defaultStyles,e={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y({},e),A.rbgcpControlIcon),points:"17.96 4.31 2.04 4.3 3.75 4.3 4.81 17.29 5.16 17.96 5.74 18.47 6.59 18.62 13.64 18.62 14.52 18.32 15.07 17.68 15.29 17.12 16.28 4.3 12.87 4.3 12.87 2.38 12.48 1.75 11.83 1.46 8.4 1.46 7.64 1.68 7.26 2.21 7.16 2.52 7.17 4.23"}))},ql=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:14}},m.createElement("polyline",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"0.9 12.73 0.9 19.1 7.27 19.1 0.9 19.1 19.1 0.9 12.73 0.9 19.1 0.9 19.1 7.27"}))},$l=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"9"}),m.createElement("circle",{style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),cx:"10",cy:"10",r:"5"}))},Ac=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"},a={strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"3.74 2.75 3.74 12.69 0.9 12.71 6.59 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"3.74",y1:"17.26",x2:"3.74",y2:"15.21"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.1 17.25 10.1 7.31 12.95 7.29 7.26 7.29"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"10.1",y1:"2.74",x2:"10.1",y2:"4.79"}),m.createElement("polyline",{fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"16.26 2.75 16.26 12.69 13.41 12.71 19.1 12.71"}),m.createElement("line",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},a),r.rbgcpControlIcon),t&&{stroke:t,fill:t}),x1:"16.26",y1:"17.26",x2:"16.26",y2:"15.21"}))},ec=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M6.35,2.72a4.85,4.85,0,0,1,1.86.16,7.94,7.94,0,0,1,.88.43,3.66,3.66,0,0,0,.85.49c.25,0,.58-.27.81-.39A8.25,8.25,0,0,1,11.7,3a4,4,0,0,1,1.79-.23,3.21,3.21,0,0,0-1.34.09,6.39,6.39,0,0,0-1.47.63c-.45.25-.7.3-.7.86s0,1.18,0,1.78c0,1.3,0,2.61,0,3.92h0v5.63a2.46,2.46,0,0,1,0,.47c-.07.28-.43.42-.7.57a5.29,5.29,0,0,1-2.94.61A9.3,9.3,0,0,0,8,17.15l1.09-.37.89-.52c.06,0,.48.21.56.25.32.14.64.27,1,.38a8.54,8.54,0,0,0,2.12.4"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M7.57,5.73C6,5.7,4.5,5.65,3,5.77a2.28,2.28,0,0,0-1.76.74A2.3,2.3,0,0,0,.94,7.83l0,3.82A4.73,4.73,0,0,0,1,12.9a1.64,1.64,0,0,0,.68,1,2.44,2.44,0,0,0,1,.27,25,25,0,0,0,4.74.09"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),d:"M12.43,14.32a44.12,44.12,0,0,0,4.6,0,2.24,2.24,0,0,0,1.76-.74,2.29,2.29,0,0,0,.27-1.32l0-3.81A4.81,4.81,0,0,0,19,7.15a1.62,1.62,0,0,0-.68-1,2.31,2.31,0,0,0-1-.28,26.8,26.8,0,0,0-4.74-.09"}))},tc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={strokeMiterlimit:10,strokeWidth:"0.5px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:17}},m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"9.36",cy:"5.07",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"13.93",cy:"6.91",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.8",cy:"7.55",r:"1.71"}),m.createElement("circle",{style:Y(Y({},r.rbgcpControlIcon2),t&&{fill:t}),cx:"5.45",cy:"12.04",r:"1.71"}),m.createElement("path",{style:Y(Y(Y(Y({},n),r.rbgcpControlIcon),r.rbgcpControlIcon2),t&&{fill:t,stroke:t}),d:"M19.1,10c0,3.58-2.12,2.94-4.06,2.35-1.15-.34-2.24-.67-2.77-.08-.68.78-.54,2.07-.39,3.33.2,1.79.39,3.5-1.88,3.5A9.1,9.1,0,1,1,19.1,10ZM10,18c.7,0,.74-.19.75-.2a2.67,2.67,0,0,0,.07-1.27c0-.19,0-.42-.06-.67-.06-.53-.13-1.15-.14-1.67a3.82,3.82,0,0,1,.8-2.63,2.14,2.14,0,0,1,1.45-.7,4.36,4.36,0,0,1,1.32.12c.39.08.8.21,1.16.32h0c.39.12.74.23,1.08.3.74.17,1,.1,1.13,0S18,11.32,18,10a8,8,0,1,0-8,8Z"}))},rc=function(A){var e=A.color,r=BA().defaultStyles,t=e??"",n={fill:"none",strokeMiterlimit:10,strokeWidth:"1.8px"};return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:15}},m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"13.86 2.01 1.7 16.99 18.77 16.99"}),m.createElement("polyline",{strokeLinecap:"round",style:Y(Y(Y({},n),r.rbgcpControlIcon),t&&{stroke:t}),points:"10.96 16.38 10.96 16.38 10.74 15.7 10.44 14.97 10.06 14.21 9.72 13.63 9.21 12.89 8.85 12.44 8.41 11.95 7.91 11.45 7.51 11.1"}))},nc=function(){var A=BA().defaultStyles;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:20,marginRight:1}},m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M2.39,8c-.63,0-1,.21-1,.63A.49.49,0,0,0,1.67,9a6.48,6.48,0,0,0,1.11.43A3,3,0,0,1,4,10.09a1.47,1.47,0,0,1,.35,1.09,1.75,1.75,0,0,1-.57,1.42,2.21,2.21,0,0,1-1.48.48,8.32,8.32,0,0,1-1.68-.21l-.31-.06.12-.94a13.7,13.7,0,0,0,1.8.16c.61,0,.92-.26.92-.77a.52.52,0,0,0-.21-.44,3.13,3.13,0,0,0-.85-.34A3.32,3.32,0,0,1,.66,9.79a1.43,1.43,0,0,1-.42-1.1A1.6,1.6,0,0,1,.78,7.36a2.32,2.32,0,0,1,1.49-.44,10.46,10.46,0,0,1,1.64.17l.32.07-.1.95C3.31,8,2.73,8,2.39,8Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M4.79,8.09V7H9.16V8.09H7.59V13H6.38V8.09Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M14,12.34a2.25,2.25,0,0,1-1.91.74,2.24,2.24,0,0,1-1.91-.74A3.85,3.85,0,0,1,9.61,10a4,4,0,0,1,.56-2.34,2.2,2.2,0,0,1,1.91-.77A2.21,2.21,0,0,1,14,7.69,4,4,0,0,1,14.55,10,3.85,3.85,0,0,1,14,12.34Zm-2.88-.77a1,1,0,0,0,1,.46,1,1,0,0,0,1-.46A3.25,3.25,0,0,0,13.3,10,3.45,3.45,0,0,0,13,8.46a1,1,0,0,0-1-.49,1,1,0,0,0-1,.49A3.43,3.43,0,0,0,10.85,10,3.38,3.38,0,0,0,11.11,11.57Z"}),m.createElement("path",{style:Y({},A.rbgcpControlIcon2),d:"M17.77,11.24h-1V13H15.58V7h2.19a1.85,1.85,0,0,1,2.11,2.07,2.21,2.21,0,0,1-.54,1.6A2.07,2.07,0,0,1,17.77,11.24Zm-1-1h1c.6,0,.9-.37.9-1.12a1.18,1.18,0,0,0-.22-.79.88.88,0,0,0-.68-.24h-1Z"}))},ac=function(A){var e,r=A.children,t="id"+Math.random().toString(16).slice(2),n=E.useRef((e=document.getElementById(t))!==null&&e!==void 0?e:document.createElement("div")),a=E.useState(!n.current.parentElement)[0];return E.useEffect(function(){var s=n.current;return a&&(n.current.id=t,document.body.appendChild(n.current)),function(){a&&s.parentElement&&s.parentElement.removeChild(s)}},[t]),uo.createPortal(r,n.current)};const sc=E.memo(ac);var pn=function(A,e){return pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},pn(A,e)};function qA(A,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pn(A,e);function r(){this.constructor=A}A.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Cn=function(){return Cn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Cn.apply(this,arguments)};function OA(A,e,r,t){function n(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(g){try{c(t.next(g))}catch(B){s(B)}}function l(g){try{c(t.throw(g))}catch(B){s(B)}}function c(g){g.done?a(g.value):n(g.value).then(o,l)}c((t=t.apply(A,[])).next())})}function kA(A,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(g){return l([c,g])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(A,r)}catch(g){c=[6,g],n=0}finally{t=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Lt(A,e,r){if(arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||e)}var le=(function(){function A(e,r,t,n){this.left=e,this.top=r,this.width=t,this.height=n}return A.prototype.add=function(e,r,t,n){return new A(this.left+e,this.top+r,this.width+t,this.height+n)},A.fromClientRect=function(e,r){return new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},A.fromDOMRectList=function(e,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A})(),yr=function(A,e){return le.fromClientRect(A,e.getBoundingClientRect())},ic=function(A){var e=A.body,r=A.documentElement;if(!e||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),n=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new le(0,0,t,n)},Er=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},bA=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var kt=0;kt<ca.length;kt++)oc[ca.charCodeAt(kt)]=kt;var ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",et=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mt=0;Mt<ga.length;Mt++)et[ga.charCodeAt(Mt)]=Mt;var lc=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=et[A.charCodeAt(t)],s=et[A.charCodeAt(t+1)],o=et[A.charCodeAt(t+2)],l=et[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},cc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},gc=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},Ie=5,Pn=11,Rr=2,uc=Pn-Ie,Ps=65536>>Ie,Bc=1<<Ie,Nr=Bc-1,dc=1024>>Ie,fc=Ps+dc,hc=fc,wc=32,pc=hc+wc,Cc=65536>>Pn,Qc=1<<uc,mc=Qc-1,ua=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},vc=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},Uc=function(A,e){var r=lc(A),t=Array.isArray(r)?gc(r):new Uint32Array(r),n=Array.isArray(r)?cc(r):new Uint16Array(r),a=24,s=ua(n,a/2,t[4]/2),o=t[5]===2?ua(n,(a+t[4])/2):vc(t,Math.ceil((a+t[4])/4));return new Fc(t[0],t[1],t[2],t[3],s,o)},Fc=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>Ie],r=(r<<Rr)+(e&Nr),this.data[r];if(e<=65535)return r=this.index[Ps+(e-55296>>Ie)],r=(r<<Rr)+(e&Nr),this.data[r];if(e<this.highStart)return r=pc-Cc+(e>>Pn),r=this.index[r],r+=e>>Ie&mc,r=this.index[r],r=(r<<Rr)+(e&Nr),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kt=0;Kt<Ba.length;Kt++)bc[Ba.charCodeAt(Kt)]=Kt;var yc="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",da=50,Ec=1,Xs=2,Js=3,xc=4,Ic=5,fa=7,Ws=8,ha=9,de=10,Qn=11,wa=12,mn=13,Hc=14,tt=15,vn=16,Tt=17,Ze=18,Sc=19,pa=20,Un=21,ze=22,_r=23,Se=24,jA=25,rt=26,nt=27,Le=28,Lc=29,ye=30,kc=31,Dt=32,Ot=33,Fn=34,bn=35,yn=36,Ct=37,En=38,rr=39,nr=40,Gr=41,Ys=42,Mc=43,Kc=[9001,65288],Zs="!",iA="×",Rt="÷",xn=Uc(yc),se=[ye,yn],In=[Ec,Xs,Js,Ic],zs=[de,Ws],Ca=[nt,rt],Tc=In.concat(zs),Qa=[En,rr,nr,Fn,bn],Dc=[tt,mn],Oc=function(A,e){e===void 0&&(e="strict");var r=[],t=[],n=[];return A.forEach(function(a,s){var o=xn.get(a);if(o>da?(n.push(!0),o-=da):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return t.push(s),r.push(vn);if(o===xc||o===Qn){if(s===0)return t.push(s),r.push(ye);var l=r[s-1];return Tc.indexOf(l)===-1?(t.push(t[s-1]),r.push(l)):(t.push(s),r.push(ye))}if(t.push(s),o===kc)return r.push(e==="strict"?Un:Ct);if(o===Ys||o===Lc)return r.push(ye);if(o===Mc)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(Ct):r.push(ye);r.push(o)}),[t,r,n]},jr=function(A,e,r,t){var n=t[r];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var a=r;a<=t.length;){a++;var s=t[a];if(s===e)return!0;if(s!==de)break}if(n===de)for(var a=r;a>0;){a--;var o=t[a];if(Array.isArray(A)?A.indexOf(o)!==-1:A===o)for(var l=r;l<=t.length;){l++;var s=t[l];if(s===e)return!0;if(s!==de)break}if(o!==de)break}return!1},ma=function(A,e){for(var r=A;r>=0;){var t=e[r];if(t===de)r--;else return t}return 0},Rc=function(A,e,r,t,n){if(r[t]===0)return iA;var a=t-1;if(Array.isArray(n)&&n[a]===!0)return iA;var s=a-1,o=a+1,l=e[a],c=s>=0?e[s]:0,g=e[o];if(l===Xs&&g===Js)return iA;if(In.indexOf(l)!==-1)return Zs;if(In.indexOf(g)!==-1||zs.indexOf(g)!==-1)return iA;if(ma(a,e)===Ws)return Rt;if(xn.get(A[a])===Qn||(l===Dt||l===Ot)&&xn.get(A[o])===Qn||l===fa||g===fa||l===ha||[de,mn,tt].indexOf(l)===-1&&g===ha||[Tt,Ze,Sc,Se,Le].indexOf(g)!==-1||ma(a,e)===ze||jr(_r,ze,a,e)||jr([Tt,Ze],Un,a,e)||jr(wa,wa,a,e))return iA;if(l===de)return Rt;if(l===_r||g===_r)return iA;if(g===vn||l===vn)return Rt;if([mn,tt,Un].indexOf(g)!==-1||l===Hc||c===yn&&Dc.indexOf(l)!==-1||l===Le&&g===yn||g===pa||se.indexOf(g)!==-1&&l===jA||se.indexOf(l)!==-1&&g===jA||l===nt&&[Ct,Dt,Ot].indexOf(g)!==-1||[Ct,Dt,Ot].indexOf(l)!==-1&&g===rt||se.indexOf(l)!==-1&&Ca.indexOf(g)!==-1||Ca.indexOf(l)!==-1&&se.indexOf(g)!==-1||[nt,rt].indexOf(l)!==-1&&(g===jA||[ze,tt].indexOf(g)!==-1&&e[o+1]===jA)||[ze,tt].indexOf(l)!==-1&&g===jA||l===jA&&[jA,Le,Se].indexOf(g)!==-1)return iA;if([jA,Le,Se,Tt,Ze].indexOf(g)!==-1)for(var B=a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if([nt,rt].indexOf(g)!==-1)for(var B=[Tt,Ze].indexOf(l)!==-1?s:a;B>=0;){var u=e[B];if(u===jA)return iA;if([Le,Se].indexOf(u)!==-1)B--;else break}if(En===l&&[En,rr,Fn,bn].indexOf(g)!==-1||[rr,Fn].indexOf(l)!==-1&&[rr,nr].indexOf(g)!==-1||[nr,bn].indexOf(l)!==-1&&g===nr||Qa.indexOf(l)!==-1&&[pa,rt].indexOf(g)!==-1||Qa.indexOf(g)!==-1&&l===nt||se.indexOf(l)!==-1&&se.indexOf(g)!==-1||l===Se&&se.indexOf(g)!==-1||se.concat(jA).indexOf(l)!==-1&&g===ze&&Kc.indexOf(A[o])===-1||se.concat(jA).indexOf(g)!==-1&&l===Ze)return iA;if(l===Gr&&g===Gr){for(var p=r[a],Q=1;p>0&&(p--,e[p]===Gr);)Q++;if(Q%2!==0)return iA}return l===Dt&&g===Ot?iA:Rt},Nc=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=Oc(A,e.lineBreak),t=r[0],n=r[1],a=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(o){return[jA,ye,Ys].indexOf(o)!==-1?Ct:o}));var s=e.wordBreak==="keep-all"?a.map(function(o,l){return o&&A[l]>=19968&&A[l]<=40959}):void 0;return[t,n,s]},_c=(function(){function A(e,r,t,n){this.codePoints=e,this.required=r===Zs,this.start=t,this.end=n}return A.prototype.slice=function(){return bA.apply(void 0,this.codePoints.slice(this.start,this.end))},A})(),Gc=function(A,e){var r=Er(A),t=Nc(r,e),n=t[0],a=t[1],s=t[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var g=iA;c<o&&(g=Rc(r,a,n,++c,s))===iA;);if(g!==iA||c===o){var B=new _c(r,g,l,c);return l=c,{value:B,done:!1}}return{done:!0,value:null}}}},jc=1,Vc=2,yt=4,va=8,dr=10,Ua=47,ct=92,Pc=9,Xc=32,Nt=34,qe=61,Jc=35,Wc=36,Yc=37,_t=39,Gt=40,$e=41,Zc=95,_A=45,zc=33,qc=60,$c=62,Ag=64,eg=91,tg=93,rg=61,ng=123,jt=63,ag=125,Fa=124,sg=126,ig=128,ba=65533,Vr=42,xe=43,og=44,lg=58,cg=59,Qt=46,gg=0,ug=8,Bg=11,dg=14,fg=31,hg=127,$A=-1,qs=48,$s=97,Ai=101,wg=102,pg=117,Cg=122,ei=65,ti=69,ri=70,Qg=85,mg=90,MA=function(A){return A>=qs&&A<=57},vg=function(A){return A>=55296&&A<=57343},ke=function(A){return MA(A)||A>=ei&&A<=ri||A>=$s&&A<=wg},Ug=function(A){return A>=$s&&A<=Cg},Fg=function(A){return A>=ei&&A<=mg},bg=function(A){return Ug(A)||Fg(A)},yg=function(A){return A>=ig},Vt=function(A){return A===dr||A===Pc||A===Xc},fr=function(A){return bg(A)||yg(A)||A===Zc},ya=function(A){return fr(A)||MA(A)||A===_A},Eg=function(A){return A>=gg&&A<=ug||A===Bg||A>=dg&&A<=fg||A===hg},Be=function(A,e){return A!==ct?!1:e!==dr},Pt=function(A,e,r){return A===_A?fr(e)||Be(e,r):fr(A)?!0:!!(A===ct&&Be(A,e))},Pr=function(A,e,r){return A===xe||A===_A?MA(e)?!0:e===Qt&&MA(r):MA(A===Qt?e:A)},xg=function(A){var e=0,r=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(r=-1),e++);for(var t=[];MA(A[e]);)t.push(A[e++]);var n=t.length?parseInt(bA.apply(void 0,t),10):0;A[e]===Qt&&e++;for(var a=[];MA(A[e]);)a.push(A[e++]);var s=a.length,o=s?parseInt(bA.apply(void 0,a),10):0;(A[e]===ti||A[e]===Ai)&&e++;var l=1;(A[e]===xe||A[e]===_A)&&(A[e]===_A&&(l=-1),e++);for(var c=[];MA(A[e]);)c.push(A[e++]);var g=c.length?parseInt(bA.apply(void 0,c),10):0;return r*(n+o*Math.pow(10,-s))*Math.pow(10,l*g)},Ig={type:2},Hg={type:3},Sg={type:4},Lg={type:13},kg={type:8},Mg={type:21},Kg={type:9},Tg={type:10},Dg={type:11},Og={type:12},Rg={type:14},Xt={type:23},Ng={type:1},_g={type:25},Gg={type:24},jg={type:26},Vg={type:27},Pg={type:28},Xg={type:29},Jg={type:31},Hn={type:32},ni=(function(){function A(){this._value=[]}return A.prototype.write=function(e){this._value=this._value.concat(Er(e))},A.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==Hn;)e.push(r),r=this.consumeToken();return e},A.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Nt:return this.consumeStringToken(Nt);case Jc:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(ya(r)||Be(t,n)){var a=Pt(r,t,n)?Vc:jc,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Wc:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Lg;break;case _t:return this.consumeStringToken(_t);case Gt:return Ig;case $e:return Hg;case Vr:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Rg;break;case xe:if(Pr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case og:return Sg;case _A:var o=e,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Pr(o,l,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Pt(o,l,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(l===_A&&c===$c)return this.consumeCodePoint(),this.consumeCodePoint(),Gg;break;case Qt:if(Pr(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Ua:if(this.peekCodePoint(0)===Vr)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===Vr&&(g=this.consumeCodePoint(),g===Ua))return this.consumeToken();if(g===$A)return this.consumeToken()}break;case lg:return jg;case cg:return Vg;case qc:if(this.peekCodePoint(0)===zc&&this.peekCodePoint(1)===_A&&this.peekCodePoint(2)===_A)return this.consumeCodePoint(),this.consumeCodePoint(),_g;break;case Ag:var B=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Pt(B,u,p)){var s=this.consumeName();return{type:7,value:s}}break;case eg:return Pg;case ct:if(Be(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case tg:return Xg;case rg:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),kg;break;case ng:return Dg;case ag:return Og;case pg:case Qg:var Q=this.peekCodePoint(0),C=this.peekCodePoint(1);return Q===xe&&(ke(C)||C===jt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case Fa:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Kg;if(this.peekCodePoint(0)===Fa)return this.consumeCodePoint(),Mg;break;case sg:if(this.peekCodePoint(0)===qe)return this.consumeCodePoint(),Tg;break;case $A:return Hn}return Vt(e)?(this.consumeWhiteSpace(),Jg):MA(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):fr(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:bA(e)}},A.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},A.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},A.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},A.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();ke(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var t=!1;r===jt&&e.length<6;)e.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(bA.apply(void 0,e.map(function(l){return l===jt?qs:l})),16),a=parseInt(bA.apply(void 0,e.map(function(l){return l===jt?ri:l})),16);return{type:30,start:n,end:a}}var s=parseInt(bA.apply(void 0,e),16);if(this.peekCodePoint(0)===_A&&ke(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];ke(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(bA.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},A.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Gt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Gt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},A.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===_t||r===Nt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),Xt)}for(;;){var n=this.consumeCodePoint();if(n===$A||n===$e)return{type:22,value:bA.apply(void 0,e)};if(Vt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$A||this.peekCodePoint(0)===$e?(this.consumeCodePoint(),{type:22,value:bA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Xt);if(n===Nt||n===_t||n===Gt||Eg(n))return this.consumeBadUrlRemnants(),Xt;if(n===ct)if(Be(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Xt;else e.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Vt(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===$e||e===$A)return;Be(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(e){for(var r=5e4,t="";e>0;){var n=Math.min(r,e);t+=bA.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},A.prototype.consumeStringToken=function(e){var r="",t=0;do{var n=this._value[t];if(n===$A||n===void 0||n===e)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===dr)return this._value.splice(0,t),Ng;if(n===ct){var a=this._value[t+1];a!==$A&&a!==void 0&&(a===dr?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):Be(n,a)&&(r+=this.consumeStringSlice(t),r+=bA(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},A.prototype.consumeNumber=function(){var e=[],r=yt,t=this.peekCodePoint(0);for((t===xe||t===_A)&&e.push(this.consumeCodePoint());MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Qt&&MA(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=va;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((t===ti||t===Ai)&&((n===xe||n===_A)&&MA(a)||MA(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=va;MA(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[xg(e),r]},A.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],t=e[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Pt(n,a,s)){var o=this.consumeName();return{type:15,number:r,flags:t,unit:o}}return n===Yc?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ke(e)){for(var r=bA(e);ke(this.peekCodePoint(0))&&r.length<6;)r+=bA(this.consumeCodePoint());Vt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||vg(t)||t>1114111?ba:t}return e===$A?ba:e},A.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(ya(r))e+=bA(r);else if(Be(r,this.peekCodePoint(0)))e+=bA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},A})(),ai=(function(){function A(e){this._tokens=e}return A.create=function(e){var r=new ni;return r.write(e),new A(r.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},A.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},A.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},t=this.consumeToken();;){if(t.type===32||Yg(t,e))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?Hn:e},A.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},A})(),Et=function(A){return A.type===15},Je=function(A){return A.type===17},uA=function(A){return A.type===20},Wg=function(A){return A.type===0},Sn=function(A,e){return uA(A)&&A.value===e},si=function(A){return A.type!==31},Xe=function(A){return A.type!==31&&A.type!==4},ne=function(A){var e=[],r=[];return A.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&e.push(r),e},Yg=function(A,e){return e===11&&A.type===12||e===28&&A.type===29?!0:e===2&&A.type===3},Qe=function(A){return A.type===17||A.type===15},yA=function(A){return A.type===16||Qe(A)},ii=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},LA={type:17,number:0,flags:yt},Xn={type:16,number:50,flags:yt},fe={type:16,number:100,flags:yt},at=function(A,e,r){var t=A[0],n=A[1];return[wA(t,e),wA(typeof n<"u"?n:t,r)]},wA=function(A,e){if(A.type===16)return A.number/100*e;if(Et(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},oi="deg",li="grad",ci="rad",gi="turn",xr={name:"angle",parse:function(A,e){if(e.type===15)switch(e.unit){case oi:return Math.PI*e.number/180;case li:return Math.PI/200*e.number;case ci:return e.number;case gi:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},ui=function(A){return A.type===15&&(A.unit===oi||A.unit===li||A.unit===ci||A.unit===gi)},Bi=function(A){var e=A.filter(uA).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[LA,LA];case"to top":case"bottom":return JA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[LA,fe];case"to right":case"left":return JA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fe,fe];case"to bottom":case"top":return JA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fe,LA];case"to left":case"right":return JA(270)}return 0},JA=function(A){return Math.PI*A/180},pe={name:"color",parse:function(A,e){if(e.type===18){var r=Zg[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(A,e.values)}if(e.type===5){if(e.value.length===3){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(e.value.length===4){var t=e.value.substring(0,1),n=e.value.substring(1,2),a=e.value.substring(2,3),s=e.value.substring(3,4);return he(parseInt(t+t,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(e.value.length===6){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),1)}if(e.value.length===8){var t=e.value.substring(0,2),n=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return he(parseInt(t,16),parseInt(n,16),parseInt(a,16),parseInt(s,16)/255)}}if(e.type===20){var o=oe[e.value.toUpperCase()];if(typeof o<"u")return o}return oe.TRANSPARENT}},Ce=function(A){return(255&A)===0},xA=function(A){var e=255&A,r=255&A>>8,t=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+t+","+r+","+e/255+")":"rgb("+n+","+t+","+r+")"},he=function(A,e,r,t){return(A<<24|e<<16|r<<8|Math.round(t*255)<<0)>>>0},Ea=function(A,e){if(A.type===17)return A.number;if(A.type===16){var r=e===3?1:255;return e===3?A.number/100*r:Math.round(A.number/100*r)}return 0},xa=function(A,e){var r=e.filter(Xe);if(r.length===3){var t=r.map(Ea),n=t[0],a=t[1],s=t[2];return he(n,a,s,1)}if(r.length===4){var o=r.map(Ea),n=o[0],a=o[1],s=o[2],l=o[3];return he(n,a,s,l)}return 0};function Xr(A,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-A)*r*6+A:r<1/2?e:r<2/3?(e-A)*6*(2/3-r)+A:A}var Ia=function(A,e){var r=e.filter(Xe),t=r[0],n=r[1],a=r[2],s=r[3],o=(t.type===17?JA(t.number):xr.parse(A,t))/(Math.PI*2),l=yA(n)?n.number/100:0,c=yA(a)?a.number/100:0,g=typeof s<"u"&&yA(s)?wA(s,1):1;if(l===0)return he(c*255,c*255,c*255,1);var B=c<=.5?c*(l+1):c+l-c*l,u=c*2-B,p=Xr(u,B,o+1/3),Q=Xr(u,B,o),C=Xr(u,B,o-1/3);return he(p*255,Q*255,C*255,g)},Zg={hsl:Ia,hsla:Ia,rgb:xa,rgba:xa},gt=function(A,e){return pe.parse(A,ai.create(e).parseComponentValue())},oe={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},zg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ir=function(A,e){var r=pe.parse(A,e[0]),t=e[1];return t&&yA(t)?{color:r,stop:t}:{color:r,stop:null}},Ha=function(A,e){var r=A[0],t=A[A.length-1];r.stop===null&&(r.stop=LA),t.stop===null&&(t.stop=fe);for(var n=[],a=0,s=0;s<A.length;s++){var o=A[s].stop;if(o!==null){var l=wA(o,e);l>a?n.push(l):n.push(a),a=l}else n.push(null)}for(var c=null,s=0;s<n.length;s++){var g=n[s];if(g===null)c===null&&(c=s);else if(c!==null){for(var B=s-c,u=n[c-1],p=(g-u)/(B+1),Q=1;Q<=B;Q++)n[c+Q-1]=p*Q;c=null}}return A.map(function(C,x){var U=C.color;return{color:U,stop:Math.max(Math.min(1,n[x]/e),0)}})},$g=function(A,e,r){var t=e/2,n=r/2,a=wA(A[0],e)-t,s=n-wA(A[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},Au=function(A,e,r){var t=typeof A=="number"?A:$g(A,e,r),n=Math.abs(e*Math.sin(t))+Math.abs(r*Math.cos(t)),a=e/2,s=r/2,o=n/2,l=Math.sin(t-Math.PI/2)*o,c=Math.cos(t-Math.PI/2)*o;return[n,a-c,a+c,s-l,s+l]},zA=function(A,e){return Math.sqrt(A*A+e*e)},Sa=function(A,e,r,t,n){var a=[[0,0],[0,e],[A,0],[A,e]];return a.reduce(function(s,o){var l=o[0],c=o[1],g=zA(r-l,t-c);return(n?g<s.optimumDistance:g>s.optimumDistance)?{optimumCorner:o,optimumDistance:g}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},eu=function(A,e,r,t,n){var a=0,s=0;switch(A.size){case 0:A.shape===0?a=s=Math.min(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-t)),s=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(A.shape===0)a=s=Math.min(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(e),Math.abs(e-t)),l=Sa(t,n,e,r,!0),c=l[0],g=l[1];a=zA(c-e,(g-r)/o),s=o*a}break;case 1:A.shape===0?a=s=Math.max(Math.abs(e),Math.abs(e-t),Math.abs(r),Math.abs(r-n)):A.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-t)),s=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(A.shape===0)a=s=Math.max(zA(e,r),zA(e,r-n),zA(e-t,r),zA(e-t,r-n));else if(A.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(e),Math.abs(e-t)),B=Sa(t,n,e,r,!1),c=B[0],g=B[1];a=zA(c-e,(g-r)/o),s=o*a}break}return Array.isArray(A.size)&&(a=wA(A.size[0],t),s=A.size.length===2?wA(A.size[1],n):a),[a,s]},tu=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&s.value==="to"){r=Bi(n);return}else if(ui(s)){r=xr.parse(A,s);return}}var o=Ir(A,n);t.push(o)}),{angle:r,stops:t,type:1}},Jt=function(A,e){var r=JA(180),t=[];return ne(e).forEach(function(n,a){if(a===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=Bi(n);return}else if(ui(s)){r=(xr.parse(A,s)+JA(270))%JA(360);return}}var o=Ir(A,n);t.push(o)}),{angle:r,stops:t,type:1}},ru=function(A,e){var r=JA(180),t=[],n=1,a=0,s=3,o=[];return ne(e).forEach(function(l,c){var g=l[0];if(c===0){if(uA(g)&&g.value==="linear"){n=1;return}else if(uA(g)&&g.value==="radial"){n=2;return}}if(g.type===18){if(g.name==="from"){var B=pe.parse(A,g.values[0]);t.push({stop:LA,color:B})}else if(g.name==="to"){var B=pe.parse(A,g.values[0]);t.push({stop:fe,color:B})}else if(g.name==="color-stop"){var u=g.values.filter(Xe);if(u.length===2){var B=pe.parse(A,u[1]),p=u[0];Je(p)&&t.push({stop:{type:16,number:p.number*100,flags:p.flags},color:B})}}}}),n===1?{angle:(r+JA(180))%JA(360),stops:t,type:n}:{size:s,shape:a,stops:t,position:o,type:n}},di="closest-side",fi="farthest-side",hi="closest-corner",wi="farthest-corner",pi="circle",Ci="ellipse",Qi="cover",mi="contain",nu=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(B,u){if(c)if(uA(u))switch(u.value){case"center":return a.push(Xn),B;case"top":case"left":return a.push(LA),B;case"right":case"bottom":return a.push(fe),B}else(yA(u)||Qe(u))&&a.push(u);else if(uA(u))switch(u.value){case pi:return r=0,!1;case Ci:return r=1,!1;case"at":return c=!0,!1;case di:return t=0,!1;case Qi:case fi:return t=1,!1;case mi:case hi:return t=2,!1;case wi:return t=3,!1}else if(Qe(u)||yA(u))return Array.isArray(t)||(t=[]),t.push(u),!1;return B},l)}if(l){var g=Ir(A,s);n.push(g)}}),{size:t,shape:r,stops:n,position:a,type:2}},Wt=function(A,e){var r=0,t=3,n=[],a=[];return ne(e).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(g,B){if(uA(B))switch(B.value){case"center":return a.push(Xn),!1;case"top":case"left":return a.push(LA),!1;case"right":case"bottom":return a.push(fe),!1}else if(yA(B)||Qe(B))return a.push(B),!1;return g},l):o===1&&(l=s.reduce(function(g,B){if(uA(B))switch(B.value){case pi:return r=0,!1;case Ci:return r=1,!1;case mi:case di:return t=0,!1;case fi:return t=1,!1;case hi:return t=2,!1;case Qi:case wi:return t=3,!1}else if(Qe(B)||yA(B))return Array.isArray(t)||(t=[]),t.push(B),!1;return g},l)),l){var c=Ir(A,s);n.push(c)}}),{size:t,shape:r,stops:n,position:a,type:2}},au=function(A){return A.type===1},su=function(A){return A.type===2},Jn={name:"image",parse:function(A,e){if(e.type===22){var r={url:e.value,type:0};return A.cache.addImage(e.value),r}if(e.type===18){var t=vi[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return t(A,e.values)}throw new Error("Unsupported image type "+e.type)}};function iu(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!vi[A.name])}var vi={"linear-gradient":tu,"-moz-linear-gradient":Jt,"-ms-linear-gradient":Jt,"-o-linear-gradient":Jt,"-webkit-linear-gradient":Jt,"radial-gradient":nu,"-moz-radial-gradient":Wt,"-ms-radial-gradient":Wt,"-o-radial-gradient":Wt,"-webkit-radial-gradient":Wt,"-webkit-gradient":ru},ou={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(t){return Xe(t)&&iu(t)}).map(function(t){return Jn.parse(A,t)})}},lu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map(function(r){if(uA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cu={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return ne(e).map(function(r){return r.filter(yA)}).map(ii)}},gu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(uA).map(function(t){return t.value}).join(" ")}).map(uu)}},uu=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},_e;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(_e||(_e={}));var Bu={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return ne(e).map(function(r){return r.filter(du)})}},du=function(A){return uA(A)||yA(A)},Hr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},fu=Hr("top"),hu=Hr("right"),wu=Hr("bottom"),pu=Hr("left"),Sr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return ii(r.filter(yA))}}},Cu=Sr("top-left"),Qu=Sr("top-right"),mu=Sr("bottom-right"),vu=Sr("bottom-left"),Lr=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Uu=Lr("top"),Fu=Lr("right"),bu=Lr("bottom"),yu=Lr("left"),kr=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return Et(r)?r.number:0}}},Eu=kr("top"),xu=kr("right"),Iu=kr("bottom"),Hu=kr("left"),Su={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Lu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return e==="rtl"?1:0}},ku={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).reduce(function(r,t){return r|Mu(t.value)},0)}},Mu=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ku={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Tu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},hr;(function(A){A.NORMAL="normal",A.STRICT="strict"})(hr||(hr={}));var Du={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="strict"?hr.STRICT:hr.NORMAL}},Ou={name:"line-height",initialValue:"normal",prefix:!1,type:4},La=function(A,e){return uA(A)&&A.value==="normal"?1.2*e:A.type===17?e*A.number:yA(A)?wA(A,e):e},Ru={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return e.type===20&&e.value==="none"?null:Jn.parse(A,e)}},Nu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return e==="inside"?0:1}},Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Mr=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},_u=Mr("top"),Gu=Mr("right"),ju=Mr("bottom"),Vu=Mr("left"),Pu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Xu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return e==="break-word"?"break-word":"normal"}},Kr=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ju=Kr("top"),Wu=Kr("right"),Yu=Kr("bottom"),Zu=Kr("left"),zu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},qu={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$u={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Sn(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:oe.TRANSPARENT,offsetX:LA,offsetY:LA,blur:LA},n=0,a=0;a<r.length;a++){var s=r[a];Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:t.blur=s,n++):t.color=pe.parse(A,s)}return t})}},AB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},eB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=nB[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},tB=function(A){var e=A.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},rB=function(A){var e=A.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=e[0],t=e[1];e[2],e[3];var n=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],e.length===16?[r,t,n,a,s,o]:null},nB={matrix:tB,matrix3d:rB},ka={type:16,number:50,flags:yt},aB=[ka,ka],sB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var r=e.filter(yA);return r.length!==2?aB:[r[0],r[1]]}},iB={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ut;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(ut||(ut={}));var oB={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return ut.BREAK_ALL;case"keep-all":return ut.KEEP_ALL;default:return ut.NORMAL}}},lB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(e.type===20)return{auto:!0,order:0};if(Je(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Ui={name:"time",parse:function(A,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},cB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:1}},gB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(uA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},BB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var r=[],t=[];return e.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},dB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return Je(e)?e.number:uA(e)&&e.value==="bold"?700:400}},hB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(uA).map(function(r){return r.value})}},wB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},EA=function(A,e){return(A&e)!==0},pB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},CB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=e.filter(si),a=0;a<n.length;a++){var s=n[a],o=n[a+1];if(s.type===20){var l=o&&Je(o)?o.number:1;t.push({counter:s.value,increment:l})}}return t}},QB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return[];for(var r=[],t=e.filter(si),n=0;n<t.length;n++){var a=t[n],s=t[n+1];if(uA(a)&&a.value!=="none"){var o=s&&Je(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},mB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Et).map(function(r){return Ui.parse(A,r)})}},vB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var t=[],n=e.filter(Wg);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var s=n[a].value,o=n[a+1].value;t.push({open:s,close:o})}return t}},Ma=function(A,e,r){if(!A)return"";var t=A[Math.min(e,A.length-1)];return t?r?t.open:t.close:""},UB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.length===1&&Sn(e[0],"none")?[]:ne(e).map(function(r){for(var t={color:255,offsetX:LA,offsetY:LA,blur:LA,spread:LA,inset:!1},n=0,a=0;a<r.length;a++){var s=r[a];Sn(s,"inset")?t.inset=!0:Qe(s)?(n===0?t.offsetX=s:n===1?t.offsetY=s:n===2?t.blur=s:t.spread=s,n++):t.color=pe.parse(A,s)}return t})}},FB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var r=[0,1,2],t=[];return e.filter(uA).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},bB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yB={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Et(e)?e.number:0}},EB=(function(){function A(e,r){var t,n;this.animationDuration=J(e,mB,r.animationDuration),this.backgroundClip=J(e,zg,r.backgroundClip),this.backgroundColor=J(e,qg,r.backgroundColor),this.backgroundImage=J(e,ou,r.backgroundImage),this.backgroundOrigin=J(e,lu,r.backgroundOrigin),this.backgroundPosition=J(e,cu,r.backgroundPosition),this.backgroundRepeat=J(e,gu,r.backgroundRepeat),this.backgroundSize=J(e,Bu,r.backgroundSize),this.borderTopColor=J(e,fu,r.borderTopColor),this.borderRightColor=J(e,hu,r.borderRightColor),this.borderBottomColor=J(e,wu,r.borderBottomColor),this.borderLeftColor=J(e,pu,r.borderLeftColor),this.borderTopLeftRadius=J(e,Cu,r.borderTopLeftRadius),this.borderTopRightRadius=J(e,Qu,r.borderTopRightRadius),this.borderBottomRightRadius=J(e,mu,r.borderBottomRightRadius),this.borderBottomLeftRadius=J(e,vu,r.borderBottomLeftRadius),this.borderTopStyle=J(e,Uu,r.borderTopStyle),this.borderRightStyle=J(e,Fu,r.borderRightStyle),this.borderBottomStyle=J(e,bu,r.borderBottomStyle),this.borderLeftStyle=J(e,yu,r.borderLeftStyle),this.borderTopWidth=J(e,Eu,r.borderTopWidth),this.borderRightWidth=J(e,xu,r.borderRightWidth),this.borderBottomWidth=J(e,Iu,r.borderBottomWidth),this.borderLeftWidth=J(e,Hu,r.borderLeftWidth),this.boxShadow=J(e,UB,r.boxShadow),this.color=J(e,Su,r.color),this.direction=J(e,Lu,r.direction),this.display=J(e,ku,r.display),this.float=J(e,Ku,r.cssFloat),this.fontFamily=J(e,BB,r.fontFamily),this.fontSize=J(e,dB,r.fontSize),this.fontStyle=J(e,wB,r.fontStyle),this.fontVariant=J(e,hB,r.fontVariant),this.fontWeight=J(e,fB,r.fontWeight),this.letterSpacing=J(e,Tu,r.letterSpacing),this.lineBreak=J(e,Du,r.lineBreak),this.lineHeight=J(e,Ou,r.lineHeight),this.listStyleImage=J(e,Ru,r.listStyleImage),this.listStylePosition=J(e,Nu,r.listStylePosition),this.listStyleType=J(e,Ln,r.listStyleType),this.marginTop=J(e,_u,r.marginTop),this.marginRight=J(e,Gu,r.marginRight),this.marginBottom=J(e,ju,r.marginBottom),this.marginLeft=J(e,Vu,r.marginLeft),this.opacity=J(e,cB,r.opacity);var a=J(e,Pu,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=J(e,Xu,r.overflowWrap),this.paddingTop=J(e,Ju,r.paddingTop),this.paddingRight=J(e,Wu,r.paddingRight),this.paddingBottom=J(e,Yu,r.paddingBottom),this.paddingLeft=J(e,Zu,r.paddingLeft),this.paintOrder=J(e,FB,r.paintOrder),this.position=J(e,qu,r.position),this.textAlign=J(e,zu,r.textAlign),this.textDecorationColor=J(e,gB,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=J(e,uB,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=J(e,$u,r.textShadow),this.textTransform=J(e,AB,r.textTransform),this.transform=J(e,eB,r.transform),this.transformOrigin=J(e,sB,r.transformOrigin),this.visibility=J(e,iB,r.visibility),this.webkitTextStrokeColor=J(e,bB,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=J(e,yB,r.webkitTextStrokeWidth),this.wordBreak=J(e,oB,r.wordBreak),this.zIndex=J(e,lB,r.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return Ce(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return EA(this.display,4)||EA(this.display,33554432)||EA(this.display,268435456)||EA(this.display,536870912)||EA(this.display,67108864)||EA(this.display,134217728)},A})(),xB=(function(){function A(e,r){this.content=J(e,pB,r.content),this.quotes=J(e,vB,r.quotes)}return A})(),Ka=(function(){function A(e,r){this.counterIncrement=J(e,CB,r.counterIncrement),this.counterReset=J(e,QB,r.counterReset)}return A})(),J=function(A,e,r){var t=new ni,n=r!==null&&typeof r<"u"?r.toString():e.initialValue;t.write(n);var a=new ai(t.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(A,uA(s)?s.value:e.initialValue);case 0:return e.parse(A,a.parseComponentValue());case 1:return e.parse(A,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return xr.parse(A,a.parseComponentValue());case"color":return pe.parse(A,a.parseComponentValue());case"image":return Jn.parse(A,a.parseComponentValue());case"length":var o=a.parseComponentValue();return Qe(o)?o:LA;case"length-percentage":var l=a.parseComponentValue();return yA(l)?l:LA;case"time":return Ui.parse(A,a.parseComponentValue())}break}},IB="data-html2canvas-debug",HB=function(A){var e=A.getAttribute(IB);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},kn=function(A,e){var r=HB(A);return r===1||e===r},ae=(function(){function A(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,kn(r,3))debugger;this.styles=new EB(e,window.getComputedStyle(r,null)),Tn(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=yr(this.context,r),kn(r,4)&&(this.flags|=16)}return A})(),SB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ta="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Yt=0;Yt<Ta.length;Yt++)st[Ta.charCodeAt(Yt)]=Yt;var LB=function(A){var e=A.length*.75,r=A.length,t,n=0,a,s,o,l;A[A.length-1]==="="&&(e--,A[A.length-2]==="="&&e--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<r;t+=4)a=st[A.charCodeAt(t)],s=st[A.charCodeAt(t+1)],o=st[A.charCodeAt(t+2)],l=st[A.charCodeAt(t+3)],g[n++]=a<<2|s>>4,g[n++]=(s&15)<<4|o>>2,g[n++]=(o&3)<<6|l&63;return c},kB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=2)r.push(A[t+1]<<8|A[t]);return r},MB=function(A){for(var e=A.length,r=[],t=0;t<e;t+=4)r.push(A[t+3]<<24|A[t+2]<<16|A[t+1]<<8|A[t]);return r},He=5,Wn=11,Jr=2,KB=Wn-He,Fi=65536>>He,TB=1<<He,Wr=TB-1,DB=1024>>He,OB=Fi+DB,RB=OB,NB=32,_B=RB+NB,GB=65536>>Wn,jB=1<<KB,VB=jB-1,Da=function(A,e,r){return A.slice?A.slice(e,r):new Uint16Array(Array.prototype.slice.call(A,e,r))},PB=function(A,e,r){return A.slice?A.slice(e,r):new Uint32Array(Array.prototype.slice.call(A,e,r))},XB=function(A,e){var r=LB(A),t=Array.isArray(r)?MB(r):new Uint32Array(r),n=Array.isArray(r)?kB(r):new Uint16Array(r),a=24,s=Da(n,a/2,t[4]/2),o=t[5]===2?Da(n,(a+t[4])/2):PB(t,Math.ceil((a+t[4])/4));return new JB(t[0],t[1],t[2],t[3],s,o)},JB=(function(){function A(e,r,t,n,a,s){this.initialValue=e,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=a,this.data=s}return A.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>He],r=(r<<Jr)+(e&Wr),this.data[r];if(e<=65535)return r=this.index[Fi+(e-55296>>He)],r=(r<<Jr)+(e&Wr),this.data[r];if(e<this.highStart)return r=_B-GB+(e>>Wn),r=this.index[r],r+=e>>He&VB,r=this.index[r],r=(r<<Jr)+(e&Wr),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A})(),Oa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",WB=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Zt=0;Zt<Oa.length;Zt++)WB[Oa.charCodeAt(Zt)]=Zt;var YB=1,Yr=2,Zr=3,Ra=4,Na=5,ZB=7,_a=8,zr=9,qr=10,Ga=11,ja=12,Va=13,Pa=14,$r=15,zB=function(A){for(var e=[],r=0,t=A.length;r<t;){var n=A.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var a=A.charCodeAt(r++);(a&64512)===56320?e.push(((n&1023)<<10)+(a&1023)+65536):(e.push(n),r--)}else e.push(n)}return e},qB=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var r=A.length;if(!r)return"";for(var t=[],n=-1,a="";++n<r;){var s=A[n];s<=65535?t.push(s):(s-=65536,t.push((s>>10)+55296,s%1024+56320)),(n+1===r||t.length>16384)&&(a+=String.fromCharCode.apply(String,t),t.length=0)}return a},$B=XB(SB),PA="×",An="÷",Ad=function(A){return $B.get(A)},ed=function(A,e,r){var t=r-2,n=e[t],a=e[r-1],s=e[r];if(a===Yr&&s===Zr)return PA;if(a===Yr||a===Zr||a===Ra||s===Yr||s===Zr||s===Ra)return An;if(a===_a&&[_a,zr,Ga,ja].indexOf(s)!==-1||(a===Ga||a===zr)&&(s===zr||s===qr)||(a===ja||a===qr)&&s===qr||s===Va||s===Na||s===ZB||a===YB)return PA;if(a===Va&&s===Pa){for(;n===Na;)n=e[--t];if(n===Pa)return PA}if(a===$r&&s===$r){for(var o=0;n===$r;)o++,n=e[--t];if(o%2===0)return PA}return An},td=function(A){var e=zB(A),r=e.length,t=0,n=0,a=e.map(Ad);return{next:function(){if(t>=r)return{done:!0,value:null};for(var s=PA;t<r&&(s=ed(e,a,++t))===PA;);if(s!==PA||t===r){var o=qB.apply(null,e.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},rd=function(A){for(var e=td(A),r=[],t;!(t=e.next()).done;)t.value&&r.push(t.value.slice());return r},nd=function(A){var e=123;if(A.createRange){var r=A.createRange();if(r.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height=e+"px",t.style.display="block",A.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),a=Math.round(n.height);if(A.body.removeChild(t),a===e)return!0}}return!1},ad=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var r=A.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=e.firstChild,n=Er(t.data).map(function(l){return bA(l)}),a=0,s={},o=n.every(function(l,c){r.setStart(t,a),r.setEnd(t,a+l.length);var g=r.getBoundingClientRect();a+=l.length;var B=g.x>s.x||g.y>s.y;return s=g,c===0?!0:B});return A.body.removeChild(e),o},sd=function(){return typeof new Image().crossOrigin<"u"},id=function(){return typeof new XMLHttpRequest().responseType=="string"},od=function(A){var e=new Image,r=A.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},Xa=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},ld=function(A){var e=A.createElement("canvas"),r=100;e.width=r,e.height=r;var t=e.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,a=e.toDataURL();n.src=a;var s=Mn(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),Ja(s).then(function(o){t.drawImage(o,0,0);var l=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var c=A.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",Xa(l)?Ja(Mn(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),Xa(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Mn=function(A,e,r,t,n){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Ja=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){return e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},HA={get SUPPORT_RANGE_BOUNDS(){var A=nd(document);return Object.defineProperty(HA,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=HA.SUPPORT_RANGE_BOUNDS&&ad(document);return Object.defineProperty(HA,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=od(document);return Object.defineProperty(HA,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?ld(document):Promise.resolve(!1);return Object.defineProperty(HA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=sd();return Object.defineProperty(HA,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=id();return Object.defineProperty(HA,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(HA,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(HA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Bt=(function(){function A(e,r){this.text=e,this.bounds=r}return A})(),cd=function(A,e,r,t){var n=Bd(e,r),a=[],s=0;return n.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(HA.SUPPORT_RANGE_BOUNDS){var l=Wa(t,s,o.length).getClientRects();if(l.length>1){var c=Yn(o),g=0;c.forEach(function(u){a.push(new Bt(u,le.fromDOMRectList(A,Wa(t,g+s,u.length).getClientRects()))),g+=u.length})}else a.push(new Bt(o,le.fromDOMRectList(A,l)))}else{var B=t.splitText(o.length);a.push(new Bt(o,gd(A,t))),t=B}else HA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));s+=o.length}),a},gd=function(A,e){var r=e.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(t,e);var a=yr(A,t);return t.firstChild&&n.replaceChild(t.firstChild,t),a}}return le.EMPTY},Wa=function(A,e,r){var t=A.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(A,e),n.setEnd(A,e+r),n},Yn=function(A){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return rd(A)},ud=function(A,e){if(HA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(A)).map(function(t){return t.segment})}return fd(A,e)},Bd=function(A,e){return e.letterSpacing!==0?Yn(A):ud(A,e)},dd=[32,160,4961,65792,65793,4153,4241],fd=function(A,e){for(var r=Gc(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),t=[],n,a=function(){if(n.value){var s=n.value.slice(),o=Er(s),l="";o.forEach(function(c){dd.indexOf(c)===-1?l+=bA(c):(l.length&&t.push(l),t.push(bA(c)),l="")}),l.length&&t.push(l)}};!(n=r.next()).done;)a();return t},hd=(function(){function A(e,r,t){this.text=wd(r.data,t.textTransform),this.textBounds=cd(e,this.text,t,r)}return A})(),wd=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(pd,Cd);case 2:return A.toUpperCase();default:return A}},pd=/(^|\s|:|-|\(|\))([a-z])/g,Cd=function(A,e,r){return A.length>0?e+r.toUpperCase():A},bi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return e})(ae),yi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return e})(ae),Ei=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=new XMLSerializer,s=yr(r,t);return t.setAttribute("width",s.width+"px"),t.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e})(ae),xi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Kn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return e})(ae),Qd=[{type:15,flags:0,unit:"px",number:3}],md=[{type:16,flags:0,number:50}],vd=function(A){return A.width>A.height?new le(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new le(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},Ud=function(A){var e=A.type===Fd?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},wr="checkbox",pr="radio",Fd="password",Ya=707406591,Zn=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Ud(t),(n.type===wr||n.type===pr)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=vd(n.bounds)),n.type){case wr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Qd;break;case pr:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=md;break}return n}return e})(ae),Ii=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this,a=t.options[t.selectedIndex||0];return n.value=a&&a.text||"",n}return e})(ae),Hi=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.value=t.value,n}return e})(ae),Si=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=ki(r,t.contentWindow.document.documentElement);var a=t.contentWindow.document.documentElement?gt(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):oe.TRANSPARENT,s=t.contentWindow.document.body?gt(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):oe.TRANSPARENT;n.backgroundColor=Ce(a)?Ce(s)?n.styles.backgroundColor:s:a}}catch{}return n}return e})(ae),bd=["OL","UL","MENU"],ar=function(A,e,r,t){for(var n=e.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,Mi(n)&&n.data.trim().length>0)r.textNodes.push(new hd(A,n,r.styles));else if(Ne(n))if(Oi(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return ar(A,o,r,t)});else{var s=Li(A,n);s.styles.isVisible()&&(yd(n,s,t)?s.flags|=4:Ed(s.styles)&&(s.flags|=2),bd.indexOf(n.tagName)!==-1&&(s.flags|=8),r.elements.push(s),n.slot,n.shadowRoot?ar(A,n.shadowRoot,s,t):!Cr(n)&&!Ki(n)&&!Qr(n)&&ar(A,n,s,t))}},Li=function(A,e){return Dn(e)?new bi(A,e):Ti(e)?new yi(A,e):Ki(e)?new Ei(A,e):xd(e)?new xi(A,e):Id(e)?new Kn(A,e):Hd(e)?new Zn(A,e):Qr(e)?new Ii(A,e):Cr(e)?new Hi(A,e):Di(e)?new Si(A,e):new ae(A,e)},ki=function(A,e){var r=Li(A,e);return r.flags|=4,ar(A,e,r,r),r},yd=function(A,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||zn(A)&&r.styles.isTransparent()},Ed=function(A){return A.isPositioned()||A.isFloating()},Mi=function(A){return A.nodeType===Node.TEXT_NODE},Ne=function(A){return A.nodeType===Node.ELEMENT_NODE},Tn=function(A){return Ne(A)&&typeof A.style<"u"&&!sr(A)},sr=function(A){return typeof A.className=="object"},xd=function(A){return A.tagName==="LI"},Id=function(A){return A.tagName==="OL"},Hd=function(A){return A.tagName==="INPUT"},Sd=function(A){return A.tagName==="HTML"},Ki=function(A){return A.tagName==="svg"},zn=function(A){return A.tagName==="BODY"},Ti=function(A){return A.tagName==="CANVAS"},Za=function(A){return A.tagName==="VIDEO"},Dn=function(A){return A.tagName==="IMG"},Di=function(A){return A.tagName==="IFRAME"},za=function(A){return A.tagName==="STYLE"},Ld=function(A){return A.tagName==="SCRIPT"},Cr=function(A){return A.tagName==="TEXTAREA"},Qr=function(A){return A.tagName==="SELECT"},Oi=function(A){return A.tagName==="SLOT"},qa=function(A){return A.tagName.indexOf("-")>0},kd=(function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},A.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},A.prototype.pop=function(e){var r=this;e.forEach(function(t){return r.counters[t].pop()})},A.prototype.parse=function(e){var r=this,t=e.counterIncrement,n=e.counterReset,a=!0;t!==null&&t.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&n.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},A})(),$a={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},As={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Md={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Kd={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Me=function(A,e,r,t,n,a){return A<e||A>r?mt(A,n,a.length>0):t.integers.reduce(function(s,o,l){for(;A>=o;)A-=o,s+=t.values[l];return s},"")+a},Ri=function(A,e,r,t){var n="";do r||A--,n=t(A)+n,A/=e;while(A*e>=e);return n},FA=function(A,e,r,t,n){var a=r-e+1;return(A<0?"-":"")+(Ri(Math.abs(A),a,t,function(s){return bA(Math.floor(s%a)+e)})+n)},me=function(A,e,r){r===void 0&&(r=". ");var t=e.length;return Ri(Math.abs(A),t,!1,function(n){return e[Math.floor(n%t)]})+r},De=1,ce=2,ge=4,it=8,ie=function(A,e,r,t,n,a){if(A<-9999||A>9999)return mt(A,4,n.length>0);var s=Math.abs(A),o=n;if(s===0)return e[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&EA(a,De)&&o!==""?o=e[c]+o:c>1||c===1&&l===0||c===1&&l===1&&EA(a,ce)||c===1&&l===1&&EA(a,ge)&&A>100||c===1&&l>1&&EA(a,it)?o=e[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(A<0?t:"")+o},es="十百千萬",ts="拾佰仟萬",rs="マイナス",en="마이너스",mt=function(A,e,r){var t=r?". ":"",n=r?"、":"",a=r?", ":"",s=r?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=FA(A,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return me(A,"〇一二三四五六七八九",n);case 6:return Me(A,1,3999,$a,3,t).toLowerCase();case 7:return Me(A,1,3999,$a,3,t);case 8:return FA(A,945,969,!1,t);case 9:return FA(A,97,122,!1,t);case 10:return FA(A,65,90,!1,t);case 11:return FA(A,1632,1641,!0,t);case 12:case 49:return Me(A,1,9999,As,3,t);case 35:return Me(A,1,9999,As,3,t).toLowerCase();case 13:return FA(A,2534,2543,!0,t);case 14:case 30:return FA(A,6112,6121,!0,t);case 15:return me(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return me(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ie(A,"零一二三四五六七八九",es,"負",n,ce|ge|it);case 47:return ie(A,"零壹貳參肆伍陸柒捌玖",ts,"負",n,De|ce|ge|it);case 42:return ie(A,"零一二三四五六七八九",es,"负",n,ce|ge|it);case 41:return ie(A,"零壹贰叁肆伍陆柒捌玖",ts,"负",n,De|ce|ge|it);case 26:return ie(A,"〇一二三四五六七八九","十百千万",rs,n,0);case 25:return ie(A,"零壱弐参四伍六七八九","拾百千万",rs,n,De|ce|ge);case 31:return ie(A,"영일이삼사오육칠팔구","십백천만",en,a,De|ce|ge);case 33:return ie(A,"零一二三四五六七八九","十百千萬",en,a,0);case 32:return ie(A,"零壹貳參四五六七八九","拾百千",en,a,De|ce|ge);case 18:return FA(A,2406,2415,!0,t);case 20:return Me(A,1,19999,Kd,3,t);case 21:return FA(A,2790,2799,!0,t);case 22:return FA(A,2662,2671,!0,t);case 22:return Me(A,1,10999,Md,3,t);case 23:return me(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return me(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return FA(A,3302,3311,!0,t);case 28:return me(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return me(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return FA(A,3792,3801,!0,t);case 37:return FA(A,6160,6169,!0,t);case 38:return FA(A,4160,4169,!0,t);case 39:return FA(A,2918,2927,!0,t);case 40:return FA(A,1776,1785,!0,t);case 43:return FA(A,3046,3055,!0,t);case 44:return FA(A,3174,3183,!0,t);case 45:return FA(A,3664,3673,!0,t);case 46:return FA(A,3872,3881,!0,t);default:return FA(A,48,57,!0,t)}},Ni="data-html2canvas-ignore",ns=(function(){function A(e,r,t){if(this.context=e,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new kd,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(e,r){var t=this,n=Td(e,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,o=n.contentWindow,l=o.document,c=Rd(n).then(function(){return OA(t,void 0,void 0,function(){var g,B;return kA(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(jd),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),g=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Od(l)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(l,B)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(_d(document.doctype)+"<html></html>"),Gd(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},A.prototype.createElementClone=function(e){if(kn(e,2))debugger;if(Ti(e))return this.createCanvasClone(e);if(Za(e))return this.createVideoClone(e);if(za(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Dn(r)&&(Dn(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),qa(r)?this.createCustomElementClone(r):r},A.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return tn(e.style,r),r},A.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),n=e.cloneNode(!1);return n.textContent=t,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},A.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var a=e.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},A.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},A.prototype.appendChildNode=function(e,r,t){(!Ne(r)||!Ld(r)&&!r.hasAttribute(Ni)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ne(r)||!za(r))&&e.appendChild(this.cloneNode(r,t))},A.prototype.cloneChildNodes=function(e,r,t){for(var n=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Ne(a)&&Oi(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(r,o,t)})}else this.appendChildNode(r,a,t)},A.prototype.cloneNode=function(e,r){if(Mi(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Ne(e)&&(Tn(e)||sr(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var a=t.getComputedStyle(e),s=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&Tn(n)&&(this.clonedReferenceElement=n),zn(n)&&Xd(n);var l=this.counters.parse(new Ka(this.context,a)),c=this.resolvePseudoContent(e,n,s,dt.BEFORE);qa(e)&&(r=!0),Za(e)||this.cloneChildNodes(e,n,r),c&&n.insertBefore(c,n.firstChild);var g=this.resolvePseudoContent(e,n,o,dt.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(a&&(this.options.copyStyles||sr(e))&&!Di(e)||r)&&tn(a,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(Cr(e)||Qr(e))&&(Cr(n)||Qr(n))&&(n.value=e.value),n}return e.cloneNode(!1)},A.prototype.resolvePseudoContent=function(e,r,t,n){var a=this;if(t){var s=t.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||t.display==="none")){this.counters.parse(new Ka(this.context,t));var l=new xB(this.context,t),c=o.createElement("html2canvaspseudoelement");tn(t,c),l.content.forEach(function(B){if(B.type===0)c.appendChild(o.createTextNode(B.value));else if(B.type===22){var u=o.createElement("img");u.src=B.value,u.style.opacity="1",c.appendChild(u)}else if(B.type===18){if(B.name==="attr"){var p=B.values.filter(uA);p.length&&c.appendChild(o.createTextNode(e.getAttribute(p[0].value)||""))}else if(B.name==="counter"){var Q=B.values.filter(Xe),C=Q[0],x=Q[1];if(C&&uA(C)){var U=a.counters.getCounterValue(C.value),y=x&&uA(x)?Ln.parse(a.context,x.value):3;c.appendChild(o.createTextNode(mt(U,y,!1)))}}else if(B.name==="counters"){var S=B.values.filter(Xe),C=S[0],H=S[1],x=S[2];if(C&&uA(C)){var L=a.counters.getCounterValues(C.value),h=x&&uA(x)?Ln.parse(a.context,x.value):3,b=H&&H.type===0?H.value:"",k=L.map(function(O){return mt(O,h,!1)}).join(b);c.appendChild(o.createTextNode(k))}}}else if(B.type===20)switch(B.value){case"open-quote":c.appendChild(o.createTextNode(Ma(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(Ma(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(B.value))}}),c.className=On+" "+Rn;var g=n===dt.BEFORE?" "+On:" "+Rn;return sr(r)?r.className.baseValue+=g:r.className+=g,c}}},A.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},A})(),dt;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(dt||(dt={}));var Td=function(A,e){var r=A.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(Ni,"true"),A.body.appendChild(r),r},Dd=function(A){return new Promise(function(e){if(A.complete){e();return}if(!A.src){e();return}A.onload=e,A.onerror=e})},Od=function(A){return Promise.all([].slice.call(A.images,0).map(Dd))},Rd=function(A){return new Promise(function(e,r){var t=A.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=A.onload=function(){t.onload=A.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),e(A))},50)}})},Nd=["all","d","content"],tn=function(A,e){for(var r=A.length-1;r>=0;r--){var t=A.item(r);Nd.indexOf(t)===-1&&e.style.setProperty(t,A.getPropertyValue(t))}return e},_d=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Gd=function(A,e,r){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||r!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,r)},jd=function(A){var e=A[0],r=A[1],t=A[2];e.scrollLeft=r,e.scrollTop=t},Vd=":before",Pd=":after",On="___html2canvas___pseudoelement_before",Rn="___html2canvas___pseudoelement_after",as=`{
- content: "" !important;
- display: none !important;
-}`,Xd=function(A){Jd(A,"."+On+Vd+as+`
- .`+Rn+Pd+as)},Jd=function(A,e){var r=A.ownerDocument;if(r){var t=r.createElement("style");t.textContent=e,A.appendChild(t)}},_i=(function(){function A(){}return A.getOrigin=function(e){var r=A._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A})(),Wd=(function(){function A(e,r){this.context=e,this._options=r,this._cache={}}return A.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(nn(e)||qd(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},A.prototype.match=function(e){return this._cache[e]},A.prototype.loadImage=function(e){return OA(this,void 0,void 0,function(){var r,t,n,a,s=this;return kA(this,function(o){switch(o.label){case 0:return r=_i.isSameOrigin(e),t=!rn(e)&&this._options.useCORS===!0&&HA.SUPPORT_CORS_IMAGES&&!r,n=!rn(e)&&!r&&!nn(e)&&typeof this._options.proxy=="string"&&HA.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!rn(e)&&!nn(e)&&!n&&!t?[2]:(a=e,n?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(l,c){var g=new Image;g.onload=function(){return l(g)},g.onerror=c,($d(a)||t)&&(g.crossOrigin="anonymous"),g.src=a,g.complete===!0&&setTimeout(function(){return l(g)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},A.prototype.has=function(e){return typeof this._cache[e]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(e){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(a,s){var o=HA.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var B=new FileReader;B.addEventListener("load",function(){return a(B.result)},!1),B.addEventListener("error",function(u){return s(u)},!1),B.readAsDataURL(l.response)}else s("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=s;var c=t.indexOf("?")>-1?"&":"?";if(l.open("GET",""+t+c+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var g=r._options.imageTimeout;l.timeout=g,l.ontimeout=function(){return s("Timed out ("+g+"ms) proxying "+n)}}l.send()})},A})(),Yd=/^data:image\/svg\+xml/i,Zd=/^data:image\/.*;base64,/i,zd=/^data:image\/.*/i,qd=function(A){return HA.SUPPORT_SVG_DRAWING||!Af(A)},rn=function(A){return zd.test(A)},$d=function(A){return Zd.test(A)},nn=function(A){return A.substr(0,4)==="blob"},Af=function(A){return A.substr(-3).toLowerCase()==="svg"||Yd.test(A)},V=(function(){function A(e,r){this.type=0,this.x=e,this.y=r}return A.prototype.add=function(e,r){return new A(this.x+e,this.y+r)},A})(),Ke=function(A,e,r){return new V(A.x+(e.x-A.x)*r,A.y+(e.y-A.y)*r)},zt=(function(){function A(e,r,t,n){this.type=1,this.start=e,this.startControl=r,this.endControl=t,this.end=n}return A.prototype.subdivide=function(e,r){var t=Ke(this.start,this.startControl,e),n=Ke(this.startControl,this.endControl,e),a=Ke(this.endControl,this.end,e),s=Ke(t,n,e),o=Ke(n,a,e),l=Ke(s,o,e);return r?new A(this.start,t,s,l):new A(l,o,a,this.end)},A.prototype.add=function(e,r){return new A(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A})(),XA=function(A){return A.type===1},ef=(function(){function A(e){var r=e.styles,t=e.bounds,n=at(r.borderTopLeftRadius,t.width,t.height),a=n[0],s=n[1],o=at(r.borderTopRightRadius,t.width,t.height),l=o[0],c=o[1],g=at(r.borderBottomRightRadius,t.width,t.height),B=g[0],u=g[1],p=at(r.borderBottomLeftRadius,t.width,t.height),Q=p[0],C=p[1],x=[];x.push((a+l)/t.width),x.push((Q+B)/t.width),x.push((s+C)/t.height),x.push((c+u)/t.height);var U=Math.max.apply(Math,x);U>1&&(a/=U,s/=U,l/=U,c/=U,B/=U,u/=U,Q/=U,C/=U);var y=t.width-l,S=t.height-u,H=t.width-B,L=t.height-C,h=r.borderTopWidth,b=r.borderRightWidth,k=r.borderBottomWidth,M=r.borderLeftWidth,R=wA(r.paddingTop,e.bounds.width),O=wA(r.paddingRight,e.bounds.width),Z=wA(r.paddingBottom,e.bounds.width),D=wA(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?QA(t.left+M/3,t.top+h/3,a-M/3,s-h/3,gA.TOP_LEFT):new V(t.left+M/3,t.top+h/3),this.topRightBorderDoubleOuterBox=a>0||s>0?QA(t.left+y,t.top+h/3,l-b/3,c-h/3,gA.TOP_RIGHT):new V(t.left+t.width-b/3,t.top+h/3),this.bottomRightBorderDoubleOuterBox=B>0||u>0?QA(t.left+H,t.top+S,B-b/3,u-k/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/3,t.top+t.height-k/3),this.bottomLeftBorderDoubleOuterBox=Q>0||C>0?QA(t.left+M/3,t.top+L,Q-M/3,C-k/3,gA.BOTTOM_LEFT):new V(t.left+M/3,t.top+t.height-k/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?QA(t.left+M*2/3,t.top+h*2/3,a-M*2/3,s-h*2/3,gA.TOP_LEFT):new V(t.left+M*2/3,t.top+h*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?QA(t.left+y,t.top+h*2/3,l-b*2/3,c-h*2/3,gA.TOP_RIGHT):new V(t.left+t.width-b*2/3,t.top+h*2/3),this.bottomRightBorderDoubleInnerBox=B>0||u>0?QA(t.left+H,t.top+S,B-b*2/3,u-k*2/3,gA.BOTTOM_RIGHT):new V(t.left+t.width-b*2/3,t.top+t.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=Q>0||C>0?QA(t.left+M*2/3,t.top+L,Q-M*2/3,C-k*2/3,gA.BOTTOM_LEFT):new V(t.left+M*2/3,t.top+t.height-k*2/3),this.topLeftBorderStroke=a>0||s>0?QA(t.left+M/2,t.top+h/2,a-M/2,s-h/2,gA.TOP_LEFT):new V(t.left+M/2,t.top+h/2),this.topRightBorderStroke=a>0||s>0?QA(t.left+y,t.top+h/2,l-b/2,c-h/2,gA.TOP_RIGHT):new V(t.left+t.width-b/2,t.top+h/2),this.bottomRightBorderStroke=B>0||u>0?QA(t.left+H,t.top+S,B-b/2,u-k/2,gA.BOTTOM_RIGHT):new V(t.left+t.width-b/2,t.top+t.height-k/2),this.bottomLeftBorderStroke=Q>0||C>0?QA(t.left+M/2,t.top+L,Q-M/2,C-k/2,gA.BOTTOM_LEFT):new V(t.left+M/2,t.top+t.height-k/2),this.topLeftBorderBox=a>0||s>0?QA(t.left,t.top,a,s,gA.TOP_LEFT):new V(t.left,t.top),this.topRightBorderBox=l>0||c>0?QA(t.left+y,t.top,l,c,gA.TOP_RIGHT):new V(t.left+t.width,t.top),this.bottomRightBorderBox=B>0||u>0?QA(t.left+H,t.top+S,B,u,gA.BOTTOM_RIGHT):new V(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=Q>0||C>0?QA(t.left,t.top+L,Q,C,gA.BOTTOM_LEFT):new V(t.left,t.top+t.height),this.topLeftPaddingBox=a>0||s>0?QA(t.left+M,t.top+h,Math.max(0,a-M),Math.max(0,s-h),gA.TOP_LEFT):new V(t.left+M,t.top+h),this.topRightPaddingBox=l>0||c>0?QA(t.left+Math.min(y,t.width-b),t.top+h,y>t.width+b?0:Math.max(0,l-b),Math.max(0,c-h),gA.TOP_RIGHT):new V(t.left+t.width-b,t.top+h),this.bottomRightPaddingBox=B>0||u>0?QA(t.left+Math.min(H,t.width-M),t.top+Math.min(S,t.height-k),Math.max(0,B-b),Math.max(0,u-k),gA.BOTTOM_RIGHT):new V(t.left+t.width-b,t.top+t.height-k),this.bottomLeftPaddingBox=Q>0||C>0?QA(t.left+M,t.top+Math.min(L,t.height-k),Math.max(0,Q-M),Math.max(0,C-k),gA.BOTTOM_LEFT):new V(t.left+M,t.top+t.height-k),this.topLeftContentBox=a>0||s>0?QA(t.left+M+D,t.top+h+R,Math.max(0,a-(M+D)),Math.max(0,s-(h+R)),gA.TOP_LEFT):new V(t.left+M+D,t.top+h+R),this.topRightContentBox=l>0||c>0?QA(t.left+Math.min(y,t.width+M+D),t.top+h+R,y>t.width+M+D?0:l-M+D,c-(h+R),gA.TOP_RIGHT):new V(t.left+t.width-(b+O),t.top+h+R),this.bottomRightContentBox=B>0||u>0?QA(t.left+Math.min(H,t.width-(M+D)),t.top+Math.min(S,t.height+h+R),Math.max(0,B-(b+O)),u-(k+Z),gA.BOTTOM_RIGHT):new V(t.left+t.width-(b+O),t.top+t.height-(k+Z)),this.bottomLeftContentBox=Q>0||C>0?QA(t.left+M+D,t.top+L,Math.max(0,Q-(M+D)),C-(k+Z),gA.BOTTOM_LEFT):new V(t.left+M+D,t.top+t.height-(k+Z))}return A})(),gA;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gA||(gA={}));var QA=function(A,e,r,t,n){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=t*a,l=A+r,c=e+t;switch(n){case gA.TOP_LEFT:return new zt(new V(A,c),new V(A,c-o),new V(l-s,e),new V(l,e));case gA.TOP_RIGHT:return new zt(new V(A,e),new V(A+s,e),new V(l,c-o),new V(l,c));case gA.BOTTOM_RIGHT:return new zt(new V(l,e),new V(l,e+o),new V(A+s,c),new V(A,c));case gA.BOTTOM_LEFT:default:return new zt(new V(l,c),new V(l-s,c),new V(A,e+o),new V(A,e))}},mr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},tf=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},vr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},rf=(function(){function A(e,r,t){this.offsetX=e,this.offsetY=r,this.matrix=t,this.type=0,this.target=6}return A})(),qt=(function(){function A(e,r){this.path=e,this.target=r,this.type=1}return A})(),nf=(function(){function A(e){this.opacity=e,this.type=2,this.target=6}return A})(),af=function(A){return A.type===0},Gi=function(A){return A.type===1},sf=function(A){return A.type===2},ss=function(A,e){return A.length===e.length?A.some(function(r,t){return r===e[t]}):!1},of=function(A,e,r,t,n){return A.map(function(a,s){switch(s){case 0:return a.add(e,r);case 1:return a.add(e+t,r);case 2:return a.add(e+t,r+n);case 3:return a.add(e,r+n)}return a})},ji=(function(){function A(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A})(),Vi=(function(){function A(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new ef(this.container),this.container.styles.opacity<1&&this.effects.push(new nf(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new rf(t,n,a))}if(this.container.styles.overflowX!==0){var s=mr(this.curves),o=vr(this.curves);ss(s,o)?this.effects.push(new qt(s,6)):(this.effects.push(new qt(s,2)),this.effects.push(new qt(o,4)))}}return A.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var a=t.effects.filter(function(l){return!Gi(l)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,a),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var s=mr(t.curves),o=vr(t.curves);ss(s,o)||n.unshift(new qt(o,6))}}else n.unshift.apply(n,a);t=t.parent}return n.filter(function(l){return EA(l.target,e)})},A})(),Nn=function(A,e,r,t){A.container.elements.forEach(function(n){var a=EA(n.flags,4),s=EA(n.flags,2),o=new Vi(n,A);EA(n.styles.display,2048)&&t.push(o);var l=EA(n.flags,8)?[]:t;if(a||s){var c=a||n.styles.isPositioned()?r:e,g=new ji(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var B=n.styles.zIndex.order;if(B<0){var u=0;c.negativeZIndex.some(function(Q,C){return B>Q.element.container.styles.zIndex.order?(u=C,!1):u>0}),c.negativeZIndex.splice(u,0,g)}else if(B>0){var p=0;c.positiveZIndex.some(function(Q,C){return B>=Q.element.container.styles.zIndex.order?(p=C+1,!1):p>0}),c.positiveZIndex.splice(p,0,g)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else n.styles.isFloating()?c.nonPositionedFloats.push(g):c.nonPositionedInlineLevel.push(g);Nn(o,g,a?g:r,l)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),Nn(o,e,r,l);EA(n.flags,8)&&Pi(n,l)})},Pi=function(A,e){for(var r=A instanceof Kn?A.start:1,t=A instanceof Kn?A.reversed:!1,n=0;n<e.length;n++){var a=e[n];a.container instanceof xi&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=mt(r,a.container.styles.listStyleType,!0),r+=t?-1:1}},lf=function(A){var e=new Vi(A,null),r=new ji(e),t=[];return Nn(e,r,r,t),Pi(e.container,t),r},is=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},cf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return WA(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return WA(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return WA(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},gf=function(A,e){switch(e){case 0:return WA(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return WA(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return WA(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return WA(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},uf=function(A,e){switch(e){case 0:return $t(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return $t(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return $t(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return $t(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},$t=function(A,e){var r=[];return XA(A)?r.push(A.subdivide(.5,!1)):r.push(A),XA(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},WA=function(A,e,r,t){var n=[];return XA(A)?n.push(A.subdivide(.5,!1)):n.push(A),XA(r)?n.push(r.subdivide(.5,!0)):n.push(r),XA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),XA(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Xi=function(A){var e=A.bounds,r=A.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Ur=function(A){var e=A.styles,r=A.bounds,t=wA(e.paddingLeft,r.width),n=wA(e.paddingRight,r.width),a=wA(e.paddingTop,r.width),s=wA(e.paddingBottom,r.width);return r.add(t+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+t+n),-(e.borderTopWidth+e.borderBottomWidth+a+s))},Bf=function(A,e){return A===0?e.bounds:A===2?Ur(e):Xi(e)},df=function(A,e){return A===0?e.bounds:A===2?Ur(e):Xi(e)},an=function(A,e,r){var t=Bf(Oe(A.styles.backgroundOrigin,e),A),n=df(Oe(A.styles.backgroundClip,e),A),a=ff(Oe(A.styles.backgroundSize,e),r,t),s=a[0],o=a[1],l=at(Oe(A.styles.backgroundPosition,e),t.width-s,t.height-o),c=hf(Oe(A.styles.backgroundRepeat,e),l,a,t,n),g=Math.round(t.left+l[0]),B=Math.round(t.top+l[1]);return[c,g,B,s,o]},Te=function(A){return uA(A)&&A.value===_e.AUTO},Ar=function(A){return typeof A=="number"},ff=function(A,e,r){var t=e[0],n=e[1],a=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(yA(s)&&o&&yA(o))return[wA(s,r.width),wA(o,r.height)];var l=Ar(a);if(uA(s)&&(s.value===_e.CONTAIN||s.value===_e.COVER)){if(Ar(a)){var c=r.width/r.height;return c<a!=(s.value===_e.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var g=Ar(t),B=Ar(n),u=g||B;if(Te(s)&&(!o||Te(o))){if(g&&B)return[t,n];if(!l&&!u)return[r.width,r.height];if(u&&l){var p=g?t:n*a,Q=B?n:t/a;return[p,Q]}var C=g?t:r.width,x=B?n:r.height;return[C,x]}if(l){var U=0,y=0;return yA(s)?U=wA(s,r.width):yA(o)&&(y=wA(o,r.height)),Te(s)?U=y*a:(!o||Te(o))&&(y=U/a),[U,y]}var S=null,H=null;if(yA(s)?S=wA(s,r.width):o&&yA(o)&&(H=wA(o,r.height)),S!==null&&(!o||Te(o))&&(H=g&&B?S/t*n:r.height),H!==null&&Te(s)&&(S=g&&B?H/n*t:r.width),S!==null&&H!==null)return[S,H];throw new Error("Unable to calculate background-size for element")},Oe=function(A,e){var r=A[e];return typeof r>"u"?A[0]:r},hf=function(A,e,r,t,n){var a=e[0],s=e[1],o=r[0],l=r[1];switch(A){case 2:return[new V(Math.round(t.left),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(t.top+s)),new V(Math.round(t.left+t.width),Math.round(l+t.top+s)),new V(Math.round(t.left),Math.round(l+t.top+s))];case 3:return[new V(Math.round(t.left+a),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.top)),new V(Math.round(t.left+a+o),Math.round(t.height+t.top)),new V(Math.round(t.left+a),Math.round(t.height+t.top))];case 1:return[new V(Math.round(t.left+a),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s)),new V(Math.round(t.left+a+o),Math.round(t.top+s+l)),new V(Math.round(t.left+a),Math.round(t.top+s+l))];default:return[new V(Math.round(n.left),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.top)),new V(Math.round(n.left+n.width),Math.round(n.height+n.top)),new V(Math.round(n.left),Math.round(n.height+n.top))]}},wf="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",os="Hidden Text",pf=(function(){function A(e){this._data={},this._document=e}return A.prototype.parseMetrics=function(e,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=e,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),n.src=wf,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(os)),t.appendChild(a),t.appendChild(n);var o=n.offsetTop-a.offsetTop+2;t.removeChild(a),t.appendChild(this._document.createTextNode(os)),t.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:o,middle:l}},A.prototype.getMetrics=function(e,r){var t=e+" "+r;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(e,r)),this._data[t]},A})(),Ji=(function(){function A(e,r){this.context=e,this.options=r}return A})(),Cf=1e4,Qf=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new pf(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return e.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},e.prototype.applyEffect=function(r){this.ctx.save(),sf(r)&&(this.ctx.globalAlpha=r.opacity),af(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),Gi(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return OA(this,void 0,void 0,function(){return kA(this,function(t){switch(t.label){case 0:if(EA(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,t,n){var a=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var s=Yn(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+n),o+a.ctx.measureText(l).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=bf(r.fontFamily).join(", "),a=Et(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,a,n].join(" "),n,a]},e.prototype.renderTextNode=function(r,t){return OA(this,void 0,void 0,function(){var n,a,s,o,l,c,g,B,u=this;return kA(this,function(p){return n=this.createFontStyle(t),a=n[0],s=n[1],o=n[2],this.ctx.font=a,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,g=l.middle,B=t.paintOrder,r.textBounds.forEach(function(Q){B.forEach(function(C){switch(C){case 0:u.ctx.fillStyle=xA(t.color),u.renderTextWithLetterSpacing(Q,t.letterSpacing,c);var x=t.textShadow;x.length&&Q.text.trim().length&&(x.slice(0).reverse().forEach(function(U){u.ctx.shadowColor=xA(U.color),u.ctx.shadowOffsetX=U.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=U.offsetY.number*u.options.scale,u.ctx.shadowBlur=U.blur.number,u.renderTextWithLetterSpacing(Q,t.letterSpacing,c)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=xA(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(U){switch(U){case 1:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top+c),Q.bounds.width,1);break;case 2:u.ctx.fillRect(Q.bounds.left,Math.round(Q.bounds.top),Q.bounds.width,1);break;case 3:u.ctx.fillRect(Q.bounds.left,Math.ceil(Q.bounds.top+g),Q.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&Q.text.trim().length&&(u.ctx.strokeStyle=xA(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(Q.text,Q.bounds.left,Q.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=Ur(r),s=vr(t);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,y,y,c,g,B,u,H,p,Q,L,C,x,U,y,S,H,L;return kA(this,function(h){switch(h.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,a=t.styles,s=0,o=t.textNodes,h.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:h.sent(),h.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof bi))return[3,8];h.label=5;case 5:return h.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,8];case 7:return h.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof yi&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof Ei))return[3,12];h.label=9;case 9:return h.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return y=h.sent(),this.renderReplacedElement(t,n,y),[3,12];case 11:return h.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Si&&t.tree?(c=new e(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,c.render(t.tree)]):[3,14];case 13:g=h.sent(),t.width&&t.height&&this.ctx.drawImage(g,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),h.label=14;case 14:if(t instanceof Zn&&(B=Math.min(t.bounds.width,t.bounds.height),t.type===wr?t.checked&&(this.ctx.save(),this.path([new V(t.bounds.left+B*.39363,t.bounds.top+B*.79),new V(t.bounds.left+B*.16,t.bounds.top+B*.5549),new V(t.bounds.left+B*.27347,t.bounds.top+B*.44071),new V(t.bounds.left+B*.39694,t.bounds.top+B*.5649),new V(t.bounds.left+B*.72983,t.bounds.top+B*.23),new V(t.bounds.left+B*.84,t.bounds.top+B*.34085),new V(t.bounds.left+B*.39363,t.bounds.top+B*.79)]),this.ctx.fillStyle=xA(Ya),this.ctx.fill(),this.ctx.restore()):t.type===pr&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+B/2,t.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=xA(Ya),this.ctx.fill(),this.ctx.restore())),mf(t)&&t.value.length){switch(u=this.createFontStyle(a),H=u[0],p=u[1],Q=this.fontMetrics.getMetrics(H,p).baseline,this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Uf(t.styles.textAlign),L=Ur(t),C=0,t.styles.textAlign){case 1:C+=L.width/2;break;case 2:C+=L.width;break}x=L.add(C,0,0,-L.height/2+1),this.ctx.save(),this.path([new V(L.left,L.top),new V(L.left+L.width,L.top),new V(L.left+L.width,L.top+L.height),new V(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bt(t.value,x),a.letterSpacing,Q),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!EA(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(U=t.styles.listStyleImage,U.type!==0)return[3,18];y=void 0,S=U.url,h.label=15;case 15:return h.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return y=h.sent(),this.ctx.drawImage(y,t.bounds.left-(y.width+10),t.bounds.top),[3,18];case 17:return h.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(H=this.createFontStyle(a)[0],this.ctx.font=H,this.ctx.fillStyle=xA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new le(t.bounds.left,t.bounds.top+wA(t.styles.paddingTop,t.bounds.width),t.bounds.width,La(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bt(r.listValue,L),a.letterSpacing,La(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),h.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return OA(this,void 0,void 0,function(){var t,n,U,a,s,U,o,l,U,c,g,U,B,u,U,p,Q,U,C,x,U;return kA(this,function(y){switch(y.label){case 0:if(EA(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:y.sent(),t=0,n=r.negativeZIndex,y.label=2;case 2:return t<n.length?(U=n[t],[4,this.renderStack(U)]):[3,5];case 3:y.sent(),y.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:y.sent(),a=0,s=r.nonInlineLevel,y.label=7;case 7:return a<s.length?(U=s[a],[4,this.renderNode(U)]):[3,10];case 8:y.sent(),y.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,y.label=11;case 11:return o<l.length?(U=l[o],[4,this.renderStack(U)]):[3,14];case 12:y.sent(),y.label=13;case 13:return o++,[3,11];case 14:c=0,g=r.nonPositionedInlineLevel,y.label=15;case 15:return c<g.length?(U=g[c],[4,this.renderStack(U)]):[3,18];case 16:y.sent(),y.label=17;case 17:return c++,[3,15];case 18:B=0,u=r.inlineLevel,y.label=19;case 19:return B<u.length?(U=u[B],[4,this.renderNode(U)]):[3,22];case 20:y.sent(),y.label=21;case 21:return B++,[3,19];case 22:p=0,Q=r.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return p<Q.length?(U=Q[p],[4,this.renderStack(U)]):[3,26];case 24:y.sent(),y.label=25;case 25:return p++,[3,23];case 26:C=0,x=r.positiveZIndex,y.label=27;case 27:return C<x.length?(U=x[C],[4,this.renderStack(U)]):[3,30];case 28:y.sent(),y.label=29;case 29:return C++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var t=this;r.forEach(function(n,a){var s=XA(n)?n.start:n;a===0?t.ctx.moveTo(s.x,s.y):t.ctx.lineTo(s.x,s.y),XA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(r,t,n,a){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},e.prototype.resizeImage=function(r,t,n){var a;if(r.width===t&&r.height===n)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,t,n),o},e.prototype.renderBackgroundImage=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l;return kA(this,function(c){switch(c.label){case 0:t=r.styles.backgroundImage.length-1,n=function(g){var B,u,p,R,tA,AA,D,z,k,Q,R,tA,AA,D,z,C,x,U,y,S,H,L,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j,_;return kA(this,function(F){switch(F.label){case 0:if(g.type!==0)return[3,5];B=void 0,u=g.url,F.label=1;case 1:return F.trys.push([1,3,,4]),[4,a.context.cache.match(u)];case 2:return B=F.sent(),[3,4];case 3:return F.sent(),a.context.logger.error("Error loading background-image "+u),[3,4];case 4:return B&&(p=an(r,t,[B.width,B.height,B.width/B.height]),R=p[0],tA=p[1],AA=p[2],D=p[3],z=p[4],k=a.ctx.createPattern(a.resizeImage(B,D,z),"repeat"),a.renderRepeat(R,k,tA,AA)),[3,6];case 5:au(g)?(Q=an(r,t,[null,null,null]),R=Q[0],tA=Q[1],AA=Q[2],D=Q[3],z=Q[4],C=Au(g.angle,D,z),x=C[0],U=C[1],y=C[2],S=C[3],H=C[4],L=document.createElement("canvas"),L.width=D,L.height=z,h=L.getContext("2d"),b=h.createLinearGradient(U,S,y,H),Ha(g.stops,x).forEach(function(N){return b.addColorStop(N.stop,xA(N.color))}),h.fillStyle=b,h.fillRect(0,0,D,z),D>0&&z>0&&(k=a.ctx.createPattern(L,"repeat"),a.renderRepeat(R,k,tA,AA))):su(g)&&(M=an(r,t,[null,null,null]),R=M[0],O=M[1],Z=M[2],D=M[3],z=M[4],eA=g.position.length===0?[Xn]:g.position,tA=wA(eA[0],D),AA=wA(eA[eA.length-1],z),dA=eu(g,tA,AA,D,z),aA=dA[0],q=dA[1],aA>0&&q>0&&(lA=a.ctx.createRadialGradient(O+tA,Z+AA,0,O+tA,Z+AA,aA),Ha(g.stops,aA*2).forEach(function(N){return lA.addColorStop(N.stop,xA(N.color))}),a.path(R),a.ctx.fillStyle=lA,aA!==q?(sA=r.bounds.left+.5*r.bounds.width,I=r.bounds.top+.5*r.bounds.height,j=q/aA,_=1/j,a.ctx.save(),a.ctx.translate(sA,I),a.ctx.transform(1,0,0,j,0,0),a.ctx.translate(-sA,-I),a.ctx.fillRect(O,_*(Z-I)+I,D,z*_),a.ctx.restore()):a.ctx.fill())),F.label=6;case 6:return t--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,n(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,t,n){return OA(this,void 0,void 0,function(){return kA(this,function(a){return this.path(is(n,t)),this.ctx.fillStyle=xA(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,t,n,a){return OA(this,void 0,void 0,function(){var s,o;return kA(this,function(l){switch(l.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=cf(a,n),this.path(s),this.ctx.fillStyle=xA(r),this.ctx.fill(),o=gf(a,n),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return OA(this,void 0,void 0,function(){var t,n,a,s,o,l,c,g,B=this;return kA(this,function(u){switch(u.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!Ce(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=vf(Oe(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ce(t.backgroundColor)||(this.ctx.fillStyle=xA(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(p){B.ctx.save();var Q=mr(r.curves),C=p.inset?0:Cf,x=of(Q,-C+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(B.path(Q),B.ctx.clip(),B.mask(x)):(B.mask(Q),B.ctx.clip(),B.path(x)),B.ctx.shadowOffsetX=p.offsetX.number+C,B.ctx.shadowOffsetY=p.offsetY.number,B.ctx.shadowColor=xA(p.color),B.ctx.shadowBlur=p.blur.number,B.ctx.fillStyle=p.inset?xA(p.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),u.label=2;case 2:o=0,l=0,c=a,u.label=3;case 3:return l<c.length?(g=c[l],g.style!==0&&!Ce(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,o,r.curves,3)];case 6:return u.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,o,r.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,o,r.curves)];case 10:u.sent(),u.label=11;case 11:o++,u.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,t,n,a,s){return OA(this,void 0,void 0,function(){var o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,h,L,h;return kA(this,function(b){return this.ctx.save(),o=uf(a,n),l=is(a,n),s===2&&(this.path(l),this.ctx.clip()),XA(l[0])?(c=l[0].start.x,g=l[0].start.y):(c=l[0].x,g=l[0].y),XA(l[1])?(B=l[1].end.x,u=l[1].end.y):(B=l[1].x,u=l[1].y),n===0||n===2?p=Math.abs(c-B):p=Math.abs(g-u),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),Q=t<3?t*3:t*2,C=t<3?t*2:t,s===3&&(Q=t,C=t),x=!0,p<=Q*2?x=!1:p<=Q*2+C?(U=p/(2*Q+C),Q*=U,C*=U):(y=Math.floor((p+C)/(Q+C)),S=(p-y*Q)/(y-1),H=(p-(y+1)*Q)/y,C=H<=0||Math.abs(C-S)<Math.abs(C-H)?S:H),x&&(s===3?this.ctx.setLineDash([0,Q+C]):this.ctx.setLineDash([Q,C])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=xA(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(XA(l[0])&&(L=l[3],h=l[0],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke()),XA(l[1])&&(L=l[1],h=l[2],this.ctx.beginPath(),this.formatPath([new V(L.end.x,L.end.y),new V(h.start.x,h.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t;return kA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=lf(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(Ji),mf=function(A){return A instanceof Hi||A instanceof Ii?!0:A instanceof Zn&&A.type!==pr&&A.type!==wr},vf=function(A,e){switch(A){case 0:return mr(e);case 2:return tf(e);default:return vr(e)}},Uf=function(A){switch(A){case 1:return"center";case 2:return"right";default:return"left"}},Ff=["-apple-system","system-ui"],bf=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter(function(e){return Ff.indexOf(e)===-1}):A},yf=(function(A){qA(e,A);function e(r,t){var n=A.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return e.prototype.render=function(r){return OA(this,void 0,void 0,function(){var t,n;return kA(this,function(a){switch(a.label){case 0:return t=Mn(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,Ef(t)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(Ji),Ef=function(A){return new Promise(function(e,r){var t=new Image;t.onload=function(){e(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},xf=(function(){function A(e){var r=e.id,t=e.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Lt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Lt([this.id,this.getTime()+"ms"],e))},A.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Lt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Lt([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},A.instances={},A})(),If=(function(){function A(e,r){var t;this.windowBounds=r,this.instanceName="#"+A.instanceCount++,this.logger=new xf({id:this.instanceName,enabled:e.logging}),this.cache=(t=e.cache)!==null&&t!==void 0?t:new Wd(this,e)}return A.instanceCount=1,A})(),Hf=function(A,e){return e===void 0&&(e={}),Sf(A,e)};typeof window<"u"&&_i.setContext(window);var Sf=function(A,e){return OA(void 0,void 0,void 0,function(){var r,t,n,a,s,o,l,c,g,B,u,p,Q,C,x,U,y,S,H,L,b,h,b,k,M,R,O,Z,D,z,eA,tA,AA,dA,aA,q,lA,sA,I,j;return kA(this,function(_){switch(_.label){case 0:if(!A||typeof A!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(k=e.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(M=e.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:e.proxy,useCORS:(R=e.useCORS)!==null&&R!==void 0?R:!1},a=Cn({logging:(O=e.logging)!==null&&O!==void 0?O:!0,cache:e.cache},n),s={windowWidth:(Z=e.windowWidth)!==null&&Z!==void 0?Z:t.innerWidth,windowHeight:(D=e.windowHeight)!==null&&D!==void 0?D:t.innerHeight,scrollX:(z=e.scrollX)!==null&&z!==void 0?z:t.pageXOffset,scrollY:(eA=e.scrollY)!==null&&eA!==void 0?eA:t.pageYOffset},o=new le(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new If(a,o),c=(tA=e.foreignObjectRendering)!==null&&tA!==void 0?tA:!1,g={allowTaint:(AA=e.allowTaint)!==null&&AA!==void 0?AA:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),B=new ns(l,A,g),u=B.clonedReferenceElement,u?[4,B.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=_.sent(),Q=zn(u)||Sd(u)?ic(u.ownerDocument):yr(l,u),C=Q.width,x=Q.height,U=Q.left,y=Q.top,S=Lf(l,u,e.backgroundColor),H={canvas:e.canvas,backgroundColor:S,scale:(aA=(dA=e.scale)!==null&&dA!==void 0?dA:t.devicePixelRatio)!==null&&aA!==void 0?aA:1,x:((q=e.x)!==null&&q!==void 0?q:0)+U,y:((lA=e.y)!==null&&lA!==void 0?lA:0)+y,width:(sA=e.width)!==null&&sA!==void 0?sA:Math.ceil(C),height:(I=e.height)!==null&&I!==void 0?I:Math.ceil(x)},c?(l.logger.debug("Document cloned, using foreign object rendering"),b=new yf(l,H),[4,b.render(u)]):[3,3];case 2:return L=_.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+U+","+y+" with size "+C+"x"+x+" using computed rendering"),l.logger.debug("Starting DOM parsing"),h=ki(l,u),S===h.styles.backgroundColor&&(h.styles.backgroundColor=oe.TRANSPARENT),l.logger.debug("Starting renderer for element at "+H.x+","+H.y+" with size "+H.width+"x"+H.height),b=new Qf(l,H),[4,b.render(h)];case 4:L=_.sent(),_.label=5;case 5:return(!((j=e.removeContainer)!==null&&j!==void 0)||j)&&(ns.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,L]}})})},Lf=function(A,e,r){var t=e.ownerDocument,n=t.documentElement?gt(A,getComputedStyle(t.documentElement).backgroundColor):oe.TRANSPARENT,a=t.body?gt(A,getComputedStyle(t.body).backgroundColor):oe.TRANSPARENT,s=typeof r=="string"?gt(A,r):r===null?oe.TRANSPARENT:4294967295;return e===t.documentElement?Ce(n)?Ce(a)?s:a:n:s},sn={body:{background:"rgb(32, 32, 32)"},rbgcpInputLabel:{color:"rgb(212, 212, 212)"},rbgcpControlBtnWrapper:{background:"rgb(54, 54, 54)"},rbgcpInput:{border:"none",color:"white",background:"rgb(54, 54, 54)"},rbgcpControlBtn:{color:"rgb(212, 212, 212)"},rbgcpControlIcon:{stroke:"rgb(212, 212, 212)"},rbgcpControlIcon2:{fill:"rgb(212, 212, 212)"},rbgcpControlInput:{color:"white"},rbgcpControlBtnSelected:{background:"black",color:"#568cf5"},rbgcpDegreeIcon:{color:"rgb(212, 212, 212)"},rbgcpColorModelDropdown:{background:"rgb(32, 32, 32)"},rbgcpComparibleLabel:{color:"rgb(212, 212, 212)"}},IA=function(){return IA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},IA.apply(this,arguments)},kf={body:{boxSizing:"border-box",background:"rgb(255, 255, 255)"},rbgcpControlBtn:{paddingLeft:"8px",paddingRight:"8px",lineHeight:"1",borderRadius:"4px",fontWeight:700,fontSize:"12px",height:"24px",transition:"all 160ms ease",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0)",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0)",color:"rgb(86, 86, 86)"},rbgcpControlIcon:{stroke:"rgb(50, 49, 54)"},rbgcpControlIconBtn:{width:"30px",height:"24px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},rbgcpControlBtnWrapper:{height:"28px",background:"#e9e9f5",borderRadius:"6px",padding:"2px",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},rbgcpColorModelDropdown:{position:"absolute",right:"-2px",top:"34px",padding:"5px",background:"#e9e9f5",zIndex:1e8,borderRadius:"6px",boxShadow:"1px 1px 14px 1px rgba(0, 0, 0, 0.25)"},rbgcpEyedropperCover:{position:"fixed",left:"0px",top:"0px",zIndex:1e8,width:"100vw",height:"100vh",cursor:"copy"},rbgcpControlInput:{height:"24px",borderRadius:"4px",border:"none",outline:"none",textAlign:"center",width:"34px",fontWeight:500,color:"rgb(50, 49, 54)",fontSize:"13px",background:"transparent"},rbgcpInputLabel:{textAlign:"center",lineHeight:"1.2",fontWeight:700,color:"rgb(86, 86, 86)",fontSize:"11px"},rbgcpInput:{height:"32px",borderRadius:"6px",border:"1px solid #bebebe",width:"100%",padding:"2px",outline:"none",color:"black",fontWeight:400,textAlign:"center",background:"transparent",fontSize:"15px"},rbgcpHandle:{position:"absolute",border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",zIndex:1e3,transition:"all 30ms linear",boxSizing:"border-box",willChange:"transform",outline:"none"},rbgcpCanvasWrapper:{borderRadius:"6px",overflow:"hidden",height:"294px"},rbgcpCheckered:{background:`linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- linear-gradient(
- 45deg,
- rgba(0, 0, 0, 0.18) 25%,
- transparent 25%,
- transparent 75%,
- rgba(0, 0, 0, 0.18) 75%,
- rgba(0, 0, 0, 0.18) 0
- ),
- white`,backgroundRepeat:"repeat, repeat",backgroundPosition:"0px 0, 7px 7px",transformOrigin:"0 0 0",backgroundOrigin:"padding-box, padding-box",backgroundClip:"border-box, border-box",backgroundSize:"14px 14px, 14px 14px",boxShadow:"none",textShadow:"none",transition:"none",transform:"scaleX(1) scaleY(1) scaleZ(1)",borderRadius:"10px"},rbgcpOpacityOverlay:{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",borderRadius:"10px"},rbgcpGradientHandleWrap:{position:"absolute",zIndex:1e4,top:"-2px",outline:"none"},rbgcpGradientHandle:{border:"2px solid white",borderRadius:"50%",boxShadow:"0px 0px 3px rgba(0, 0, 0, 0.5)",width:"18px",height:"18px",display:"flex",alignItems:"center",justifyContent:"center"},rbgcpControlIcon2:{fill:"#323136"},rbgcpControlBtnSelected:{background:"white",color:"#568cf5",boxShadow:"1px 1px 3px rgba(0, 0, 0, 0.2)"},rbgcpComparibleLabel:{color:"#323136"}},Mf=function(A,e){var r=IA({},kf);if(A)for(var t in sn)Object.prototype.hasOwnProperty.call(sn,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),sn[t]));for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=IA(IA({},Object.prototype.hasOwnProperty.call(r,t)?r[t]:{}),e[t]));return r},ls=function(A,e){return A?IA(IA({},e.rbgcpControlBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlBtn)},ft=function(A,e){return A?IA(IA({},e.rbgcpControlIconBtn),e.rbgcpControlBtnSelected):IA({},e.rbgcpControlIconBtn)},er=function(A,e){return A?IA(IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn),e.rbgcpControlBtnSelected):IA(IA({},e.rbgcpControlBtn),e.rbgcpColorModelDropdownBtn)},ee=function(){return ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},ee.apply(this,arguments)},Kf=function(A){var e=A.color,r=BA().defaultStyles,t=e??"";return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{width:16}},m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({fill:"none",strokeWidth:"1.4px"},r.rbgcpControlIcon),t&&{stroke:t}),d:"M15.6,7h0L7.78,14.86c-.37.37-1.61.38-2,.75s-.5,1.53-.76,2a3.53,3.53,0,0,1-.52.52,1.6,1.6,0,0,1-2.27-.06l-.32-.32a1.61,1.61,0,0,1-.06-2.27A3.25,3.25,0,0,1,2.4,15c.47-.26,1.65-.35,2-.73s.34-1.64.71-2c1.68-1.73,5.61-5.65,7.91-7.93h0l1.14,1.38L15.6,7Z"}),m.createElement("polygon",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),points:"15.7 8.87 11.13 4.29 12.69 2.73 17.25 7.31 15.7 8.87"}),m.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",style:ee(ee({strokeWidth:"1.4px"},r.rbgcpControlIcon2),t&&{stroke:t,fill:t}),d:"M18.18,3.71,16.36,5.53a1.33,1.33,0,0,1-1.88,0h0a1.34,1.34,0,0,1,0-1.89l1.81-1.82a1.34,1.34,0,0,1,1.89,0h0A1.34,1.34,0,0,1,18.18,3.71Z"}))},Tf=function(A){var e=A.onSelect,r=BA().defaultStyles,t=E.useState(null),n=t[0],a=t[1],s=E.useState(!1),o=s[0],l=s[1],c=E.useState(!1),g=c[0],B=c[1],u=function(){var C=document.getElementById("root");l(!0),Hf(C).then(function(x){var U=document.createElement("canvas"),y=U.getContext("2d",{willReadFrequently:!0});C&&y&&(U.width=C.offsetWidth*2,U.height=C.offsetHeight*2,y.drawImage(x,0,0)),a(y)})},p=function(C){if(C.stopPropagation(),n){var x=C.pageX,U=C.pageY,y=x*2,S=U*2,H=n.getImageData(y,S,1,1).data;e("rgba(".concat(H[0],", ").concat(H[1],", ").concat(H[2],", 1)"))}B(!1),l(!1)},Q=function(){if(B(!0),!window.EyeDropper)u();else{var C=new window.EyeDropper,x=new window.AbortController;C.open({signal:x.signal}).then(function(U){var y=SA(U.sRGBHex),S=y.toRgb(),H=S.r,L=S.g,h=S.b;e("rgba(".concat(H,", ").concat(L,", ").concat(h,", 1)")),B(!1)}).catch(function(U){console.log(U),B(!1)})}};return m.createElement("div",null,m.createElement("div",{onClick:Q,id:"rbgcp-eyedropper-btn",style:ee(ee({},r.rbgcpEyedropperBtn),ft(o,r))},m.createElement(Kf,{color:g?"rgb(86, 140, 245)":""})),o&&m.createElement(sc,null,m.createElement("div",{onClick:function(C){return p(C)},style:r.rbgcpEyedropperCover})))},_n=function(){return _n=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},_n.apply(this,arguments)},on=function(A){var e=A.value,r=A.reffy,t=A.label,n=A.config,a=A.callback,s=A.squareWidth,o=A.openAdvanced,l=A.defaultStyles,c=A.pickerIdSuffix,g=n.barSize,B=E.useState(!1),u=B[0],p=B[1],Q=E.useState(2),C=Q[0],x=Q[1],U=e*(s-18);E.useEffect(function(){var h;x(((h=r?.current)===null||h===void 0?void 0:h.offsetTop)-2)},[o,r]);var y=function(){p(!1)},S=function(h){u&&a(Pe(h,g))},H=function(h){u||a(Pe(h,g))},L=function(){p(!0)};return E.useEffect(function(){var h=function(){y()};return window.addEventListener("mouseup",h),function(){window.removeEventListener("mouseup",h)}},[]),m.createElement("div",{style:{width:"100%",padding:"3px 0px 3px 0px"}},m.createElement("div",{onMouseMove:function(h){return S(h)},style:{cursor:"resize",position:"relative"},id:"rbgcp-advanced-bar-".concat(t,"-wrapper").concat(c)},m.createElement("div",{style:_n({left:U,top:C},l.rbgcpHandle),id:"rbgcp-advanced-bar-".concat(t,"-handle").concat(c),onMouseDown:L,role:"button",tabIndex:0}),m.createElement("div",{style:{textAlign:"center",color:"#fff",fontSize:12,fontWeight:500,lineHeight:1,position:"absolute",left:"50%",transform:"translate(-50%, 0%)",top:C+2,zIndex:10,textShadow:"1px 1px 1px rgba(0,0,0,.6)"},id:"rbgcp-advanced-bar-".concat(t,"-label").concat(c),onMouseMove:function(h){return S(h)},onClick:function(h){return H(h)},tabIndex:0,role:"button",onKeyDown:function(){}},t),m.createElement("canvas",{ref:r,height:"14px",width:"".concat(s,"px"),onClick:function(h){return H(h)},style:{position:"relative",borderRadius:14},id:"rbgcp-advanced-bar-".concat(t,"-canvas").concat(c)})))},Df=function(A){var e=A.openAdvanced,r=BA(),t=r.config,n=r.tinyColor,a=r.handleChange,s=r.squareWidth,o=r.hc,l=r.defaultStyles,c=r.pickerIdSuffix,g=n.toHsl(),B=g.s,u=g.l,p=E.useRef(null),Q=E.useRef(null),C=E.useRef(null);Il(p,o?.h,u*100,s),Hl(Q,o?.h,B*100,s),Sl(C,o?.h,B*100,s);var x=function(S){var H=SA({h:o?.h,s:S/100,l:u}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},U=function(S){var H=SA({h:o?.h,s:B,l:S/100}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))},y=function(S){var H=SA({h:o?.h,s:o?.s*100,v:S}).toRgb(),L=H.r,h=H.g,b=H.b;a("rgba(".concat(L,",").concat(h,",").concat(b,",").concat(o?.a,")"))};return m.createElement("div",{style:{width:"100%",height:e?98:0,transition:"all 120ms linear"},id:"rbgcp-advanced-controls-wrapper".concat(c)},m.createElement("div",{style:{paddingTop:11,display:e?"flex":"none",flexDirection:"column",justifyContent:"space-between",height:e?98:0,overflow:"hidden",transition:"height 100ms linear"},id:"rbgcp-advanced-controls-inner".concat(c)},m.createElement(on,{value:B,reffy:p,config:t,label:"Saturation",callback:x,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(on,{value:u,config:t,reffy:Q,label:"Lightness",callback:U,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c}),m.createElement(on,{value:o?.v,config:t,reffy:C,label:"Brightness",callback:y,squareWidth:s,openAdvanced:e,defaultStyles:l,pickerIdSuffix:c})))},Ee=function(){return Ee=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Ee.apply(this,arguments)},Of=function(A){var e=A.openComparibles,r=BA(),t=r.tinyColor,n=r.handleChange,a=r.defaultStyles,s=r.pickerIdSuffix,o=t.analogous(),l=t.monochromatic(),c=t.triad(),g=t.tetrad(),B=function(u){var p=u.toRgb(),Q=p.r,C=p.g,x=p.b,U=p.a;n("rgba(".concat(Q,",").concat(C,",").concat(x,",").concat(U,")"))};return m.createElement("div",{style:{width:"100%",transition:"all 120ms linear",height:e?216:0},id:"rbgcp-comparible-colors-wrapper".concat(s)},m.createElement("div",{style:{paddingTop:11,display:e?"":"none",position:"relative"},id:"rbgcp-comparible-colors-inner".concat(s)},m.createElement("div",{style:Ee({textAlign:"center",fontSize:13,fontWeight:600,position:"absolute",top:6.5,left:2},a.rbgcpComparibleLabel),id:"rbgcp-comparible-color-guide-label".concat(s)},"Color Guide"),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-analogous-colors-label".concat(s)},"Analogous"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex"},id:"rbgcp-comparible-analogous-colors".concat(s)},o?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-analogous-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-monochromatic-colors-label".concat(s)},"Monochromatic"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-monochromatic-colors".concat(s)},l?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-monochromatic-color-".concat(p).concat(s),style:{width:"20%",height:30,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-triad-colors-label".concat(s)},"Triad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-triad-colors".concat(s)},c?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-triad-color-".concat(p).concat(s),style:{width:"calc(100% / 3)",height:28,background:u.toHexString()},onClick:function(){return B(u)}})})),m.createElement("div",{style:Ee({textAlign:"center",fontSize:12,fontWeight:500,marginTop:3},a.rbgcpComparibleLabel),id:"rbgcp-comparible-tetrad-colors-label".concat(s)},"Tetrad"),m.createElement("div",{style:{borderRadius:5,overflow:"hidden",display:"flex",justifyContent:"flex-end"},id:"rbgcp-comparible-tetrad-colors".concat(s)},g?.map(function(u,p){return m.createElement("div",{key:p,id:"rbgcp-comparible-tetrad-color-".concat(p).concat(s),style:{width:"25%",height:28,background:u.toHexString()},onClick:function(){return B(u)}})}))))},CA=function(){return CA=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},CA.apply(this,arguments)},Rf=function(){var A=BA(),e=A.gradientType,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=e==="linear-gradient",o=e==="radial-gradient",l=function(){var g=t.split(/,(.+)/)[1];r("linear-gradient(90deg, ".concat(g))},c=function(){var g=t.split(/,(.+)/)[1];r("radial-gradient(circle, ".concat(g))};return m.createElement("div",{style:n.rbgcpControlBtnWrapper},m.createElement("div",{onClick:l,id:"rbgcp-linear-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),s&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(ql,{color:s?"#568CF5":""})),m.createElement("div",{onClick:c,id:"rbgcp-radial-btn".concat(a),style:CA(CA({},n.rbgcpControlBtn),o&&n.rbgcpControlBtnSelected),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement($l,{color:o?"#568CF5":""})))},Nf=function(){var A=BA(),e=A.currentLeft,r=A.currentColor,t=A.defaultStyles,n=A.handleGradient,a=A.pickerIdSuffix,s=function(o){n(r,Ve(parseInt(o),0,100))};return m.createElement("div",{style:CA(CA(CA(CA({},t.rbgcpControlBtnWrapper),t.rbgcpControlInputWrap),t.rbgcpStopInputWrap),{paddingLeft:8}),id:"rbgcp-stop-input-wrapper".concat(a)},m.createElement(nc,null),m.createElement("input",{value:e,id:"rbgcp-stop-input".concat(a),onChange:function(o){return s(o.target.value)},style:CA(CA({},t.rbgcpControlInput),t.rbgcpStopInput)}))},_f=function(){var A=BA(),e=A.degrees,r=A.onChange,t=A.value,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(o){var l=Ve(o.target.value,0,360),c=t.split(/,(.+)/)[1];r("linear-gradient(".concat(l??0,"deg, ").concat(c))};return m.createElement("div",{style:CA(CA(CA({},n.rbgcpControlBtnWrapper),n.rbgcpControlInputWrap),n.rbgcpDegreeInputWrap),id:"rbgcp-degree-input-wrapper".concat(a)},m.createElement(rc,null),m.createElement("input",{value:e,onChange:function(o){return s(o)},id:"rbgcp-degree-input".concat(a),style:CA(CA({},n.rbgcpControlInput),n.rbgcpDegreeInput)}),m.createElement("div",{style:CA(CA({},n.rbgcpDegreeIcon),{position:"absolute",right:e>99?0:e<10?7:3,top:1,fontWeight:400,fontSize:13})},"°"))},Gf=function(){var A=BA(),e=A.colors,r=A.selectedColor,t=A.createGradientStr,n=A.defaultStyles,a=A.pickerIdSuffix,s=function(){if(e?.length>2){var o=e?.map(function(c,g){return CA(CA({},c),{value:g===r-1?br(c):bt(c)})}),l=o?.filter(function(c,g){return g!==r});t(l)}};return m.createElement("div",{onClick:s,style:CA(CA({},ft(!1,n)),{width:28}),id:"rbgcp-point-delete-btn".concat(a),tabIndex:0,role:"button",onKeyDown:function(){}},m.createElement(zl,null))},cs=function(A){var e=A.hideGradientType,r=A.hideGradientAngle,t=A.hideGradientStop,n=BA(),a=n.gradientType,s=n.defaultStyles,o=n.pickerIdSuffix;return m.createElement("div",{style:CA(CA({},s.rbgcpControlBtnWrapper),{marginTop:12,marginBottom:-4,justifyContent:"space-between",paddingLeft:e?4:0}),id:"rbgcp-gradient-controls-wrap".concat(o)},!e&&m.createElement(Rf,null),m.createElement("div",{style:{width:53}},!r&&a==="linear-gradient"&&m.createElement(_f,null)),!t&&m.createElement(Nf,null),m.createElement(Gf,null))},vt=function(){return vt=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},vt.apply(this,arguments)},jf=function(A){var e,r,t=A.hideColorTypeBtns,n=A.setGradient,a=A.isGradient,s=A.setSolid,o=A.locales,l=BA(),c=l.defaultStyles,g=l.pickerIdSuffix;return t?m.createElement("div",{style:{width:1}}):m.createElement("div",{style:vt({display:"flex",alignItems:"center"},c.rbgcpControlBtnWrapper),id:"rbgcp-color-type-btns".concat(g)},m.createElement("div",{onClick:s,id:"rbgcp-solid-btn".concat(g),style:ls(!a,c)},(e=o?.CONTROLS)===null||e===void 0?void 0:e.SOLID),m.createElement("div",{onClick:n,id:"rbgcp-gradient-btn".concat(g),style:ls(a??!1,c)},(r=o?.CONTROLS)===null||r===void 0?void 0:r.GRADIENT))},Vf=function(A){var e=A.openInputType,r=A.setOpenInputType,t=BA(),n=t.inputType,a=t.setInputType,s=t.defaultStyles,o=t.pickerIdSuffix,l=e?"visibility 0ms linear":"visibility 100ms linear 150ms",c=e?"z-index 0ms linear":"z-index 100ms linear 150ms",g=e?"opacity 120ms linear":"opacity 150ms linear 50ms",B=function(u,p){e&&(u.stopPropagation(),a(p),r(!1))};return m.createElement("div",{style:vt({visibility:e?"visible":"hidden",zIndex:e?"":-100,opacity:e?1:0,transition:"".concat(g,", ").concat(l,", ").concat(c)},s.rbgcpColorModelDropdown),id:"rbgcp-color-model-dropdown".concat(o)},m.createElement("div",{id:"rbgcp-color-model-rgb-btn".concat(o),onClick:function(u){return B(u,"rgb")},style:er(n==="rgb",s)},"RGB"),m.createElement("div",{id:"rbgcp-color-model-hsl-btn".concat(o),onClick:function(u){return B(u,"hsl")},style:er(n==="hsl",s)},"HSL"),m.createElement("div",{id:"rbgcp-color-model-hsv-btn".concat(o),onClick:function(u){return B(u,"hsv")},style:er(n==="hsv",s)},"HSV"),m.createElement("div",{id:"rbgcp-color-model-cmyk-btn".concat(o),onClick:function(u){return B(u,"cmyk")},style:er(n==="cmyk",s)},"CMYK"))},Pf=function(A){var e,r,t=A.locales,n=A.hideEyeDrop,a=n===void 0?!1:n,s=A.hideAdvancedSliders,o=s===void 0?!1:s,l=A.hideColorGuide,c=l===void 0?!1:l,g=A.hideInputType,B=g===void 0?!1:g,u=A.hideColorTypeBtns,p=u===void 0?!1:u,Q=A.hideGradientControls,C=Q===void 0?!1:Q,x=A.hideGradientType,U=x===void 0?!1:x,y=A.hideGradientAngle,S=y===void 0?!1:y,H=A.hideGradientStop,L=H===void 0?!1:H,h=BA(),b=h.config,k=h.onChange,M=h.isGradient,R=h.handleChange,O=h.previous,Z=h.defaultStyles,D=h.pickerIdSuffix,z=b.defaultColor,eA=b.defaultGradient,tA=E.useState(!1),AA=tA[0],dA=tA[1],aA=E.useState(!1),q=aA[0],lA=aA[1],sA=E.useState(!1),I=sA[0],j=sA[1],_=a&&o&&c&&B,F=(e=O?.color)!==null&&e!==void 0?e:z,N=(r=O?.gradient)!==null&&r!==void 0?r:eA,T=function(){k(F)},G=function(){k(N)},P=a&&o&&c&&B,$=P&&p;return $?M&&!C?m.createElement(cs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}):null:m.createElement("div",{style:{paddingBottom:4}},m.createElement("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},id:"rbgcp-controls-wrapper".concat(D)},m.createElement(jf,{hideColorTypeBtns:p,setGradient:G,isGradient:M,setSolid:T,locales:t}),!P&&m.createElement("div",{style:vt({display:_?"none":""},Z.rbgcpControlBtnWrapper),id:"rbgcp-control-rightside-wrapper".concat(D)},!a&&m.createElement(Tf,{onSelect:R}),!o&&m.createElement("div",{id:"rbgcp-advanced-btn".concat(D),onClick:function(){return j(!I)},style:ft(I,Z)},m.createElement(Ac,{color:I?"#568CF5":""})),!c&&m.createElement("div",{style:ft(AA,Z),onClick:function(){return dA(!AA)},id:"rbgcp-comparibles-btn".concat(D)},m.createElement(tc,{color:AA?"#568CF5":""})),!B&&m.createElement("div",{id:"rbgcp-color-model-btn".concat(D),onClick:function(){return lA(!q)},style:ft(q,Z)},m.createElement(ec,{color:q?"#568CF5":""}),m.createElement(Vf,{openInputType:q,setOpenInputType:lA})))),!o&&m.createElement(Df,{openAdvanced:I}),!c&&m.createElement(Of,{openComparibles:AA}),M&&!C&&m.createElement(cs,{hideGradientType:U,hideGradientAngle:S,hideGradientStop:L}))},te=function(){return te=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},te.apply(this,arguments)},gs=function(A,e,r){if(r||arguments.length===2)for(var t=0,n=e.length,a;t<n;t++)(a||!(t in e))&&(a||(a=Array.prototype.slice.call(e,0,t)),a[t]=e[t]);return A.concat(a||Array.prototype.slice.call(e))},Xf=function(A){var e=A.left,r=A.i,t=A.setDragging,n=BA(),a=n.colors,s=n.squareWidth,o=n.selectedColor,l=n.defaultStyles,c=n.pickerIdSuffix,g=n.createGradientStr,B=o===r,u=(s-18)/100,p=function(C){var x=a?.map(function(U,y){return te(te({},U),{value:y===C?br(U):bt(U)})});g(x)},Q=function(C){C.stopPropagation(),p(r),t(!0)};return m.createElement("div",{onMouseDown:function(C){return Q(C)},id:"rbgcp-gradient-handle-".concat(r).concat(c),style:te(te({},l.rbgcpGradientHandleWrap),{left:(e??0)*u})},m.createElement("div",{style:te(te({},l.rbgcpGradientHandle),B?{boxShadow:"0px 0px 5px 1px rgba(86, 140, 245,.95)",border:"2px solid white"}:{}),id:"rbgcp-gradient-handle-".concat(r,"-dot").concat(c)},B&&m.createElement("div",{style:{width:5,height:5,borderRadius:"50%",background:"white"},id:"rbgcp-gradient-handle-".concat(r,"-selected-dot").concat(c)})))},Jf=function(){var A=BA(),e=A.value,r=A.colors,t=A.config,n=A.squareWidth,a=A.currentColor,s=A.handleGradient,o=A.pickerIdSuffix,l=A.createGradientStr,c=t.barSize,g=E.useState(!1),B=g[0],u=g[1];function p(S){return S.replace(/(radial|linear)-gradient\([^,]+,/,"linear-gradient(90deg,")}var Q=function(S){var H,L=Pe(S,c),h=(H=gs(gs([],r.map(function(b){return te(te({},b),{value:bt(b)})}),!0),[{value:a,left:L}],!1))===null||H===void 0?void 0:H.sort(function(b,k){return b.left-k.left});l(h)},C=function(){u(!1)},x=function(S){B||(Q(S),u(!0))},U=function(S){B&&s(a,Pe(S,c))},y=function(){C()};return E.useEffect(function(){return window.addEventListener("mouseup",y),function(){window.removeEventListener("mouseup",y)}}),m.createElement("div",{style:{width:"100%",marginTop:17,marginBottom:4,position:"relative"},id:"rbgcp-gradient-bar".concat(o)},m.createElement("div",{style:{height:14,borderRadius:10,width:n,backgroundImage:p(e)},onMouseDown:function(S){return x(S)},onMouseMove:function(S){return U(S)},id:"rbgcp-gradient-bar-canvas".concat(o)}),r?.map(function(S,H){return m.createElement(Xf,{i:H,left:S.left,key:"".concat(H,"-").concat(S),setDragging:u})}))},Wf=function(A){var e=A.locales,r=A.presets,t=A.hideHue,n=A.hideInputs,a=A.hidePresets,s=A.hideOpacity,o=A.hideEyeDrop,l=A.hideControls,c=A.hideInputType,g=A.hideColorGuide,B=A.hidePickerSquare,u=A.hideGradientType,p=A.hideGradientStop,Q=A.hideGradientAngle,C=A.hideColorTypeBtns,x=A.hideAdvancedSliders,U=A.hideGradientControls,y=BA(),S=y.isGradient,H=y.pickerIdSuffix;return m.createElement("div",{style:{userSelect:"none"},id:"rbgcp-color-picker".concat(H)},!B&&m.createElement(Xl,null),!l&&m.createElement(Pf,{locales:e,hideEyeDrop:o,hideInputType:c,hideColorGuide:g,hideGradientType:u,hideGradientStop:p,hideColorTypeBtns:C,hideGradientAngle:Q,hideAdvancedSliders:x,hideGradientControls:U}),S&&m.createElement(Jf,null),!t&&m.createElement(Ll,null),!s&&m.createElement(Jl,null),!n&&m.createElement(_l,null),!a&&m.createElement(Zl,{presets:r}))},Fr=function(){return Fr=Object.assign||function(A){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n])}return A},Fr.apply(this,arguments)};function Yf(A){var e=A.idSuffix,r=A.value,t=r===void 0?"rgba(175, 51, 242, 1)":r,n=A.onChange,a=A.hideControls,s=a===void 0?!1:a,o=A.hideInputs,l=o===void 0?!1:o,c=A.hideOpacity,g=c===void 0?!1:c,B=A.hidePresets,u=B===void 0?!1:B,p=A.hideHue,Q=p===void 0?!1:p,C=A.presets,x=C===void 0?[]:C,U=A.hideEyeDrop,y=U===void 0?!1:U,S=A.hideAdvancedSliders,H=S===void 0?!1:S,L=A.hideColorGuide,h=L===void 0?!1:L,b=A.hideInputType,k=b===void 0?!1:b,M=A.hideColorTypeBtns,R=M===void 0?!1:M,O=A.hideGradientType,Z=O===void 0?!1:O,D=A.hideGradientAngle,z=D===void 0?!1:D,eA=A.hideGradientStop,tA=eA===void 0?!1:eA,AA=A.hideGradientControls,dA=AA===void 0?!1:AA,aA=A.locales,q=aA===void 0?Wl:aA,lA=A.width,sA=lA===void 0?294:lA,I=A.height,j=I===void 0?294:I,_=A.style,F=_===void 0?{}:_,N=A.className,T=A.disableDarkMode,G=T===void 0?!1:T,P=A.disableLightMode,$=P===void 0?!1:P,pA=A.hidePickerSquare,f=pA===void 0?!1:pA,v=A.showHexAlpha,w=v===void 0?!1:v,K=A.config,W=K===void 0?{}:K,X=vl(t),oA=typeof window>"u"||G?!1:!!(window.matchMedia("(prefers-color-scheme: dark)").matches||$),fA=Mf(oA,F),UA=oA?"-dark".concat(e?"-".concat(e):""):e?"-".concat(e):"";return m.createElement("div",{className:N,style:Fr(Fr({},fA.body),{width:sA})},m.createElement(El,{value:X,onChange:n,squareWidth:sA,passedConfig:W,squareHeight:j,isDarkMode:oA,hideOpacity:g,showHexAlpha:w,defaultStyles:fA,pickerIdSuffix:UA},m.createElement(Wf,{hideControls:s,hideInputs:l,hidePresets:u,hideOpacity:g,hideHue:Q,presets:x,hideEyeDrop:y,hideAdvancedSliders:H,hideColorGuide:h,hideInputType:k,hideColorTypeBtns:R,hideGradientType:Z,hideGradientAngle:z,hideGradientStop:tA,hideGradientControls:dA,hidePickerSquare:f,locales:q})))}const ln="rgb(0, 0, 0)",Zf=()=>{const[A,e]=E.useState(localStorage.getItem("customBackgroundColour")||ln),r=n=>{e(n),localStorage.setItem("customBackgroundColour",n),hA.emit("refresh","background")},t=()=>{e(ln),localStorage.setItem("customBackgroundColour",ln),RA(d.getMessage("toasts.reset")),hA.emit("refresh","background")};return i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.custom_colour")}),i.jsxs(cA,{children:[i.jsx(Yf,{value:A,onChange:r,hideEyeDrop:!0,hideColorGuide:!0,hidePresets:!0,hideAdvancedSliders:!1,hideColorTypeBtns:!1,hideInputType:!1,height:147}),i.jsx("div",{className:"colourReset",children:i.jsxs("span",{className:"link",onClick:()=>t(),onKeyDown:tr(()=>t()),role:"button",tabIndex:0,children:[i.jsx(we,{}),d.getMessage("modals.main.settings.buttons.reset")]})})]})]})};var zf=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],At=(A,e)=>{var r="";for(let t=1;t<=e;t++){let n=Math.floor(A)/Math.pow(83,e-t)%83;r+=zf[Math.floor(n)]}return r},cn=A=>{let e=A/255;return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},gn=A=>{let e=Math.max(0,Math.min(1,A));return e<=.0031308?Math.trunc(e*12.92*255+.5):Math.trunc((1.055*Math.pow(e,.4166666666666667)-.055)*255+.5)},qf=A=>A<0?-1:1,un=(A,e)=>qf(A)*Math.pow(Math.abs(A),e),us=class extends Error{constructor(A){super(A),this.name="ValidationError",this.message=A}},Bs=4,$f=(A,e,r,t)=>{let n=0,a=0,s=0,o=e*Bs;for(let c=0;c<e;c++){let g=Bs*c;for(let B=0;B<r;B++){let u=g+B*o,p=t(c,B);n+=p*cn(A[u]),a+=p*cn(A[u+1]),s+=p*cn(A[u+2])}}let l=1/(e*r);return[n*l,a*l,s*l]},Ah=A=>{let e=gn(A[0]),r=gn(A[1]),t=gn(A[2]);return(e<<16)+(r<<8)+t},eh=(A,e)=>{let r=Math.floor(Math.max(0,Math.min(18,Math.floor(un(A[0]/e,.5)*9+9.5)))),t=Math.floor(Math.max(0,Math.min(18,Math.floor(un(A[1]/e,.5)*9+9.5)))),n=Math.floor(Math.max(0,Math.min(18,Math.floor(un(A[2]/e,.5)*9+9.5))));return r*19*19+t*19+n},th=(A,e,r,t,n)=>{if(t<1||t>9||n<1||n>9)throw new us("BlurHash must have between 1 and 9 components");if(e*r*4!==A.length)throw new us("Width and height must match the pixels array");let a=[];for(let B=0;B<n;B++)for(let u=0;u<t;u++){let p=u==0&&B==0?1:2,Q=$f(A,e,r,(C,x)=>p*Math.cos(Math.PI*u*C/e)*Math.cos(Math.PI*B*x/r));a.push(Q)}let s=a[0],o=a.slice(1),l="",c=t-1+(n-1)*9;l+=At(c,1);let g;if(o.length>0){let B=Math.max(...o.map(p=>Math.max(...p))),u=Math.floor(Math.max(0,Math.min(82,Math.floor(B*166-.5))));g=(u+1)/166,l+=At(u,1)}else g=1,l+=At(0,1);return l+=At(Ah(s),4),o.forEach(B=>{l+=At(eh(B,g),2)}),l},rh=th;async function ds(A){return new Promise((e,r)=>{const t=new Image;t.onload=()=>{e({width:t.width,height:t.height}),typeof A!="string"&&URL.revokeObjectURL(t.src)},t.onerror=()=>r(new Error("Failed to load image")),typeof A=="string"?t.src=A:t.src=URL.createObjectURL(A)})}async function fs(A,e=4,r=3){return new Promise((t,n)=>{const a=new Image;a.onload=()=>{try{const s=document.createElement("canvas"),o=s.getContext("2d"),l=64,c=Math.min(l/a.width,l/a.height);s.width=Math.floor(a.width*c),s.height=Math.floor(a.height*c),o.drawImage(a,0,0,s.width,s.height);const g=o.getImageData(0,0,s.width,s.height),B=rh(g.data,g.width,g.height,e,r);typeof A!="string"&&URL.revokeObjectURL(a.src),t(B)}catch(s){n(s)}},a.onerror=()=>n(new Error("Failed to load image for blur hash")),typeof A=="string"?a.src=A:a.src=URL.createObjectURL(A)})}function Bn(A){const e=A.split(",")[1];if(!e)return 0;const r=(e.match(/=/g)||[]).length;return Math.floor(e.length*3/4-r)}function hs(A,e){return A&&A.name?A.name:`Image ${e+1}`}function nh(){const A={};return Object.keys(localStorage).forEach(e=>{A[e]=localStorage.getItem(e)}),new TextEncoder().encode(JSON.stringify(A)).length}function ve(A){if(A===0)return"0 Bytes";if(!A)return"Unknown";const e=1024,r=["Bytes","KB","MB","GB"],t=Math.floor(Math.log(A)/Math.log(e));return Math.round(A/Math.pow(e,t)*10)/10+" "+r[t]}const ah=({files:A,onConfirm:e,onCancel:r})=>{const[t,n]=E.useState(""),a=()=>{e(t.trim())};return i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.tag_images")}),i.jsx("button",{className:"closeModal",onClick:r,"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(vs,{})})]}),i.jsxs("div",{className:"taggingModalContent",children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.tag_description",{count:A.length})}),i.jsxs("div",{className:"taggingInput",children:[i.jsx("label",{children:d.getMessage("modals.main.settings.sections.background.source.folder_name")}),i.jsx("input",{type:"text",placeholder:d.getMessage("modals.main.settings.sections.background.source.folder_placeholder"),value:t,onChange:s=>n(s.target.value),onKeyPress:s=>{s.key==="Enter"&&a()},autoFocus:!0})]})]}),i.jsxs("div",{className:"resetFooter",children:[i.jsx(vA,{type:"settings",onClick:r,label:d.getMessage("modals.main.settings.buttons.cancel")}),i.jsx(vA,{type:"settings",onClick:a,label:d.getMessage("modals.main.settings.buttons.continue")})]})]})},dn=A=>{try{localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(A.length))}catch{}},Wi=E.memo(()=>{const[A,e]=E.useState([]),[r,t]=E.useState(!1),[n,a]=E.useState([]),[s,o]=E.useState(!0),[l,c]=E.useState(!1),[g,B]=E.useState({current:0,total:0}),[u,p]=E.useState(!1),[Q,C]=E.useState(new Set),[x,U]=E.useState(localStorage.getItem("customImageSort")||"date_desc"),[y,S]=E.useState(!1),[H,L]=E.useState({usage:0,quota:0}),h=E.useRef(null),b=E.useRef(0),k=5e7;E.useEffect(()=>{(async()=>{if(navigator.storage&&navigator.storage.estimate)try{const N=await navigator.storage.estimate();L({usage:N.usage||0,quota:N.quota||k})}catch(N){console.warn("Could not get storage estimate:",N),L({usage:0,quota:k})}else L({usage:0,quota:k})})()},[A]),E.useEffect(()=>{(async()=>{try{await Co();const N=await Ue();e(N),N.forEach(async T=>{if(!T.dimensions&&T.url&&!It(T.url))try{const G=await ds(T.url),P=await fs(T.url);await Qo(T.id,{dimensions:G,blurHash:P});const $=await Ue();e($)}catch(G){console.warn("Could not extract metadata for existing image:",G)}})}catch(N){console.error("Error loading backgrounds:",N),RA(d.getMessage("toasts.error"))}finally{o(!1)}})()},[]);const M=E.useCallback(async(F,N,T,G=!1)=>{try{const P={url:N,name:T.name,uploadDate:Date.now(),dimensions:T.dimensions,fileSize:T.fileSize,folder:T.folder||"",blurHash:T.blurHash};await ir(P);const $=await Ue();e($),dn($),G||hA.emit("refresh","background")}catch(P){throw console.error("Error saving background:",P),P}},[]),R=async(F,N="")=>{const T=A.reduce((P,$)=>$.url&&$.url.startsWith("data:")?P+Bn($.url):P,0),G=H.quota||k;if(T/G>.9&&navigator.storage&&navigator.storage.persist)try{await navigator.storage.persist()&&console.log("Storage persistence granted")}catch(P){console.warn("Could not request storage persistence:",P)}if(It(F.type)){if(T+F.size>G)throw new Error("no_storage");const P=new FileReader;return new Promise(($,pA)=>{P.onloadend=()=>{$({dataUrl:P.result,metadata:{name:hs(F,A.length),dimensions:null,fileSize:F.size,folder:N,blurHash:null}})},P.onerror=pA,P.readAsDataURL(F)})}else{const P=await na.compressAccurately(F,{size:450,accuracy:.9}),$=H.quota||k;if(T+P.size>$)throw new Error("no_storage");const pA=await na.filetoDataURL(P),[f,v]=await Promise.all([ds(pA),fs(pA).catch(()=>null)]);return{dataUrl:pA,metadata:{name:hs(F,A.length),dimensions:f,fileSize:Bn(pA),folder:N,blurHash:v}}}},O=async(F,N="")=>{c(!0),B({current:0,total:F.length});const T=[];for(let G=0;G<F.length;G++)try{const P=await R(F[G],N);await M(F[G],P.dataUrl,P.metadata,!0),B({current:G+1,total:F.length})}catch(P){if(P.message==="no_storage"||P.name==="QuotaExceededError"){RA(d.getMessage("toasts.no_storage"));break}T.push(F[G].name)}T.length>0&&RA(d.getMessage("toasts.error")+`: ${T.join(", ")}`),hA.emit("refresh","background"),c(!1),B({current:0,total:0})},Z=async F=>{t(!1),await O(n,F),a([])},D=E.useCallback(async(F,N)=>{try{F==="add"?await ir(""):await Bo(N);const T=await Ue();e(T),dn(T),C(new Set),hA.emit("refresh","backgroundrefresh")}catch(T){console.error("Error modifying background:",T),RA(d.getMessage("toasts.error"))}},[]),z=async()=>{if(Q.size!==0)try{const F=Array.from(Q).sort((T,G)=>G-T);await mo(F);const N=await Ue();e(N),C(new Set),dn(N),hA.emit("refresh","backgroundrefresh"),RA(d.getMessage("toasts.deleted"))}catch(F){console.error("Error batch deleting:",F),RA(d.getMessage("toasts.error"))}},eA=F=>{const N=new Set(Q);N.has(F)?N.delete(F):N.add(F),C(N)},tA=F=>{U(F),localStorage.setItem("customImageSort",F)},AA=E.useCallback(()=>{document.getElementById("bg-input").click()},[]),dA=async F=>{F.length>1?(a(F),t(!0)):await O(F,"")},aA=[...A].sort((F,N)=>{switch(x){case"date_asc":return F.uploadDate-N.uploadDate;case"date_desc":return N.uploadDate-F.uploadDate;case"name_asc":return(F.name||"").localeCompare(N.name||"");case"name_desc":return(N.name||"").localeCompare(F.name||"");case"size_asc":return(F.fileSize||0)-(N.fileSize||0);case"size_desc":return(N.fileSize||0)-(F.fileSize||0);default:return 0}}),q=A.reduce((F,N)=>N.url&&N.url.startsWith("data:")?F+Bn(N.url):F,0),lA=H.quota||k,sA=q/lA*100,I=nh(),j=5242880;E.useEffect(()=>{const F=h.current;if(!F)return;const N=$=>{$.preventDefault(),$.stopPropagation()},T=$=>{$.preventDefault(),$.stopPropagation(),b.current++,$.dataTransfer.items&&$.dataTransfer.items.length>0&&p(!0)},G=$=>{$.preventDefault(),$.stopPropagation(),b.current--,b.current===0&&p(!1)},P=async $=>{$.preventDefault(),$.stopPropagation(),p(!1),b.current=0;const pA=Array.from($.dataTransfer.files);pA.length!==0&&(pA.length>1?(a(pA),t(!0)):await O(pA,""))};return F.ondragover=N,F.ondragenter=T,F.ondragleave=G,F.ondrop=P,()=>{F&&(F.ondragover=null,F.ondragenter=null,F.ondragleave=null,F.ondrop=null)}},[A.length,O]);const _=aA.filter(F=>F&&It(F.url)).length>0;return s?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.loading")})]})}):l?i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx("div",{id:"loader"}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.uploading",{current:g.current,total:g.total})}),i.jsxs("span",{className:"subtitle",children:[Math.round(g.current/g.total*100),"%"]})]})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:`dropzone ${u?"dragging":""}`,ref:h,style:u?{outline:"2px dashed #ff5c25",outlineOffset:"-2px",backgroundColor:"rgba(255, 92, 37, 0.1)",transition:"all 0.2s ease"}:{},children:[i.jsxs("div",{className:"imagesTopBar",children:[i.jsxs("div",{className:"imagesTopBarTitle",children:[i.jsx(ta,{}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.custom_title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.custom_description")})]})]}),i.jsx("div",{className:"topbarbuttons",children:i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(fo,{}),label:d.getMessage("modals.main.settings.sections.background.source.upload")})})]}),i.jsxs("div",{className:"imagesControlBar",children:[i.jsxs("div",{className:"controlBarLeft",children:[i.jsxs("span",{className:"image-count",children:[A.length," ",A.length===1?"image":"images",i.jsxs("span",{className:"storage-info",children:[" ","· ",ve(q)," / ",ve(lA),sA>80&&navigator.storage&&navigator.storage.persist&&i.jsx(ra,{title:"Request persistent storage to prevent browser from automatically clearing your images",children:i.jsx("button",{className:"request-storage-link",onClick:async()=>{try{await navigator.storage.persist()?RA("Persistent storage granted - your images are protected from eviction"):RA("Persistent storage denied - images may be cleared if storage is low")}catch(F){console.error("Storage request error:",F),RA("Could not request persistent storage")}},children:"Protect images"})})]})]}),i.jsx("span",{className:"selection-separator",children:"·"}),Q.size>0?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"selected-count",children:[Q.size," selected"]}),i.jsx("button",{className:"delete-link",onClick:z,children:"Delete"}),Q.size<A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"}),Q.size===A.length&&i.jsx("button",{className:"select-all-link",onClick:()=>C(new Set),children:"Deselect all"})]}):A.length>0&&i.jsx("button",{className:"select-all-link",onClick:()=>{const F=new Set(A.map((N,T)=>T));C(F)},children:"Select all"})]}),i.jsx("div",{className:"controlBarRight",children:i.jsx(KA,{name:"customImageSort",category:"customImageSort",onChange:tA,items:[{value:"date_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_newest")},{value:"date_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.date_oldest")},{value:"name_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_asc")},{value:"name_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.name_desc")},{value:"size_asc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_small")},{value:"size_desc",text:d.getMessage("modals.main.settings.sections.background.source.sort.size_large")}]})})]}),i.jsx("div",{className:"dropzone-content",children:aA.length>0?i.jsx("div",{className:`images-grid ${Q.size>0?"selection-mode":""}`,children:aA.map(F=>{const N=A.findIndex(G=>G===F),T=F&&It(F.url);return i.jsxs("div",{className:"image-card",onClick:G=>{G.target.closest(".delete-button")||eA(N)},children:[i.jsx("div",{className:"image-checkbox",children:i.jsx("input",{type:"checkbox",checked:Q.has(N),onChange:()=>eA(N),"aria-label":F.name||`${N+1}`})}),i.jsxs("div",{className:"image-preview",children:[F.blurHash&&!T&&(()=>{const G=ho(F.blurHash,32,32);return G?i.jsx("div",{className:"blur-placeholder",style:{backgroundImage:`url(${G})`,filter:"blur(20px)",position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:0}}):null})(),T?i.jsx("div",{className:"video-icon-wrapper",children:i.jsx(wo,{className:"customvideoicon"})}):i.jsx("img",{alt:F.name||"Custom background",src:F.url,loading:"lazy",style:{position:"relative",zIndex:1}})]}),i.jsxs("div",{className:"image-metadata",children:[i.jsx("span",{className:"image-name",title:F.name,children:F.name||"Unnamed"}),i.jsxs("div",{className:"image-details",children:[F.dimensions&&i.jsxs("span",{className:"detail",children:[F.dimensions.width," × ",F.dimensions.height]}),F.fileSize&&i.jsx("span",{className:"detail",children:ve(F.fileSize)}),F.folder&&i.jsx("span",{className:"detail folder-tag",children:F.folder})]})]}),i.jsx(ra,{title:d.getMessage("modals.main.settings.sections.background.source.remove"),children:i.jsx("button",{className:"delete-button","aria-label":d.getMessage("modals.main.settings.sections.background.source.remove"),onClick:G=>{G.stopPropagation(),D("remove",N)},children:i.jsx(ht,{})})})]},N)})}):i.jsx("div",{className:"photosEmpty",children:i.jsxs("div",{className:"emptyNewMessage",children:[i.jsx(ta,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.drop_to_upload")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.formats",{list:"jpeg, png, webp, webm, gif, mp4, webm, ogg"})}),i.jsx(vA,{type:"settings",onClick:AA,icon:i.jsx(po,{}),label:d.getMessage("modals.main.settings.sections.background.source.select")})]})})})]}),i.jsx(Ns,{id:"bg-input",accept:"image/jpeg, image/png, image/webp, image/webm, image/gif, video/mp4, video/webm, video/ogg",multiple:!0,loadFunction:async F=>{await dA(F)}}),_&&i.jsxs(i.Fragment,{children:[i.jsx(mA,{name:"backgroundVideoLoop",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.loop_video")}),i.jsx(mA,{name:"backgroundVideoMute",category:"backgroundvideo",text:d.getMessage("modals.main.settings.sections.background.source.mute_video")})]}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>{t(!1),a([])},isOpen:r,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(ah,{files:n,onConfirm:Z,onCancel:()=>{t(!1),a([])}})}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>S(!1),isOpen:y,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsxs("div",{className:"smallModal",children:[i.jsxs("div",{className:"shareHeader",children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.background.source.storage_info")}),i.jsx("button",{className:"closeModal",onClick:()=>S(!1),"aria-label":d.getMessage("modals.welcome.buttons.close"),children:i.jsx(ht,{})})]}),i.jsxs("div",{style:{padding:"20px"},children:[i.jsx("p",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.background.source.storage_description")}),i.jsxs("div",{style:{marginTop:"20px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Custom Backgrounds"}),i.jsxs("p",{className:"subtitle",children:[ve(q)," / ",ve(lA)," (",Math.round(sA),"%)"]})]}),i.jsxs("div",{style:{marginTop:"15px"},children:[i.jsx("p",{className:"subtitle",style:{fontWeight:"600",marginBottom:"8px"},children:"Total localStorage Usage"}),i.jsxs("p",{className:"subtitle",children:[ve(I)," / ",ve(j)," (",Math.round(I/j*100),"%)"]}),i.jsx("p",{className:"subtitle",style:{marginTop:"8px",fontSize:"12px",opacity:.7},children:"Includes all Mue settings and custom images"})]})]}),i.jsx("div",{className:"resetFooter",children:i.jsx(vA,{type:"settings",onClick:()=>S(!1),label:d.getMessage("modals.main.settings.buttons.close")})})]})})]})});Wi.displayName="CustomSettings";const sh=({usingImage:A})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.display"),subtitle:d.getMessage("modals.main.settings.sections.background.display_subtitle")}),i.jsxs(cA,{children:[i.jsx(mA,{name:"bgtransition",text:d.getMessage("modals.main.settings.sections.background.transition"),element:".other",disabled:!A}),i.jsx(mA,{name:"photoInformation",text:d.getMessage("modals.main.settings.sections.background.photo_information"),element:".other"}),i.jsx(mA,{name:"photoMap",text:d.getMessage("modals.main.settings.sections.background.show_map"),element:".other",disabled:!A})]})]});d.getMessage("modals.main.settings.sections.background.source.quality.original"),d.getMessage("modals.main.settings.sections.background.source.quality.high"),d.getMessage("modals.main.settings.sections.background.source.quality.normal"),d.getMessage("modals.main.settings.sections.background.source.quality.datasaver");const ih=[{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.navbar.refresh_options.none")},{value:"grayscale",text:d.getMessage("modals.main.settings.sections.background.effects.filters.grayscale")},{value:"sepia",text:d.getMessage("modals.main.settings.sections.background.effects.filters.sepia")},{value:"invert",text:d.getMessage("modals.main.settings.sections.background.effects.filters.invert")},{value:"saturate",text:d.getMessage("modals.main.settings.sections.background.effects.filters.saturate")},{value:"contrast",text:d.getMessage("modals.main.settings.sections.background.effects.filters.contrast")}];function Yi(){return[{value:"api",text:d.getMessage("wb.settings_bundled_photos")},{value:"custom",text:d.getMessage("modals.main.settings.sections.background.type.custom_image")},{value:"colour",text:d.getMessage("modals.main.settings.sections.background.type.custom_colour")},{value:"random_colour",text:d.getMessage("modals.main.settings.sections.background.type.random_colour")},{value:"random_gradient",text:d.getMessage("modals.main.settings.sections.background.type.random_gradient")}]}const oh=({backgroundFilter:A,onFilterChange:e})=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle")}),i.jsxs(cA,{children:[i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.blur"),name:"blur",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.brightness"),name:"brightness",min:"0",max:"100",default:"100",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.effects.filters.title"),name:"backgroundFilter",onChange:e,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo",items:ih}),A!=="none"&&i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.background.effects.filters.amount"),name:"backgroundFilterAmount",min:"0",max:"100",default:"0",display:"%",marks:lt.background,category:"backgroundeffect",element:"#backgroundImage, #backgroundVideo"})]})]}),lh=({backgroundType:A,onTypeChange:e})=>i.jsxs(rA,{final:A==="random_colour"||A==="random_gradient",children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:e,category:"background",items:Yi()})})]}),ws=({icon:A,title:e,subtitle:r,onClick:t,action:n})=>i.jsxs("div",{className:"moreSettings",onClick:t,children:[i.jsxs("div",{className:"left",role:"button",tabIndex:0,onKeyDown:a=>{a.target===a.currentTarget&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),t?.(a))},children:[i.jsx(A,{}),i.jsxs("div",{className:"content",children:[i.jsx("span",{className:"title",children:e}),i.jsx("span",{className:"subtitle",children:r})]})]}),i.jsx("div",{className:"action",onClick:n?a=>a.stopPropagation():void 0,children:n||i.jsx(ms,{})})]}),Zi=E.memo(({currentSubSection:A,onSubSectionChange:e,sectionName:r})=>{const[t,n]=E.useState(localStorage.getItem("backgroundType")||"api"),[a,s]=E.useState(localStorage.getItem("backgroundFilter")||"none"),o=["colour","random_colour","random_gradient"].includes(t);E.useEffect(()=>{o&&A!=="source"&&e("source",r)},[o,A,e,r]);const l=()=>{switch(t){case"custom":return i.jsx(Wi,{});case"colour":return i.jsx(Zf,{});default:return null}},c=t!=="colour"&&t!=="random_colour"&&t!=="random_gradient",g=t==="api"||t==="custom",B=()=>A==="effects"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.effects.title"),goBack:()=>e(null,r)}):A==="source"?i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.background.source.title"),goBack:()=>e(null,r)}):i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.background.title"),setting:"background",category:"background",visibilityToggle:!0});return i.jsxs(i.Fragment,{children:[B(),!A&&i.jsxs(i.Fragment,{children:[i.jsx(ws,{icon:vo,title:d.getMessage("modals.main.settings.sections.background.source.title"),subtitle:d.getMessage("modals.main.settings.sections.background.source.subtitle"),onClick:()=>e("source",r),action:i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.background.type.title"),name:"backgroundType",onChange:u=>{n(u),u==="custom"&&hA.emit("refresh","background")},category:"background",items:Yi()})}),g&&i.jsx(ws,{icon:Uo,title:d.getMessage("modals.main.settings.sections.background.effects.title"),subtitle:d.getMessage("modals.main.settings.sections.background.effects.subtitle"),onClick:()=>e("effects",r)})]}),!A&&g&&i.jsx(sh,{usingImage:c}),A==="source"&&i.jsxs(i.Fragment,{children:[i.jsx(lh,{backgroundType:t,onTypeChange:n}),l()]}),g&&A==="effects"&&i.jsx(oh,{backgroundFilter:a,onFilterChange:u=>s(u)})]})});Zi.displayName="BackgroundOptions";function ch(){const A=[{value:"ask",text:d.getMessage("wb.ask")},{value:"act",text:d.getMessage("wb.act")},...Fo()?[{value:"search",text:d.getMessage("wb.search")}]:[]];return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_taskbox"),setting:"taskBox",category:"widgets",visibilityToggle:!0}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("wb.settings_default_mode"),subtitle:d.getMessage("wb.settings_taskbox_sub")}),i.jsx(cA,{children:i.jsx(KA,{name:"taskBoxMode",category:"widgets",items:A})})]}),i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("wb.settings_recent")}),i.jsx(cA,{children:i.jsx(ys,{name:"recentChats",category:"widgets"})})]})]})}const gh=["Africa/Abidjan","Africa/Accra","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Nassau","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kiev","Europe/Kirov","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Uzhgorod","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zaporozhye","Europe/Zurich","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"];function uh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const[t,n]=E.useState(!1),a="modals.main.settings.sections.advanced",s=()=>localStorage.getItem("welcomePreview")!=="true"?i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.data"),subtitle:d.getMessage("modals.main.settings.sections.advanced.data_description")}),i.jsxs("div",{className:"resetDataButtonsLayout",children:[i.jsx(vA,{onClick:()=>n(!0),icon:i.jsx(Eo,{}),label:d.getMessage("modals.main.settings.buttons.reset")}),i.jsx(vA,{onClick:()=>Mo(),icon:i.jsx(xo,{}),label:d.getMessage("modals.main.settings.buttons.export")}),i.jsx(vA,{onClick:()=>document.getElementById("file-input").click(),icon:i.jsx(Io,{}),label:d.getMessage("modals.main.settings.buttons.import")})]}),i.jsx(Ns,{id:"file-input",accept:"application/json",type:"settings",loadFunction:c=>Ko(c)})]}):i.jsx("div",{className:"emptyItems",children:i.jsx("div",{className:"emptyMessage",children:i.jsxs("div",{className:"loaderHolder",children:[i.jsx(Ho,{}),i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.title")}),i.jsx("span",{className:"subtitle",children:d.getMessage("modals.main.settings.sections.advanced.preview_data_disabled.description")})]})})}),o=A==="data";let l;return o?l=i.jsx(TA,{title:d.getMessage(`${a}.title`),secondaryTitle:d.getMessage(`${a}.data`),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage(`${a}.title`),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsxs(i.Fragment,{children:[i.jsx(s,{}),i.jsx(wt,{closeTimeoutMS:100,onRequestClose:()=>n(!1),isOpen:t,className:"Modal resetmodal mainModal",overlayClassName:"Overlay resetoverlay",ariaHideApp:!1,children:i.jsx(bo,{modalClose:()=>n(!1)})})]}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{title:d.getMessage(`${a}.data`),subtitle:d.getMessage(`${a}.data_subtitle`),onClick:()=>e("data",r),icon:i.jsx(yo,{})}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.timezone.title"),subtitle:d.getMessage("modals.main.settings.sections.advanced.timezone.subtitle")}),i.jsx(cA,{children:i.jsx(KA,{name:"timezone",category:"timezone",items:[{value:"auto",text:d.getMessage("modals.main.settings.sections.advanced.timezone.automatic")},...gh.map(c=>({value:c,text:c}))]})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.tab_name"),subtitle:d.getMessage("modals.main.settings.sections.advanced.tab_name_subtitle")}),i.jsx(cA,{children:i.jsx(lr,{name:"tabName",default:d.getMessage("tabname"),category:"other"})})]}),i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.advanced.custom_css"),subtitle:d.getMessage("modals.main.settings.sections.advanced.custom_css_subtitle")}),i.jsx(cA,{children:i.jsx(lr,{name:"customcss",textarea:!0,category:"other",customcss:!0})})]})]})]})}function Bh({currentSubSection:A,onSubSectionChange:e,sectionName:r}){const t=()=>i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.theme.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.theme.description")}),i.jsx(cA,{children:i.jsx(hn,{name:"theme",options:[{name:d.getMessage("modals.main.settings.sections.appearance.theme.auto"),value:"auto"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.light"),value:"light"},{name:d.getMessage("modals.main.settings.sections.appearance.theme.dark"),value:"dark"}],category:"other"})})]}),n=()=>{const c="modals.main.settings.sections.appearance.font.weight";return i.jsxs(rA,{children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.font.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.font.description")}),i.jsxs(cA,{children:[i.jsx(lr,{title:d.getMessage("modals.main.settings.sections.appearance.font.custom"),name:"font",upperCaseFirst:!0,category:"other"}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.weight.title"),name:"fontweight",category:"other",items:[{value:"100",text:d.getMessage(c+".thin")},{value:"200",text:d.getMessage(c+".extra_light")},{value:"300",text:d.getMessage(c+".light")},{value:"400",text:d.getMessage(c+".normal")},{value:"500",text:d.getMessage(c+".medium")},{value:"600",text:d.getMessage(c+".semi_bold")},{value:"700",text:d.getMessage(c+".bold")},{value:"800",text:d.getMessage(c+".extra_bold")}]}),i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.font.style.title"),name:"fontstyle",category:"other",items:[{value:"normal",text:d.getMessage("modals.main.settings.sections.appearance.font.style.normal")},{value:"italic",text:d.getMessage("modals.main.settings.sections.appearance.font.style.italic")},{value:"oblique",text:d.getMessage("modals.main.settings.sections.appearance.font.style.oblique")}]})]})]})},a=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.style.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.style.description")}),i.jsx(cA,{children:i.jsx(hn,{name:"widgetStyle",element:".other",options:[{name:d.getMessage("modals.main.settings.sections.appearance.style.legacy"),value:"legacy"},{name:d.getMessage("modals.main.settings.sections.appearance.style.new"),value:"new"}],category:"widgets"})})]}),s=()=>i.jsxs(rA,{final:!0,children:[i.jsx(nA,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description")}),i.jsxs(cA,{children:[i.jsx(KA,{label:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.title"),name:"textBorder",category:"other",items:[{value:"new",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.new")},{value:"true",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.old")},{value:"none",text:d.getMessage("modals.main.settings.sections.appearance.accessibility.text_shadow.none")}]}),i.jsx(mA,{text:d.getMessage("modals.main.settings.sections.appearance.accessibility.animations"),name:"animations",category:"other"}),i.jsx(ot,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.toast_duration"),name:"toastDisplayTime",default:"2500",step:"100",min:"500",max:"5000",marks:lt.toast,display:" "+d.getMessage("modals.main.settings.sections.appearance.accessibility.milliseconds")})]})]}),o=A==="accessibility";let l;return o?l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),secondaryTitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),goBack:()=>e(null,r),report:!1}):l=i.jsx(TA,{title:d.getMessage("modals.main.settings.sections.appearance.title"),report:!1}),i.jsxs(i.Fragment,{children:[l,o?i.jsx(s,{}):i.jsxs(i.Fragment,{children:[i.jsx(Vn,{title:d.getMessage("modals.main.settings.sections.appearance.accessibility.title"),subtitle:d.getMessage("modals.main.settings.sections.appearance.accessibility.description"),icon:i.jsx(So,{}),onClick:()=>e("accessibility",r)}),i.jsx(t,{}),i.jsx(n,{}),i.jsx(a,{})]})]})}const dh=E.memo(Bh),fh=`BSD 3-Clause License
-
-Copyright (c) 2019-2026 The Mue Authors
-Copyright (c) 2018-2019 David Ralph
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-3. Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-`;function hh(){const A=Object.keys(Lo),{MUE_REPO_URL:e,MUE_VERSION:r,REPO_URL:t,WEBSITE_URL:n}=d.constants;return i.jsxs(i.Fragment,{children:[i.jsx(TA,{title:d.getMessage("wb.settings_credits")}),i.jsx(rA,{children:i.jsx(nA,{title:"WebBrain",subtitle:"The WebBrain new tab is free software, licensed GPL-3.0-or-later, and makes no network requests of its own."})}),i.jsx(rA,{children:i.jsx(nA,{title:`Based on Mue ${r}`,subtitle:i.jsxs(i.Fragment,{children:["Derived from ",i.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:"Mue"})," by The Mue Authors and David Ralph, used under the BSD-3-Clause license reproduced below. Mue is not affiliated with or endorsing WebBrain."]})})}),i.jsx(rA,{children:i.jsx(nA,{title:d.getMessage("wb.settings_bundled_photos"),subtitle:`${A.join(", ")}. Offline images shipped with Mue (Unsplash, Pexels and Pixabay).`})}),i.jsx(rA,{children:i.jsx(nA,{title:"Fonts and icons",subtitle:"Inter, Lexend Deca and Montserrat (SIL Open Font License); Material Design icons via react-icons."})}),i.jsx(rA,{final:!0,children:i.jsx(nA,{title:"Mue license",subtitle:i.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},children:fh})})}),i.jsxs("p",{style:{opacity:.7,fontSize:"0.85rem"},children:[i.jsx("a",{href:n,target:"_blank",rel:"noreferrer",children:n.replace("https://","")})," · ",i.jsx("a",{href:t,target:"_blank",rel:"noreferrer",children:"GitHub"})]})]})}function wh(){return i.jsx("span",{className:"greeting preview",children:"Good Morning"})}const ph=E.memo(wh),Ch=E.lazy(()=>ko(()=>import("./index-DdIzjGFh.js"),__vite__mapDeps([0,1,2]),import.meta.url));function Qh(){return localStorage.getItem("timeType")==="analogue"?i.jsx(E.Suspense,{fallback:i.jsx(i.Fragment,{}),children:i.jsx("div",{className:"clockBackground",children:i.jsx(Ch,{className:"analogclock clock-container",value:"2022-10-07T17:00:00+00:00",size:50})})}):localStorage.getItem("timeType")==="percentageComplete"?i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"68%"}):localStorage.getItem("timeType")==="verticalClock"?i.jsxs("span",{className:"vertical-clock clock-container",style:{fontSize:"30px"},children:[i.jsx("div",{className:"hour",children:"10"}),i.jsx("div",{className:"minute",children:"23"})]}):i.jsx("span",{className:"vertical-clock clock-container clockSkeleton",children:"10:24"})}const mh=E.memo(Qh);function vh(A){return Gn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(A)}function Uh(A){return Gn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"},child:[]}]})(A)}function Fh(A){return Gn({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17.625 1.499c-2.32 0-4.354 1.203-5.625 3.03-1.271-1.827-3.305-3.03-5.625-3.03C3.129 1.499 0 4.253 0 8.249c0 4.275 3.068 7.847 5.828 10.227a33.14 33.14 0 0 0 5.616 3.876l.028.017.008.003-.001.003c.163.085.342.126.521.125.179.001.358-.041.521-.125l-.001-.003.008-.003.028-.017a33.14 33.14 0 0 0 5.616-3.876C20.932 16.096 24 12.524 24 8.249c0-3.996-3.129-6.75-6.375-6.75zm-.919 15.275a30.766 30.766 0 0 1-4.703 3.316l-.004-.002-.004.002a30.955 30.955 0 0 1-4.703-3.316c-2.677-2.307-5.047-5.298-5.047-8.523 0-2.754 2.121-4.5 4.125-4.5 2.06 0 3.914 1.479 4.544 3.684.143.495.596.797 1.086.796.49.001.943-.302 1.085-.796.63-2.205 2.484-3.684 4.544-3.684 2.004 0 4.125 1.746 4.125 4.5 0 3.225-2.37 6.216-5.048 8.523z"},child:[]}]})(A)}function bh(){return i.jsx("div",{className:"quickLinksSkeleton",children:i.jsxs("div",{className:"circles",children:[i.jsx("div",{children:i.jsx(vh,{})}),i.jsx("div",{children:i.jsx(Uh,{})}),i.jsx("div",{children:i.jsx(Fh,{})})]})})}const yh=E.memo(bh);function Eh(){return i.jsx("span",{className:"date",children:"Thursday January 1st"})}const xh=E.memo(Eh);function Ih(){return i.jsx("h2",{className:"message",children:i.jsxs("span",{children:["Message",i.jsx("br",{})]})})}const Hh=E.memo(Ih),Sh={greeting:d.getMessage("modals.main.settings.sections.greeting.title"),time:d.getMessage("modals.main.settings.sections.time.title"),quicklinks:d.getMessage("modals.main.settings.sections.quicklinks.title"),date:d.getMessage("modals.main.settings.sections.date.title"),message:d.getMessage("modals.main.settings.sections.message.title")},Lh=({id:A})=>{const{attributes:e,listeners:r,setNodeRef:t,transform:n,transition:a}=xs({id:A}),s={transform:Is.Transform.toString(n),transition:a};return i.jsxs("li",{ref:t,style:s,...e,...r,className:"sortableItem",children:[Sh[A],i.jsx(Es,{})]})},kh=()=>{const[A,e]=E.useState(()=>JSON.parse(localStorage.getItem("order"))||["greeting","time","quicklinks","date","message"]),r=Hs(cr(ks),cr(Ls,{coordinateGetter:Ss})),t=s=>{const{active:o,over:l}=s;l&&o.id!==l.id&&e(c=>{const g=c.indexOf(o.id),B=c.indexOf(l.id);return Os(c,g,B)})},n=s=>s==="quicklinks"?localStorage.getItem("quicklinksenabled")==="true":localStorage.getItem(s)==="true",a=s=>{switch(s){case"greeting":return i.jsx(ph,{});case"time":return i.jsx(mh,{});case"quicklinks":return i.jsx(yh,{});case"date":return i.jsx(xh,{});case"message":return i.jsx(Hh,{});default:return null}};return E.useEffect(()=>{localStorage.setItem("order",JSON.stringify(A)),d.stats.postEvent("setting","Widget order"),hA.emit("refresh","widgets")},[A]),i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"mainTitle",children:d.getMessage("modals.main.marketplace.product.overview")}),i.jsxs("div",{className:"overviewGrid",children:[i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.welcome.buttons.preview")}),i.jsx("div",{className:"tabPreview",children:i.jsx("div",{className:"previewItem",style:{maxWidth:"50%"},children:A.map((s,o)=>n(s)?i.jsx("div",{className:"previewItem",children:a(s)},`item-${s}`):null)})})]}),i.jsxs("div",{children:[i.jsx("span",{className:"title",children:d.getMessage("modals.main.settings.sections.order.title")}),i.jsx(Ms,{sensors:r,collisionDetection:Ks,onDragEnd:t,children:i.jsx(Ts,{items:A,strategy:Ds,children:i.jsx("ul",{className:"sortableContainer",children:A.map(s=>n(s)?i.jsx(Lh,{id:s},s):null)})})})]})]})]})},ps=[{label:"modals.main.marketplace.product.overview",name:"order",component:kh},{label:"modals.main.settings.sections.appearance.navbar.title",name:"navbar",component:rl},{label:"modals.main.settings.sections.greeting.title",name:"greeting",component:sl},{label:"modals.main.settings.sections.time.title",name:"time",component:il},{label:"modals.main.settings.sections.quicklinks.title",name:"quicklinks",component:ul},{label:"modals.main.settings.sections.date.title",name:"date",component:ol},{label:"modals.main.settings.sections.message.title",name:"message",component:Bl},{label:"modals.main.settings.sections.background.title",name:"background",component:Zi},{label:"wb.settings_taskbox",name:"taskbox",component:ch},{label:"modals.main.settings.sections.appearance.title",name:"appearance",component:dh},{label:"modals.main.settings.sections.advanced.title",name:"advanced",component:uh},{label:"wb.settings_credits",name:"credits",component:hh}];function Mh(A){const e=Ut(),r=E.useMemo(()=>ps.map(t=>({...t,translatedLabel:e(t.label)})),[e]);return i.jsx($o,{changeTab:t=>A.changeTab(t),current:"settings",currentTab:A.currentTab,onSectionChange:A.onSectionChange,onSubSectionChange:A.onSubSectionChange,currentSubSection:A.currentSubSection,deepLinkData:A.deepLinkData,navigationTrigger:A.navigationTrigger,sections:ps,children:r.map(({label:t,name:n,component:a,translatedLabel:s})=>i.jsx("div",{label:s,name:n,children:i.jsx(a,{currentSubSection:A.currentSubSection,onSubSectionChange:A.onSubSectionChange,sectionName:n})},n))})}const Th=E.memo(Mh);export{Th as default};
diff --git a/src/chrome/newtab/assets/index-ZvUWfRHz.js b/src/firefox/newtab/assets/index-7-Cak-QP.js
similarity index 96%
rename from src/chrome/newtab/assets/index-ZvUWfRHz.js
rename to src/firefox/newtab/assets/index-7-Cak-QP.js
index fb8ea4262..151892d46 100644
--- a/src/chrome/newtab/assets/index-ZvUWfRHz.js
+++ b/src/firefox/newtab/assets/index-7-Cak-QP.js
@@ -1,5 +1,5 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-DqpzHKoz.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
-var oN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function qS(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var u=function l(){var d=!1;try{d=this instanceof l}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var d=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(u,l,d.get?d:{enumerable:!0,get:function(){return o[l]}})}),u}var Qc={exports:{}},Ts={};var S_;function RS(){if(S_)return Ts;S_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(l,d,c){var f=null;if(c!==void 0&&(f=""+c),d.key!==void 0&&(f=""+d.key),"key"in d){c={};for(var p in d)p!=="key"&&(c[p]=d[p])}else c=d;return d=c.ref,{$$typeof:o,type:l,key:f,ref:d!==void 0?d:null,props:c}}return Ts.Fragment=n,Ts.jsx=u,Ts.jsxs=u,Ts}var M_;function BS(){return M_||(M_=1,Qc.exports=RS()),Qc.exports}var w=BS();const Fv="wbnt:";function Vv(o,n=Fv){const u=()=>{const d=[];for(let c=0;c<o.length;c+=1){const f=o.key(c);f!=null&&f.startsWith(n)&&d.push(f.slice(n.length))}return d},l={getItem:d=>o.getItem(n+String(d)),setItem:(d,c)=>o.setItem(n+String(d),String(c)),removeItem:d=>o.removeItem(n+String(d)),clear:()=>u().forEach(d=>o.removeItem(n+d)),key:d=>u()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return u().length;if(Object.prototype.hasOwnProperty.call(l,c))return l[c];if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:f},set(d,c,f){return typeof c!="string"?!1:(o.setItem(n+c,String(f)),!0)},deleteProperty(d,c){return typeof c=="string"&&o.removeItem(n+c),!0},has(d,c){return Object.prototype.hasOwnProperty.call(l,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>u(),getOwnPropertyDescriptor(d,c){if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:{value:f,enumerable:!0,configurable:!0,writable:!0}}})}function LS(o=globalThis){const n=o.localStorage,u=Vv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>u}),{real:n,shim:u}}function IS(){const o=new Map;return{get length(){return o.size},key:n=>[...o.keys()][n]??null,getItem:n=>o.has(String(n))?o.get(String(n)):null,setItem:(n,u)=>{o.set(String(n),String(u))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let Hl=null;try{const o=`${Fv}__probe`;window.localStorage.setItem(o,"1");const n=window.localStorage.getItem(o);if(window.localStorage.removeItem(o),n!=="1")throw new Error("localStorage did not keep a value");Hl=LS(window).real}catch{try{const o=IS(),n=Vv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}Hl=null}var Zc={exports:{}},Ns={},Xc={exports:{}},Jc={};var C_;function US(){return C_||(C_=1,(function(o){function n(I,N){var K=I.length;I.push(N);e:for(;0<K;){var ie=K-1>>>1,ne=I[ie];if(0<d(ne,N))I[ie]=N,I[K]=ne,K=ie;else break e}}function u(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var N=I[0],K=I.pop();if(K!==N){I[0]=K;e:for(var ie=0,ne=I.length,ye=ne>>>1;ie<ye;){var Ae=2*(ie+1)-1,Ve=I[Ae],D=Ae+1,te=I[D];if(0>d(Ve,K))D<ne&&0>d(te,Ve)?(I[ie]=te,I[D]=K,ie=D):(I[ie]=Ve,I[Ae]=K,ie=Ae);else if(D<ne&&0>d(te,K))I[ie]=te,I[D]=K,ie=D;else break e}}return N}function d(I,N){var K=I.sortIndex-N.sortIndex;return K!==0?K:I.id-N.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;o.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();o.unstable_now=function(){return f.now()-p}}var h=[],k=[],_=1,g=null,b=3,S=!1,C=!1,A=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var N=u(k);N!==null;){if(N.callback===null)l(k);else if(N.startTime<=I)l(k),N.sortIndex=N.expirationTime,n(h,N);else break;N=u(k)}}function Q(I){if(A=!1,G(I),!C)if(u(h)!==null)C=!0,H||(H=!0,ee());else{var N=u(k);N!==null&&Y(Q,N.startTime-I)}}var H=!1,j=-1,q=5,V=-1;function $(){return x?!0:!(o.unstable_now()-V<q)}function W(){if(x=!1,H){var I=o.unstable_now();V=I;var N=!0;try{e:{C=!1,A&&(A=!1,z(j),j=-1),S=!0;var K=b;try{t:{for(G(I),g=u(h);g!==null&&!(g.expirationTime>I&&$());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var ne=ie(g.expirationTime<=I);if(I=o.unstable_now(),typeof ne=="function"){g.callback=ne,G(I),N=!0;break t}g===u(h)&&l(h),G(I)}else l(h);g=u(h)}if(g!==null)N=!0;else{var ye=u(k);ye!==null&&Y(Q,ye.startTime-I),N=!1}}break e}finally{g=null,b=K,S=!1}N=void 0}}finally{N?ee():H=!1}}}var ee;if(typeof L=="function")ee=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,X=ae.port2;ae.port1.onmessage=W,ee=function(){X.postMessage(null)}}else ee=function(){T(W,0)};function Y(I,N){j=T(function(){I(o.unstable_now())},N)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(I){I.callback=null},o.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_next=function(I){switch(b){case 1:case 2:case 3:var N=3;break;default:N=b}var K=b;b=N;try{return I()}finally{b=K}},o.unstable_requestPaint=function(){x=!0},o.unstable_runWithPriority=function(I,N){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var K=b;b=I;try{return N()}finally{b=K}},o.unstable_scheduleCallback=function(I,N,K){var ie=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ie+K:ie):K=ie,I){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,I={id:_++,callback:N,priorityLevel:I,startTime:K,expirationTime:ne,sortIndex:-1},K>ie?(I.sortIndex=K,n(k,I),u(h)===null&&I===u(k)&&(A?(z(j),j=-1):A=!0,Y(Q,K-ie))):(I.sortIndex=ne,n(h,I),C||S||(C=!0,H||(H=!0,ee()))),I},o.unstable_shouldYield=$,o.unstable_wrapCallback=function(I){var N=b;return function(){var K=b;b=N;try{return I.apply(this,arguments)}finally{b=K}}}})(Jc)),Jc}var A_;function PS(){return A_||(A_=1,Xc.exports=US()),Xc.exports}var $c={exports:{}},be={};var x_;function HS(){if(x_)return be;x_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function z(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}z.prototype.isReactComponent={},z.prototype.setState=function(D,te){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,te,"setState")},z.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}var Q=G.prototype=new L;Q.constructor=G,x(Q,z.prototype),Q.isPureReactComponent=!0;var H=Array.isArray;function j(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(D,te,se){var ce=se.ref;return{$$typeof:o,type:D,key:te,ref:ce!==void 0?ce:null,props:se}}function W(D,te){return $(D.type,te,D.props)}function ee(D){return typeof D=="object"&&D!==null&&D.$$typeof===o}function ae(D){var te={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(se){return te[se]})}var X=/\/+/g;function Y(D,te){return typeof D=="object"&&D!==null&&D.key!=null?ae(""+D.key):te.toString(36)}function I(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(j,j):(D.status="pending",D.then(function(te){D.status==="pending"&&(D.status="fulfilled",D.value=te)},function(te){D.status==="pending"&&(D.status="rejected",D.reason=te)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function N(D,te,se,ce,ke){var we=typeof D;(we==="undefined"||we==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(we){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case o:case n:pe=!0;break;case _:return pe=D._init,N(pe(D._payload),te,se,ce,ke)}}if(pe)return ke=ke(D),pe=ce===""?"."+Y(D,0):ce,H(ke)?(se="",pe!=null&&(se=pe.replace(X,"$&/")+"/"),N(ke,te,se,"",function(Ct){return Ct})):ke!=null&&(ee(ke)&&(ke=W(ke,se+(ke.key==null||D&&D.key===ke.key?"":(""+ke.key).replace(X,"$&/")+"/")+pe)),te.push(ke)),1;pe=0;var ue=ce===""?".":ce+":";if(H(D))for(var fe=0;fe<D.length;fe++)ce=D[fe],we=ue+Y(ce,fe),pe+=N(ce,te,se,we,ke);else if(fe=C(D),typeof fe=="function")for(D=fe.call(D),fe=0;!(ce=D.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),pe+=N(ce,te,se,we,ke);else if(we==="object"){if(typeof D.then=="function")return N(I(D),te,se,ce,ke);throw te=String(D),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return pe}function K(D,te,se){if(D==null)return D;var ce=[],ke=0;return N(D,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(D){if(D._status===-1){var te=D._result,se=te();se.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),D._status===-1&&(D._status=0,D._result=se)}if(D._status===1)return D._result.default;throw D._result}var ne=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)};function ye(D){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=D(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(j,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ae(D){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[D]:se.indexOf(D)===-1&&se.push(D)}else ye(Ae.bind(null,D))}var Ve={map:K,forEach:function(D,te,se){K(D,function(){te.apply(this,arguments)},se)},count:function(D){var te=0;return K(D,function(){te++}),te},toArray:function(D){return K(D,function(te){return te})||[]},only:function(D){if(!ee(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return be.Activity=g,be.Children=Ve,be.Component=z,be.Fragment=u,be.Profiler=d,be.PureComponent=G,be.StrictMode=l,be.Suspense=h,be.ViewTransition=b,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,be.__COMPILER_RUNTIME={__proto__:null,c:function(D){return q.H.useMemoCache(D)}},be.addTransitionType=Ae,be.cache=function(D){return function(){return D.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(D,te,se){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ce=x({},D.props),ke=D.key;if(te!=null)for(we in te.key!==void 0&&(ke=""+te.key),te)!V.call(te,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&te.ref===void 0||(ce[we]=te[we]);var we=arguments.length-2;if(we===1)ce.children=se;else if(1<we){for(var pe=Array(we),ue=0;ue<we;ue++)pe[ue]=arguments[ue+2];ce.children=pe}return $(D.type,ke,ce)},be.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:c,_context:D},D},be.createElement=function(D,te,se){var ce,ke={},we=null;if(te!=null)for(ce in te.key!==void 0&&(we=""+te.key),te)V.call(te,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ke[ce]=te[ce]);var pe=arguments.length-2;if(pe===1)ke.children=se;else if(1<pe){for(var ue=Array(pe),fe=0;fe<pe;fe++)ue[fe]=arguments[fe+2];ke.children=ue}if(D&&D.defaultProps)for(ce in pe=D.defaultProps,pe)ke[ce]===void 0&&(ke[ce]=pe[ce]);return $(D,we,ke)},be.createRef=function(){return{current:null}},be.forwardRef=function(D){return{$$typeof:p,render:D}},be.isValidElement=ee,be.lazy=function(D){return{$$typeof:_,_payload:{_status:-1,_result:D},_init:ie}},be.memo=function(D,te){return{$$typeof:k,type:D,compare:te===void 0?null:te}},be.startTransition=ye,be.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},be.use=function(D){return q.H.use(D)},be.useActionState=function(D,te,se){return q.H.useActionState(D,te,se)},be.useCallback=function(D,te){return q.H.useCallback(D,te)},be.useContext=function(D){return q.H.useContext(D)},be.useDebugValue=function(){},be.useDeferredValue=function(D,te){return q.H.useDeferredValue(D,te)},be.useEffect=function(D,te){return q.H.useEffect(D,te)},be.useEffectEvent=function(D){return q.H.useEffectEvent(D)},be.useId=function(){return q.H.useId()},be.useImperativeHandle=function(D,te,se){return q.H.useImperativeHandle(D,te,se)},be.useInsertionEffect=function(D,te){return q.H.useInsertionEffect(D,te)},be.useLayoutEffect=function(D,te){return q.H.useLayoutEffect(D,te)},be.useMemo=function(D,te){return q.H.useMemo(D,te)},be.useOptimistic=function(D,te){return q.H.useOptimistic(D,te)},be.useReducer=function(D,te,se){return q.H.useReducer(D,te,se)},be.useRef=function(D){return q.H.useRef(D)},be.useState=function(D){return q.H.useState(D)},be.useSyncExternalStore=function(D,te,se){return q.H.useSyncExternalStore(D,te,se)},be.useTransition=function(){return q.H.useTransition()},be.version="19.3.1",be}var z_;function Zs(){return z_||(z_=1,$c.exports=HS()),$c.exports}var em={exports:{}},Mt={};var T_;function FS(){if(T_)return Mt;T_=1;var o=Zs();function n(_){var g="https://react.dev/errors/"+_;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+_+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(n(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function p(_,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:S===f?f:""+S,children:_,containerInfo:g,implementation:b}}var h=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Mt.browser=function(_){return{$$typeof:c,_reason:_}},Mt.createPortal=function(_,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return p(_,g,null,b)},Mt.flushSync=function(_){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,_)return _()}finally{h.T=g,l.p=b,l.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&l.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:A}):b==="script"&&l.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mt.preinitModule=function(_,g){if(typeof _=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=k(g.as,g.crossOrigin);l.d.M(_,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&l.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin);l.d.L(_,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mt.preloadModule=function(_,g){if(typeof _=="string")if(g){var b=k(g.as,g.crossOrigin);l.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else l.d.m(_)},Mt.requestFormReset=function(_){l.d.r(_)},Mt.unstable_batchedUpdates=function(_,g){return _(g)},Mt.useFormState=function(_,g,b){return h.H.useFormState(_,g,b)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.3.1",Mt}var N_;function qm(){if(N_)return em.exports;N_=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),em.exports=FS(),em.exports}var E_;function VS(){if(E_)return Ns;E_=1;var o=PS(),n=Zs(),u=qm();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function k(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===a)return h(s),e;if(r===i)return h(s),t;r=r.sibling}throw Error(l(188))}if(a.return!==i.return)a=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===a){m=!0,a=s,i=r;break}if(v===i){m=!0,i=s,a=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===a){m=!0,a=r,i=s;break}if(v===i){m=!0,i=r,a=s;break}v=v.sibling}if(!m)throw Error(l(189))}}if(a.alternate!==i)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,i,s,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,s,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,i,s,r))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function C(e){var t=[null,null],a=b(e);return a===null||A(t,e,a.child,{foundSelf:!1}),t}function A(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&A(e,t,a.child,i))return!0;a=a.sibling}return!1}function x(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var T=null,z=null;function L(e,t,a){return e===a?!0:e===t?(T=e,!0):!1}function G(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(T=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,a){for(var i=0,s=e;s;s=a(s))i++;s=0;for(var r=t;r;r=a(r))s++;for(;0<i-s;)e=a(e),i--;for(;0<s-i;)t=a(t),s--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var j=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ae=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),D=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case N:return"Suspense";case K:return"SuspenseList";case ye:return"Activity";case D:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var pe=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ct={pending:!1,data:null,method:null,action:null},Zt=[],Xt=-1;function _t(e){return{current:e}}function tt(e){0>Xt||(e.current=Zt[Xt],Zt[Xt]=null,Xt--)}function Le(e,t){Xt++,Zt[Xt]=e.current,e.current=t}var Bt=_t(null),Lt=_t(null),Jt=_t(null),Xa=_t(null);function $o(e,t){switch(Le(Jt,t),Le(Lt,e),Le(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dh(t),e=jh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Bt),Le(Bt,e)}function Ja(){tt(Bt),tt(Lt),tt(Jt)}function qn(e){var t=e.memoizedState;t!==null&&(kn._currentValue=t.memoizedState,Le(Xa,e)),t=Bt.current;var a=jh(t,e.type);t!==a&&(Le(Lt,e),Le(Bt,a))}function Ei(e){Lt.current===e&&(tt(Bt),tt(Lt)),Xa.current===e&&(tt(Xa),kn._currentValue=Ct)}var ja,$a;function It(e){if(ja===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ja=t&&t[1]||"",$a=-1<a.stack.indexOf(`
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Clock-okasD9hI.css","./Settings-9hHATwdq.js","./Settings-BkGHEXAt.css"])))=>i.map(i=>d[i]);
+var iN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function qS(o){if(Object.prototype.hasOwnProperty.call(o,"__esModule"))return o;var n=o.default;if(typeof n=="function"){var u=function l(){var d=!1;try{d=this instanceof l}catch{}return d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};u.prototype=n.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(o).forEach(function(l){var d=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(u,l,d.get?d:{enumerable:!0,get:function(){return o[l]}})}),u}var Qc={exports:{}},Ts={};var S_;function RS(){if(S_)return Ts;S_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(l,d,c){var f=null;if(c!==void 0&&(f=""+c),d.key!==void 0&&(f=""+d.key),"key"in d){c={};for(var p in d)p!=="key"&&(c[p]=d[p])}else c=d;return d=c.ref,{$$typeof:o,type:l,key:f,ref:d!==void 0?d:null,props:c}}return Ts.Fragment=n,Ts.jsx=u,Ts.jsxs=u,Ts}var M_;function BS(){return M_||(M_=1,Qc.exports=RS()),Qc.exports}var w=BS();const Fv="wbnt:";function Vv(o,n=Fv){const u=()=>{const d=[];for(let c=0;c<o.length;c+=1){const f=o.key(c);f!=null&&f.startsWith(n)&&d.push(f.slice(n.length))}return d},l={getItem:d=>o.getItem(n+String(d)),setItem:(d,c)=>o.setItem(n+String(d),String(c)),removeItem:d=>o.removeItem(n+String(d)),clear:()=>u().forEach(d=>o.removeItem(n+d)),key:d=>u()[d]??null};return new Proxy(Object.create(null),{get(d,c){if(c==="length")return u().length;if(Object.prototype.hasOwnProperty.call(l,c))return l[c];if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:f},set(d,c,f){return typeof c!="string"?!1:(o.setItem(n+c,String(f)),!0)},deleteProperty(d,c){return typeof c=="string"&&o.removeItem(n+c),!0},has(d,c){return Object.prototype.hasOwnProperty.call(l,c)||c==="length"||typeof c=="string"&&o.getItem(n+c)!==null},ownKeys:()=>u(),getOwnPropertyDescriptor(d,c){if(typeof c!="string")return;const f=o.getItem(n+c);return f===null?void 0:{value:f,enumerable:!0,configurable:!0,writable:!0}}})}function LS(o=globalThis){const n=o.localStorage,u=Vv(n);return Object.defineProperty(o,"localStorage",{configurable:!0,get:()=>u}),{real:n,shim:u}}function IS(){const o=new Map;return{get length(){return o.size},key:n=>[...o.keys()][n]??null,getItem:n=>o.has(String(n))?o.get(String(n)):null,setItem:(n,u)=>{o.set(String(n),String(u))},removeItem:n=>{o.delete(String(n))},clear:()=>o.clear()}}let Hl=null;try{const o=`${Fv}__probe`;window.localStorage.setItem(o,"1");const n=window.localStorage.getItem(o);if(window.localStorage.removeItem(o),n!=="1")throw new Error("localStorage did not keep a value");Hl=LS(window).real}catch{try{const o=IS(),n=Vv(o);Object.defineProperty(window,"localStorage",{configurable:!0,get:()=>n})}catch{}Hl=null}var Zc={exports:{}},Ns={},Xc={exports:{}},Jc={};var C_;function US(){return C_||(C_=1,(function(o){function n(I,N){var K=I.length;I.push(N);e:for(;0<K;){var ie=K-1>>>1,ne=I[ie];if(0<d(ne,N))I[ie]=N,I[K]=ne,K=ie;else break e}}function u(I){return I.length===0?null:I[0]}function l(I){if(I.length===0)return null;var N=I[0],K=I.pop();if(K!==N){I[0]=K;e:for(var ie=0,ne=I.length,ye=ne>>>1;ie<ye;){var Ae=2*(ie+1)-1,Ve=I[Ae],D=Ae+1,te=I[D];if(0>d(Ve,K))D<ne&&0>d(te,Ve)?(I[ie]=te,I[D]=K,ie=D):(I[ie]=Ve,I[Ae]=K,ie=Ae);else if(D<ne&&0>d(te,K))I[ie]=te,I[D]=K,ie=D;else break e}}return N}function d(I,N){var K=I.sortIndex-N.sortIndex;return K!==0?K:I.id-N.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;o.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();o.unstable_now=function(){return f.now()-p}}var h=[],k=[],_=1,g=null,b=3,S=!1,C=!1,A=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(I){for(var N=u(k);N!==null;){if(N.callback===null)l(k);else if(N.startTime<=I)l(k),N.sortIndex=N.expirationTime,n(h,N);else break;N=u(k)}}function Q(I){if(A=!1,G(I),!C)if(u(h)!==null)C=!0,H||(H=!0,ee());else{var N=u(k);N!==null&&Y(Q,N.startTime-I)}}var H=!1,j=-1,q=5,V=-1;function $(){return x?!0:!(o.unstable_now()-V<q)}function W(){if(x=!1,H){var I=o.unstable_now();V=I;var N=!0;try{e:{C=!1,A&&(A=!1,z(j),j=-1),S=!0;var K=b;try{t:{for(G(I),g=u(h);g!==null&&!(g.expirationTime>I&&$());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var ne=ie(g.expirationTime<=I);if(I=o.unstable_now(),typeof ne=="function"){g.callback=ne,G(I),N=!0;break t}g===u(h)&&l(h),G(I)}else l(h);g=u(h)}if(g!==null)N=!0;else{var ye=u(k);ye!==null&&Y(Q,ye.startTime-I),N=!1}}break e}finally{g=null,b=K,S=!1}N=void 0}}finally{N?ee():H=!1}}}var ee;if(typeof L=="function")ee=function(){L(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,X=ae.port2;ae.port1.onmessage=W,ee=function(){X.postMessage(null)}}else ee=function(){T(W,0)};function Y(I,N){j=T(function(){I(o.unstable_now())},N)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(I){I.callback=null},o.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<I?Math.floor(1e3/I):5},o.unstable_getCurrentPriorityLevel=function(){return b},o.unstable_next=function(I){switch(b){case 1:case 2:case 3:var N=3;break;default:N=b}var K=b;b=N;try{return I()}finally{b=K}},o.unstable_requestPaint=function(){x=!0},o.unstable_runWithPriority=function(I,N){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var K=b;b=I;try{return N()}finally{b=K}},o.unstable_scheduleCallback=function(I,N,K){var ie=o.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ie+K:ie):K=ie,I){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,I={id:_++,callback:N,priorityLevel:I,startTime:K,expirationTime:ne,sortIndex:-1},K>ie?(I.sortIndex=K,n(k,I),u(h)===null&&I===u(k)&&(A?(z(j),j=-1):A=!0,Y(Q,K-ie))):(I.sortIndex=ne,n(h,I),C||S||(C=!0,H||(H=!0,ee()))),I},o.unstable_shouldYield=$,o.unstable_wrapCallback=function(I){var N=b;return function(){var K=b;b=N;try{return I.apply(this,arguments)}finally{b=K}}}})(Jc)),Jc}var A_;function PS(){return A_||(A_=1,Xc.exports=US()),Xc.exports}var $c={exports:{}},be={};var x_;function HS(){if(x_)return be;x_=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),k=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.for("react.view_transition"),S=Symbol.iterator;function C(D){return D===null||typeof D!="object"?null:(D=S&&D[S]||D["@@iterator"],typeof D=="function"?D:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function z(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}z.prototype.isReactComponent={},z.prototype.setState=function(D,te){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,te,"setState")},z.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(D,te,se){this.props=D,this.context=te,this.refs=T,this.updater=se||A}var Q=G.prototype=new L;Q.constructor=G,x(Q,z.prototype),Q.isPureReactComponent=!0;var H=Array.isArray;function j(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function $(D,te,se){var ce=se.ref;return{$$typeof:o,type:D,key:te,ref:ce!==void 0?ce:null,props:se}}function W(D,te){return $(D.type,te,D.props)}function ee(D){return typeof D=="object"&&D!==null&&D.$$typeof===o}function ae(D){var te={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(se){return te[se]})}var X=/\/+/g;function Y(D,te){return typeof D=="object"&&D!==null&&D.key!=null?ae(""+D.key):te.toString(36)}function I(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(j,j):(D.status="pending",D.then(function(te){D.status==="pending"&&(D.status="fulfilled",D.value=te)},function(te){D.status==="pending"&&(D.status="rejected",D.reason=te)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function N(D,te,se,ce,ke){var we=typeof D;(we==="undefined"||we==="boolean")&&(D=null);var pe=!1;if(D===null)pe=!0;else switch(we){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(D.$$typeof){case o:case n:pe=!0;break;case _:return pe=D._init,N(pe(D._payload),te,se,ce,ke)}}if(pe)return ke=ke(D),pe=ce===""?"."+Y(D,0):ce,H(ke)?(se="",pe!=null&&(se=pe.replace(X,"$&/")+"/"),N(ke,te,se,"",function(Ct){return Ct})):ke!=null&&(ee(ke)&&(ke=W(ke,se+(ke.key==null||D&&D.key===ke.key?"":(""+ke.key).replace(X,"$&/")+"/")+pe)),te.push(ke)),1;pe=0;var ue=ce===""?".":ce+":";if(H(D))for(var fe=0;fe<D.length;fe++)ce=D[fe],we=ue+Y(ce,fe),pe+=N(ce,te,se,we,ke);else if(fe=C(D),typeof fe=="function")for(D=fe.call(D),fe=0;!(ce=D.next()).done;)ce=ce.value,we=ue+Y(ce,fe++),pe+=N(ce,te,se,we,ke);else if(we==="object"){if(typeof D.then=="function")return N(I(D),te,se,ce,ke);throw te=String(D),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return pe}function K(D,te,se){if(D==null)return D;var ce=[],ke=0;return N(D,ce,"","",function(we){return te.call(se,we,ke++)}),ce}function ie(D){if(D._status===-1){var te=D._result,se=te();se.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce,se.status===void 0&&(se.status="fulfilled",se.value=ce))},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce,se.status===void 0&&(se.status="rejected",se.reason=ce))}),D._status===-1&&(D._status=0,D._result=se)}if(D._status===1)return D._result.default;throw D._result}var ne=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)};function ye(D){var te=q.T,se={};se.types=te!==null?te.types:null,q.T=se;try{var ce=D(),ke=q.S;ke!==null&&ke(se,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(j,ne)}catch(we){ne(we)}finally{te!==null&&se.types!==null&&(te.types=se.types),q.T=te}}function Ae(D){var te=q.T;if(te!==null){var se=te.types;se===null?te.types=[D]:se.indexOf(D)===-1&&se.push(D)}else ye(Ae.bind(null,D))}var Ve={map:K,forEach:function(D,te,se){K(D,function(){te.apply(this,arguments)},se)},count:function(D){var te=0;return K(D,function(){te++}),te},toArray:function(D){return K(D,function(te){return te})||[]},only:function(D){if(!ee(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return be.Activity=g,be.Children=Ve,be.Component=z,be.Fragment=u,be.Profiler=d,be.PureComponent=G,be.StrictMode=l,be.Suspense=h,be.ViewTransition=b,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,be.__COMPILER_RUNTIME={__proto__:null,c:function(D){return q.H.useMemoCache(D)}},be.addTransitionType=Ae,be.cache=function(D){return function(){return D.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(D,te,se){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var ce=x({},D.props),ke=D.key;if(te!=null)for(we in te.key!==void 0&&(ke=""+te.key),te)!V.call(te,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&te.ref===void 0||(ce[we]=te[we]);var we=arguments.length-2;if(we===1)ce.children=se;else if(1<we){for(var pe=Array(we),ue=0;ue<we;ue++)pe[ue]=arguments[ue+2];ce.children=pe}return $(D.type,ke,ce)},be.createContext=function(D){return D={$$typeof:f,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:c,_context:D},D},be.createElement=function(D,te,se){var ce,ke={},we=null;if(te!=null)for(ce in te.key!==void 0&&(we=""+te.key),te)V.call(te,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(ke[ce]=te[ce]);var pe=arguments.length-2;if(pe===1)ke.children=se;else if(1<pe){for(var ue=Array(pe),fe=0;fe<pe;fe++)ue[fe]=arguments[fe+2];ke.children=ue}if(D&&D.defaultProps)for(ce in pe=D.defaultProps,pe)ke[ce]===void 0&&(ke[ce]=pe[ce]);return $(D,we,ke)},be.createRef=function(){return{current:null}},be.forwardRef=function(D){return{$$typeof:p,render:D}},be.isValidElement=ee,be.lazy=function(D){return{$$typeof:_,_payload:{_status:-1,_result:D},_init:ie}},be.memo=function(D,te){return{$$typeof:k,type:D,compare:te===void 0?null:te}},be.startTransition=ye,be.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},be.use=function(D){return q.H.use(D)},be.useActionState=function(D,te,se){return q.H.useActionState(D,te,se)},be.useCallback=function(D,te){return q.H.useCallback(D,te)},be.useContext=function(D){return q.H.useContext(D)},be.useDebugValue=function(){},be.useDeferredValue=function(D,te){return q.H.useDeferredValue(D,te)},be.useEffect=function(D,te){return q.H.useEffect(D,te)},be.useEffectEvent=function(D){return q.H.useEffectEvent(D)},be.useId=function(){return q.H.useId()},be.useImperativeHandle=function(D,te,se){return q.H.useImperativeHandle(D,te,se)},be.useInsertionEffect=function(D,te){return q.H.useInsertionEffect(D,te)},be.useLayoutEffect=function(D,te){return q.H.useLayoutEffect(D,te)},be.useMemo=function(D,te){return q.H.useMemo(D,te)},be.useOptimistic=function(D,te){return q.H.useOptimistic(D,te)},be.useReducer=function(D,te,se){return q.H.useReducer(D,te,se)},be.useRef=function(D){return q.H.useRef(D)},be.useState=function(D){return q.H.useState(D)},be.useSyncExternalStore=function(D,te,se){return q.H.useSyncExternalStore(D,te,se)},be.useTransition=function(){return q.H.useTransition()},be.version="19.3.1",be}var z_;function Zs(){return z_||(z_=1,$c.exports=HS()),$c.exports}var em={exports:{}},Mt={};var T_;function FS(){if(T_)return Mt;T_=1;var o=Zs();function n(_){var g="https://react.dev/errors/"+_;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+_+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var l={d:{f:u,r:function(){throw Error(n(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),f=Symbol.for("react.optimistic_key");function p(_,g,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:S===f?f:""+S,children:_,containerInfo:g,implementation:b}}var h=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(_,g){if(_==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Mt.browser=function(_){return{$$typeof:c,_reason:_}},Mt.createPortal=function(_,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return p(_,g,null,b)},Mt.flushSync=function(_){var g=h.T,b=l.p;try{if(h.T=null,l.p=2,_)return _()}finally{h.T=g,l.p=b,l.d.f()}},Mt.preconnect=function(_,g){typeof _=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(_,g))},Mt.prefetchDNS=function(_){typeof _=="string"&&l.d.D(_)},Mt.preinit=function(_,g){if(typeof _=="string"&&g&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?l.d.S(_,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:A}):b==="script"&&l.d.X(_,{crossOrigin:S,integrity:C,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Mt.preinitModule=function(_,g){if(typeof _=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=k(g.as,g.crossOrigin);l.d.M(_,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}}else g==null&&l.d.M(_)},Mt.preload=function(_,g){if(typeof _=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,S=k(b,g.crossOrigin);l.d.L(_,b,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Mt.preloadModule=function(_,g){if(typeof _=="string")if(g){var b=k(g.as,g.crossOrigin);l.d.m(_,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0})}else l.d.m(_)},Mt.requestFormReset=function(_){l.d.r(_)},Mt.unstable_batchedUpdates=function(_,g){return _(g)},Mt.useFormState=function(_,g,b){return h.H.useFormState(_,g,b)},Mt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Mt.version="19.3.1",Mt}var N_;function qm(){if(N_)return em.exports;N_=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(n){console.error(n)}}return o(),em.exports=FS(),em.exports}var E_;function VS(){if(E_)return Ns;E_=1;var o=PS(),n=Zs(),u=qm();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function k(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var a=e,i=t;;){var s=a.return;if(s===null)break;var r=s.alternate;if(r===null){if(i=s.return,i!==null){a=i;continue}break}if(s.child===r.child){for(r=s.child;r;){if(r===a)return h(s),e;if(r===i)return h(s),t;r=r.sibling}throw Error(l(188))}if(a.return!==i.return)a=s,i=r;else{for(var m=!1,v=s.child;v;){if(v===a){m=!0,a=s,i=r;break}if(v===i){m=!0,i=s,a=r;break}v=v.sibling}if(!m){for(v=r.child;v;){if(v===a){m=!0,a=r,i=s;break}if(v===i){m=!0,i=r,a=s;break}v=v.sibling}if(!m)throw Error(l(189))}}if(a.alternate!==i)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function g(e,t,a,i,s,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,s,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&g(e.child,t,a,i,s,r))return!0;e=e.sibling}return!1}function b(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function S(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function C(e){var t=[null,null],a=b(e);return a===null||A(t,e,a.child,{foundSelf:!1}),t}function A(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&A(e,t,a.child,i))return!0;a=a.sibling}return!1}function x(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(l(559))}}var T=null,z=null;function L(e,t,a){return e===a?!0:e===t?(T=e,!0):!1}function G(e,t,a){return e===a?(z=e,!1):e===t?(z!==null&&(T=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function H(e,t,a){for(var i=0,s=e;s;s=a(s))i++;s=0;for(var r=t;r;r=a(r))s++;for(;0<i-s;)e=a(e),i--;for(;0<s-i;)t=a(t),s--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var j=Object.assign,q=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ae=Symbol.for("react.legacy_hidden"),Ve=Symbol.for("react.memo_cache_sentinel"),D=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ae:return"Profiler";case ee:return"StrictMode";case N:return"Suspense";case K:return"SuspenseList";case ye:return"Activity";case D:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var pe=Array.isArray,ue=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ct={pending:!1,data:null,method:null,action:null},Zt=[],Xt=-1;function _t(e){return{current:e}}function tt(e){0>Xt||(e.current=Zt[Xt],Zt[Xt]=null,Xt--)}function Le(e,t){Xt++,Zt[Xt]=e.current,e.current=t}var Bt=_t(null),Lt=_t(null),Jt=_t(null),Xa=_t(null);function $o(e,t){switch(Le(Jt,t),Le(Lt,e),Le(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Dh(t),e=jh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(Bt),Le(Bt,e)}function Ja(){tt(Bt),tt(Lt),tt(Jt)}function qn(e){var t=e.memoizedState;t!==null&&(kn._currentValue=t.memoizedState,Le(Xa,e)),t=Bt.current;var a=jh(t,e.type);t!==a&&(Le(Lt,e),Le(Bt,a))}function Ei(e){Lt.current===e&&(tt(Bt),tt(Lt)),Xa.current===e&&(tt(Xa),kn._currentValue=Ct)}var ja,$a;function It(e){if(ja===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ja=t&&t[1]||"",$a=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ja+e+$a}var Di=!1;function ua(e,t){if(!e||Di)return"";Di=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(oe){var O=oe}Reflect.construct(e,[],J)}else{try{J.call()}catch(oe){O=oe}J=!1;try{var P=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),J=!0,new e}finally{J&&(P!==void 0?Object.defineProperty(e.prototype,"props",P):delete e.prototype.props)}}}else{try{throw Error()}catch(oe){O=oe}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(oe){if(oe&&O&&typeof oe.stack=="string")return[oe.stack,O.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),m=r[0],v=r[1];if(m&&v){var M=m.split(`
`),B=v.split(`
@@ -847,13 +847,13 @@ Not: "{category}" kategorisine ait görselleri beğenmediyseniz, arka plan kayna
Примітка: якщо вам не подобаються "{category}" зображення, ви можете вимкнути цю категорію у налаштуваннях джерела фону.`,confirm:"Підтвердити"},search:"Пошук",quicklinks:{new:"Нове посилання",edit:"Редагувати посилання",name:"Ім'я",url:"URL",icon:"Іконка (необов'язково)",add:"Додати",name_error:"Необхідно вказати ім'я",url_error:"Необхідно вказати URL-адресу"},date:{week:"Тиждень"},weather:{not_found:"Не знайдено",meters:"{amount} метрів",extra_information:"Додаткова інформація",feels_like:"Відчувається як {amount}"},quote:{link_tooltip:"Відкрити у Вікіпедії",share:"Поділитися",copy:"Скопіювати",favourite:"Улюблене",unfavourite:"Неулюблене"},navbar:{tooltips:{refresh:"Оновити"},notes:{title:"Примітки",placeholder:"Введіть тут"},todo:{title:"Todo",pin:"Прикріпити",add:"Додати",no_todos:"Немає Todos"},apps:{title:"Додатки",no_apps:"Не знайдено жодного посилання на додаток"}}},HM=JSON.parse(`{"main":{"title":"Параметри","loading":"Завантаження...","file_upload_error":"Розмір файлу більше 2 МБ","navbar":{"settings":"Налаштування","library":"Доповнення","discover":"Маркетплейс"},"error_boundary":{"title":"Помилка","message":"Не вдалося завантажити цей компонент Mue","report_error":"Надіслати звіт про помилку","sent":"Відправлено!","refresh":"Оновити"},"settings":{"enabled":"Увімкнено","open_knowledgebase":"Відкрита база знань","additional_settings":"Додаткові налаштування","reminder":{"title":"ЗАМІТКА","message":"Щоб всі зміни набули чинності, сторінку необхідно оновити."},"sections":{"header":{"more_info":"Більше інформації","report_issue":"Повідомити про проблему","enabled":"Виберіть, показувати цей віджет чи ні","size":"Повзунок для керування розміром віджету"},"time":{"title":"Час","format":"Формат","type":"Тип","type_subtitle":"Виберіть, чи відображати час у цифровому форматі, аналоговому форматі або у відсотках від завершення дня","digital":{"title":"Цифровий","subtitle":"Змініть вигляд цифрового годинника","seconds":"Секунди","twentyfourhour":"24 години","twelvehour":"12 годин","zero":"Додатковий нуль"},"analogue":{"title":"Аналоговий","subtitle":"Змініть вигляд аналогового годинника","second_hand":"Секундна стрілка","minute_hand":"Хвилинна стрілка","hour_hand":"Годинникова стрілка","hour_marks":"Годинникові мітки","minute_marks":"Хвилинні мітки","round_clock":"Закруглений фон"},"percentage_complete":"Відсоток виконання","vertical_clock":{"title":"Вертикальний годинник","change_hour_colour":"Змінити колір тексту годинника","change_minute_colour":"Змінити колір хвилинного тексту","change_second_colour":"Змінити другий колір тексту"}},"date":{"title":"Дата","week_number":"Номер тижня","day_of_week":"День тижня","datenth":"Дата n-та","type":{"short":"Коротка","long":"Довга","subtitle":"Відображати дату в довгій чи в короткій формі"},"type_settings":"Налаштування та формат відображення для вибраного типу дати","short_date":"Коротка дата","short_format":"Короткий формат","long_format":"Довгий формат","short_separator":{"title":"Короткий сепаратор","dots":"Крапки","dash":"Тире","gaps":"Пробіли","slashes":"Слеши"}},"quote":{"title":"Цитата","additional":"Інші налаштування для налаштування стилю віджету котирувань","author_link":"Посилання на автора","author_details":"Інформація про автора","custom":"Користувацька цитата","custom_subtitle":"Встановіть свої власні користувацьки цитати","no_quotes":"Без лапок","author":"Автор","custom_buttons":"Кнопки","custom_author":"Користувацький автор","author_img":"Показати зображення автора","add":"Додати цитату","source_subtitle":"Виберіть, звідки отримувати цитати","buttons":{"title":"Кнопки","subtitle":"Виберіть, які кнопки показувати на цитаті","copy":"Скопіювати","tweet":"Твітнути","favourite":"Улюблене"}},"greeting":{"title":"Привітання","events":"Події","events_description":"Керуйте подіями на Mue, такими як дні народження.","enable_events":"Показувати повідомлення в особливі дні","default":"Привітання за замовчуванням","name":"Ім'я для привітання","birthday":"День народження","birthday_subtitle":"Показувати привітання з днем народження, коли твій день народження","birthday_age":"Рік народження","birthday_date":"Дата народження","additional":"Налаштування відображення привітання","custom":"Користувацькі події","event_name":"Назва події","day":"День","month":"Місяць","no_events":"Немає подій","no_events_description":"Додати кілька подій","add_event":"Додати подію"},"background":{"title":"Фон","transition":"Затухаючий перехід","photo_information":"Показати інформацію про фото","show_map":"Показувати карту місцезнаходження на інформації про фото, якщо вона доступна","categories":"Категорії","buttons":{"title":"Кнопки","view":"Перегляд","favourite":"Улюблені","download":"Завантажити'"},"effects":{"title":"Ефекти","subtitle":"Додати ефекти до фонових зображень","blur":"Розмиття","brightness":"Яскравість","filters":{"title":"Фільтр фону","amount":"Кількість фільтрів","grayscale":"Відтінки сірого","sepia":"Сепія","invert":"Негатив","saturate":"Насиченість","contrast":"Контраст"}},"type":{"title":"Тип","api":"API","custom_image":"Користувацьке зображення","custom_colour":"Користувацький колір/градієнт","random_colour":"Випадковий колір","random_gradient":"Випадковий градієнт"},"unsplash":{"title":"Колекція(ї) Unsplash","subtitle":"Виберіть колекцію(ї), яку ви хочете використати для фону","id":"Ідентифікатор(и) колекції","id_subtitle":"Введіть список ідентифікаторів Unsplash через кому"},"source":{"title":"Джерело","subtitle":"Виберіть, звідки взяти фонові зображення","api":"API для фону","custom_background":"Користувацький фон","custom_colour":"Користувацький колір фону","upload":"Вавантажити","add_colour":"Додати колір","add_background":"Додати фон","drop_to_upload":"Перетягніть для завантаження","formats":"Доступні формати: {list}","select":"Або виберіть","add_url":"Додати URL","disabled":"Вимкнено","loop_video":"Циклічне відео","mute_video":"Вимкнути звук відео","quality":{"title":"Якість","original":"Original","high":"Висока якість","normal":"Нормальна якість","datasaver":"Data Saver"},"custom_title":"Користувацькі зображення","custom_description":"Виберіть зображення з вашего локального комп'ютера","remove":"Видалити зображення","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Відображати","display_subtitle":"Зміна способу завантаження фону та інформації про фотографію","api":"Налаштування API","api_subtitle":"Варіанти отримання зображення із зовнішнього сервісу (API)"},"search":{"title":"Пошук","additional":"Додаткові параметри відображення та функціональності пошукового віджета","search_engine":"Пошукова система","search_engine_subtitle":"Виберіть пошукову систему в рядку пошуку","custom":"Користувацька URL-адреса пошуку","autocomplete":"Автозаповнення","autocomplete_provider":"Провайдер автозаповнення","autocomplete_provider_subtitle":"Пошукова система для автоматичного заповнення випадаючих результатів","voice_search":"Голосовий пошук","dropdown":"Випадаючий список пошуку","focus":"Фокус на відкритій вкладці","chrome_policy_warning":"У версії 7.2 можливість вибору пошукової системи в Mue була видалена відповідно до нових вимог Chrome Web Store. Тепер Mue використовує пошукову систему, встановлену за замовчуванням у вашому браузері. Ви можете змінити її в налаштуваннях Chrome."},"weather":{"title":"Погода","location":"Місцезнаходження","auto":"Auto","widget_type":"Тип віджету","temp_format":{"title":"Формат температури","celsius":"Цельсії","fahrenheit":"Фаренгейт","kelvin":"Кельвін"},"extra_info":{"title":"Extra information","show_location":"Показати розташування","show_description":"Показати опис","weather_description":"Опис погоди","cloudiness":"Хмарність","humidity":"Вологість","visibility":"Видимість","wind_speed":"Швидкість вітру","wind_direction":"Напрямок вітру","min_temp":"Мінімальна температура","max_temp":"Максимальна температура","atmospheric_pressure":"Атмосферний тиск"},"options":{"basic":"Базовий","standard":"Стандартний","expanded":"Розширений","custom":"Свій"},"custom_settings":"Користувацькі налаштування"},"quicklinks":{"title":"Швидкі посилання","additional":"Додаткові налаштування відображення швидких посилань і функцій","open_new":"Відкрити в новій вкладці","tooltip":"Спливаюча підказка","text_only":"Показувати тільки текст","add_link":"Додати посилання","no_quicklinks":"Немає швидких посилань","edit":"Редагувати","style":"Стиль","options":{"icon":"Іконка","text_only":"Тільки текст","metro":"Метро"},"styling":"Стиль швидких посилань","styling_description":"Налаштувати зовнішній вигляд швидких посилань"},"message":{"title":"Message","add":"Add message","messages":"Повідомлення","text":"Текст","no_messages":"Немає повідомлень","add_some":"Йдемо далі і додайте ще.","content":"Зміст повідомлення"},"appearance":{"title":"Оформлення","style":{"title":"Стиль віджетів","description":"Обирайте між двома стилями: застарілим (доступний для користувачів попередніх версій 7.0) та наш стильний і сучасний стиль.","legacy":"Застаріле","new":"Новий"},"theme":{"title":"Theme","description":"Змінити тему віджетів і модальних вікон Mue","auto":"Автоматично","light":"Світла","dark":"Темна"},"navbar":{"title":"Навігаційна панель","widgets":"Віджети навігаційної панелі","notes":"Примітки","refresh":"Оновити","refresh_subtitle":"Виберіть, що буде оновлюватися, коли ви натискаєте кнопку \\"Оновити\\"","hover":"Відображення тільки при наведенні","additional":"Налаштуйте стиль навігаційної панелі та кнопки, які ви хочете відображати","refresh_options":{"none":"None","page":"Сторінка"},"apps_subtitle":"Створіть ярлик для інших сайтів, які ви часто використовуєте."},"font":{"title":"Шрифт","description":"Змінити шрифт, який використовується у Mue","custom":"Користувацький шрифт","google":"Імпорт з Google Fonts","weight":{"title":"Товщина шрифту","thin":"Тонкий","extra_light":"Дуже тонкий","light":"Світло","normal":"Нормальний","medium":"Medium","semi_bold":"Напівжирний","bold":"Жирний","extra_bold":"Дуже жирний"},"style":{"title":"Стиль шрифту","normal":"Normal","italic":"Italic","oblique":"Курсив"}},"accessibility":{"title":"Доступність","description":"Налаштування спеціальних можливостей для Mue","animations":"Анімації","text_shadow":{"title":"Тінь тексту віджета","new":"Новий","old":"Старий","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Тривалість підказки","milliseconds":"мілісекунди"}},"order":{"title":"Порядок віджетів"},"advanced":{"title":"Додатково","offline_mode":"Офлайн режим","offline_subtitle":"Якщо ввімкнено, всі запити до онлайн-сервісів будуть вимкнені.","data":"Data","data_description":"Виберіть, чи потрібно експортувати налаштування Mue на комп'ютер, імпортувати існуючий файл налаштувань або скинути налаштування до значень за замовчуванням","data_subtitle":"Керуйте своїми даними на Mue.","reset_modal":{"title":"ПОПЕРЕДЖЕННЯ","question":"Ви хочете скинути Mue?","information":"Це призведе до видалення всіх даних. Якщо ви хочете зберегти свої дані та налаштування, будь ласка, спочатку експортуйте їх.","cancel":"Скасувати"},"customisation":"Кастомізація","custom_css":"Користувацький CSS","custom_css_subtitle":"Налаштуйте стиль Mue під себе за допомогою каскадних таблиць стилів (CSS).","custom_js":"Користувацький JS","tab_name":"Назва вкладки","tab_name_subtitle":"Змініть назву вкладки, яка з'являється у вашому браузері","timezone":{"title":"Часовий пояс","subtitle":"Виберіть часовий пояс зі списку замість автоматично встановленого на вашому комп'ютері","automatic":"Автоматичний"},"experimental_warning":"Зверніть увагу, що команда Mue не зможе надати підтримку, якщо у вас увімкнено експериментальний режим. Будь ласка, спочатку вимкніть його і перевірте, чи проблема не зникне, перш ніж звертатися до служби підтримки.","preview_data_disabled":{"title":"Налаштування даних вимкнено","description":"Налаштування даних вимкнено в режимі попереднього перегляду. Вийдіть із режиму попереднього перегляду, щоб скористатися цією функцією."}},"stats":{"title":"Статистика","sections":{"tabs_opened":"Відкриті вкладки","backgrounds_favourited":"Улюблені фони","backgrounds_downloaded":"Завантажені фони","quotes_favourited":"Улюблені цитати","quicklinks_added":"Додано швидкі посилання","settings_changed":"Змінено налаштування","addons_installed":"Встановлені доповнення"},"usage":"Статистика використання","achievements":"Досягнення","achievement_unlocked":"Досягнення розблоковано:{name}","unlocked":"{count} Розблоковано","locked":"Закрито","clear_modal":{"question":"Ви хочете очистити свою статистику?","information":"Це очистить усі досягнення та статистику використання."}},"experimental":{"title":"Експериментальний","warning":"Ці налаштування не були повністю протестовані/реалізовані і можуть працювати некоректно!","developer":"Developer"},"language":{"title":"Мова","quote":"Мова цитат","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Журнал змін","by":"Автор {author}"},"about":{"title":"О нас","version":{"title":"Версія","checking_update":"Перевірка наявності оновлень","update_available":"Доступне оновлення","no_update":"Оновлення не доступне","offline_mode":"Не вдається перевірити наявність оновлень в автономному режимі","error":{"title":"Не вдалося отримати інформацію про оновлення","description":"Виникла помилка"}},"contact_us":"Зв'яжіться з нами","support_mue":"Підтримайте Mue","support_subtitle":"Оскільки Mue є повністю безкоштовним, ми покладаємося на пожертви, щоб покрити рахунки за сервер і фінансувати розробку","support_donate":"Пожертвувати","form_button":"Форма","resources_used":{"title":"Використані ресурси","bg_images":"Офлайн фонові зображення"},"contributors":"Учасники","supporters":"Підтримка","no_supporters":"Наразі підтримки Муе немає","photographers":"Фотографи","curators":"Творці доповнень"}},"buttons":{"reset":"Скинути","import":"Імпорт","export":"Експорт","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"від {author}","all":"Усе","learn_more":"Дізнатися більше","photo_packs":"Набори фото","quote_packs":"Набори цитат","preset_settings":"Пресети налаштувань","no_items":"У цій категорії немає елементів","collection":"Колекція","explore_collection":"Дослідити колекцію","add_all":"Додати все до Муе","collections":"Колекції","cant_find":"Не можете знайти те, що шукаєте?","knowledgebase_one":"Завітайте на сторінку","knowledgebase_two":"база знань","knowledgebase_three":"щоб створити свій власний.","installing":"Встановлення","product":{"overview":"Огляд","information":"Інформація","last_updated":"Останнє оновлення","description":"Опис","details":"Деталі","more_from_curator":"Більше схоже на це від {name}","show_more":"Показати більше","show_less":"Показати менше","show_all":"Показати всі","showing":"Показати","no_images":"Ні. Зображення","no_quotes":"Ні. Цитати","version":"Версія","created_by":"Створено","updated_at":"Оновлено на","part_of":"Частина","explore":"Дослідити","buttons":{"addtomue":"Додати до","remove":"Видалити","update_addon":"Оновлення доповнення","back":"Назад","report":"Звіт","not_available_preview":"Недоступно в режимі попереднього перегляду"},"not_in_language":"Це доповнення недоступне вашою мовою","third_party_api":"Це доповнення використовує сторонній API","sideload_warning":"Це доповнення було завантажено збоку.","setting":"Налаштування'","value":"Значення"},"offline":{"title":"Схоже, ти не в мережі","description":"Будь ласка, підключіться до Інтернету"}},"addons":{"added":"Додано","check_updates":"Перевірте наявність оновлень","no_updates":"Оновлення не доступні","updates_available":"Доступні оновлення {amount}","empty":{"title":"Порожньо","description":"Аддони не встановлені"},"sideload":{"title":"Додаткове завантаження","description":"Встановіть аддон Mue, якого немає на маркетплейсі, зі свого комп'ютера","failed":"Не вдалося підвантажити аддон","errors":{"no_name":"Ім'я не вказано","no_author":"Автор не вказаний","no_type":"Тип не вказано","invalid_photos":"Об'єкт з недійсними фотографіями","invalid_quotes":"Неправильний об'єкт лапок"}},"sort":{"title":"Сортування","newest":"Встановлені (найновіші)","a_z":"За алфавітом (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Створити","moved_title":"Створення доповнення переїхало!","moved_description":"Після оновлення 7.1 створення аддонів було перенесено у веб-інтерфейс","moved_button":"Незабаром...."}}},"update":{"title":"Оновлення","offline":{"title":"Офлайн","description":"Неможливо отримати журнали оновлень в автономному режимі"},"error":{"title":"Помилка","description":"Не вдалося підключитися до сервера"}},"welcome":{"tip":"Коротка порада","sections":{"intro":{"title":"Ласкаво просимо до Mue Tab","description":"Дякуємо, що встановили Mue, сподіваємося, вам сподобається наше розширення.","notices":{"discord_title":"Приєднуйтесь до нашого Discord","discord_description":"Поспілкуйтеся зі спільнотою та розробниками Mue","discord_join":"Приєднатися","github_title":"Зробіть свій внесок на GitHub","github_description":"Повідомляйте про помилки, додавайте функції або зробіть пожертву","github_open":"Відкрито"}},"language":{"title":"Виберіть свою мову","description":"Mue може відображатися мовами, переліченими нижче. Ви також можете додавати нові переклади на нашій сторінці"},"theme":{"title":"Виберіть тему","description":"Mue доступний як у світлій, так і у темній темах, або може бути автоматично встановлений залежно від теми вашої системи.","tip":"За допомогою налаштувань Авто буде використано тему, встановлену на вашому комп'ютері. Цей параметр впливає на модальності і деякі віджети, що відображаються на екрані, такі як погода і нотатки."},"style":{"title":"Виберіть стиль","description":"Наразі Mue пропонує вибір між старим дизайном та нещодавно випущеним сучасним дизайном.","legacy":"Спадщина","modern":"Сучасний"},"settings":{"title":"Налаштування імпорту","description":"Встановлюєте Mue на новий пристрій? Не соромтеся імпортувати свої старі налаштування!","tip":"Ви можете експортувати свої старі налаштування, перейшовши на вкладку \\"Додатково\\" у вашому старому налаштуванні Mue. Потім вам потрібно натиснути кнопку експорту, яка завантажить JSON-файл. Ви можете завантажити цей файл сюди, щоб перенести ваші налаштування та уподобання з попередньої інсталяції Mue."},"privacy":{"title":"Параметри конфіденційності","description":"Увімкніть налаштування для додаткового захисту вашої конфіденційності за допомогою Mue.","offline_mode_description":"Увімкнення офлайн-режиму вимкне всі запити до будь-яких сервісів. Це призведе до вимкнення онлайн-фону, онлайн-котирувань, біржі, погоди, швидких посилань, журналу змін та деякої інформації про вкладки.","links":{"title":"Посилання","privacy_policy":"Політика конфіденційності","source_code":"Вихідний код"}},"final":{"title":"Останній крок","description":"Ваш досвід роботи з Mue Tab ось-ось почнеться.","changes":"Зміни","changes_description":"Щоб змінити налаштування пізніше, натисніть на іконку налаштувань у верхньому правому куті вкладки.","imported":"Імпортовані налаштування {amount}"}},"buttons":{"next":"Далі","preview":"Попередній перегляд","previous":"Попередні","close":"Закрити","finish":"Фініш"},"preview":{"description":"Наразі ви перебуваєте в режимі попереднього перегляду. Після закриття цієї вкладки налаштування буде скинуто.","continue":"Продовжити налаштування"}},"share":{"copy_link":"Скопіювати посилання","email":"Електронна пошта"}}`),FM={quote:"Скопійовані квоти",notes:"Нотатки скопійовано",reset:"Скидання успішно виконано",installed:"Успішно встановлено",uninstalled:"Успішно видалено",updated:"Успішно оновлено",error:"Щось пішло не так",imported:"Успішно імпортовано",no_storage:"Недостатньо місця для зберігання",link_copied:"Посилання скопійовано",stats_reset:"Статистику скинуто"},zb={tabname:UM,widgets:PM,modals:HM,toasts:FM},VM="Tab mới",GM={greeting:{morning:"Chào buổi sáng",afternoon:"Chào buổi chiều",evening:"Chào buổi tối",christmas:"Merry Christmas",newyear:"Happy New Year",halloween:"Happy Halloween",birthday:"Happy Birthday"},background:{credit:"Photo by",unsplash:"on Unsplash",information:"Information",download:"Download",downloads:"Downloads",views:"Views",likes:"Likes",location:"Location",camera:"Camera",resolution:"Resolution",source:"Source",category:"Category",exclude:"Don't show again",exclude_confirm:`Are you sure you don't want to see this image again?
Note: if you don't like "{category}" images, you can deselect the category in the background source settings.`,confirm:"Confirm"},search:"Search",quicklinks:{new:"New Link",edit:"Edit Link",name:"Name",url:"URL",icon:"Icon (optional)",add:"Add",name_error:"Must provide name",url_error:"Must provide URL"},date:{week:"Week"},weather:{not_found:"Not Found",meters:"{amount} metres",extra_information:"Extra Information",feels_like:"Feels like {amount}"},quote:{link_tooltip:"Open on Wikipedia",share:"Share",copy:"Copy",favourite:"Favourite",unfavourite:"Unfavourite"},navbar:{tooltips:{refresh:"Refresh"},notes:{title:"Notes",placeholder:"Type here"},todo:{title:"Todo",pin:"Pin",add:"Add",no_todos:"No Todos"},apps:{title:"Apps",no_apps:"No app links found"}}},KM=JSON.parse(`{"main":{"title":"Options","loading":"Loading...","file_upload_error":"File is over 2MB","navbar":{"settings":"Settings","library":"Library","discover":"Discover"},"error_boundary":{"title":"Error","message":"Failed to load this component of Mue","report_error":"Send Error Report","sent":"Sent!","refresh":"Refresh"},"settings":{"enabled":"Enabled","open_knowledgebase":"Open Knowledgebase","additional_settings":"Additional Settings","reminder":{"title":"NOTICE","message":"In order for all of the changes to take place, the page must be refreshed."},"sections":{"header":{"more_info":"More info","report_issue":"Report Issue","enabled":"Choose whether or not to show this widget","size":"Slider to control how large the widget is"},"time":{"title":"Time","format":"Format","type":"Type","type_subtitle":"Choose whether to display the time in digital format, analogue format, or a percentage completion of the day","digital":{"title":"Digital","subtitle":"Change how the digital clock looks","seconds":"Seconds","twentyfourhour":"24 Hour","twelvehour":"12 hour","zero":"Zero-padded"},"analogue":{"title":"Analogue","subtitle":"Change how the analogue clock looks","second_hand":"Seconds hand","minute_hand":"Minutes hand","hour_hand":"Hours hand","hour_marks":"Hour marks","minute_marks":"Minute marks","round_clock":"Rounded background"},"percentage_complete":"Percentage complete","vertical_clock":{"title":"Vertical Clock","change_hour_colour":"Change hour text colour","change_minute_colour":"Change minute text colour","change_second_colour":"Change second text colour"}},"date":{"title":"Date","week_number":"Week number","day_of_week":"Day of week","datenth":"Date nth","type":{"short":"Short","long":"Long","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"Author details","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),YM={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Tb={tabname:VM,widgets:GM,modals:KM,toasts:YM},WM="新标签页",QM={greeting:{morning:"早上好",afternoon:"下午好",evening:"晚上好",christmas:"圣诞节快乐",newyear:"新年快乐",halloween:"万圣节快乐",birthday:"生日快乐"},background:{credit:"图像作者:",unsplash:"@ Unsplash",information:"信息",download:"下载",downloads:"下载",views:"风景",likes:"喜爱",location:"地点",camera:"摄影",resolution:"分辨率",source:"来源",category:"分类",exclude:"不再显示",exclude_confirm:`您确定不希望看到这张照片吗?
值得注意的是,如果你不喜欢 "{category}" 图片, 你可以在背景的来源设置中取消选择。`,confirm:"确认"},search:"搜索",quicklinks:{new:"新快捷方式",edit:"编辑链接",name:"名称",url:"链接",icon:"图标 (可选)",add:"添加",name_error:"请输入名称",url_error:"请输入链接"},date:{week:"周"},weather:{not_found:"未找到",meters:"{amount}米",extra_information:"更多信息",feels_like:"体感温度 {amount}"},quote:{link_tooltip:"在维基百科中打开",share:"分享",copy:"复制",favourite:"收藏",unfavourite:"不感兴趣"},navbar:{tooltips:{refresh:"刷新"},notes:{title:"便签",placeholder:"请键入内容"},todo:{title:"计划任务",pin:"固定",add:"添加",no_todos:"未找到任务"},apps:{title:"应用",no_apps:"未找到应用链接"}}},ZM=JSON.parse(`{"main":{"title":"选项","loading":"载入中...","file_upload_error":"大小超过了 2MB","navbar":{"settings":"设置","library":"我的插件","discover":"插件市场"},"error_boundary":{"title":"错误","message":"无法载入该Mue组件","report_error":"发送错误报告","sent":"已发送!","refresh":"刷新"},"settings":{"enabled":"已启用","open_knowledgebase":"打开知识库","additional_settings":"更多设置","reminder":{"title":"注意","message":"刷新页面后设置才会生效"},"sections":{"header":{"more_info":"更多信息","report_issue":"报告 Issue","enabled":"选择是否显示此小部件","size":"滑动以控制该小部件的大小"},"time":{"title":"时间","format":"格式","type":"类型","type_subtitle":"选择时间显示类型(数字、模拟或百分比)","digital":{"title":"数字时钟","subtitle":"选择数字时钟的样式","seconds":"显示秒","twentyfourhour":"使用 24 小时制","twelvehour":"使用 12 小时制","zero":"加零补足两位数字"},"analogue":{"title":"模拟时钟","subtitle":"选择模拟时钟的样式","second_hand":"秒针","minute_hand":"分针","hour_hand":"时针","hour_marks":"时钟刻度","minute_marks":"分钟刻度","round_clock":"Rounded background"},"percentage_complete":"今天过去了%几","vertical_clock":{"title":"垂直时钟","change_hour_colour":"选择小时数颜色","change_minute_colour":"选择分钟数颜色","change_second_colour":"选择秒钟数颜色"}},"date":{"title":"显示日期","week_number":"第n周","day_of_week":"星期n","datenth":"添加th后缀","type":{"short":"短格式","long":"长格式","subtitle":"选择日期显示格式(短格式或长格式)"},"type_settings":"所选日期类型的显示设置和格式","short_date":"简写日期","short_format":"简写格式","long_format":"长格式","short_separator":{"title":"简写分隔","dots":"点","dash":"横杠","gaps":"空格","slashes":"斜杠"}},"quote":{"title":"名言警句","additional":"名言警句小部件的其他设置","author_link":"出处链接","author_details":"作者详情","custom":"自定义名言","custom_subtitle":"自定义名言","no_quotes":"没有名言","author":"作者","custom_buttons":"按钮","custom_author":"自定义出处","author_img":"显示作者图片","add":"继续添加名言","source_subtitle":"选择名言来源","buttons":{"title":"下方按钮","subtitle":"选择名言下显示的按钮","copy":"显示复制按钮","tweet":"显示发推按钮","favourite":"显示收藏按钮"}},"greeting":{"title":"问候","events":"节日问候","events_description":"设定 Mue 上的时间,如生日","enable_events":"在特定的事件显示节日问候","default":"常规问候","name":"您在问候中的名字","birthday":"生日","birthday_subtitle":"在您的生日时祝您生日快了","birthday_age":"显示年龄","birthday_date":"生日日期","additional":"设置显示的问候","custom":"自定义事件","event_name":"时间名","day":"日","month":"月","no_events":"没有事件","no_events_description":"试着添加一些事件","add_event":"添加事件"},"background":{"title":"背景","transition":"过渡动画","photo_information":"显示图片信息","show_map":"在图片信息内显示位置信息 (如果可用)","categories":"分类","buttons":{"title":"显示顶部按钮","view":"仅显示背景","favourite":"收藏","download":"下载"},"effects":{"title":"背景特效","subtitle":"为背景图片添加特效","blur":"模糊程度","brightness":"更改亮度","filters":{"title":"背景滤镜","amount":"数值","grayscale":"灰度","sepia":"相片","invert":"反色","saturate":"饱和度","contrast":"对比度"}},"type":{"title":"来源","api":"网络图像库API","custom_image":"自定义图像/视频","custom_colour":"自定义纯色背景","random_colour":"随机纯色背景","random_gradient":"随机渐变色背景"},"unsplash":{"title":"Unsplash 分类(s)","subtitle":"选择背景的分类","id":"分类 ID","id_subtitle":"输入 Unsplash 分类 ID,以英文逗号分隔"},"source":{"title":"来源","subtitle":"选择背景图片来与那","api":"背景来源","custom_background":"自定义背景 (支持图片/视频)","custom_colour":"自定义背景颜色","upload":"选择","add_colour":"添加颜色","add_background":"继续添加背景","drop_to_upload":"拖拽到此处上传","formats":"支持的格式: {list}","select":"或者选择文件","add_url":"添加 URL","disabled":"已禁用","loop_video":"循环播放","mute_video":"静音","quality":{"title":"画质","original":"原画","high":"高画质","normal":"普通画质","datasaver":"省流模式"},"custom_title":"自定义图片","custom_description":"从你的计算机本地选择图片","remove":"删除图片","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"显示","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"搜索栏","additional":"Additional options for search widget display and functionality","search_engine":"搜索引擎","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"自定义搜索链接","autocomplete":"搜索联想","autocomplete_provider":"联想功能提供引擎","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"语音搜索","dropdown":"搜索框左侧显示搜索引擎选择框","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"天气","location":"位置","auto":"自动定位","widget_type":"Widget Type","temp_format":{"title":"温度单位","celsius":"摄氏度","fahrenheit":"华氏度","kelvin":"开尔文"},"extra_info":{"title":"更多信息","show_location":"显示位置","show_description":"显示描述","weather_description":"Weather description","cloudiness":"云量","humidity":"湿度","visibility":"能见度","wind_speed":"风速","wind_direction":"风向","min_temp":"最低温度","max_temp":"最高温度","atmospheric_pressure":"大气压"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"快捷方式","additional":"Additional settings for quick links display and functions","open_new":"在新标签页打开","tooltip":"光标停留时下方显示标题","text_only":"仅显示标题","add_link":"Add Link","no_quicklinks":"No quicklinks","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Quick Links Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"消息","add":"继续添加消息","messages":"Messages","text":"文本","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"外观","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"主题","description":"Change the theme of the Mue widgets and modals","auto":"自动选择","light":"日间主题","dark":"夜间主题"},"navbar":{"title":"右上方功能键","widgets":"Navbar Widgets","notes":"便签","refresh":"刷新键","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"不显示","page":"页面"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"字体","description":"Change the font used in Mue","custom":"自定义字体","google":"从 Google Fonts 导入","weight":{"title":"字体粗细","thin":"极细","extra_light":"细字","light":"较细","normal":"一般","medium":"中等","semi_bold":"较粗","bold":"粗体","extra_bold":"加粗"},"style":{"title":"字体样式","normal":"常规","italic":"意大利斜体","oblique":"伪斜体"}},"accessibility":{"title":"无障碍设定","description":"Accessibility settings for Mue","animations":"动画效果","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"小部件缩放","toast_duration":"窗口弹出时间长度","milliseconds":"毫秒"}},"order":{"title":"小部件顺序"},"advanced":{"title":"高级","offline_mode":"启用离线模式","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"数据和设置","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","reset_modal":{"title":"警告","question":"您想要重置 Mue 的所有设置吗?","information":"本操作将删除所有数据。若您想保留数据及设置,请先将其导出。","cancel":"取消"},"customisation":"自定义","custom_css":"自定义 CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"自定义 JS","tab_name":"新标签页名称","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"时区","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"自动"},"experimental_warning":"请注意 Mue 团队无法提供实验性功能的支持。若您遇到问题,请先关闭实验性功能,再寻求帮助。","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"统计","sections":{"tabs_opened":"页面打开次数","backgrounds_favourited":"收藏的背景","backgrounds_downloaded":"下载过背景","quotes_favourited":"收藏的名言警句","quicklinks_added":"添加的快捷方式","settings_changed":"更改的设置","addons_installed":"添加的插件"},"usage":"启用统计","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"实验性功能","warning":"以下设置仍未完成编写或测试,可能无法正常运作!","developer":"开发者"},"language":{"title":"语言","quote":"名言语言","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"更新日志","by":"By {author}"},"about":{"title":"关于","version":{"title":"版本","checking_update":"正在检查更新……","update_available":"可下载更新","no_update":"无可下载更新","offline_mode":"离线模式下不能检查更新","error":{"title":"获取更新信息失败","description":"错误"}},"contact_us":"联系我们","support_mue":"支持 Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"使用资源","bg_images":"离线背景"},"contributors":"贡献者","supporters":"支持者","no_supporters":"There are currently no Mue supporters","photographers":"背景摄影者","curators":"Add-on creators"}},"buttons":{"reset":"重置","import":"导入","export":"导出","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"图片包","quote_packs":"名言包","preset_settings":"预设设定","no_items":"本类别为空","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"总览","information":"信息","last_updated":"更新日期","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"版本","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"添加至 Mue","remove":"卸载","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"您目前似乎离线","description":"请连接到互联网。"}},"addons":{"added":"已添加","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"这里空空如也","description":"请访问插件市场来添加插件。"},"sideload":{"title":"上传插件","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"排序","newest":"安装过 (从新到旧)","a_z":"首字母 (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"创建","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Get Started"}}},"update":{"title":"更新日志","offline":{"title":"离线模式已启用","description":"不能从官网获取更新日志"},"error":{"title":"错误","description":"无法连接到服务器"}},"welcome":{"tip":"快速提示","sections":{"intro":{"title":"欢迎使用 Mue 新标签插件","description":"感谢您的安装。祝您使用愉快。","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"更改语言","description":"Mue 支持以下语言。你也可以在这里添加新的翻译"},"theme":{"title":"选择一个主题","description":"Mue 支持日间和夜间主题,或者设置为自动选择,主题将跟随系统主题自动切换","tip":"使用自动选择将使用您的电脑的主题。这个设置也会影响设置界面和一些小组件的主题,比如天气和便签。"},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"导入设置","description":"在新设备上安装 Mue? 可以直接导入之前的设置!","tip":"您可以通过在之前设备上点击右上角的设置,打开高级选项卡,然后点击导出按钮,浏览器将自动下载一个 json 文件。你可以在上面点击导入按钮导入该 json 文件来导入你之前的设置和偏好。"},"privacy":{"title":"隐私设置","description":"进行一些设置来和 Mue 更好的保护您的隐私","offline_mode_description":"启用离线模式将会关闭所有服务的网络访问。该选项会关闭所有在线背景图片、在线名言警句、插件市场、天气、快捷方式、更新历史和一些关于信息的网络访问。","links":{"title":"链接","privacy_policy":"隐私政策","source_code":"源代码"}},"final":{"title":"最后一步","description":"马上即可开始使用 Mue!","changes":"更改的设置","changes_description":"如果需要进一步设置,点击右上角的设置图标即可弹出完整设置对话框。如果显示不正常,刷新即可。","imported":"导入{amount}设置"}},"buttons":{"next":"下一步","preview":"Preview","previous":"上一步","close":"关闭","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),XM={quote:"名言已复制",notes:"便签已复制",reset:"重置成功",installed:"安装成功",uninstalled:"卸载成功",updated:"Successfully updated",error:"发生错误",imported:"导入成功",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Nb={tabname:WM,widgets:QM,modals:ZM,toasts:XM},JM="新分頁",$M={greeting:{morning:"早安",afternoon:"午安",evening:"晚安",christmas:"聖誕快樂",newyear:"新年快樂",halloween:"萬聖節快樂",birthday:"生日快樂"},background:{credit:"影像來自",unsplash:"在 Unsplash 上",information:"資訊",download:"下載",downloads:"下載",views:"檢視",likes:"喜歡",location:"地點",camera:"相機",resolution:"解析度",source:"來源",category:"類別",exclude:"不要再顯示",exclude_confirm:`你確定你不想再次看到此影像嗎?
-注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},eC=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),tC={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Eb={tabname:JM,widgets:$M,modals:eC,toasts:tC};function Bl(o){return new E0("en_GB",{ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb})}const aC={ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb},oC="https://webbrain.one",iC="https://webbrain.one/privacy",nC="https://github.com/esokullu/webbrain",sC="https://github.com/esokullu/webbrain/issues/new",rC="https://github.com/mue/mue",lC="7.6.0",uC="1.0.0",dC=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:sC,MUE_REPO_URL:rC,MUE_VERSION:lC,PRIVACY_URL:iC,REPO_URL:nC,VERSION:uC,WEBSITE_URL:oC},Symbol.toStringTag,{value:"Module"}));class cC{static async postEvent(){}static async tabLoad(){}}const me={language:{},languagecode:"",stats:cC,constants:dC},mC={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Rm(){let o;try{o=String(Hl?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const pC=new Set(["ar","fa","he","ur"]);function fC(){const o=Rm(),n=String(o||"en").replace("_","-");return{lang:n,dir:pC.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function gC(){return mC[Rm()]||"en_GB"}const hC=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],_C={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","Runs immediately: WebBrain starts acting in your browser as soon as you press Enter.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","Se ejecuta de inmediato: WebBrain empieza a actuar en tu navegador en cuanto pulsas Intro.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","S’exécute immédiatement : WebBrain commence à agir dans votre navigateur dès que vous appuyez sur Entrée.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","Wird sofort ausgeführt: WebBrain beginnt in Ihrem Browser zu handeln, sobald Sie die Eingabetaste drücken.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","Hemen çalışır: Enter’a bastığınız anda WebBrain tarayıcınızda işlem yapmaya başlar.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","Executa imediatamente: o WebBrain começa a agir no seu navegador assim que pressionar Enter.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","Запускается сразу: WebBrain начнёт действовать в вашем браузере, как только вы нажмёте Enter.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","Запускається одразу: WebBrain почне діяти у вашому браузері, щойно ви натиснете Enter.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","将立即执行:按下 Enter 后,WebBrain 会马上开始在您的浏览器中操作。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","すぐに実行されます。Enter を押すと、WebBrain はすぐにブラウザーの操作を始めます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","즉시 실행됩니다. Enter를 누르는 즉시 WebBrain이 브라우저에서 작업을 시작합니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يُنفَّذ فورًا: يبدأ WebBrain بالعمل في متصفحك بمجرد ضغطك على Enter.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","מופעל מיד: WebBrain מתחיל לפעול בדפדפן שלך ברגע שתלחץ על Enter.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","तुरंत चलता है: Enter दबाते ही WebBrain आपके ब्राउज़र में काम करना शुरू कर देगा।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","Langsung dijalankan: WebBrain mulai bertindak di browser Anda begitu Anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","Dijalankan serta-merta: WebBrain mula bertindak dalam pelayar anda sebaik sahaja anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Agad na tatakbo: magsisimulang kumilos ang WebBrain sa iyong browser sa sandaling pindutin mo ang Enter.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","Uruchamia się natychmiast: WebBrain zacznie działać w Twojej przeglądarce zaraz po naciśnięciu Enter.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","ทำงานทันที: WebBrain จะเริ่มดำเนินการในเบราว์เซอร์ของคุณทันทีที่คุณกด Enter","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","Chạy ngay lập tức: WebBrain bắt đầu thao tác trong trình duyệt của bạn ngay khi bạn nhấn Enter.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","সঙ্গে সঙ্গে চলে: Enter চাপামাত্র WebBrain আপনার ব্রাউজারে কাজ শুরু করবে।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","بلافاصله اجرا می‌شود: به‌محض فشردن Enter، WebBrain در مرورگر شما شروع به عمل می‌کند.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","Wordt direct uitgevoerd: WebBrain begint in uw browser te handelen zodra u op Enter drukt.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},Sm=Object.fromEntries(Object.entries(_C).map(([o,n])=>[o,Object.fromEntries(hC.map((u,l)=>[`wb.${u}`,n[l]]))]));function Wt(o,n=Rm()){return Sm[n]?.[o]??Sm.en[o]??o}const Db=o=>typeof o=="string"&&o.startsWith("wb.");function Mm(o=document.documentElement){const n=fC(),{lang:u,dir:l}=Sm[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const jb=y.createContext();function vC({children:o,initialLanguage:n}){const[u,l]=y.useState(n),d=y.useRef(Bl());y.useEffect(()=>{u!==n&&(d.current=Bl()),me.language=d.current,me.languagecode=u,Mm()},[u,n]);const c=y.useCallback(h=>{d.current=Bl(),me.language=d.current,me.languagecode=h,Mm();const k=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(k===_||!k){const g=aC[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=y.useCallback((h,k={})=>Db(h)?Wt(h):d.current?d.current.getMessage(u,h,k):h,[u]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),y.useEffect(()=>{me.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(jb.Provider,{value:p,children:o})}function Ob(){const o=y.useContext(jb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Zo(){const{t:o}=Ob();return o}function bC({info:o}){const n=Zo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const yC=y.memo(bC);var qb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},R_=ve.createContext&&ve.createContext(qb),kC=["attr","size","title"];function wC(o,n){if(o==null)return{};var u,l,d=SC(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function SC(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Fl(){return Fl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Fl.apply(null,arguments)}function B_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Vl(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?B_(Object(u),!0).forEach(function(l){MC(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):B_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function MC(o,n,u){return(n=CC(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function CC(o){var n=AC(o,"string");return typeof n=="symbol"?n:n+""}function AC(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Rb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Vl({key:u},n.attr),Rb(n.child)))}function le(o){return n=>ve.createElement(xC,Fl({attr:Vl({},o.attr)},n),Rb(o.child))}function xC(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=wC(o,kC),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Fl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Vl(Vl({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return R_!==void 0?ve.createElement(R_.Consumer,null,u=>n(u)):n(qb)}function zC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function nN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Us(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function TC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function Bb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Ps(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function NC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Bm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Lb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function EC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function DC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function jC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function OC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function qC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function RC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ib(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function BC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function L_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function Ub(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function LC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function IC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function I_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function UC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function PC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function HC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function FC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Pb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function VC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function GC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function KC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function YC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function Lm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function WC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function QC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function ZC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function XC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function JC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function $C(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function U_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function yN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function P_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function eA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function kN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function wN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function SN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function tA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function aA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function oA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function MN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function CN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function iA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function nA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function sA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function rA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Wo={SETTINGS:"settings"},Re={SETTINGS:DC,LIBRARY:$C,TASKBOX:Ib,DISCOVER:QC,NAVBAR:TC,GREETING:zC,TIME:FC,QUOTE:tA,QUICKLINKS:LC,DATE:XC,MESSAGE:aA,BACKGROUND:eA,SEARCH:Lm,WEATHER:RC,APPEARANCE:BC,LANGUAGE:KC,ADVANCED:iA,EXPERIMENTAL:JC,STATS:rA,CHANGELOG:oA,ABOUT:WC,ADDED:nA,CREATE:UC,OVERVIEW:GC,COLLECTIONS:OC},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},AN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],lA=[{tab:Wo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],xN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],js=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Wo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Gl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},H_=()=>js()!==null,uA="MueCustomBackgrounds",dA=1,zt="backgrounds";function Ni(){return new Promise((o,n)=>{const u=indexedDB.open(uA,dA);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Hb(){try{const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function cA(){return(await Hb()).map(n=>n.url||n)}const $s=o=>{const n=new Promise((u,l)=>{o.oncomplete=()=>u(),o.onerror=()=>l(o.error||new Error("IndexedDB request failed")),o.onabort=()=>l(o.error||new Error("IndexedDB transaction aborted"))});return n.catch(()=>{}),n};async function mA(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},f=d.add(c);return await l,f.result}async function zN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result[o];f&&d.delete(f.id)},await l}async function TN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result;o.filter(p=>f[p]).forEach(p=>d.delete(f[p].id))},await l}async function Fb(){const n=(await Ni()).transaction(zt,"readwrite"),u=$s(n);n.objectStore(zt).clear(),await u}async function pA(){const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function NN(o,n){const l=(await Ni()).transaction(zt,"readwrite"),d=$s(l),c=l.objectStore(zt),f=c.get(o);let p=!0;if(f.onsuccess=()=>{const h=f.result;h?(Object.assign(h,n),h.updatedAt=Date.now(),c.put(h)):p=!1},await d,!p)throw new Error("Background not found")}async function EN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await pA()>0)return!1;try{for(const l of n)await mA(l)}catch(l){try{await Fb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function fA({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(l)try{const g=await cA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),k=()=>{Gl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:me.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:me.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:k,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:me.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(yC,{info:o,api:n,url:u})]})}const gA=y.memo(fA),F_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function hA({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=y.useState(F_);return y.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(F_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const _A=y.memo(hA);function vA(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:d.photoInfo?{...d.photoInfo}:c.photoInfo}))},[]),l=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const bA={photo:[5]},am={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:bA};function Vb(o){const n=Object.keys(am),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${am[u].photo[Math.floor(Math.random()*am[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function yA(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}const kA=[".mp4",".webm",".ogg"];function Im(o){const n=String(o??""),u=n.toLowerCase();if(u.startsWith("data:video/")||u.startsWith("video/"))return!0;let l;try{l=new URL(n).pathname}catch{l=n.split(/[?#]/)[0]}return l=l.toLowerCase(),kA.some(d=>l.endsWith(d))}const Gb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function wA(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Gb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,video:Im(n.url),photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return MA();case"colour":return SA();case"random_colour":case"random_gradient":return yA(u);case"custom":return await CA(o);default:return null}}function SA(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function MA(){return{...Vb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function CA(o){let n=await Hb();if(!n||n.length===0){const c=Gb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Vb("custom");const d={url:l,type:"custom",video:Im(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function AA(o,n){const u=y.useRef(0),l=y.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const k=localStorage.getItem("welcomeImage");if(k){o(JSON.parse(k));return}}const h=await wA();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=y.useCallback(()=>{n(),l()},[l,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function xA(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const zA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ll=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+zA.indexOf(o[n++]);return l},Kb=Math.pow,Os=Math.PI,Yb=3294.6,Wb=269.025,TA=o=>o>10.31475?Kb(o/Wb+.052132,2.4):o/Yb,NA=o=>~~(o>1227e-8?Wb*Kb(o,.416666)-13.025:o*Yb+1),Kl=4096,Qb=new Uint8ClampedArray(Kl+1);for(let o=0;o<=Kl;o++)Qb[o]=NA(o/Kl);const om=o=>o<=0?0:o>=1?255:Qb[o*Kl+.5|0],qs=o=>(o<0?-1:1)*o*o,V_=o=>{for(o+=Os/2;o>Os;)o-=Os*2;const n=1.27323954*o-.405284735*qs(o);return .225*(qs(n)-n)+n};function EA(o){const n=Ll(o,2,6);return[n>>16,n>>8&255,n&255]}function DA(o,n,u,l){const d=Ll(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,A,x,T,z,L;const G=(Ll(o,1,2)+1)/13446*(l|1),Q=new Float64Array(p*3),H=EA(o);for(h=0;h<3;h++)Q[h]=TA(H[h]);for(h=1;h<p;h++)L=Ll(o,4+h*2,6+h*2),Q[h*3]=qs(~~(L/361)-9)*G,Q[h*3+1]=qs(~~(L/19)%19-9)*G,Q[h*3+2]=qs(L%19-9)*G;const j=new Float64Array(f*u),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<u;g++)j[k*u+g]=V_(Os*g*k/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=V_(Os*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)x=j[k*u+g],T=(h+k*c)*3,b+=Q[T]*x,S+=Q[T+1]*x,C+=Q[T+2]*x;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)A=q[h*n+_],T=h*3,b+=W[T]*A,S+=W[T+1]*A,C+=W[T+2]*A;z=4*_+g*V,$[z]=om(b),$[z+1]=om(S),$[z+2]=om(C),$[z+3]=255}}return $}function jA(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(DA(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Um(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Pm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Zb=()=>document.documentElement.dataset.bgMaximised==="true",OA={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},G_=1200,Nl=o=>`url("${String(o).replace(/[\\"]/g,"\\$&").replace(/\r?\n|\r/g,"\\a ")}")`;function qA(o,n){const u=y.useRef(null),l=y.useRef(n);l.current=n,y.useEffect(()=>{if(o.video)return;const d=document.getElementById("backgroundImage");if(!d)return;let c=!1,f=null;return(async()=>{if(o.url){const h=localStorage.getItem("bgtransition")!=="false",k=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!h||k){if(/^https?:/i.test(o.url)){const A=new Image;A.src=o.url;const x=await new Promise(T=>{A.onload=()=>T(!0),A.onerror=()=>T(!1)});if(c)return;if(!x){l.current?.(o.url);return}}d.style.background=Nl(o.url),document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let _=document.getElementById("backgroundOverlay");if(_||(_=document.createElement("div"),_.id="backgroundOverlay",d.parentNode.insertBefore(_,d.nextSibling)),o.photoInfo?.colour&&(d.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const A=jA(o.photoInfo.blur_hash,64,64);A&&(d.style.backgroundImage=Nl(A))}const g=await xA(o.url);if(c){g&&URL.revokeObjectURL(g);return}const b=g||o.url;g&&(u.current&&URL.revokeObjectURL(u.current),u.current=g);const S=new Image;S.src=b;const C=await new Promise(A=>{S.onload=()=>A(!0),S.onerror=()=>A(!1)});if(c)return;if(!C&&/^https?:/i.test(o.url)){l.current?.(o.url);return}_.style.transition="none",_.style.opacity="0",_.style.backgroundImage="",_.offsetHeight,_.style.backgroundImage=Nl(b),_.offsetHeight,_.style.transition=`opacity ${G_/1e3}s ease-in-out`,_.offsetHeight,_.style.opacity="1",f=setTimeout(()=>{d.style.backgroundImage=Nl(b),_.style.opacity="0",_.style.backgroundImage=""},G_+100)}else o.style?d.setAttribute("style",o.style):d.style.backgroundImage=""})(),()=>{c=!0,clearTimeout(f),u.current&&(URL.revokeObjectURL(u.current),u.current=null);const h=document.getElementById("backgroundOverlay");h&&h.remove()}},[o.url,o.style,o.video,o.photoInfo])}function RA(o){return y.useMemo(()=>({WebkitFilter:Zb()?"blur(0px) brightness(100%)":Um()}),[o])}function BA(o){return y.useMemo(()=>Zb()?OA:Pm(),[o])}function LA(o,n){y.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Um(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Pm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function IA(){const{backgroundData:o,updateBackground:n,resetBackground:u}=vA(),{refreshBackground:l}=AA(n,u),d=RA(o),c=BA(o);return qA(o,f=>{f===o.url&&!o.video&&n({video:!0})}),LA(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(_A,{url:o.url,filterStyle:d}):w.jsx(gA,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const UA=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),PA=function(o,n){return new URL(o,n).href},K_={},Hm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let k=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=k(u.map(_=>{if(_=PA(_,l),_ in K_)return;K_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const A=f[C];if(A.href===_&&(!g||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":UA,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,A)=>{S.addEventListener("load",C),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Xb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Fm(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Jb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function HA(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Jb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ds(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Jb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const FA=y.lazy(()=>Hm(()=>import("./index-DdIzjGFh.js"),[],import.meta.url));function VA({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(FA,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function GA({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Ds(u)).join(""),KA=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,u]=y.useState(""),[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),A=y.useRef(void 0),x=(T=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{A.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Fm(z,L)),localStorage.getItem("timeType")){case"percentageComplete":u(HA(z.getHours()/24)),_("");break;case"analogue":Hm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(z);break;default:{let G,Q="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);Q=`:${Yt(j)}`,h(Yt(j))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Yt(q)}:${Yt(j)}${Q}`,d(Yt(q)),f(Yt(j))}else{const q=z.getHours();G=`${Ds(q)}:${Yt(j)}${Q}`,d(Ds(q)),f(Yt(j))}u(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Yt(V)}:${Yt(q)}${Q}`,d(Yt(V)),f(Yt(q))}else G=`${Ds(j)}:${Yt(q)}${Q}`,d(Ds(j)),f(Yt(q));u(G),_(z.getHours()>11?"PM":"AM")}break}}x()},T)};return y.useEffect(()=>{const T=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(A.current),A.current=null,x(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),x(0),_e.on("refresh",T),()=>{_e.off("refresh",T),A.current&&clearTimeout(A.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(VA,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(GA,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},YA=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},Y_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},WA=()=>{const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Fm(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const A=localStorage.getItem("defaultGreetingMessage");A==="false"?C="":C=YA(g,C);let x="";const T=localStorage.getItem("greetingName");typeof T=="string"&&T.replace(/\s/g,"").length>0&&(x=`, ${T.trim()}`);const z=localStorage.getItem("birthdayenabled");if(A==="false"&&z!=="true"&&(x=x.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&Y_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Xb(Y_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${x}`),k()},_)};return y.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},QA="wbNewtabHandoff:",nu=o=>`${QA}${o}`,ZA=4e3,su=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Hs=()=>su()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Yl=null;async function XA(){let o=null;try{o=await Hs()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await tx(Hs(),o.id),Yl=o,Yl}function JA({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,ZA),mode:n==="act"?"act":"ask",createdAt:l}}const $b=16e4,ho=new Map;function ey(o,n=""){let u;const l=new Promise(c=>{u=c}),d=(c=!0)=>{ho.get(o)?.promise===l&&ho.delete(o),u(c)};return ho.set(o,{promise:l,release:d,text:n}),d}const $A=o=>ho.has(o),ex=o=>ho.get(o)?.text??"";function W_(o=Yl){return ho.get(o?.id)?.promise??Promise.resolve(!0)}async function tx(o,n,u=Date.now()){if(!o?.storage?.local?.get||ho.has(n))return!1;const l=nu(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||ho.has(n))return!1;const c=$b-(u-Number(d.createdAt||0));return c>0?(ty(o,n,ey(n,String(d.text??"")),c),!0):!1}function ty(o,n,u,l=$b){const d=nu(n);let c;const f=(h,k)=>{(!k||k==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(h=!0){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u(h)}c=setTimeout(()=>p(!1),l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function ax({text:o,mode:n},u=Hs(),l=Yl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(ho.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=su();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=ey(l.id,String(o??"")),f=JA({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[nu(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(k){h=Promise.reject(k),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(ty(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async k=>{throw await p.catch(()=>{}),await ox(u,l.id,f.id),c(),k})}async function ox(o,n,u){const l=nu(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function ix(o=Hs()){return su()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const Q_=new Set(["http:","https:"]);function nx(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return Q_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return Q_.has(u.protocol)?u.href:null}catch{return null}return null}async function sx(o,n=Hs(),u=l=>window.location.assign(l)){const l=nx(o);if(l)return u(l),!0;if(su()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const rx=[{id:"ask",icon:PC},{id:"act",icon:Ib},{id:"search",icon:Lm}],ay=()=>rx.filter(o=>o.id!=="search"||ix()),lx=()=>{const o=localStorage.getItem("taskBoxMode");return ay().some(n=>n.id===o)?o:"ask"};function ux(){const[o,n]=y.useState(lx),[u,l]=y.useState(""),[d,c]=y.useState(""),[f,p]=y.useState(!1),h=y.useRef(null),k=y.useRef(!1);y.useEffect(()=>{let g=!0;return XA().then(b=>{if(g&&b?.id!=null&&$A(b.id)){p(!0);const S=ex(b.id);W_(b).then(C=>{g&&(p(!1),C===!1&&(l(A=>A||S),c(Wt("wb.panel_failed"))))})}}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||k.current)){if(c(""),o==="search"){sx(b).catch(()=>c(Wt("wb.panel_failed")));return}k.current=!0,p(!0),ax({text:b,mode:o}).then(()=>(l(""),W_())).then(S=>{S===!1&&(l(C=>C||b),c(Wt("wb.panel_failed")))}).catch(()=>c(Wt("wb.panel_failed"))).finally(()=>{k.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Wt(`wb.placeholder_${o}`),"aria-label":Wt(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Wt("wb.go"),disabled:f||!u.trim(),children:w.jsx(Lb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:ay().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:Wt(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint taskBoxWarning",role:"note",children:Wt("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const Z_="webbrain_chat_history",im="records";async function dx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===Z_))return[];const l=await new Promise((d,c)=>{const f=n.open(Z_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(im)?await new Promise((d,c)=>{const f=[],p=l.transaction([im],"readonly").objectStore(im),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},k.onerror=()=>c(k.error)}):[]}finally{l.close()}}const X_="../src/ui/history.html";function cx(){const[o,n]=y.useState(null);return y.useEffect(()=>{let u=!1;return dx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Wt("wb.recent_title")}),w.jsx("a",{href:X_,children:Wt("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Wt("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${X_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const Cm=Math.min,An=Math.max,Wl=Math.round,_o=o=>({x:o,y:o}),mx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(o,n,u){return An(o,Cm(n,u))}function ru(o,n){return typeof o=="function"?o(n):o}function Tn(o){return o.split("-")[0]}function lu(o){return o.split("-")[1]}function oy(o){return o==="x"?"y":"x"}function iy(o){return o==="y"?"height":"width"}function Yo(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ny(o){return oy(Yo(o))}function fx(o,n,u){u===void 0&&(u=!1);const l=lu(o),d=ny(o),c=iy(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Ql(f)),[f,Ql(f)]}function gx(o){const n=Ql(o);return[Am(o),n,Am(n)]}function Am(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const J_=["left","right"],$_=["right","left"],hx=["top","bottom"],_x=["bottom","top"];function vx(o,n,u){switch(o){case"top":case"bottom":return u?n?$_:J_:n?J_:$_;case"left":case"right":return n?hx:_x;default:return[]}}function bx(o,n,u,l){const d=lu(o);let c=vx(Tn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Am)))),c}function Ql(o){const n=Tn(o);return mx[n]+o.slice(n.length)}function yx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function kx(o){return typeof o!="number"?yx(o):{top:o,right:o,bottom:o,left:o}}function Zl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function ev(o,n,u){let{reference:l,floating:d}=o;const c=Yo(n),f=ny(n),p=iy(f),h=Tn(n),k=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=lu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&k?-1:1)),S}async function wx(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=ru(n,o),C=kx(S),x=p[b?g==="floating"?"reference":"floating":g],T=Zl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(x)))==null||u?x:x.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Q=Zl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(T.top-Q.top+C.top)/G.y,bottom:(Q.bottom-T.bottom+C.bottom)/G.y,left:(T.left-Q.left+C.left)/G.x,right:(Q.right-T.right+C.right)/G.x}}const Sx=50,Mx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:wx},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=ev(k,l,h),b=l,S=0;const C={};for(let A=0;A<c.length;A++){const x=c[A];if(!x)continue;const{name:T,fn:z}=x,{x:L,y:G,data:Q,reset:H}=await z({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[T]={...C[T],...Q},H&&S<Sx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=ev(k,b,h)),A=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},Cx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...x}=ru(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const T=Tn(d),z=Yo(p),L=Tn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),Q=b||(L||!A?[Ql(p)]:gx(p)),H=C!=="none";!b&&H&&Q.push(...bx(p,A,C,G));const j=[p,...Q],q=await h.detectOverflow(n,x),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[T]),g){const X=fx(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=j[X];if(Y&&(!(g==="alignment"?z!==Yo(Y):!1)||$.every(K=>Yo(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const N=(ae=$.filter(K=>{if(H){const ie=Yo(K.placement);return ie===z||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];N&&(I=N);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},Ax=new Set(["left","top"]);async function xx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=Tn(u),p=lu(u),h=Yo(u)==="y",k=Ax.has(f)?-1:1,_=c&&h?-1:1,g=ru(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*k}:{x:b*k,y:S*_}}const zx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await xx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Tx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=ru(o,n),_={x:u,y:l},g=await c.detectOverflow(n,k),b=Yo(d),S=oy(b);let C=_[S],A=_[b];const x=(z,L)=>px(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=x(S,C)),p&&(A=x(b,A));const T=h.fn({...n,[S]:C,[b]:A});return{...T,data:{x:T.x-u,y:T.y-l,enabled:{[S]:f,[b]:p}}}}}};function uu(){return typeof window<"u"}function Nn(o){return sy(o)?(o.nodeName||"").toLowerCase():"#document"}function la(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Xo(o){var n;return(n=(sy(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function sy(o){return uu()?o instanceof Node||o instanceof la(o).Node:!1}function Wa(o){return uu()?o instanceof Element||o instanceof la(o).Element:!1}function Jo(o){return uu()?o instanceof HTMLElement||o instanceof la(o).HTMLElement:!1}function tv(o){return!uu()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof la(o).ShadowRoot}function du(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Nx(o){return/^(table|td|th)$/.test(Nn(o))}function cu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Ex=/transform|translate|scale|rotate|perspective|filter/,Dx=/paint|layout|strict|content/,Mi=o=>!!o&&o!=="none";let nm;function Vm(o){const n=Wa(o)?Qa(o):o;return Mi(n.transform)||Mi(n.translate)||Mi(n.scale)||Mi(n.rotate)||Mi(n.perspective)||!Gm()&&(Mi(n.backdropFilter)||Mi(n.filter))||Ex.test(n.willChange||"")||Dx.test(n.contain||"")}function jx(o){let n=Ti(o);for(;Jo(n)&&!Fs(n);){if(Vm(n))return n;if(cu(n))return null;n=Ti(n)}return null}function Gm(){return nm==null&&(nm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nm}function Fs(o){return/^(html|body|#document)$/.test(Nn(o))}function Qa(o){return la(o).getComputedStyle(o)}function mu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Ti(o){if(Nn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||tv(o)&&o.host||Xo(o);return tv(n)?n.host:n}function ry(o){const n=Ti(o);return Fs(n)?(o.ownerDocument||o).body:Jo(n)&&du(n)?n:ry(n)}function ly(o,n,u){var l;n===void 0&&(n=[]);const d=ry(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=la(d);return c?(xm(f),n.concat(f,f.visualViewport||[],du(d)?d:[],[])):n.concat(d,ly(d,[]))}function xm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function uy(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Jo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Wl(u)!==c||Wl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function dy(o){return Wa(o)?o:o.contextElement}function xn(o){const n=dy(o);if(!Jo(n))return _o(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=uy(n);let f=(c?Wl(u.width):u.width)/l,p=(c?Wl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Ox=_o(0);function cy(o){const n=la(o);return!Gm()||!n.visualViewport?Ox:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function qx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===la(o)}function Vs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=dy(o);let f=_o(1);n&&(l?Wa(l)&&(f=xn(l)):f=xn(o));const p=qx(c,u,l)?cy(c):_o(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=la(c),S=Wa(l)?la(l):l;let C=b,A=xm(C);for(;A&&S!==C;){const x=xn(A),T=A.getBoundingClientRect(),z=Qa(A),L=T.left+(A.clientLeft+parseFloat(z.paddingLeft))*x.x,G=T.top+(A.clientTop+parseFloat(z.paddingTop))*x.y;h*=x.x,k*=x.y,_*=x.x,g*=x.y,h+=L,k+=G,C=la(A),A=xm(C)}}return Zl({width:_,height:g,x:h,y:k})}function pu(o,n){const u=mu(o).scrollLeft;return n?n.left+u:Vs(Xo(o)).left+u}function my(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-pu(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Rx(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Xo(l),p=n?cu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},k=_o(1);const _=_o(0),g=Jo(l);if((g||!c)&&((Nn(l)!=="body"||du(f))&&(h=mu(l)),g)){const S=Vs(l);k=xn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?my(f,h):_o(0);return{width:u.width*k.x,height:u.height*k.y,x:u.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:u.y*k.y-h.scrollTop*k.y+_.y+b.y}}function Bx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Lx(o){const n=mu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+pu(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ix=25;function Ux(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=la(o),c=Xo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Gm()||n==="fixed";l?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(pu(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),A=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,x=Math.abs(c.clientWidth-S.clientWidth-A),T=getComputedStyle(c).scrollbarGutter==="stable both-edges"?x/2:x;T<=Ix&&(p-=T)}return{width:p,height:h,x:k,y:_}}function Px(o,n){const u=Vs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=xn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=l*c.y;return{width:f,height:p,x:h,y:k}}function av(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=Ux(o,u,n);else if(n==="document")l=Lx(Xo(o));else if(Wa(n))l=Px(n,u);else{const d=cy(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Zl(l)}function Hx(o,n){const u=n.get(o);if(u)return u;let l=ly(o,[]).filter(p=>Wa(p)&&Nn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?Ti(o):o;for(;Wa(f)&&!Fs(f);){const p=Qa(f),h=Vm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=Ti(f)}return n.set(o,l),l}function Fx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?cu(n)?[]:Hx(n,this._c):[].concat(u),l],p=av(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=av(n,f[b],d);h=An(S.top,h),k=Cm(S.right,k),_=Cm(S.bottom,_),g=An(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function Vx(o){const{width:n,height:u}=uy(o);return{width:n,height:u}}function Gx(o,n,u){const l=Jo(n),d=Xo(n),c=u==="fixed",f=Vs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=_o(0);if((l||!c)&&((Nn(n)!=="body"||du(d))&&(p=mu(n)),l)){const b=Vs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=pu(d));const k=d&&!l&&!c?my(d,p):_o(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function sm(o){return Qa(o).position==="static"}function ov(o,n){if(!Jo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Xo(o)===u&&(u=u.ownerDocument.body),u}function py(o,n){const u=la(o);if(cu(o))return u;if(!Jo(o)){let d=Ti(o);for(;d&&!Fs(d);){if(Wa(d)&&!sm(d))return d;d=Ti(d)}return u}let l=ov(o,n);for(;l&&Nx(l)&&sm(l);)l=ov(l,n);return l&&Fs(l)&&sm(l)&&!Vm(l)?u:l||jx(o)||u}const Kx=async function(o){const n=this.getOffsetParent||py,u=this.getDimensions,l=await u(o.floating);return{reference:Gx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Yx(o){return Qa(o).direction==="rtl"}const Wx={convertOffsetParentRelativeRectToViewportRelativeRect:Rx,getDocumentElement:Xo,getClippingRect:Fx,getOffsetParent:py,getElementRects:Kx,getClientRects:Bx,getDimensions:Vx,getScale:xn,isElement:Wa,isRTL:Yx},Qx=zx,Zx=Tx,Xx=Cx,Jx=(o,n,u)=>{const l=new Map,d=u??{},c={...Wx,...d.platform,_c:l};return Mx(o,n,{...d,platform:c})};var Cn=qm(),$x=typeof document<"u",e2=function(){},Il=$x?y.useLayoutEffect:e2;function Xl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Xl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Xl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function fy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(o,n){const u=fy(o);return Math.round(n*u)/u}function rm(o){const n=y.useRef(o);return Il(()=>{n.current=o}),n}function fu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(l);Xl(b,l)||S(l);const[C,A]=y.useState(null),[x,T]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,A(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,T(K))},[]),G=c||C,Q=f||x,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=rm(h),W=rm(d),ee=rm(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Jx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Xl(q.current,ne)&&(q.current=ne,Cn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);Il(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const X=y.useRef(!1);Il(()=>(X.current=!0,()=>{X.current=!1}),[]),Il(()=>{if(G&&(H.current=G),Q&&(j.current=Q),G&&Q){if($.current)return $.current(G,Q,ae);ae()}},[G,Q,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:Q}),[G,Q]),N=y.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=iv(I.floating,_.x),ne=iv(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...fy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:N}),[_,ae,Y,I,N])}const t2=(o,n)=>{const u=Qx(o);return{name:u.name,fn:u.fn,options:[o,n]}},gu=(o,n)=>{const u=Zx(o);return{name:u.name,fn:u.fn,options:[o,n]}},a2=(o,n)=>{const u=Xx(o);return{name:u.name,fn:u.fn,options:[o,n]}},o2={position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function i2({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=`tooltip-${y.useId().replace(/:/g,"")}`,b=y.useRef(null),{x:S,y:C,refs:A,strategy:x,placement:T}=fu({placement:l||"bottom",middleware:[a2(),t2(15),gu()],elements:{reference:k}}),z=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Q=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"tooltip",style:u,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:Q,ref:_,children:[y.isValidElement(o)&&!o.props["aria-describedby"]?y.cloneElement(o,{"aria-describedby":g}):o,w.jsxs("span",{id:g,role:"tooltip",style:o2,children:[n,d?` ${d}`:""]})]}),(c||p)&&w.jsxs("span",{ref:A.setFloating,style:{position:x,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":T,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(i2),Gs=y.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),A=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return A;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Gs.displayName="Button";const Qo=o=>n=>{n.target===n.currentTarget&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),o(n))};function n2({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?me.getMessage("widgets.quicklinks.edit"):me.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:me.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.welcome.buttons.close"),onClick:()=>l(),onKeyDown:Qo(()=>l()),children:w.jsx(Ps,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.url"),value:k,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Gs,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Gs,{type:"settings",onClick:()=>u(p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("widgets.quicklinks.add")})]})]})}const DN=y.memo(n2),s2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],r2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function zm(o){localStorage.clear(),s2.forEach(l=>localStorage.setItem(l.name,l.value));const n=r2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",me.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function l2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function lm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||me.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");if(u){const d=document.createElement("style");d.id="customcss",d.textContent=u,document.head.appendChild(d)}const l=localStorage.getItem("font");if(l){const d=document.createElement("style");d.id="customfont",d.textContent=`
+注意:如果你不喜歡「{category}」影像,你可以在背景來源設定中取消選擇該類別。`,confirm:"確認"},search:"搜尋",quicklinks:{new:"新增連結",edit:"編輯連結",name:"名稱",url:"網址",icon:"圖示(選擇性)",add:"增加",name_error:"必須提供名稱",url_error:"必須提供網址"},date:{week:"週"},weather:{not_found:"找不到",meters:"{amount} 公尺",extra_information:"額外資訊",feels_like:"感覺像 {amount}"},quote:{link_tooltip:"在維基百科上開啟",share:"分享",copy:"複製",favourite:"收藏",unfavourite:"取消收藏"},navbar:{tooltips:{refresh:"重新整理"},notes:{title:"筆記",placeholder:"在此輸入"},todo:{title:"待辦事項",pin:"釘選",add:"增加",no_todos:"無待辦事項"},apps:{title:"應用程式",no_apps:"找不到應用程式連結"}}},eC=JSON.parse(`{"main":{"title":"選項","loading":"載入中…","file_upload_error":"檔案超過 2MB","navbar":{"settings":"設定","library":"附加元件","discover":"市場"},"error_boundary":{"title":"錯誤","message":"無法載入 Mue 的此元件","report_error":"傳送錯誤報告","sent":"已傳送!","refresh":"重新整理"},"settings":{"enabled":"已啟用","open_knowledgebase":"開啟知識庫","additional_settings":"附加設定","reminder":{"title":"注意","message":"為了使所有變更生效,必須重新整理頁面。"},"sections":{"header":{"more_info":"更多資訊","report_issue":"報告問題","enabled":"選擇是否顯示此小工具","size":"滑桿控制小部件的大小"},"time":{"title":"時間","format":"格式","type":"類型","type_subtitle":"選擇是否以數位格式、類比格式或當天完成百分比顯示時間","digital":{"title":"數位","subtitle":"變更數位時鐘的外觀","seconds":"秒","twentyfourhour":"24 小時制","twelvehour":"12 小時制","zero":"Zero-padded"},"analogue":{"title":"類比","subtitle":"變更類比時鐘的外觀","second_hand":"秒針","minute_hand":"分針","hour_hand":"時針","hour_marks":"小時刻度","minute_marks":"分鐘刻度","round_clock":"圓形背景"},"percentage_complete":"完成百分比","vertical_clock":{"title":"垂直時鐘","change_hour_colour":"變更小時文字顏色","change_minute_colour":"變更分鐘文字顏色","change_second_colour":"變更秒文字顏色"}},"date":{"title":"日期","week_number":"週數","day_of_week":"星期","datenth":"日期 th","type":{"short":"短","long":"長","subtitle":"Whether to display the date in long form or short form"},"type_settings":"Display settings and format for the selected date type","short_date":"Short date","short_format":"Short format","long_format":"Long format","short_separator":{"title":"Short separator","dots":"Dots","dash":"Dash","gaps":"Gaps","slashes":"Slashes"}},"quote":{"title":"Quote","additional":"Other settings to customise the style of the quote widget","author_link":"Author link","author_details":"作者詳細資訊","custom":"Custom quote","custom_subtitle":"Set your own custom quotes","no_quotes":"No quotes","author":"Author","custom_buttons":"Buttons","custom_author":"Custom author","author_img":"Show author image","add":"Add quote","source_subtitle":"Choose where to get quotes from","buttons":{"title":"Buttons","subtitle":"Choose which buttons to show on the quote","copy":"Copy","tweet":"Tweet","favourite":"Favourite"}},"greeting":{"title":"Greeting","events":{"0":"E","1":"v","2":"e","3":"n","4":"t","5":"s","title":"Events"},"events_description":"Control events on Mue such as birthdays.","enable_events":"Show messages on special days","default":"Default greeting message","name":"Name for greeting","birthday":"Birthday","birthday_subtitle":"Show a Happy Birthday message when it is your birthday","birthday_age":"Birthday age","birthday_date":"Birthday date","additional":"Settings for the greeting display","custom":"Custom events","event_name":"Event Name","day":"Day","month":"Month","no_events":"No Events","no_events_description":"Add Some Events","add_event":"Add Event"},"background":{"title":"Background","transition":"Fade-in transition","photo_information":"Show photo information","show_map":"Show location map on photo information if available","categories":"Categories","buttons":{"title":"Buttons","view":"Maximise","favourite":"Favourite","download":"Download"},"effects":{"title":"Effects","subtitle":"Add effects to the background images","blur":"Adjust blur","brightness":"Adjust brightness","filters":{"title":"Background filter","amount":"Filter amount","grayscale":"Grayscale","sepia":"Sepia","invert":"Invert","saturate":"Saturate","contrast":"Contrast"}},"type":{"title":"Type","api":"API","custom_image":"Custom image","custom_colour":"Custom colour/gradient","random_colour":"Random colour","random_gradient":"Random gradient"},"unsplash":{"title":"Unsplash Collection(s)","subtitle":"Select the collection(s) you want to use for your background","id":"Collection ID(s)","id_subtitle":"Enter a comma separated list of Unsplash IDs"},"source":{"title":"Source","subtitle":"Select where to get background images from","api":"Background API","custom_background":"Custom background","custom_colour":"Custom background colour","upload":"Upload","add_colour":"Add colour","add_background":"Add background","drop_to_upload":"Drop to upload","formats":"Available formats: {list}","select":"Or Select","add_url":"Add URL","disabled":"Disabled","loop_video":"Loop video","mute_video":"Mute video","quality":{"title":"Quality","original":"Original","high":"High Quality","normal":"Normal Quality","datasaver":"Data Saver"},"custom_title":"Custom Images","custom_description":"Select images from your local computer","remove":"Remove Image","delete_selected":"Delete {count} Selected","uploading":"Uploading {current} of {total}...","images":"images","tag_images":"Tag Images","tag_description":"Add {count} images to a folder (optional)","folder_name":"Folder Name","folder_placeholder":"Leave empty for no folder","storage_info":"Storage Information","storage_description":"Mue uses browser storage to save your custom images. The current limit is approximately 4.85MB for all settings and images combined.","storage_current":"Current usage: {used} of {total} ({percent}%)","sort":{"date_newest":"Date Added (Newest)","date_oldest":"Date Added (Oldest)","name_asc":"Name (A-Z)","name_desc":"Name (Z-A)","size_small":"File Size (Smallest)","size_large":"File Size (Largest)"}},"display":"Display","display_subtitle":"Change how background and photo information are loaded","api":"API Settings","api_subtitle":"Options for getting an image from an external service (API)"},"search":{"title":"Search","additional":"Additional options for search widget display and functionality","search_engine":"Search Engine","search_engine_subtitle":"Choose search engine to use in the search bar","custom":"Custom Search URL","autocomplete":"Autocomplete","autocomplete_provider":"Autocomplete Provider","autocomplete_provider_subtitle":"Search engine to use for autocomplete dropdown results","voice_search":"Voice search","dropdown":"Search Dropdown","focus":"Focus on tab open","chrome_policy_warning":"In version 7.2, the ability to choose your search engine within Mue was removed to comply with new Chrome Web Store guidelines. Mue now uses your browser's default search engine. You can change this in Chrome Settings."},"weather":{"title":"Weather","location":"Location","auto":"Auto","widget_type":"Widget Type","temp_format":{"title":"Temperature format","celsius":"Celsius","fahrenheit":"Fahrenheit","kelvin":"Kelvin"},"extra_info":{"title":"Extra information","show_location":"Show location","show_description":"Show description","weather_description":"Weather description","cloudiness":"Cloudiness","humidity":"Humidity","visibility":"Visibility","wind_speed":"Wind speed","wind_direction":"Wind direction","min_temp":"Minimum temperature","max_temp":"Maximum temperature","atmospheric_pressure":"Atmospheric pressure"},"options":{"basic":"Basic","standard":"Standard","expanded":"Expanded","custom":"Custom"},"custom_settings":"Custom Settings"},"quicklinks":{"title":"Quick Links","additional":"Additional settings for quick links display and functions","open_new":"Open in new tab","tooltip":"Tooltip","text_only":"Show text only","add_link":"Add Link","no_quicklinks":"No quick links","edit":"Edit","style":"Style","options":{"icon":"Icon","text_only":"Text Only","metro":"Metro"},"styling":"Styling","styling_description":"Customise Quick Links appearance"},"message":{"title":"Message","add":"Add message","messages":"Messages","text":"Text","no_messages":"No messages","add_some":"Go ahead and add some.","content":"Message Content"},"appearance":{"title":"Appearance","style":{"title":"Widget Style","description":"Choose between the two styles, legacy (enabled for pre 7.0 users) and our slick modern styling.","legacy":"Legacy","new":"New"},"theme":{"title":"Theme","description":"Change the theme of the Mue widgets and modals","auto":"Auto","light":"Light","dark":"Dark"},"navbar":{"title":"Navbar","widgets":"Navbar Widgets","notes":"Notes","refresh":"Refresh","refresh_subtitle":"Choose what is refreshed when you click the refresh button","hover":"Only display on hover","additional":"Modify navbar style and which buttons you want to display","refresh_options":{"none":"None","page":"Page"},"apps_subtitle":"Create a shortcut of your other commonly used websites."},"font":{"title":"Font","description":"Change the font used in Mue","custom":"Custom font","google":"Import from Google Fonts","weight":{"title":"Font weight","thin":"Thin","extra_light":"Extra Light","light":"Light","normal":"Normal","medium":"Medium","semi_bold":"Semi-Bold","bold":"Bold","extra_bold":"Extra-Bold"},"style":{"title":"Font style","normal":"Normal","italic":"Italic","oblique":"Oblique"}},"accessibility":{"title":"Accessibility","description":"Make Mue comfortable and accessible","animations":"Animations","text_shadow":{"title":"Widget text shadow","new":"New","old":"Old","none":"None"},"widget_zoom":"Widget Zoom","toast_duration":"Toast Duration","milliseconds":"milliseconds"}},"order":{"title":"Widget Order"},"advanced":{"title":"Advanced","offline_mode":"Offline mode","offline_subtitle":"When enabled, all requests to online services will be disabled.","data":"Data","data_description":"Choose whether to export your Mue settings to your computer, import an existing settings file, or reset your settings to their default values","data_subtitle":"Manage your data on Mue.","reset_modal":{"title":"WARNING","question":"Do you want to reset Mue?","information":"This will delete all data. If you wish to keep your data and preferences, please export them first.","cancel":"Cancel"},"customisation":"Customisation","custom_css":"Custom CSS","custom_css_subtitle":"Make Mue's styling customised to you with Cascading Style Sheets (CSS).","custom_js":"Custom JS","tab_name":"Tab name","tab_name_subtitle":"Change the name of the tab that appears in your browser","timezone":{"title":"Time Zone","subtitle":"Choose a timezone from the list instead of the automatic default from your computer","automatic":"Automatic"},"experimental_warning":"Please note that the Mue team cannot provide support if you have experimental mode on. Please disable it first and see if the issue continues to occur before contacting support.","preview_data_disabled":{"title":"Data Settings Disabled","description":"Data settings are disabled in preview mode. Please exit preview mode to use this feature."}},"stats":{"title":"Stats","sections":{"tabs_opened":"Tabs opened","backgrounds_favourited":"Backgrounds favourited","backgrounds_downloaded":"Backgrounds downloaded","quotes_favourited":"Quotes favourited","quicklinks_added":"Quicklinks added","settings_changed":"Settings changed","addons_installed":"Add-ons installed"},"usage":"Usage Stats","achievements":"Achievements","achievement_unlocked":"Achievement Unlocked: {name}","unlocked":"{count} Unlocked","locked":"Locked","clear_modal":{"question":"Do you want to clear your stats?","information":"This will clear all achievements and usage statistics."}},"experimental":{"title":"Experimental","warning":"These settings have not been fully tested/implemented and may not work correctly!","developer":"Developer"},"language":{"title":"Language","quote":"Quote language","search":"Search languages...","current":"Current","use_system":"Use system language","locale_formatting":"Format numbers for your language"},"changelog":{"title":"Change Log","by":"By {author}"},"about":{"title":"About","version":{"title":"Version","checking_update":"Checking for update","update_available":"Update available","no_update":"No update available","offline_mode":"Cannot check for update in offline mode","error":{"title":"Failed to get update information","description":"An error occured"}},"contact_us":"Contact Us","support_mue":"Support Mue","support_subtitle":"As Mue is entirely free, we rely on donations to cover the server bills and fund development","support_donate":"Donate","form_button":"Form","resources_used":{"title":"Resources used","bg_images":"Offline background images"},"contributors":"Contributors","supporters":"Supporters","no_supporters":"There are currently no Mue supporters","photographers":"Photographers","curators":"Add-on creators"}},"buttons":{"reset":"Reset","import":"Import","export":"Export","cancel":"Cancel","continue":"Continue","close":"Close"}},"marketplace":{"title":"Marketplace","by":"by {author}","all":"All","learn_more":"Learn More","photo_packs":"Photo Packs","quote_packs":"Quote Packs","preset_settings":"Preset Settings","no_items":"No items in this category","collection":"Collection","explore_collection":"Explore Collection","add_all":"Add All To Mue","collections":"Collections","cant_find":"Can't find what you're looking for?","knowledgebase_one":"Visit the","knowledgebase_two":"knowledgebase","knowledgebase_three":"to create your own.","installing":"Installing","product":{"overview":"Overview","information":"Information","last_updated":"Last Updated","description":"Description","details":"Details","more_from_curator":"More like this from {name}","show_more":"Show More","show_less":"Show Less","show_all":"Show All","showing":"Showing","no_images":"No. Images","no_quotes":"No. Quotes","version":"Version","created_by":"Created by","updated_at":"Updated on","part_of":"Part of","explore":"Explore","buttons":{"addtomue":"Add To Mue","remove":"Remove","update_addon":"Update Add-on","back":"Back","report":"Report","not_available_preview":"Unavailable on Preview"},"not_in_language":"This add-on is not in your language","third_party_api":"This add-on uses a third-party API","sideload_warning":"This add-on has been sideloaded.","setting":"Setting","value":"Value"},"offline":{"title":"Looks like you're offline","description":"Please connect to the internet"}},"addons":{"added":"Added","check_updates":"Check for updates","no_updates":"No updates available","updates_available":"Updates available {amount}","empty":{"title":"Empty","description":"No addons are installed"},"sideload":{"title":"Sideload","description":"Install a Mue addon not on the marketplace from your computer","failed":"Failed to sideload addon","errors":{"no_name":"No name provided","no_author":"No author provided","no_type":"No type provided","invalid_photos":"Invalid photos object","invalid_quotes":"Invalid quotes object"}},"sort":{"title":"Sort","newest":"Installed (Newest)","a_z":"Alphabetical (A-Z)","recently_updated":"Recently Updated"},"create":{"title":"Create","moved_title":"Create add-on has moved!","moved_description":"Following the 7.1 update, the creation of addons has now moved to the web UI","moved_button":"Coming Soon...."}}},"update":{"title":"Update","offline":{"title":"Offline","description":"Cannot get update logs while in offline mode"},"error":{"title":"Error","description":"Could not connect to the server"}},"welcome":{"tip":"Quick Tip","sections":{"intro":{"title":"Welcome to Mue Tab","description":"Thank you for installing Mue, we hope you enjoy your time with our extension.","notices":{"discord_title":"Join our Discord","discord_description":"Talk with the Mue community and developers","discord_join":"Join","github_title":"Contribute on GitHub","github_description":"Report bugs, add features or donate","github_open":"Open"}},"language":{"title":"Choose your language","description":"Mue can be displayed the languages listed below. You can also add new translations on our"},"theme":{"title":"Select a theme","description":"Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.","tip":"Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."},"style":{"title":"Choose a style","description":"Mue currently offers the choice between the legacy styling and the newly released modern styling.","legacy":"Legacy","modern":"Modern"},"settings":{"title":"Import Settings","description":"Installing Mue on a new device? Feel free to import your old settings!","tip":"You can export your old settings by navigating to the Advanced tab in your old Mue setup. Then you need to click the export button which will download the JSON file. You can upload this file here to carry across your settings and preferences from your previous Mue installation."},"privacy":{"title":"Privacy Options","description":"Enable settings to further protect your privacy with Mue.","offline_mode_description":"Enabling offline mode will disable all requests to any service. This will result in online backgrounds, online quotes, marketplace, weather, quick links, change log and some about tab information to be disabled.","links":{"title":"Links","privacy_policy":"Privacy Policy","source_code":"Source Code"}},"final":{"title":"Final step","description":"Your Mue Tab experience is about to begin.","changes":"Changes","changes_description":"To change settings later click on the settings icon in the top right corner of your tab.","imported":"Imported {amount} settings"}},"buttons":{"next":"Next","preview":"Preview","previous":"Previous","close":"Close","finish":"Finish"},"preview":{"description":"You are currently in preview mode. Settings will be reset on closing this tab.","continue":"Continue setup"}},"share":{"copy_link":"Copy link","email":"Email"}}`),tC={quote:"Quote copied",notes:"Notes copied",reset:"Reset successfully",installed:"Successfully installed",uninstalled:"Successfully removed",updated:"Successfully updated",error:"Something went wrong",imported:"Successfully imported",no_storage:"Not enough storage",link_copied:"Link copied",stats_reset:"Stats reset"},Eb={tabname:JM,widgets:$M,modals:eC,toasts:tC};function Bl(o){return new E0("en_GB",{ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb})}const aC={ar:$v,arz:eb,az:tb,azb:ab,bn:ob,de_DE:ib,el:nb,en_GB:sb,en_US:rb,es:lb,es_419:ub,et:db,fa:cb,fr:mb,hu:pb,id_ID:fb,ja:gb,lt:hb,lv:_b,nl:vb,no:bb,peo:yb,pt:kb,pt_BR:wb,ru:Sb,sl:Mb,sv:Cb,ta:Ab,tr_TR:xb,uk:zb,vi:Tb,zh_CN:Nb,zh_Hant:Eb},oC="https://webbrain.one",iC="https://webbrain.one/privacy",nC="https://github.com/esokullu/webbrain",sC="https://github.com/esokullu/webbrain/issues/new",rC="https://github.com/mue/mue",lC="7.6.0",uC="1.0.0",dC=Object.freeze(Object.defineProperty({__proto__:null,BUG_REPORT:sC,MUE_REPO_URL:rC,MUE_VERSION:lC,PRIVACY_URL:iC,REPO_URL:nC,VERSION:uC,WEBSITE_URL:oC},Symbol.toStringTag,{value:"Module"}));class cC{static async postEvent(){}static async tabLoad(){}}const me={language:{},languagecode:"",stats:cC,constants:dC},mC={en:"en_GB",zh:"zh_CN",ar:"ar",bn:"bn",nl:"nl",fr:"fr",de:"de_DE",id:"id_ID",ja:"ja",fa:"fa",pt:"pt_BR",ru:"ru",es:"es",tr:"tr_TR",uk:"uk",vi:"vi"};function Rm(){let o;try{o=String(Hl?.getItem("wbLocale")||"").trim()}catch{o=""}return o||String(globalThis.navigator?.language||"en").slice(0,2).toLowerCase()}const pC=new Set(["ar","fa","he","ur"]);function fC(){const o=Rm(),n=String(o||"en").replace("_","-");return{lang:n,dir:pC.has(n.slice(0,2).toLowerCase())?"rtl":"ltr"}}function gC(){return mC[Rm()]||"en_GB"}const hC=["ask","act","search","placeholder_ask","placeholder_act","placeholder_search","go","act_hint","panel_failed","recent_title","recent_empty","recent_all","settings_taskbox","settings_taskbox_sub","settings_default_mode","settings_recent","settings_credits","settings_bundled_photos"],_C={en:["Ask","Act","Search","Ask WebBrain anything…","Tell WebBrain what to do…","Search or enter a URL","Go","Runs immediately: WebBrain starts acting in your browser as soon as you press Enter.","Couldn't open the WebBrain panel. Click the WebBrain toolbar icon.","Recent chats","No chats yet","All history","Task box","Ask or act with WebBrain from the new tab.","Default mode","Show recent chats","Credits","Bundled photos"],es:["Preguntar","Actuar","Buscar","Pregunta lo que quieras a WebBrain…","Dile a WebBrain qué hacer…","Busca o escribe una URL","Ir","Se ejecuta de inmediato: WebBrain empieza a actuar en tu navegador en cuanto pulsas Intro.","No se pudo abrir el panel de WebBrain. Haz clic en el icono de WebBrain de la barra.","Chats recientes","Aún no hay chats","Todo el historial","Cuadro de tareas","Pregunta o actúa con WebBrain desde la nueva pestaña.","Modo predeterminado","Mostrar chats recientes","Créditos","Fotos incluidas"],fr:["Demander","Agir","Rechercher","Posez n’importe quelle question à WebBrain…","Dites à WebBrain quoi faire…","Rechercher ou saisir une URL","OK","S’exécute immédiatement : WebBrain commence à agir dans votre navigateur dès que vous appuyez sur Entrée.","Impossible d’ouvrir le panneau WebBrain. Cliquez sur l’icône WebBrain de la barre d’outils.","Discussions récentes","Aucune discussion","Tout l’historique","Zone de tâche","Posez une question ou agissez avec WebBrain depuis le nouvel onglet.","Mode par défaut","Afficher les discussions récentes","Crédits","Photos incluses"],de:["Fragen","Handeln","Suchen","Frag WebBrain, was du willst…","Sag WebBrain, was zu tun ist…","Suchen oder URL eingeben","Los","Wird sofort ausgeführt: WebBrain beginnt in Ihrem Browser zu handeln, sobald Sie die Eingabetaste drücken.","Das WebBrain-Panel konnte nicht geöffnet werden. Klicke auf das WebBrain-Symbol in der Symbolleiste.","Letzte Chats","Noch keine Chats","Gesamter Verlauf","Aufgabenfeld","Frage oder handle mit WebBrain direkt im neuen Tab.","Standardmodus","Letzte Chats anzeigen","Danksagungen","Mitgelieferte Fotos"],tr:["Sor","Yap","Ara","WebBrain’e her şeyi sor…","WebBrain’e ne yapacağını söyle…","Ara veya URL gir","Git","Hemen çalışır: Enter’a bastığınız anda WebBrain tarayıcınızda işlem yapmaya başlar.","WebBrain paneli açılamadı. Araç çubuğundaki WebBrain simgesine tıkla.","Son sohbetler","Henüz sohbet yok","Tüm geçmiş","Görev kutusu","Yeni sekmeden WebBrain ile sor veya işlem yap.","Varsayılan mod","Son sohbetleri göster","Katkılar","Dahili fotoğraflar"],pt:["Perguntar","Agir","Pesquisar","Pergunte qualquer coisa ao WebBrain…","Diga ao WebBrain o que fazer…","Pesquise ou digite um URL","Ir","Executa imediatamente: o WebBrain começa a agir no seu navegador assim que pressionar Enter.","Não foi possível abrir o painel do WebBrain. Clique no ícone do WebBrain na barra de ferramentas.","Conversas recentes","Ainda não há conversas","Todo o histórico","Caixa de tarefas","Pergunte ou aja com o WebBrain na nova guia.","Modo padrão","Mostrar conversas recentes","Créditos","Fotos incluídas"],ru:["Спросить","Действовать","Поиск","Спросите WebBrain о чём угодно…","Скажите WebBrain, что сделать…","Введите запрос или URL","Вперёд","Запускается сразу: WebBrain начнёт действовать в вашем браузере, как только вы нажмёте Enter.","Не удалось открыть панель WebBrain. Нажмите значок WebBrain на панели инструментов.","Недавние чаты","Чатов пока нет","Вся история","Поле задач","Спрашивайте и действуйте с WebBrain прямо на новой вкладке.","Режим по умолчанию","Показывать недавние чаты","Авторы и лицензии","Встроенные фото"],uk:["Запитати","Діяти","Пошук","Запитайте WebBrain про що завгодно…","Скажіть WebBrain, що зробити…","Введіть запит або URL","Вперед","Запускається одразу: WebBrain почне діяти у вашому браузері, щойно ви натиснете Enter.","Не вдалося відкрити панель WebBrain. Натисніть значок WebBrain на панелі інструментів.","Нещодавні чати","Чатів поки немає","Уся історія","Поле завдань","Запитуйте та виконуйте завдання з WebBrain просто на новій вкладці.","Режим за замовчуванням","Показувати нещодавні чати","Автори та ліцензії","Вбудовані фото"],zh:["提问","执行","搜索","向 WebBrain 提任何问题…","告诉 WebBrain 要做什么…","搜索或输入网址","前往","将立即执行:按下 Enter 后,WebBrain 会马上开始在您的浏览器中操作。","无法打开 WebBrain 面板。请点击工具栏中的 WebBrain 图标。","最近的对话","还没有对话","全部历史","任务框","在新标签页中直接向 WebBrain 提问或下达任务。","默认模式","显示最近的对话","致谢","内置照片"],ja:["質問","実行","検索","WebBrain に何でも聞く…","WebBrain にやってほしいことを伝える…","検索または URL を入力","移動","すぐに実行されます。Enter を押すと、WebBrain はすぐにブラウザーの操作を始めます。","WebBrain パネルを開けませんでした。ツールバーの WebBrain アイコンをクリックしてください。","最近のチャット","チャットはまだありません","すべての履歴","タスクボックス","新しいタブから WebBrain に質問したり操作を任せたりできます。","デフォルトのモード","最近のチャットを表示","クレジット","同梱の写真"],ko:["질문","실행","검색","WebBrain에게 무엇이든 물어보세요…","WebBrain에게 할 일을 알려주세요…","검색하거나 URL 입력","이동","즉시 실행됩니다. Enter를 누르는 즉시 WebBrain이 브라우저에서 작업을 시작합니다.","WebBrain 패널을 열 수 없습니다. 도구 모음의 WebBrain 아이콘을 클릭하세요.","최근 대화","아직 대화가 없습니다","전체 기록","작업 상자","새 탭에서 바로 WebBrain에게 질문하거나 작업을 맡기세요.","기본 모드","최근 대화 표시","크레딧","기본 제공 사진"],ar:["اسأل","نفّذ","ابحث","اسأل WebBrain أي شيء…","أخبر WebBrain بما يجب فعله…","ابحث أو أدخل عنوان URL","انتقال","يُنفَّذ فورًا: يبدأ WebBrain بالعمل في متصفحك بمجرد ضغطك على Enter.","تعذّر فتح لوحة WebBrain. انقر على أيقونة WebBrain في شريط الأدوات.","المحادثات الأخيرة","لا توجد محادثات بعد","السجل الكامل","مربع المهام","اسأل أو نفّذ مع WebBrain مباشرة من علامة التبويب الجديدة.","الوضع الافتراضي","إظهار المحادثات الأخيرة","الشكر والتقدير","الصور المضمّنة"],he:["שאלה","פעולה","חיפוש","שאלו את WebBrain כל דבר…","ספרו ל-WebBrain מה לעשות…","חפשו או הזינו כתובת URL","מעבר","מופעל מיד: WebBrain מתחיל לפעול בדפדפן שלך ברגע שתלחץ על Enter.","לא ניתן היה לפתוח את לוח WebBrain. לחצו על סמל WebBrain בסרגל הכלים.","שיחות אחרונות","עדיין אין שיחות","כל ההיסטוריה","תיבת משימות","שאלו או פעלו עם WebBrain ישירות מהכרטיסייה החדשה.","מצב ברירת מחדל","הצגת שיחות אחרונות","קרדיטים","תמונות מובנות"],hi:["पूछें","करें","खोजें","WebBrain से कुछ भी पूछें…","WebBrain को बताएँ क्या करना है…","खोजें या URL दर्ज करें","जाएँ","तुरंत चलता है: Enter दबाते ही WebBrain आपके ब्राउज़र में काम करना शुरू कर देगा।","WebBrain पैनल नहीं खुल सका। टूलबार में WebBrain आइकन पर क्लिक करें।","हाल की चैट","अभी कोई चैट नहीं","पूरा इतिहास","कार्य बॉक्स","नए टैब से ही WebBrain से पूछें या काम करवाएँ।","डिफ़ॉल्ट मोड","हाल की चैट दिखाएँ","श्रेय","शामिल तस्वीरें"],id:["Tanya","Jalankan","Cari","Tanyakan apa saja ke WebBrain…","Beri tahu WebBrain apa yang harus dilakukan…","Cari atau masukkan URL","Buka","Langsung dijalankan: WebBrain mulai bertindak di browser Anda begitu Anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain di bilah alat.","Obrolan terbaru","Belum ada obrolan","Semua riwayat","Kotak tugas","Tanya atau jalankan tugas dengan WebBrain langsung dari tab baru.","Mode default","Tampilkan obrolan terbaru","Kredit","Foto bawaan"],ms:["Tanya","Laksana","Cari","Tanya apa sahaja kepada WebBrain…","Beritahu WebBrain apa yang perlu dilakukan…","Cari atau masukkan URL","Pergi","Dijalankan serta-merta: WebBrain mula bertindak dalam pelayar anda sebaik sahaja anda menekan Enter.","Tidak dapat membuka panel WebBrain. Klik ikon WebBrain pada bar alat.","Sembang terkini","Belum ada sembang","Semua sejarah","Kotak tugas","Tanya atau laksanakan tugas dengan WebBrain terus dari tab baharu.","Mod lalai","Tunjukkan sembang terkini","Kredit","Foto terbina dalam"],tl:["Magtanong","Gumawa","Maghanap","Magtanong ng kahit ano sa WebBrain…","Sabihin sa WebBrain kung ano ang gagawin…","Maghanap o maglagay ng URL","Pumunta","Agad na tatakbo: magsisimulang kumilos ang WebBrain sa iyong browser sa sandaling pindutin mo ang Enter.","Hindi mabuksan ang panel ng WebBrain. I-click ang icon ng WebBrain sa toolbar.","Mga kamakailang chat","Wala pang chat","Buong kasaysayan","Kahon ng gawain","Magtanong o mag-utos sa WebBrain mula mismo sa bagong tab.","Default na mode","Ipakita ang mga kamakailang chat","Mga kredito","Mga kasamang larawan"],pl:["Zapytaj","Wykonaj","Szukaj","Zapytaj WebBrain o cokolwiek…","Powiedz WebBrain, co ma zrobić…","Wyszukaj lub wpisz adres URL","Idź","Uruchamia się natychmiast: WebBrain zacznie działać w Twojej przeglądarce zaraz po naciśnięciu Enter.","Nie udało się otworzyć panelu WebBrain. Kliknij ikonę WebBrain na pasku narzędzi.","Ostatnie czaty","Brak czatów","Cała historia","Pole zadań","Pytaj i zlecaj zadania WebBrain prosto z nowej karty.","Tryb domyślny","Pokaż ostatnie czaty","Autorzy i licencje","Dołączone zdjęcia"],th:["ถาม","ทำ","ค้นหา","ถามอะไรก็ได้กับ WebBrain…","บอก WebBrain ว่าต้องทำอะไร…","ค้นหาหรือป้อน URL","ไป","ทำงานทันที: WebBrain จะเริ่มดำเนินการในเบราว์เซอร์ของคุณทันทีที่คุณกด Enter","เปิดแผง WebBrain ไม่ได้ คลิกไอคอน WebBrain บนแถบเครื่องมือ","แชตล่าสุด","ยังไม่มีแชต","ประวัติทั้งหมด","ช่องงาน","ถามหรือสั่งงาน WebBrain ได้จากแท็บใหม่ทันที","โหมดเริ่มต้น","แสดงแชตล่าสุด","เครดิต","รูปภาพที่รวมมา"],vi:["Hỏi","Thực hiện","Tìm kiếm","Hỏi WebBrain bất cứ điều gì…","Nói với WebBrain cần làm gì…","Tìm kiếm hoặc nhập URL","Đi","Chạy ngay lập tức: WebBrain bắt đầu thao tác trong trình duyệt của bạn ngay khi bạn nhấn Enter.","Không thể mở bảng WebBrain. Hãy nhấp vào biểu tượng WebBrain trên thanh công cụ.","Cuộc trò chuyện gần đây","Chưa có cuộc trò chuyện","Toàn bộ lịch sử","Hộp tác vụ","Hỏi hoặc giao việc cho WebBrain ngay từ tab mới.","Chế độ mặc định","Hiện cuộc trò chuyện gần đây","Ghi công","Ảnh đi kèm"],bn:["জিজ্ঞাসা","করুন","খুঁজুন","WebBrain-কে যেকোনো কিছু জিজ্ঞাসা করুন…","WebBrain-কে বলুন কী করতে হবে…","খুঁজুন বা URL লিখুন","যান","সঙ্গে সঙ্গে চলে: Enter চাপামাত্র WebBrain আপনার ব্রাউজারে কাজ শুরু করবে।","WebBrain প্যানেল খোলা যায়নি। টুলবারে WebBrain আইকনে ক্লিক করুন।","সাম্প্রতিক চ্যাট","এখনো কোনো চ্যাট নেই","সম্পূর্ণ ইতিহাস","টাস্ক বক্স","নতুন ট্যাব থেকেই WebBrain-কে জিজ্ঞাসা করুন বা কাজ দিন।","ডিফল্ট মোড","সাম্প্রতিক চ্যাট দেখান","কৃতজ্ঞতা","অন্তর্ভুক্ত ছবি"],fa:["بپرس","اجرا کن","جستجو","از WebBrain هر چیزی بپرسید…","به WebBrain بگویید چه کار کند…","جستجو کنید یا نشانی URL وارد کنید","برو","بلافاصله اجرا می‌شود: به‌محض فشردن Enter، WebBrain در مرورگر شما شروع به عمل می‌کند.","پنل WebBrain باز نشد. روی نماد WebBrain در نوار ابزار کلیک کنید.","گفتگوهای اخیر","هنوز گفتگویی نیست","کل تاریخچه","جعبهٔ وظیفه","از همین زبانهٔ جدید از WebBrain بپرسید یا کار بسپارید.","حالت پیش‌فرض","نمایش گفتگوهای اخیر","سپاس‌ها","عکس‌های همراه"],nl:["Vragen","Uitvoeren","Zoeken","Vraag WebBrain alles…","Zeg WebBrain wat te doen…","Zoek of voer een URL in","Ga","Wordt direct uitgevoerd: WebBrain begint in uw browser te handelen zodra u op Enter drukt.","Het WebBrain-paneel kon niet worden geopend. Klik op het WebBrain-pictogram in de werkbalk.","Recente chats","Nog geen chats","Alle geschiedenis","Taakvak","Vraag of voer uit met WebBrain, direct vanaf het nieuwe tabblad.","Standaardmodus","Recente chats tonen","Met dank aan","Meegeleverde foto’s"]},Sm=Object.fromEntries(Object.entries(_C).map(([o,n])=>[o,Object.fromEntries(hC.map((u,l)=>[`wb.${u}`,n[l]]))]));function Wt(o,n=Rm()){return Sm[n]?.[o]??Sm.en[o]??o}const Db=o=>typeof o=="string"&&o.startsWith("wb.");function Mm(o=document.documentElement){const n=fC(),{lang:u,dir:l}=Sm[n.lang]?n:{lang:"en",dir:"ltr"};return o.lang=u,o.dir=l,{lang:u,dir:l}}class _e{static listeners={};static register(n,u){this.listeners[n]||(this.listeners[n]=[]),u.first?this.listeners[n].unshift(u):this.listeners[n].push(u)}static on(n,u){const l=d=>u(d.detail);document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static emit(n,u){document.dispatchEvent(new CustomEvent(n,{detail:u}))}static off(n,u){if(typeof u!="function")return;const l=this.listeners[n]||[],d=l.filter(c=>c.callback===u||c.listener===u);d.forEach(c=>document.removeEventListener(n,c.listener,{capture:c.capture})),this.listeners[n]=l.filter(c=>!d.includes(c))}static once(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l),this.register(n,{callback:u,listener:l,capture:!1})}static prepend(n,u){const l=d=>u(d.detail);document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static prependOnce(n,u){const l=d=>{this.off(n,l),u(d.detail)};document.addEventListener(n,l,{capture:!0}),this.register(n,{callback:u,listener:l,capture:!0,first:!0})}static getListeners(n){return this.listeners[n]||[]}static eventNames(){return Object.keys(this.listeners)}static removeAllListeners(){Object.keys(this.listeners).forEach(n=>{this.listeners[n].forEach(({listener:u,capture:l})=>{document.removeEventListener(n,u,{capture:l})})}),this.listeners={}}}const jb=y.createContext();function vC({children:o,initialLanguage:n}){const[u,l]=y.useState(n),d=y.useRef(Bl());y.useEffect(()=>{u!==n&&(d.current=Bl()),me.language=d.current,me.languagecode=u,Mm()},[u,n]);const c=y.useCallback(h=>{d.current=Bl(),me.language=d.current,me.languagecode=h,Mm();const k=localStorage.getItem("tabName"),_=d.current?.getMessage(u,"tabname");if(k===_||!k){const g=aC[h.replace("-","_")]?.tabname||d.current?.getMessage(h,"tabname")||"Mue";localStorage.setItem("tabName",g),document.title=g}localStorage.setItem("language",h),localStorage.removeItem("currentWeather"),l(h)},[u]),f=y.useCallback((h,k={})=>Db(h)?Wt(h):d.current?d.current.getMessage(u,h,k):h,[u]);y.useEffect(()=>{const h=k=>{k?.language&&c(k.language)};return _e.on("languageChange",h),()=>{_e.off("languageChange",h)}},[c]),y.useEffect(()=>{me.getMessage=(h,k={})=>f(h,k)},[f]);const p=y.useMemo(()=>({language:u,languagecode:u,changeLanguage:c,t:f}),[u,c,f]);return w.jsx(jb.Provider,{value:p,children:o})}function Ob(){const o=y.useContext(jb);if(!o)throw new Error("useTranslation must be used within a TranslationProvider");return o}function Zo(){const{t:o}=Ob();return o}function bC({info:o}){const n=Zo();return o.hidden===!0||!o.credit||localStorage.getItem("photoInformation")==="false"?null:w.jsx("div",{className:"photoInformation",style:{position:"absolute",left:"1rem",bottom:"1rem",padding:"4px 10px",borderRadius:"10px",fontSize:"0.8rem",color:"#fff",background:"rgba(0, 0, 0, 0.45)"},children:w.jsxs("span",{id:"credit",children:[n("widgets.background.credit")," ",o.credit]})})}const yC=y.memo(bC);var qb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},R_=ve.createContext&&ve.createContext(qb),kC=["attr","size","title"];function wC(o,n){if(o==null)return{};var u,l,d=SC(o,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(o);for(l=0;l<c.length;l++)u=c[l],n.indexOf(u)===-1&&{}.propertyIsEnumerable.call(o,u)&&(d[u]=o[u])}return d}function SC(o,n){if(o==null)return{};var u={};for(var l in o)if({}.hasOwnProperty.call(o,l)){if(n.indexOf(l)!==-1)continue;u[l]=o[l]}return u}function Fl(){return Fl=Object.assign?Object.assign.bind():function(o){for(var n=1;n<arguments.length;n++){var u=arguments[n];for(var l in u)({}).hasOwnProperty.call(u,l)&&(o[l]=u[l])}return o},Fl.apply(null,arguments)}function B_(o,n){var u=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);n&&(l=l.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),u.push.apply(u,l)}return u}function Vl(o){for(var n=1;n<arguments.length;n++){var u=arguments[n]!=null?arguments[n]:{};n%2?B_(Object(u),!0).forEach(function(l){MC(o,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(u)):B_(Object(u)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(u,l))})}return o}function MC(o,n,u){return(n=CC(n))in o?Object.defineProperty(o,n,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[n]=u,o}function CC(o){var n=AC(o,"string");return typeof n=="symbol"?n:n+""}function AC(o,n){if(typeof o!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var l=u.call(o,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(o)}function Rb(o){return o&&o.map((n,u)=>ve.createElement(n.tag,Vl({key:u},n.attr),Rb(n.child)))}function le(o){return n=>ve.createElement(xC,Fl({attr:Vl({},o.attr)},n),Rb(o.child))}function xC(o){var n=u=>{var l=o.attr,d=o.size,c=o.title,f=wC(o,kC),p=d||u.size||"1em",h;return u.className&&(h=u.className),o.className&&(h=(h?h+" ":"")+o.className),ve.createElement("svg",Fl({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},u.attr,l,f,{className:h,style:Vl(Vl({color:o.color||u.color},u.style),o.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),c&&ve.createElement("title",null,c),o.children)};return R_!==void 0?ve.createElement(R_.Consumer,null,u=>n(u)):n(qb)}function zC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"4",r:"2"},child:[]},{tag:"path",attr:{d:"M15.89 8.11C15.5 7.72 14.83 7 13.53 7h-2.54C8.24 6.99 6 4.75 6 2H4c0 3.16 2.11 5.84 5 6.71V22h2v-6h2v6h2V10.05L18.95 14l1.41-1.41z"},child:[]}]})(o)}function sN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3H3c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5a2 2 0 0 0-2-2m0 14H3V5h18z"},child:[]}]})(o)}function rN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"},child:[]}]})(o)}function Us(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.96 7.96 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"},child:[]}]})(o)}function TC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"},child:[]}]})(o)}function Bb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},child:[]}]})(o)}function Ps(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(o)}function NC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},child:[]}]})(o)}function Bm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(o)}function lN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"},child:[]}]})(o)}function Lb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(o)}function EC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"},child:[]}]})(o)}function DC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"},child:[]}]})(o)}function uN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"},child:[]}]})(o)}function jC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2m2 10H3v4c0 1.1.9 2 2 2h4v-2H5zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function OC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4z"},child:[]},{tag:"path",attr:{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 10-2.5-1.5L15 12V4h5z"},child:[]}]})(o)}function dN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"},child:[]}]})(o)}function cN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"},child:[]}]})(o)}function mN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"},child:[]}]})(o)}function qC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"},child:[]}]})(o)}function RC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"},child:[]}]})(o)}function Ib(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"},child:[]}]})(o)}function BC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4z"},child:[]}]})(o)}function pN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16zM4 15h16v-2H4z"},child:[]}]})(o)}function L_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"},child:[]}]})(o)}function Ub(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"},child:[]}]})(o)}function fN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11A4.99 4.99 0 0 0 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 24V0"},child:[]}]})(o)}function LC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"},child:[]}]})(o)}function gN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"},child:[]}]})(o)}function IC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"},child:[]}]})(o)}function I_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0"},child:[]},{tag:"path",attr:{d:"M8 11h8v2H8zm12.1 1H22c0-2.76-2.24-5-5-5h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M19 12h-2v3h-3v2h3v3h2v-3h3v-2h-3z"},child:[]}]})(o)}function UC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function hN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"},child:[]}]})(o)}function PC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"},child:[]}]})(o)}function HC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34A8.01 8.01 0 0 0 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"},child:[]}]})(o)}function _N(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95M12 19c-3.87 0-7-3.13-7-7 0-3.53 2.61-6.43 6-6.92V2.05c-5.06.5-9 4.76-9 9.95 0 5.52 4.47 10 9.99 10 3.31 0 6.24-1.61 8.06-4.09l-2.6-1.53A6.95 6.95 0 0 1 12 19"},child:[]}]})(o)}function FC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a9 9 0 0 0 0-18m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"},child:[]}]})(o)}function vN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},child:[]}]})(o)}function bN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"},child:[]}]})(o)}function Pb(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zM3 16h7v-2H3zm11.41 6L17 19.41 19.59 22 21 20.59 18.41 18 21 15.41 19.59 14 17 16.59 14.41 14 13 15.41 15.59 18 13 20.59z"},child:[]}]})(o)}function VC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"},child:[]}]})(o)}function GC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M19 3H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},child:[]}]})(o)}function KC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.5 17.5 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"},child:[]}]})(o)}function yN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-6 10H6v-2h8zm4-4H6v-2h12z"},child:[]}]})(o)}function YC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"},child:[]}]})(o)}function Lm(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},child:[]}]})(o)}function WC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},child:[]}]})(o)}function QC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"},child:[]}]})(o)}function ZC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"},child:[]}]})(o)}function XC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"},child:[]}]})(o)}function JC(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a6 6 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"},child:[]}]})(o)}function $C(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"},child:[]}]})(o)}function U_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},child:[]}]})(o)}function kN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m9 7h-6v13h-2v-6h-2v6H9V9H3V7h18z"},child:[]}]})(o)}function P_(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"},child:[]}]})(o)}function eA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"},child:[]}]})(o)}function wN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zM11.5 9.5 9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"},child:[]}]})(o)}function SN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"},child:[]}]})(o)}function MN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"},child:[]}]})(o)}function tA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18.62 18h-5.24l2-4H13V6h8v7.24zm-2-2h.76L19 12.76V8h-4v4h3.62zm-8 2H3.38l2-4H3V6h8v7.24zm-2-2h.76L9 12.76V8H5v4h3.62z"},child:[]}]})(o)}function aA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16zM7 9h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z"},child:[]}]})(o)}function oA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-4.51 2.11.26 2.79-2.74.62-1.43 2.41L12 18.82l-2.58 1.11-1.43-2.41-2.74-.62.26-2.8L3.66 12l1.85-2.12-.26-2.78 2.74-.61 1.43-2.41L12 5.18l2.58-1.11 1.43 2.41 2.74.62-.26 2.79L20.34 12zM11 15h2v2h-2zm0-8h2v6h-2z"},child:[]}]})(o)}function CN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5 9.65 9.65 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6m-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14M2.01 3.87l2.68 2.68A11.74 11.74 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13m-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53"},child:[]}]})(o)}function AN(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"},child:[]}]})(o)}function iA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.6.6 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},child:[]}]})(o)}function nA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 4.5c.28 0 .5.22.5.5v2h6v6h2c.28 0 .5.22.5.5s-.22.5-.5.5h-2v6h-2.12c-.68-1.75-2.39-3-4.38-3s-3.7 1.25-4.38 3H4v-2.12c1.75-.68 3-2.39 3-4.38S5.76 9.8 4.01 9.12L4 7h6V5c0-.28.22-.5.5-.5m0-2A2.5 2.5 0 0 0 8 5H4c-1.1 0-1.99.9-1.99 2v3.8h.29c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-.3c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7v.3H17c1.1 0 2-.9 2-2v-4a2.5 2.5 0 0 0 0-5V7c0-1.1-.9-2-2-2h-4a2.5 2.5 0 0 0-2.5-2.5"},child:[]}]})(o)}function sA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"},child:[]}]})(o)}function rA(o){return le({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"},child:[]}]})(o)}const Wo={SETTINGS:"settings"},Re={SETTINGS:DC,LIBRARY:$C,TASKBOX:Ib,DISCOVER:QC,NAVBAR:TC,GREETING:zC,TIME:FC,QUOTE:tA,QUICKLINKS:LC,DATE:XC,MESSAGE:aA,BACKGROUND:eA,SEARCH:Lm,WEATHER:RC,APPEARANCE:BC,LANGUAGE:KC,ADVANCED:iA,EXPERIMENTAL:JC,STATS:rA,CHANGELOG:oA,ABOUT:WC,ADDED:nA,CREATE:UC,OVERVIEW:GC,COLLECTIONS:OC},Fe={OVERVIEW:"modals.main.marketplace.product.overview",SETTINGS:"modals.main.navbar.settings",LIBRARY:"modals.main.navbar.library",DISCOVER:"modals.main.navbar.discover",NAVBAR:"modals.main.settings.sections.appearance.navbar.title",GREETING:"modals.main.settings.sections.greeting.title",TIME:"modals.main.settings.sections.time.title",QUICKLINKS:"modals.main.settings.sections.quicklinks.title",QUOTE:"modals.main.settings.sections.quote.title",DATE:"modals.main.settings.sections.date.title",MESSAGE:"modals.main.settings.sections.message.title",BACKGROUND:"modals.main.settings.sections.background.title",SEARCH:"modals.main.settings.sections.search.title",WEATHER:"modals.main.settings.sections.weather.title",APPEARANCE:"modals.main.settings.sections.appearance.title",LANGUAGE:"modals.main.settings.sections.language.title",ADVANCED:"modals.main.settings.sections.advanced.title",STATS:"modals.main.settings.sections.stats.title",EXPERIMENTAL:"modals.main.settings.sections.experimental.title",CHANGELOG:"modals.main.settings.sections.changelog.title",ABOUT:"modals.main.settings.sections.about.title",ADDED:"modals.main.addons.added",CREATE:"modals.main.addons.create.title",ALL_MARKETPLACE:"modals.main.marketplace.all",PHOTO_PACKS:"modals.main.marketplace.photo_packs",QUOTE_PACKS:"modals.main.marketplace.quote_packs",PRESET_SETTINGS:"modals.main.marketplace.preset_settings",COLLECTIONS:"modals.main.marketplace.collections"},xN=(o,n)=>({[n.getMessage(Fe.OVERVIEW)]:Re.OVERVIEW,[n.getMessage(Fe.SETTINGS)]:Re.SETTINGS,[n.getMessage(Fe.LIBRARY)]:Re.LIBRARY,[n.getMessage(Fe.DISCOVER)]:Re.DISCOVER,[n.getMessage(Fe.NAVBAR)]:Re.NAVBAR,[n.getMessage(Fe.GREETING)]:Re.GREETING,[n.getMessage(Fe.TIME)]:Re.TIME,[n.getMessage(Fe.QUICKLINKS)]:Re.QUICKLINKS,[n.getMessage(Fe.QUOTE)]:Re.QUOTE,[n.getMessage(Fe.DATE)]:Re.DATE,[n.getMessage(Fe.MESSAGE)]:Re.MESSAGE,[n.getMessage(Fe.BACKGROUND)]:Re.BACKGROUND,[n.getMessage(Fe.SEARCH)]:Re.SEARCH,[n.getMessage(Fe.WEATHER)]:Re.WEATHER,[n.getMessage(Fe.APPEARANCE)]:Re.APPEARANCE,[n.getMessage(Fe.LANGUAGE)]:Re.LANGUAGE,[n.getMessage(Fe.ADVANCED)]:Re.ADVANCED,[n.getMessage(Fe.STATS)]:Re.STATS,[n.getMessage(Fe.EXPERIMENTAL)]:Re.EXPERIMENTAL,[n.getMessage(Fe.CHANGELOG)]:Re.CHANGELOG,[n.getMessage(Fe.ABOUT)]:Re.ABOUT,[n.getMessage("wb.settings_credits")]:Re.ABOUT,[n.getMessage("wb.settings_taskbox")]:Re.TASKBOX,[n.getMessage(Fe.ADDED)]:Re.ADDED,[n.getMessage(Fe.CREATE)]:Re.CREATE,[n.getMessage(Fe.ALL_MARKETPLACE)]:Re.LIBRARY,[n.getMessage(Fe.PHOTO_PACKS)]:Re.BACKGROUND,[n.getMessage(Fe.QUOTE_PACKS)]:Re.QUOTE,[n.getMessage(Fe.PRESET_SETTINGS)]:Re.ADVANCED,[n.getMessage(Fe.COLLECTIONS)]:Re.COLLECTIONS})[o],lA=[{tab:Wo.SETTINGS,icon:Re.SETTINGS,messageKey:"modals.main.navbar.settings"}],zN=["modals.main.settings.sections.appearance.title","modals.main.settings.sections.advanced.title"],js=(o=window.location.hash)=>{if(!o||o==="#")return null;const[n,u,l]=o.slice(1).split("/");return n!==Wo.SETTINGS?null:{tab:n,section:u||void 0,subSection:l||void 0}},Gl=(o,n=!0)=>{window.history.pushState?n?window.history.pushState(null,null,o):window.history.replaceState(null,null,o):window.location.hash=o},H_=()=>js()!==null,uA="MueCustomBackgrounds",dA=1,zt="backgrounds";function Ni(){return new Promise((o,n)=>{const u=indexedDB.open(uA,dA);u.onerror=()=>n(u.error),u.onsuccess=()=>o(u.result),u.onupgradeneeded=l=>{const d=l.target.result;d.objectStoreNames.contains(zt)||d.createObjectStore(zt,{keyPath:"id",autoIncrement:!0}).createIndex("url","url",{unique:!1})}})}async function Hb(){try{const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).getAll();return new Promise((d,c)=>{l.onsuccess=()=>{const f=l.result;d(f.map(p=>typeof p.url=="string"&&!p.name?{id:p.id,url:p.url,name:`Image ${p.id}`,uploadDate:p.createdAt||Date.now(),dimensions:null,fileSize:null,folder:"",blurHash:null}:p))},l.onerror=()=>c(l.error)})}catch(o){return console.error("Error getting backgrounds from IndexedDB:",o),[]}}async function cA(){return(await Hb()).map(n=>n.url||n)}const $s=o=>{const n=new Promise((u,l)=>{o.oncomplete=()=>u(),o.onerror=()=>l(o.error||new Error("IndexedDB request failed")),o.onabort=()=>l(o.error||new Error("IndexedDB transaction aborted"))});return n.catch(()=>{}),n};async function mA(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=typeof o=="string"?{url:o,name:"Image",uploadDate:Date.now(),folder:""}:{...o,uploadDate:o.uploadDate||Date.now()},f=d.add(c);return await l,f.result}async function TN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result[o];f&&d.delete(f.id)},await l}async function NN(o){const u=(await Ni()).transaction(zt,"readwrite"),l=$s(u),d=u.objectStore(zt),c=d.getAll();c.onsuccess=()=>{const f=c.result;o.filter(p=>f[p]).forEach(p=>d.delete(f[p].id))},await l}async function Fb(){const n=(await Ni()).transaction(zt,"readwrite"),u=$s(n);n.objectStore(zt).clear(),await u}async function pA(){const l=(await Ni()).transaction(zt,"readonly").objectStore(zt).count();return new Promise((d,c)=>{l.onsuccess=()=>d(l.result),l.onerror=()=>c(l.error)})}async function EN(o,n){const l=(await Ni()).transaction(zt,"readwrite"),d=$s(l),c=l.objectStore(zt),f=c.get(o);let p=!0;if(f.onsuccess=()=>{const h=f.result;h?(Object.assign(h,n),h.updatedAt=Date.now(),c.put(h)):p=!1},await d,!p)throw new Error("Background not found")}async function DN(){try{const o=localStorage.getItem("customBackground");if(!o||o==="null"||o==="[]")return!1;let n=[];try{n=JSON.parse(o),Array.isArray(n)||(n=[o])}catch{n=[o]}if(n=n.filter(l=>l&&l.trim()!==""),n.length===0||await pA()>0)return!1;try{for(const l of n)await mA(l)}catch(l){try{await Fb()}catch{}throw l}return console.log(`Migrated ${n.length} backgrounds from localStorage to IndexedDB`),localStorage.removeItem("customBackground"),localStorage.setItem("customBackgroundCount",String(n.length)),localStorage.setItem("customBackgroundMigrated","true"),!0}catch(o){return console.error("Error migrating backgrounds:",o),!1}}function fA({photoInfo:o,currentAPI:n,url:u}){const l=localStorage.getItem("backgroundType")==="custom",[d,c]=y.useState([]),[f,p]=y.useState(!0);y.useEffect(()=>{(async()=>{if(l)try{const g=await cA();c(g||[])}catch(g){console.error("Failed to load custom backgrounds:",g),c([])}p(!1)})()},[l,u]);const h=l&&!f&&(!d||d.length===0),k=()=>{Gl("#settings/background/source"),_e.emit("modal","openMainModal")};return w.jsxs(w.Fragment,{children:[w.jsx("div",{id:"backgroundImage"}),h&&w.jsxs("div",{style:{position:"absolute",bottom:"20px",left:"20px",color:"white",background:"rgba(0, 0, 0, 0.6)",padding:"20px 30px",borderRadius:"10px",zIndex:1},children:[w.jsx("h2",{style:{margin:"0 0 10px 0",fontSize:"20px"},children:me.getMessage("widgets.background.no_images_title")||"No Custom Images"}),w.jsx("p",{style:{margin:"0 0 15px 0",fontSize:"14px",opacity:.9},children:me.getMessage("widgets.background.no_images_description")||"Please add custom images in the Background settings"}),w.jsx("button",{onClick:k,style:{background:"rgba(255, 255, 255, 0.2)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white",padding:"10px 20px",borderRadius:"5px",cursor:"pointer",fontSize:"14px",fontWeight:"500",transition:"all 0.2s"},onMouseOver:_=>{_.target.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:_=>{_.target.style.background="rgba(255, 255, 255, 0.2)"},children:me.getMessage("widgets.background.add_images_button")||"Add Images"})]}),o?.credit&&w.jsx(yC,{info:o,api:n,url:u})]})}const gA=y.memo(fA),F_=()=>({muted:localStorage.getItem("backgroundVideoMute")==="true",loop:localStorage.getItem("backgroundVideoLoop")==="true"});function hA({url:o,filterStyle:n}){const[{muted:u,loop:l},d]=y.useState(F_);return y.useEffect(()=>{const c=f=>{f==="backgroundvideo"&&d(F_())};return _e.on("refresh",c),()=>_e.off("refresh",c)},[]),w.jsx("video",{autoPlay:!0,muted:u,loop:l,style:n,id:"backgroundVideo",children:w.jsx("source",{src:o})},o)}const _A=y.memo(hA);function vA(){const[o,n]=y.useState({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!1,offline:!1,photographerURL:"",photoURL:""}}),u=y.useCallback(d=>{n(c=>({...c,...d,photoInfo:d.photoInfo?{...d.photoInfo}:c.photoInfo}))},[]),l=y.useCallback(()=>{n({url:"",style:"",type:"",currentAPI:"",video:!1,photoInfo:{hidden:!0}})},[]);return{backgroundData:o,updateBackground:u,resetBackground:l}}const bA={photo:[5]},am={"Ryan Hutton":{photo:[1]},"Francesco De Tommaso":{photo:[2]},"Andy Vu":{photo:[3]},"Sergi Ferrete":{photo:[4]},Pixabay:bA};function Vb(o){const n=Object.keys(am),u=n[Math.floor(Math.random()*n.length)],d={url:`src/assets/offline-images/${am[u].photo[Math.floor(Math.random()*am[u].photo.length)]}.webp`,type:o,photoInfo:{offline:!0,credit:u}};return localStorage.setItem("currentBackground",JSON.stringify(d)),d}function yA(o){const n=()=>"#000000".replace(/0/g,()=>(~~(Math.random()*16)).toString(16));let u=`background:${n()};`;if(o==="random_gradient"){const l=["to right","to left","to bottom","to top","to bottom right","to bottom left","to top right","to top left"];u=`background:linear-gradient(${l[Math.floor(Math.random()*l.length)]}, ${n()}, ${n()});`}return{type:"colour",style:u}}const kA=[".mp4",".webm",".ogg"];function Im(o){const n=String(o??""),u=n.toLowerCase();if(u.startsWith("data:video/")||u.startsWith("video/"))return!0;let l;try{l=new URL(n).pathname}catch{l=n.split(/[?#]/)[0]}return l=l.toLowerCase(),kA.some(d=>l.endsWith(d))}const Gb=(o,n=null)=>{const u=localStorage.getItem(o);if(u===null||u==="null")return n;try{const l=JSON.parse(u);return l!==null?l:n}catch{return n}};async function wA(){const o=localStorage.getItem("offlineMode")==="true"||localStorage.getItem("showWelcome")==="true",n=Gb("favourite");if(n)return n.type==="random_colour"||n.type==="random_gradient"?{type:"colour",style:`background:${n.url}`}:{url:n.url,video:Im(n.url),photoInfo:{...n,url:n.url}};const u=localStorage.getItem("backgroundType");switch(u){case"api":return MA();case"colour":return SA();case"random_colour":case"random_gradient":return yA(u);case"custom":return await CA(o);default:return null}}function SA(){return{type:"colour",style:`background: ${localStorage.getItem("customBackgroundColour")||"rgb(0,0,0)"}`}}function MA(){return{...Vb("api"),currentAPI:localStorage.getItem("backgroundAPI")||"mue"}}async function CA(o){let n=await Hb();if(!n||n.length===0){const c=Gb("customBackground",[]);c&&c.length>0&&(n=c.map(f=>({url:f,photoInfo:{hidden:!0}})))}if(!n||n.length===0)return null;const u=n[Math.floor(Math.random()*n.length)];if(!u)return null;const l=u.url||u;if(o&&!l.startsWith("data:"))return Vb("custom");const d={url:l,type:"custom",video:Im(l),photoInfo:{hidden:!0,blur_hash:u.blurHash||null}};try{localStorage.setItem("currentBackground",JSON.stringify({type:"custom",video:d.video,photoInfo:d.photoInfo}))}catch(c){console.warn("Could not save currentBackground to localStorage:",c)}return d}function AA(o,n){const u=y.useRef(0),l=y.useCallback(async()=>{const c=++u.current,f=()=>c!==u.current;try{if(localStorage.getItem("welcomeTab")){const k=localStorage.getItem("welcomeImage");if(k){o(JSON.parse(k));return}}const h=await wA();if(f())return;h&&o(h)}catch(p){console.error("Failed to load background:",p)}},[o]),d=y.useCallback(()=>{n(),l()},[l,n]);return y.useEffect(()=>{const c=localStorage.getItem("backgroundchange");(!localStorage.getItem("backgroundStartTime")||c==="refresh")&&localStorage.setItem("backgroundStartTime",Date.now()),l()},[l]),{loadBackground:l,refreshBackground:d}}async function xA(o){try{const n=await fetch(o,{mode:"cors",credentials:"omit"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const u=await n.blob();return URL.createObjectURL(u)}catch{return null}}const zA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",Ll=(o,n,u)=>{let l=0;for(;n<u;)l=l*83+zA.indexOf(o[n++]);return l},Kb=Math.pow,Os=Math.PI,Yb=3294.6,Wb=269.025,TA=o=>o>10.31475?Kb(o/Wb+.052132,2.4):o/Yb,NA=o=>~~(o>1227e-8?Wb*Kb(o,.416666)-13.025:o*Yb+1),Kl=4096,Qb=new Uint8ClampedArray(Kl+1);for(let o=0;o<=Kl;o++)Qb[o]=NA(o/Kl);const om=o=>o<=0?0:o>=1?255:Qb[o*Kl+.5|0],qs=o=>(o<0?-1:1)*o*o,V_=o=>{for(o+=Os/2;o>Os;)o-=Os*2;const n=1.27323954*o-.405284735*qs(o);return .225*(qs(n)-n)+n};function EA(o){const n=Ll(o,2,6);return[n>>16,n>>8&255,n&255]}function DA(o,n,u,l){const d=Ll(o,0,1),c=d%9+1,f=~~(d/9)+1,p=c*f;let h,k,_,g,b,S,C,A,x,T,z,L;const G=(Ll(o,1,2)+1)/13446*(l|1),Q=new Float64Array(p*3),H=EA(o);for(h=0;h<3;h++)Q[h]=TA(H[h]);for(h=1;h<p;h++)L=Ll(o,4+h*2,6+h*2),Q[h*3]=qs(~~(L/361)-9)*G,Q[h*3+1]=qs(~~(L/19)%19-9)*G,Q[h*3+2]=qs(L%19-9)*G;const j=new Float64Array(f*u),q=new Float64Array(c*n);for(k=0;k<f;k++)for(g=0;g<u;g++)j[k*u+g]=V_(Os*g*k/u);for(h=0;h<c;h++)for(_=0;_<n;_++)q[h*n+_]=V_(Os*_*h/n);const V=n*4,$=new Uint8ClampedArray(V*u),W=new Float64Array(c*3);for(g=0;g<u;g++){for(h=0;h<c;h++){for(b=S=C=0,k=0;k<f;k++)x=j[k*u+g],T=(h+k*c)*3,b+=Q[T]*x,S+=Q[T+1]*x,C+=Q[T+2]*x;W[h*3]=b,W[h*3+1]=S,W[h*3+2]=C}for(_=0;_<n;_++){for(b=S=C=0,h=0;h<c;h++)A=q[h*n+_],T=h*3,b+=W[T]*A,S+=W[T+1]*A,C+=W[T+2]*A;z=4*_+g*V,$[z]=om(b),$[z+1]=om(S),$[z+2]=om(C),$[z+3]=255}}return $}function jA(o,n=32,u=32){try{const l=document.createElement("canvas");l.width=n,l.height=u;const d=l.getContext("2d"),c=d.createImageData(n,u);return c.data.set(DA(o,n,u)),d.putImageData(c,0,0),l.toDataURL()}catch(l){return console.error("Failed to generate blur hash:",l),null}}function Um(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px) brightness(${n}%)`;return u&&u!=="none"&&(d+=` ${u}(${l}%)`),d}function Pm(){const o=localStorage.getItem("blur")||"0",n=localStorage.getItem("brightness")||"100",u=localStorage.getItem("backgroundFilter"),l=localStorage.getItem("backgroundFilterAmount")||"100";let d=`blur(${o}px)`;u&&u!=="none"&&(d+=` ${u}(${l}%)`);const f=(100-parseInt(n,10))/100;return{backdropFilter:d,WebkitBackdropFilter:d,backgroundColor:`rgba(0, 0, 0, ${f})`}}const Zb=()=>document.documentElement.dataset.bgMaximised==="true",OA={backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""},G_=1200,Nl=o=>`url("${String(o).replace(/[\\"]/g,"\\$&").replace(/\r?\n|\r/g,"\\a ")}")`;function qA(o,n){const u=y.useRef(null),l=y.useRef(n);l.current=n,y.useEffect(()=>{if(o.video)return;const d=document.getElementById("backgroundImage");if(!d)return;let c=!1,f=null;return(async()=>{if(o.url){const h=localStorage.getItem("bgtransition")!=="false",k=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!h||k){if(/^https?:/i.test(o.url)){const A=new Image;A.src=o.url;const x=await new Promise(T=>{A.onload=()=>T(!0),A.onerror=()=>T(!1)});if(c)return;if(!x){l.current?.(o.url);return}}d.style.background=Nl(o.url),document.querySelector(".photoInformation")?.style.setProperty("display","flex");return}let _=document.getElementById("backgroundOverlay");if(_||(_=document.createElement("div"),_.id="backgroundOverlay",d.parentNode.insertBefore(_,d.nextSibling)),o.photoInfo?.colour&&(d.style.backgroundColor=o.photoInfo.colour),o.photoInfo?.blur_hash){const A=jA(o.photoInfo.blur_hash,64,64);A&&(d.style.backgroundImage=Nl(A))}const g=await xA(o.url);if(c){g&&URL.revokeObjectURL(g);return}const b=g||o.url;g&&(u.current&&URL.revokeObjectURL(u.current),u.current=g);const S=new Image;S.src=b;const C=await new Promise(A=>{S.onload=()=>A(!0),S.onerror=()=>A(!1)});if(c)return;if(!C&&/^https?:/i.test(o.url)){l.current?.(o.url);return}_.style.transition="none",_.style.opacity="0",_.style.backgroundImage="",_.offsetHeight,_.style.backgroundImage=Nl(b),_.offsetHeight,_.style.transition=`opacity ${G_/1e3}s ease-in-out`,_.offsetHeight,_.style.opacity="1",f=setTimeout(()=>{d.style.backgroundImage=Nl(b),_.style.opacity="0",_.style.backgroundImage=""},G_+100)}else o.style?d.setAttribute("style",o.style):d.style.backgroundImage=""})(),()=>{c=!0,clearTimeout(f),u.current&&(URL.revokeObjectURL(u.current),u.current=null);const h=document.getElementById("backgroundOverlay");h&&h.remove()}},[o.url,o.style,o.video,o.photoInfo])}function RA(o){return y.useMemo(()=>({WebkitFilter:Zb()?"blur(0px) brightness(100%)":Um()}),[o])}function BA(o){return y.useMemo(()=>Zb()?OA:Pm(),[o])}function LA(o,n){y.useEffect(()=>{const u=c=>{c==="welcomeLanguage"?localStorage.setItem("welcomeImage",JSON.stringify(o)):c==="background"?l():["backgroundwelcome","backgroundrefresh"].includes(c)?n():c==="backgroundeffect"&&d()},l=()=>{const c=document.getElementById(o.video?"backgroundVideo":"backgroundImage"),f=document.querySelector(".photoInformation");if(!(localStorage.getItem("background")!=="false")){c?.style.setProperty("display","none"),o.photoInfo?.hidden||f?.style.setProperty("display","none");return}c?.style.setProperty("display","block"),o.photoInfo?.hidden||f?.style.setProperty("display","flex");const h=localStorage.getItem("backgroundType");(h!==o.type&&!(o.photoInfo?.offline&&h===o.type)||o.type==="api"&&localStorage.getItem("backgroundAPI")!==o.currentAPI||h==="custom"&&o.type!=="custom"||h==="colour"||o.photoInfo?.pun&&JSON.parse(localStorage.getItem("backgroundExclude")||"[]").includes(o.photoInfo.pun))&&n()},d=()=>{if(document.documentElement.dataset.bgMaximised!=="true")if(o.video){const c=Um(),f=document.getElementById("backgroundVideo");f&&(f.style.webkitFilter=c)}else{const c=document.getElementById("backgroundFilterOverlay");if(c){const f=Pm();c.style.backdropFilter=f.backdropFilter,c.style.webkitBackdropFilter=f.WebkitBackdropFilter,c.style.backgroundColor=f.backgroundColor}}};return _e.on("refresh",u),()=>_e.off("refresh",u)},[o,n])}function IA(){const{backgroundData:o,updateBackground:n,resetBackground:u}=vA(),{refreshBackground:l}=AA(n,u),d=RA(o),c=BA(o);return qA(o,f=>{f===o.url&&!o.video&&n({video:!0})}),LA(o,l),w.jsxs(w.Fragment,{children:[o.video?w.jsx(_A,{url:o.url,filterStyle:d}):w.jsx(gA,{photoInfo:o.photoInfo,currentAPI:o.currentAPI,url:o.url}),w.jsx("div",{id:"backgroundFilterOverlay",style:c})]})}const UA=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),PA=function(o,n){return new URL(o,n).href},K_={},Hm=function(n,u,l){let d=Promise.resolve();if(u&&u.length>0){let k=function(_){return Promise.all(_.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const f=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");d=k(u.map(_=>{if(_=PA(_,l),_ in K_)return;K_[_]=!0;const g=_.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(l)for(let C=f.length-1;C>=0;C--){const A=f[C];if(A.href===_&&(!g||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${_}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":UA,g||(S.as="script"),S.crossOrigin="",S.href=_,h&&S.setAttribute("nonce",h),document.head.appendChild(S),g)return new Promise((C,A)=>{S.addEventListener("load",C),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${_}`)))})}))}function c(f){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=f,window.dispatchEvent(p),!p.defaultPrevented)throw f}return d.then(f=>{for(const p of f||[])p.status==="rejected"&&c(p.reason);return n().catch(c)})};function Xb(o){if(o>3&&o<21)return o+"th";switch(o%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd";default:return o+"th"}}function Fm(o,n){return new Date((typeof o=="string"?new Date(o):o).toLocaleString("en-US",{timeZone:n}))}function Jb(){const o=localStorage.getItem("language")?.replace(/_/g,"-")||"en-GB",n={ar:"arab",fa:"arabext",bn:"beng",hi:"deva",mr:"deva",ne:"deva",ta:"tamldec"},u=o.split("-")[0];return n[u]?`${o}-u-nu-${n[u]}`:o}function HA(o){if(localStorage.getItem("localeFormatting")==="false")return Math.round(o*100)+"%";try{return new Intl.NumberFormat(Jb(),{style:"percent",maximumFractionDigits:0}).format(o)}catch{return Math.round(o*100)+"%"}}function Ds(o){if(localStorage.getItem("localeFormatting")==="false")return String(o);try{const u=typeof o=="string"?parseInt(o,10):o;return isNaN(u)?String(o):new Intl.NumberFormat(Jb(),{useGrouping:!1}).format(u)}catch{return String(o)}}const FA=y.lazy(()=>Hm(()=>import("./index-bn8Kdr1t.js"),[],import.meta.url));function VA({time:o}){const n=u=>localStorage.getItem(u)==="true";return w.jsx(y.Suspense,{fallback:w.jsx(w.Fragment,{}),children:w.jsx("div",{className:`clockBackground ${n("roundClock")?"round":""}`,children:w.jsx(FA,{className:"analogclock clock-container",value:o,size:1.5*Number(localStorage.getItem("zoomClock")||100),renderMinuteMarks:n("minuteMarks"),renderHourMarks:n("hourMarks"),renderSecondHand:n("secondHand"),renderMinuteHand:n("minuteHand"),renderHourHand:n("hourHand")})})})}function GA({finalHour:o,finalMinute:n,finalSeconds:u}){const l=localStorage.getItem("hourColour")||"#fff",d=localStorage.getItem("minuteColour")||"#fff",c=localStorage.getItem("secondColour")||"#fff";return w.jsxs("span",{className:"vertical-clock clock-container",children:[w.jsx("div",{className:"hour",style:{color:l},children:o}),w.jsx("div",{className:"minute",style:{color:d},children:n}),w.jsx("div",{className:"seconds",style:{color:c},children:u})]})}const Yt=o=>String(o).split("").map(u=>Ds(u)).join(""),KA=()=>{const[o]=y.useState(localStorage.getItem("timeType")),[n,u]=y.useState(""),[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(""),[k,_]=y.useState(""),[g,b]=y.useState("block"),[S,C]=y.useState("4em"),A=y.useRef(void 0),x=(T=localStorage.getItem("seconds")==="true"||localStorage.getItem("timeType")==="analogue"?1e3-Date.now()%1e3:6e4-Date.now()%6e4)=>{A.current=setTimeout(()=>{let z=new Date;const L=localStorage.getItem("timezone");switch(L&&L!=="auto"&&(z=Fm(z,L)),localStorage.getItem("timeType")){case"percentageComplete":u(HA(z.getHours()/24)),_("");break;case"analogue":Hm(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),u(z);break;default:{let G,Q="";const H=localStorage.getItem("zero");if(localStorage.getItem("seconds")==="true"){const j=("00"+z.getSeconds()).slice(-2);Q=`:${Yt(j)}`,h(Yt(j))}else h("");if(localStorage.getItem("timeformat")==="twentyfourhour"){const j=("00"+z.getMinutes()).slice(-2);if(H==="true"){const q=("00"+z.getHours()).slice(-2);G=`${Yt(q)}:${Yt(j)}${Q}`,d(Yt(q)),f(Yt(j))}else{const q=z.getHours();G=`${Ds(q)}:${Yt(j)}${Q}`,d(Ds(q)),f(Yt(j))}u(G),_("")}else{let j=z.getHours();j>12?j-=12:j===0&&(j=12);const q=("00"+z.getMinutes()).slice(-2);if(H==="true"){const V=("00"+j).slice(-2);G=`${Yt(V)}:${Yt(q)}${Q}`,d(Yt(V)),f(Yt(q))}else G=`${Ds(j)}:${Yt(q)}${Q}`,d(Ds(j)),f(Yt(q));u(G),_(z.getHours()>11?"PM":"AM")}break}}x()},T)};return y.useEffect(()=>{const T=z=>{if(z==="clock"||z==="timezone"){if(localStorage.getItem("time")==="false"){b("none");return}clearTimeout(A.current),A.current=null,x(0),b("block"),C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`)}};return localStorage.getItem("timeType")!=="analogue"&&C(`${4*Number((localStorage.getItem("zoomClock")||100)/100)}em`),x(0),_e.on("refresh",T),()=>{_e.off("refresh",T),A.current&&clearTimeout(A.current)}},[]),localStorage.getItem("timeType")==="analogue"?w.jsx(VA,{time:n}):localStorage.getItem("timeType")==="verticalClock"?w.jsx(GA,{finalHour:l,finalMinute:c,finalSeconds:p}):w.jsxs("span",{className:"clock clock-container",style:{display:g,fontSize:S},children:[n,w.jsx("span",{className:"ampm",children:k})]})},YA=(o,n)=>{if(!(localStorage.getItem("events")!=="false"))return n;const l=o.getMonth(),d=o.getDate(),f=JSON.parse(localStorage.getItem("customEvents")||"[]").find(p=>p.month-1===l&&p.date===d);return f&&(n=f.name),n},Y_=o=>{const n=Date.now()-o.getTime(),u=new Date(n);return Math.abs(u.getUTCFullYear()-1970)},WA=()=>{const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState("block"),[c,f]=y.useState("1.6em"),p=y.useRef(),h=y.useRef(null),k=(_=6e4-Date.now()%6e4)=>{h.current=setTimeout(()=>{let g=new Date;const b=localStorage.getItem("timezone");b&&b!=="auto"&&(g=Fm(g,b));const S=g.getHours();let C;switch(!0){case S<12:C=o("widgets.greeting.morning");break;case S<18:C=o("widgets.greeting.afternoon");break;default:C=o("widgets.greeting.evening");break}const A=localStorage.getItem("defaultGreetingMessage");A==="false"?C="":C=YA(g,C);let x="";const T=localStorage.getItem("greetingName");typeof T=="string"&&T.replace(/\s/g,"").length>0&&(x=`, ${T.trim()}`);const z=localStorage.getItem("birthdayenabled");if(A==="false"&&z!=="true"&&(x=x.replace(",","")),z==="true"){const L=new Date(localStorage.getItem("birthday"));if(L.getDate()===g.getDate()&&L.getMonth()===g.getMonth())if(localStorage.getItem("birthdayage")==="true"&&Y_(L)!==0){const G=o("widgets.greeting.birthday").split(" ");C=`${G[0]} ${Xb(Y_(L))} ${G[1]}`}else C=o("widgets.greeting.birthday")}u(`${C}${x}`),k()},_)};return y.useEffect(()=>{const _=b=>{if(b==="greeting"||b==="timezone"){const S=localStorage.getItem("greeting"),C=localStorage.getItem("zoomGreeting");d(S==="false"?"none":"block"),f(`${1.6*Number((C||100)/100)}em`),S!=="false"&&(h.current&&clearTimeout(h.current),k(0))}},g=localStorage.getItem("zoomGreeting");return f(`${1.6*Number((g||100)/100)}em`),k(0),_e.on("refresh",_),()=>{_e.off("refresh",_),h.current&&clearTimeout(h.current)}},[o]),w.jsx("span",{className:"greeting",ref:p,style:{display:l,fontSize:c},children:n})},QA="wbNewtabHandoff:",nu=o=>`${QA}${o}`,ZA=4e3,su=()=>typeof browser<"u"&&typeof browser?.sidebarAction?.open=="function",Hs=()=>su()?browser:typeof chrome<"u"&&chrome?.runtime?.id?chrome:null;let Yl=null;async function XA(){let o=null;try{o=await Hs()?.tabs?.getCurrent?.()??null}catch{o=null}return o?.id!=null&&await tx(Hs(),o.id),Yl=o,Yl}function JA({text:o,mode:n,tabId:u,now:l=Date.now()}){return{id:`nt-${l}-${Math.random().toString(36).slice(2,8)}`,tabId:u,text:String(o).slice(0,ZA),mode:n==="act"?"act":"ask",createdAt:l}}const $b=16e4,ho=new Map;function ey(o,n=""){let u;const l=new Promise(c=>{u=c}),d=(c=!0)=>{ho.get(o)?.promise===l&&ho.delete(o),u(c)};return ho.set(o,{promise:l,release:d,text:n}),d}const $A=o=>ho.has(o),ex=o=>ho.get(o)?.text??"";function W_(o=Yl){return ho.get(o?.id)?.promise??Promise.resolve(!0)}async function tx(o,n,u=Date.now()){if(!o?.storage?.local?.get||ho.has(n))return!1;const l=nu(n);let d;try{d=(await o.storage.local.get(l))?.[l]}catch{return!1}if(!d||ho.has(n))return!1;const c=$b-(u-Number(d.createdAt||0));return c>0?(ty(o,n,ey(n,String(d.text??"")),c),!0):!1}function ty(o,n,u,l=$b){const d=nu(n);let c;const f=(h,k)=>{(!k||k==="local")&&h?.[d]&&!h[d].newValue&&p()};function p(h=!0){clearTimeout(c),o.storage.onChanged?.removeListener?.(f),u(h)}c=setTimeout(()=>p(!1),l),o.storage.onChanged?.addListener?.(f),Promise.resolve(o.storage.local.get?.(d)).then(h=>{h?.[d]||p()}).catch(()=>{})}function ax({text:o,mode:n},u=Hs(),l=Yl){if(!u||l?.id==null)return Promise.reject(new Error("Extension API unavailable"));if(ho.has(l.id))return Promise.reject(new Error("Previous task is still being handed over"));const d=su();if(!d&&!u.sidePanel?.open)return Promise.reject(new Error("Side panel API unavailable"));const c=ey(l.id,String(o??"")),f=JA({text:o,mode:n,tabId:l.id});let p,h;try{p=Promise.resolve(u.storage.local.set({[nu(l.id)]:f})),d?h=u.sidebarAction.open():(Promise.resolve(u.sidePanel.setOptions({tabId:l.id,path:"src/ui/sidepanel.html",enabled:!0})).catch(()=>{}),h=u.sidePanel.open({tabId:l.id}))}catch(k){h=Promise.reject(k),p??=Promise.resolve()}return Promise.all([p,h]).then(()=>(ty(u,l.id,c),Promise.resolve(u.runtime.sendMessage({type:"WB_NEWTAB_PANEL_OPENED",tabId:l.id})).catch(()=>{}),!0),async k=>{throw await p.catch(()=>{}),await ox(u,l.id,f.id),c(),k})}async function ox(o,n,u){const l=nu(n);try{const d=(await o.storage.local.get(l))?.[l];(!d||d.id===u)&&await o.storage.local.remove(l)}catch{}}function ix(o=Hs()){return su()?typeof o?.search?.search=="function":typeof o?.search?.query=="function"}const Q_=new Set(["http:","https:"]);function nx(o){const n=String(o||"").trim();if(!n||/\s/.test(n))return null;try{const u=new URL(n);if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n))return Q_.has(u.protocol)?u.href:null}catch{}if(/^(localhost|(\d{1,3}\.){3}\d{1,3}|([a-z0-9-]+\.)+[a-z]{2,})(:\d+)?([/?#]\S*)?$/i.test(n))try{const u=new URL(`https://${n}`);return Q_.has(u.protocol)?u.href:null}catch{return null}return null}async function sx(o,n=Hs(),u=l=>window.location.assign(l)){const l=nx(o);if(l)return u(l),!0;if(su()&&n?.search?.search)return await n.search.search({query:o,disposition:"CURRENT_TAB"}),!0;if(n?.search?.query)return await n.search.query({text:o,disposition:"CURRENT_TAB"}),!0;throw new Error("Search API unavailable")}const rx=[{id:"ask",icon:PC},{id:"act",icon:Ib},{id:"search",icon:Lm}],ay=()=>rx.filter(o=>o.id!=="search"||ix()),lx=()=>{const o=localStorage.getItem("taskBoxMode");return ay().some(n=>n.id===o)?o:"ask"};function ux(){const[o,n]=y.useState(lx),[u,l]=y.useState(""),[d,c]=y.useState(""),[f,p]=y.useState(!1),h=y.useRef(null),k=y.useRef(!1);y.useEffect(()=>{let g=!0;return XA().then(b=>{if(g&&b?.id!=null&&$A(b.id)){p(!0);const S=ex(b.id);W_(b).then(C=>{g&&(p(!1),C===!1&&(l(A=>A||S),c(Wt("wb.panel_failed"))))})}}),localStorage.getItem("taskBoxFocus")!=="false"&&h.current?.focus(),()=>{g=!1}},[]);const _=g=>{g.preventDefault();const b=u.trim();if(!(!b||f||k.current)){if(c(""),o==="search"){sx(b).catch(()=>c(Wt("wb.panel_failed")));return}k.current=!0,p(!0),ax({text:b,mode:o}).then(()=>(l(""),W_())).then(S=>{S===!1&&(l(C=>C||b),c(Wt("wb.panel_failed")))}).catch(()=>c(Wt("wb.panel_failed"))).finally(()=>{k.current=!1,p(!1),h.current?.focus()})}};return w.jsxs("div",{className:"taskBox",children:[w.jsxs("form",{className:"taskBoxForm",onSubmit:_,children:[w.jsx("input",{ref:h,className:"taskBoxInput",type:"text",value:u,maxLength:4e3,autoComplete:"off",spellCheck:!1,placeholder:Wt(`wb.placeholder_${o}`),"aria-label":Wt(`wb.placeholder_${o}`),disabled:f,onChange:g=>l(g.target.value)}),w.jsx("button",{className:"taskBoxGo",type:"submit","aria-label":Wt("wb.go"),disabled:f||!u.trim(),children:w.jsx(Lb,{})})]}),w.jsx("div",{className:"taskBoxModes",role:"radiogroup",children:ay().map(({id:g,icon:b})=>w.jsxs("button",{type:"button",role:"radio","aria-checked":o===g,className:o===g?"taskBoxMode active":"taskBoxMode",onClick:()=>{n(g),h.current?.focus()},children:[w.jsx(b,{}),w.jsx("span",{children:Wt(`wb.${g}`)})]},g))}),o==="act"&&w.jsx("span",{className:"taskBoxHint taskBoxWarning",role:"note",children:Wt("wb.act_hint")}),d&&w.jsx("span",{className:"taskBoxHint taskBoxError",role:"alert",children:d})]})}const Z_="webbrain_chat_history",im="records";async function dx(o=4,n=globalThis.indexedDB){if(!n?.databases)return[];if(!(await n.databases()).some(d=>d.name===Z_))return[];const l=await new Promise((d,c)=>{const f=n.open(Z_);f.onupgradeneeded=()=>f.transaction.abort(),f.onsuccess=()=>d(f.result),f.onerror=()=>c(f.error),f.onblocked=()=>c(new Error("blocked"))});try{return l.objectStoreNames.contains(im)?await new Promise((d,c)=>{const f=[],p=l.transaction([im],"readonly").objectStore(im),k=(p.indexNames.contains("updatedAt")?p.index("updatedAt"):p).openCursor(null,"prev");k.onsuccess=()=>{const _=k.result;if(!_||f.length>=o)return d(f);const{id:g,title:b,url:S,updatedAt:C}=_.value;f.push({id:g,title:String(b||"").slice(0,140),url:String(S||""),updatedAt:C}),_.continue()},k.onerror=()=>c(k.error)}):[]}finally{l.close()}}const X_="../src/ui/history.html";function cx(){const[o,n]=y.useState(null);return y.useEffect(()=>{let u=!1;return dx(4).then(l=>!u&&n(l)).catch(()=>!u&&n([])),()=>{u=!0}},[]),o===null?null:w.jsxs("div",{className:"recentChats",children:[w.jsxs("div",{className:"recentChatsHeader",children:[w.jsx("span",{children:Wt("wb.recent_title")}),w.jsx("a",{href:X_,children:Wt("wb.recent_all")})]}),o.length===0?w.jsx("span",{className:"recentChatsEmpty",children:Wt("wb.recent_empty")}):w.jsx("ul",{children:o.map(u=>w.jsx("li",{children:w.jsx("a",{href:`${X_}?id=${encodeURIComponent(u.id)}`,children:u.title||u.url})},u.id))})]})}const Cm=Math.min,An=Math.max,Wl=Math.round,_o=o=>({x:o,y:o}),mx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(o,n,u){return An(o,Cm(n,u))}function ru(o,n){return typeof o=="function"?o(n):o}function Tn(o){return o.split("-")[0]}function lu(o){return o.split("-")[1]}function oy(o){return o==="x"?"y":"x"}function iy(o){return o==="y"?"height":"width"}function Yo(o){const n=o[0];return n==="t"||n==="b"?"y":"x"}function ny(o){return oy(Yo(o))}function fx(o,n,u){u===void 0&&(u=!1);const l=lu(o),d=ny(o),c=iy(d);let f=d==="x"?l===(u?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[c]>n.floating[c]&&(f=Ql(f)),[f,Ql(f)]}function gx(o){const n=Ql(o);return[Am(o),n,Am(n)]}function Am(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}const J_=["left","right"],$_=["right","left"],hx=["top","bottom"],_x=["bottom","top"];function vx(o,n,u){switch(o){case"top":case"bottom":return u?n?$_:J_:n?J_:$_;case"left":case"right":return n?hx:_x;default:return[]}}function bx(o,n,u,l){const d=lu(o);let c=vx(Tn(o),u==="start",l);return d&&(c=c.map(f=>f+"-"+d),n&&(c=c.concat(c.map(Am)))),c}function Ql(o){const n=Tn(o);return mx[n]+o.slice(n.length)}function yx(o){var n,u,l,d;return{top:(n=o.top)!=null?n:0,right:(u=o.right)!=null?u:0,bottom:(l=o.bottom)!=null?l:0,left:(d=o.left)!=null?d:0}}function kx(o){return typeof o!="number"?yx(o):{top:o,right:o,bottom:o,left:o}}function Zl(o){const{x:n,y:u,width:l,height:d}=o;return{width:l,height:d,top:u,left:n,right:n+l,bottom:u+d,x:n,y:u}}function ev(o,n,u){let{reference:l,floating:d}=o;const c=Yo(n),f=ny(n),p=iy(f),h=Tn(n),k=c==="y",_=l.x+l.width/2-d.width/2,g=l.y+l.height/2-d.height/2,b=l[p]/2-d[p]/2;let S;switch(h){case"top":S={x:_,y:l.y-d.height};break;case"bottom":S={x:_,y:l.y+l.height};break;case"right":S={x:l.x+l.width,y:g};break;case"left":S={x:l.x-d.width,y:g};break;default:S={x:l.x,y:l.y}}const C=lu(n);return C&&(S[f]+=b*(C==="end"?1:-1)*(u&&k?-1:1)),S}async function wx(o,n){var u;n===void 0&&(n={});const{x:l,y:d,platform:c,rects:f,elements:p,strategy:h}=o,{boundary:k="clippingAncestors",rootBoundary:_="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=ru(n,o),C=kx(S),x=p[b?g==="floating"?"reference":"floating":g],T=Zl(await c.getClippingRect({element:(u=await(c.isElement==null?void 0:c.isElement(x)))==null||u?x:x.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:k,rootBoundary:_,strategy:h})),z=g==="floating"?{x:l,y:d,width:f.floating.width,height:f.floating.height}:f.reference,L=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),G=await(c.isElement==null?void 0:c.isElement(L))&&await(c.getScale==null?void 0:c.getScale(L))||{x:1,y:1},Q=Zl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:z,offsetParent:L,strategy:h}):z);return{top:(T.top-Q.top+C.top)/G.y,bottom:(Q.bottom-T.bottom+C.bottom)/G.y,left:(T.left-Q.left+C.left)/G.x,right:(Q.right-T.right+C.right)/G.x}}const Sx=50,Mx=async(o,n,u)=>{const{placement:l="bottom",strategy:d="absolute",middleware:c=[],platform:f}=u,p=f.detectOverflow?f:{...f,detectOverflow:wx},h=await(f.isRTL==null?void 0:f.isRTL(n));let k=await f.getElementRects({reference:o,floating:n,strategy:d}),{x:_,y:g}=ev(k,l,h),b=l,S=0;const C={};for(let A=0;A<c.length;A++){const x=c[A];if(!x)continue;const{name:T,fn:z}=x,{x:L,y:G,data:Q,reset:H}=await z({x:_,y:g,initialPlacement:l,placement:b,strategy:d,middlewareData:C,rects:k,platform:p,elements:{reference:o,floating:n}});_=L??_,g=G??g,C[T]={...C[T],...Q},H&&S<Sx&&(S++,typeof H=="object"&&(H.placement&&(b=H.placement),H.rects&&(k=H.rects===!0?await f.getElementRects({reference:o,floating:n,strategy:d}):H.rects),{x:_,y:g}=ev(k,b,h)),A=-1)}return{x:_,y:g,placement:b,strategy:d,middlewareData:C}},Cx=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(n){var u,l;const{placement:d,middlewareData:c,rects:f,initialPlacement:p,platform:h,elements:k}=n,{mainAxis:_=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0,...x}=ru(o,n);if((u=c.arrow)!=null&&u.alignmentOffset)return{};const T=Tn(d),z=Yo(p),L=Tn(p)===p,G=await(h.isRTL==null?void 0:h.isRTL(k.floating)),Q=b||(L||!A?[Ql(p)]:gx(p)),H=C!=="none";!b&&H&&Q.push(...bx(p,A,C,G));const j=[p,...Q],q=await h.detectOverflow(n,x),V=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(_&&V.push(q[T]),g){const X=fx(d,f,G);V.push(q[X[0]],q[X[1]])}if($=[...$,{placement:d,overflows:V}],!V.every(X=>X<=0)){var W,ee;const X=(((W=c.flip)==null?void 0:W.index)||0)+1,Y=j[X];if(Y&&(!(g==="alignment"?z!==Yo(Y):!1)||$.every(K=>Yo(K.placement)===z?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:Y}};let I=(ee=$.filter(N=>N.overflows[0]<=0).sort((N,K)=>N.overflows[1]-K.overflows[1])[0])==null?void 0:ee.placement;if(!I)switch(S){case"bestFit":{var ae;const N=(ae=$.filter(K=>{if(H){const ie=Yo(K.placement);return ie===z||ie==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ie=>ie>0).reduce((ie,ne)=>ie+ne,0)]).sort((K,ie)=>K[1]-ie[1])[0])==null?void 0:ae[0];N&&(I=N);break}case"initialPlacement":I=p;break}if(d!==I)return{reset:{placement:I}}}return{}}}},Ax=new Set(["left","top"]);async function xx(o,n){const{placement:u,platform:l,elements:d}=o,c=await(l.isRTL==null?void 0:l.isRTL(d.floating)),f=Tn(u),p=lu(u),h=Yo(u)==="y",k=Ax.has(f)?-1:1,_=c&&h?-1:1,g=ru(n,o);let{mainAxis:b,crossAxis:S,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return p&&typeof C=="number"&&(S=p==="end"?C*-1:C),h?{x:S*_,y:b*k}:{x:b*k,y:S*_}}const zx=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(n){var u,l;const{x:d,y:c,placement:f,middlewareData:p}=n,h=await xx(n,o);return f===((u=p.offset)==null?void 0:u.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:d+h.x,y:c+h.y,data:{...h,placement:f}}}}},Tx=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(n){const{x:u,y:l,placement:d,platform:c}=n,{mainAxis:f=!0,crossAxis:p=!1,limiter:h={fn:z=>{let{x:L,y:G}=z;return{x:L,y:G}}},...k}=ru(o,n),_={x:u,y:l},g=await c.detectOverflow(n,k),b=Yo(d),S=oy(b);let C=_[S],A=_[b];const x=(z,L)=>px(L+g[z==="y"?"top":"left"],L,L-g[z==="y"?"bottom":"right"]);f&&(C=x(S,C)),p&&(A=x(b,A));const T=h.fn({...n,[S]:C,[b]:A});return{...T,data:{x:T.x-u,y:T.y-l,enabled:{[S]:f,[b]:p}}}}}};function uu(){return typeof window<"u"}function Nn(o){return sy(o)?(o.nodeName||"").toLowerCase():"#document"}function la(o){var n;return(o==null||(n=o.ownerDocument)==null?void 0:n.defaultView)||window}function Xo(o){var n;return(n=(sy(o)?o.ownerDocument:o.document)||window.document)==null?void 0:n.documentElement}function sy(o){return uu()?o instanceof Node||o instanceof la(o).Node:!1}function Wa(o){return uu()?o instanceof Element||o instanceof la(o).Element:!1}function Jo(o){return uu()?o instanceof HTMLElement||o instanceof la(o).HTMLElement:!1}function tv(o){return!uu()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof la(o).ShadowRoot}function du(o){const{overflow:n,overflowX:u,overflowY:l,display:d}=Qa(o);return/auto|scroll|overlay|hidden|clip/.test(n+l+u)&&d!=="inline"&&d!=="contents"}function Nx(o){return/^(table|td|th)$/.test(Nn(o))}function cu(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}const Ex=/transform|translate|scale|rotate|perspective|filter/,Dx=/paint|layout|strict|content/,Mi=o=>!!o&&o!=="none";let nm;function Vm(o){const n=Wa(o)?Qa(o):o;return Mi(n.transform)||Mi(n.translate)||Mi(n.scale)||Mi(n.rotate)||Mi(n.perspective)||!Gm()&&(Mi(n.backdropFilter)||Mi(n.filter))||Ex.test(n.willChange||"")||Dx.test(n.contain||"")}function jx(o){let n=Ti(o);for(;Jo(n)&&!Fs(n);){if(Vm(n))return n;if(cu(n))return null;n=Ti(n)}return null}function Gm(){return nm==null&&(nm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nm}function Fs(o){return/^(html|body|#document)$/.test(Nn(o))}function Qa(o){return la(o).getComputedStyle(o)}function mu(o){return Wa(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function Ti(o){if(Nn(o)==="html")return o;const n=o.assignedSlot||o.parentNode||tv(o)&&o.host||Xo(o);return tv(n)?n.host:n}function ry(o){const n=Ti(o);return Fs(n)?(o.ownerDocument||o).body:Jo(n)&&du(n)?n:ry(n)}function ly(o,n,u){var l;n===void 0&&(n=[]);const d=ry(o),c=d===((l=o.ownerDocument)==null?void 0:l.body),f=la(d);return c?(xm(f),n.concat(f,f.visualViewport||[],du(d)?d:[],[])):n.concat(d,ly(d,[]))}function xm(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function uy(o){const n=Qa(o);let u=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const d=Jo(o),c=d?o.offsetWidth:u,f=d?o.offsetHeight:l,p=Wl(u)!==c||Wl(l)!==f;return p&&(u=c,l=f),{width:u,height:l,$:p}}function dy(o){return Wa(o)?o:o.contextElement}function xn(o){const n=dy(o);if(!Jo(n))return _o(1);const u=n.getBoundingClientRect(),{width:l,height:d,$:c}=uy(n);let f=(c?Wl(u.width):u.width)/l,p=(c?Wl(u.height):u.height)/d;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const Ox=_o(0);function cy(o){const n=la(o);return!Gm()||!n.visualViewport?Ox:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function qx(o,n,u){return n===void 0&&(n=!1),!!u&&n&&u===la(o)}function Vs(o,n,u,l){n===void 0&&(n=!1),u===void 0&&(u=!1);const d=o.getBoundingClientRect(),c=dy(o);let f=_o(1);n&&(l?Wa(l)&&(f=xn(l)):f=xn(o));const p=qx(c,u,l)?cy(c):_o(0);let h=(d.left+p.x)/f.x,k=(d.top+p.y)/f.y,_=d.width/f.x,g=d.height/f.y;if(c&&l){const b=la(c),S=Wa(l)?la(l):l;let C=b,A=xm(C);for(;A&&S!==C;){const x=xn(A),T=A.getBoundingClientRect(),z=Qa(A),L=T.left+(A.clientLeft+parseFloat(z.paddingLeft))*x.x,G=T.top+(A.clientTop+parseFloat(z.paddingTop))*x.y;h*=x.x,k*=x.y,_*=x.x,g*=x.y,h+=L,k+=G,C=la(A),A=xm(C)}}return Zl({width:_,height:g,x:h,y:k})}function pu(o,n){const u=mu(o).scrollLeft;return n?n.left+u:Vs(Xo(o)).left+u}function my(o,n){const u=o.getBoundingClientRect(),l=u.left+n.scrollLeft-pu(o,u),d=u.top+n.scrollTop;return{x:l,y:d}}function Rx(o){let{elements:n,rect:u,offsetParent:l,strategy:d}=o;const c=d==="fixed",f=Xo(l),p=n?cu(n.floating):!1;if(l===f||p&&c)return u;let h={scrollLeft:0,scrollTop:0},k=_o(1);const _=_o(0),g=Jo(l);if((g||!c)&&((Nn(l)!=="body"||du(f))&&(h=mu(l)),g)){const S=Vs(l);k=xn(l),_.x=S.x+l.clientLeft,_.y=S.y+l.clientTop}const b=f&&!g&&!c?my(f,h):_o(0);return{width:u.width*k.x,height:u.height*k.y,x:u.x*k.x-h.scrollLeft*k.x+_.x+b.x,y:u.y*k.y-h.scrollTop*k.y+_.y+b.y}}function Bx(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function Lx(o){const n=mu(o),u=o.ownerDocument.body,l=An(o.scrollWidth,o.clientWidth,u.scrollWidth,u.clientWidth),d=An(o.scrollHeight,o.clientHeight,u.scrollHeight,u.clientHeight);let c=-n.scrollLeft+pu(o);const f=-n.scrollTop;return Qa(u).direction==="rtl"&&(c+=An(o.clientWidth,u.clientWidth)-l),{width:l,height:d,x:c,y:f}}const Ix=25;function Ux(o,n,u){u===void 0&&(u="viewport");const l=u==="layoutViewport",d=la(o),c=Xo(o),f=d.visualViewport;let p=c.clientWidth,h=c.clientHeight,k=0,_=0;if(f){const b=!Gm()||n==="fixed";l?b||(k=-f.offsetLeft,_=-f.offsetTop):(p=f.width,h=f.height,b&&(k=f.offsetLeft,_=f.offsetTop))}if(pu(c)<=0){const b=c.ownerDocument,S=b.body,C=getComputedStyle(S),A=b.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,x=Math.abs(c.clientWidth-S.clientWidth-A),T=getComputedStyle(c).scrollbarGutter==="stable both-edges"?x/2:x;T<=Ix&&(p-=T)}return{width:p,height:h,x:k,y:_}}function Px(o,n){const u=Vs(o,!0,n==="fixed"),l=u.top+o.clientTop,d=u.left+o.clientLeft,c=xn(o),f=o.clientWidth*c.x,p=o.clientHeight*c.y,h=d*c.x,k=l*c.y;return{width:f,height:p,x:h,y:k}}function av(o,n,u){let l;if(n==="viewport"||n==="layoutViewport")l=Ux(o,u,n);else if(n==="document")l=Lx(Xo(o));else if(Wa(n))l=Px(n,u);else{const d=cy(o);l={x:n.x-d.x,y:n.y-d.y,width:n.width,height:n.height}}return Zl(l)}function Hx(o,n){const u=n.get(o);if(u)return u;let l=ly(o,[]).filter(p=>Wa(p)&&Nn(p)!=="body"),d=null;const c=Qa(o).position==="fixed";let f=c?Ti(o):o;for(;Wa(f)&&!Fs(f);){const p=Qa(f),h=Vm(f),k=d?d.position:c?"fixed":"";!h&&(k==="fixed"||k==="absolute"&&p.position==="static")?l=l.filter(g=>g!==f):d=p,f=Ti(f)}return n.set(o,l),l}function Fx(o){let{element:n,boundary:u,rootBoundary:l,strategy:d}=o;const f=[...u==="clippingAncestors"?cu(n)?[]:Hx(n,this._c):[].concat(u),l],p=av(n,f[0],d);let h=p.top,k=p.right,_=p.bottom,g=p.left;for(let b=1;b<f.length;b++){const S=av(n,f[b],d);h=An(S.top,h),k=Cm(S.right,k),_=Cm(S.bottom,_),g=An(S.left,g)}return{width:k-g,height:_-h,x:g,y:h}}function Vx(o){const{width:n,height:u}=uy(o);return{width:n,height:u}}function Gx(o,n,u){const l=Jo(n),d=Xo(n),c=u==="fixed",f=Vs(o,!0,c,n);let p={scrollLeft:0,scrollTop:0};const h=_o(0);if((l||!c)&&((Nn(n)!=="body"||du(d))&&(p=mu(n)),l)){const b=Vs(n,!0,c,n);h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}!l&&d&&(h.x=pu(d));const k=d&&!l&&!c?my(d,p):_o(0),_=f.left+p.scrollLeft-h.x-k.x,g=f.top+p.scrollTop-h.y-k.y;return{x:_,y:g,width:f.width,height:f.height}}function sm(o){return Qa(o).position==="static"}function ov(o,n){if(!Jo(o)||Qa(o).position==="fixed")return null;if(n)return n(o);let u=o.offsetParent;return Xo(o)===u&&(u=u.ownerDocument.body),u}function py(o,n){const u=la(o);if(cu(o))return u;if(!Jo(o)){let d=Ti(o);for(;d&&!Fs(d);){if(Wa(d)&&!sm(d))return d;d=Ti(d)}return u}let l=ov(o,n);for(;l&&Nx(l)&&sm(l);)l=ov(l,n);return l&&Fs(l)&&sm(l)&&!Vm(l)?u:l||jx(o)||u}const Kx=async function(o){const n=this.getOffsetParent||py,u=this.getDimensions,l=await u(o.floating);return{reference:Gx(o.reference,await n(o.floating),o.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Yx(o){return Qa(o).direction==="rtl"}const Wx={convertOffsetParentRelativeRectToViewportRelativeRect:Rx,getDocumentElement:Xo,getClippingRect:Fx,getOffsetParent:py,getElementRects:Kx,getClientRects:Bx,getDimensions:Vx,getScale:xn,isElement:Wa,isRTL:Yx},Qx=zx,Zx=Tx,Xx=Cx,Jx=(o,n,u)=>{const l=new Map,d=u??{},c={...Wx,...d.platform,_c:l};return Mx(o,n,{...d,platform:c})};var Cn=qm(),$x=typeof document<"u",e2=function(){},Il=$x?y.useLayoutEffect:e2;function Xl(o,n){if(o===n)return!0;if(typeof o!=typeof n)return!1;if(typeof o=="function"&&o.toString()===n.toString())return!0;let u,l,d;if(o&&n&&typeof o=="object"){if(Array.isArray(o)){if(u=o.length,u!==n.length)return!1;for(l=u;l--!==0;)if(!Xl(o[l],n[l]))return!1;return!0}if(d=Object.keys(o),u=d.length,u!==Object.keys(n).length)return!1;for(l=u;l--!==0;)if(!{}.hasOwnProperty.call(n,d[l]))return!1;for(l=u;l--!==0;){const c=d[l];if(!(c==="_owner"&&o.$$typeof)&&!Xl(o[c],n[c]))return!1}return!0}return o!==o&&n!==n}function fy(o){return typeof window>"u"?1:(o.ownerDocument.defaultView||window).devicePixelRatio||1}function iv(o,n){const u=fy(o);return Math.round(n*u)/u}function rm(o){const n=y.useRef(o);return Il(()=>{n.current=o}),n}function fu(o){o===void 0&&(o={});const{placement:n="bottom",strategy:u="absolute",middleware:l=[],platform:d,elements:{reference:c,floating:f}={},transform:p=!0,whileElementsMounted:h,open:k}=o,[_,g]=y.useState({x:0,y:0,strategy:u,placement:n,middlewareData:{},isPositioned:!1}),[b,S]=y.useState(l);Xl(b,l)||S(l);const[C,A]=y.useState(null),[x,T]=y.useState(null),z=y.useCallback(K=>{K!==H.current&&(H.current=K,A(K))},[]),L=y.useCallback(K=>{K!==j.current&&(j.current=K,T(K))},[]),G=c||C,Q=f||x,H=y.useRef(null),j=y.useRef(null),q=y.useRef(_),V=h!=null,$=rm(h),W=rm(d),ee=rm(k),ae=y.useCallback(()=>{if(!H.current||!j.current)return;const K={placement:n,strategy:u,middleware:b};W.current&&(K.platform=W.current),Jx(H.current,j.current,K).then(ie=>{const ne={...ie,isPositioned:ee.current!==!1};X.current&&!Xl(q.current,ne)&&(q.current=ne,Cn.flushSync(()=>{g(ne)}))})},[b,n,u,W,ee]);Il(()=>{k===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[k]);const X=y.useRef(!1);Il(()=>(X.current=!0,()=>{X.current=!1}),[]),Il(()=>{if(G&&(H.current=G),Q&&(j.current=Q),G&&Q){if($.current)return $.current(G,Q,ae);ae()}},[G,Q,ae,$,V]);const Y=y.useMemo(()=>({reference:H,floating:j,setReference:z,setFloating:L}),[z,L]),I=y.useMemo(()=>({reference:G,floating:Q}),[G,Q]),N=y.useMemo(()=>{const K={position:u,left:0,top:0};if(!I.floating)return K;const ie=iv(I.floating,_.x),ne=iv(I.floating,_.y);return p?{...K,transform:"translate("+ie+"px, "+ne+"px)",...fy(I.floating)>=1.5&&{willChange:"transform"}}:{position:u,left:ie,top:ne}},[u,p,I.floating,_.x,_.y]);return y.useMemo(()=>({..._,update:ae,refs:Y,elements:I,floatingStyles:N}),[_,ae,Y,I,N])}const t2=(o,n)=>{const u=Qx(o);return{name:u.name,fn:u.fn,options:[o,n]}},gu=(o,n)=>{const u=Zx(o);return{name:u.name,fn:u.fn,options:[o,n]}},a2=(o,n)=>{const u=Xx(o);return{name:u.name,fn:u.fn,options:[o,n]}},o2={position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"};function i2({children:o,title:n,style:u,placement:l,subtitle:d}){const[c,f]=y.useState(!1),[p,h]=y.useState(!1),[k,_]=y.useState(null),g=`tooltip-${y.useId().replace(/:/g,"")}`,b=y.useRef(null),{x:S,y:C,refs:A,strategy:x,placement:T}=fu({placement:l||"bottom",middleware:[a2(),t2(15),gu()],elements:{reference:k}}),z=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},L=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},G=()=>{b.current&&(clearTimeout(b.current),b.current=null),h(!1),f(!0)},Q=()=>{h(!0),b.current=setTimeout(()=>{f(!1),h(!1)},200)},H=()=>!c&&!p?"initial":p?"close":"open";return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"tooltip",style:u,onMouseEnter:z,onMouseLeave:L,onFocus:G,onBlur:Q,ref:_,children:[y.isValidElement(o)&&!o.props["aria-describedby"]?y.cloneElement(o,{"aria-describedby":g}):o,w.jsxs("span",{id:g,role:"tooltip",style:o2,children:[n,d?` ${d}`:""]})]}),(c||p)&&w.jsxs("span",{ref:A.setFloating,style:{position:x,top:C??"",left:S??"",display:"flex",flexFlow:"column"},className:"tooltipTitle","data-status":H(),"data-placement":T,children:[n,w.jsx("span",{style:{fontSize:"8px"},children:d})]})]})}const ht=y.memo(i2),Gs=y.forwardRef(({icon:o,label:n,type:u,iconPlacement:l,onClick:d,active:c,disabled:f,tooltipTitle:p,tooltipKey:h,href:k,style:_},g)=>{let b;switch(u){case"settings":b="btn-settings";break;case"secondary":b="btn-secondary";break;case"icon":b="btn-icon";break;case"navigation":b="btn-navigation";break;case"collection":b="btn-collection";break;case"linkIconButton":b="btn-icon";break;case"linkButton":b="btn-settings";break;default:b="btn-default"}l==="right"&&(b+=" flowReverse"),c&&(b+=` ${b}-active`);const S=w.jsxs("button",{className:b,onClick:d,ref:g,disabled:f,style:_,children:[o,n]}),C=w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,style:_,target:"_blank",rel:"noopener noreferrer",children:[o,n]}),A=w.jsx(ht,{title:p,children:w.jsxs("a",{className:b,onClick:d,ref:g,disabled:f,href:k,target:"_blank",rel:"noopener noreferrer",style:_,children:[o,n]})},h);switch(u){case"linkIconButton":return A;case"linkButton":return C;case"icon":return w.jsx(ht,{title:p,children:S},h);default:return S}});Gs.displayName="Button";const Qo=o=>n=>{n.target===n.currentTarget&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),o(n))};function n2({urlError:o,iconError:n,addLink:u,closeModal:l,edit:d,editData:c,editLink:f}){const[p,h]=y.useState(d?c.name:""),[k,_]=y.useState(d?c.url:""),[g,b]=y.useState(d?c.icon:"");return w.jsxs("div",{className:"addLinkModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:d?me.getMessage("widgets.quicklinks.edit"):me.getMessage("widgets.quicklinks.new")}),w.jsx(ht,{title:me.getMessage("modals.welcome.buttons.close"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.welcome.buttons.close"),onClick:()=>l(),onKeyDown:Qo(()=>l()),children:w.jsx(Ps,{})})})]}),w.jsxs("div",{className:"quicklinkModalTextbox",children:[w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.name"),value:p,onChange:S=>h(S.target.value.replace(/(\r\n|\n|\r)/gm,"")),style:{gridColumn:"span 2"}}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.url"),value:k,onChange:S=>_(S.target.value.replace(/(\r\n|\n|\r)/gm,""))}),w.jsx("input",{type:"text",className:"text-field-input",placeholder:me.getMessage("widgets.quicklinks.icon"),value:g,onChange:S=>b(S.target.value.replace(/(\r\n|\n|\r)/gm,""))})]}),w.jsxs("div",{className:"addFooter",children:[w.jsxs("span",{className:"dropdown-error",children:[n," ",o]}),d?w.jsx(Gs,{type:"settings",onClick:()=>f(c,p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("modals.main.settings.sections.quicklinks.edit")}):w.jsx(Gs,{type:"settings",onClick:()=>u(p,k,g),icon:w.jsx(I_,{}),label:me.getMessage("widgets.quicklinks.add")})]})]})}const jN=y.memo(n2),s2=[{name:"time",value:!0},{name:"greeting",value:!0},{name:"background",value:!0},{name:"quote",value:!1},{name:"searchBar",value:!1},{name:"blur",value:0},{name:"brightness",value:90},{name:"zero",value:!0},{name:"events",value:!0},{name:"customBackground",value:""},{name:"greetingName",value:""},{name:"defaultGreetingMessage",value:!0},{name:"backgroundAPI",value:"mue"},{name:"copyButton",value:!1},{name:"installed",value:[]},{name:"searchEngine",value:"duckduckgo"},{name:"refresh",value:!1},{name:"view",value:!0},{name:"favouriteEnabled",value:!0},{name:"quoteShareButton",value:!1},{name:"favouriteQuoteEnabled",value:!1},{name:"showWelcome",value:!1},{name:"date",value:"false"},{name:"timeType",value:"digital"},{name:"dateFormat",value:"DMY"},{name:"shortFormat",value:"dots"},{name:"toastDisplayTime",value:2500},{name:"fontstyle",value:"normal"},{name:"fontweight",value:400},{name:"order",value:'["greeting", "time", "quicklinks", "date", "message"]'},{name:"theme",value:"auto"},{name:"backgroundType",value:"api"},{name:"timeformat",value:"twentyfourhour"},{name:"experimental",value:!1},{name:"debugtimeout",value:0},{name:"quicklinks",value:"[]"},{name:"quicklinksenabled",value:!1},{name:"weatherEnabled",value:!1},{name:"weatherType",value:2},{name:"tempformat",value:"celsius"},{name:"authorImg",value:!0},{name:"authorLink",value:!0},{name:"bgtransition",value:!0},{name:"backgroundVideoLoop",value:!0},{name:"backgroundVideoMute",value:!0},{name:"quicklinkstooltip",value:!0},{name:"notesEnabled",value:!0},{name:"showlocation",value:!0},{name:"minuteHand",value:!0},{name:"hourHand",value:!0},{name:"datezero",value:!0},{name:"autocompleteProvider",value:"google"},{name:"quoteType",value:"quote_pack"},{name:"backgroundFilter",value:"none"},{name:"apiQuality",value:"high"},{name:"photoInformation",value:!0},{name:"backgroundFilterAmount",value:0},{name:"stats",value:!1},{name:"statsData",value:"{}"},{name:"localeFormatting",value:!0},{name:"offlineMode",value:!0},{name:"animations",value:!0},{name:"textBorder",value:"new"},{name:"widgetStyle",value:"new"},{name:"backgroundExclude",value:"[]"},{name:"photoMap",value:!0},{name:"appsEnabled",value:!1},{name:"applinks",value:"[]"},{name:"customEvents",value:'[{"id":"widgets.greeting.christmas","name":"Merry Christmas","month":12,"date":25},{"id":"widgets.greeting.newyear","name":"Happy New Year","month":1,"date":1},{"id":"widgets.greeting.halloween","name":"Happy Halloween","month":10,"date":31}]'},{name:"authorDetails",value:!0},{name:"taskBox",value:!0},{name:"taskBoxMode",value:"ask"},{name:"taskBoxFocus",value:!0},{name:"recentChats",value:!1}],r2=[{name:"العربية",value:"ar"},{name:"مصرى",value:"arz"},{name:"Azərbaycan",value:"az"},{name:"تۆرکجه",value:"azb"},{name:"Bahasa Indonesia",value:"id_ID"},{name:"বাংলা",value:"bn"},{name:"Deutsch",value:"de_DE"},{name:"Ελληνικά",value:"el"},{name:"English (UK)",value:"en_GB"},{name:"English (US)",value:"en_US"},{name:"Español",value:"es"},{name:"Español (Latinoamérica)",value:"es_419"},{name:"Eesti",value:"et"},{name:"فارسی",value:"fa"},{name:"Français",value:"fr"},{name:"Magyar",value:"hu"},{name:"日本語",value:"ja"},{name:"Lietuvių",value:"lt"},{name:"Latviešu",value:"lv"},{name:"Nederlands",value:"nl"},{name:"Norsk",value:"no"},{name:"𐎱𐎠𐎼𐎿",value:"peo"},{name:"Pусский",value:"ru"},{name:"Português",value:"pt"},{name:"Português (Brasil)",value:"pt_BR"},{name:"Português (Portugal)",value:"pt_PT"},{name:"Slovenščina",value:"sl"},{name:"Svenska",value:"sv"},{name:"தமிழ்",value:"ta"},{name:"Türkçe",value:"tr_TR"},{name:"Українська",value:"uk"},{name:"Tiếng Việt",value:"vi"},{name:"中文 (简体)",value:"zh_CN"},{name:"中文 (繁體)",value:"zh_Hant"}];function zm(o){localStorage.clear(),s2.forEach(l=>localStorage.setItem(l.name,l.value));const n=r2.map(({value:l})=>l),u=navigator.languages&&navigator.languages.find(l=>l.replace("-","_")&&n.includes(l))||navigator.language.replace("-","_");n.includes(u)?localStorage.setItem("language",u):localStorage.setItem("language","en_GB"),localStorage.setItem("tabName",me.getMessage("tabname")),o&&localStorage.setItem("showWelcome",!1),localStorage.setItem("firstRun",!0)}function l2(o,n="file",u="text/json"){typeof o=="object"&&(o=JSON.stringify(o,void 0,4));const l=new Blob([o],{type:u}),d=document.createEvent("MouseEvents"),c=document.createElement("a");c.href=window.URL.createObjectURL(l),c.download=n,c.dataset.downloadurl=[u,c.download,c.href].join(":"),d.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),c.dispatchEvent(d)}function lm(o){switch(localStorage.getItem("theme")){case"dark":document.body.classList.add("dark"),document.body.classList.remove("light");break;case"auto":window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.classList.add("dark"):(document.body.classList.remove("dark"),document.body.classList.add("light"));break;default:document.body.classList.add("light"),document.body.classList.remove("dark")}document.title=localStorage.getItem("tabName")||me.getMessage("tabname"),o===!0&&["customcss","customfont"].forEach(c=>{try{document.head.removeChild(document.getElementById(c))}catch{}}),localStorage.getItem("animations")==="false"?document.body.classList.add("no-animations"):document.body.classList.remove("no-animations");const n=localStorage.getItem("textBorder");n==="true"?["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.add("textBorder")}catch{}}):["greeting","clock","date"].forEach(c=>{try{document.querySelector("."+c).classList.remove("textBorder")}catch{}}),n==="none"?document.getElementById("center").classList.add("no-textBorder"):document.getElementById("center").classList.remove("no-textBorder");const u=localStorage.getItem("customcss");if(u){const d=document.createElement("style");d.id="customcss",d.textContent=u,document.head.appendChild(d)}const l=localStorage.getItem("font");if(l){const d=document.createElement("style");d.id="customfont",d.textContent=`
* {
font-family: '${l}', 'Lexend Deca', 'Inter', sans-serif !important;
font-weight: ${localStorage.getItem("fontweight")};
font-style: ${localStorage.getItem("fontstyle")};
}
- `,document.head.appendChild(d)}localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function u2(){const o=Object.keys(localStorage);if(o.length===0)return zm();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),zm(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function d2({modalClose:o}){const n=async()=>{me.stats.postEvent("setting","Reset");try{await Fb()}catch(u){console.error("Could not clear the uploaded backgrounds, reset cancelled:",u),je(me.getMessage("toasts.error"));return}zm("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),onClick:o,onKeyDown:Qo(o),children:w.jsx(Ps,{})})})]}),w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Gs,{type:"secondary",onClick:o,icon:w.jsx(Ps,{}),label:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Gs,{type:"settings",onClick:()=>n(),icon:w.jsx(HC,{}),label:me.getMessage("modals.main.settings.buttons.reset")})]})]})}const jN=y.memo(d2),nv={[Wo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Wo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Wo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},c2=({currentTab:o=Wo.SETTINGS})=>{const n=nv[o]||nv[Wo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},m2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(c2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.loading")})]})})})})]}),p2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function f2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Zo(),g=lA.find(({tab:A})=>A===o),b=g?_(g.messageKey):"",S=(A,x)=>{if(!A||!x)return A;const T=`modals.main.settings.sections.${x}.${A}.title`,z=_(T);return!z||z===T?A.charAt(0).toUpperCase()+A.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null,u):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(EC,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Lb,{})})},"forwardTooltip")]}),w.jsx("img",{src:p2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((A,x)=>{const T=x===C.length-1,z=A.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:A.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),A.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${A.label}`,children:A.label}):w.jsx("span",{className:`breadcrumb-item ${T?"breadcrumb-current":""}`,"aria-current":T?"page":void 0,children:A.label}),!T&&w.jsx(NC,{className:"breadcrumb-separator","aria-hidden":"true"})]},x)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("button",{type:"button",className:"closeModal",onClick:c,"aria-label":_("modals.welcome.buttons.close"),children:w.jsx(Ps,{})})},"closeTooltip")})]})}const g2=y.lazy(()=>Hm(()=>import("./Settings-DqpzHKoz.js"),__vite__mapDeps([1,2]),import.meta.url));function h2({modalClose:o,deepLinkData:n}){const u=Wo.SETTINGS,[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?js(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash?C&&(_({type:"settings-default",timestamp:Date.now()}),h(null)):o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C,{fromHistory:A=!1}={})=>{d(S),f(C),!A&&(h(null),C&&Gl(`#${u}/${C}`,!1))},b=(S,C)=>{h(S),C&&Gl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(f2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(y.Suspense,{fallback:w.jsx(m2,{currentTab:u}),children:w.jsx(g2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},u)})})]})}const _2=y.memo(h2),sv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function gy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${sv[c%sv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const rv=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},hy=y.memo(()=>{const[o,n]=y.useState(rv()),[u,l]=y.useState(0),d=y.useRef(null),c=y.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);y.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(rv()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||gy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>k(_,g))})});hy.displayName="QuickLinks";const v2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${me.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Fm(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,A=g.getFullYear(),x=localStorage.getItem("datezero")==="true";let T=x?("00"+S).slice(-2):S,z=x?("00"+C).slice(-2):C,L=A;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Q,H]=[T,z];T=H,z=Q;break}case"YMD":{const Q=T;T=L,L=Q;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${T}.${z}.${L}`;break;case"dash":G=`${T}-${z}-${L}`;break;case"gaps":G=`${T} - ${z} - ${L}`;break;case"slashes":G=`${T}/${z}/${L}`;break}n(G)}else{const S=me.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Xb(g.getDate()):g.getDate(),A=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",x=g.toLocaleDateString(S,{month:"long"}),T=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${x} ${C}, ${T}${A?`, ${A}`:""}`;break;case"YMD":z=`${T} ${x} ${C}${A?`, ${A}`:""}`;break;default:z=`${C} ${x} ${T}${A?`, ${A}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},lv=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},b2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=lv();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=lv();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function En(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const y2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.default),l=y.useRef(null),d=y.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),A=1-Math.pow(1-C,3),x=p+(h-p)*A,T=Math.round(x/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,T),u(T),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),je(me.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,onKeyDown:Qo(c),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});y2.displayName="SliderComponent";const k2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),uv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Ci=o=>localStorage.getItem(o)==="true",w2=()=>{const[o,n]=y.useState(uv),u=y.useMemo(()=>({time:Ci("time")&&w.jsx(KA,{}),greeting:Ci("greeting")&&w.jsx(WA,{}),date:Ci("date")&&w.jsx(v2,{}),quicklinks:Ci("quicklinksenabled")?w.jsx(hy,{}):null,message:Ci("message")&&w.jsx(b2,{})}),[o]);return y.useEffect(()=>{const l=d=>{d==="widgets"&&n(uv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(k2,{children:[o.map((l,d)=>w.jsx(y.Fragment,{children:Object.hasOwn(u,l)?u[l]:null},d)),Ci("taskBox")&&w.jsx(ux,{}),Ci("recentChats")&&w.jsx(cx,{})]})};var El={exports:{}},Go={},um={exports:{}},dm,dv;function S2(){if(dv)return dm;dv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dm=o,dm}var cm,cv;function M2(){if(cv)return cm;cv=1;var o=S2();function n(){}function u(){}return u.resetWarningCache=n,cm=function(){function l(f,p,h,k,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},cm}var mv;function _y(){return mv||(mv=1,um.exports=M2()()),um.exports}var Dl={exports:{}},ya={},jl={exports:{}},pv;function vy(){return pv||(pv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function k(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(k)}o.exports=n.default})(jl,jl.exports)),jl.exports}var fv;function C2(){if(fv)return ya;fv=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.resetState=f,ya.log=p,ya.handleBlur=h,ya.handleFocus=k,ya.markForFocusLater=_,ya.returnFocus=g,ya.popWithoutFocus=b,ya.setupScopedFocus=S,ya.teardownScopedFocus=C;var o=vy(),n=u(o);function u(A){return A&&A.__esModule?A:{default:A}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var A=(0,n.default)(d)[0]||d;A.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=null;try{l.length!==0&&(x=l.pop(),x.focus({preventScroll:A}));return}catch{console.warn(["You tried to return focus to",x,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(A){d=A,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ya}var Ol={exports:{}},gv;function A2(){return gv||(gv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=vy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var k=(0,l.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var A=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),x=A!=null&&A[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(x){var T=k.indexOf(C);if(T>-1&&(T+=g?-1:1),_=k[T],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Ol,Ol.exports)),Ol.exports}var Ea={},mm,hv;function x2(){if(hv)return mm;hv=1;var o=function(){};return mm=o,mm}var Ya={},pm={exports:{}};var _v;function z2(){return _v||(_v=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(pm)),pm.exports}var vv;function Km(){if(vv)return Ya;vv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=z2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var bv;function by(){if(bv)return Ea;bv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=k,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=x2(),n=l(o),u=Km();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var A=document.querySelectorAll(C);p(A,C),C=A}return d=C||d,d}function k(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function g(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function b(){d=null}return Ea}var Ai={},yv;function T2(){if(yv)return Ai;yv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(k,_){k.classList.remove(_)}function l(){var k=document.getElementsByTagName("html")[0];for(var _ in o)u(k,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Mn={},kv;function yy(){if(kv)return Mn;kv=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.log=l,Mn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Mn.default=u,Mn}var Es={},wv;function N2(){if(wv)return Es;wv=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.resetState=f,Es.log=p;var o=yy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function k(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),Es}var Sv;function E2(){return Sv||(Sv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(X[N]=I[N])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var N=0;N<I.length;N++){var K=I[N];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,N){return I&&X(Y.prototype,I),N&&X(Y,N),Y}})(),c=Zs(),f=_y(),p=Q(f),h=C2(),k=G(h),_=A2(),g=Q(_),b=by(),S=G(b),C=T2(),A=G(C),x=Km(),T=Q(x),z=yy(),L=Q(z);N2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Q(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var N=j(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return N.setOverlayRef=function(K){N.overlay=K,N.props.overlayRef&&N.props.overlayRef(K)},N.setContentRef=function(K){N.content=K,N.props.contentRef&&N.props.contentRef(K)},N.afterClose=function(){var K=N.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ae=K.bodyOpenClassName,Ve=K.parentSelector,D=Ve&&Ve().ownerDocument||document;Ae&&A.remove(D.body,Ae),ye&&A.remove(D.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),N.props.shouldFocusAfterRender&&(N.props.shouldReturnFocusAfterClose?(k.returnFocus(N.props.preventScroll),k.teardownScopedFocus()):k.popWithoutFocus()),N.props.onAfterClose&&N.props.onAfterClose(),L.default.deregister(N)},N.open=function(){N.beforeOpen(),N.state.afterOpen&&N.state.beforeClose?(clearTimeout(N.closeTimer),N.setState({beforeClose:!1})):(N.props.shouldFocusAfterRender&&(k.setupScopedFocus(N.node),k.markForFocusLater()),N.setState({isOpen:!0},function(){N.openAnimationFrame=requestAnimationFrame(function(){N.setState({afterOpen:!0}),N.props.isOpen&&N.props.onAfterOpen&&N.props.onAfterOpen({overlayEl:N.overlay,contentEl:N.content})})}))},N.close=function(){N.props.closeTimeoutMS>0?N.closeWithTimeout():N.closeWithoutTimeout()},N.focusContent=function(){return N.content&&!N.contentHasFocus()&&N.content.focus({preventScroll:!0})},N.closeWithTimeout=function(){var K=Date.now()+N.props.closeTimeoutMS;N.setState({beforeClose:!0,closesAt:K},function(){N.closeTimer=setTimeout(N.closeWithoutTimeout,N.state.closesAt-Date.now())})},N.closeWithoutTimeout=function(){N.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},N.afterClose)},N.handleKeyDown=function(K){$(K)&&(0,g.default)(N.content,K),N.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),N.requestClose(K))},N.handleOverlayOnClick=function(K){N.shouldClose===null&&(N.shouldClose=!0),N.shouldClose&&N.props.shouldCloseOnOverlayClick&&(N.ownerHandlesClose()?N.requestClose(K):N.focusContent()),N.shouldClose=null},N.handleContentOnMouseUp=function(){N.shouldClose=!1},N.handleOverlayOnMouseDown=function(K){!N.props.shouldCloseOnOverlayClick&&K.target==N.overlay&&K.preventDefault()},N.handleContentOnClick=function(){N.shouldClose=!1},N.handleContentOnMouseDown=function(){N.shouldClose=!1},N.requestClose=function(K){return N.ownerHandlesClose()&&N.props.onRequestClose(K)},N.ownerHandlesClose=function(){return N.props.onRequestClose},N.shouldBeClosed=function(){return!N.state.isOpen&&!N.state.beforeClose},N.contentHasFocus=function(){return document.activeElement===N.content||N.content.contains(document.activeElement)},N.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return N.state.afterOpen&&(ye=ye+" "+ne.afterOpen),N.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},N.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},N.state={afterOpen:!1,beforeClose:!1},N.shouldClose=null,N.moveFromContentToOverlay=null,N}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(N,K){this.props.isOpen&&!N.isOpen?this.open():!this.props.isOpen&&N.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var N=this.props,K=N.appElement,ie=N.ariaHideApp,ne=N.htmlOpenClassName,ye=N.bodyOpenClassName,Ae=N.parentSelector,Ve=Ae&&Ae().ownerDocument||document;ye&&A.add(Ve.body,ye),ne&&A.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var N=this.props,K=N.id,ie=N.className,ne=N.overlayClassName,ye=N.defaultStyles,Ae=N.children,Ve=ie?{}:ye.content,D=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},D,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ae);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(T.default),p.default.instanceOf(x.SafeHTMLCollection),p.default.instanceOf(x.SafeNodeList),p.default.arrayOf(p.default.instanceOf(T.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(Dl,Dl.exports)),Dl.exports}function ky(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function wy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function Sy(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}ky.__suppressDeprecationWarning=!0;wy.__suppressDeprecationWarning=!0;Sy.__suppressDeprecationWarning=!0;function D2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
+ `,document.head.appendChild(d)}localStorage.getItem("applinks")===null&&localStorage.setItem("applinks",JSON.stringify([])),localStorage.getItem("appsEnabled")===null&&localStorage.setItem("showWelcome",!1)}function u2(){const o=Object.keys(localStorage);if(o.length===0)return zm();const n={};o.forEach(u=>{n[u]=localStorage.getItem(u)}),localStorage.clear(),zm(),Object.keys(n).forEach(u=>{localStorage.setItem(u,n[u])})}function d2({modalClose:o}){const n=async()=>{me.stats.postEvent("setting","Reset");try{await Fb()}catch(u){console.error("Could not clear the uploaded backgrounds, reset cancelled:",u),je(me.getMessage("toasts.error"));return}zm("reset"),window.location.reload()};return w.jsxs("div",{className:"smallModal",children:[w.jsxs("div",{className:"shareHeader",children:[w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.title")}),w.jsx(ht,{title:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),children:w.jsx("div",{className:"close",role:"button",tabIndex:0,"aria-label":me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel"),onClick:o,onKeyDown:Qo(o),children:w.jsx(Ps,{})})})]}),w.jsx("span",{className:"title",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.question")}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.settings.sections.advanced.reset_modal.information")}),w.jsxs("div",{className:"resetFooter",children:[w.jsx(Gs,{type:"secondary",onClick:o,icon:w.jsx(Ps,{}),label:me.getMessage("modals.main.settings.sections.advanced.reset_modal.cancel")}),w.jsx(Gs,{type:"settings",onClick:()=>n(),icon:w.jsx(HC,{}),label:me.getMessage("modals.main.settings.buttons.reset")})]})]})}const ON=y.memo(d2),nv={[Wo.SETTINGS]:{itemCount:16,dividerPositions:[10,12],textWidths:[80,100,70,90,85,75,80,95,90,75,85,90,85,80,70,95]},[Wo.DISCOVER]:{itemCount:5,dividerPositions:[0],textWidths:[60,95,95,110,90]},[Wo.LIBRARY]:{itemCount:0,dividerPositions:[],textWidths:[]}},c2=({currentTab:o=Wo.SETTINGS})=>{const n=nv[o]||nv[Wo.SETTINGS];return n.itemCount===0?null:w.jsx("div",{className:"sidebarSkeleton",children:Array.from({length:n.itemCount}).map((u,l)=>{const d=n.dividerPositions.includes(l),c=n.textWidths[l]||80;return w.jsxs("div",{children:[w.jsxs("div",{className:"skeletonItem",children:[w.jsx("div",{className:"iconPlaceholder pulse"}),w.jsx("div",{className:"textPlaceholder pulse",style:{width:`${c}px`}})]}),d&&w.jsx("hr",{className:"skeletonDivider"})]},l)})})},m2=({currentTab:o})=>w.jsxs("div",{style:{display:"flex",width:"100%",minHeight:"100%"},children:[w.jsx("div",{className:"modalSidebar",children:w.jsx(c2,{currentTab:o})}),w.jsx("div",{className:"modalTabContent",children:w.jsx("div",{className:"emptyItems",children:w.jsx("div",{className:"emptyMessage",children:w.jsxs("div",{className:"loaderHolder",children:[w.jsx("div",{id:"loader"}),w.jsx("span",{className:"subtitle",children:me.getMessage("modals.main.loading")})]})})})})]}),p2=""+new URL("webbrain-rEIJfo36.png",import.meta.url).href;function f2({currentTab:o,currentSection:n,currentSectionName:u,currentSubSection:l,onSubSectionChange:d,onClose:c,onBack:f,onForward:p,canGoBack:h,canGoForward:k}){const _=Zo(),g=lA.find(({tab:A})=>A===o),b=g?_(g.messageKey):"",S=(A,x)=>{if(!A||!x)return A;const T=`modals.main.settings.sections.${x}.${A}.title`,z=_(T);return!z||z===T?A.charAt(0).toUpperCase()+A.slice(1):z},C=[];return b&&(C.push({label:b,onClick:null}),n&&(C.push({label:n,onClick:l?()=>d(null,u):null}),l&&C.push({label:S(l,u),onClick:null}))),w.jsxs("div",{className:"modalTopBar",children:[w.jsxs("div",{className:"topBarLeft",children:[w.jsxs("div",{className:"navigationButtons",children:[w.jsx(ht,{title:"Back",children:w.jsx("button",{className:"navButton",onClick:f,disabled:!h,"aria-label":"Navigate back",children:w.jsx(EC,{})})},"backTooltip"),w.jsx(ht,{title:"Forward",children:w.jsx("button",{className:"navButton",onClick:p,disabled:!k,"aria-label":"Navigate forward",children:w.jsx(Lb,{})})},"forwardTooltip")]}),w.jsx("img",{src:p2,alt:"WebBrain",className:"topBarLogo",draggable:!1}),C.length>0&&w.jsx("nav",{className:"breadcrumbs","aria-label":"Breadcrumb navigation",children:C.map((A,x)=>{const T=x===C.length-1,z=A.onClick!==null;return w.jsxs("span",{className:"breadcrumb-segment",children:[z?w.jsx("span",{className:"breadcrumb-item breadcrumb-clickable",onClick:A.onClick,onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),A.onClick())},role:"button",tabIndex:0,"aria-label":`Navigate to ${A.label}`,children:A.label}):w.jsx("span",{className:`breadcrumb-item ${T?"breadcrumb-current":""}`,"aria-current":T?"page":void 0,children:A.label}),!T&&w.jsx(NC,{className:"breadcrumb-separator","aria-hidden":"true"})]},x)})})]}),w.jsx("div",{className:"topBarRight",children:w.jsx(ht,{title:_("modals.welcome.buttons.close"),children:w.jsx("button",{type:"button",className:"closeModal",onClick:c,"aria-label":_("modals.welcome.buttons.close"),children:w.jsx(Ps,{})})},"closeTooltip")})]})}const g2=y.lazy(()=>Hm(()=>import("./Settings-9hHATwdq.js"),__vite__mapDeps([1,2]),import.meta.url));function h2({modalClose:o,deepLinkData:n}){const u=Wo.SETTINGS,[l,d]=y.useState(""),[c,f]=y.useState(""),[p,h]=y.useState(n?.subSection||null),[k,_]=y.useState(null);y.useEffect(()=>{n?.section&&(_({type:"settings-section",data:n.section,timestamp:Date.now()}),n.subSection&&h(n.subSection))},[n]),y.useEffect(()=>()=>{window.location.hash&&window.history.replaceState(null,null,window.location.pathname)},[]),y.useEffect(()=>{const S=()=>{const C=window.location.hash?js(window.location.hash):null;C?.section?(_({type:"settings-section",data:C.section,timestamp:Date.now()}),h(C.subSection||null)):window.location.hash?C&&(_({type:"settings-default",timestamp:Date.now()}),h(null)):o?.()};return window.addEventListener("popstate",S),()=>window.removeEventListener("popstate",S)},[o]);const g=(S,C,{fromHistory:A=!1}={})=>{d(S),f(C),!A&&(h(null),C&&Gl(`#${u}/${C}`,!1))},b=(S,C)=>{h(S),C&&Gl(S?`#${u}/${C}/${S}`:`#${u}/${C}`)};return w.jsxs("div",{className:"frame",children:[w.jsx(f2,{currentTab:u,currentSection:l,currentSectionName:c,currentSubSection:p,onSubSectionChange:b,onClose:o,onBack:()=>window.history.back(),onForward:()=>window.history.forward(),canGoBack:!0,canGoForward:!0}),w.jsx("div",{style:{flex:1,display:"flex",overflow:"hidden",minHeight:0},children:w.jsx(y.Suspense,{fallback:w.jsx(m2,{currentTab:u}),children:w.jsx(g2,{currentTab:u,changeTab:()=>{},deepLinkData:n,onSectionChange:g,onSubSectionChange:b,currentSubSection:p,navigationTrigger:k},u)})})]})}const _2=y.memo(h2),sv=["#3b6ea8","#2f8f83","#a85a3b","#7a4fa3","#a38a2f","#b0425b","#4a7f3a","#456b8f"];function gy(o,n=""){let u;try{u=new URL(o).hostname.replace(/^www\./,"")}catch{u=String(o||"")}const l=(n||u||"?").trim(),d=(Array.from(l)[0]||"?").toUpperCase().replace(/[&<>"']/g,"?");let c=0;for(const h of u)c=c*31+h.charCodeAt(0)>>>0;const p=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="${sv[c%sv.length]}"/><text x="32" y="43" font-family="sans-serif" font-size="32" font-weight="600" text-anchor="middle" fill="#fff">${d}</text></svg>`;return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`}const rv=()=>{try{const o=localStorage.getItem("quicklinks");if(!o)return[];const n=JSON.parse(o);return Array.isArray(n)?n:[]}catch(o){return console.warn("Failed to parse quicklinks from localStorage. Resetting to []",o),[]}},hy=y.memo(()=>{const[o,n]=y.useState(rv()),[u,l]=y.useState(0),d=y.useRef(null),c=y.useCallback(_=>{if(!_)return;const g=localStorage.getItem("zoomQuicklinks")||100;for(const b of _.getElementsByTagName("span"))b.style.fontSize=`${14*Number(g/100)}px`;if(localStorage.getItem("quickLinksStyle")!=="text")for(const b of _.getElementsByTagName("img"))b.style.height=`${30*Number(g/100)}px`},[]);y.useEffect(()=>{const _=g=>{if(g==="quicklinks"){if(localStorage.getItem("quicklinksenabled")==="false"){d.current&&(d.current.style.display="none");return}d.current&&(d.current.style.display="flex"),n(rv()),l(Date.now())}};return _e.on("refresh",_),c(d.current),()=>{_e.off("refresh",_)}},[c]),y.useEffect(()=>{c(d.current)},[o,u,c]);let f,p=null;localStorage.getItem("quicklinksnewtab")==="true"&&(f="_blank",p="noopener noreferrer");const h=localStorage.getItem("quicklinkstooltip"),k=(_,g)=>{if(localStorage.getItem("quickLinksStyle")==="text")return w.jsx("a",{className:"quicklinkstext",href:_.url,target:f,rel:p,draggable:!1,children:_.name},`quicklink-${_.key}-${g}`);const b=_.icon||gy(_.url,_.name);if(localStorage.getItem("quickLinksStyle")==="metro")return w.jsxs("a",{className:"quickLinksMetro",href:_.url,target:f,rel:p,draggable:!1,children:[w.jsx("img",{src:b,alt:_.name,draggable:!1}),w.jsx("span",{className:"subtitle",children:_.name})]},`quicklink-${_.key}-${g}`);const S=w.jsx("a",{href:_.url,target:f,rel:p,draggable:!1,children:w.jsx("img",{src:b,alt:_.name,draggable:!1})},`quicklink-${_.key}-${g}`);return h==="true"?w.jsx(ht,{title:_.name,placement:"bottom",children:S},`quicklink-${_.key}-${g}`):S};return w.jsx("div",{className:"quicklinkscontainer",ref:d,children:o&&o.map((_,g)=>k(_,g))})});hy.displayName="QuickLinks";const v2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState(null),[d,c]=y.useState("block"),[f,p]=y.useState("1em"),h=y.useRef(),k=g=>{const b=new Date(g.valueOf()),S=(b.getDay()+6)%7;b.setDate(b.getDate()-S+3);const C=b.valueOf();b.setMonth(0,1),b.getDay()!==4&&b.setMonth(0,1+(4-b.getDay()+7)%7),l(`${me.getMessage("widgets.date.week")} ${1+Math.ceil((C-b)/6048e5)}`)},_=()=>{let g=new Date;const b=localStorage.getItem("timezone");if(b&&b!=="auto"&&(g=Fm(g,b)),localStorage.getItem("weeknumber")==="true"?k(g):l(null),localStorage.getItem("dateType")==="short"){const S=g.getDate(),C=g.getMonth()+1,A=g.getFullYear(),x=localStorage.getItem("datezero")==="true";let T=x?("00"+S).slice(-2):S,z=x?("00"+C).slice(-2):C,L=A;switch(localStorage.getItem("dateFormat")){case"MDY":{const[Q,H]=[T,z];T=H,z=Q;break}case"YMD":{const Q=T;T=L,L=Q;break}}let G;switch(localStorage.getItem("shortFormat")){case"dots":G=`${T}.${z}.${L}`;break;case"dash":G=`${T}-${z}-${L}`;break;case"gaps":G=`${T} - ${z} - ${L}`;break;case"slashes":G=`${T}/${z}/${L}`;break}n(G)}else{const S=me.languagecode.split("_")[0],C=localStorage.getItem("datenth")==="true"?Xb(g.getDate()):g.getDate(),A=localStorage.getItem("dayofweek")==="true"?g.toLocaleDateString(S,{weekday:"long"}):"",x=g.toLocaleDateString(S,{month:"long"}),T=g.getFullYear();let z;switch(localStorage.getItem("longFormat")){case"MDY":z=`${x} ${C}, ${T}${A?`, ${A}`:""}`;break;case"YMD":z=`${T} ${x} ${C}${A?`, ${A}`:""}`;break;default:z=`${C} ${x} ${T}${A?`, ${A}`:""}`;break}n(z)}};return y.useEffect(()=>{const g=S=>{if(S==="date"||S==="timezone"){if(localStorage.getItem("date")==="false"){c("none");return}c("block"),p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_()}};p(`${Number((localStorage.getItem("zoomDate")||100)/100)}em`),_();const b=setInterval(_,6e4);return _e.on("refresh",g),()=>{clearInterval(b),_e.off("refresh",g)}},[]),w.jsxs("span",{className:"date",ref:h,style:{display:d,fontSize:f},children:[o,w.jsx("br",{}),u]})},lv=()=>{try{const o=JSON.parse(localStorage.getItem("messages"));return Array.isArray(o)?o.filter(n=>typeof n=="string"&&n!==""):[]}catch{return[]}},b2=()=>{const[o,n]=y.useState(""),[u,l]=y.useState("none"),[d,c]=y.useState("1em"),f=y.useRef();return y.useEffect(()=>{const p=k=>{if(k==="message"){const _=lv();n(S=>_.includes(S)?S:_.length>0?_[Math.floor(Math.random()*_.length)]:"");const g=localStorage.getItem("message"),b=localStorage.getItem("zoomMessage");l(g==="false"||_.length===0?"none":"block"),c(`${1*Number((b||100)/100)}em`)}},h=lv();return h.length>0&&(n(h[Math.floor(Math.random()*h.length)]),l("block")),_e.on("refresh",p),()=>{_e.off("refresh",p)}},[]),w.jsx("h2",{className:"message",ref:f,style:{display:u,fontSize:d},children:o.split(/\r?\n/).map(p=>w.jsxs("span",{children:[p,w.jsx("br",{})]},p))})};function En(){localStorage.setItem("showReminder",!0);const o=document.querySelector(".reminder-info");o&&(o.style.display="flex"),_e.emit("reminder")}const y2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.default),l=y.useRef(null),d=y.useCallback(p=>{let h=p.target.value;if(h=Number(h),h>o.max&&(h=o.max),h<o.min&&(h=o.min),localStorage.setItem(o.name,h),u(h),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[o]),c=y.useCallback(()=>{l.current&&cancelAnimationFrame(l.current);const p=Number(n),h=Number(o.default||0),k=300,_=performance.now(),g=b=>{const S=b-_,C=Math.min(S/k,1),A=1-Math.pow(1-C,3),x=p+(h-p)*A,T=Math.round(x/(Number(o.step)||1))*(Number(o.step)||1);localStorage.setItem(o.name,T),u(T),C<1?l.current=requestAnimationFrame(g):(localStorage.setItem(o.name,h),u(h),_e.emit("refresh",o.category))};l.current=requestAnimationFrame(g),je(me.getMessage("toasts.reset"))},[n,o]),f=(Number(n)-Number(o.min))/(Number(o.max)-Number(o.min))*100;return w.jsxs("div",{className:"slider-container",children:[w.jsxs("div",{className:"slider-header",children:[w.jsx("span",{className:"slider-value",children:Number(n)}),w.jsxs("span",{className:"slider-reset",onClick:c,onKeyDown:Qo(c),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"slider-wrapper",children:[w.jsx("input",{type:"range",className:"slider-input",value:Number(n),onChange:d,min:Number(o.min),max:Number(o.max),step:Number(o.step)||1,style:{"--slider-percentage":`${f}%`},"aria-label":o.title,"aria-valuemin":Number(o.min),"aria-valuemax":Number(o.max),"aria-valuenow":Number(n),disabled:o.disabled||!1}),o.marks&&o.marks.length>0&&w.jsx("div",{className:"slider-marks",children:o.marks.map(p=>w.jsx("span",{className:"slider-mark",style:{left:`${(p.value-Number(o.min))/(Number(o.max)-Number(o.min))*100}%`},children:p.label},p.value))})]})]})});y2.displayName="SliderComponent";const k2=({children:o})=>w.jsx("div",{id:"widgets",children:o}),uv=()=>{try{const o=JSON.parse(localStorage.getItem("order"));return Array.isArray(o)?o:[]}catch{return[]}},Ci=o=>localStorage.getItem(o)==="true",w2=()=>{const[o,n]=y.useState(uv),u=y.useMemo(()=>({time:Ci("time")&&w.jsx(KA,{}),greeting:Ci("greeting")&&w.jsx(WA,{}),date:Ci("date")&&w.jsx(v2,{}),quicklinks:Ci("quicklinksenabled")?w.jsx(hy,{}):null,message:Ci("message")&&w.jsx(b2,{})}),[o]);return y.useEffect(()=>{const l=d=>{d==="widgets"&&n(uv())};return _e.on("refresh",l),()=>{_e.off("refresh",l)}},[]),w.jsxs(k2,{children:[o.map((l,d)=>w.jsx(y.Fragment,{children:Object.hasOwn(u,l)?u[l]:null},d)),Ci("taskBox")&&w.jsx(ux,{}),Ci("recentChats")&&w.jsx(cx,{})]})};var El={exports:{}},Go={},um={exports:{}},dm,dv;function S2(){if(dv)return dm;dv=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dm=o,dm}var cm,cv;function M2(){if(cv)return cm;cv=1;var o=S2();function n(){}function u(){}return u.resetWarningCache=n,cm=function(){function l(f,p,h,k,_,g){if(g!==o){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}l.isRequired=l;function d(){return l}var c={array:l,bigint:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:d,element:l,elementType:l,instanceOf:d,node:l,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:u,resetWarningCache:n};return c.PropTypes=c,c},cm}var mv;function _y(){return mv||(mv=1,um.exports=M2()()),um.exports}var Dl={exports:{}},ya={},jl={exports:{}},pv;function vy(){return pv||(pv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=_;var u="none",l="contents",d=/^(input|select|textarea|button|object|iframe)$/;function c(g,b){return b.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function f(g){var b=g.offsetWidth<=0&&g.offsetHeight<=0;if(b&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),C=S.getPropertyValue("display");return b?C!==l&&c(g,S):C===u}catch{return console.warn("Failed to inspect element style"),!1}}function p(g){for(var b=g,S=g.getRootNode&&g.getRootNode();b&&b!==document.body;){if(S&&b===S&&(b=S.host.parentNode),f(b))return!1;b=b.parentNode}return!0}function h(g,b){var S=g.nodeName.toLowerCase(),C=d.test(S)&&!g.disabled||S==="a"&&g.href||b;return C&&p(g)}function k(g){var b=g.getAttribute("tabindex");b===null&&(b=void 0);var S=isNaN(b);return(S||b>=0)&&h(g,!S)}function _(g){var b=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,C){return S.concat(C.shadowRoot?_(C.shadowRoot):[C])},[]);return b.filter(k)}o.exports=n.default})(jl,jl.exports)),jl.exports}var fv;function C2(){if(fv)return ya;fv=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.resetState=f,ya.log=p,ya.handleBlur=h,ya.handleFocus=k,ya.markForFocusLater=_,ya.returnFocus=g,ya.popWithoutFocus=b,ya.setupScopedFocus=S,ya.teardownScopedFocus=C;var o=vy(),n=u(o);function u(A){return A&&A.__esModule?A:{default:A}}var l=[],d=null,c=!1;function f(){l=[]}function p(){}function h(){c=!0}function k(){if(c){if(c=!1,!d)return;setTimeout(function(){if(!d.contains(document.activeElement)){var A=(0,n.default)(d)[0]||d;A.focus()}},0)}}function _(){l.push(document.activeElement)}function g(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=null;try{l.length!==0&&(x=l.pop(),x.focus({preventScroll:A}));return}catch{console.warn(["You tried to return focus to",x,"but it is not in the DOM anymore"].join(" "))}}function b(){l.length>0&&l.pop()}function S(A){d=A,window.addEventListener?(window.addEventListener("blur",h,!1),document.addEventListener("focus",k,!0)):(window.attachEvent("onBlur",h),document.attachEvent("onFocus",k))}function C(){d=null,window.addEventListener?(window.removeEventListener("blur",h),document.removeEventListener("focus",k)):(window.detachEvent("onBlur",h),document.detachEvent("onFocus",k))}return ya}var Ol={exports:{}},gv;function A2(){return gv||(gv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var u=vy(),l=d(u);function d(p){return p&&p.__esModule?p:{default:p}}function c(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return p.activeElement.shadowRoot?c(p.activeElement.shadowRoot):p.activeElement}function f(p,h){var k=(0,l.default)(p);if(!k.length){h.preventDefault();return}var _=void 0,g=h.shiftKey,b=k[0],S=k[k.length-1],C=c();if(p===C){if(!g)return;_=S}if(S===C&&!g&&(_=b),b===C&&g&&(_=S),_){h.preventDefault(),_.focus();return}var A=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),x=A!=null&&A[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(x){var T=k.indexOf(C);if(T>-1&&(T+=g?-1:1),_=k[T],typeof _>"u"){h.preventDefault(),_=g?S:b,_.focus();return}h.preventDefault(),_.focus()}}o.exports=n.default})(Ol,Ol.exports)),Ol.exports}var Ea={},mm,hv;function x2(){if(hv)return mm;hv=1;var o=function(){};return mm=o,mm}var Ya={},pm={exports:{}};var _v;function z2(){return _v||(_v=1,(function(o){(function(){var n=!!(typeof window<"u"&&window.document&&window.document.createElement),u={canUseDOM:n,canUseWorkers:typeof Worker<"u",canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen};o.exports?o.exports=u:window.ExecutionEnvironment=u})()})(pm)),pm.exports}var vv;function Km(){if(vv)return Ya;vv=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.canUseDOM=Ya.SafeNodeList=Ya.SafeHTMLCollection=void 0;var o=z2(),n=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var l=n.default,d=l.canUseDOM?window.HTMLElement:{};return Ya.SafeHTMLCollection=l.canUseDOM?window.HTMLCollection:{},Ya.SafeNodeList=l.canUseDOM?window.NodeList:{},Ya.canUseDOM=l.canUseDOM,Ya.default=d,Ya}var bv;function by(){if(bv)return Ea;bv=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.resetState=c,Ea.log=f,Ea.assertNodeList=p,Ea.setElement=h,Ea.validateElement=k,Ea.hide=_,Ea.show=g,Ea.documentNotReadyOrSSRTesting=b;var o=x2(),n=l(o),u=Km();function l(S){return S&&S.__esModule?S:{default:S}}var d=null;function c(){d&&(d.removeAttribute?d.removeAttribute("aria-hidden"):d.length!=null?d.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(d).forEach(function(S){return S.removeAttribute("aria-hidden")})),d=null}function f(){}function p(S,C){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+C+".")}function h(S){var C=S;if(typeof C=="string"&&u.canUseDOM){var A=document.querySelectorAll(C);p(A,C),C=A}return d=C||d,d}function k(S){var C=S||d;return C?Array.isArray(C)||C instanceof HTMLCollection||C instanceof NodeList?C:[C]:((0,n.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function _(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.setAttribute("aria-hidden","true")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function g(S){var C=!0,A=!1,x=void 0;try{for(var T=k(S)[Symbol.iterator](),z;!(C=(z=T.next()).done);C=!0){var L=z.value;L.removeAttribute("aria-hidden")}}catch(G){A=!0,x=G}finally{try{!C&&T.return&&T.return()}finally{if(A)throw x}}}function b(){d=null}return Ea}var Ai={},yv;function T2(){if(yv)return Ai;yv=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.resetState=l,Ai.log=d;var o={},n={};function u(k,_){k.classList.remove(_)}function l(){var k=document.getElementsByTagName("html")[0];for(var _ in o)u(k,o[_]);var g=document.body;for(var b in n)u(g,n[b]);o={},n={}}function d(){}var c=function(_,g){return _[g]||(_[g]=0),_[g]+=1,g},f=function(_,g){return _[g]&&(_[g]-=1),g},p=function(_,g,b){b.forEach(function(S){c(g,S),_.add(S)})},h=function(_,g,b){b.forEach(function(S){f(g,S),g[S]===0&&_.remove(S)})};return Ai.add=function(_,g){return p(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai.remove=function(_,g){return h(_.classList,_.nodeName.toLowerCase()=="html"?o:n,g.split(" "))},Ai}var Mn={},kv;function yy(){if(kv)return Mn;kv=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.log=l,Mn.resetState=d;function o(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}var n=function c(){var f=this;o(this,c),this.register=function(p){f.openInstances.indexOf(p)===-1&&(f.openInstances.push(p),f.emit("register"))},this.deregister=function(p){var h=f.openInstances.indexOf(p);h!==-1&&(f.openInstances.splice(h,1),f.emit("deregister"))},this.subscribe=function(p){f.subscribers.push(p)},this.emit=function(p){f.subscribers.forEach(function(h){return h(p,f.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},u=new n;function l(){console.log("portalOpenInstances ----------"),console.log(u.openInstances.length),u.openInstances.forEach(function(c){return console.log(c)}),console.log("end portalOpenInstances ----------")}function d(){u=new n}return Mn.default=u,Mn}var Es={},wv;function N2(){if(wv)return Es;wv=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.resetState=f,Es.log=p;var o=yy(),n=u(o);function u(_){return _&&_.__esModule?_:{default:_}}var l=void 0,d=void 0,c=[];function f(){for(var _=[l,d],g=0;g<_.length;g++){var b=_[g];b&&b.parentNode&&b.parentNode.removeChild(b)}l=d=null,c=[]}function p(){console.log("bodyTrap ----------"),console.log(c.length);for(var _=[l,d],g=0;g<_.length;g++){var b=_[g],S=b||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function h(){c.length!==0&&c[c.length-1].focusContent()}function k(_,g){!l&&!d&&(l=document.createElement("div"),l.setAttribute("data-react-modal-body-trap",""),l.style.position="absolute",l.style.opacity="0",l.setAttribute("tabindex","0"),l.addEventListener("focus",h),d=l.cloneNode(),d.addEventListener("focus",h)),c=g,c.length>0?(document.body.firstChild!==l&&document.body.insertBefore(l,document.body.firstChild),document.body.lastChild!==d&&document.body.appendChild(d)):(l.parentElement&&l.parentElement.removeChild(l),d.parentElement&&d.parentElement.removeChild(d))}return n.default.subscribe(k),Es}var Sv;function E2(){return Sv||(Sv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(X){for(var Y=1;Y<arguments.length;Y++){var I=arguments[Y];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(X[N]=I[N])}return X},l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},d=(function(){function X(Y,I){for(var N=0;N<I.length;N++){var K=I[N];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(Y,K.key,K)}}return function(Y,I,N){return I&&X(Y.prototype,I),N&&X(Y,N),Y}})(),c=Zs(),f=_y(),p=Q(f),h=C2(),k=G(h),_=A2(),g=Q(_),b=by(),S=G(b),C=T2(),A=G(C),x=Km(),T=Q(x),z=yy(),L=Q(z);N2();function G(X){if(X&&X.__esModule)return X;var Y={};if(X!=null)for(var I in X)Object.prototype.hasOwnProperty.call(X,I)&&(Y[I]=X[I]);return Y.default=X,Y}function Q(X){return X&&X.__esModule?X:{default:X}}function H(X,Y){if(!(X instanceof Y))throw new TypeError("Cannot call a class as a function")}function j(X,Y){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:X}function q(X,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);X.prototype=Object.create(Y&&Y.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(X,Y):X.__proto__=Y)}var V={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},$=function(Y){return Y.code==="Tab"||Y.keyCode===9},W=function(Y){return Y.code==="Escape"||Y.keyCode===27},ee=0,ae=(function(X){q(Y,X);function Y(I){H(this,Y);var N=j(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,I));return N.setOverlayRef=function(K){N.overlay=K,N.props.overlayRef&&N.props.overlayRef(K)},N.setContentRef=function(K){N.content=K,N.props.contentRef&&N.props.contentRef(K)},N.afterClose=function(){var K=N.props,ie=K.appElement,ne=K.ariaHideApp,ye=K.htmlOpenClassName,Ae=K.bodyOpenClassName,Ve=K.parentSelector,D=Ve&&Ve().ownerDocument||document;Ae&&A.remove(D.body,Ae),ye&&A.remove(D.getElementsByTagName("html")[0],ye),ne&&ee>0&&(ee-=1,ee===0&&S.show(ie)),N.props.shouldFocusAfterRender&&(N.props.shouldReturnFocusAfterClose?(k.returnFocus(N.props.preventScroll),k.teardownScopedFocus()):k.popWithoutFocus()),N.props.onAfterClose&&N.props.onAfterClose(),L.default.deregister(N)},N.open=function(){N.beforeOpen(),N.state.afterOpen&&N.state.beforeClose?(clearTimeout(N.closeTimer),N.setState({beforeClose:!1})):(N.props.shouldFocusAfterRender&&(k.setupScopedFocus(N.node),k.markForFocusLater()),N.setState({isOpen:!0},function(){N.openAnimationFrame=requestAnimationFrame(function(){N.setState({afterOpen:!0}),N.props.isOpen&&N.props.onAfterOpen&&N.props.onAfterOpen({overlayEl:N.overlay,contentEl:N.content})})}))},N.close=function(){N.props.closeTimeoutMS>0?N.closeWithTimeout():N.closeWithoutTimeout()},N.focusContent=function(){return N.content&&!N.contentHasFocus()&&N.content.focus({preventScroll:!0})},N.closeWithTimeout=function(){var K=Date.now()+N.props.closeTimeoutMS;N.setState({beforeClose:!0,closesAt:K},function(){N.closeTimer=setTimeout(N.closeWithoutTimeout,N.state.closesAt-Date.now())})},N.closeWithoutTimeout=function(){N.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},N.afterClose)},N.handleKeyDown=function(K){$(K)&&(0,g.default)(N.content,K),N.props.shouldCloseOnEsc&&W(K)&&(K.stopPropagation(),N.requestClose(K))},N.handleOverlayOnClick=function(K){N.shouldClose===null&&(N.shouldClose=!0),N.shouldClose&&N.props.shouldCloseOnOverlayClick&&(N.ownerHandlesClose()?N.requestClose(K):N.focusContent()),N.shouldClose=null},N.handleContentOnMouseUp=function(){N.shouldClose=!1},N.handleOverlayOnMouseDown=function(K){!N.props.shouldCloseOnOverlayClick&&K.target==N.overlay&&K.preventDefault()},N.handleContentOnClick=function(){N.shouldClose=!1},N.handleContentOnMouseDown=function(){N.shouldClose=!1},N.requestClose=function(K){return N.ownerHandlesClose()&&N.props.onRequestClose(K)},N.ownerHandlesClose=function(){return N.props.onRequestClose},N.shouldBeClosed=function(){return!N.state.isOpen&&!N.state.beforeClose},N.contentHasFocus=function(){return document.activeElement===N.content||N.content.contains(document.activeElement)},N.buildClassName=function(K,ie){var ne=(typeof ie>"u"?"undefined":l(ie))==="object"?ie:{base:V[K],afterOpen:V[K]+"--after-open",beforeClose:V[K]+"--before-close"},ye=ne.base;return N.state.afterOpen&&(ye=ye+" "+ne.afterOpen),N.state.beforeClose&&(ye=ye+" "+ne.beforeClose),typeof ie=="string"&&ie?ye+" "+ie:ye},N.attributesFromObject=function(K,ie){return Object.keys(ie).reduce(function(ne,ye){return ne[K+"-"+ye]=ie[ye],ne},{})},N.state={afterOpen:!1,beforeClose:!1},N.shouldClose=null,N.moveFromContentToOverlay=null,N}return d(Y,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(N,K){this.props.isOpen&&!N.isOpen?this.open():!this.props.isOpen&&N.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!K.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var N=this.props,K=N.appElement,ie=N.ariaHideApp,ne=N.htmlOpenClassName,ye=N.bodyOpenClassName,Ae=N.parentSelector,Ve=Ae&&Ae().ownerDocument||document;ye&&A.add(Ve.body,ye),ne&&A.add(Ve.getElementsByTagName("html")[0],ne),ie&&(ee+=1,S.hide(K)),L.default.register(this)}},{key:"render",value:function(){var N=this.props,K=N.id,ie=N.className,ne=N.overlayClassName,ye=N.defaultStyles,Ae=N.children,Ve=ie?{}:ye.content,D=ne?{}:ye.overlay;if(this.shouldBeClosed())return null;var te={ref:this.setOverlayRef,className:this.buildClassName("overlay",ne),style:u({},D,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},se=u({id:K,ref:this.setContentRef,style:u({},Ve,this.props.style.content),className:this.buildClassName("content",ie),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",u({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),ce=this.props.contentElement(se,Ae);return this.props.overlayElement(te,ce)}}]),Y})(c.Component);ae.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},ae.propTypes={isOpen:p.default.bool.isRequired,defaultStyles:p.default.shape({content:p.default.object,overlay:p.default.object}),style:p.default.shape({content:p.default.object,overlay:p.default.object}),className:p.default.oneOfType([p.default.string,p.default.object]),overlayClassName:p.default.oneOfType([p.default.string,p.default.object]),parentSelector:p.default.func,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,ariaHideApp:p.default.bool,appElement:p.default.oneOfType([p.default.instanceOf(T.default),p.default.instanceOf(x.SafeHTMLCollection),p.default.instanceOf(x.SafeNodeList),p.default.arrayOf(p.default.instanceOf(T.default))]),onAfterOpen:p.default.func,onAfterClose:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,role:p.default.string,contentLabel:p.default.string,aria:p.default.object,data:p.default.object,children:p.default.node,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func,testId:p.default.string},n.default=ae,o.exports=n.default})(Dl,Dl.exports)),Dl.exports}function ky(){var o=this.constructor.getDerivedStateFromProps(this.props,this.state);o!=null&&this.setState(o)}function wy(o){function n(u){var l=this.constructor.getDerivedStateFromProps(o,u);return l??null}this.setState(n.bind(this))}function Sy(o,n){try{var u=this.props,l=this.state;this.props=o,this.state=n,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(u,l)}finally{this.props=u,this.state=l}}ky.__suppressDeprecationWarning=!0;wy.__suppressDeprecationWarning=!0;Sy.__suppressDeprecationWarning=!0;function D2(o){var n=o.prototype;if(!n||!n.isReactComponent)throw new Error("Can only polyfill class components");if(typeof o.getDerivedStateFromProps!="function"&&typeof n.getSnapshotBeforeUpdate!="function")return o;var u=null,l=null,d=null;if(typeof n.componentWillMount=="function"?u="componentWillMount":typeof n.UNSAFE_componentWillMount=="function"&&(u="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps=="function"?l="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps=="function"&&(l="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate=="function"?d="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate=="function"&&(d="UNSAFE_componentWillUpdate"),u!==null||l!==null||d!==null){var c=o.displayName||o.name,f=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
`+c+" uses "+f+" but also contains the following legacy lifecycles:"+(u!==null?`
`+u:"")+(l!==null?`
@@ -861,8 +861,8 @@ Note: if you don't like "{category}" images, you can deselect the category in th
`+d:"")+`
The above lifecycles should be removed. Learn more about this warning here:
-https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(n.componentWillMount=ky,n.componentWillReceiveProps=wy),typeof n.getSnapshotBeforeUpdate=="function"){if(typeof n.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");n.componentWillUpdate=Sy;var p=n.componentDidUpdate;n.componentDidUpdate=function(k,_,g){var b=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:g;p.call(this,k,_,b)}}return o}const j2=Object.freeze(Object.defineProperty({__proto__:null,polyfill:D2},Symbol.toStringTag,{value:"Module"})),O2=qS(j2);var Mv;function q2(){if(Mv)return Go;Mv=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.bodyOpenClassName=Go.portalClassName=void 0;var o=Object.assign||function(W){for(var ee=1;ee<arguments.length;ee++){var ae=arguments[ee];for(var X in ae)Object.prototype.hasOwnProperty.call(ae,X)&&(W[X]=ae[X])}return W},n=(function(){function W(ee,ae){for(var X=0;X<ae.length;X++){var Y=ae[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(ee,Y.key,Y)}}return function(ee,ae,X){return ae&&W(ee.prototype,ae),X&&W(ee,X),ee}})(),u=Zs(),l=x(u),d=qm(),c=x(d),f=_y(),p=x(f),h=E2(),k=x(h),_=by(),g=A(_),b=Km(),S=x(b),C=O2;function A(W){if(W&&W.__esModule)return W;var ee={};if(W!=null)for(var ae in W)Object.prototype.hasOwnProperty.call(W,ae)&&(ee[ae]=W[ae]);return ee.default=W,ee}function x(W){return W&&W.__esModule?W:{default:W}}function T(W,ee){if(!(W instanceof ee))throw new TypeError("Cannot call a class as a function")}function z(W,ee){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:W}function L(W,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);W.prototype=Object.create(ee&&ee.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(W,ee):W.__proto__=ee)}var G=Go.portalClassName="ReactModalPortal",Q=Go.bodyOpenClassName="ReactModal__Body--open",H=b.canUseDOM&&c.default.createPortal!==void 0,j=function(ee){return document.createElement(ee)},q=function(){return H?c.default.createPortal:c.default.unstable_renderSubtreeIntoContainer};function V(W){return W()}var $=(function(W){L(ee,W);function ee(){var ae,X,Y,I;T(this,ee);for(var N=arguments.length,K=Array(N),ie=0;ie<N;ie++)K[ie]=arguments[ie];return I=(X=(Y=z(this,(ae=ee.__proto__||Object.getPrototypeOf(ee)).call.apply(ae,[this].concat(K))),Y),Y.removePortal=function(){!H&&c.default.unmountComponentAtNode(Y.node);var ne=V(Y.props.parentSelector);ne&&ne.contains(Y.node)?ne.removeChild(Y.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},Y.portalRef=function(ne){Y.portal=ne},Y.renderPortal=function(ne){var ye=q(),Ae=ye(Y,l.default.createElement(k.default,o({defaultStyles:ee.defaultStyles},ne)),Y.node);Y.portalRef(Ae)},X),z(Y,I)}return n(ee,[{key:"componentDidMount",value:function(){if(b.canUseDOM){H||(this.node=j("div")),this.node.className=this.props.portalClassName;var X=V(this.props.parentSelector);X.appendChild(this.node),!H&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(X){var Y=V(X.parentSelector),I=V(this.props.parentSelector);return{prevParent:Y,nextParent:I}}},{key:"componentDidUpdate",value:function(X,Y,I){if(b.canUseDOM){var N=this.props,K=N.isOpen,ie=N.portalClassName;X.portalClassName!==ie&&(this.node.className=ie);var ne=I.prevParent,ye=I.nextParent;ye!==ne&&(ne.removeChild(this.node),ye.appendChild(this.node)),!(!X.isOpen&&!K)&&!H&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!b.canUseDOM||!this.node||!this.portal)){var X=this.portal.state,Y=Date.now(),I=X.isOpen&&this.props.closeTimeoutMS&&(X.closesAt||Y+this.props.closeTimeoutMS);I?(X.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,I-Y)):this.removePortal()}}},{key:"render",value:function(){if(!b.canUseDOM||!H)return null;!this.node&&H&&(this.node=j("div"));var X=q();return X(l.default.createElement(k.default,o({ref:this.portalRef,defaultStyles:ee.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(X){g.setElement(X)}}]),ee})(u.Component);return $.propTypes={isOpen:p.default.bool.isRequired,style:p.default.shape({content:p.default.object,overlay:p.default.object}),portalClassName:p.default.string,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,className:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),overlayClassName:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),appElement:p.default.oneOfType([p.default.instanceOf(S.default),p.default.instanceOf(b.SafeHTMLCollection),p.default.instanceOf(b.SafeNodeList),p.default.arrayOf(p.default.instanceOf(S.default))]),onAfterOpen:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,ariaHideApp:p.default.bool,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,parentSelector:p.default.func,aria:p.default.object,data:p.default.object,role:p.default.string,contentLabel:p.default.string,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func},$.defaultProps={isOpen:!1,portalClassName:G,bodyOpenClassName:Q,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(ee,ae){return l.default.createElement("div",ee,ae)},contentElement:function(ee,ae){return l.default.createElement("div",ee,ae)}},$.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,C.polyfill)($),Go.default=$,Go}var Cv;function R2(){return Cv||(Cv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=q2(),l=d(u);function d(c){return c&&c.__esModule?c:{default:c}}n.default=l.default,o.exports=n.default})(El,El.exports)),El.exports}var B2=R2();const L2=Om(B2),I2=({appsRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const[c,f]=y.useState(JSON.parse(localStorage.getItem("applinks"))),[p,h]=y.useState(localStorage.getItem("appsPinned")==="true"?"visible":"hidden"),[k,_]=y.useState(localStorage.getItem("refresh")==="false"?"-200px":"-130px"),[g,b]=y.useState(localStorage.getItem("appsPinned")==="true"),[S,C]=y.useState("1.2rem"),A=()=>{C(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};y.useEffect(()=>{const L=G=>{if(G==="navbar"){f(JSON.parse(localStorage.getItem("applinks")));try{A()}catch{}}};return A(),_e.on("refresh",L),()=>{_e.off("refresh",L)}},[]);const x=()=>{b(!0)},T=()=>{b(localStorage.getItem("appsPinned")==="true")},z=c;return w.jsxs("div",{className:"notes",onMouseLeave:T,onFocus:x,onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||T()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:x,onFocus:x,"aria-label":me.getMessage("widgets.navbar.apps.title"),ref:o,style:{fontSize:S},children:w.jsx(P_,{className:"topicons"})}),g&&w.jsxs("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:[w.jsx("div",{className:"flexTodo",children:w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(P_,{}),w.jsx("span",{children:me.getMessage("widgets.navbar.apps.title")})]})}),z.length>0?w.jsx("div",{className:"appsShortcutContainer",children:z.map((L,G)=>w.jsx(ht,{title:L.name.split(" ")[0],subtitle:L.name.split(" ").slice(1).join(" "),children:w.jsxs("a",{href:L.url,className:"appsIcon",children:[w.jsx("img",{src:L.icon===""?gy(L.url,L.name):L.icon,width:"40px",height:"40px",alt:"Google"}),w.jsx("span",{children:L.name})]})},G))}):w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:me.language.getMessage(me.languagecode,"widgets.navbar.apps.no_apps")})]})})]})]})};function U2(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(I2,{appsRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const P2=y.memo(U2),H2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${c?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=y.useCallback(c=>{(c.key===" "||c.key==="Enter")&&!o.disabled&&(c.preventDefault(),l())},[l,o.disabled]);return w.jsxs("div",{className:`checkbox-wrapper ${o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"checkbox-label",children:o.text}),w.jsx("input",{type:"checkbox",name:o.name,checked:n,onChange:l,disabled:o.disabled||!1,className:"checkbox-input","aria-label":o.text,onKeyDown:d}),w.jsx("div",{className:`checkbox-box ${n?"checked":""}`,children:n&&w.jsx(Bm,{})})]})});H2.displayName="Checkbox";function F2({label:o,options:n,onChange:u}){let l=(localStorage.getItem("apiCategories")||"").split(",");l[0]===""&&(l=[]);const[d,c]=y.useState(l),[f,p]=y.useState(!1),h=y.useRef(null);y.useEffect(()=>{const g=b=>{h.current&&!h.current.contains(b.target)&&p(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const k=g=>{let b;d.includes(g)?b=d.filter(S=>S!==g):b=[...d,g],c(b),localStorage.setItem("apiCategories",b.join(",")),u&&u(b)},_=(g,b)=>{g.stopPropagation(),k(b)};return w.jsxs("div",{className:"chipSelect",ref:h,children:[o&&w.jsx("label",{className:"chipSelect-label",children:o}),w.jsxs("div",{className:"chipSelect-control",onClick:()=>p(!f),onKeyDown:Qo(()=>p(!f)),role:"combobox","aria-haspopup":"listbox","aria-expanded":f,"aria-label":o||void 0,tabIndex:0,children:[w.jsx("div",{className:"chipSelect-value",children:d.length===0?w.jsx("span",{className:"chipSelect-placeholder",children:"Select options..."}):w.jsx("div",{className:"chipSelect-chips",children:d.map(g=>w.jsxs("span",{className:"chipSelect-chip",children:[g.charAt(0).toUpperCase()+g.slice(1),w.jsx("button",{type:"button",className:"chipSelect-chip-remove","aria-label":`Remove ${g}`,onClick:b=>_(b,g),children:w.jsx(Ps,{})})]},g))})}),w.jsx(Bb,{className:`chipSelect-arrow ${f?"open":""}`})]}),f&&w.jsx("div",{className:"chipSelect-dropdown",role:"listbox","aria-multiselectable":"true",children:n.map(g=>w.jsxs("div",{className:`chipSelect-option ${d.includes(g.name)?"selected":""}`,onClick:()=>k(g.name),onKeyDown:Qo(()=>k(g.name)),role:"option","aria-selected":d.includes(g.name),tabIndex:0,children:[w.jsx("span",{className:"chipSelect-option-checkbox",children:d.includes(g.name)&&"✓"}),w.jsxs("span",{className:"chipSelect-option-label",children:[g.name.charAt(0).toUpperCase()+g.name.slice(1),g.count&&` (${g.count})`]})]},g.name))})]})}y.memo(F2);const V2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.items[0]?.value),[l,d]=y.useState(!1),[c,f]=y.useState(-1),p=y.useRef(null),h=y.useRef([]);y.useEffect(()=>{const x=T=>{p.current&&!p.current.contains(T.target)&&(d(!1),f(-1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const k=y.useCallback(x=>{if(x!==me.getMessage("modals.main.loading")){if(me.stats.postEvent("setting",`${o.name} from ${n} to ${x}`),u(x),d(!1),f(-1),o.noSetting||(localStorage.setItem(o.name,x),o.name2!==void 0&&o.name2!==null&&localStorage.setItem(o.name2,o.value2)),o.onChange&&o.onChange(x),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[n,o]),_=y.useCallback(x=>{if(!o.disabled)switch(x.key){case"Enter":case" ":{x.preventDefault();const T=l&&c>=0?o.items.filter(z=>z!==null)[c]:null;T?k(T.value):d(!l);break}case"Escape":d(!1),f(-1);break;case"ArrowDown":x.preventDefault(),l?f(T=>T<o.items.filter(z=>z!==null).length-1?T+1:T):d(!0);break;case"ArrowUp":x.preventDefault(),l&&f(T=>T>0?T-1:T);break}},[l,c,k,o.items,o.disabled]),g=y.useCallback((x,T)=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),k(T.value))},[k]),b=y.useCallback(()=>{const x=o.default||o.items[0]?.value;k(x),je(me.getMessage("toasts.reset"))},[k,o.default,o.items]),S="dropdown"+o.name,C=o.label||"",A=o.items.find(x=>x?.value===n);return w.jsxs("div",{className:`dropdown ${S} ${o.disabled?"disabled":""}`,ref:p,children:[C&&w.jsxs("div",{className:"dropdown-header",children:[w.jsx("label",{className:"dropdown-label",children:C}),w.jsxs("span",{className:"dropdown-reset",onClick:b,onKeyDown:Qo(b),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"dropdown-control",onClick:()=>!o.disabled&&d(!l),onKeyDown:_,role:"button","aria-haspopup":"listbox","aria-expanded":l,"aria-label":C||o.name,tabIndex:o.disabled?-1:0,children:[w.jsx("span",{className:"dropdown-value",children:A?.text||n}),w.jsx(Bb,{className:`dropdown-arrow ${l?"open":""}`})]}),l&&w.jsx("div",{className:"dropdown-menu",role:"listbox",children:o.items.map((x,T)=>x!==null?w.jsxs("div",{ref:z=>h.current[T]=z,className:`dropdown-option ${n===x.value?"selected":""} ${T===c?"focused":""}`,onClick:()=>k(x.value),onKeyDown:z=>g(z,x),role:"option","aria-selected":n===x.value,tabIndex:0,children:[w.jsx("span",{className:"dropdown-option-text",children:x.text}),n===x.value&&w.jsx(Bm,{className:"dropdown-option-check"})]},S+x.value):null)})]})});V2.displayName="Dropdown";var Ul={exports:{}},G2=Ul.exports,Av;function K2(){return Av||(Av=1,(function(o,n){(function(u,l){o.exports=l()})(G2,(function(){return(function(u){var l={};function d(c){if(l[c])return l[c].exports;var f=l[c]={i:c,l:!1,exports:{}};return u[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}return d.m=u,d.c=l,d.d=function(c,f,p){d.o(c,f)||Object.defineProperty(c,f,{enumerable:!0,get:p})},d.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},d.t=function(c,f){if(1&f&&(c=d(c)),8&f||4&f&&typeof c=="object"&&c&&c.__esModule)return c;var p=Object.create(null);if(d.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:c}),2&f&&typeof c!="string")for(var h in c)d.d(p,h,function(k){return c[k]}.bind(null,h));return p},d.n=function(c){var f=c&&c.__esModule?function(){return c.default}:function(){return c};return d.d(f,"a",f),f},d.o=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)},d.p="",d(d.s=0)})([function(u,l,d){var c;function f(H){return["image/png","image/jpeg","image/gif"].some(j=>j===H)}d.r(l),d.d(l,"canvastoDataURL",(function(){return h})),d.d(l,"canvastoFile",(function(){return k})),d.d(l,"dataURLtoFile",(function(){return g})),d.d(l,"dataURLtoImage",(function(){return b})),d.d(l,"downloadFile",(function(){return S})),d.d(l,"filetoDataURL",(function(){return C})),d.d(l,"imagetoCanvas",(function(){return x})),d.d(l,"urltoBlob",(function(){return T})),d.d(l,"urltoImage",(function(){return z})),d.d(l,"compress",(function(){return G})),d.d(l,"compressAccurately",(function(){return Q})),d.d(l,"EImageType",(function(){return c})),(function(H){H.PNG="image/png",H.JPEG="image/jpeg",H.GIF="image/gif"})(c||(c={}));var p=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function h(H,j=.92,q=c.JPEG){return p(this,void 0,void 0,(function*(){return f(q)||(q=c.JPEG),H.toDataURL(q,j)}))}function k(H,j=.92,q=c.JPEG){return new Promise(V=>H.toBlob($=>V($),q,j))}var _=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function g(H,j){return _(this,void 0,void 0,(function*(){const q=H.split(",");let V=q[0].match(/:(.*?);/)[1];const $=atob(q[1]);let W=$.length;const ee=new Uint8Array(W);for(;W--;)ee[W]=$.charCodeAt(W);return f(j)&&(V=j),new Blob([ee],{type:V})}))}function b(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("dataURLtoImage(): dataURL is illegal")),V.src=H})}function S(H,j){const q=document.createElement("a");q.href=window.URL.createObjectURL(H),q.download=j||Date.now().toString(36),document.body.appendChild(q);const V=document.createEvent("MouseEvents");V.initEvent("click",!1,!1),q.dispatchEvent(V),document.body.removeChild(q)}function C(H){return new Promise(j=>{const q=new FileReader;q.onloadend=V=>j(V.target.result),q.readAsDataURL(H)})}var A=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function x(H,j={}){return A(this,void 0,void 0,(function*(){const q=Object.assign({},j),V=document.createElement("canvas"),$=V.getContext("2d");let W,ee;for(const ae in q)Object.prototype.hasOwnProperty.call(q,ae)&&(q[ae]=Number(q[ae]));if(q.scale){const ae=q.scale>0&&q.scale<10?q.scale:1;ee=H.width*ae,W=H.height*ae}else ee=q.width||q.height*H.width/H.height||H.width,W=q.height||q.width*H.height/H.width||H.height;switch([5,6,7,8].some(ae=>ae===q.orientation)?(V.height=ee,V.width=W):(V.height=W,V.width=ee),q.orientation){case 3:$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 6:$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 8:$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;case 2:$.translate(V.width,0),$.scale(-1,1),$.drawImage(H,0,0,V.width,V.height);break;case 4:$.translate(V.width,0),$.scale(-1,1),$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 5:$.translate(V.width,0),$.scale(-1,1),$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 7:$.translate(V.width,0),$.scale(-1,1),$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;default:$.drawImage(H,0,0,V.width,V.height)}return V}))}function T(H){return fetch(H).then(j=>j.blob())}function z(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("urltoImage(): Image failed to load, please check the image URL")),V.src=H})}var L=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function G(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compress(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({quality:j})),j.quality=Number(j.quality),Number.isNaN(j.quality))return H;const q=yield C(H);let V=q.split(",")[0].match(/:(.*?);/)[1],$=c.JPEG;f(j.type)&&($=j.type,V=j.type);const W=yield b(q),ee=yield x(W,Object.assign({},j)),ae=yield h(ee,j.quality,$),X=yield g(ae,V);return X.size>H.size?H:X}))}function Q(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({size:j})),j.size=Number(j.size),Number.isNaN(j.size)||1024*j.size>H.size)return H;j.accuracy=Number(j.accuracy),(!j.accuracy||j.accuracy<.8||j.accuracy>.99)&&(j.accuracy=.95);const q=j.size*(2-j.accuracy)*1024,V=1024*j.size,$=j.size*j.accuracy*1024,W=yield C(H);let ee=W.split(",")[0].match(/:(.*?);/)[1],ae=c.JPEG;f(j.type)&&(ae=j.type,ee=j.type);const X=yield b(W),Y=yield x(X,Object.assign({},j));let I,N=.5;const K=[null,null];for(let ne=1;ne<=7;ne++){I=yield h(Y,N,ae);const ye=.75*I.length;if(ne===7){(q<ye||$>ye)&&(I=[I,...K].filter(Ae=>Ae).sort((Ae,Ve)=>Math.abs(.75*Ae.length-V)-Math.abs(.75*Ve.length-V))[0]);break}if(q<ye)K[1]=I,N-=Math.pow(.5,ne+1);else{if(!($>ye))break;K[0]=I,N+=Math.pow(.5,ne+1)}}const ie=yield g(I,ee);return ie.size>H.size?H:ie}))}}])}))})(Ul)),Ul.exports}var fm,xv;function Y2(){return xv||(xv=1,fm=K2()),fm}var zv=Y2();const W2=y.memo(({id:o,type:n,accept:u,loadFunction:l,multiple:d})=>(y.useEffect(()=>{const c=document.getElementById(o);if(!c)return;const f=p=>{const h=Array.from(p.target.files);if(p.target.value="",h.length!==0)if(n==="settings"){const k=new FileReader,_=h[0];k.readAsText(_,"UTF-8"),k.onload=g=>l(g.target.result)}else if(typeof l=="function"&&l.length===1)l(h);else{const k={};Object.keys(localStorage).forEach(g=>{k[g]=localStorage.getItem(g)});const _=new TextEncoder().encode(JSON.stringify(k)).length;h.forEach((g,b)=>{if(Im(g.type)===!0)return _+g.size>485e4?je(me.getMessage("toasts.no_storage")):l(g,b);zv.compressAccurately(g,{size:450,accuracy:.9}).then(async S=>{if(_+S.size>485e4)return je(me.getMessage("toasts.no_storage"));l({target:{result:await zv.filetoDataURL(S)}},b)})})}};return c.onchange=f,()=>{c&&(c.onchange=null)}},[o,n,l,d]),w.jsx("input",{id:o,type:"file",style:{display:"none"},accept:u,multiple:d!==void 0?d:n!=="settings"})));W2.displayName="FileUpload";const Q2=y.memo(o=>{const{changeLanguage:n}=Ob(),[u,l]=y.useState(localStorage.getItem(o.name)),d=y.useCallback(async c=>{if(c!=="loading"){if(o.name==="language"){n(c),l(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.onChange&&o.onChange(c),_e.emit("refresh",o.category);return}if(localStorage.setItem(o.name,c),l(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[u,o,n]);return w.jsxs("div",{className:"radio-group",children:[o.title&&w.jsx("legend",{className:o.smallTitle?"radio-title-small":"radio-title",children:o.title}),w.jsx("div",{className:"radio-options",role:"radiogroup","aria-label":o.name,children:o.options.map(c=>w.jsxs("label",{className:`radio-option ${u===c.value?"selected":""} ${c.disabled||o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"radio-label",children:c.name}),w.jsx("input",{type:"radio",name:o.name,value:c.value,checked:u===c.value,onChange:()=>d(c.value),disabled:c.disabled||o.disabled||!1,className:"radio-input","aria-label":c.name,tabIndex:0}),w.jsx("div",{className:"radio-circle",children:u===c.value&&w.jsx("div",{className:"radio-dot"})})]},c.value))})]})});Q2.displayName="Radio";const Z2=y.memo(({value:o,onChange:n,placeholder:u,fullWidth:l})=>w.jsxs("div",{className:`search-input-container${l?" full-width":""}`,children:[w.jsx(Lm,{className:"search-input-icon"}),w.jsx("input",{type:"text",className:"search-input-field",value:o,onChange:n,placeholder:u})]}));Z2.displayName="SearchInput";const X2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${n?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=o.text||o.title||o.name;return w.jsxs("div",{className:"switch-wrapper",children:[!o.header&&w.jsx("span",{className:"switch-label",children:o.text}),w.jsx("div",{className:`switch-track ${n?"checked":""}`,onClick:l,"aria-hidden":"true",children:w.jsx("div",{className:"switch-thumb"})}),w.jsx("input",{type:"checkbox",role:"switch",name:o.name,checked:n,onChange:l,className:"switch-input","aria-label":d})]})});X2.displayName="Switch";const J2=y.memo(o=>{const{name:n,upperCaseFirst:u,element:l,category:d,onChange:c,title:f,textarea:p,customcss:h,placeholder:k}=o,_=o.default,[g,b]=y.useState(localStorage.getItem(n)||""),S=y.useCallback(A=>{let x=A.target.value;if(u===!0&&(x=x.charAt(0).toUpperCase()+x.slice(1)),localStorage.setItem(n,x),b(x),c&&c(x),l&&!document.querySelector(l)){En();return}_e.emit("refresh",d)},[n,u,l,d,c]),C=y.useCallback(()=>{S({target:{value:_||""}}),je(me.getMessage("toasts.reset"))},[S,_]);return w.jsx("div",{className:"text-field-container",children:p===!0?w.jsxs("div",{className:`text-field ${h?"customcss":""}`,children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("textarea",{value:g,onChange:S,spellCheck:!1,rows:4,className:"text-field-textarea"})]}):w.jsxs("div",{className:"text-field",children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("input",{type:"text",value:g,onChange:S,placeholder:k||"",className:"text-field-input"})]})})});J2.displayName="Text";const Ym=y.memo(({value:o,onChange:n,placeholder:u,minRows:l=1,maxRows:d,className:c,style:f,readOnly:p})=>{const h=y.useRef(null),k=y.useCallback(()=>{const _=h.current;if(!_)return;_.style.height="auto";const g=window.getComputedStyle(_),b=parseInt(g.lineHeight)||24,S=parseInt(g.paddingTop)||0,C=parseInt(g.paddingBottom)||0,A=l*b+S+C,x=d?d*b+S+C:1/0,T=Math.min(Math.max(_.scrollHeight,A),x);_.style.height=`${T}px`},[l,d]);return y.useEffect(()=>{k()},[o,k]),y.useEffect(()=>(k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]),w.jsx("textarea",{ref:h,className:`textarea-autosize${c?` ${c}`:""}`,value:o,onChange:n,placeholder:u,style:f,readOnly:p,rows:l})});Ym.displayName="Textarea";const $2=({notesRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const c=Zo(),[f,p]=y.useState(localStorage.getItem("notes")||""),[h,k]=y.useState(localStorage.getItem("notesPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const z=L=>{L==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",z),()=>{_e.off("refresh",z)}},[]);const b=z=>{localStorage.setItem("notes",z.target.value),p(z.target.value)},S=()=>{k(!0)},C=()=>{k(localStorage.getItem("notesPinned")==="true")},A=()=>{me.stats.postEvent("feature","Notes pin");const z=localStorage.getItem("notesPinned")==="true";localStorage.setItem("notesPinned",!z),k(!z)},x=()=>{me.stats.postEvent("feature","Notes copied"),navigator.clipboard.writeText(f),je(c("toasts.notes"))},T=()=>{!f||f===""||(me.stats.postEvent("feature","Notes download"),l2(f,"mue-notes.txt","text/plain"))};return w.jsxs("div",{className:"notes",onMouseLeave:C,onFocus:S,onBlur:z=>{z.currentTarget.contains(z.relatedTarget)||C()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:S,onFocus:S,ref:o,style:{fontSize:_},"aria-label":c("widgets.navbar.notes.title"),children:w.jsx(U_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44",left:l??""},children:w.jsxs("div",{className:"flexNotes",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(U_,{}),w.jsx("span",{children:c("widgets.navbar.notes.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:A,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.quote.copy"),children:w.jsx("button",{onClick:x,disabled:f==="","aria-label":c("widgets.quote.copy"),children:w.jsx(IC,{})})}),w.jsx(ht,{title:c("widgets.background.download"),children:w.jsx("button",{onClick:T,disabled:f==="","aria-label":c("widgets.background.download"),children:w.jsx(qC,{})})})]}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:f,onChange:b,minRows:5})]})})]})};function ez(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx($2,{notesRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const tz=y.memo(ez);function az(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>l=>{n.forEach(d=>d(l))},n)}const hu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dn(o){const n=Object.prototype.toString.call(o);return n==="[object Window]"||n==="[object global]"}function Wm(o){return"nodeType"in o}function Qt(o){var n,u;return o?Dn(o)?o:Wm(o)&&(n=(u=o.ownerDocument)==null?void 0:u.defaultView)!=null?n:window:window}function Qm(o){const{Document:n}=Qt(o);return o instanceof n}function er(o){return Dn(o)?!1:o instanceof Qt(o).HTMLElement}function My(o){return o instanceof Qt(o).SVGElement}function jn(o){return o?Dn(o)?o.document:Wm(o)?Qm(o)?o:er(o)||My(o)?o.ownerDocument:document:document:document}const Za=hu?y.useLayoutEffect:y.useEffect;function Zm(o){const n=y.useRef(o);return Za(()=>{n.current=o}),y.useCallback(function(){for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return n.current==null?void 0:n.current(...l)},[])}function oz(){const o=y.useRef(null),n=y.useCallback((l,d)=>{o.current=setInterval(l,d)},[]),u=y.useCallback(()=>{o.current!==null&&(clearInterval(o.current),o.current=null)},[]);return[n,u]}function Ks(o,n){n===void 0&&(n=[o]);const u=y.useRef(o);return Za(()=>{u.current!==o&&(u.current=o)},n),u}function tr(o,n){const u=y.useRef();return y.useMemo(()=>{const l=o(u.current);return u.current=l,l},[...n])}function Jl(o){const n=Zm(o),u=y.useRef(null),l=y.useCallback(d=>{d!==u.current&&n?.(d,u.current),u.current=d},[]);return[u,l]}function Tm(o){const n=y.useRef();return y.useEffect(()=>{n.current=o},[o]),n.current}let gm={};function ar(o,n){return y.useMemo(()=>{if(n)return n;const u=gm[o]==null?0:gm[o]+1;return gm[o]=u,o+"-"+u},[o,n])}function Cy(o){return function(n){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return l.reduce((c,f)=>{const p=Object.entries(f);for(const[h,k]of p){const _=c[h];_!=null&&(c[h]=_+o*k)}return c},{...n})}}const zn=Cy(1),Ys=Cy(-1);function iz(o){return"clientX"in o&&"clientY"in o}function Xm(o){if(!o)return!1;const{KeyboardEvent:n}=Qt(o.target);return n&&o instanceof n}function nz(o){if(!o)return!1;const{TouchEvent:n}=Qt(o.target);return n&&o instanceof n}function Nm(o){if(nz(o)){if(o.touches&&o.touches.length){const{clientX:n,clientY:u}=o.touches[0];return{x:n,y:u}}else if(o.changedTouches&&o.changedTouches.length){const{clientX:n,clientY:u}=o.changedTouches[0];return{x:n,y:u}}}return iz(o)?{x:o.clientX,y:o.clientY}:null}const Ws=Object.freeze({Translate:{toString(o){if(!o)return;const{x:n,y:u}=o;return"translate3d("+(n?Math.round(n):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(o){if(!o)return;const{scaleX:n,scaleY:u}=o;return"scaleX("+n+") scaleY("+u+")"}},Transform:{toString(o){if(o)return[Ws.Translate.toString(o),Ws.Scale.toString(o)].join(" ")}},Transition:{toString(o){let{property:n,duration:u,easing:l}=o;return n+" "+u+"ms "+l}}}),Tv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function sz(o){return o.matches(Tv)?o:o.querySelector(Tv)}const rz={display:"none"};function lz(o){let{id:n,value:u}=o;return ve.createElement("div",{id:n,style:rz},u)}function uz(o){let{id:n,announcement:u,ariaLiveType:l="assertive"}=o;const d={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ve.createElement("div",{id:n,style:d,role:"status","aria-live":l,"aria-atomic":!0},u)}function dz(){const[o,n]=y.useState("");return{announce:y.useCallback(l=>{l!=null&&n(l)},[]),announcement:o}}const Ay=y.createContext(null);function cz(o){const n=y.useContext(Ay);y.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(o)},[o,n])}function mz(){const[o]=y.useState(()=>new Set),n=y.useCallback(l=>(o.add(l),()=>o.delete(l)),[o]);return[y.useCallback(l=>{let{type:d,event:c}=l;o.forEach(f=>{var p;return(p=f[d])==null?void 0:p.call(f,c)})},[o]),n]}const pz={draggable:`
+https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof o.getDerivedStateFromProps=="function"&&(n.componentWillMount=ky,n.componentWillReceiveProps=wy),typeof n.getSnapshotBeforeUpdate=="function"){if(typeof n.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");n.componentWillUpdate=Sy;var p=n.componentDidUpdate;n.componentDidUpdate=function(k,_,g){var b=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:g;p.call(this,k,_,b)}}return o}const j2=Object.freeze(Object.defineProperty({__proto__:null,polyfill:D2},Symbol.toStringTag,{value:"Module"})),O2=qS(j2);var Mv;function q2(){if(Mv)return Go;Mv=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.bodyOpenClassName=Go.portalClassName=void 0;var o=Object.assign||function(W){for(var ee=1;ee<arguments.length;ee++){var ae=arguments[ee];for(var X in ae)Object.prototype.hasOwnProperty.call(ae,X)&&(W[X]=ae[X])}return W},n=(function(){function W(ee,ae){for(var X=0;X<ae.length;X++){var Y=ae[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(ee,Y.key,Y)}}return function(ee,ae,X){return ae&&W(ee.prototype,ae),X&&W(ee,X),ee}})(),u=Zs(),l=x(u),d=qm(),c=x(d),f=_y(),p=x(f),h=E2(),k=x(h),_=by(),g=A(_),b=Km(),S=x(b),C=O2;function A(W){if(W&&W.__esModule)return W;var ee={};if(W!=null)for(var ae in W)Object.prototype.hasOwnProperty.call(W,ae)&&(ee[ae]=W[ae]);return ee.default=W,ee}function x(W){return W&&W.__esModule?W:{default:W}}function T(W,ee){if(!(W instanceof ee))throw new TypeError("Cannot call a class as a function")}function z(W,ee){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:W}function L(W,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);W.prototype=Object.create(ee&&ee.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(W,ee):W.__proto__=ee)}var G=Go.portalClassName="ReactModalPortal",Q=Go.bodyOpenClassName="ReactModal__Body--open",H=b.canUseDOM&&c.default.createPortal!==void 0,j=function(ee){return document.createElement(ee)},q=function(){return H?c.default.createPortal:c.default.unstable_renderSubtreeIntoContainer};function V(W){return W()}var $=(function(W){L(ee,W);function ee(){var ae,X,Y,I;T(this,ee);for(var N=arguments.length,K=Array(N),ie=0;ie<N;ie++)K[ie]=arguments[ie];return I=(X=(Y=z(this,(ae=ee.__proto__||Object.getPrototypeOf(ee)).call.apply(ae,[this].concat(K))),Y),Y.removePortal=function(){!H&&c.default.unmountComponentAtNode(Y.node);var ne=V(Y.props.parentSelector);ne&&ne.contains(Y.node)?ne.removeChild(Y.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},Y.portalRef=function(ne){Y.portal=ne},Y.renderPortal=function(ne){var ye=q(),Ae=ye(Y,l.default.createElement(k.default,o({defaultStyles:ee.defaultStyles},ne)),Y.node);Y.portalRef(Ae)},X),z(Y,I)}return n(ee,[{key:"componentDidMount",value:function(){if(b.canUseDOM){H||(this.node=j("div")),this.node.className=this.props.portalClassName;var X=V(this.props.parentSelector);X.appendChild(this.node),!H&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(X){var Y=V(X.parentSelector),I=V(this.props.parentSelector);return{prevParent:Y,nextParent:I}}},{key:"componentDidUpdate",value:function(X,Y,I){if(b.canUseDOM){var N=this.props,K=N.isOpen,ie=N.portalClassName;X.portalClassName!==ie&&(this.node.className=ie);var ne=I.prevParent,ye=I.nextParent;ye!==ne&&(ne.removeChild(this.node),ye.appendChild(this.node)),!(!X.isOpen&&!K)&&!H&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!b.canUseDOM||!this.node||!this.portal)){var X=this.portal.state,Y=Date.now(),I=X.isOpen&&this.props.closeTimeoutMS&&(X.closesAt||Y+this.props.closeTimeoutMS);I?(X.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,I-Y)):this.removePortal()}}},{key:"render",value:function(){if(!b.canUseDOM||!H)return null;!this.node&&H&&(this.node=j("div"));var X=q();return X(l.default.createElement(k.default,o({ref:this.portalRef,defaultStyles:ee.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(X){g.setElement(X)}}]),ee})(u.Component);return $.propTypes={isOpen:p.default.bool.isRequired,style:p.default.shape({content:p.default.object,overlay:p.default.object}),portalClassName:p.default.string,bodyOpenClassName:p.default.string,htmlOpenClassName:p.default.string,className:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),overlayClassName:p.default.oneOfType([p.default.string,p.default.shape({base:p.default.string.isRequired,afterOpen:p.default.string.isRequired,beforeClose:p.default.string.isRequired})]),appElement:p.default.oneOfType([p.default.instanceOf(S.default),p.default.instanceOf(b.SafeHTMLCollection),p.default.instanceOf(b.SafeNodeList),p.default.arrayOf(p.default.instanceOf(S.default))]),onAfterOpen:p.default.func,onRequestClose:p.default.func,closeTimeoutMS:p.default.number,ariaHideApp:p.default.bool,shouldFocusAfterRender:p.default.bool,shouldCloseOnOverlayClick:p.default.bool,shouldReturnFocusAfterClose:p.default.bool,preventScroll:p.default.bool,parentSelector:p.default.func,aria:p.default.object,data:p.default.object,role:p.default.string,contentLabel:p.default.string,shouldCloseOnEsc:p.default.bool,overlayRef:p.default.func,contentRef:p.default.func,id:p.default.string,overlayElement:p.default.func,contentElement:p.default.func},$.defaultProps={isOpen:!1,portalClassName:G,bodyOpenClassName:Q,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(ee,ae){return l.default.createElement("div",ee,ae)},contentElement:function(ee,ae){return l.default.createElement("div",ee,ae)}},$.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,C.polyfill)($),Go.default=$,Go}var Cv;function R2(){return Cv||(Cv=1,(function(o,n){Object.defineProperty(n,"__esModule",{value:!0});var u=q2(),l=d(u);function d(c){return c&&c.__esModule?c:{default:c}}n.default=l.default,o.exports=n.default})(El,El.exports)),El.exports}var B2=R2();const L2=Om(B2),I2=()=>typeof document<"u"&&document.getElementById("center")||void 0,U2=({appsRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const[c,f]=y.useState(JSON.parse(localStorage.getItem("applinks"))),[p,h]=y.useState(localStorage.getItem("appsPinned")==="true"?"visible":"hidden"),[k,_]=y.useState(localStorage.getItem("refresh")==="false"?"-200px":"-130px"),[g,b]=y.useState(localStorage.getItem("appsPinned")==="true"),[S,C]=y.useState("1.2rem"),A=()=>{C(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};y.useEffect(()=>{const L=G=>{if(G==="navbar"){f(JSON.parse(localStorage.getItem("applinks")));try{A()}catch{}}};return A(),_e.on("refresh",L),()=>{_e.off("refresh",L)}},[]);const x=()=>{b(!0)},T=()=>{b(localStorage.getItem("appsPinned")==="true")},z=c;return w.jsxs("div",{className:"notes",onMouseLeave:T,onFocus:x,onBlur:L=>{L.currentTarget.contains(L.relatedTarget)||T()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:x,onFocus:x,"aria-label":me.getMessage("widgets.navbar.apps.title"),ref:o,style:{fontSize:S},children:w.jsx(P_,{className:"topicons"})}),g&&w.jsxs("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:[w.jsx("div",{className:"flexTodo",children:w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(P_,{}),w.jsx("span",{children:me.getMessage("widgets.navbar.apps.title")})]})}),z.length>0?w.jsx("div",{className:"appsShortcutContainer",children:z.map((L,G)=>w.jsx(ht,{title:L.name.split(" ")[0],subtitle:L.name.split(" ").slice(1).join(" "),children:w.jsxs("a",{href:L.url,className:"appsIcon",children:[w.jsx("img",{src:L.icon===""?gy(L.url,L.name):L.icon,width:"40px",height:"40px",alt:"Google"}),w.jsx("span",{children:L.name})]})},G))}):w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:me.language.getMessage(me.languagecode,"widgets.navbar.apps.no_apps")})]})})]})]})};function P2(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(U2,{appsRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const H2=y.memo(P2),F2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${c?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=y.useCallback(c=>{(c.key===" "||c.key==="Enter")&&!o.disabled&&(c.preventDefault(),l())},[l,o.disabled]);return w.jsxs("div",{className:`checkbox-wrapper ${o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"checkbox-label",children:o.text}),w.jsx("input",{type:"checkbox",name:o.name,checked:n,onChange:l,disabled:o.disabled||!1,className:"checkbox-input","aria-label":o.text,onKeyDown:d}),w.jsx("div",{className:`checkbox-box ${n?"checked":""}`,children:n&&w.jsx(Bm,{})})]})});F2.displayName="Checkbox";function V2({label:o,options:n,onChange:u}){let l=(localStorage.getItem("apiCategories")||"").split(",");l[0]===""&&(l=[]);const[d,c]=y.useState(l),[f,p]=y.useState(!1),h=y.useRef(null);y.useEffect(()=>{const g=b=>{h.current&&!h.current.contains(b.target)&&p(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const k=g=>{let b;d.includes(g)?b=d.filter(S=>S!==g):b=[...d,g],c(b),localStorage.setItem("apiCategories",b.join(",")),u&&u(b)},_=(g,b)=>{g.stopPropagation(),k(b)};return w.jsxs("div",{className:"chipSelect",ref:h,children:[o&&w.jsx("label",{className:"chipSelect-label",children:o}),w.jsxs("div",{className:"chipSelect-control",onClick:()=>p(!f),onKeyDown:Qo(()=>p(!f)),role:"combobox","aria-haspopup":"listbox","aria-expanded":f,"aria-label":o||void 0,tabIndex:0,children:[w.jsx("div",{className:"chipSelect-value",children:d.length===0?w.jsx("span",{className:"chipSelect-placeholder",children:"Select options..."}):w.jsx("div",{className:"chipSelect-chips",children:d.map(g=>w.jsxs("span",{className:"chipSelect-chip",children:[g.charAt(0).toUpperCase()+g.slice(1),w.jsx("button",{type:"button",className:"chipSelect-chip-remove","aria-label":`Remove ${g}`,onClick:b=>_(b,g),children:w.jsx(Ps,{})})]},g))})}),w.jsx(Bb,{className:`chipSelect-arrow ${f?"open":""}`})]}),f&&w.jsx("div",{className:"chipSelect-dropdown",role:"listbox","aria-multiselectable":"true",children:n.map(g=>w.jsxs("div",{className:`chipSelect-option ${d.includes(g.name)?"selected":""}`,onClick:()=>k(g.name),onKeyDown:Qo(()=>k(g.name)),role:"option","aria-selected":d.includes(g.name),tabIndex:0,children:[w.jsx("span",{className:"chipSelect-option-checkbox",children:d.includes(g.name)&&"✓"}),w.jsxs("span",{className:"chipSelect-option-label",children:[g.name.charAt(0).toUpperCase()+g.name.slice(1),g.count&&` (${g.count})`]})]},g.name))})]})}y.memo(V2);const G2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)||o.items[0]?.value),[l,d]=y.useState(!1),[c,f]=y.useState(-1),p=y.useRef(null),h=y.useRef([]);y.useEffect(()=>{const x=T=>{p.current&&!p.current.contains(T.target)&&(d(!1),f(-1))};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);const k=y.useCallback(x=>{if(x!==me.getMessage("modals.main.loading")){if(me.stats.postEvent("setting",`${o.name} from ${n} to ${x}`),u(x),d(!1),f(-1),o.noSetting||(localStorage.setItem(o.name,x),o.name2!==void 0&&o.name2!==null&&localStorage.setItem(o.name2,o.value2)),o.onChange&&o.onChange(x),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[n,o]),_=y.useCallback(x=>{if(!o.disabled)switch(x.key){case"Enter":case" ":{x.preventDefault();const T=l&&c>=0?o.items.filter(z=>z!==null)[c]:null;T?k(T.value):d(!l);break}case"Escape":d(!1),f(-1);break;case"ArrowDown":x.preventDefault(),l?f(T=>T<o.items.filter(z=>z!==null).length-1?T+1:T):d(!0);break;case"ArrowUp":x.preventDefault(),l&&f(T=>T>0?T-1:T);break}},[l,c,k,o.items,o.disabled]),g=y.useCallback((x,T)=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),k(T.value))},[k]),b=y.useCallback(()=>{const x=o.default||o.items[0]?.value;k(x),je(me.getMessage("toasts.reset"))},[k,o.default,o.items]),S="dropdown"+o.name,C=o.label||"",A=o.items.find(x=>x?.value===n);return w.jsxs("div",{className:`dropdown ${S} ${o.disabled?"disabled":""}`,ref:p,children:[C&&w.jsxs("div",{className:"dropdown-header",children:[w.jsx("label",{className:"dropdown-label",children:C}),w.jsxs("span",{className:"dropdown-reset",onClick:b,onKeyDown:Qo(b),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsxs("div",{className:"dropdown-control",onClick:()=>!o.disabled&&d(!l),onKeyDown:_,role:"button","aria-haspopup":"listbox","aria-expanded":l,"aria-label":C||o.name,tabIndex:o.disabled?-1:0,children:[w.jsx("span",{className:"dropdown-value",children:A?.text||n}),w.jsx(Bb,{className:`dropdown-arrow ${l?"open":""}`})]}),l&&w.jsx("div",{className:"dropdown-menu",role:"listbox",children:o.items.map((x,T)=>x!==null?w.jsxs("div",{ref:z=>h.current[T]=z,className:`dropdown-option ${n===x.value?"selected":""} ${T===c?"focused":""}`,onClick:()=>k(x.value),onKeyDown:z=>g(z,x),role:"option","aria-selected":n===x.value,tabIndex:0,children:[w.jsx("span",{className:"dropdown-option-text",children:x.text}),n===x.value&&w.jsx(Bm,{className:"dropdown-option-check"})]},S+x.value):null)})]})});G2.displayName="Dropdown";var Ul={exports:{}},K2=Ul.exports,Av;function Y2(){return Av||(Av=1,(function(o,n){(function(u,l){o.exports=l()})(K2,(function(){return(function(u){var l={};function d(c){if(l[c])return l[c].exports;var f=l[c]={i:c,l:!1,exports:{}};return u[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}return d.m=u,d.c=l,d.d=function(c,f,p){d.o(c,f)||Object.defineProperty(c,f,{enumerable:!0,get:p})},d.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},d.t=function(c,f){if(1&f&&(c=d(c)),8&f||4&f&&typeof c=="object"&&c&&c.__esModule)return c;var p=Object.create(null);if(d.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:c}),2&f&&typeof c!="string")for(var h in c)d.d(p,h,function(k){return c[k]}.bind(null,h));return p},d.n=function(c){var f=c&&c.__esModule?function(){return c.default}:function(){return c};return d.d(f,"a",f),f},d.o=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)},d.p="",d(d.s=0)})([function(u,l,d){var c;function f(H){return["image/png","image/jpeg","image/gif"].some(j=>j===H)}d.r(l),d.d(l,"canvastoDataURL",(function(){return h})),d.d(l,"canvastoFile",(function(){return k})),d.d(l,"dataURLtoFile",(function(){return g})),d.d(l,"dataURLtoImage",(function(){return b})),d.d(l,"downloadFile",(function(){return S})),d.d(l,"filetoDataURL",(function(){return C})),d.d(l,"imagetoCanvas",(function(){return x})),d.d(l,"urltoBlob",(function(){return T})),d.d(l,"urltoImage",(function(){return z})),d.d(l,"compress",(function(){return G})),d.d(l,"compressAccurately",(function(){return Q})),d.d(l,"EImageType",(function(){return c})),(function(H){H.PNG="image/png",H.JPEG="image/jpeg",H.GIF="image/gif"})(c||(c={}));var p=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function h(H,j=.92,q=c.JPEG){return p(this,void 0,void 0,(function*(){return f(q)||(q=c.JPEG),H.toDataURL(q,j)}))}function k(H,j=.92,q=c.JPEG){return new Promise(V=>H.toBlob($=>V($),q,j))}var _=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function g(H,j){return _(this,void 0,void 0,(function*(){const q=H.split(",");let V=q[0].match(/:(.*?);/)[1];const $=atob(q[1]);let W=$.length;const ee=new Uint8Array(W);for(;W--;)ee[W]=$.charCodeAt(W);return f(j)&&(V=j),new Blob([ee],{type:V})}))}function b(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("dataURLtoImage(): dataURL is illegal")),V.src=H})}function S(H,j){const q=document.createElement("a");q.href=window.URL.createObjectURL(H),q.download=j||Date.now().toString(36),document.body.appendChild(q);const V=document.createEvent("MouseEvents");V.initEvent("click",!1,!1),q.dispatchEvent(V),document.body.removeChild(q)}function C(H){return new Promise(j=>{const q=new FileReader;q.onloadend=V=>j(V.target.result),q.readAsDataURL(H)})}var A=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function x(H,j={}){return A(this,void 0,void 0,(function*(){const q=Object.assign({},j),V=document.createElement("canvas"),$=V.getContext("2d");let W,ee;for(const ae in q)Object.prototype.hasOwnProperty.call(q,ae)&&(q[ae]=Number(q[ae]));if(q.scale){const ae=q.scale>0&&q.scale<10?q.scale:1;ee=H.width*ae,W=H.height*ae}else ee=q.width||q.height*H.width/H.height||H.width,W=q.height||q.width*H.height/H.width||H.height;switch([5,6,7,8].some(ae=>ae===q.orientation)?(V.height=ee,V.width=W):(V.height=W,V.width=ee),q.orientation){case 3:$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 6:$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 8:$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;case 2:$.translate(V.width,0),$.scale(-1,1),$.drawImage(H,0,0,V.width,V.height);break;case 4:$.translate(V.width,0),$.scale(-1,1),$.rotate(180*Math.PI/180),$.drawImage(H,-V.width,-V.height,V.width,V.height);break;case 5:$.translate(V.width,0),$.scale(-1,1),$.rotate(90*Math.PI/180),$.drawImage(H,0,-V.width,V.height,V.width);break;case 7:$.translate(V.width,0),$.scale(-1,1),$.rotate(270*Math.PI/180),$.drawImage(H,-V.height,0,V.height,V.width);break;default:$.drawImage(H,0,0,V.width,V.height)}return V}))}function T(H){return fetch(H).then(j=>j.blob())}function z(H){return new Promise((j,q)=>{const V=new Image;V.onload=()=>j(V),V.onerror=()=>q(new Error("urltoImage(): Image failed to load, please check the image URL")),V.src=H})}var L=function(H,j,q,V){return new(q||(q=Promise))((function($,W){function ee(Y){try{X(V.next(Y))}catch(I){W(I)}}function ae(Y){try{X(V.throw(Y))}catch(I){W(I)}}function X(Y){var I;Y.done?$(Y.value):(I=Y.value,I instanceof q?I:new q((function(N){N(I)}))).then(ee,ae)}X((V=V.apply(H,[])).next())}))};function G(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compress(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({quality:j})),j.quality=Number(j.quality),Number.isNaN(j.quality))return H;const q=yield C(H);let V=q.split(",")[0].match(/:(.*?);/)[1],$=c.JPEG;f(j.type)&&($=j.type,V=j.type);const W=yield b(q),ee=yield x(W,Object.assign({},j)),ae=yield h(ee,j.quality,$),X=yield g(ae,V);return X.size>H.size?H:X}))}function Q(H,j={}){return L(this,void 0,void 0,(function*(){if(!(H instanceof Blob))throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");if(typeof j!="object"&&(j=Object.assign({size:j})),j.size=Number(j.size),Number.isNaN(j.size)||1024*j.size>H.size)return H;j.accuracy=Number(j.accuracy),(!j.accuracy||j.accuracy<.8||j.accuracy>.99)&&(j.accuracy=.95);const q=j.size*(2-j.accuracy)*1024,V=1024*j.size,$=j.size*j.accuracy*1024,W=yield C(H);let ee=W.split(",")[0].match(/:(.*?);/)[1],ae=c.JPEG;f(j.type)&&(ae=j.type,ee=j.type);const X=yield b(W),Y=yield x(X,Object.assign({},j));let I,N=.5;const K=[null,null];for(let ne=1;ne<=7;ne++){I=yield h(Y,N,ae);const ye=.75*I.length;if(ne===7){(q<ye||$>ye)&&(I=[I,...K].filter(Ae=>Ae).sort((Ae,Ve)=>Math.abs(.75*Ae.length-V)-Math.abs(.75*Ve.length-V))[0]);break}if(q<ye)K[1]=I,N-=Math.pow(.5,ne+1);else{if(!($>ye))break;K[0]=I,N+=Math.pow(.5,ne+1)}}const ie=yield g(I,ee);return ie.size>H.size?H:ie}))}}])}))})(Ul)),Ul.exports}var fm,xv;function W2(){return xv||(xv=1,fm=Y2()),fm}var zv=W2();const Q2=y.memo(({id:o,type:n,accept:u,loadFunction:l,multiple:d})=>(y.useEffect(()=>{const c=document.getElementById(o);if(!c)return;const f=p=>{const h=Array.from(p.target.files);if(p.target.value="",h.length!==0)if(n==="settings"){const k=new FileReader,_=h[0];k.readAsText(_,"UTF-8"),k.onload=g=>l(g.target.result)}else if(typeof l=="function"&&l.length===1)l(h);else{const k={};Object.keys(localStorage).forEach(g=>{k[g]=localStorage.getItem(g)});const _=new TextEncoder().encode(JSON.stringify(k)).length;h.forEach((g,b)=>{if(Im(g.type)===!0)return _+g.size>485e4?je(me.getMessage("toasts.no_storage")):l(g,b);zv.compressAccurately(g,{size:450,accuracy:.9}).then(async S=>{if(_+S.size>485e4)return je(me.getMessage("toasts.no_storage"));l({target:{result:await zv.filetoDataURL(S)}},b)})})}};return c.onchange=f,()=>{c&&(c.onchange=null)}},[o,n,l,d]),w.jsx("input",{id:o,type:"file",style:{display:"none"},accept:u,multiple:d!==void 0?d:n!=="settings"})));Q2.displayName="FileUpload";const Z2=y.memo(o=>{const{changeLanguage:n}=Ob(),[u,l]=y.useState(localStorage.getItem(o.name)),d=y.useCallback(async c=>{if(c!=="loading"){if(o.name==="language"){n(c),l(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.onChange&&o.onChange(c),_e.emit("refresh",o.category);return}if(localStorage.setItem(o.name,c),l(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} from ${u} to ${c}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)}},[u,o,n]);return w.jsxs("div",{className:"radio-group",children:[o.title&&w.jsx("legend",{className:o.smallTitle?"radio-title-small":"radio-title",children:o.title}),w.jsx("div",{className:"radio-options",role:"radiogroup","aria-label":o.name,children:o.options.map(c=>w.jsxs("label",{className:`radio-option ${u===c.value?"selected":""} ${c.disabled||o.disabled?"disabled":""}`,children:[w.jsx("span",{className:"radio-label",children:c.name}),w.jsx("input",{type:"radio",name:o.name,value:c.value,checked:u===c.value,onChange:()=>d(c.value),disabled:c.disabled||o.disabled||!1,className:"radio-input","aria-label":c.name,tabIndex:0}),w.jsx("div",{className:"radio-circle",children:u===c.value&&w.jsx("div",{className:"radio-dot"})})]},c.value))})]})});Z2.displayName="Radio";const X2=y.memo(({value:o,onChange:n,placeholder:u,fullWidth:l})=>w.jsxs("div",{className:`search-input-container${l?" full-width":""}`,children:[w.jsx(Lm,{className:"search-input-icon"}),w.jsx("input",{type:"text",className:"search-input-field",value:o,onChange:n,placeholder:u})]}));X2.displayName="SearchInput";const J2=y.memo(o=>{const[n,u]=y.useState(localStorage.getItem(o.name)==="true"),l=y.useCallback(()=>{const c=!n;if(localStorage.setItem(o.name,c),u(c),o.onChange&&o.onChange(c),me.stats.postEvent("setting",`${o.name} ${n?"enabled":"disabled"}`),o.element&&!document.querySelector(o.element)){En();return}_e.emit("refresh",o.category)},[n,o]),d=o.text||o.title||o.name;return w.jsxs("div",{className:"switch-wrapper",children:[!o.header&&w.jsx("span",{className:"switch-label",children:o.text}),w.jsx("div",{className:`switch-track ${n?"checked":""}`,onClick:l,"aria-hidden":"true",children:w.jsx("div",{className:"switch-thumb"})}),w.jsx("input",{type:"checkbox",role:"switch",name:o.name,checked:n,onChange:l,className:"switch-input","aria-label":d})]})});J2.displayName="Switch";const $2=y.memo(o=>{const{name:n,upperCaseFirst:u,element:l,category:d,onChange:c,title:f,textarea:p,customcss:h,placeholder:k}=o,_=o.default,[g,b]=y.useState(localStorage.getItem(n)||""),S=y.useCallback(A=>{let x=A.target.value;if(u===!0&&(x=x.charAt(0).toUpperCase()+x.slice(1)),localStorage.setItem(n,x),b(x),c&&c(x),l&&!document.querySelector(l)){En();return}_e.emit("refresh",d)},[n,u,l,d,c]),C=y.useCallback(()=>{S({target:{value:_||""}}),je(me.getMessage("toasts.reset"))},[S,_]);return w.jsx("div",{className:"text-field-container",children:p===!0?w.jsxs("div",{className:`text-field ${h?"customcss":""}`,children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("textarea",{value:g,onChange:S,spellCheck:!1,rows:4,className:"text-field-textarea"})]}):w.jsxs("div",{className:"text-field",children:[f&&w.jsxs("div",{className:"text-field-header",children:[w.jsx("label",{className:"text-field-label",children:f}),w.jsxs("span",{className:"text-field-reset",onClick:C,onKeyDown:Qo(C),role:"button",tabIndex:0,children:[w.jsx(Us,{}),me.getMessage("modals.main.settings.buttons.reset")]})]}),w.jsx("input",{type:"text",value:g,onChange:S,placeholder:k||"",className:"text-field-input"})]})})});$2.displayName="Text";const Ym=y.memo(({value:o,onChange:n,placeholder:u,minRows:l=1,maxRows:d,className:c,style:f,readOnly:p})=>{const h=y.useRef(null),k=y.useCallback(()=>{const _=h.current;if(!_)return;_.style.height="auto";const g=window.getComputedStyle(_),b=parseInt(g.lineHeight)||24,S=parseInt(g.paddingTop)||0,C=parseInt(g.paddingBottom)||0,A=l*b+S+C,x=d?d*b+S+C:1/0,T=Math.min(Math.max(_.scrollHeight,A),x);_.style.height=`${T}px`},[l,d]);return y.useEffect(()=>{k()},[o,k]),y.useEffect(()=>(k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]),w.jsx("textarea",{ref:h,className:`textarea-autosize${c?` ${c}`:""}`,value:o,onChange:n,placeholder:u,style:f,readOnly:p,rows:l})});Ym.displayName="Textarea";const ez=({notesRef:o,floatRef:n,position:u,xPosition:l,yPosition:d})=>{const c=Zo(),[f,p]=y.useState(localStorage.getItem("notes")||""),[h,k]=y.useState(localStorage.getItem("notesPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const z=L=>{L==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",z),()=>{_e.off("refresh",z)}},[]);const b=z=>{localStorage.setItem("notes",z.target.value),p(z.target.value)},S=()=>{k(!0)},C=()=>{k(localStorage.getItem("notesPinned")==="true")},A=()=>{me.stats.postEvent("feature","Notes pin");const z=localStorage.getItem("notesPinned")==="true";localStorage.setItem("notesPinned",!z),k(!z)},x=()=>{me.stats.postEvent("feature","Notes copied"),navigator.clipboard.writeText(f),je(c("toasts.notes"))},T=()=>{!f||f===""||(me.stats.postEvent("feature","Notes download"),l2(f,"mue-notes.txt","text/plain"))};return w.jsxs("div",{className:"notes",onMouseLeave:C,onFocus:S,onBlur:z=>{z.currentTarget.contains(z.relatedTarget)||C()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:S,onFocus:S,ref:o,style:{fontSize:_},"aria-label":c("widgets.navbar.notes.title"),children:w.jsx(U_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44",left:l??""},children:w.jsxs("div",{className:"flexNotes",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(U_,{}),w.jsx("span",{children:c("widgets.navbar.notes.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:A,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.quote.copy"),children:w.jsx("button",{onClick:x,disabled:f==="","aria-label":c("widgets.quote.copy"),children:w.jsx(IC,{})})}),w.jsx(ht,{title:c("widgets.background.download"),children:w.jsx("button",{onClick:T,disabled:f==="","aria-label":c("widgets.background.download"),children:w.jsx(qC,{})})})]}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:f,onChange:b,minRows:5})]})})]})};function tz(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(ez,{notesRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const az=y.memo(tz);function oz(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>l=>{n.forEach(d=>d(l))},n)}const hu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Dn(o){const n=Object.prototype.toString.call(o);return n==="[object Window]"||n==="[object global]"}function Wm(o){return"nodeType"in o}function Qt(o){var n,u;return o?Dn(o)?o:Wm(o)&&(n=(u=o.ownerDocument)==null?void 0:u.defaultView)!=null?n:window:window}function Qm(o){const{Document:n}=Qt(o);return o instanceof n}function er(o){return Dn(o)?!1:o instanceof Qt(o).HTMLElement}function My(o){return o instanceof Qt(o).SVGElement}function jn(o){return o?Dn(o)?o.document:Wm(o)?Qm(o)?o:er(o)||My(o)?o.ownerDocument:document:document:document}const Za=hu?y.useLayoutEffect:y.useEffect;function Zm(o){const n=y.useRef(o);return Za(()=>{n.current=o}),y.useCallback(function(){for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return n.current==null?void 0:n.current(...l)},[])}function iz(){const o=y.useRef(null),n=y.useCallback((l,d)=>{o.current=setInterval(l,d)},[]),u=y.useCallback(()=>{o.current!==null&&(clearInterval(o.current),o.current=null)},[]);return[n,u]}function Ks(o,n){n===void 0&&(n=[o]);const u=y.useRef(o);return Za(()=>{u.current!==o&&(u.current=o)},n),u}function tr(o,n){const u=y.useRef();return y.useMemo(()=>{const l=o(u.current);return u.current=l,l},[...n])}function Jl(o){const n=Zm(o),u=y.useRef(null),l=y.useCallback(d=>{d!==u.current&&n?.(d,u.current),u.current=d},[]);return[u,l]}function Tm(o){const n=y.useRef();return y.useEffect(()=>{n.current=o},[o]),n.current}let gm={};function ar(o,n){return y.useMemo(()=>{if(n)return n;const u=gm[o]==null?0:gm[o]+1;return gm[o]=u,o+"-"+u},[o,n])}function Cy(o){return function(n){for(var u=arguments.length,l=new Array(u>1?u-1:0),d=1;d<u;d++)l[d-1]=arguments[d];return l.reduce((c,f)=>{const p=Object.entries(f);for(const[h,k]of p){const _=c[h];_!=null&&(c[h]=_+o*k)}return c},{...n})}}const zn=Cy(1),Ys=Cy(-1);function nz(o){return"clientX"in o&&"clientY"in o}function Xm(o){if(!o)return!1;const{KeyboardEvent:n}=Qt(o.target);return n&&o instanceof n}function sz(o){if(!o)return!1;const{TouchEvent:n}=Qt(o.target);return n&&o instanceof n}function Nm(o){if(sz(o)){if(o.touches&&o.touches.length){const{clientX:n,clientY:u}=o.touches[0];return{x:n,y:u}}else if(o.changedTouches&&o.changedTouches.length){const{clientX:n,clientY:u}=o.changedTouches[0];return{x:n,y:u}}}return nz(o)?{x:o.clientX,y:o.clientY}:null}const Ws=Object.freeze({Translate:{toString(o){if(!o)return;const{x:n,y:u}=o;return"translate3d("+(n?Math.round(n):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(o){if(!o)return;const{scaleX:n,scaleY:u}=o;return"scaleX("+n+") scaleY("+u+")"}},Transform:{toString(o){if(o)return[Ws.Translate.toString(o),Ws.Scale.toString(o)].join(" ")}},Transition:{toString(o){let{property:n,duration:u,easing:l}=o;return n+" "+u+"ms "+l}}}),Tv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function rz(o){return o.matches(Tv)?o:o.querySelector(Tv)}const lz={display:"none"};function uz(o){let{id:n,value:u}=o;return ve.createElement("div",{id:n,style:lz},u)}function dz(o){let{id:n,announcement:u,ariaLiveType:l="assertive"}=o;const d={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ve.createElement("div",{id:n,style:d,role:"status","aria-live":l,"aria-atomic":!0},u)}function cz(){const[o,n]=y.useState("");return{announce:y.useCallback(l=>{l!=null&&n(l)},[]),announcement:o}}const Ay=y.createContext(null);function mz(o){const n=y.useContext(Ay);y.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(o)},[o,n])}function pz(){const[o]=y.useState(()=>new Set),n=y.useCallback(l=>(o.add(l),()=>o.delete(l)),[o]);return[y.useCallback(l=>{let{type:d,event:c}=l;o.forEach(f=>{var p;return(p=f[d])==null?void 0:p.call(f,c)})},[o]),n]}const fz={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
- `},fz={onDragStart(o){let{active:n}=o;return"Picked up draggable item "+n.id+"."},onDragOver(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was moved over droppable area "+u.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was dropped over droppable area "+u.id:"Draggable item "+n.id+" was dropped."},onDragCancel(o){let{active:n}=o;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function gz(o){let{announcements:n=fz,container:u,hiddenTextDescribedById:l,screenReaderInstructions:d=pz}=o;const{announce:c,announcement:f}=dz(),p=ar("DndLiveRegion"),[h,k]=y.useState(!1);if(y.useEffect(()=>{k(!0)},[]),cz(y.useMemo(()=>({onDragStart(g){let{active:b}=g;c(n.onDragStart({active:b}))},onDragMove(g){let{active:b,over:S}=g;n.onDragMove&&c(n.onDragMove({active:b,over:S}))},onDragOver(g){let{active:b,over:S}=g;c(n.onDragOver({active:b,over:S}))},onDragEnd(g){let{active:b,over:S}=g;c(n.onDragEnd({active:b,over:S}))},onDragCancel(g){let{active:b,over:S}=g;c(n.onDragCancel({active:b,over:S}))}}),[c,n])),!h)return null;const _=ve.createElement(ve.Fragment,null,ve.createElement(lz,{id:l,value:d.draggable}),ve.createElement(uz,{id:p,announcement:f}));return u?Cn.createPortal(_,u):_}var ut;(function(o){o.DragStart="dragStart",o.DragMove="dragMove",o.DragEnd="dragEnd",o.DragCancel="dragCancel",o.DragOver="dragOver",o.RegisterDroppable="registerDroppable",o.SetDroppableDisabled="setDroppableDisabled",o.UnregisterDroppable="unregisterDroppable"})(ut||(ut={}));function $l(){}function Nv(o,n){return y.useMemo(()=>({sensor:o,options:n??{}}),[o,n])}function hz(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>[...n].filter(l=>l!=null),[...n])}const Da=Object.freeze({x:0,y:0});function xy(o,n){return Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))}function zy(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return u-l}function _z(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return l-u}function Ev(o){let{left:n,top:u,height:l,width:d}=o;return[{x:n,y:u},{x:n+d,y:u},{x:n,y:u+l},{x:n+d,y:u+l}]}function Ty(o,n){if(!o||o.length===0)return null;const[u]=o;return u[n]}function Dv(o,n,u){return n===void 0&&(n=o.left),u===void 0&&(u=o.top),{x:n+o.width*.5,y:u+o.height*.5}}const vz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Dv(n,n.left,n.top),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=xy(Dv(h),d);c.push({id:p,data:{droppableContainer:f,value:k}})}}return c.sort(zy)},bz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Ev(n),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=Ev(h),_=d.reduce((b,S,C)=>b+xy(k[C],S),0),g=Number((_/4).toFixed(4));c.push({id:p,data:{droppableContainer:f,value:g}})}}return c.sort(zy)};function yz(o,n){const u=Math.max(n.top,o.top),l=Math.max(n.left,o.left),d=Math.min(n.left+n.width,o.left+o.width),c=Math.min(n.top+n.height,o.top+o.height),f=d-l,p=c-u;if(l<d&&u<c){const h=n.width*n.height,k=o.width*o.height,_=f*p,g=_/(h+k-_);return Number(g.toFixed(4))}return 0}const kz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=[];for(const c of l){const{id:f}=c,p=u.get(f);if(p){const h=yz(p,n);h>0&&d.push({id:f,data:{droppableContainer:c,value:h}})}}return d.sort(_z)};function wz(o,n,u){return{...o,scaleX:n&&u?n.width/u.width:1,scaleY:n&&u?n.height/u.height:1}}function Ny(o,n){return o&&n?{x:o.left-n.left,y:o.top-n.top}:Da}function Sz(o){return function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),c=1;c<l;c++)d[c-1]=arguments[c];return d.reduce((f,p)=>({...f,top:f.top+o*p.y,bottom:f.bottom+o*p.y,left:f.left+o*p.x,right:f.right+o*p.x}),{...u})}}const Mz=Sz(1);function Cz(o){if(o.startsWith("matrix3d(")){const n=o.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(o.startsWith("matrix(")){const n=o.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function Az(o,n,u){const l=Cz(n);if(!l)return o;const{scaleX:d,scaleY:c,x:f,y:p}=l,h=o.left-f-(1-d)*parseFloat(u),k=o.top-p-(1-c)*parseFloat(u.slice(u.indexOf(" ")+1)),_=d?o.width/d:o.width,g=c?o.height/c:o.height;return{width:_,height:g,top:k,right:h+_,bottom:k+g,left:h}}const xz={ignoreTransform:!1};function On(o,n){n===void 0&&(n=xz);let u=o.getBoundingClientRect();if(n.ignoreTransform){const{transform:k,transformOrigin:_}=Qt(o).getComputedStyle(o);k&&(u=Az(u,k,_))}const{top:l,left:d,width:c,height:f,bottom:p,right:h}=u;return{top:l,left:d,width:c,height:f,bottom:p,right:h}}function jv(o){return On(o,{ignoreTransform:!0})}function zz(o){const n=o.innerWidth,u=o.innerHeight;return{top:0,left:0,right:n,bottom:u,width:n,height:u}}function Tz(o,n){return n===void 0&&(n=Qt(o).getComputedStyle(o)),n.position==="fixed"}function Nz(o,n){n===void 0&&(n=Qt(o).getComputedStyle(o));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(d=>{const c=n[d];return typeof c=="string"?u.test(c):!1})}function _u(o,n){const u=[];function l(d){if(n!=null&&u.length>=n||!d)return u;if(Qm(d)&&d.scrollingElement!=null&&!u.includes(d.scrollingElement))return u.push(d.scrollingElement),u;if(!er(d)||My(d)||u.includes(d))return u;const c=Qt(o).getComputedStyle(d);return d!==o&&Nz(d,c)&&u.push(d),Tz(d,c)?u:l(d.parentNode)}return o?l(o):u}function Ey(o){const[n]=_u(o,1);return n??null}function hm(o){return!hu||!o?null:Dn(o)?o:Wm(o)?Qm(o)||o===jn(o).scrollingElement?window:er(o)?o:null:null}function Dy(o){return Dn(o)?o.scrollX:o.scrollLeft}function jy(o){return Dn(o)?o.scrollY:o.scrollTop}function Em(o){return{x:Dy(o),y:jy(o)}}var gt;(function(o){o[o.Forward=1]="Forward",o[o.Backward=-1]="Backward"})(gt||(gt={}));function Oy(o){return!hu||!o?!1:o===document.scrollingElement}function qy(o){const n={x:0,y:0},u=Oy(o)?{height:window.innerHeight,width:window.innerWidth}:{height:o.clientHeight,width:o.clientWidth},l={x:o.scrollWidth-u.width,y:o.scrollHeight-u.height},d=o.scrollTop<=n.y,c=o.scrollLeft<=n.x,f=o.scrollTop>=l.y,p=o.scrollLeft>=l.x;return{isTop:d,isLeft:c,isBottom:f,isRight:p,maxScroll:l,minScroll:n}}const Ez={x:.2,y:.2};function Dz(o,n,u,l,d){let{top:c,left:f,right:p,bottom:h}=u;l===void 0&&(l=10),d===void 0&&(d=Ez);const{isTop:k,isBottom:_,isLeft:g,isRight:b}=qy(o),S={x:0,y:0},C={x:0,y:0},A={height:n.height*d.y,width:n.width*d.x};return!k&&c<=n.top+A.height?(S.y=gt.Backward,C.y=l*Math.abs((n.top+A.height-c)/A.height)):!_&&h>=n.bottom-A.height&&(S.y=gt.Forward,C.y=l*Math.abs((n.bottom-A.height-h)/A.height)),!b&&p>=n.right-A.width?(S.x=gt.Forward,C.x=l*Math.abs((n.right-A.width-p)/A.width)):!g&&f<=n.left+A.width&&(S.x=gt.Backward,C.x=l*Math.abs((n.left+A.width-f)/A.width)),{direction:S,speed:C}}function jz(o){if(o===document.scrollingElement){const{innerWidth:c,innerHeight:f}=window;return{top:0,left:0,right:c,bottom:f,width:c,height:f}}const{top:n,left:u,right:l,bottom:d}=o.getBoundingClientRect();return{top:n,left:u,right:l,bottom:d,width:o.clientWidth,height:o.clientHeight}}function Ry(o){return o.reduce((n,u)=>zn(n,Em(u)),Da)}function Oz(o){return o.reduce((n,u)=>n+Dy(u),0)}function qz(o){return o.reduce((n,u)=>n+jy(u),0)}function Rz(o,n){if(n===void 0&&(n=On),!o)return;const{top:u,left:l,bottom:d,right:c}=n(o);Ey(o)&&(d<=0||c<=0||u>=window.innerHeight||l>=window.innerWidth)&&o.scrollIntoView({block:"center",inline:"center"})}const Bz=[["x",["left","right"],Oz],["y",["top","bottom"],qz]];class Jm{constructor(n,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=_u(u),d=Ry(l);this.rect={...n},this.width=n.width,this.height=n.height;for(const[c,f,p]of Bz)for(const h of f)Object.defineProperty(this,h,{get:()=>{const k=p(l),_=d[c]-k;return this.rect[h]+_},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Rs{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...u)})},this.target=n}add(n,u,l){var d;(d=this.target)==null||d.addEventListener(n,u,l),this.listeners.push([n,u,l])}}function Lz(o){const{EventTarget:n}=Qt(o);return o instanceof n?o:jn(o)}function _m(o,n){const u=Math.abs(o.x),l=Math.abs(o.y);return typeof n=="number"?Math.sqrt(u**2+l**2)>n:"x"in n&&"y"in n?u>n.x&&l>n.y:"x"in n?u>n.x:"y"in n?l>n.y:!1}var ka;(function(o){o.Click="click",o.DragStart="dragstart",o.Keydown="keydown",o.ContextMenu="contextmenu",o.Resize="resize",o.SelectionChange="selectionchange",o.VisibilityChange="visibilitychange"})(ka||(ka={}));function Ov(o){o.preventDefault()}function Iz(o){o.stopPropagation()}var Ee;(function(o){o.Space="Space",o.Down="ArrowDown",o.Right="ArrowRight",o.Left="ArrowLeft",o.Up="ArrowUp",o.Esc="Escape",o.Enter="Enter",o.Tab="Tab"})(Ee||(Ee={}));const By={start:[Ee.Space,Ee.Enter],cancel:[Ee.Esc],end:[Ee.Space,Ee.Enter,Ee.Tab]},Uz=(o,n)=>{let{currentCoordinates:u}=n;switch(o.code){case Ee.Right:return{...u,x:u.x+25};case Ee.Left:return{...u,x:u.x-25};case Ee.Down:return{...u,y:u.y+25};case Ee.Up:return{...u,y:u.y-25}}};class $m{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:u}}=n;this.props=n,this.listeners=new Rs(jn(u)),this.windowListeners=new Rs(Qt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ka.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:u}=this.props,l=n.node.current;l&&Rz(l),u(Da)}handleKeyDown(n){if(Xm(n)){const{active:u,context:l,options:d}=this.props,{keyboardCodes:c=By,coordinateGetter:f=Uz,scrollBehavior:p="smooth"}=d,{code:h}=n;if(c.end.includes(h)){this.handleEnd(n);return}if(c.cancel.includes(h)){this.handleCancel(n);return}const{collisionRect:k}=l.current,_=k?{x:k.left,y:k.top}:Da;this.referenceCoordinates||(this.referenceCoordinates=_);const g=f(n,{active:u,context:l.current,currentCoordinates:_});if(g){const b=Ys(g,_),S={x:0,y:0},{scrollableAncestors:C}=l.current;for(const A of C){const x=n.code,{isTop:T,isRight:z,isLeft:L,isBottom:G,maxScroll:Q,minScroll:H}=qy(A),j=jz(A),q={x:Math.min(x===Ee.Right?j.right-j.width/2:j.right,Math.max(x===Ee.Right?j.left:j.left+j.width/2,g.x)),y:Math.min(x===Ee.Down?j.bottom-j.height/2:j.bottom,Math.max(x===Ee.Down?j.top:j.top+j.height/2,g.y))},V=x===Ee.Right&&!z||x===Ee.Left&&!L,$=x===Ee.Down&&!G||x===Ee.Up&&!T;if(V&&q.x!==g.x){const W=A.scrollLeft+b.x,ee=x===Ee.Right&&W<=Q.x||x===Ee.Left&&W>=H.x;if(ee&&!b.y){A.scrollTo({left:W,behavior:p});return}ee?S.x=A.scrollLeft-W:S.x=x===Ee.Right?A.scrollLeft-Q.x:A.scrollLeft-H.x,S.x&&A.scrollBy({left:-S.x,behavior:p});break}else if($&&q.y!==g.y){const W=A.scrollTop+b.y,ee=x===Ee.Down&&W<=Q.y||x===Ee.Up&&W>=H.y;if(ee&&!b.x){A.scrollTo({top:W,behavior:p});return}ee?S.y=A.scrollTop-W:S.y=x===Ee.Down?A.scrollTop-Q.y:A.scrollTop-H.y,S.y&&A.scrollBy({top:-S.y,behavior:p});break}}this.handleMove(n,zn(Ys(g,this.referenceCoordinates),S))}}}handleMove(n,u){const{onMove:l}=this.props;n.preventDefault(),l(u)}handleEnd(n){const{onEnd:u}=this.props;n.preventDefault(),this.detach(),u()}handleCancel(n){const{onCancel:u}=this.props;n.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}$m.activators=[{eventName:"onKeyDown",handler:(o,n,u)=>{let{keyboardCodes:l=By,onActivation:d}=n,{active:c}=u;const{code:f}=o.nativeEvent;if(l.start.includes(f)){const p=c.activatorNode.current;return p&&o.target!==p?!1:(o.preventDefault(),d?.({event:o.nativeEvent}),!0)}return!1}}];function qv(o){return!!(o&&"distance"in o)}function Rv(o){return!!(o&&"delay"in o)}class ep{constructor(n,u,l){var d;l===void 0&&(l=Lz(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=u;const{event:c}=n,{target:f}=c;this.props=n,this.events=u,this.document=jn(f),this.documentListeners=new Rs(this.document),this.listeners=new Rs(l),this.windowListeners=new Rs(Qt(f)),this.initialCoordinates=(d=Nm(c))!=null?d:Da,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:u,bypassActivationConstraint:l}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.DragStart,Ov),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),this.windowListeners.add(ka.ContextMenu,Ov),this.documentListeners.add(ka.Keydown,this.handleKeydown),u){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Rv(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(qv(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,u){const{active:l,onPending:d}=this.props;d(l,n,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:n}=this,{onStart:u}=this.props;n&&(this.activated=!0,this.documentListeners.add(ka.Click,Iz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ka.SelectionChange,this.removeTextSelection),u(n))}handleMove(n){var u;const{activated:l,initialCoordinates:d,props:c}=this,{onMove:f,options:{activationConstraint:p}}=c;if(!d)return;const h=(u=Nm(n))!=null?u:Da,k=Ys(d,h);if(!l&&p){if(qv(p)){if(p.tolerance!=null&&_m(k,p.tolerance))return this.handleCancel();if(_m(k,p.distance))return this.handleStart()}if(Rv(p)&&_m(k,p.tolerance))return this.handleCancel();this.handlePending(p,k);return}n.cancelable&&n.preventDefault(),f(h)}handleEnd(){const{onAbort:n,onEnd:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleCancel(){const{onAbort:n,onCancel:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleKeydown(n){n.code===Ee.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Pz={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tp extends ep{constructor(n){const{event:u}=n,l=jn(u.target);super(n,Pz,l)}}tp.activators=[{eventName:"onPointerDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return!u.isPrimary||u.button!==0?!1:(l?.({event:u}),!0)}}];const Hz={move:{name:"mousemove"},end:{name:"mouseup"}};var Dm;(function(o){o[o.RightClick=2]="RightClick"})(Dm||(Dm={}));class Fz extends ep{constructor(n){super(n,Hz,jn(n.event.target))}}Fz.activators=[{eventName:"onMouseDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return u.button===Dm.RightClick?!1:(l?.({event:u}),!0)}}];const vm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Vz extends ep{constructor(n){super(n,vm)}static setup(){return window.addEventListener(vm.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(vm.move.name,n)};function n(){}}}Vz.activators=[{eventName:"onTouchStart",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;const{touches:d}=u;return d.length>1?!1:(l?.({event:u}),!0)}}];var Bs;(function(o){o[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect"})(Bs||(Bs={}));var eu;(function(o){o[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder"})(eu||(eu={}));function Gz(o){let{acceleration:n,activator:u=Bs.Pointer,canScroll:l,draggingRect:d,enabled:c,interval:f=5,order:p=eu.TreeOrder,pointerCoordinates:h,scrollableAncestors:k,scrollableAncestorRects:_,delta:g,threshold:b}=o;const S=Yz({delta:g,disabled:!c}),[C,A]=oz(),x=y.useRef({x:0,y:0}),T=y.useRef({x:0,y:0}),z=y.useMemo(()=>{switch(u){case Bs.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case Bs.DraggableRect:return d}},[u,d,h]),L=y.useRef(null),G=y.useCallback(()=>{const H=L.current;if(!H)return;const j=x.current.x*T.current.x,q=x.current.y*T.current.y;H.scrollBy(j,q)},[]),Q=y.useMemo(()=>p===eu.TreeOrder?[...k].reverse():k,[p,k]);y.useEffect(()=>{if(!c||!k.length||!z){A();return}for(const H of Q){if(l?.(H)===!1)continue;const j=k.indexOf(H),q=_[j];if(!q)continue;const{direction:V,speed:$}=Dz(H,q,z,n,b);for(const W of["x","y"])S[W][V[W]]||($[W]=0,V[W]=0);if($.x>0||$.y>0){A(),L.current=H,C(G,f),x.current=$,T.current=V;return}}x.current={x:0,y:0},T.current={x:0,y:0},A()},[n,G,l,A,c,f,JSON.stringify(z),JSON.stringify(S),C,k,Q,_,JSON.stringify(b)])}const Kz={x:{[gt.Backward]:!1,[gt.Forward]:!1},y:{[gt.Backward]:!1,[gt.Forward]:!1}};function Yz(o){let{delta:n,disabled:u}=o;const l=Tm(n);return tr(d=>{if(u||!l||!d)return Kz;const c={x:Math.sign(n.x-l.x),y:Math.sign(n.y-l.y)};return{x:{[gt.Backward]:d.x[gt.Backward]||c.x===-1,[gt.Forward]:d.x[gt.Forward]||c.x===1},y:{[gt.Backward]:d.y[gt.Backward]||c.y===-1,[gt.Forward]:d.y[gt.Forward]||c.y===1}}},[u,n,l])}function Wz(o,n){const u=n!=null?o.get(n):void 0,l=u?u.node.current:null;return tr(d=>{var c;return n==null?null:(c=l??d)!=null?c:null},[l,n])}function Qz(o,n){return y.useMemo(()=>o.reduce((u,l)=>{const{sensor:d}=l,c=d.activators.map(f=>({eventName:f.eventName,handler:n(f.handler,l)}));return[...u,...c]},[]),[o,n])}var Qs;(function(o){o[o.Always=0]="Always",o[o.BeforeDragging=1]="BeforeDragging",o[o.WhileDragging=2]="WhileDragging"})(Qs||(Qs={}));var jm;(function(o){o.Optimized="optimized"})(jm||(jm={}));const Bv=new Map;function Zz(o,n){let{dragging:u,dependencies:l,config:d}=n;const[c,f]=y.useState(null),{frequency:p,measure:h,strategy:k}=d,_=y.useRef(o),g=x(),b=Ks(g),S=y.useCallback(function(T){T===void 0&&(T=[]),!b.current&&f(z=>z===null?T:z.concat(T.filter(L=>!z.includes(L))))},[b]),C=y.useRef(null),A=tr(T=>{if(g&&!u)return Bv;if(!T||T===Bv||_.current!==o||c!=null){const z=new Map;for(let L of o){if(!L)continue;if(c&&c.length>0&&!c.includes(L.id)&&L.rect.current){z.set(L.id,L.rect.current);continue}const G=L.node.current,Q=G?new Jm(h(G),G):null;L.rect.current=Q,Q&&z.set(L.id,Q)}return z}return T},[o,c,u,g,h]);return y.useEffect(()=>{_.current=o},[o]),y.useEffect(()=>{g||S()},[u,g]),y.useEffect(()=>{c&&c.length>0&&f(null)},[JSON.stringify(c)]),y.useEffect(()=>{g||typeof p!="number"||C.current!==null||(C.current=setTimeout(()=>{S(),C.current=null},p))},[p,g,S,...l]),{droppableRects:A,measureDroppableContainers:S,measuringScheduled:c!=null};function x(){switch(k){case Qs.Always:return!1;case Qs.BeforeDragging:return u;default:return!u}}}function Ly(o,n){return tr(u=>o?u||(typeof n=="function"?n(o):o):null,[n,o])}function Xz(o,n){return Ly(o,n)}function Jz(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:c}=window;return new c(l)},[l,u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function vu(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:c}=window;return new c(l)},[u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function $z(o){return new Jm(On(o),o)}function Lv(o,n,u){n===void 0&&(n=$z);const[l,d]=y.useState(null);function c(){d(h=>{if(!o)return null;if(o.isConnected===!1){var k;return(k=h??u)!=null?k:null}const _=n(o);return JSON.stringify(h)===JSON.stringify(_)?h:_})}const f=Jz({callback(h){if(o)for(const k of h){const{type:_,target:g}=k;if(_==="childList"&&g instanceof HTMLElement&&g.contains(o)){c();break}}}}),p=vu({callback:c});return Za(()=>{c(),o?(p?.observe(o),f?.observe(document.body,{childList:!0,subtree:!0})):(p?.disconnect(),f?.disconnect())},[o]),l}function eT(o){const n=Ly(o);return Ny(o,n)}const Iv=[];function tT(o){const n=y.useRef(o),u=tr(l=>o?l&&l!==Iv&&o&&n.current&&o.parentNode===n.current.parentNode?l:_u(o):Iv,[o]);return y.useEffect(()=>{n.current=o},[o]),u}function aT(o){const[n,u]=y.useState(null),l=y.useRef(o),d=y.useCallback(c=>{const f=hm(c.target);f&&u(p=>p?(p.set(f,Em(f)),new Map(p)):null)},[]);return y.useEffect(()=>{const c=l.current;if(o!==c){f(c);const p=o.map(h=>{const k=hm(h);return k?(k.addEventListener("scroll",d,{passive:!0}),[k,Em(k)]):null}).filter(h=>h!=null);u(p.length?new Map(p):null),l.current=o}return()=>{f(o),f(c)};function f(p){p.forEach(h=>{const k=hm(h);k?.removeEventListener("scroll",d)})}},[d,o]),y.useMemo(()=>o.length?n?Array.from(n.values()).reduce((c,f)=>zn(c,f),Da):Ry(o):Da,[o,n])}function Uv(o,n){n===void 0&&(n=[]);const u=y.useRef(null);return y.useEffect(()=>{u.current=null},n),y.useEffect(()=>{const l=o!==Da;l&&!u.current&&(u.current=o),!l&&u.current&&(u.current=null)},[o]),u.current?Ys(o,u.current):Da}function oT(o){y.useEffect(()=>{if(!hu)return;const n=o.map(u=>{let{sensor:l}=u;return l.setup==null?void 0:l.setup()});return()=>{for(const u of n)u?.()}},o.map(n=>{let{sensor:u}=n;return u}))}function iT(o,n){return y.useMemo(()=>o.reduce((u,l)=>{let{eventName:d,handler:c}=l;return u[d]=f=>{c(f,n)},u},{}),[o,n])}function Iy(o){return y.useMemo(()=>o?zz(o):null,[o])}const Pv=[];function nT(o,n){n===void 0&&(n=On);const[u]=o,l=Iy(u?Qt(u):null),[d,c]=y.useState(Pv);function f(){c(()=>o.length?o.map(h=>Oy(h)?l:new Jm(n(h),h)):Pv)}const p=vu({callback:f});return Za(()=>{p?.disconnect(),f(),o.forEach(h=>p?.observe(h))},[o]),d}function sT(o){if(!o)return null;if(o.children.length>1)return o;const n=o.children[0];return er(n)?n:o}function rT(o){let{measure:n}=o;const[u,l]=y.useState(null),d=y.useCallback(k=>{for(const{target:_}of k)if(er(_)){l(g=>{const b=n(_);return g?{...g,width:b.width,height:b.height}:b});break}},[n]),c=vu({callback:d}),f=y.useCallback(k=>{const _=sT(k);c?.disconnect(),_&&c?.observe(_),l(_?n(_):null)},[n,c]),[p,h]=Jl(f);return y.useMemo(()=>({nodeRef:p,rect:u,setRef:h}),[u,p,h])}const lT=[{sensor:tp,options:{}},{sensor:$m,options:{}}],uT={current:{}},Pl={draggable:{measure:jv},droppable:{measure:jv,strategy:Qs.WhileDragging,frequency:jm.Optimized},dragOverlay:{measure:On}};class Ls extends Map{get(n){var u;return n!=null&&(u=super.get(n))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:u}=n;return!u})}getNodeFor(n){var u,l;return(u=(l=this.get(n))==null?void 0:l.node.current)!=null?u:void 0}}const dT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ls,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:$l},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pl,measureDroppableContainers:$l,windowRect:null,measuringScheduled:!1},cT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:$l,draggableNodes:new Map,over:null,measureDroppableContainers:$l},bu=y.createContext(cT),Uy=y.createContext(dT);function mT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ls}}}function pT(o,n){switch(n.type){case ut.DragStart:return{...o,draggable:{...o.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case ut.DragMove:return o.draggable.active==null?o:{...o,draggable:{...o.draggable,translate:{x:n.coordinates.x-o.draggable.initialCoordinates.x,y:n.coordinates.y-o.draggable.initialCoordinates.y}}};case ut.DragEnd:case ut.DragCancel:return{...o,draggable:{...o.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ut.RegisterDroppable:{const{element:u}=n,{id:l}=u,d=new Ls(o.droppable.containers);return d.set(l,u),{...o,droppable:{...o.droppable,containers:d}}}case ut.SetDroppableDisabled:{const{id:u,key:l,disabled:d}=n,c=o.droppable.containers.get(u);if(!c||l!==c.key)return o;const f=new Ls(o.droppable.containers);return f.set(u,{...c,disabled:d}),{...o,droppable:{...o.droppable,containers:f}}}case ut.UnregisterDroppable:{const{id:u,key:l}=n,d=o.droppable.containers.get(u);if(!d||l!==d.key)return o;const c=new Ls(o.droppable.containers);return c.delete(u),{...o,droppable:{...o.droppable,containers:c}}}default:return o}}function fT(o){let{disabled:n}=o;const{active:u,activatorEvent:l,draggableNodes:d}=y.useContext(bu),c=Tm(l),f=Tm(u?.id);return y.useEffect(()=>{if(!n&&!l&&c&&f!=null){if(!Xm(c)||document.activeElement===c.target)return;const p=d.get(f);if(!p)return;const{activatorNode:h,node:k}=p;if(!h.current&&!k.current)return;requestAnimationFrame(()=>{for(const _ of[h.current,k.current]){if(!_)continue;const g=sz(_);if(g){g.focus();break}}})}},[l,n,d,f,c]),null}function gT(o,n){let{transform:u,...l}=n;return o!=null&&o.length?o.reduce((d,c)=>c({transform:d,...l}),u):u}function hT(o){return y.useMemo(()=>({draggable:{...Pl.draggable,...o?.draggable},droppable:{...Pl.droppable,...o?.droppable},dragOverlay:{...Pl.dragOverlay,...o?.dragOverlay}}),[o?.draggable,o?.droppable,o?.dragOverlay])}function _T(o){let{activeNode:n,measure:u,initialRect:l,config:d=!0}=o;const c=y.useRef(!1),{x:f,y:p}=typeof d=="boolean"?{x:d,y:d}:d;Za(()=>{if(!f&&!p||!n){c.current=!1;return}if(c.current||!l)return;const k=n?.node.current;if(!k||k.isConnected===!1)return;const _=u(k),g=Ny(_,l);if(f||(g.x=0),p||(g.y=0),c.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const b=Ey(k);b&&b.scrollBy({top:g.y,left:g.x})}},[n,f,p,l,u])}const Py=y.createContext({...Da,scaleX:1,scaleY:1});var Ko;(function(o){o[o.Uninitialized=0]="Uninitialized",o[o.Initializing=1]="Initializing",o[o.Initialized=2]="Initialized"})(Ko||(Ko={}));const vT=y.memo(function(n){var u,l,d,c;let{id:f,accessibility:p,autoScroll:h=!0,children:k,sensors:_=lT,collisionDetection:g=kz,measuring:b,modifiers:S,...C}=n;const A=y.useReducer(pT,void 0,mT),[x,T]=A,[z,L]=mz(),[G,Q]=y.useState(Ko.Uninitialized),H=G===Ko.Initialized,{draggable:{active:j,nodes:q,translate:V},droppable:{containers:$}}=x,W=j!=null?q.get(j):null,ee=y.useRef({initial:null,translated:null}),ae=y.useMemo(()=>{var rt;return j!=null?{id:j,data:(rt=W?.data)!=null?rt:uT,rect:ee}:null},[j,W]),X=y.useRef(null),[Y,I]=y.useState(null),[N,K]=y.useState(null),ie=Ks(C,Object.values(C)),ne=ar("DndDescribedBy",f),ye=y.useMemo(()=>$.getEnabled(),[$]),Ae=hT(b),{droppableRects:Ve,measureDroppableContainers:D,measuringScheduled:te}=Zz(ye,{dragging:H,dependencies:[V.x,V.y],config:Ae.droppable}),se=Wz(q,j),ce=y.useMemo(()=>N?Nm(N):null,[N]),ke=sr(),we=Xz(se,Ae.draggable.measure);_T({activeNode:j!=null?q.get(j):null,config:ke.layoutShiftCompensation,initialRect:we,measure:Ae.draggable.measure});const pe=Lv(se,Ae.draggable.measure,we),ue=Lv(se?se.parentElement:null),fe=y.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Ve,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:$,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ct=$.getNodeFor((u=fe.current.over)==null?void 0:u.id),Zt=rT({measure:Ae.dragOverlay.measure}),Xt=(l=Zt.nodeRef.current)!=null?l:se,_t=H?(d=Zt.rect)!=null?d:pe:null,tt=!!(Zt.nodeRef.current&&Zt.rect),Le=eT(tt?null:pe),Bt=Iy(Xt?Qt(Xt):null),Lt=tT(H?Ct??se:null),Jt=nT(Lt),Xa=gT(S,{transform:{x:V.x-Le.x,y:V.y-Le.y,scaleX:1,scaleY:1},activatorEvent:N,active:ae,activeNodeRect:pe,containerNodeRect:ue,draggingNodeRect:_t,over:fe.current.over,overlayNodeRect:Zt.rect,scrollableAncestors:Lt,scrollableAncestorRects:Jt,windowRect:Bt}),$o=ce?zn(ce,V):null,Ja=aT(Lt),qn=Uv(Ja),Ei=Uv(Ja,[pe]),ja=zn(Xa,qn),$a=_t?Mz(_t,Xa):null,It=ae&&$a?g({active:ae,collisionRect:$a,droppableRects:Ve,droppableContainers:ye,pointerCoordinates:$o}):null,Di=Ty(It,"id"),[ua,or]=y.useState(null),ir=tt?Xa:zn(Xa,Ei),Rn=wz(ir,(c=ua?.rect)!=null?c:null,pe),ei=y.useRef(null),ji=y.useCallback((rt,dt)=>{let{sensor:Nt,options:wa}=dt;if(X.current==null)return;const Ut=q.get(X.current);if(!Ut)return;const Et=rt.nativeEvent,At=new Nt({active:X.current,activeNode:Ut,event:Et,options:wa,context:fe,onAbort(Ke){if(!q.get(Ke))return;const{onDragAbort:da}=ie.current,Sa={id:Ke};da?.(Sa),z({type:"onDragAbort",event:Sa})},onPending(Ke,Xe,da,Sa){if(!q.get(Ke))return;const{onDragPending:Oa}=ie.current,$t={id:Ke,constraint:Xe,initialCoordinates:da,offset:Sa};Oa?.($t),z({type:"onDragPending",event:$t})},onStart(Ke){const Xe=X.current;if(Xe==null)return;const da=q.get(Xe);if(!da)return;const{onDragStart:Sa}=ie.current,ti={activatorEvent:Et,active:{id:Xe,data:da.data,rect:ee}};Cn.unstable_batchedUpdates(()=>{Sa?.(ti),Q(Ko.Initializing),T({type:ut.DragStart,initialCoordinates:Ke,active:Xe}),z({type:"onDragStart",event:ti}),I(ei.current),K(Et)})},onMove(Ke){T({type:ut.DragMove,coordinates:Ke})},onEnd:at(ut.DragEnd),onCancel:at(ut.DragCancel)});ei.current=At;function at(Ke){return async function(){const{active:da,collisions:Sa,over:ti,scrollAdjustedTranslate:Oa}=fe.current;let $t=null;if(da&&Oa){const{cancelDrop:qa}=ie.current;$t={activatorEvent:Et,active:da,collisions:Sa,delta:Oa,over:ti},Ke===ut.DragEnd&&typeof qa=="function"&&await Promise.resolve(qa($t))&&(Ke=ut.DragCancel)}X.current=null,Cn.unstable_batchedUpdates(()=>{T({type:Ke}),Q(Ko.Uninitialized),or(null),I(null),K(null),ei.current=null;const qa=Ke===ut.DragEnd?"onDragEnd":"onDragCancel";if($t){const Ma=ie.current[qa];Ma?.($t),z({type:qa,event:$t})}})}}},[q]),yu=y.useCallback((rt,dt)=>(Nt,wa)=>{const Ut=Nt.nativeEvent,Et=q.get(wa);if(X.current!==null||!Et||Ut.dndKit||Ut.defaultPrevented)return;const At={active:Et};rt(Nt,dt.options,At)===!0&&(Ut.dndKit={capturedBy:dt.sensor},X.current=wa,ji(Nt,dt))},[q,ji]),nr=Qz(_,yu);oT(_),Za(()=>{pe&&G===Ko.Initializing&&Q(Ko.Initialized)},[pe,G]),y.useEffect(()=>{const{onDragMove:rt}=ie.current,{active:dt,activatorEvent:Nt,collisions:wa,over:Ut}=fe.current;if(!dt||!Nt)return;const Et={active:dt,activatorEvent:Nt,collisions:wa,delta:{x:ja.x,y:ja.y},over:Ut};Cn.unstable_batchedUpdates(()=>{rt?.(Et),z({type:"onDragMove",event:Et})})},[ja.x,ja.y]),y.useEffect(()=>{const{active:rt,activatorEvent:dt,collisions:Nt,droppableContainers:wa,scrollAdjustedTranslate:Ut}=fe.current;if(!rt||X.current==null||!dt||!Ut)return;const{onDragOver:Et}=ie.current,At=wa.get(Di),at=At&&At.rect.current?{id:At.id,rect:At.rect.current,data:At.data,disabled:At.disabled}:null,Ke={active:rt,activatorEvent:dt,collisions:Nt,delta:{x:Ut.x,y:Ut.y},over:at};Cn.unstable_batchedUpdates(()=>{or(at),Et?.(Ke),z({type:"onDragOver",event:Ke})})},[Di]),Za(()=>{fe.current={activatorEvent:N,active:ae,activeNode:se,collisionRect:$a,collisions:It,droppableRects:Ve,draggableNodes:q,draggingNode:Xt,draggingNodeRect:_t,droppableContainers:$,over:ua,scrollableAncestors:Lt,scrollAdjustedTranslate:ja},ee.current={initial:_t,translated:$a}},[ae,se,It,$a,q,Xt,_t,Ve,$,ua,Lt,ja]),Gz({...ke,delta:V,draggingRect:$a,pointerCoordinates:$o,scrollableAncestors:Lt,scrollableAncestorRects:Jt});const Tt=y.useMemo(()=>({active:ae,activeNode:se,activeNodeRect:pe,activatorEvent:N,collisions:It,containerNodeRect:ue,dragOverlay:Zt,draggableNodes:q,droppableContainers:$,droppableRects:Ve,over:ua,measureDroppableContainers:D,scrollableAncestors:Lt,scrollableAncestorRects:Jt,measuringConfiguration:Ae,measuringScheduled:te,windowRect:Bt}),[ae,se,pe,N,It,ue,Zt,q,$,Ve,ua,D,Lt,Jt,Ae,te,Bt]),ku=y.useMemo(()=>({activatorEvent:N,activators:nr,active:ae,activeNodeRect:pe,ariaDescribedById:{draggable:ne},dispatch:T,draggableNodes:q,over:ua,measureDroppableContainers:D}),[N,nr,ae,pe,T,ne,q,ua,D]);return ve.createElement(Ay.Provider,{value:L},ve.createElement(bu.Provider,{value:ku},ve.createElement(Uy.Provider,{value:Tt},ve.createElement(Py.Provider,{value:Rn},k)),ve.createElement(fT,{disabled:p?.restoreFocus===!1})),ve.createElement(gz,{...p,hiddenTextDescribedById:ne}));function sr(){const rt=Y?.autoScrollEnabled===!1,dt=typeof h=="object"?h.enabled===!1:h===!1,Nt=H&&!rt&&!dt;return typeof h=="object"?{...h,enabled:Nt}:{enabled:Nt}}}),bT=y.createContext(null),Hv="button",yT="Draggable";function kT(o){let{id:n,data:u,disabled:l=!1,attributes:d}=o;const c=ar(yT),{activators:f,activatorEvent:p,active:h,activeNodeRect:k,ariaDescribedById:_,draggableNodes:g,over:b}=y.useContext(bu),{role:S=Hv,roleDescription:C="draggable",tabIndex:A=0}=d??{},x=h?.id===n,T=y.useContext(x?Py:bT),[z,L]=Jl(),[G,Q]=Jl(),H=iT(f,n),j=Ks(u);Za(()=>(g.set(n,{id:n,key:c,node:z,activatorNode:G,data:j}),()=>{const V=g.get(n);V&&V.key===c&&g.delete(n)}),[g,n]);const q=y.useMemo(()=>({role:S,tabIndex:A,"aria-disabled":l,"aria-pressed":x&&S===Hv?!0:void 0,"aria-roledescription":C,"aria-describedby":_.draggable}),[l,S,A,x,C,_.draggable]);return{active:h,activatorEvent:p,activeNodeRect:k,attributes:q,isDragging:x,listeners:l?void 0:H,node:z,over:b,setNodeRef:L,setActivatorNodeRef:Q,transform:T}}function wT(){return y.useContext(Uy)}const ST="Droppable",MT={timeout:25};function CT(o){let{data:n,disabled:u=!1,id:l,resizeObserverConfig:d}=o;const c=ar(ST),{active:f,dispatch:p,over:h,measureDroppableContainers:k}=y.useContext(bu),_=y.useRef({disabled:u}),g=y.useRef(!1),b=y.useRef(null),S=y.useRef(null),{disabled:C,updateMeasurementsFor:A,timeout:x}={...MT,...d},T=Ks(A??l),z=y.useCallback(()=>{if(!g.current){g.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{k(Array.isArray(T.current)?T.current:[T.current]),S.current=null},x)},[x]),L=vu({callback:z,disabled:C||!f}),G=y.useCallback((q,V)=>{L&&(V&&(L.unobserve(V),g.current=!1),q&&L.observe(q))},[L]),[Q,H]=Jl(G),j=Ks(n);return y.useEffect(()=>{!L||!Q.current||(L.disconnect(),g.current=!1,L.observe(Q.current))},[Q,L]),y.useEffect(()=>(p({type:ut.RegisterDroppable,element:{id:l,key:c,disabled:u,node:Q,rect:b,data:j}}),()=>p({type:ut.UnregisterDroppable,key:c,id:l})),[l]),y.useEffect(()=>{u!==_.current.disabled&&(p({type:ut.SetDroppableDisabled,id:l,key:c,disabled:u}),_.current.disabled=u)},[l,c,u,p]),{active:f,rect:b,isOver:h?.id===l,node:Q,over:h,setNodeRef:H}}function ap(o,n,u){const l=o.slice();return l.splice(u<0?l.length+u:u,0,l.splice(n,1)[0]),l}function AT(o,n){return o.reduce((u,l,d)=>{const c=n.get(l);return c&&(u[d]=c),u},Array(o.length))}function ql(o){return o!==null&&o>=0}function xT(o,n){if(o===n)return!0;if(o.length!==n.length)return!1;for(let u=0;u<o.length;u++)if(o[u]!==n[u])return!1;return!0}function zT(o){return typeof o=="boolean"?{draggable:o,droppable:o}:o}const Hy=o=>{let{rects:n,activeIndex:u,overIndex:l,index:d}=o;const c=ap(n,l,u),f=n[d],p=c[d];return!p||!f?null:{x:p.left-f.left,y:p.top-f.top,scaleX:p.width/f.width,scaleY:p.height/f.height}},Rl={scaleX:1,scaleY:1},TT=o=>{var n;let{activeIndex:u,activeNodeRect:l,index:d,rects:c,overIndex:f}=o;const p=(n=c[u])!=null?n:l;if(!p)return null;if(d===u){const k=c[f];return k?{x:0,y:u<f?k.top+k.height-(p.top+p.height):k.top-p.top,...Rl}:null}const h=NT(c,d,u);return d>u&&d<=f?{x:0,y:-p.height-h,...Rl}:d<u&&d>=f?{x:0,y:p.height+h,...Rl}:{x:0,y:0,...Rl}};function NT(o,n,u){const l=o[n],d=o[n-1],c=o[n+1];return l?u<n?d?l.top-(d.top+d.height):c?c.top-(l.top+l.height):0:c?c.top-(l.top+l.height):d?l.top-(d.top+d.height):0:0}const Fy="Sortable",Vy=ve.createContext({activeIndex:-1,containerId:Fy,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Hy,disabled:{draggable:!1,droppable:!1}});function ET(o){let{children:n,id:u,items:l,strategy:d=Hy,disabled:c=!1}=o;const{active:f,dragOverlay:p,droppableRects:h,over:k,measureDroppableContainers:_}=wT(),g=ar(Fy,u),b=p.rect!==null,S=y.useMemo(()=>l.map(H=>typeof H=="object"&&"id"in H?H.id:H),[l]),C=f!=null,A=f?S.indexOf(f.id):-1,x=k?S.indexOf(k.id):-1,T=y.useRef(S),z=!xT(S,T.current),L=x!==-1&&A===-1||z,G=zT(c);Za(()=>{z&&C&&_(S)},[z,S,C,_]),y.useEffect(()=>{T.current=S},[S]);const Q=y.useMemo(()=>({activeIndex:A,containerId:g,disabled:G,disableTransforms:L,items:S,overIndex:x,useDragOverlay:b,sortedRects:AT(S,h),strategy:d}),[A,g,G.draggable,G.droppable,L,S,x,h,b,d]);return ve.createElement(Vy.Provider,{value:Q},n)}const DT=o=>{let{id:n,items:u,activeIndex:l,overIndex:d}=o;return ap(u,l,d).indexOf(n)},jT=o=>{let{containerId:n,isSorting:u,wasDragging:l,index:d,items:c,newIndex:f,previousItems:p,previousContainerId:h,transition:k}=o;return!k||!l||p!==c&&d===f?!1:u?!0:f!==d&&n===h},OT={duration:200,easing:"ease"},Gy="transform",qT=Ws.Transition.toString({property:Gy,duration:0,easing:"linear"}),RT={roleDescription:"sortable"};function BT(o){let{disabled:n,index:u,node:l,rect:d}=o;const[c,f]=y.useState(null),p=y.useRef(u);return Za(()=>{if(!n&&u!==p.current&&l.current){const h=d.current;if(h){const k=On(l.current,{ignoreTransform:!0}),_={x:h.left-k.left,y:h.top-k.top,scaleX:h.width/k.width,scaleY:h.height/k.height};(_.x||_.y)&&f(_)}}u!==p.current&&(p.current=u)},[n,u,l,d]),y.useEffect(()=>{c&&f(null)},[c]),c}function LT(o){let{animateLayoutChanges:n=jT,attributes:u,disabled:l,data:d,getNewIndex:c=DT,id:f,strategy:p,resizeObserverConfig:h,transition:k=OT}=o;const{items:_,containerId:g,activeIndex:b,disabled:S,disableTransforms:C,sortedRects:A,overIndex:x,useDragOverlay:T,strategy:z}=y.useContext(Vy),L=IT(l,S),G=_.indexOf(f),Q=y.useMemo(()=>({sortable:{containerId:g,index:G,items:_},...d}),[g,d,G,_]),H=y.useMemo(()=>_.slice(_.indexOf(f)),[_,f]),{rect:j,node:q,isOver:V,setNodeRef:$}=CT({id:f,data:Q,disabled:L.droppable,resizeObserverConfig:{updateMeasurementsFor:H,...h}}),{active:W,activatorEvent:ee,activeNodeRect:ae,attributes:X,setNodeRef:Y,listeners:I,isDragging:N,over:K,setActivatorNodeRef:ie,transform:ne}=kT({id:f,data:Q,attributes:{...RT,...u},disabled:L.draggable}),ye=az($,Y),Ae=!!W,Ve=Ae&&!C&&ql(b)&&ql(x),D=!T&&N,te=D&&Ve?ne:null,ce=Ve?te??(p??z)({rects:A,activeNodeRect:ae,activeIndex:b,overIndex:x,index:G}):null,ke=ql(b)&&ql(x)?c({id:f,items:_,activeIndex:b,overIndex:x}):G,we=W?.id,pe=y.useRef({activeId:we,items:_,newIndex:ke,containerId:g}),ue=_!==pe.current.items,fe=n({active:W,containerId:g,isDragging:N,isSorting:Ae,id:f,index:G,items:_,newIndex:pe.current.newIndex,previousItems:pe.current.items,previousContainerId:pe.current.containerId,transition:k,wasDragging:pe.current.activeId!=null}),Ct=BT({disabled:!fe,index:G,node:q,rect:j});return y.useEffect(()=>{Ae&&pe.current.newIndex!==ke&&(pe.current.newIndex=ke),g!==pe.current.containerId&&(pe.current.containerId=g),_!==pe.current.items&&(pe.current.items=_)},[Ae,ke,g,_]),y.useEffect(()=>{if(we===pe.current.activeId)return;if(we!=null&&pe.current.activeId==null){pe.current.activeId=we;return}const Xt=setTimeout(()=>{pe.current.activeId=we},50);return()=>clearTimeout(Xt)},[we]),{active:W,activeIndex:b,attributes:X,data:Q,rect:j,index:G,newIndex:ke,items:_,isOver:V,isSorting:Ae,isDragging:N,listeners:I,node:q,overIndex:x,over:K,setNodeRef:ye,setActivatorNodeRef:ie,setDroppableNodeRef:$,setDraggableNodeRef:Y,transform:Ct??ce,transition:Zt()};function Zt(){if(Ct||ue&&pe.current.newIndex===G)return qT;if(!(D&&!Xm(ee)||!k)&&(Ae||fe))return Ws.Transition.toString({...k,property:Gy})}}function IT(o,n){var u,l;return typeof o=="boolean"?{draggable:o,droppable:!1}:{draggable:(u=o?.draggable)!=null?u:n.draggable,droppable:(l=o?.droppable)!=null?l:n.droppable}}function tu(o){if(!o)return!1;const n=o.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const UT=[Ee.Down,Ee.Right,Ee.Up,Ee.Left],PT=(o,n)=>{let{context:{active:u,collisionRect:l,droppableRects:d,droppableContainers:c,over:f,scrollableAncestors:p}}=n;if(UT.includes(o.code)){if(o.preventDefault(),!u||!l)return;const h=[];c.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const b=d.get(g.id);if(b)switch(o.code){case Ee.Down:l.top<b.top&&h.push(g);break;case Ee.Up:l.top>b.top&&h.push(g);break;case Ee.Left:l.left>b.left&&h.push(g);break;case Ee.Right:l.left<b.left&&h.push(g);break}});const k=bz({collisionRect:l,droppableRects:d,droppableContainers:h});let _=Ty(k,"id");if(_===f?.id&&k.length>1&&(_=k[1].id),_!=null){const g=c.get(u.id),b=c.get(_),S=b?d.get(b.id):null,C=b?.node.current;if(C&&S&&g&&b){const x=_u(C).some((H,j)=>p[j]!==H),T=Ky(g,b),z=HT(g,b),L=x||!T?{x:0,y:0}:{x:z?l.width-S.width:0,y:z?l.height-S.height:0},G={x:S.left,y:S.top};return L.x&&L.y?G:Ys(G,L)}}}};function Ky(o,n){return!tu(o)||!tu(n)?!1:o.data.current.sortable.containerId===n.data.current.sortable.containerId}function HT(o,n){return!tu(o)||!tu(n)||!Ky(o,n)?!1:o.data.current.sortable.index<n.data.current.sortable.index}const FT=o=>w.jsx("div",{className:"todo-drag-handle",...o,children:w.jsx(sA,{})}),VT=({id:o,children:n})=>{const{attributes:u,listeners:l,setNodeRef:d,transform:c,transition:f}=LT({id:o}),p={transform:Ws.Transform.toString(c),transition:f};return w.jsx("div",{ref:d,style:p,children:typeof n=="function"?n({attributes:u,listeners:l}):n})},GT=({items:o,onDragEnd:n,children:u})=>{const l=hz(Nv(tp,{activationConstraint:{distance:5}}),Nv($m,{coordinateGetter:PT}));return w.jsx(vT,{sensors:l,collisionDetection:vz,onDragEnd:n,children:w.jsx(ET,{items:o,strategy:TT,children:w.jsx("div",{children:u})})})};function KT({todoRef:o,floatRef:n,position:u,xPosition:l,yPosition:d}){const c=Zo(),[f,p]=y.useState(JSON.parse(localStorage.getItem("todo"))||[]),[h,k]=y.useState(localStorage.getItem("todoPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const T=z=>{z==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",T),()=>{_e.off("refresh",T)}},[]);const b=()=>{k(!0)},S=()=>{k(localStorage.getItem("todoPinned")==="true")},C=T=>{const{active:z,over:L}=T;if(L&&z.id!==L.id){const G=Number(z.id),Q=Number(L.id);p(H=>{const j=ap(H,G,Q);return localStorage.setItem("todo",JSON.stringify(j)),j})}},A=(T,z,L)=>{p(G=>{const Q=[...G];switch(T){case"add":Q.push({value:"",done:!1});break;case"remove":Q.splice(z,1);break;case"set":Q[z]={value:L.target.value,done:Q[z].done};break;case"done":Q[z].done=!Q[z].done;break}return localStorage.setItem("todo",JSON.stringify(Q)),Q})},x=()=>{me.stats.postEvent("feature","Todo pin");const T=localStorage.getItem("todoPinned")==="true";localStorage.setItem("todoPinned",!T),k(!T)};return w.jsxs("div",{className:"notes",onMouseLeave:S,onFocus:b,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||S()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:b,onFocus:b,"aria-label":c("widgets.navbar.todo.title"),ref:o,style:{fontSize:_},children:w.jsx(L_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:w.jsxs("div",{className:"flexTodo",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(L_,{}),w.jsx("span",{children:c("widgets.navbar.todo.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:x,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.navbar.todo.add"),children:w.jsx("button",{onClick:()=>A("add"),"aria-label":c("widgets.navbar.todo.add"),children:w.jsx(VC,{})})})]}),w.jsx("div",{className:"todoRows",children:f.length===0?w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:c("widgets.navbar.todo.no_todos")}),w.jsx("span",{className:"subtitle",children:c("modals.main.settings.sections.message.add_some")})]})}):w.jsx(GT,{items:f.map((T,z)=>z),onDragEnd:C,children:f.map((T,z)=>w.jsx(VT,{id:z,children:({attributes:L,listeners:G})=>w.jsxs("div",{className:"todoRow"+(T.done?" done":""),children:[w.jsx("div",{className:"todo-checkbox"+(T.done?" checked":""),role:"checkbox","aria-checked":!!T.done,"aria-label":T.value||c("widgets.navbar.todo.title"),tabIndex:0,onClick:()=>A("done",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("done",z))},children:T.done&&w.jsx(Bm,{})}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:T.value,onChange:Q=>A("set",z,Q),readOnly:T.done,minRows:1}),w.jsx(ht,{title:c("modals.main.marketplace.product.buttons.remove"),children:w.jsx(ZC,{role:"button",tabIndex:0,"aria-label":c("modals.main.marketplace.product.buttons.remove"),onClick:()=>A("remove",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("remove",z))}})}),w.jsx(FT,{...L,...G})]})},z))})})]})})]})}function YT(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(KT,{todoRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const WT=y.memo(YT);function QT(){const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState(localStorage.getItem("refreshOption")||"");y.useEffect(()=>{const p=h=>{(h==="navbar"||h==="background"||h==="language")&&(d(localStorage.getItem("refreshOption")),c())};return _e.on("refresh",p),c(),()=>{_e.off("refresh",p)}},[o]);function c(){let p;switch(localStorage.getItem("refreshOption")){case"background":p=o("modals.main.settings.sections.background.title");break;case"quote":p=o("modals.main.settings.sections.quote.title");break;case"quotebackground":p=new Intl.ListFormat(localStorage.getItem("language")?.replace(/_/gm,"-")||"en-GB",{style:"long",type:"conjunction"}).format([o("modals.main.settings.sections.quote.title"),o("modals.main.settings.sections.background.title")]);break;default:p=o("modals.main.settings.sections.appearance.navbar.refresh_options.page");break}u(p)}function f(){switch(l){case"background":return _e.emit("refresh","backgroundrefresh");case"quote":return _e.emit("refresh","quoterefresh");case"quotebackground":return _e.emit("refresh","quoterefresh"),_e.emit("refresh","backgroundrefresh");default:window.location.reload()}}return w.jsx(ht,{title:o("widgets.navbar.tooltips.refresh"),subtitle:n,children:w.jsx("button",{className:"navbarButton",onClick:f,"aria-label":o("widgets.navbar.tooltips.refresh"),children:w.jsx(Us,{className:"refreshicon topicons"})})})}const Yy=y.memo(({fontSize:o})=>{const n=Zo(),[u,l]=y.useState(!1),d=y.useRef(!1),c=y.useCallback(p=>{p?delete document.documentElement.dataset.bgMaximised:document.documentElement.dataset.bgMaximised="true";const h=document.getElementById("backgroundVideo");h&&(h.style.webkitFilter=p?Um():"blur(0px) brightness(100%)");const k=document.getElementById("backgroundFilterOverlay");if(k){const _=p?Pm():{backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""};k.style.backdropFilter=_.backdropFilter,k.style.webkitBackdropFilter=_.WebkitBackdropFilter,k.style.backgroundColor=_.backgroundColor}},[]);y.useEffect(()=>()=>{if(!d.current)return;const p=document.getElementById("widgets");p&&(p.style.display="flex"),c(!0)},[c]);const f=y.useCallback(()=>{const p=document.getElementById("widgets");u?(p&&(p.style.display="flex"),l(!1),d.current=!1,c(!0),me.stats.postEvent("feature","Background unmaximise")):(p&&(p.style.display="none"),l(!0),d.current=!0,c(!1),me.stats.postEvent("feature","Background maximise"))},[u,c]);return w.jsx(ht,{title:n("modals.main.settings.sections.background.buttons.view"),children:w.jsx("button",{className:"navbarButton",style:{fontSize:o},onClick:f,"aria-label":n("modals.main.settings.sections.background.buttons.view"),children:w.jsx(jC,{className:"topicons"})})})});Yy.displayName="Maximise";const ZT=({openModal:o})=>{const n=Zo();y.useRef();const[u]=y.useState(localStorage.getItem("widgetStyle")==="legacy"?"navbar old":"navbar new"),l=()=>{switch(localStorage.getItem("refreshOption")){case"background":return n("modals.main.settings.sections.background.title");case"quote":return n("modals.main.settings.sections.quote.title");case"quotebackground":return n("modals.main.settings.sections.quote.title")+" "+n("modals.main.settings.sections.background.title");default:return n("modals.main.settings.sections.appearance.navbar.refresh_options.page")}},d=()=>Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem",[c,f]=y.useState(l()),[p,h]=y.useState(localStorage.getItem("refresh")),[k,_]=y.useState(localStorage.getItem("refreshOption")||""),[g,b]=y.useState(!1),[S,C]=y.useState(d()),[A,x]=y.useState(localStorage.getItem("navbarHover")==="true"),[T,z]=y.useState(localStorage.getItem("view")==="true"),[L,G]=y.useState(localStorage.getItem("notesEnabled")==="true"),[Q,H]=y.useState(localStorage.getItem("todoEnabled")==="true"),[j,q]=y.useState(localStorage.getItem("appsEnabled")==="true"),[V,$]=y.useState(localStorage.getItem("background")==="true");y.useEffect(()=>{const ee=ae=>{(ae==="navbar"||ae==="background")&&(h(localStorage.getItem("refresh")),_(localStorage.getItem("refreshOption")),x(localStorage.getItem("navbarHover")==="true"),z(localStorage.getItem("view")==="true"),G(localStorage.getItem("notesEnabled")==="true"),H(localStorage.getItem("todoEnabled")==="true"),q(localStorage.getItem("appsEnabled")==="true"),$(localStorage.getItem("background")==="true"),f(l()),C(d()))};return _e.on("refresh",ee),()=>{_e.off("refresh",ee)}},[]);const W=w.jsx("div",{className:"navbar-container",children:w.jsxs("div",{className:u,children:[T&&V?w.jsx(Yy,{fontSize:S}):null,L&&w.jsx(tz,{fontSize:S}),Q&&w.jsx(WT,{fontSize:S}),j&&w.jsx(P2,{fontSize:S}),p!=="false"&&w.jsx(QT,{fontSize:S}),w.jsx(ht,{title:n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx("button",{className:"navbarButton",onClick:()=>o("mainModal"),style:{fontSize:S},"aria-label":n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx(YC,{className:"settings-icon topicons"})})})]})});return A?w.jsx("div",{className:"navbar-hover",children:W}):W},XT=()=>{const[o,n]=y.useState(!1),[u,l]=y.useState(null),d=y.useRef(!1);d.current=o,y.useEffect(()=>{H_()&&(l(js()),n(!0));const f=h=>{h==="openMainModal"&&(l(js()),n(!0))},p=()=>{!d.current&&H_()&&(l(js()),n(!0))};return _e.on("modal",f),window.addEventListener("popstate",p),()=>{_e.off("modal",f),window.removeEventListener("popstate",p)}},[]);const c=f=>{n(f),l(null),f!==!1&&Gl("#settings")};return w.jsxs(w.Fragment,{children:[w.jsx(ZT,{openModal:()=>c(!0)}),w.jsx(L2,{closeTimeoutMS:300,id:"modal",onRequestClose:()=>c(!1),isOpen:o,className:"Modal mainModal",overlayClassName:"Overlay",ariaHideApp:!1,children:w.jsx(_2,{modalClose:()=>c(!1),deepLinkData:u})})]})},JT=o=>{y.useEffect(()=>{localStorage.getItem("firstRun")||(u2(),Hl?window.location.reload():o?.()),lm();const n=l=>{l==="other"&&lm(!0)},u=()=>{lm(!0),o?.()};return _e.on("refresh",n),_e.on("settingsimported",u),me.stats.tabLoad(),()=>{_e.off("refresh",n),_e.off("settingsimported",u)}},[])},$T=()=>{const[o,n]=y.useState(2500),[u,l]=y.useState(!1);y.useEffect(()=>{const p=localStorage.getItem("toastDisplayTime"),h=localStorage.getItem("background");p&&n(parseInt(p,10)),h==="true"&&l(!0);const k=_=>{_==="background"&&l(localStorage.getItem("background")==="true")};return _e.on("refresh",k),()=>_e.off("refresh",k)},[]);const[d,c]=y.useState(0);JT(()=>{c(p=>p+1),l(localStorage.getItem("background")==="true"),n(parseInt(localStorage.getItem("toastDisplayTime"),10)||2500)});const f=localStorage.getItem("language")||"en_GB";return w.jsxs(vC,{initialLanguage:f,children:[u&&w.jsx(IA,{},d),w.jsx(z0,{position:"top-center",autoClose:o,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0}),w.jsxs("div",{id:"center",children:[w.jsx(w2,{}),w.jsx(XT,{})]},d)]})};class eN extends y.PureComponent{constructor(n){super(n),this.state={error:!1}}componentDidCatch(n,u){this.setState({error:!0}),console.error("WebBrain new tab crashed:",n,u)}render(){return this.state.error?w.jsx("div",{className:"criticalError",children:w.jsxs("div",{className:"criticalError-message",children:[w.jsx("h1",{children:"The WebBrain new tab hit an error"}),w.jsx("p",{children:"Reload the tab. If it keeps happening, reset the new tab settings or report it."}),w.jsxs("div",{className:"criticalError-actions",children:[w.jsx("button",{onClick:()=>window.location.reload(),children:"Reload"}),w.jsx("a",{href:"https://github.com/esokullu/webbrain/issues/new",target:"_blank",rel:"noreferrer",children:"Report issue"})]})]})}):this.props.children}}const Wy=gC();localStorage.setItem("language",Wy);me.language=Bl();me.languagecode=Wy;Mm();me.getMessage=(o,n)=>Db(o)?Wt(o):me.language.getMessage(me.languagecode,o,n||{});const tN=document.getElementById("root"),aN=KS.createRoot(tN);aN.render(w.jsx(eN,{children:w.jsx($T,{})}));export{tp as $,V2 as A,Gs as B,H2 as C,xN as D,_e as E,jC as F,U_ as G,L_ as H,P_ as I,sN as J,X2 as K,gN as L,MN as M,J2 as N,Q2 as O,Qo as P,sA as Q,ve as R,y2 as S,Wo as T,LT as U,Ws as V,ZC as W,hz as X,Nv as Y,PT as Z,$m as _,Hb as a,vT as a0,vz as a1,ET as a2,TT as a3,pN as a4,ap as a5,aA as a6,Ym as a7,Om as a8,oN as a9,le as aA,xi as aB,Cn as aa,zN as ab,Im as ac,uN as ad,wN as ae,ht as af,jA as ag,nN as ah,cN as ai,W2 as aj,EN as ak,NN as al,TN as am,zv as an,bN as ao,kN as ap,ix as aq,jN as ar,hN as as,HC as at,qC as au,dN as av,vN as aw,yN as ax,am as ay,Hm as az,mA as b,Fb as c,y as d,CN as e,fN as f,pA as g,En as h,SN as i,w as j,AN as k,Ps as l,Us as m,_N as n,mN as o,lN as p,gy as q,Hl as r,l2 as s,rN as t,Zo as u,me as v,I_ as w,L2 as x,je as y,DN as z};
+ `},gz={onDragStart(o){let{active:n}=o;return"Picked up draggable item "+n.id+"."},onDragOver(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was moved over droppable area "+u.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(o){let{active:n,over:u}=o;return u?"Draggable item "+n.id+" was dropped over droppable area "+u.id:"Draggable item "+n.id+" was dropped."},onDragCancel(o){let{active:n}=o;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function hz(o){let{announcements:n=gz,container:u,hiddenTextDescribedById:l,screenReaderInstructions:d=fz}=o;const{announce:c,announcement:f}=cz(),p=ar("DndLiveRegion"),[h,k]=y.useState(!1);if(y.useEffect(()=>{k(!0)},[]),mz(y.useMemo(()=>({onDragStart(g){let{active:b}=g;c(n.onDragStart({active:b}))},onDragMove(g){let{active:b,over:S}=g;n.onDragMove&&c(n.onDragMove({active:b,over:S}))},onDragOver(g){let{active:b,over:S}=g;c(n.onDragOver({active:b,over:S}))},onDragEnd(g){let{active:b,over:S}=g;c(n.onDragEnd({active:b,over:S}))},onDragCancel(g){let{active:b,over:S}=g;c(n.onDragCancel({active:b,over:S}))}}),[c,n])),!h)return null;const _=ve.createElement(ve.Fragment,null,ve.createElement(uz,{id:l,value:d.draggable}),ve.createElement(dz,{id:p,announcement:f}));return u?Cn.createPortal(_,u):_}var ut;(function(o){o.DragStart="dragStart",o.DragMove="dragMove",o.DragEnd="dragEnd",o.DragCancel="dragCancel",o.DragOver="dragOver",o.RegisterDroppable="registerDroppable",o.SetDroppableDisabled="setDroppableDisabled",o.UnregisterDroppable="unregisterDroppable"})(ut||(ut={}));function $l(){}function Nv(o,n){return y.useMemo(()=>({sensor:o,options:n??{}}),[o,n])}function _z(){for(var o=arguments.length,n=new Array(o),u=0;u<o;u++)n[u]=arguments[u];return y.useMemo(()=>[...n].filter(l=>l!=null),[...n])}const Da=Object.freeze({x:0,y:0});function xy(o,n){return Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))}function zy(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return u-l}function vz(o,n){let{data:{value:u}}=o,{data:{value:l}}=n;return l-u}function Ev(o){let{left:n,top:u,height:l,width:d}=o;return[{x:n,y:u},{x:n+d,y:u},{x:n,y:u+l},{x:n+d,y:u+l}]}function Ty(o,n){if(!o||o.length===0)return null;const[u]=o;return u[n]}function Dv(o,n,u){return n===void 0&&(n=o.left),u===void 0&&(u=o.top),{x:n+o.width*.5,y:u+o.height*.5}}const bz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Dv(n,n.left,n.top),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=xy(Dv(h),d);c.push({id:p,data:{droppableContainer:f,value:k}})}}return c.sort(zy)},yz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=Ev(n),c=[];for(const f of l){const{id:p}=f,h=u.get(p);if(h){const k=Ev(h),_=d.reduce((b,S,C)=>b+xy(k[C],S),0),g=Number((_/4).toFixed(4));c.push({id:p,data:{droppableContainer:f,value:g}})}}return c.sort(zy)};function kz(o,n){const u=Math.max(n.top,o.top),l=Math.max(n.left,o.left),d=Math.min(n.left+n.width,o.left+o.width),c=Math.min(n.top+n.height,o.top+o.height),f=d-l,p=c-u;if(l<d&&u<c){const h=n.width*n.height,k=o.width*o.height,_=f*p,g=_/(h+k-_);return Number(g.toFixed(4))}return 0}const wz=o=>{let{collisionRect:n,droppableRects:u,droppableContainers:l}=o;const d=[];for(const c of l){const{id:f}=c,p=u.get(f);if(p){const h=kz(p,n);h>0&&d.push({id:f,data:{droppableContainer:c,value:h}})}}return d.sort(vz)};function Sz(o,n,u){return{...o,scaleX:n&&u?n.width/u.width:1,scaleY:n&&u?n.height/u.height:1}}function Ny(o,n){return o&&n?{x:o.left-n.left,y:o.top-n.top}:Da}function Mz(o){return function(u){for(var l=arguments.length,d=new Array(l>1?l-1:0),c=1;c<l;c++)d[c-1]=arguments[c];return d.reduce((f,p)=>({...f,top:f.top+o*p.y,bottom:f.bottom+o*p.y,left:f.left+o*p.x,right:f.right+o*p.x}),{...u})}}const Cz=Mz(1);function Az(o){if(o.startsWith("matrix3d(")){const n=o.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(o.startsWith("matrix(")){const n=o.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function xz(o,n,u){const l=Az(n);if(!l)return o;const{scaleX:d,scaleY:c,x:f,y:p}=l,h=o.left-f-(1-d)*parseFloat(u),k=o.top-p-(1-c)*parseFloat(u.slice(u.indexOf(" ")+1)),_=d?o.width/d:o.width,g=c?o.height/c:o.height;return{width:_,height:g,top:k,right:h+_,bottom:k+g,left:h}}const zz={ignoreTransform:!1};function On(o,n){n===void 0&&(n=zz);let u=o.getBoundingClientRect();if(n.ignoreTransform){const{transform:k,transformOrigin:_}=Qt(o).getComputedStyle(o);k&&(u=xz(u,k,_))}const{top:l,left:d,width:c,height:f,bottom:p,right:h}=u;return{top:l,left:d,width:c,height:f,bottom:p,right:h}}function jv(o){return On(o,{ignoreTransform:!0})}function Tz(o){const n=o.innerWidth,u=o.innerHeight;return{top:0,left:0,right:n,bottom:u,width:n,height:u}}function Nz(o,n){return n===void 0&&(n=Qt(o).getComputedStyle(o)),n.position==="fixed"}function Ez(o,n){n===void 0&&(n=Qt(o).getComputedStyle(o));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(d=>{const c=n[d];return typeof c=="string"?u.test(c):!1})}function _u(o,n){const u=[];function l(d){if(n!=null&&u.length>=n||!d)return u;if(Qm(d)&&d.scrollingElement!=null&&!u.includes(d.scrollingElement))return u.push(d.scrollingElement),u;if(!er(d)||My(d)||u.includes(d))return u;const c=Qt(o).getComputedStyle(d);return d!==o&&Ez(d,c)&&u.push(d),Nz(d,c)?u:l(d.parentNode)}return o?l(o):u}function Ey(o){const[n]=_u(o,1);return n??null}function hm(o){return!hu||!o?null:Dn(o)?o:Wm(o)?Qm(o)||o===jn(o).scrollingElement?window:er(o)?o:null:null}function Dy(o){return Dn(o)?o.scrollX:o.scrollLeft}function jy(o){return Dn(o)?o.scrollY:o.scrollTop}function Em(o){return{x:Dy(o),y:jy(o)}}var gt;(function(o){o[o.Forward=1]="Forward",o[o.Backward=-1]="Backward"})(gt||(gt={}));function Oy(o){return!hu||!o?!1:o===document.scrollingElement}function qy(o){const n={x:0,y:0},u=Oy(o)?{height:window.innerHeight,width:window.innerWidth}:{height:o.clientHeight,width:o.clientWidth},l={x:o.scrollWidth-u.width,y:o.scrollHeight-u.height},d=o.scrollTop<=n.y,c=o.scrollLeft<=n.x,f=o.scrollTop>=l.y,p=o.scrollLeft>=l.x;return{isTop:d,isLeft:c,isBottom:f,isRight:p,maxScroll:l,minScroll:n}}const Dz={x:.2,y:.2};function jz(o,n,u,l,d){let{top:c,left:f,right:p,bottom:h}=u;l===void 0&&(l=10),d===void 0&&(d=Dz);const{isTop:k,isBottom:_,isLeft:g,isRight:b}=qy(o),S={x:0,y:0},C={x:0,y:0},A={height:n.height*d.y,width:n.width*d.x};return!k&&c<=n.top+A.height?(S.y=gt.Backward,C.y=l*Math.abs((n.top+A.height-c)/A.height)):!_&&h>=n.bottom-A.height&&(S.y=gt.Forward,C.y=l*Math.abs((n.bottom-A.height-h)/A.height)),!b&&p>=n.right-A.width?(S.x=gt.Forward,C.x=l*Math.abs((n.right-A.width-p)/A.width)):!g&&f<=n.left+A.width&&(S.x=gt.Backward,C.x=l*Math.abs((n.left+A.width-f)/A.width)),{direction:S,speed:C}}function Oz(o){if(o===document.scrollingElement){const{innerWidth:c,innerHeight:f}=window;return{top:0,left:0,right:c,bottom:f,width:c,height:f}}const{top:n,left:u,right:l,bottom:d}=o.getBoundingClientRect();return{top:n,left:u,right:l,bottom:d,width:o.clientWidth,height:o.clientHeight}}function Ry(o){return o.reduce((n,u)=>zn(n,Em(u)),Da)}function qz(o){return o.reduce((n,u)=>n+Dy(u),0)}function Rz(o){return o.reduce((n,u)=>n+jy(u),0)}function Bz(o,n){if(n===void 0&&(n=On),!o)return;const{top:u,left:l,bottom:d,right:c}=n(o);Ey(o)&&(d<=0||c<=0||u>=window.innerHeight||l>=window.innerWidth)&&o.scrollIntoView({block:"center",inline:"center"})}const Lz=[["x",["left","right"],qz],["y",["top","bottom"],Rz]];class Jm{constructor(n,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const l=_u(u),d=Ry(l);this.rect={...n},this.width=n.width,this.height=n.height;for(const[c,f,p]of Lz)for(const h of f)Object.defineProperty(this,h,{get:()=>{const k=p(l),_=d[c]-k;return this.rect[h]+_},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Rs{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var l;return(l=this.target)==null?void 0:l.removeEventListener(...u)})},this.target=n}add(n,u,l){var d;(d=this.target)==null||d.addEventListener(n,u,l),this.listeners.push([n,u,l])}}function Iz(o){const{EventTarget:n}=Qt(o);return o instanceof n?o:jn(o)}function _m(o,n){const u=Math.abs(o.x),l=Math.abs(o.y);return typeof n=="number"?Math.sqrt(u**2+l**2)>n:"x"in n&&"y"in n?u>n.x&&l>n.y:"x"in n?u>n.x:"y"in n?l>n.y:!1}var ka;(function(o){o.Click="click",o.DragStart="dragstart",o.Keydown="keydown",o.ContextMenu="contextmenu",o.Resize="resize",o.SelectionChange="selectionchange",o.VisibilityChange="visibilitychange"})(ka||(ka={}));function Ov(o){o.preventDefault()}function Uz(o){o.stopPropagation()}var Ee;(function(o){o.Space="Space",o.Down="ArrowDown",o.Right="ArrowRight",o.Left="ArrowLeft",o.Up="ArrowUp",o.Esc="Escape",o.Enter="Enter",o.Tab="Tab"})(Ee||(Ee={}));const By={start:[Ee.Space,Ee.Enter],cancel:[Ee.Esc],end:[Ee.Space,Ee.Enter,Ee.Tab]},Pz=(o,n)=>{let{currentCoordinates:u}=n;switch(o.code){case Ee.Right:return{...u,x:u.x+25};case Ee.Left:return{...u,x:u.x-25};case Ee.Down:return{...u,y:u.y+25};case Ee.Up:return{...u,y:u.y-25}}};class $m{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:u}}=n;this.props=n,this.listeners=new Rs(jn(u)),this.windowListeners=new Rs(Qt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ka.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:u}=this.props,l=n.node.current;l&&Bz(l),u(Da)}handleKeyDown(n){if(Xm(n)){const{active:u,context:l,options:d}=this.props,{keyboardCodes:c=By,coordinateGetter:f=Pz,scrollBehavior:p="smooth"}=d,{code:h}=n;if(c.end.includes(h)){this.handleEnd(n);return}if(c.cancel.includes(h)){this.handleCancel(n);return}const{collisionRect:k}=l.current,_=k?{x:k.left,y:k.top}:Da;this.referenceCoordinates||(this.referenceCoordinates=_);const g=f(n,{active:u,context:l.current,currentCoordinates:_});if(g){const b=Ys(g,_),S={x:0,y:0},{scrollableAncestors:C}=l.current;for(const A of C){const x=n.code,{isTop:T,isRight:z,isLeft:L,isBottom:G,maxScroll:Q,minScroll:H}=qy(A),j=Oz(A),q={x:Math.min(x===Ee.Right?j.right-j.width/2:j.right,Math.max(x===Ee.Right?j.left:j.left+j.width/2,g.x)),y:Math.min(x===Ee.Down?j.bottom-j.height/2:j.bottom,Math.max(x===Ee.Down?j.top:j.top+j.height/2,g.y))},V=x===Ee.Right&&!z||x===Ee.Left&&!L,$=x===Ee.Down&&!G||x===Ee.Up&&!T;if(V&&q.x!==g.x){const W=A.scrollLeft+b.x,ee=x===Ee.Right&&W<=Q.x||x===Ee.Left&&W>=H.x;if(ee&&!b.y){A.scrollTo({left:W,behavior:p});return}ee?S.x=A.scrollLeft-W:S.x=x===Ee.Right?A.scrollLeft-Q.x:A.scrollLeft-H.x,S.x&&A.scrollBy({left:-S.x,behavior:p});break}else if($&&q.y!==g.y){const W=A.scrollTop+b.y,ee=x===Ee.Down&&W<=Q.y||x===Ee.Up&&W>=H.y;if(ee&&!b.x){A.scrollTo({top:W,behavior:p});return}ee?S.y=A.scrollTop-W:S.y=x===Ee.Down?A.scrollTop-Q.y:A.scrollTop-H.y,S.y&&A.scrollBy({top:-S.y,behavior:p});break}}this.handleMove(n,zn(Ys(g,this.referenceCoordinates),S))}}}handleMove(n,u){const{onMove:l}=this.props;n.preventDefault(),l(u)}handleEnd(n){const{onEnd:u}=this.props;n.preventDefault(),this.detach(),u()}handleCancel(n){const{onCancel:u}=this.props;n.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}$m.activators=[{eventName:"onKeyDown",handler:(o,n,u)=>{let{keyboardCodes:l=By,onActivation:d}=n,{active:c}=u;const{code:f}=o.nativeEvent;if(l.start.includes(f)){const p=c.activatorNode.current;return p&&o.target!==p?!1:(o.preventDefault(),d?.({event:o.nativeEvent}),!0)}return!1}}];function qv(o){return!!(o&&"distance"in o)}function Rv(o){return!!(o&&"delay"in o)}class ep{constructor(n,u,l){var d;l===void 0&&(l=Iz(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=u;const{event:c}=n,{target:f}=c;this.props=n,this.events=u,this.document=jn(f),this.documentListeners=new Rs(this.document),this.listeners=new Rs(l),this.windowListeners=new Rs(Qt(f)),this.initialCoordinates=(d=Nm(c))!=null?d:Da,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:u,bypassActivationConstraint:l}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.DragStart,Ov),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),this.windowListeners.add(ka.ContextMenu,Ov),this.documentListeners.add(ka.Keydown,this.handleKeydown),u){if(l!=null&&l({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Rv(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(qv(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,u){const{active:l,onPending:d}=this.props;d(l,n,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:n}=this,{onStart:u}=this.props;n&&(this.activated=!0,this.documentListeners.add(ka.Click,Uz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ka.SelectionChange,this.removeTextSelection),u(n))}handleMove(n){var u;const{activated:l,initialCoordinates:d,props:c}=this,{onMove:f,options:{activationConstraint:p}}=c;if(!d)return;const h=(u=Nm(n))!=null?u:Da,k=Ys(d,h);if(!l&&p){if(qv(p)){if(p.tolerance!=null&&_m(k,p.tolerance))return this.handleCancel();if(_m(k,p.distance))return this.handleStart()}if(Rv(p)&&_m(k,p.tolerance))return this.handleCancel();this.handlePending(p,k);return}n.cancelable&&n.preventDefault(),f(h)}handleEnd(){const{onAbort:n,onEnd:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleCancel(){const{onAbort:n,onCancel:u}=this.props;this.detach(),this.activated||n(this.props.active),u()}handleKeydown(n){n.code===Ee.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Hz={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class tp extends ep{constructor(n){const{event:u}=n,l=jn(u.target);super(n,Hz,l)}}tp.activators=[{eventName:"onPointerDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return!u.isPrimary||u.button!==0?!1:(l?.({event:u}),!0)}}];const Fz={move:{name:"mousemove"},end:{name:"mouseup"}};var Dm;(function(o){o[o.RightClick=2]="RightClick"})(Dm||(Dm={}));class Vz extends ep{constructor(n){super(n,Fz,jn(n.event.target))}}Vz.activators=[{eventName:"onMouseDown",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;return u.button===Dm.RightClick?!1:(l?.({event:u}),!0)}}];const vm={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Gz extends ep{constructor(n){super(n,vm)}static setup(){return window.addEventListener(vm.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(vm.move.name,n)};function n(){}}}Gz.activators=[{eventName:"onTouchStart",handler:(o,n)=>{let{nativeEvent:u}=o,{onActivation:l}=n;const{touches:d}=u;return d.length>1?!1:(l?.({event:u}),!0)}}];var Bs;(function(o){o[o.Pointer=0]="Pointer",o[o.DraggableRect=1]="DraggableRect"})(Bs||(Bs={}));var eu;(function(o){o[o.TreeOrder=0]="TreeOrder",o[o.ReversedTreeOrder=1]="ReversedTreeOrder"})(eu||(eu={}));function Kz(o){let{acceleration:n,activator:u=Bs.Pointer,canScroll:l,draggingRect:d,enabled:c,interval:f=5,order:p=eu.TreeOrder,pointerCoordinates:h,scrollableAncestors:k,scrollableAncestorRects:_,delta:g,threshold:b}=o;const S=Wz({delta:g,disabled:!c}),[C,A]=iz(),x=y.useRef({x:0,y:0}),T=y.useRef({x:0,y:0}),z=y.useMemo(()=>{switch(u){case Bs.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case Bs.DraggableRect:return d}},[u,d,h]),L=y.useRef(null),G=y.useCallback(()=>{const H=L.current;if(!H)return;const j=x.current.x*T.current.x,q=x.current.y*T.current.y;H.scrollBy(j,q)},[]),Q=y.useMemo(()=>p===eu.TreeOrder?[...k].reverse():k,[p,k]);y.useEffect(()=>{if(!c||!k.length||!z){A();return}for(const H of Q){if(l?.(H)===!1)continue;const j=k.indexOf(H),q=_[j];if(!q)continue;const{direction:V,speed:$}=jz(H,q,z,n,b);for(const W of["x","y"])S[W][V[W]]||($[W]=0,V[W]=0);if($.x>0||$.y>0){A(),L.current=H,C(G,f),x.current=$,T.current=V;return}}x.current={x:0,y:0},T.current={x:0,y:0},A()},[n,G,l,A,c,f,JSON.stringify(z),JSON.stringify(S),C,k,Q,_,JSON.stringify(b)])}const Yz={x:{[gt.Backward]:!1,[gt.Forward]:!1},y:{[gt.Backward]:!1,[gt.Forward]:!1}};function Wz(o){let{delta:n,disabled:u}=o;const l=Tm(n);return tr(d=>{if(u||!l||!d)return Yz;const c={x:Math.sign(n.x-l.x),y:Math.sign(n.y-l.y)};return{x:{[gt.Backward]:d.x[gt.Backward]||c.x===-1,[gt.Forward]:d.x[gt.Forward]||c.x===1},y:{[gt.Backward]:d.y[gt.Backward]||c.y===-1,[gt.Forward]:d.y[gt.Forward]||c.y===1}}},[u,n,l])}function Qz(o,n){const u=n!=null?o.get(n):void 0,l=u?u.node.current:null;return tr(d=>{var c;return n==null?null:(c=l??d)!=null?c:null},[l,n])}function Zz(o,n){return y.useMemo(()=>o.reduce((u,l)=>{const{sensor:d}=l,c=d.activators.map(f=>({eventName:f.eventName,handler:n(f.handler,l)}));return[...u,...c]},[]),[o,n])}var Qs;(function(o){o[o.Always=0]="Always",o[o.BeforeDragging=1]="BeforeDragging",o[o.WhileDragging=2]="WhileDragging"})(Qs||(Qs={}));var jm;(function(o){o.Optimized="optimized"})(jm||(jm={}));const Bv=new Map;function Xz(o,n){let{dragging:u,dependencies:l,config:d}=n;const[c,f]=y.useState(null),{frequency:p,measure:h,strategy:k}=d,_=y.useRef(o),g=x(),b=Ks(g),S=y.useCallback(function(T){T===void 0&&(T=[]),!b.current&&f(z=>z===null?T:z.concat(T.filter(L=>!z.includes(L))))},[b]),C=y.useRef(null),A=tr(T=>{if(g&&!u)return Bv;if(!T||T===Bv||_.current!==o||c!=null){const z=new Map;for(let L of o){if(!L)continue;if(c&&c.length>0&&!c.includes(L.id)&&L.rect.current){z.set(L.id,L.rect.current);continue}const G=L.node.current,Q=G?new Jm(h(G),G):null;L.rect.current=Q,Q&&z.set(L.id,Q)}return z}return T},[o,c,u,g,h]);return y.useEffect(()=>{_.current=o},[o]),y.useEffect(()=>{g||S()},[u,g]),y.useEffect(()=>{c&&c.length>0&&f(null)},[JSON.stringify(c)]),y.useEffect(()=>{g||typeof p!="number"||C.current!==null||(C.current=setTimeout(()=>{S(),C.current=null},p))},[p,g,S,...l]),{droppableRects:A,measureDroppableContainers:S,measuringScheduled:c!=null};function x(){switch(k){case Qs.Always:return!1;case Qs.BeforeDragging:return u;default:return!u}}}function Ly(o,n){return tr(u=>o?u||(typeof n=="function"?n(o):o):null,[n,o])}function Jz(o,n){return Ly(o,n)}function $z(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:c}=window;return new c(l)},[l,u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function vu(o){let{callback:n,disabled:u}=o;const l=Zm(n),d=y.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:c}=window;return new c(l)},[u]);return y.useEffect(()=>()=>d?.disconnect(),[d]),d}function eT(o){return new Jm(On(o),o)}function Lv(o,n,u){n===void 0&&(n=eT);const[l,d]=y.useState(null);function c(){d(h=>{if(!o)return null;if(o.isConnected===!1){var k;return(k=h??u)!=null?k:null}const _=n(o);return JSON.stringify(h)===JSON.stringify(_)?h:_})}const f=$z({callback(h){if(o)for(const k of h){const{type:_,target:g}=k;if(_==="childList"&&g instanceof HTMLElement&&g.contains(o)){c();break}}}}),p=vu({callback:c});return Za(()=>{c(),o?(p?.observe(o),f?.observe(document.body,{childList:!0,subtree:!0})):(p?.disconnect(),f?.disconnect())},[o]),l}function tT(o){const n=Ly(o);return Ny(o,n)}const Iv=[];function aT(o){const n=y.useRef(o),u=tr(l=>o?l&&l!==Iv&&o&&n.current&&o.parentNode===n.current.parentNode?l:_u(o):Iv,[o]);return y.useEffect(()=>{n.current=o},[o]),u}function oT(o){const[n,u]=y.useState(null),l=y.useRef(o),d=y.useCallback(c=>{const f=hm(c.target);f&&u(p=>p?(p.set(f,Em(f)),new Map(p)):null)},[]);return y.useEffect(()=>{const c=l.current;if(o!==c){f(c);const p=o.map(h=>{const k=hm(h);return k?(k.addEventListener("scroll",d,{passive:!0}),[k,Em(k)]):null}).filter(h=>h!=null);u(p.length?new Map(p):null),l.current=o}return()=>{f(o),f(c)};function f(p){p.forEach(h=>{const k=hm(h);k?.removeEventListener("scroll",d)})}},[d,o]),y.useMemo(()=>o.length?n?Array.from(n.values()).reduce((c,f)=>zn(c,f),Da):Ry(o):Da,[o,n])}function Uv(o,n){n===void 0&&(n=[]);const u=y.useRef(null);return y.useEffect(()=>{u.current=null},n),y.useEffect(()=>{const l=o!==Da;l&&!u.current&&(u.current=o),!l&&u.current&&(u.current=null)},[o]),u.current?Ys(o,u.current):Da}function iT(o){y.useEffect(()=>{if(!hu)return;const n=o.map(u=>{let{sensor:l}=u;return l.setup==null?void 0:l.setup()});return()=>{for(const u of n)u?.()}},o.map(n=>{let{sensor:u}=n;return u}))}function nT(o,n){return y.useMemo(()=>o.reduce((u,l)=>{let{eventName:d,handler:c}=l;return u[d]=f=>{c(f,n)},u},{}),[o,n])}function Iy(o){return y.useMemo(()=>o?Tz(o):null,[o])}const Pv=[];function sT(o,n){n===void 0&&(n=On);const[u]=o,l=Iy(u?Qt(u):null),[d,c]=y.useState(Pv);function f(){c(()=>o.length?o.map(h=>Oy(h)?l:new Jm(n(h),h)):Pv)}const p=vu({callback:f});return Za(()=>{p?.disconnect(),f(),o.forEach(h=>p?.observe(h))},[o]),d}function rT(o){if(!o)return null;if(o.children.length>1)return o;const n=o.children[0];return er(n)?n:o}function lT(o){let{measure:n}=o;const[u,l]=y.useState(null),d=y.useCallback(k=>{for(const{target:_}of k)if(er(_)){l(g=>{const b=n(_);return g?{...g,width:b.width,height:b.height}:b});break}},[n]),c=vu({callback:d}),f=y.useCallback(k=>{const _=rT(k);c?.disconnect(),_&&c?.observe(_),l(_?n(_):null)},[n,c]),[p,h]=Jl(f);return y.useMemo(()=>({nodeRef:p,rect:u,setRef:h}),[u,p,h])}const uT=[{sensor:tp,options:{}},{sensor:$m,options:{}}],dT={current:{}},Pl={draggable:{measure:jv},droppable:{measure:jv,strategy:Qs.WhileDragging,frequency:jm.Optimized},dragOverlay:{measure:On}};class Ls extends Map{get(n){var u;return n!=null&&(u=super.get(n))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:u}=n;return!u})}getNodeFor(n){var u,l;return(u=(l=this.get(n))==null?void 0:l.node.current)!=null?u:void 0}}const cT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ls,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:$l},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Pl,measureDroppableContainers:$l,windowRect:null,measuringScheduled:!1},mT={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:$l,draggableNodes:new Map,over:null,measureDroppableContainers:$l},bu=y.createContext(mT),Uy=y.createContext(cT);function pT(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ls}}}function fT(o,n){switch(n.type){case ut.DragStart:return{...o,draggable:{...o.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case ut.DragMove:return o.draggable.active==null?o:{...o,draggable:{...o.draggable,translate:{x:n.coordinates.x-o.draggable.initialCoordinates.x,y:n.coordinates.y-o.draggable.initialCoordinates.y}}};case ut.DragEnd:case ut.DragCancel:return{...o,draggable:{...o.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ut.RegisterDroppable:{const{element:u}=n,{id:l}=u,d=new Ls(o.droppable.containers);return d.set(l,u),{...o,droppable:{...o.droppable,containers:d}}}case ut.SetDroppableDisabled:{const{id:u,key:l,disabled:d}=n,c=o.droppable.containers.get(u);if(!c||l!==c.key)return o;const f=new Ls(o.droppable.containers);return f.set(u,{...c,disabled:d}),{...o,droppable:{...o.droppable,containers:f}}}case ut.UnregisterDroppable:{const{id:u,key:l}=n,d=o.droppable.containers.get(u);if(!d||l!==d.key)return o;const c=new Ls(o.droppable.containers);return c.delete(u),{...o,droppable:{...o.droppable,containers:c}}}default:return o}}function gT(o){let{disabled:n}=o;const{active:u,activatorEvent:l,draggableNodes:d}=y.useContext(bu),c=Tm(l),f=Tm(u?.id);return y.useEffect(()=>{if(!n&&!l&&c&&f!=null){if(!Xm(c)||document.activeElement===c.target)return;const p=d.get(f);if(!p)return;const{activatorNode:h,node:k}=p;if(!h.current&&!k.current)return;requestAnimationFrame(()=>{for(const _ of[h.current,k.current]){if(!_)continue;const g=rz(_);if(g){g.focus();break}}})}},[l,n,d,f,c]),null}function hT(o,n){let{transform:u,...l}=n;return o!=null&&o.length?o.reduce((d,c)=>c({transform:d,...l}),u):u}function _T(o){return y.useMemo(()=>({draggable:{...Pl.draggable,...o?.draggable},droppable:{...Pl.droppable,...o?.droppable},dragOverlay:{...Pl.dragOverlay,...o?.dragOverlay}}),[o?.draggable,o?.droppable,o?.dragOverlay])}function vT(o){let{activeNode:n,measure:u,initialRect:l,config:d=!0}=o;const c=y.useRef(!1),{x:f,y:p}=typeof d=="boolean"?{x:d,y:d}:d;Za(()=>{if(!f&&!p||!n){c.current=!1;return}if(c.current||!l)return;const k=n?.node.current;if(!k||k.isConnected===!1)return;const _=u(k),g=Ny(_,l);if(f||(g.x=0),p||(g.y=0),c.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const b=Ey(k);b&&b.scrollBy({top:g.y,left:g.x})}},[n,f,p,l,u])}const Py=y.createContext({...Da,scaleX:1,scaleY:1});var Ko;(function(o){o[o.Uninitialized=0]="Uninitialized",o[o.Initializing=1]="Initializing",o[o.Initialized=2]="Initialized"})(Ko||(Ko={}));const bT=y.memo(function(n){var u,l,d,c;let{id:f,accessibility:p,autoScroll:h=!0,children:k,sensors:_=uT,collisionDetection:g=wz,measuring:b,modifiers:S,...C}=n;const A=y.useReducer(fT,void 0,pT),[x,T]=A,[z,L]=pz(),[G,Q]=y.useState(Ko.Uninitialized),H=G===Ko.Initialized,{draggable:{active:j,nodes:q,translate:V},droppable:{containers:$}}=x,W=j!=null?q.get(j):null,ee=y.useRef({initial:null,translated:null}),ae=y.useMemo(()=>{var rt;return j!=null?{id:j,data:(rt=W?.data)!=null?rt:dT,rect:ee}:null},[j,W]),X=y.useRef(null),[Y,I]=y.useState(null),[N,K]=y.useState(null),ie=Ks(C,Object.values(C)),ne=ar("DndDescribedBy",f),ye=y.useMemo(()=>$.getEnabled(),[$]),Ae=_T(b),{droppableRects:Ve,measureDroppableContainers:D,measuringScheduled:te}=Xz(ye,{dragging:H,dependencies:[V.x,V.y],config:Ae.droppable}),se=Qz(q,j),ce=y.useMemo(()=>N?Nm(N):null,[N]),ke=sr(),we=Jz(se,Ae.draggable.measure);vT({activeNode:j!=null?q.get(j):null,config:ke.layoutShiftCompensation,initialRect:we,measure:Ae.draggable.measure});const pe=Lv(se,Ae.draggable.measure,we),ue=Lv(se?se.parentElement:null),fe=y.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Ve,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:$,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ct=$.getNodeFor((u=fe.current.over)==null?void 0:u.id),Zt=lT({measure:Ae.dragOverlay.measure}),Xt=(l=Zt.nodeRef.current)!=null?l:se,_t=H?(d=Zt.rect)!=null?d:pe:null,tt=!!(Zt.nodeRef.current&&Zt.rect),Le=tT(tt?null:pe),Bt=Iy(Xt?Qt(Xt):null),Lt=aT(H?Ct??se:null),Jt=sT(Lt),Xa=hT(S,{transform:{x:V.x-Le.x,y:V.y-Le.y,scaleX:1,scaleY:1},activatorEvent:N,active:ae,activeNodeRect:pe,containerNodeRect:ue,draggingNodeRect:_t,over:fe.current.over,overlayNodeRect:Zt.rect,scrollableAncestors:Lt,scrollableAncestorRects:Jt,windowRect:Bt}),$o=ce?zn(ce,V):null,Ja=oT(Lt),qn=Uv(Ja),Ei=Uv(Ja,[pe]),ja=zn(Xa,qn),$a=_t?Cz(_t,Xa):null,It=ae&&$a?g({active:ae,collisionRect:$a,droppableRects:Ve,droppableContainers:ye,pointerCoordinates:$o}):null,Di=Ty(It,"id"),[ua,or]=y.useState(null),ir=tt?Xa:zn(Xa,Ei),Rn=Sz(ir,(c=ua?.rect)!=null?c:null,pe),ei=y.useRef(null),ji=y.useCallback((rt,dt)=>{let{sensor:Nt,options:wa}=dt;if(X.current==null)return;const Ut=q.get(X.current);if(!Ut)return;const Et=rt.nativeEvent,At=new Nt({active:X.current,activeNode:Ut,event:Et,options:wa,context:fe,onAbort(Ke){if(!q.get(Ke))return;const{onDragAbort:da}=ie.current,Sa={id:Ke};da?.(Sa),z({type:"onDragAbort",event:Sa})},onPending(Ke,Xe,da,Sa){if(!q.get(Ke))return;const{onDragPending:Oa}=ie.current,$t={id:Ke,constraint:Xe,initialCoordinates:da,offset:Sa};Oa?.($t),z({type:"onDragPending",event:$t})},onStart(Ke){const Xe=X.current;if(Xe==null)return;const da=q.get(Xe);if(!da)return;const{onDragStart:Sa}=ie.current,ti={activatorEvent:Et,active:{id:Xe,data:da.data,rect:ee}};Cn.unstable_batchedUpdates(()=>{Sa?.(ti),Q(Ko.Initializing),T({type:ut.DragStart,initialCoordinates:Ke,active:Xe}),z({type:"onDragStart",event:ti}),I(ei.current),K(Et)})},onMove(Ke){T({type:ut.DragMove,coordinates:Ke})},onEnd:at(ut.DragEnd),onCancel:at(ut.DragCancel)});ei.current=At;function at(Ke){return async function(){const{active:da,collisions:Sa,over:ti,scrollAdjustedTranslate:Oa}=fe.current;let $t=null;if(da&&Oa){const{cancelDrop:qa}=ie.current;$t={activatorEvent:Et,active:da,collisions:Sa,delta:Oa,over:ti},Ke===ut.DragEnd&&typeof qa=="function"&&await Promise.resolve(qa($t))&&(Ke=ut.DragCancel)}X.current=null,Cn.unstable_batchedUpdates(()=>{T({type:Ke}),Q(Ko.Uninitialized),or(null),I(null),K(null),ei.current=null;const qa=Ke===ut.DragEnd?"onDragEnd":"onDragCancel";if($t){const Ma=ie.current[qa];Ma?.($t),z({type:qa,event:$t})}})}}},[q]),yu=y.useCallback((rt,dt)=>(Nt,wa)=>{const Ut=Nt.nativeEvent,Et=q.get(wa);if(X.current!==null||!Et||Ut.dndKit||Ut.defaultPrevented)return;const At={active:Et};rt(Nt,dt.options,At)===!0&&(Ut.dndKit={capturedBy:dt.sensor},X.current=wa,ji(Nt,dt))},[q,ji]),nr=Zz(_,yu);iT(_),Za(()=>{pe&&G===Ko.Initializing&&Q(Ko.Initialized)},[pe,G]),y.useEffect(()=>{const{onDragMove:rt}=ie.current,{active:dt,activatorEvent:Nt,collisions:wa,over:Ut}=fe.current;if(!dt||!Nt)return;const Et={active:dt,activatorEvent:Nt,collisions:wa,delta:{x:ja.x,y:ja.y},over:Ut};Cn.unstable_batchedUpdates(()=>{rt?.(Et),z({type:"onDragMove",event:Et})})},[ja.x,ja.y]),y.useEffect(()=>{const{active:rt,activatorEvent:dt,collisions:Nt,droppableContainers:wa,scrollAdjustedTranslate:Ut}=fe.current;if(!rt||X.current==null||!dt||!Ut)return;const{onDragOver:Et}=ie.current,At=wa.get(Di),at=At&&At.rect.current?{id:At.id,rect:At.rect.current,data:At.data,disabled:At.disabled}:null,Ke={active:rt,activatorEvent:dt,collisions:Nt,delta:{x:Ut.x,y:Ut.y},over:at};Cn.unstable_batchedUpdates(()=>{or(at),Et?.(Ke),z({type:"onDragOver",event:Ke})})},[Di]),Za(()=>{fe.current={activatorEvent:N,active:ae,activeNode:se,collisionRect:$a,collisions:It,droppableRects:Ve,draggableNodes:q,draggingNode:Xt,draggingNodeRect:_t,droppableContainers:$,over:ua,scrollableAncestors:Lt,scrollAdjustedTranslate:ja},ee.current={initial:_t,translated:$a}},[ae,se,It,$a,q,Xt,_t,Ve,$,ua,Lt,ja]),Kz({...ke,delta:V,draggingRect:$a,pointerCoordinates:$o,scrollableAncestors:Lt,scrollableAncestorRects:Jt});const Tt=y.useMemo(()=>({active:ae,activeNode:se,activeNodeRect:pe,activatorEvent:N,collisions:It,containerNodeRect:ue,dragOverlay:Zt,draggableNodes:q,droppableContainers:$,droppableRects:Ve,over:ua,measureDroppableContainers:D,scrollableAncestors:Lt,scrollableAncestorRects:Jt,measuringConfiguration:Ae,measuringScheduled:te,windowRect:Bt}),[ae,se,pe,N,It,ue,Zt,q,$,Ve,ua,D,Lt,Jt,Ae,te,Bt]),ku=y.useMemo(()=>({activatorEvent:N,activators:nr,active:ae,activeNodeRect:pe,ariaDescribedById:{draggable:ne},dispatch:T,draggableNodes:q,over:ua,measureDroppableContainers:D}),[N,nr,ae,pe,T,ne,q,ua,D]);return ve.createElement(Ay.Provider,{value:L},ve.createElement(bu.Provider,{value:ku},ve.createElement(Uy.Provider,{value:Tt},ve.createElement(Py.Provider,{value:Rn},k)),ve.createElement(gT,{disabled:p?.restoreFocus===!1})),ve.createElement(hz,{...p,hiddenTextDescribedById:ne}));function sr(){const rt=Y?.autoScrollEnabled===!1,dt=typeof h=="object"?h.enabled===!1:h===!1,Nt=H&&!rt&&!dt;return typeof h=="object"?{...h,enabled:Nt}:{enabled:Nt}}}),yT=y.createContext(null),Hv="button",kT="Draggable";function wT(o){let{id:n,data:u,disabled:l=!1,attributes:d}=o;const c=ar(kT),{activators:f,activatorEvent:p,active:h,activeNodeRect:k,ariaDescribedById:_,draggableNodes:g,over:b}=y.useContext(bu),{role:S=Hv,roleDescription:C="draggable",tabIndex:A=0}=d??{},x=h?.id===n,T=y.useContext(x?Py:yT),[z,L]=Jl(),[G,Q]=Jl(),H=nT(f,n),j=Ks(u);Za(()=>(g.set(n,{id:n,key:c,node:z,activatorNode:G,data:j}),()=>{const V=g.get(n);V&&V.key===c&&g.delete(n)}),[g,n]);const q=y.useMemo(()=>({role:S,tabIndex:A,"aria-disabled":l,"aria-pressed":x&&S===Hv?!0:void 0,"aria-roledescription":C,"aria-describedby":_.draggable}),[l,S,A,x,C,_.draggable]);return{active:h,activatorEvent:p,activeNodeRect:k,attributes:q,isDragging:x,listeners:l?void 0:H,node:z,over:b,setNodeRef:L,setActivatorNodeRef:Q,transform:T}}function ST(){return y.useContext(Uy)}const MT="Droppable",CT={timeout:25};function AT(o){let{data:n,disabled:u=!1,id:l,resizeObserverConfig:d}=o;const c=ar(MT),{active:f,dispatch:p,over:h,measureDroppableContainers:k}=y.useContext(bu),_=y.useRef({disabled:u}),g=y.useRef(!1),b=y.useRef(null),S=y.useRef(null),{disabled:C,updateMeasurementsFor:A,timeout:x}={...CT,...d},T=Ks(A??l),z=y.useCallback(()=>{if(!g.current){g.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{k(Array.isArray(T.current)?T.current:[T.current]),S.current=null},x)},[x]),L=vu({callback:z,disabled:C||!f}),G=y.useCallback((q,V)=>{L&&(V&&(L.unobserve(V),g.current=!1),q&&L.observe(q))},[L]),[Q,H]=Jl(G),j=Ks(n);return y.useEffect(()=>{!L||!Q.current||(L.disconnect(),g.current=!1,L.observe(Q.current))},[Q,L]),y.useEffect(()=>(p({type:ut.RegisterDroppable,element:{id:l,key:c,disabled:u,node:Q,rect:b,data:j}}),()=>p({type:ut.UnregisterDroppable,key:c,id:l})),[l]),y.useEffect(()=>{u!==_.current.disabled&&(p({type:ut.SetDroppableDisabled,id:l,key:c,disabled:u}),_.current.disabled=u)},[l,c,u,p]),{active:f,rect:b,isOver:h?.id===l,node:Q,over:h,setNodeRef:H}}function ap(o,n,u){const l=o.slice();return l.splice(u<0?l.length+u:u,0,l.splice(n,1)[0]),l}function xT(o,n){return o.reduce((u,l,d)=>{const c=n.get(l);return c&&(u[d]=c),u},Array(o.length))}function ql(o){return o!==null&&o>=0}function zT(o,n){if(o===n)return!0;if(o.length!==n.length)return!1;for(let u=0;u<o.length;u++)if(o[u]!==n[u])return!1;return!0}function TT(o){return typeof o=="boolean"?{draggable:o,droppable:o}:o}const Hy=o=>{let{rects:n,activeIndex:u,overIndex:l,index:d}=o;const c=ap(n,l,u),f=n[d],p=c[d];return!p||!f?null:{x:p.left-f.left,y:p.top-f.top,scaleX:p.width/f.width,scaleY:p.height/f.height}},Rl={scaleX:1,scaleY:1},NT=o=>{var n;let{activeIndex:u,activeNodeRect:l,index:d,rects:c,overIndex:f}=o;const p=(n=c[u])!=null?n:l;if(!p)return null;if(d===u){const k=c[f];return k?{x:0,y:u<f?k.top+k.height-(p.top+p.height):k.top-p.top,...Rl}:null}const h=ET(c,d,u);return d>u&&d<=f?{x:0,y:-p.height-h,...Rl}:d<u&&d>=f?{x:0,y:p.height+h,...Rl}:{x:0,y:0,...Rl}};function ET(o,n,u){const l=o[n],d=o[n-1],c=o[n+1];return l?u<n?d?l.top-(d.top+d.height):c?c.top-(l.top+l.height):0:c?c.top-(l.top+l.height):d?l.top-(d.top+d.height):0:0}const Fy="Sortable",Vy=ve.createContext({activeIndex:-1,containerId:Fy,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Hy,disabled:{draggable:!1,droppable:!1}});function DT(o){let{children:n,id:u,items:l,strategy:d=Hy,disabled:c=!1}=o;const{active:f,dragOverlay:p,droppableRects:h,over:k,measureDroppableContainers:_}=ST(),g=ar(Fy,u),b=p.rect!==null,S=y.useMemo(()=>l.map(H=>typeof H=="object"&&"id"in H?H.id:H),[l]),C=f!=null,A=f?S.indexOf(f.id):-1,x=k?S.indexOf(k.id):-1,T=y.useRef(S),z=!zT(S,T.current),L=x!==-1&&A===-1||z,G=TT(c);Za(()=>{z&&C&&_(S)},[z,S,C,_]),y.useEffect(()=>{T.current=S},[S]);const Q=y.useMemo(()=>({activeIndex:A,containerId:g,disabled:G,disableTransforms:L,items:S,overIndex:x,useDragOverlay:b,sortedRects:xT(S,h),strategy:d}),[A,g,G.draggable,G.droppable,L,S,x,h,b,d]);return ve.createElement(Vy.Provider,{value:Q},n)}const jT=o=>{let{id:n,items:u,activeIndex:l,overIndex:d}=o;return ap(u,l,d).indexOf(n)},OT=o=>{let{containerId:n,isSorting:u,wasDragging:l,index:d,items:c,newIndex:f,previousItems:p,previousContainerId:h,transition:k}=o;return!k||!l||p!==c&&d===f?!1:u?!0:f!==d&&n===h},qT={duration:200,easing:"ease"},Gy="transform",RT=Ws.Transition.toString({property:Gy,duration:0,easing:"linear"}),BT={roleDescription:"sortable"};function LT(o){let{disabled:n,index:u,node:l,rect:d}=o;const[c,f]=y.useState(null),p=y.useRef(u);return Za(()=>{if(!n&&u!==p.current&&l.current){const h=d.current;if(h){const k=On(l.current,{ignoreTransform:!0}),_={x:h.left-k.left,y:h.top-k.top,scaleX:h.width/k.width,scaleY:h.height/k.height};(_.x||_.y)&&f(_)}}u!==p.current&&(p.current=u)},[n,u,l,d]),y.useEffect(()=>{c&&f(null)},[c]),c}function IT(o){let{animateLayoutChanges:n=OT,attributes:u,disabled:l,data:d,getNewIndex:c=jT,id:f,strategy:p,resizeObserverConfig:h,transition:k=qT}=o;const{items:_,containerId:g,activeIndex:b,disabled:S,disableTransforms:C,sortedRects:A,overIndex:x,useDragOverlay:T,strategy:z}=y.useContext(Vy),L=UT(l,S),G=_.indexOf(f),Q=y.useMemo(()=>({sortable:{containerId:g,index:G,items:_},...d}),[g,d,G,_]),H=y.useMemo(()=>_.slice(_.indexOf(f)),[_,f]),{rect:j,node:q,isOver:V,setNodeRef:$}=AT({id:f,data:Q,disabled:L.droppable,resizeObserverConfig:{updateMeasurementsFor:H,...h}}),{active:W,activatorEvent:ee,activeNodeRect:ae,attributes:X,setNodeRef:Y,listeners:I,isDragging:N,over:K,setActivatorNodeRef:ie,transform:ne}=wT({id:f,data:Q,attributes:{...BT,...u},disabled:L.draggable}),ye=oz($,Y),Ae=!!W,Ve=Ae&&!C&&ql(b)&&ql(x),D=!T&&N,te=D&&Ve?ne:null,ce=Ve?te??(p??z)({rects:A,activeNodeRect:ae,activeIndex:b,overIndex:x,index:G}):null,ke=ql(b)&&ql(x)?c({id:f,items:_,activeIndex:b,overIndex:x}):G,we=W?.id,pe=y.useRef({activeId:we,items:_,newIndex:ke,containerId:g}),ue=_!==pe.current.items,fe=n({active:W,containerId:g,isDragging:N,isSorting:Ae,id:f,index:G,items:_,newIndex:pe.current.newIndex,previousItems:pe.current.items,previousContainerId:pe.current.containerId,transition:k,wasDragging:pe.current.activeId!=null}),Ct=LT({disabled:!fe,index:G,node:q,rect:j});return y.useEffect(()=>{Ae&&pe.current.newIndex!==ke&&(pe.current.newIndex=ke),g!==pe.current.containerId&&(pe.current.containerId=g),_!==pe.current.items&&(pe.current.items=_)},[Ae,ke,g,_]),y.useEffect(()=>{if(we===pe.current.activeId)return;if(we!=null&&pe.current.activeId==null){pe.current.activeId=we;return}const Xt=setTimeout(()=>{pe.current.activeId=we},50);return()=>clearTimeout(Xt)},[we]),{active:W,activeIndex:b,attributes:X,data:Q,rect:j,index:G,newIndex:ke,items:_,isOver:V,isSorting:Ae,isDragging:N,listeners:I,node:q,overIndex:x,over:K,setNodeRef:ye,setActivatorNodeRef:ie,setDroppableNodeRef:$,setDraggableNodeRef:Y,transform:Ct??ce,transition:Zt()};function Zt(){if(Ct||ue&&pe.current.newIndex===G)return RT;if(!(D&&!Xm(ee)||!k)&&(Ae||fe))return Ws.Transition.toString({...k,property:Gy})}}function UT(o,n){var u,l;return typeof o=="boolean"?{draggable:o,droppable:!1}:{draggable:(u=o?.draggable)!=null?u:n.draggable,droppable:(l=o?.droppable)!=null?l:n.droppable}}function tu(o){if(!o)return!1;const n=o.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const PT=[Ee.Down,Ee.Right,Ee.Up,Ee.Left],HT=(o,n)=>{let{context:{active:u,collisionRect:l,droppableRects:d,droppableContainers:c,over:f,scrollableAncestors:p}}=n;if(PT.includes(o.code)){if(o.preventDefault(),!u||!l)return;const h=[];c.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const b=d.get(g.id);if(b)switch(o.code){case Ee.Down:l.top<b.top&&h.push(g);break;case Ee.Up:l.top>b.top&&h.push(g);break;case Ee.Left:l.left>b.left&&h.push(g);break;case Ee.Right:l.left<b.left&&h.push(g);break}});const k=yz({collisionRect:l,droppableRects:d,droppableContainers:h});let _=Ty(k,"id");if(_===f?.id&&k.length>1&&(_=k[1].id),_!=null){const g=c.get(u.id),b=c.get(_),S=b?d.get(b.id):null,C=b?.node.current;if(C&&S&&g&&b){const x=_u(C).some((H,j)=>p[j]!==H),T=Ky(g,b),z=FT(g,b),L=x||!T?{x:0,y:0}:{x:z?l.width-S.width:0,y:z?l.height-S.height:0},G={x:S.left,y:S.top};return L.x&&L.y?G:Ys(G,L)}}}};function Ky(o,n){return!tu(o)||!tu(n)?!1:o.data.current.sortable.containerId===n.data.current.sortable.containerId}function FT(o,n){return!tu(o)||!tu(n)||!Ky(o,n)?!1:o.data.current.sortable.index<n.data.current.sortable.index}const VT=o=>w.jsx("div",{className:"todo-drag-handle",...o,children:w.jsx(sA,{})}),GT=({id:o,children:n})=>{const{attributes:u,listeners:l,setNodeRef:d,transform:c,transition:f}=IT({id:o}),p={transform:Ws.Transform.toString(c),transition:f};return w.jsx("div",{ref:d,style:p,children:typeof n=="function"?n({attributes:u,listeners:l}):n})},KT=({items:o,onDragEnd:n,children:u})=>{const l=_z(Nv(tp,{activationConstraint:{distance:5}}),Nv($m,{coordinateGetter:HT}));return w.jsx(bT,{sensors:l,collisionDetection:bz,onDragEnd:n,children:w.jsx(DT,{items:o,strategy:NT,children:w.jsx("div",{children:u})})})};function YT({todoRef:o,floatRef:n,position:u,xPosition:l,yPosition:d}){const c=Zo(),[f,p]=y.useState(JSON.parse(localStorage.getItem("todo"))||[]),[h,k]=y.useState(localStorage.getItem("todoPinned")==="true"),[_,g]=y.useState("1.2rem");y.useEffect(()=>{const T=z=>{z==="navbar"&&g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem")};return g(Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem"),_e.on("refresh",T),()=>{_e.off("refresh",T)}},[]);const b=()=>{k(!0)},S=()=>{k(localStorage.getItem("todoPinned")==="true")},C=T=>{const{active:z,over:L}=T;if(L&&z.id!==L.id){const G=Number(z.id),Q=Number(L.id);p(H=>{const j=ap(H,G,Q);return localStorage.setItem("todo",JSON.stringify(j)),j})}},A=(T,z,L)=>{p(G=>{const Q=[...G];switch(T){case"add":Q.push({value:"",done:!1});break;case"remove":Q.splice(z,1);break;case"set":Q[z]={value:L.target.value,done:Q[z].done};break;case"done":Q[z].done=!Q[z].done;break}return localStorage.setItem("todo",JSON.stringify(Q)),Q})},x=()=>{me.stats.postEvent("feature","Todo pin");const T=localStorage.getItem("todoPinned")==="true";localStorage.setItem("todoPinned",!T),k(!T)};return w.jsxs("div",{className:"notes",onMouseLeave:S,onFocus:b,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||S()},children:[w.jsx("button",{className:"navbarButton",onMouseEnter:b,onFocus:b,"aria-label":c("widgets.navbar.todo.title"),ref:o,style:{fontSize:_},children:w.jsx(L_,{className:"topicons"})}),h&&w.jsx("span",{className:"notesContainer",ref:n,style:{position:u,top:d??"44px",left:l??""},children:w.jsxs("div",{className:"flexTodo",children:[w.jsxs("div",{className:"topBarNotes",style:{display:"flex"},children:[w.jsx(L_,{}),w.jsx("span",{children:c("widgets.navbar.todo.title")})]}),w.jsxs("div",{className:"notes-buttons",children:[w.jsx(ht,{title:c("widgets.navbar.todo.pin"),children:w.jsx("button",{onClick:x,"aria-label":c("widgets.navbar.todo.pin"),children:w.jsx(Ub,{})})}),w.jsx(ht,{title:c("widgets.navbar.todo.add"),children:w.jsx("button",{onClick:()=>A("add"),"aria-label":c("widgets.navbar.todo.add"),children:w.jsx(VC,{})})})]}),w.jsx("div",{className:"todoRows",children:f.length===0?w.jsx("div",{className:"todosEmpty",children:w.jsxs("div",{className:"emptyNewMessage",children:[w.jsx(Pb,{}),w.jsx("span",{className:"title",children:c("widgets.navbar.todo.no_todos")}),w.jsx("span",{className:"subtitle",children:c("modals.main.settings.sections.message.add_some")})]})}):w.jsx(KT,{items:f.map((T,z)=>z),onDragEnd:C,children:f.map((T,z)=>w.jsx(GT,{id:z,children:({attributes:L,listeners:G})=>w.jsxs("div",{className:"todoRow"+(T.done?" done":""),children:[w.jsx("div",{className:"todo-checkbox"+(T.done?" checked":""),role:"checkbox","aria-checked":!!T.done,"aria-label":T.value||c("widgets.navbar.todo.title"),tabIndex:0,onClick:()=>A("done",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("done",z))},children:T.done&&w.jsx(Bm,{})}),w.jsx(Ym,{placeholder:c("widgets.navbar.notes.placeholder"),value:T.value,onChange:Q=>A("set",z,Q),readOnly:T.done,minRows:1}),w.jsx(ht,{title:c("modals.main.marketplace.product.buttons.remove"),children:w.jsx(ZC,{role:"button",tabIndex:0,"aria-label":c("modals.main.marketplace.product.buttons.remove"),onClick:()=>A("remove",z),onKeyDown:Q=>{(Q.key===" "||Q.key==="Enter")&&(Q.preventDefault(),A("remove",z))}})}),w.jsx(VT,{...L,...G})]})},z))})})]})})]})}function WT(){const[o,n]=y.useState(null),{x:u,y:l,refs:d,strategy:c}=fu({placement:"bottom",middleware:[gu()],elements:{reference:o}});return w.jsx(YT,{todoRef:n,floatRef:d.setFloating,position:c,xPosition:u,yPosition:l})}const QT=y.memo(WT);function ZT(){const o=Zo(),[n,u]=y.useState(""),[l,d]=y.useState(localStorage.getItem("refreshOption")||"");y.useEffect(()=>{const p=h=>{(h==="navbar"||h==="background"||h==="language")&&(d(localStorage.getItem("refreshOption")),c())};return _e.on("refresh",p),c(),()=>{_e.off("refresh",p)}},[o]);function c(){let p;switch(localStorage.getItem("refreshOption")){case"background":p=o("modals.main.settings.sections.background.title");break;case"quote":p=o("modals.main.settings.sections.quote.title");break;case"quotebackground":p=new Intl.ListFormat(localStorage.getItem("language")?.replace(/_/gm,"-")||"en-GB",{style:"long",type:"conjunction"}).format([o("modals.main.settings.sections.quote.title"),o("modals.main.settings.sections.background.title")]);break;default:p=o("modals.main.settings.sections.appearance.navbar.refresh_options.page");break}u(p)}function f(){switch(l){case"background":return _e.emit("refresh","backgroundrefresh");case"quote":return _e.emit("refresh","quoterefresh");case"quotebackground":return _e.emit("refresh","quoterefresh"),_e.emit("refresh","backgroundrefresh");default:window.location.reload()}}return w.jsx(ht,{title:o("widgets.navbar.tooltips.refresh"),subtitle:n,children:w.jsx("button",{className:"navbarButton",onClick:f,"aria-label":o("widgets.navbar.tooltips.refresh"),children:w.jsx(Us,{className:"refreshicon topicons"})})})}const Yy=y.memo(({fontSize:o})=>{const n=Zo(),[u,l]=y.useState(!1),d=y.useRef(!1),c=y.useCallback(p=>{p?delete document.documentElement.dataset.bgMaximised:document.documentElement.dataset.bgMaximised="true";const h=document.getElementById("backgroundVideo");h&&(h.style.webkitFilter=p?Um():"blur(0px) brightness(100%)");const k=document.getElementById("backgroundFilterOverlay");if(k){const _=p?Pm():{backdropFilter:"",WebkitBackdropFilter:"",backgroundColor:""};k.style.backdropFilter=_.backdropFilter,k.style.webkitBackdropFilter=_.WebkitBackdropFilter,k.style.backgroundColor=_.backgroundColor}},[]);y.useEffect(()=>()=>{if(!d.current)return;const p=document.getElementById("widgets");p&&(p.style.display="flex"),c(!0)},[c]);const f=y.useCallback(()=>{const p=document.getElementById("widgets");u?(p&&(p.style.display="flex"),l(!1),d.current=!1,c(!0),me.stats.postEvent("feature","Background unmaximise")):(p&&(p.style.display="none"),l(!0),d.current=!0,c(!1),me.stats.postEvent("feature","Background maximise"))},[u,c]);return w.jsx(ht,{title:n("modals.main.settings.sections.background.buttons.view"),children:w.jsx("button",{className:"navbarButton",style:{fontSize:o},onClick:f,"aria-label":n("modals.main.settings.sections.background.buttons.view"),children:w.jsx(jC,{className:"topicons"})})})});Yy.displayName="Maximise";const XT=({openModal:o})=>{const n=Zo();y.useRef();const[u]=y.useState(localStorage.getItem("widgetStyle")==="legacy"?"navbar old":"navbar new"),l=()=>{switch(localStorage.getItem("refreshOption")){case"background":return n("modals.main.settings.sections.background.title");case"quote":return n("modals.main.settings.sections.quote.title");case"quotebackground":return n("modals.main.settings.sections.quote.title")+" "+n("modals.main.settings.sections.background.title");default:return n("modals.main.settings.sections.appearance.navbar.refresh_options.page")}},d=()=>Number((localStorage.getItem("zoomNavbar")||100)/100*1.2)+"rem",[c,f]=y.useState(l()),[p,h]=y.useState(localStorage.getItem("refresh")),[k,_]=y.useState(localStorage.getItem("refreshOption")||""),[g,b]=y.useState(!1),[S,C]=y.useState(d()),[A,x]=y.useState(localStorage.getItem("navbarHover")==="true"),[T,z]=y.useState(localStorage.getItem("view")==="true"),[L,G]=y.useState(localStorage.getItem("notesEnabled")==="true"),[Q,H]=y.useState(localStorage.getItem("todoEnabled")==="true"),[j,q]=y.useState(localStorage.getItem("appsEnabled")==="true"),[V,$]=y.useState(localStorage.getItem("background")==="true");y.useEffect(()=>{const ee=ae=>{(ae==="navbar"||ae==="background")&&(h(localStorage.getItem("refresh")),_(localStorage.getItem("refreshOption")),x(localStorage.getItem("navbarHover")==="true"),z(localStorage.getItem("view")==="true"),G(localStorage.getItem("notesEnabled")==="true"),H(localStorage.getItem("todoEnabled")==="true"),q(localStorage.getItem("appsEnabled")==="true"),$(localStorage.getItem("background")==="true"),f(l()),C(d()))};return _e.on("refresh",ee),()=>{_e.off("refresh",ee)}},[]);const W=w.jsx("div",{className:"navbar-container",children:w.jsxs("div",{className:u,children:[T&&V?w.jsx(Yy,{fontSize:S}):null,L&&w.jsx(az,{fontSize:S}),Q&&w.jsx(QT,{fontSize:S}),j&&w.jsx(H2,{fontSize:S}),p!=="false"&&w.jsx(ZT,{fontSize:S}),w.jsx(ht,{title:n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx("button",{className:"navbarButton",onClick:()=>o("mainModal"),style:{fontSize:S},"aria-label":n("modals.main.navbar.settings",{type:n("modals.main.navbar.tooltips.refresh_"+k)}),children:w.jsx(YC,{className:"settings-icon topicons"})})})]})});return A?w.jsx("div",{className:"navbar-hover",children:W}):W},JT=()=>{const[o,n]=y.useState(!1),[u,l]=y.useState(null),d=y.useRef(!1);d.current=o,y.useEffect(()=>{H_()&&(l(js()),n(!0));const f=h=>{h==="openMainModal"&&(l(js()),n(!0))},p=()=>{!d.current&&H_()&&(l(js()),n(!0))};return _e.on("modal",f),window.addEventListener("popstate",p),()=>{_e.off("modal",f),window.removeEventListener("popstate",p)}},[]);const c=f=>{n(f),l(null),f!==!1&&Gl("#settings")};return w.jsxs(w.Fragment,{children:[w.jsx(XT,{openModal:()=>c(!0)}),w.jsx(L2,{closeTimeoutMS:300,id:"modal",onRequestClose:()=>c(!1),isOpen:o,className:"Modal mainModal",overlayClassName:"Overlay",appElement:I2(),children:w.jsx(_2,{modalClose:()=>c(!1),deepLinkData:u})})]})},$T=o=>{y.useEffect(()=>{localStorage.getItem("firstRun")||(u2(),Hl?window.location.reload():o?.()),lm();const n=l=>{l==="other"&&lm(!0)},u=()=>{lm(!0),o?.()};return _e.on("refresh",n),_e.on("settingsimported",u),me.stats.tabLoad(),()=>{_e.off("refresh",n),_e.off("settingsimported",u)}},[])},eN=()=>{const[o,n]=y.useState(2500),[u,l]=y.useState(!1);y.useEffect(()=>{const p=localStorage.getItem("toastDisplayTime"),h=localStorage.getItem("background");p&&n(parseInt(p,10)),h==="true"&&l(!0);const k=_=>{_==="background"&&l(localStorage.getItem("background")==="true")};return _e.on("refresh",k),()=>_e.off("refresh",k)},[]);const[d,c]=y.useState(0);$T(()=>{c(p=>p+1),l(localStorage.getItem("background")==="true"),n(parseInt(localStorage.getItem("toastDisplayTime"),10)||2500)});const f=localStorage.getItem("language")||"en_GB";return w.jsxs(vC,{initialLanguage:f,children:[u&&w.jsx(IA,{},d),w.jsx(z0,{position:"top-center",autoClose:o,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0}),w.jsxs("div",{id:"center",children:[w.jsx(w2,{}),w.jsx(JT,{})]},d)]})};class tN extends y.PureComponent{constructor(n){super(n),this.state={error:!1}}componentDidCatch(n,u){this.setState({error:!0}),console.error("WebBrain new tab crashed:",n,u)}render(){return this.state.error?w.jsx("div",{className:"criticalError",children:w.jsxs("div",{className:"criticalError-message",children:[w.jsx("h1",{children:"The WebBrain new tab hit an error"}),w.jsx("p",{children:"Reload the tab. If it keeps happening, reset the new tab settings or report it."}),w.jsxs("div",{className:"criticalError-actions",children:[w.jsx("button",{onClick:()=>window.location.reload(),children:"Reload"}),w.jsx("a",{href:"https://github.com/esokullu/webbrain/issues/new",target:"_blank",rel:"noreferrer",children:"Report issue"})]})]})}):this.props.children}}const Wy=gC();localStorage.setItem("language",Wy);me.language=Bl();me.languagecode=Wy;Mm();me.getMessage=(o,n)=>Db(o)?Wt(o):me.language.getMessage(me.languagecode,o,n||{});const aN=document.getElementById("root"),oN=KS.createRoot(aN);oN.render(w.jsx(tN,{children:w.jsx(eN,{})}));export{$m as $,I2 as A,Gs as B,F2 as C,zN as D,_e as E,G2 as F,jC as G,U_ as H,L_ as I,P_ as J,rN as K,J2 as L,CN as M,hN as N,$2 as O,Z2 as P,Qo as Q,ve as R,y2 as S,Wo as T,sA as U,IT as V,Ws as W,ZC as X,_z as Y,Nv as Z,HT as _,Hb as a,tp as a0,bT as a1,bz as a2,DT as a3,NT as a4,fN as a5,ap as a6,aA as a7,Ym as a8,Om as a9,Hm as aA,le as aB,xi as aC,iN as aa,Cn as ab,TN as ac,Im as ad,dN as ae,SN as af,ht as ag,jA as ah,sN as ai,mN as aj,Q2 as ak,DN as al,EN as am,NN as an,zv as ao,yN as ap,wN as aq,ix as ar,ON as as,_N as at,HC as au,qC as av,cN as aw,bN as ax,kN as ay,am as az,mA as b,Fb as c,y as d,AN as e,gN as f,pA as g,En as h,MN as i,w as j,xN as k,Ps as l,Us as m,vN as n,pN as o,uN as p,gy as q,Hl as r,l2 as s,lN as t,Zo as u,me as v,I_ as w,L2 as x,je as y,jN as z};
diff --git a/src/chrome/newtab/assets/index-DdIzjGFh.js b/src/firefox/newtab/assets/index-bn8Kdr1t.js
similarity index 96%
rename from src/chrome/newtab/assets/index-DdIzjGFh.js
rename to src/firefox/newtab/assets/index-bn8Kdr1t.js
index bcdeffc2c..f5df0b812 100644
--- a/src/chrome/newtab/assets/index-DdIzjGFh.js
+++ b/src/firefox/newtab/assets/index-bn8Kdr1t.js
@@ -1,2 +1,2 @@
-import{j as m,d as K,aB as de}from"./index-ZvUWfRHz.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
-${n}`,pe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ve=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),be=(e,n,t)=>{const r=t===""?"":`with ${t.trim()}() `,o=he.bind(null,r,n.toString());Object.defineProperty(o,"name",ve);const{writable:i,enumerable:c,configurable:a}=pe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:c,configurable:a})};function Ne(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(n))fe(e,n,o,t);return ge(e,n),be(e,n,r),e}const v=2147483647,ke=new WeakMap,H=new WeakMap,we=new WeakMap;function ye(e,n){const t=e.get(n);if(t){if(t.maxAge<=Date.now()){e.delete(n);return}return t}}function R(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r=="number"&&Number.isFinite(r)){if(r>v)throw new TypeError(`The \`maxAge\` option cannot exceed ${v}.`);if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const o=function(...i){const c=n?n(i):i[0],a=ye(t,c);if(a)return a.data;const l=e.apply(this,i),s=typeof r=="function"?r(...i):r;if(s!==void 0&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return l;if(s>v)throw new TypeError(`The \`maxAge\` function result cannot exceed ${v}.`)}if(t.set(c,{data:l,maxAge:s===void 0||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),s!==void 0&&s!==Number.POSITIVE_INFINITY){const g=setTimeout(()=>{t.delete(c),H.get(o)?.delete(g)},s);g.unref?.();const h=H.get(o)??new Set;h.add(g),H.set(o,h)}return l};return Ne(o,e,{ignoreNonConfigurable:!0}),ke.set(o,t),we.set(o,n??(i=>i[0])),o}function Me(e){return typeof e=="string"}function Se(e,n,t){return t.indexOf(e)===n}function He(e){return e.toLowerCase()===e}function J(e){return e.indexOf(",")===-1?e:e.split(",")}function O(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var n=e.split(".")[0],t=n===void 0?"":n;return O(t)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],t=r===void 0?"":r;return O(t)}if(e.indexOf("-")===-1||!He(e))return e;var o=e.split("-"),i=o[0],c=o[1],a=c===void 0?"":c;return"".concat(i,"-").concat(a.toUpperCase())}function Oe(e){var n=e===void 0?{}:e,t=n.useFallbackLocale,r=t===void 0?!0:t,o=n.fallbackLocale,i=o===void 0?"en-US":o,c=[];if(typeof navigator<"u"){for(var a=navigator.languages||[],l=[],s=0,g=a;s<g.length;s++){var h=g[s];l=l.concat(J(h))}var p=navigator.language,b=p&&J(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=R(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=R(Le,{cacheKey:JSON.stringify});function je(e,n){return n.toLocaleString(e||Ie()||void 0)}function _e(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function Pe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Math.max.apply(Math,e.filter(_e))}function Fe(e){var n=e.className,t=e.formatHour,r=t===void 0?je:t,o=e.hourHandLength,i=o===void 0?50:o,c=e.hourHandOppositeLength,a=e.hourHandWidth,l=a===void 0?4:a,s=e.hourMarksLength,g=s===void 0?10:s,h=e.hourMarksWidth,p=h===void 0?3:h,b=e.locale,x=e.minuteHandLength,A=x===void 0?70:x,B=e.minuteHandOppositeLength,L=e.minuteHandWidth,X=L===void 0?2:L,I=e.minuteMarksLength,j=I===void 0?6:I,_=e.minuteMarksWidth,G=_===void 0?1:_,P=e.renderHourMarks,N=P===void 0?!0:P,T=e.renderMinuteHand,F=T===void 0?!0:T,W=e.renderMinuteMarks,E=W===void 0?!0:W,Q=e.renderNumbers,C=e.renderSecondHand,$=C===void 0?!0:C,U=e.secondHandLength,Z=U===void 0?90:U,ee=e.secondHandOppositeLength,V=e.secondHandWidth,ne=V===void 0?1:V,z=e.size,D=z===void 0?150:z,k=e.useMillisecondPrecision,u=e.value;function te(){if(!E)return null;for(var f=[],d=1;d<=60;d+=1){var ue=N&&!(d%5);ue||f.push(m.jsx(q,{angle:d*6,length:j,name:"minute",width:G},"minute_".concat(d)))}return f}function re(){if(!N)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(q,{angle:d*30,length:g,name:"hour",width:p},"hour_".concat(d)));return f}function oe(){if(!Q)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(le,{angle:d*30,length:Pe(N&&g,E&&j,0),name:"number",number:r(b,d)},"number_".concat(d)));return f}function ie(){return m.jsxs("div",{className:"react-clock__face",children:[te(),re(),oe()]})}function ce(){var f=u?Y(u)*30+w(u)/2+y(u)/120+(k?M(u)/12e4:0):0;return m.jsx(S,{angle:f,length:i,name:"hour",oppositeLength:c,width:l})}function se(){if(!F)return null;var f=u?Y(u)*360+w(u)*6+y(u)/10+(k?M(u)/1e4:0):0;return m.jsx(S,{angle:f,length:A,name:"minute",oppositeLength:B,width:X})}function ae(){if(!$)return null;var f=u?w(u)*360+y(u)*6+(k?M(u)*.006:0):0;return m.jsx(S,{angle:f,length:Z,name:"second",oppositeLength:ee,width:ne})}return m.jsxs("time",{className:de("react-clock",n),dateTime:u instanceof Date?u.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:F?"2-digit":void 0,second:$?"2-digit":void 0}):u||void 0,style:{width:D,height:D},children:[ie(),ce(),se(),ae()]})}export{Fe as Clock,Fe as default};
+import{j as m,d as K,aC as de}from"./index-7-Cak-QP.js";function Y(e){if(e instanceof Date)return e.getHours();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[0];if(t){const r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}}throw new Error(`Failed to get hours from date: ${e}.`)}function w(e){if(e instanceof Date)return e.getMinutes();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[1]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get minutes from date: ${e}.`)}function y(e){if(e instanceof Date)return e.getSeconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const t=n[2]||"0",r=Number.parseInt(t,10);if(!Number.isNaN(r))return r}}throw new Error(`Failed to get seconds from date: ${e}.`)}function M(e){if(e instanceof Date)return e.getMilliseconds();if(typeof e=="string"){const n=e.split(":");if(n.length>=2){const r=(n[2]||"0").split(".")[1]||"0",o=Number.parseInt(r,10);if(!Number.isNaN(o))return o}}throw new Error(`Failed to get seconds from date: ${e}.`)}function S(e){var n=e.angle,t=n===void 0?0:n,r=e.name,o=e.length,i=o===void 0?100:o,c=e.oppositeLength,a=c===void 0?10:c,l=e.width,s=l===void 0?1:l;return m.jsx("div",{className:"react-clock__hand react-clock__".concat(r,"-hand"),style:{transform:"rotate(".concat(t,"deg)")},children:m.jsx("div",{className:"react-clock__hand__body react-clock__".concat(r,"-hand__body"),style:{width:"".concat(s,"px"),top:"".concat(50-i/2,"%"),bottom:"".concat(50-a/2,"%")}})})}var q=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.width,l=a===void 0?1:a;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__body react-clock__".concat(c,"-mark__body"),style:{width:"".concat(l,"px"),top:0,bottom:"".concat(100-i/2,"%")}})})}),le=K.memo(function(n){var t=n.angle,r=t===void 0?0:t,o=n.length,i=o===void 0?10:o,c=n.name,a=n.number;return m.jsx("div",{className:"react-clock__mark react-clock__".concat(c,"-mark"),style:{transform:"rotate(".concat(r,"deg)")},children:m.jsx("div",{className:"react-clock__mark__number",style:{transform:"rotate(-".concat(r,"deg)"),top:"".concat(i/2,"%")},children:a})})});const fe=(e,n,t,r)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const o=Object.getOwnPropertyDescriptor(e,t),i=Object.getOwnPropertyDescriptor(n,t);!me(o,i)&&r||Object.defineProperty(e,t,i)},me=function(e,n){return e===void 0||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},ge=(e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)},he=(e,n)=>`/* Wrapped ${e}*/
+${n}`,pe=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),ve=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),be=(e,n,t)=>{const r=t===""?"":`with ${t.trim()}() `,o=he.bind(null,r,n.toString());Object.defineProperty(o,"name",ve);const{writable:i,enumerable:c,configurable:a}=pe;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:c,configurable:a})};function Ne(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const o of Reflect.ownKeys(n))fe(e,n,o,t);return ge(e,n),be(e,n,r),e}const v=2147483647,ke=new WeakMap,H=new WeakMap,we=new WeakMap;function ye(e,n){const t=e.get(n);if(t){if(t.maxAge<=Date.now()){e.delete(n);return}return t}}function R(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r=="number"&&Number.isFinite(r)){if(r>v)throw new TypeError(`The \`maxAge\` option cannot exceed ${v}.`);if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const o=function(...i){const c=n?n(i):i[0],a=ye(t,c);if(a)return a.data;const l=e.apply(this,i),s=typeof r=="function"?r(...i):r;if(s!==void 0&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return l;if(s>v)throw new TypeError(`The \`maxAge\` function result cannot exceed ${v}.`)}if(t.set(c,{data:l,maxAge:s===void 0||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),s!==void 0&&s!==Number.POSITIVE_INFINITY){const g=setTimeout(()=>{t.delete(c),H.get(o)?.delete(g)},s);g.unref?.();const h=H.get(o)??new Set;h.add(g),H.set(o,h)}return l};return Ne(o,e,{ignoreNonConfigurable:!0}),ke.set(o,t),we.set(o,n??(i=>i[0])),o}function Me(e){return typeof e=="string"}function Se(e,n,t){return t.indexOf(e)===n}function He(e){return e.toLowerCase()===e}function J(e){return e.indexOf(",")===-1?e:e.split(",")}function O(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var n=e.split(".")[0],t=n===void 0?"":n;return O(t)}if(e.indexOf("@")!==-1){var r=e.split("@")[0],t=r===void 0?"":r;return O(t)}if(e.indexOf("-")===-1||!He(e))return e;var o=e.split("-"),i=o[0],c=o[1],a=c===void 0?"":c;return"".concat(i,"-").concat(a.toUpperCase())}function Oe(e){var n=e===void 0?{}:e,t=n.useFallbackLocale,r=t===void 0?!0:t,o=n.fallbackLocale,i=o===void 0?"en-US":o,c=[];if(typeof navigator<"u"){for(var a=navigator.languages||[],l=[],s=0,g=a;s<g.length;s++){var h=g[s];l=l.concat(J(h))}var p=navigator.language,b=p&&J(p);c=c.concat(l,b)}return r&&c.push(i),c.filter(Me).map(O).filter(Se)}var xe=R(Oe,{cacheKey:JSON.stringify});function Le(e){return xe(e)[0]||null}var Ie=R(Le,{cacheKey:JSON.stringify});function je(e,n){return n.toLocaleString(e||Ie()||void 0)}function _e(e){return e!==null&&e!==!1&&!Number.isNaN(Number(e))}function Pe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Math.max.apply(Math,e.filter(_e))}function Fe(e){var n=e.className,t=e.formatHour,r=t===void 0?je:t,o=e.hourHandLength,i=o===void 0?50:o,c=e.hourHandOppositeLength,a=e.hourHandWidth,l=a===void 0?4:a,s=e.hourMarksLength,g=s===void 0?10:s,h=e.hourMarksWidth,p=h===void 0?3:h,b=e.locale,x=e.minuteHandLength,A=x===void 0?70:x,X=e.minuteHandOppositeLength,L=e.minuteHandWidth,B=L===void 0?2:L,I=e.minuteMarksLength,j=I===void 0?6:I,_=e.minuteMarksWidth,G=_===void 0?1:_,P=e.renderHourMarks,N=P===void 0?!0:P,T=e.renderMinuteHand,F=T===void 0?!0:T,W=e.renderMinuteMarks,E=W===void 0?!0:W,Q=e.renderNumbers,C=e.renderSecondHand,$=C===void 0?!0:C,U=e.secondHandLength,Z=U===void 0?90:U,ee=e.secondHandOppositeLength,V=e.secondHandWidth,ne=V===void 0?1:V,z=e.size,D=z===void 0?150:z,k=e.useMillisecondPrecision,u=e.value;function te(){if(!E)return null;for(var f=[],d=1;d<=60;d+=1){var ue=N&&!(d%5);ue||f.push(m.jsx(q,{angle:d*6,length:j,name:"minute",width:G},"minute_".concat(d)))}return f}function re(){if(!N)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(q,{angle:d*30,length:g,name:"hour",width:p},"hour_".concat(d)));return f}function oe(){if(!Q)return null;for(var f=[],d=1;d<=12;d+=1)f.push(m.jsx(le,{angle:d*30,length:Pe(N&&g,E&&j,0),name:"number",number:r(b,d)},"number_".concat(d)));return f}function ie(){return m.jsxs("div",{className:"react-clock__face",children:[te(),re(),oe()]})}function ce(){var f=u?Y(u)*30+w(u)/2+y(u)/120+(k?M(u)/12e4:0):0;return m.jsx(S,{angle:f,length:i,name:"hour",oppositeLength:c,width:l})}function se(){if(!F)return null;var f=u?Y(u)*360+w(u)*6+y(u)/10+(k?M(u)/1e4:0):0;return m.jsx(S,{angle:f,length:A,name:"minute",oppositeLength:X,width:B})}function ae(){if(!$)return null;var f=u?w(u)*360+y(u)*6+(k?M(u)*.006:0):0;return m.jsx(S,{angle:f,length:Z,name:"second",oppositeLength:ee,width:ne})}return m.jsxs("time",{className:de("react-clock",n),dateTime:u instanceof Date?u.toLocaleTimeString("en",{hourCycle:"h23",hour:"2-digit",minute:F?"2-digit":void 0,second:$?"2-digit":void 0}):u||void 0,style:{width:D,height:D},children:[ie(),ce(),se(),ae()]})}export{Fe as Clock,Fe as default};
diff --git a/src/firefox/newtab/index.html b/src/firefox/newtab/index.html
index 828387c54..72df5e787 100644
--- a/src/firefox/newtab/index.html
+++ b/src/firefox/newtab/index.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" sizes="16x16" href="../icons/icon16.png" />
<title>New Tab</title>
- <script type="module" crossorigin src="./assets/index-ZvUWfRHz.js"></script>
+ <script type="module" crossorigin src="./assets/index-7-Cak-QP.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-C4nKw5hY.css">
</head>
<body>
diff --git a/test/newtab.mjs b/test/newtab.mjs
index 936e90f38..fc1c05023 100644
--- a/test/newtab.mjs
+++ b/test/newtab.mjs
@@ -2701,3 +2701,24 @@ test('round-85: the handoff module contract says Act is sent immediately', () =>
assert.doesNotMatch(src, /Act always needs the user's own Enter/);
assert.match(src, /Ask and Act: the task is filled in and sent straight away/);
});
+
+test('round-85: inactive settings are inert, dialogs hide the page from assistive technology, the producer contract matches', () => {
+ const wrapper = readFileSync(nt('components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx'), 'utf8');
+ assert.match(wrapper, /className=\{shown \? 'preferences' : 'preferencesInactive'\} inert=\{!shown\}/);
+ const files = [
+ 'features/misc/modals/Modals.jsx',
+ 'features/misc/sections/Advanced.jsx',
+ 'features/background/options/Custom.jsx',
+ 'features/navbar/options/AppsOptions.jsx',
+ 'features/quicklinks/options/QuickLinksOptions.jsx',
+ ];
+ for (const f of files) {
+ const src = readFileSync(nt(f), 'utf8');
+ assert.doesNotMatch(src, /ariaHideApp=\{false\}/, f);
+ assert.match(src, /appElement=\{pageElement\(\)\}/, f);
+ if (!f.endsWith('Modals.jsx')) assert.match(src, /aria=\{\{ modal: true \}\}/, f);
+ }
+ const handoff = readFileSync(nt('features/agent/handoff.js'), 'utf8');
+ assert.doesNotMatch(handoff, /does NOT send|user always confirms an Act run/);
+ assert.match(handoff, /Ask and Act: fills the composer and sends straight away/);
+});