1029 lines
2.2 MiB
1029 lines
2.2 MiB
var une=Object.defineProperty;var dne=(t,e,n)=>e in t?une(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Zo=(t,e,n)=>dne(t,typeof e!="symbol"?e+"":e,n);import{r as k,$ as rL,R as hne,u as Ir,j as b,I as xc,a as tt,l as EA,b as en,J as fg,n as xl,c as Ki,d as Sa,o as $$,e as It,U as Br,f as _a,y as mr,g as m_,C as Fr,h as zw,p as sL,i as P$,k as So,m as Qt,q as T$,O as Sc,_ as pne,M as ai,D as aL,s as oL,t as lL,v as Nr,w as id,x as cL,T as fL,z as mne,A as A$,B as rd,E as gne,N as vne,F as bne,G as yne,H as wne,K as os,L as uL,P as ac,Q as wf,S as Pg,V as Oy,W as kne,X as One,Y as xne,Z as Sne,a0 as Ut,a1 as j,a2 as Tt,a3 as Wt,a4 as _t,a5 as ll,a6 as _ne,a7 as Ad,a8 as Mb,a9 as E$,aa as dL,ab as bs,ac as Cne,ad as R$,ae as hL,af as pL,ag as $ne,ah as mL,ai as RA,aj as Pne,ak as Tne,al as Ane,am as gL,an as Ene,ao as gr,ap as vL,aq as bL,ar as Rne,as as Dne,at as Mne,au as Nne}from"./index-CfI7nleC.js";import{g as qw,m as Lne,c as vv,a as jne}from"./index-BSHrD-on.js";import{l as fl,e as yL}from"./extension-utilities-DU05fpr-.js";/**
|
||
* @remix-run/router v1.16.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function qn(){return qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},qn.apply(this,arguments)}var si;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(si||(si={}));function Ine(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:n,v5Compat:i=!1}=t,r;r=e.map((m,g)=>f(m,typeof m=="string"?null:m.state,g===0?"default":void 0));let s=l(n??r.length-1),a=si.Pop,o=null;function l(m){return Math.min(Math.max(m,0),r.length-1)}function c(){return r[s]}function f(m,g,v){g===void 0&&(g=null);let w=g_(r?c().pathname:"/",m,g,v);return Ef(w.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(m)),w}function u(m){return typeof m=="string"?m:Ed(m)}return{get index(){return s},get action(){return a},get location(){return c()},createHref:u,createURL(m){return new URL(u(m),"http://localhost")},encodeLocation(m){let g=typeof m=="string"?Sl(m):m;return{pathname:g.pathname||"",search:g.search||"",hash:g.hash||""}},push(m,g){a=si.Push;let v=f(m,g);s+=1,r.splice(s,r.length,v),i&&o&&o({action:a,location:v,delta:1})},replace(m,g){a=si.Replace;let v=f(m,g);r[s]=v,i&&o&&o({action:a,location:v,delta:0})},go(m){a=si.Pop;let g=l(s+m),v=r[g];s=g,o&&o({action:a,location:v,delta:m})},listen(m){return o=m,()=>{o=null}}}}function vt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ef(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Bne(){return Math.random().toString(36).substr(2,8)}function g_(t,e,n,i){return n===void 0&&(n=null),qn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Sl(e):e,{state:n,key:e&&e.key||i||Bne()})}function Ed(t){let{pathname:e="/",search:n="",hash:i=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function Sl(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}var Dn;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Dn||(Dn={}));const Fne=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qne(t){return t.index===!0}function v_(t,e,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),t.map((r,s)=>{let a=[...n,s],o=typeof r.id=="string"?r.id:a.join("-");if(vt(r.index!==!0||!r.children,"Cannot specify children on an index route"),vt(!i[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),Qne(r)){let l=qn({},r,e(r),{id:o});return i[o]=l,l}else{let l=qn({},r,e(r),{id:o,children:void 0});return i[o]=l,r.children&&(l.children=v_(r.children,e,a,i)),l}})}function sd(t,e,n){n===void 0&&(n="/");let i=typeof e=="string"?Sl(e):e,r=pl(i.pathname||"/",n);if(r==null)return null;let s=wL(t);qne(s);let a=null;for(let o=0;a==null&&o<s.length;++o){let l=eie(r);a=Kne(s[o],l)}return a}function zne(t,e){let{route:n,pathname:i,params:r}=t;return{id:n.id,pathname:i,params:r,data:e[n.id],handle:n.handle}}function wL(t,e,n,i){e===void 0&&(e=[]),n===void 0&&(n=[]),i===void 0&&(i="");let r=(s,a,o)=>{let l={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(vt(l.relativePath.startsWith(i),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(i.length));let c=ul([i,l.relativePath]),f=n.concat(l);s.children&&s.children.length>0&&(vt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),wL(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:Xne(c,s.index),routesMeta:f})};return t.forEach((s,a)=>{var o;if(s.path===""||!((o=s.path)!=null&&o.includes("?")))r(s,a);else for(let l of kL(s.path))r(s,a,l)}),e}function kL(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return r?[s,""]:[s];let a=kL(i.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),r&&o.push(...a),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function qne(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Yne(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const Wne=/^:[\w-]+$/,Une=3,Vne=2,Hne=1,Zne=10,Gne=-2,DA=t=>t==="*";function Xne(t,e){let n=t.split("/"),i=n.length;return n.some(DA)&&(i+=Gne),e&&(i+=Vne),n.filter(r=>!DA(r)).reduce((r,s)=>r+(Wne.test(s)?Une:s===""?Hne:Zne),i)}function Yne(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function Kne(t,e){let{routesMeta:n}=t,i={},r="/",s=[];for(let a=0;a<n.length;++a){let o=n[a],l=a===n.length-1,c=r==="/"?e:e.slice(r.length)||"/",f=b_({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c);if(!f)return null;Object.assign(i,f.params);let u=o.route;s.push({params:i,pathname:ul([r,f.pathname]),pathnameBase:iie(ul([r,f.pathnameBase])),route:u}),f.pathnameBase!=="/"&&(r=ul([r,f.pathnameBase]))}return s}function b_(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,i]=Jne(t.path,t.caseSensitive,t.end),r=e.match(n);if(!r)return null;let s=r[0],a=s.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:i.reduce((c,f,u)=>{let{paramName:h,isOptional:m}=f;if(h==="*"){let v=o[u]||"";a=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const g=o[u];return m&&!g?c[h]=void 0:c[h]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:a,pattern:t}}function Jne(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Ef(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function eie(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ef(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function pl(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}function tie(t,e){e===void 0&&(e="/");let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?Sl(t):t;return{pathname:n?n.startsWith("/")?n:nie(n,e):e,search:rie(i),hash:sie(r)}}function nie(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Gx(t,e,n,i){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function OL(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Ww(t,e){let n=OL(t);return e?n.map((i,r)=>r===t.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Uw(t,e,n,i){i===void 0&&(i=!1);let r;typeof t=="string"?r=Sl(t):(r=qn({},t),vt(!r.pathname||!r.pathname.includes("?"),Gx("?","pathname","search",r)),vt(!r.pathname||!r.pathname.includes("#"),Gx("#","pathname","hash",r)),vt(!r.search||!r.search.includes("#"),Gx("#","search","hash",r)));let s=t===""||r.pathname==="",a=s?"/":r.pathname,o;if(a==null)o=n;else{let u=e.length-1;if(!i&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),u-=1;r.pathname=h.join("/")}o=u>=0?e[u]:"/"}let l=tie(r,o),c=a&&a!=="/"&&a.endsWith("/"),f=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const ul=t=>t.join("/").replace(/\/\/+/g,"/"),iie=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),rie=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,sie=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class y_ extends Error{}class aie{constructor(e,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],vt(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let i;this.abortPromise=new Promise((s,a)=>i=a),this.controller=new AbortController;let r=()=>i(new y_("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce((s,a)=>{let[o,l]=a;return Object.assign(s,{[o]:this.trackPromise(o,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(e,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let i=Promise.race([n,this.abortPromise]).then(r=>this.onSettle(i,e,void 0,r),r=>this.onSettle(i,e,r));return i.catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),i}onSettle(e,n,i,r){if(this.controller.signal.aborted&&i instanceof y_)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>i}),Promise.reject(i);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),i===void 0&&r===void 0){let s=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>s}),this.emit(!1,n),Promise.reject(s)}return r===void 0?(Object.defineProperty(e,"_error",{get:()=>i}),this.emit(!1,n),Promise.reject(i)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,n),r)}emit(e,n){this.subscribers.forEach(i=>i(e,n))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(e){let n=!1;if(!this.done){let i=()=>this.cancel();e.addEventListener("abort",i),n=await new Promise(r=>{this.subscribe(s=>{e.removeEventListener("abort",i),(s||this.done)&&r(s)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return vt(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,n)=>{let[i,r]=n;return Object.assign(e,{[i]:lie(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function oie(t){return t instanceof Promise&&t._tracked===!0}function lie(t){if(!oie(t))return t;if(t._error)throw t._error;return t._data}const xL=function(e,n){n===void 0&&(n={});let i=typeof n=="number"?{status:n}:n;return new aie(e,i)};class SL{constructor(e,n,i,r){r===void 0&&(r=!1),this.status=e,this.statusText=n||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function D$(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const _L=["post","put","patch","delete"],cie=new Set(_L),fie=["get",..._L],uie=new Set(fie),die=new Set([301,302,303,307,308]),hie=new Set([307,308]),Xx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pie={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jp={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},M$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mie=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),CL="remix-router-transitions";function gie(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",i=!n;vt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r;if(t.mapRouteProperties)r=t.mapRouteProperties;else if(t.detectErrorBoundary){let V=t.detectErrorBoundary;r=G=>({hasErrorBoundary:V(G)})}else r=mie;let s={},a=v_(t.routes,r,void 0,s),o,l=t.basename||"/",c=t.unstable_dataStrategy||wie,f=qn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),u=null,h=new Set,m=null,g=null,v=null,w=t.hydrationData!=null,O=sd(a,t.history.location,l),x=null;if(O==null){let V=qs(404,{pathname:t.history.location.pathname}),{matches:G,route:se}=qA(a);O=G,x={[se.id]:V}}let $,T=O.some(V=>V.route.lazy),S=O.some(V=>V.route.loader);if(T)$=!1;else if(!S)$=!0;else if(f.v7_partialHydration){let V=t.hydrationData?t.hydrationData.loaderData:null,G=t.hydrationData?t.hydrationData.errors:null,se=pe=>pe.route.loader?typeof pe.route.loader=="function"&&pe.route.loader.hydrate===!0?!1:V&&V[pe.route.id]!==void 0||G&&G[pe.route.id]!==void 0:!0;if(G){let pe=O.findIndex(Te=>G[Te.route.id]!==void 0);$=O.slice(0,pe+1).every(se)}else $=O.every(se)}else $=t.hydrationData!=null;let R,_={historyAction:t.history.action,location:t.history.location,matches:O,initialized:$,navigation:Xx,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||x,fetchers:new Map,blockers:new Map},P=si.Pop,A=!1,N,M=!1,Q=new Map,U=null,z=!1,Y=!1,ae=[],ne=[],he=new Map,ve=0,je=-1,we=new Map,ge=new Set,B=new Map,D=new Map,te=new Set,q=new Map,lt=new Map,yt=!1;function mt(){if(u=t.history.listen(V=>{let{action:G,location:se,delta:pe}=V;if(yt){yt=!1;return}Ef(lt.size===0||pe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Te=ia({currentLocation:_.location,nextLocation:se,historyAction:G});if(Te&&pe!=null){yt=!0,t.history.go(pe*-1),br(Te,{state:"blocked",location:se,proceed(){br(Te,{state:"proceeding",proceed:void 0,reset:void 0,location:se}),t.history.go(pe)},reset(){let ze=new Map(_.blockers);ze.set(Te,Jp),dt({blockers:ze})}});return}return kn(G,se)}),n){Rie(e,Q);let V=()=>Die(e,Q);e.addEventListener("pagehide",V),U=()=>e.removeEventListener("pagehide",V)}return _.initialized||kn(si.Pop,_.location,{initialHydration:!0}),R}function Ke(){u&&u(),U&&U(),h.clear(),N&&N.abort(),_.fetchers.forEach((V,G)=>ii(G)),_.blockers.forEach((V,G)=>Hr(G))}function Gt(V){return h.add(V),()=>h.delete(V)}function dt(V,G){G===void 0&&(G={}),_=qn({},_,V);let se=[],pe=[];f.v7_fetcherPersist&&_.fetchers.forEach((Te,ze)=>{Te.state==="idle"&&(te.has(ze)?pe.push(ze):se.push(ze))}),[...h].forEach(Te=>Te(_,{deletedFetchers:pe,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),f.v7_fetcherPersist&&(se.forEach(Te=>_.fetchers.delete(Te)),pe.forEach(Te=>ii(Te)))}function dn(V,G,se){var pe,Te;let{flushSync:ze}=se===void 0?{}:se,Ie=_.actionData!=null&&_.navigation.formMethod!=null&&pa(_.navigation.formMethod)&&_.navigation.state==="loading"&&((pe=V.state)==null?void 0:pe._isRedirect)!==!0,$e;G.actionData?Object.keys(G.actionData).length>0?$e=G.actionData:$e=null:Ie?$e=_.actionData:$e=null;let Ue=G.loaderData?QA(_.loaderData,G.loaderData,G.matches||[],G.errors):_.loaderData,He=_.blockers;He.size>0&&(He=new Map(He),He.forEach((Ve,Yt)=>He.set(Yt,Jp)));let Sn=A===!0||_.navigation.formMethod!=null&&pa(_.navigation.formMethod)&&((Te=V.state)==null?void 0:Te._isRedirect)!==!0;o&&(a=o,o=void 0),z||P===si.Pop||(P===si.Push?t.history.push(V,V.state):P===si.Replace&&t.history.replace(V,V.state));let nn;if(P===si.Pop){let Ve=Q.get(_.location.pathname);Ve&&Ve.has(V.pathname)?nn={currentLocation:_.location,nextLocation:V}:Q.has(V.pathname)&&(nn={currentLocation:V,nextLocation:_.location})}else if(M){let Ve=Q.get(_.location.pathname);Ve?Ve.add(V.pathname):(Ve=new Set([V.pathname]),Q.set(_.location.pathname,Ve)),nn={currentLocation:_.location,nextLocation:V}}dt(qn({},G,{actionData:$e,loaderData:Ue,historyAction:P,location:V,initialized:!0,navigation:Xx,revalidation:"idle",restoreScrollPosition:wi(V,G.matches||_.matches),preventScrollReset:Sn,blockers:He}),{viewTransitionOpts:nn,flushSync:ze===!0}),P=si.Pop,A=!1,M=!1,z=!1,Y=!1,ae=[],ne=[]}async function Ot(V,G){if(typeof V=="number"){t.history.go(V);return}let se=w_(_.location,_.matches,l,f.v7_prependBasename,V,f.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:pe,submission:Te,error:ze}=MA(f.v7_normalizeFormMethod,!1,se,G),Ie=_.location,$e=g_(_.location,pe,G&&G.state);$e=qn({},$e,t.history.encodeLocation($e));let Ue=G&&G.replace!=null?G.replace:void 0,He=si.Push;Ue===!0?He=si.Replace:Ue===!1||Te!=null&&pa(Te.formMethod)&&Te.formAction===_.location.pathname+_.location.search&&(He=si.Replace);let Sn=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,nn=(G&&G.unstable_flushSync)===!0,Ve=ia({currentLocation:Ie,nextLocation:$e,historyAction:He});if(Ve){br(Ve,{state:"blocked",location:$e,proceed(){br(Ve,{state:"proceeding",proceed:void 0,reset:void 0,location:$e}),Ot(V,G)},reset(){let Yt=new Map(_.blockers);Yt.set(Ve,Jp),dt({blockers:Yt})}});return}return await kn(He,$e,{submission:Te,pendingError:ze,preventScrollReset:Sn,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:nn})}function wn(){if(qe(),dt({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){kn(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}kn(P||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function kn(V,G,se){N&&N.abort(),N=null,P=V,z=(se&&se.startUninterruptedRevalidation)===!0,Un(_.location,_.matches),A=(se&&se.preventScrollReset)===!0,M=(se&&se.enableViewTransition)===!0;let pe=o||a,Te=se&&se.overrideNavigation,ze=sd(pe,G,l),Ie=(se&&se.flushSync)===!0;if(!ze){let Ve=qs(404,{pathname:G.pathname}),{matches:Yt,route:ri}=qA(pe);jo(),dn(G,{matches:Yt,loaderData:{},errors:{[ri.id]:Ve}},{flushSync:Ie});return}if(_.initialized&&!Y&&Cie(_.location,G)&&!(se&&se.submission&&pa(se.submission.formMethod))){dn(G,{matches:ze},{flushSync:Ie});return}N=new AbortController;let $e=Nu(t.history,G,N.signal,se&&se.submission),Ue;if(se&&se.pendingError)Ue=[ug(ze).route.id,{type:Dn.error,error:se.pendingError}];else if(se&&se.submission&&pa(se.submission.formMethod)){let Ve=await an($e,G,se.submission,ze,{replace:se.replace,flushSync:Ie});if(Ve.shortCircuited)return;Ue=Ve.pendingActionResult,Te=Yx(G,se.submission),Ie=!1,$e=Nu(t.history,$e.url,$e.signal)}let{shortCircuited:He,loaderData:Sn,errors:nn}=await qi($e,G,ze,Te,se&&se.submission,se&&se.fetcherSubmission,se&&se.replace,se&&se.initialHydration===!0,Ie,Ue);He||(N=null,dn(G,qn({matches:ze},zA(Ue),{loaderData:Sn,errors:nn})))}async function an(V,G,se,pe,Te){Te===void 0&&(Te={}),qe();let ze=Aie(G,se);dt({navigation:ze},{flushSync:Te.flushSync===!0});let Ie,$e=O_(pe,G);if(!$e.route.action&&!$e.route.lazy)Ie={type:Dn.error,error:qs(405,{method:V.method,pathname:G.pathname,routeId:$e.route.id})};else if(Ie=(await er("action",V,[$e],pe))[0],V.signal.aborted)return{shortCircuited:!0};if(Of(Ie)){let Ue;return Te&&Te.replace!=null?Ue=Te.replace:Ue=IA(Ie.response.headers.get("Location"),new URL(V.url),l)===_.location.pathname+_.location.search,await yi(V,Ie,{submission:se,replace:Ue}),{shortCircuited:!0}}if(kf(Ie))throw qs(400,{type:"defer-action"});if(Hs(Ie)){let Ue=ug(pe,$e.route.id);return(Te&&Te.replace)!==!0&&(P=si.Push),{pendingActionResult:[Ue.route.id,Ie]}}return{pendingActionResult:[$e.route.id,Ie]}}async function qi(V,G,se,pe,Te,ze,Ie,$e,Ue,He){let Sn=pe||Yx(G,Te),nn=Te||ze||VA(Sn),Ve=o||a,[Yt,ri]=NA(t.history,_,se,nn,G,f.v7_partialHydration&&$e===!0,f.unstable_skipActionErrorRevalidation,Y,ae,ne,te,B,ge,Ve,l,He);if(jo(xt=>!(se&&se.some(Ai=>Ai.route.id===xt))||Yt&&Yt.some(Ai=>Ai.route.id===xt)),je=++ve,Yt.length===0&&ri.length===0){let xt=Os();return dn(G,qn({matches:se,loaderData:{},errors:He&&Hs(He[1])?{[He[0]]:He[1].error}:null},zA(He),xt?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Ue}),{shortCircuited:!0}}if(!z&&(!f.v7_partialHydration||!$e)){ri.forEach(Ai=>{let Ei=_.fetchers.get(Ai.key),ui=em(void 0,Ei?Ei.data:void 0);_.fetchers.set(Ai.key,ui)});let xt;He&&!Hs(He[1])?xt={[He[0]]:He[1].data}:_.actionData&&(Object.keys(_.actionData).length===0?xt=null:xt=_.actionData),dt(qn({navigation:Sn},xt!==void 0?{actionData:xt}:{},ri.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Ue})}ri.forEach(xt=>{he.has(xt.key)&&xn(xt.key),xt.controller&&he.set(xt.key,xt.controller)});let Qc=()=>ri.forEach(xt=>xn(xt.key));N&&N.signal.addEventListener("abort",Qc);let{loaderResults:Ia,fetcherResults:Io}=await xe(_.matches,se,Yt,ri,V);if(V.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Qc),ri.forEach(xt=>he.delete(xt.key));let Tl=WA([...Ia,...Io]);if(Tl){if(Tl.idx>=Yt.length){let xt=ri[Tl.idx-Yt.length].key;ge.add(xt)}return await yi(V,Tl.result,{replace:Ie}),{shortCircuited:!0}}let{loaderData:Al,errors:xs}=FA(_,se,Yt,Ia,He,ri,Io,q);q.forEach((xt,Ai)=>{xt.subscribe(Ei=>{(Ei||xt.done)&&q.delete(Ai)})}),f.v7_partialHydration&&$e&&_.errors&&Object.entries(_.errors).filter(xt=>{let[Ai]=xt;return!Yt.some(Ei=>Ei.route.id===Ai)}).forEach(xt=>{let[Ai,Ei]=xt;xs=Object.assign(xs||{},{[Ai]:Ei})});let bu=Os(),yu=Ur(je),wu=bu||yu||ri.length>0;return qn({loaderData:Al,errors:xs},wu?{fetchers:new Map(_.fetchers)}:{})}function vr(V,G,se,pe){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");he.has(V)&&xn(V);let Te=(pe&&pe.unstable_flushSync)===!0,ze=o||a,Ie=w_(_.location,_.matches,l,f.v7_prependBasename,se,f.v7_relativeSplatPath,G,pe==null?void 0:pe.relative),$e=sd(ze,Ie,l);if(!$e){Et(V,G,qs(404,{pathname:Ie}),{flushSync:Te});return}let{path:Ue,submission:He,error:Sn}=MA(f.v7_normalizeFormMethod,!0,Ie,pe);if(Sn){Et(V,G,Sn,{flushSync:Te});return}let nn=O_($e,Ue);if(A=(pe&&pe.preventScrollReset)===!0,He&&pa(He.formMethod)){jn(V,G,Ue,nn,$e,Te,He);return}B.set(V,{routeId:G,path:Ue}),On(V,G,Ue,nn,$e,Te,He)}async function jn(V,G,se,pe,Te,ze,Ie){if(qe(),B.delete(V),!pe.route.action&&!pe.route.lazy){let ui=qs(405,{method:Ie.formMethod,pathname:se,routeId:G});Et(V,G,ui,{flushSync:ze});return}let $e=_.fetchers.get(V);Ft(V,Eie(Ie,$e),{flushSync:ze});let Ue=new AbortController,He=Nu(t.history,se,Ue.signal,Ie);he.set(V,Ue);let Sn=ve,Ve=(await er("action",He,[pe],Te))[0];if(He.signal.aborted){he.get(V)===Ue&&he.delete(V);return}if(f.v7_fetcherPersist&&te.has(V)){if(Of(Ve)||Hs(Ve)){Ft(V,Vl(void 0));return}}else{if(Of(Ve))if(he.delete(V),je>Sn){Ft(V,Vl(void 0));return}else return ge.add(V),Ft(V,em(Ie)),yi(He,Ve,{fetcherSubmission:Ie});if(Hs(Ve)){Et(V,G,Ve.error);return}}if(kf(Ve))throw qs(400,{type:"defer-action"});let Yt=_.navigation.location||_.location,ri=Nu(t.history,Yt,Ue.signal),Qc=o||a,Ia=_.navigation.state!=="idle"?sd(Qc,_.navigation.location,l):_.matches;vt(Ia,"Didn't find any matches after fetcher action");let Io=++ve;we.set(V,Io);let Tl=em(Ie,Ve.data);_.fetchers.set(V,Tl);let[Al,xs]=NA(t.history,_,Ia,Ie,Yt,!1,f.unstable_skipActionErrorRevalidation,Y,ae,ne,te,B,ge,Qc,l,[pe.route.id,Ve]);xs.filter(ui=>ui.key!==V).forEach(ui=>{let zc=ui.key,T0=_.fetchers.get(zc),A0=em(void 0,T0?T0.data:void 0);_.fetchers.set(zc,A0),he.has(zc)&&xn(zc),ui.controller&&he.set(zc,ui.controller)}),dt({fetchers:new Map(_.fetchers)});let bu=()=>xs.forEach(ui=>xn(ui.key));Ue.signal.addEventListener("abort",bu);let{loaderResults:yu,fetcherResults:wu}=await xe(_.matches,Ia,Al,xs,ri);if(Ue.signal.aborted)return;Ue.signal.removeEventListener("abort",bu),we.delete(V),he.delete(V),xs.forEach(ui=>he.delete(ui.key));let xt=WA([...yu,...wu]);if(xt){if(xt.idx>=Al.length){let ui=xs[xt.idx-Al.length].key;ge.add(ui)}return yi(ri,xt.result)}let{loaderData:Ai,errors:Ei}=FA(_,_.matches,Al,yu,void 0,xs,wu,q);if(_.fetchers.has(V)){let ui=Vl(Ve.data);_.fetchers.set(V,ui)}Ur(Io),_.navigation.state==="loading"&&Io>je?(vt(P,"Expected pending action"),N&&N.abort(),dn(_.navigation.location,{matches:Ia,loaderData:Ai,errors:Ei,fetchers:new Map(_.fetchers)})):(dt({errors:Ei,loaderData:QA(_.loaderData,Ai,Ia,Ei),fetchers:new Map(_.fetchers)}),Y=!1)}async function On(V,G,se,pe,Te,ze,Ie){let $e=_.fetchers.get(V);Ft(V,em(Ie,$e?$e.data:void 0),{flushSync:ze});let Ue=new AbortController,He=Nu(t.history,se,Ue.signal);he.set(V,Ue);let Sn=ve,Ve=(await er("loader",He,[pe],Te))[0];if(kf(Ve)&&(Ve=await AL(Ve,He.signal,!0)||Ve),he.get(V)===Ue&&he.delete(V),!He.signal.aborted){if(te.has(V)){Ft(V,Vl(void 0));return}if(Of(Ve))if(je>Sn){Ft(V,Vl(void 0));return}else{ge.add(V),await yi(He,Ve);return}if(Hs(Ve)){Et(V,G,Ve.error);return}vt(!kf(Ve),"Unhandled fetcher deferred data"),Ft(V,Vl(Ve.data))}}async function yi(V,G,se){let{submission:pe,fetcherSubmission:Te,replace:ze}=se===void 0?{}:se;G.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let Ie=G.response.headers.get("Location");vt(Ie,"Expected a Location header on the redirect Response"),Ie=IA(Ie,new URL(V.url),l);let $e=g_(_.location,Ie,{_isRedirect:!0});if(n){let Yt=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Yt=!0;else if(M$.test(Ie)){const ri=t.history.createURL(Ie);Yt=ri.origin!==e.location.origin||pl(ri.pathname,l)==null}if(Yt){ze?e.location.replace(Ie):e.location.assign(Ie);return}}N=null;let Ue=ze===!0?si.Replace:si.Push,{formMethod:He,formAction:Sn,formEncType:nn}=_.navigation;!pe&&!Te&&He&&Sn&&nn&&(pe=VA(_.navigation));let Ve=pe||Te;if(hie.has(G.response.status)&&Ve&&pa(Ve.formMethod))await kn(Ue,$e,{submission:qn({},Ve,{formAction:Ie}),preventScrollReset:A});else{let Yt=Yx($e,pe);await kn(Ue,$e,{overrideNavigation:Yt,fetcherSubmission:Te,preventScrollReset:A})}}async function er(V,G,se,pe){try{let Te=await kie(c,V,G,se,pe,s,r);return await Promise.all(Te.map((ze,Ie)=>{if($ie(ze)){let $e=ze.result;return{type:Dn.redirect,response:Sie($e,G,se[Ie].route.id,pe,l,f.v7_relativeSplatPath)}}return xie(ze)}))}catch(Te){return se.map(()=>({type:Dn.error,error:Te}))}}async function xe(V,G,se,pe,Te){let[ze,...Ie]=await Promise.all([se.length?er("loader",Te,se,G):[],...pe.map($e=>{if($e.matches&&$e.match&&$e.controller){let Ue=Nu(t.history,$e.path,$e.controller.signal);return er("loader",Ue,[$e.match],$e.matches).then(He=>He[0])}else return Promise.resolve({type:Dn.error,error:qs(404,{pathname:$e.path})})})]);return await Promise.all([UA(V,se,ze,ze.map(()=>Te.signal),!1,_.loaderData),UA(V,pe.map($e=>$e.match),Ie,pe.map($e=>$e.controller?$e.controller.signal:null),!0)]),{loaderResults:ze,fetcherResults:Ie}}function qe(){Y=!0,ae.push(...jo()),B.forEach((V,G)=>{he.has(G)&&(ne.push(G),xn(G))})}function Ft(V,G,se){se===void 0&&(se={}),_.fetchers.set(V,G),dt({fetchers:new Map(_.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Et(V,G,se,pe){pe===void 0&&(pe={});let Te=ug(_.matches,G);ii(V),dt({errors:{[Te.route.id]:se},fetchers:new Map(_.fetchers)},{flushSync:(pe&&pe.flushSync)===!0})}function Xt(V){return f.v7_fetcherPersist&&(D.set(V,(D.get(V)||0)+1),te.has(V)&&te.delete(V)),_.fetchers.get(V)||pie}function ii(V){let G=_.fetchers.get(V);he.has(V)&&!(G&&G.state==="loading"&&we.has(V))&&xn(V),B.delete(V),we.delete(V),ge.delete(V),te.delete(V),_.fetchers.delete(V)}function tr(V){if(f.v7_fetcherPersist){let G=(D.get(V)||0)-1;G<=0?(D.delete(V),te.add(V)):D.set(V,G)}else ii(V);dt({fetchers:new Map(_.fetchers)})}function xn(V){let G=he.get(V);vt(G,"Expected fetch controller: "+V),G.abort(),he.delete(V)}function Wr(V){for(let G of V){let se=Xt(G),pe=Vl(se.data);_.fetchers.set(G,pe)}}function Os(){let V=[],G=!1;for(let se of ge){let pe=_.fetchers.get(se);vt(pe,"Expected fetcher: "+se),pe.state==="loading"&&(ge.delete(se),V.push(se),G=!0)}return Wr(V),G}function Ur(V){let G=[];for(let[se,pe]of we)if(pe<V){let Te=_.fetchers.get(se);vt(Te,"Expected fetcher: "+se),Te.state==="loading"&&(xn(se),we.delete(se),G.push(se))}return Wr(G),G.length>0}function Vr(V,G){let se=_.blockers.get(V)||Jp;return lt.get(V)!==G&<.set(V,G),se}function Hr(V){_.blockers.delete(V),lt.delete(V)}function br(V,G){let se=_.blockers.get(V)||Jp;vt(se.state==="unblocked"&&G.state==="blocked"||se.state==="blocked"&&G.state==="blocked"||se.state==="blocked"&&G.state==="proceeding"||se.state==="blocked"&&G.state==="unblocked"||se.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+se.state+" -> "+G.state);let pe=new Map(_.blockers);pe.set(V,G),dt({blockers:pe})}function ia(V){let{currentLocation:G,nextLocation:se,historyAction:pe}=V;if(lt.size===0)return;lt.size>1&&Ef(!1,"A router only supports one blocker at a time");let Te=Array.from(lt.entries()),[ze,Ie]=Te[Te.length-1],$e=_.blockers.get(ze);if(!($e&&$e.state==="proceeding")&&Ie({currentLocation:G,nextLocation:se,historyAction:pe}))return ze}function jo(V){let G=[];return q.forEach((se,pe)=>{(!V||V(pe))&&(se.cancel(),G.push(pe),q.delete(pe))}),G}function jp(V,G,se){if(m=V,v=G,g=se||null,!w&&_.navigation===Xx){w=!0;let pe=wi(_.location,_.matches);pe!=null&&dt({restoreScrollPosition:pe})}return()=>{m=null,v=null,g=null}}function Fc(V,G){return g&&g(V,G.map(pe=>zne(pe,_.loaderData)))||V.key}function Un(V,G){if(m&&v){let se=Fc(V,G);m[se]=v()}}function wi(V,G){if(m){let se=Fc(V,G),pe=m[se];if(typeof pe=="number")return pe}return null}function Ti(V){s={},o=v_(V,r,void 0,s)}return R={get basename(){return l},get future(){return f},get state(){return _},get routes(){return a},get window(){return e},initialize:mt,subscribe:Gt,enableScrollRestoration:jp,navigate:Ot,fetch:vr,revalidate:wn,createHref:V=>t.history.createHref(V),encodeLocation:V=>t.history.encodeLocation(V),getFetcher:Xt,deleteFetcher:tr,dispose:Ke,getBlocker:Vr,deleteBlocker:Hr,_internalFetchControllers:he,_internalActiveDeferreds:q,_internalSetRoutes:Ti},R}function vie(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function w_(t,e,n,i,r,s,a,o){let l,c;if(a){l=[];for(let u of e)if(l.push(u),u.route.id===a){c=u;break}}else l=e,c=e[e.length-1];let f=Uw(r||".",Ww(l,s),pl(t.pathname,n)||t.pathname,o==="path");return r==null&&(f.search=t.search,f.hash=t.hash),(r==null||r===""||r===".")&&c&&c.route.index&&!N$(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i&&n!=="/"&&(f.pathname=f.pathname==="/"?n:ul([n,f.pathname])),Ed(f)}function MA(t,e,n,i){if(!i||!vie(i))return{path:n};if(i.formMethod&&!Tie(i.formMethod))return{path:n,error:qs(405,{method:i.formMethod})};let r=()=>({path:n,error:qs(400,{type:"invalid-body"})}),s=i.formMethod||"get",a=t?s.toUpperCase():s.toLowerCase(),o=PL(n);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!pa(a))return r();let h=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((m,g)=>{let[v,w]=g;return""+m+v+"="+w+`
|
||
`},""):String(i.body);return{path:n,submission:{formMethod:a,formAction:o,formEncType:i.formEncType,formData:void 0,json:void 0,text:h}}}else if(i.formEncType==="application/json"){if(!pa(a))return r();try{let h=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:n,submission:{formMethod:a,formAction:o,formEncType:i.formEncType,formData:void 0,json:h,text:void 0}}}catch{return r()}}}vt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(i.formData)l=k_(i.formData),c=i.formData;else if(i.body instanceof FormData)l=k_(i.body),c=i.body;else if(i.body instanceof URLSearchParams)l=i.body,c=BA(l);else if(i.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(i.body),c=BA(l)}catch{return r()}let f={formMethod:a,formAction:o,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(pa(f.formMethod))return{path:n,submission:f};let u=Sl(n);return e&&u.search&&N$(u.search)&&l.append("index",""),u.search="?"+l,{path:Ed(u),submission:f}}function bie(t,e){let n=t;if(e){let i=t.findIndex(r=>r.route.id===e);i>=0&&(n=t.slice(0,i))}return n}function NA(t,e,n,i,r,s,a,o,l,c,f,u,h,m,g,v){let w=v?Hs(v[1])?v[1].error:v[1].data:void 0,O=t.createURL(e.location),x=t.createURL(r),$=v&&Hs(v[1])?v[0]:void 0,T=$?bie(n,$):n,S=v?v[1].statusCode:void 0,R=a&&S&&S>=400,_=T.filter((A,N)=>{let{route:M}=A;if(M.lazy)return!0;if(M.loader==null)return!1;if(s)return typeof M.loader!="function"||M.loader.hydrate?!0:e.loaderData[M.id]===void 0&&(!e.errors||e.errors[M.id]===void 0);if(yie(e.loaderData,e.matches[N],A)||l.some(z=>z===A.route.id))return!0;let Q=e.matches[N],U=A;return LA(A,qn({currentUrl:O,currentParams:Q.params,nextUrl:x,nextParams:U.params},i,{actionResult:w,unstable_actionStatus:S,defaultShouldRevalidate:R?!1:o||O.pathname+O.search===x.pathname+x.search||O.search!==x.search||$L(Q,U)}))}),P=[];return u.forEach((A,N)=>{if(s||!n.some(Y=>Y.route.id===A.routeId)||f.has(N))return;let M=sd(m,A.path,g);if(!M){P.push({key:N,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let Q=e.fetchers.get(N),U=O_(M,A.path),z=!1;h.has(N)?z=!1:c.includes(N)?z=!0:Q&&Q.state!=="idle"&&Q.data===void 0?z=o:z=LA(U,qn({currentUrl:O,currentParams:e.matches[e.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},i,{actionResult:w,unstable_actionStatus:S,defaultShouldRevalidate:R?!1:o})),z&&P.push({key:N,routeId:A.routeId,path:A.path,matches:M,match:U,controller:new AbortController})}),[_,P]}function yie(t,e,n){let i=!e||n.route.id!==e.route.id,r=t[n.route.id]===void 0;return i||r}function $L(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function LA(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function jA(t,e,n){if(!t.lazy)return;let i=await t.lazy();if(!t.lazy)return;let r=n[t.id];vt(r,"No route found in manifest");let s={};for(let a in i){let l=r[a]!==void 0&&a!=="hasErrorBoundary";Ef(!l,'Route "'+r.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Fne.has(a)&&(s[a]=i[a])}Object.assign(r,s),Object.assign(r,qn({},e(r),{lazy:void 0}))}function wie(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function kie(t,e,n,i,r,s,a,o){let l=i.reduce((u,h)=>u.add(h.route.id),new Set),c=new Set,f=await t({matches:r.map(u=>{let h=l.has(u.route.id);return qn({},u,{shouldLoad:h,resolve:g=>(c.add(u.route.id),h?Oie(e,n,u,s,a,g,o):Promise.resolve({type:Dn.data,result:void 0}))})}),request:n,params:r[0].params,context:o});return r.forEach(u=>vt(c.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((u,h)=>l.has(r[h].route.id))}async function Oie(t,e,n,i,r,s,a){let o,l,c=f=>{let u,h=new Promise((v,w)=>u=w);l=()=>u(),e.signal.addEventListener("abort",l);let m=v=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+n.route.id+"]"))):f({request:e,params:n.params,context:a},...v!==void 0?[v]:[]),g;return s?g=s(v=>m(v)):g=(async()=>{try{return{type:"data",result:await m()}}catch(v){return{type:"error",result:v}}})(),Promise.race([g,h])};try{let f=n.route[t];if(n.route.lazy)if(f){let u,[h]=await Promise.all([c(f).catch(m=>{u=m}),jA(n.route,r,i)]);if(u!==void 0)throw u;o=h}else if(await jA(n.route,r,i),f=n.route[t],f)o=await c(f);else if(t==="action"){let u=new URL(e.url),h=u.pathname+u.search;throw qs(405,{method:e.method,pathname:h,routeId:n.route.id})}else return{type:Dn.data,result:void 0};else if(f)o=await c(f);else{let u=new URL(e.url),h=u.pathname+u.search;throw qs(404,{pathname:h})}vt(o.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:Dn.error,result:f}}finally{l&&e.signal.removeEventListener("abort",l)}return o}async function xie(t){let{result:e,type:n,status:i}=t;if(TL(e)){let a;try{let o=e.headers.get("Content-Type");o&&/\bapplication\/json\b/.test(o)?e.body==null?a=null:a=await e.json():a=await e.text()}catch(o){return{type:Dn.error,error:o}}return n===Dn.error?{type:Dn.error,error:new SL(e.status,e.statusText,a),statusCode:e.status,headers:e.headers}:{type:Dn.data,data:a,statusCode:e.status,headers:e.headers}}if(n===Dn.error)return{type:Dn.error,error:e,statusCode:D$(e)?e.status:i};if(Pie(e)){var r,s;return{type:Dn.deferred,deferredData:e,statusCode:(r=e.init)==null?void 0:r.status,headers:((s=e.init)==null?void 0:s.headers)&&new Headers(e.init.headers)}}return{type:Dn.data,data:e,statusCode:i}}function Sie(t,e,n,i,r,s){let a=t.headers.get("Location");if(vt(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!M$.test(a)){let o=i.slice(0,i.findIndex(l=>l.route.id===n)+1);a=w_(new URL(e.url),o,r,!0,a,s),t.headers.set("Location",a)}return t}function IA(t,e,n){if(M$.test(t)){let i=t,r=i.startsWith("//")?new URL(e.protocol+i):new URL(i),s=pl(r.pathname,n)!=null;if(r.origin===e.origin&&s)return r.pathname+r.search+r.hash}return t}function Nu(t,e,n,i){let r=t.createURL(PL(e)).toString(),s={signal:n};if(i&&pa(i.formMethod)){let{formMethod:a,formEncType:o}=i;s.method=a.toUpperCase(),o==="application/json"?(s.headers=new Headers({"Content-Type":o}),s.body=JSON.stringify(i.json)):o==="text/plain"?s.body=i.text:o==="application/x-www-form-urlencoded"&&i.formData?s.body=k_(i.formData):s.body=i.formData}return new Request(r,s)}function k_(t){let e=new URLSearchParams;for(let[n,i]of t.entries())e.append(n,typeof i=="string"?i:i.name);return e}function BA(t){let e=new FormData;for(let[n,i]of t.entries())e.append(n,i);return e}function _ie(t,e,n,i,r,s){let a={},o=null,l,c=!1,f={},u=i&&Hs(i[1])?i[1].error:void 0;return n.forEach((h,m)=>{let g=e[m].route.id;if(vt(!Of(h),"Cannot handle redirect results in processLoaderData"),Hs(h)){let v=h.error;u!==void 0&&(v=u,u=void 0),o=o||{};{let w=ug(t,g);o[w.route.id]==null&&(o[w.route.id]=v)}a[g]=void 0,c||(c=!0,l=D$(h.error)?h.error.status:500),h.headers&&(f[g]=h.headers)}else kf(h)?(r.set(g,h.deferredData),a[g]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(f[g]=h.headers)):(a[g]=h.data,h.statusCode&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(f[g]=h.headers))}),u!==void 0&&i&&(o={[i[0]]:u},a[i[0]]=void 0),{loaderData:a,errors:o,statusCode:l||200,loaderHeaders:f}}function FA(t,e,n,i,r,s,a,o){let{loaderData:l,errors:c}=_ie(e,n,i,r,o);for(let f=0;f<s.length;f++){let{key:u,match:h,controller:m}=s[f];vt(a!==void 0&&a[f]!==void 0,"Did not find corresponding fetcher result");let g=a[f];if(!(m&&m.signal.aborted))if(Hs(g)){let v=ug(t.matches,h==null?void 0:h.route.id);c&&c[v.route.id]||(c=qn({},c,{[v.route.id]:g.error})),t.fetchers.delete(u)}else if(Of(g))vt(!1,"Unhandled fetcher revalidation redirect");else if(kf(g))vt(!1,"Unhandled fetcher deferred data");else{let v=Vl(g.data);t.fetchers.set(u,v)}}return{loaderData:l,errors:c}}function QA(t,e,n,i){let r=qn({},e);for(let s of n){let a=s.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(r[a]=e[a]):t[a]!==void 0&&s.route.loader&&(r[a]=t[a]),i&&i.hasOwnProperty(a))break}return r}function zA(t){return t?Hs(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function ug(t,e){return(e?t.slice(0,t.findIndex(i=>i.route.id===e)+1):[...t]).reverse().find(i=>i.route.hasErrorBoundary===!0)||t[0]}function qA(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function qs(t,e){let{pathname:n,routeId:i,method:r,type:s}=e===void 0?{}:e,a="Unknown Server Error",o="Unknown @remix-run/router error";return t===400?(a="Bad Request",r&&n&&i?o="You made a "+r+' request to "'+n+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":s==="defer-action"?o="defer() is not supported in actions":s==="invalid-body"&&(o="Unable to encode submission body")):t===403?(a="Forbidden",o='Route "'+i+'" does not match URL "'+n+'"'):t===404?(a="Not Found",o='No route matches URL "'+n+'"'):t===405&&(a="Method Not Allowed",r&&n&&i?o="You made a "+r.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":r&&(o='Invalid request method "'+r.toUpperCase()+'"')),new SL(t||500,a,new Error(o),!0)}function WA(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(Of(n))return{result:n,idx:e}}}function PL(t){let e=typeof t=="string"?Sl(t):t;return Ed(qn({},e,{hash:""}))}function Cie(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function $ie(t){return TL(t.result)&&die.has(t.result.status)}function kf(t){return t.type===Dn.deferred}function Hs(t){return t.type===Dn.error}function Of(t){return(t&&t.type)===Dn.redirect}function Pie(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function TL(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function Tie(t){return uie.has(t.toLowerCase())}function pa(t){return cie.has(t.toLowerCase())}async function UA(t,e,n,i,r,s){for(let a=0;a<n.length;a++){let o=n[a],l=e[a];if(!l)continue;let c=t.find(u=>u.route.id===l.route.id),f=c!=null&&!$L(c,l)&&(s&&s[l.route.id])!==void 0;if(kf(o)&&(r||f)){let u=i[a];vt(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await AL(o,u,r).then(h=>{h&&(n[a]=h||n[a])})}}}async function AL(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Dn.data,data:t.deferredData.unwrappedData}}catch(r){return{type:Dn.error,error:r}}return{type:Dn.data,data:t.deferredData.data}}}function N$(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function O_(t,e){let n=typeof e=="string"?Sl(e).search:e.search;if(t[t.length-1].route.index&&N$(n||""))return t[t.length-1];let i=OL(t);return i[i.length-1]}function VA(t){let{formMethod:e,formAction:n,formEncType:i,text:r,formData:s,json:a}=t;if(!(!e||!n||!i)){if(r!=null)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:void 0,text:r};if(s!=null)return{formMethod:e,formAction:n,formEncType:i,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:n,formEncType:i,formData:void 0,json:a,text:void 0}}}function Yx(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Aie(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function em(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Eie(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Vl(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Rie(t,e){try{let n=t.sessionStorage.getItem(CL);if(n){let i=JSON.parse(n);for(let[r,s]of Object.entries(i||{}))s&&Array.isArray(s)&&e.set(r,new Set(s||[]))}}catch{}}function Die(t,e){if(e.size>0){let n={};for(let[i,r]of e)n[i]=[...r];try{t.sessionStorage.setItem(CL,JSON.stringify(n))}catch(i){Ef(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/**
|
||
* React Router v6.23.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Tg(){return Tg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tg.apply(this,arguments)}const p1=k.createContext(null),L$=k.createContext(null),x_=k.createContext(null),_l=k.createContext(null),j$=k.createContext(null),Cl=k.createContext({outlet:null,matches:[],isDataRoute:!1}),EL=k.createContext(null);function Mie(t,e){let{relative:n}=e===void 0?{}:e;sh()||vt(!1);let{basename:i,navigator:r}=k.useContext(_l),{hash:s,pathname:a,search:o}=Vw(t,{relative:n}),l=a;return i!=="/"&&(l=a==="/"?i:ul([i,a])),r.createHref({pathname:l,search:o,hash:s})}function sh(){return k.useContext(j$)!=null}function zf(){return sh()||vt(!1),k.useContext(j$).location}function RL(t){k.useContext(_l).static||k.useLayoutEffect(t)}function ah(){let{isDataRoute:t}=k.useContext(Cl);return t?Vie():Nie()}function Nie(){sh()||vt(!1);let t=k.useContext(p1),{basename:e,future:n,navigator:i}=k.useContext(_l),{matches:r}=k.useContext(Cl),{pathname:s}=zf(),a=JSON.stringify(Ww(r,n.v7_relativeSplatPath)),o=k.useRef(!1);return RL(()=>{o.current=!0}),k.useCallback(function(c,f){if(f===void 0&&(f={}),!o.current)return;if(typeof c=="number"){i.go(c);return}let u=Uw(c,JSON.parse(a),s,f.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:ul([e,u.pathname])),(f.replace?i.replace:i.push)(u,f.state,f)},[e,i,a,s,t])}const Lie=k.createContext(null);function jie(t){let e=k.useContext(Cl).outlet;return e&&k.createElement(Lie.Provider,{value:t},e)}function Vw(t,e){let{relative:n}=e===void 0?{}:e,{future:i}=k.useContext(_l),{matches:r}=k.useContext(Cl),{pathname:s}=zf(),a=JSON.stringify(Ww(r,i.v7_relativeSplatPath));return k.useMemo(()=>Uw(t,JSON.parse(a),s,n==="path"),[t,a,s,n])}function Iie(t,e,n,i){sh()||vt(!1);let{navigator:r}=k.useContext(_l),{matches:s}=k.useContext(Cl),a=s[s.length-1],o=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=zf(),f;f=c;let u=f.pathname||"/",h=u;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+u.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=sd(t,{pathname:h});return qie(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:ul([l,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:ul([l,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),s,n,i)}function Bie(){let t=LL(),e=D$(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:r},n):null,null)}const Fie=k.createElement(Bie,null);class Qie extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?k.createElement(Cl.Provider,{value:this.props.routeContext},k.createElement(EL.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zie(t){let{routeContext:e,match:n,children:i}=t,r=k.useContext(p1);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Cl.Provider,{value:e},i)}function qie(t,e,n,i){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),i===void 0&&(i=null),t==null){var s;if((s=n)!=null&&s.errors)t=n.matches;else return null}let a=t,o=(r=n)==null?void 0:r.errors;if(o!=null){let f=a.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);f>=0||vt(!1),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let f=0;f<a.length;f++){let u=a[f];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=f),u.route.id){let{loaderData:h,errors:m}=n,g=u.route.loader&&h[u.route.id]===void 0&&(!m||m[u.route.id]===void 0);if(u.route.lazy||g){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((f,u,h)=>{let m,g=!1,v=null,w=null;n&&(m=o&&u.route.id?o[u.route.id]:void 0,v=u.route.errorElement||Fie,l&&(c<0&&h===0?(Hie("route-fallback"),g=!0,w=null):c===h&&(g=!0,w=u.route.hydrateFallbackElement||null)));let O=e.concat(a.slice(0,h+1)),x=()=>{let $;return m?$=v:g?$=w:u.route.Component?$=k.createElement(u.route.Component,null):u.route.element?$=u.route.element:$=f,k.createElement(zie,{match:u,routeContext:{outlet:f,matches:O,isDataRoute:n!=null},children:$})};return n&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?k.createElement(Qie,{location:n.location,revalidation:n.revalidation,component:v,error:m,children:x(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):x()},null)}var DL=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(DL||{}),ML=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(ML||{});function NL(t){let e=k.useContext(p1);return e||vt(!1),e}function I$(t){let e=k.useContext(L$);return e||vt(!1),e}function Wie(t){let e=k.useContext(Cl);return e||vt(!1),e}function B$(t){let e=Wie(),n=e.matches[e.matches.length-1];return n.route.id||vt(!1),n.route.id}function Hw(){let t=NL(DL.UseRevalidator),e=I$(ML.UseRevalidator);return k.useMemo(()=>({revalidate:t.router.revalidate,state:e.revalidation}),[t.router.revalidate,e.revalidation])}function Zw(){let t=I$(),e=B$();if(t.errors&&t.errors[e]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+e+")");return}return t.loaderData[e]}function LL(){var t;let e=k.useContext(EL),n=I$(),i=B$();return e!==void 0?e:(t=n.errors)==null?void 0:t[i]}function Uie(){let t=k.useContext(x_);return t==null?void 0:t._data}function Vie(){let{router:t}=NL(),e=B$(),n=k.useRef(!1);return RL(()=>{n.current=!0}),k.useCallback(function(r,s){s===void 0&&(s={}),n.current&&(typeof r=="number"?t.navigate(r):t.navigate(r,Tg({fromRouteId:e},s)))},[t,e])}const HA={};function Hie(t,e,n){HA[t]||(HA[t]=!0)}function Zie(t){let{to:e,replace:n,state:i,relative:r}=t;sh()||vt(!1);let{future:s,static:a}=k.useContext(_l),{matches:o}=k.useContext(Cl),{pathname:l}=zf(),c=ah(),f=Uw(e,Ww(o,s.v7_relativeSplatPath),l,r==="path"),u=JSON.stringify(f);return k.useEffect(()=>c(JSON.parse(u),{replace:n,state:i,relative:r}),[c,u,r,n,i]),null}function Gie(t){return jie(t.context)}function Xie(t){let{basename:e="/",children:n=null,location:i,navigationType:r=si.Pop,navigator:s,static:a=!1,future:o}=t;sh()&&vt(!1);let l=e.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:l,navigator:s,static:a,future:Tg({v7_relativeSplatPath:!1},o)}),[l,o,s,a]);typeof i=="string"&&(i=Sl(i));let{pathname:f="/",search:u="",hash:h="",state:m=null,key:g="default"}=i,v=k.useMemo(()=>{let w=pl(f,l);return w==null?null:{location:{pathname:w,search:u,hash:h,state:m,key:g},navigationType:r}},[l,f,u,h,m,g,r]);return v==null?null:k.createElement(_l.Provider,{value:c},k.createElement(j$.Provider,{children:n,value:v}))}function jL(t){let{children:e,errorElement:n,resolve:i}=t;return k.createElement(Kie,{resolve:i,errorElement:n},k.createElement(Jie,null,e))}var Is=(function(t){return t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error",t})(Is||{});const Yie=new Promise(()=>{});class Kie extends k.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,n){console.error("<Await> caught the following error during render",e,n)}render(){let{children:e,errorElement:n,resolve:i}=this.props,r=null,s=Is.pending;if(!(i instanceof Promise))s=Is.success,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>i});else if(this.state.error){s=Is.error;let a=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>a})}else i._tracked?(r=i,s="_error"in r?Is.error:"_data"in r?Is.success:Is.pending):(s=Is.pending,Object.defineProperty(i,"_tracked",{get:()=>!0}),r=i.then(a=>Object.defineProperty(i,"_data",{get:()=>a}),a=>Object.defineProperty(i,"_error",{get:()=>a})));if(s===Is.error&&r._error instanceof y_)throw Yie;if(s===Is.error&&!n)throw r._error;if(s===Is.error)return k.createElement(x_.Provider,{value:r,children:n});if(s===Is.success)return k.createElement(x_.Provider,{value:r,children:e});throw r}}function Jie(t){let{children:e}=t,n=Uie(),i=typeof e=="function"?e(n):e;return k.createElement(k.Fragment,null,i)}function ere(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:k.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:k.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:k.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}function tre(t,e){return gie({basename:void 0,future:Tg({},void 0,{v7_prependBasename:!0}),history:Ine({initialEntries:void 0,initialIndex:void 0}),hydrationData:void 0,routes:t,mapRouteProperties:ere,unstable_dataStrategy:void 0}).initialize()}/**
|
||
* React Router DOM v6.23.1
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function xy(){return xy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xy.apply(this,arguments)}function IL(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function nre(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ire(t,e){return t.button===0&&(!e||e==="_self")&&!nre(t)}const rre=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],sre=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],are="6";try{window.__reactRouterVersion=are}catch{}const BL=k.createContext({isTransitioning:!1}),ore=k.createContext(new Map),lre="startTransition",ZA=rL[lre],cre="flushSync",GA=hne[cre];function fre(t){ZA?ZA(t):t()}function tm(t){GA?GA(t):t()}class ure{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",e(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",n(i))}})}}function dre(t){let{fallbackElement:e,router:n,future:i}=t,[r,s]=k.useState(n.state),[a,o]=k.useState(),[l,c]=k.useState({isTransitioning:!1}),[f,u]=k.useState(),[h,m]=k.useState(),[g,v]=k.useState(),w=k.useRef(new Map),{v7_startTransition:O}=i||{},x=k.useCallback(_=>{O?fre(_):_()},[O]),$=k.useCallback((_,P)=>{let{deletedFetchers:A,unstable_flushSync:N,unstable_viewTransitionOpts:M}=P;A.forEach(U=>w.current.delete(U)),_.fetchers.forEach((U,z)=>{U.data!==void 0&&w.current.set(z,U.data)});let Q=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||Q){N?tm(()=>s(_)):x(()=>s(_));return}if(N){tm(()=>{h&&(f&&f.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let U=n.window.document.startViewTransition(()=>{tm(()=>s(_))});U.finished.finally(()=>{tm(()=>{u(void 0),m(void 0),o(void 0),c({isTransitioning:!1})})}),tm(()=>m(U));return}h?(f&&f.resolve(),h.skipTransition(),v({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(o(_),c({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,h,f,w,x]);k.useLayoutEffect(()=>n.subscribe($),[n,$]),k.useEffect(()=>{l.isTransitioning&&!l.flushSync&&u(new ure)},[l]),k.useEffect(()=>{if(f&&a&&n.window){let _=a,P=f.promise,A=n.window.document.startViewTransition(async()=>{x(()=>s(_)),await P});A.finished.finally(()=>{u(void 0),m(void 0),o(void 0),c({isTransitioning:!1})}),m(A)}},[x,a,f,n.window]),k.useEffect(()=>{f&&a&&r.location.key===a.location.key&&f.resolve()},[f,h,r.location,a]),k.useEffect(()=>{!l.isTransitioning&&g&&(o(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[l.isTransitioning,g]),k.useEffect(()=>{},[]);let T=k.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,P,A)=>n.navigate(_,{state:P,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(_,P,A)=>n.navigate(_,{replace:!0,state:P,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),S=n.basename||"/",R=k.useMemo(()=>({router:n,navigator:T,static:!1,basename:S}),[n,T,S]);return k.createElement(k.Fragment,null,k.createElement(p1.Provider,{value:R},k.createElement(L$.Provider,{value:r},k.createElement(ore.Provider,{value:w.current},k.createElement(BL.Provider,{value:l},k.createElement(Xie,{basename:S,location:r.location,navigationType:r.historyAction,navigator:T,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},r.initialized||n.future.v7_partialHydration?k.createElement(hre,{routes:n.routes,future:n.future,state:r}):e))))),null)}function hre(t){let{routes:e,future:n,state:i}=t;return Iie(e,void 0,i,n)}const pre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F$=k.forwardRef(function(e,n){let{onClick:i,relative:r,reloadDocument:s,replace:a,state:o,target:l,to:c,preventScrollReset:f,unstable_viewTransition:u}=e,h=IL(e,rre),{basename:m}=k.useContext(_l),g,v=!1;if(typeof c=="string"&&mre.test(c)&&(g=c,pre))try{let $=new URL(window.location.href),T=c.startsWith("//")?new URL($.protocol+c):new URL(c),S=pl(T.pathname,m);T.origin===$.origin&&S!=null?c=S+T.search+T.hash:v=!0}catch{}let w=Mie(c,{relative:r}),O=vre(c,{replace:a,state:o,target:l,preventScrollReset:f,relative:r,unstable_viewTransition:u});function x($){i&&i($),$.defaultPrevented||O($)}return k.createElement("a",xy({},h,{href:g||w,onClick:v||s?i:x,ref:n,target:l}))}),FL=k.forwardRef(function(e,n){let{"aria-current":i="page",caseSensitive:r=!1,className:s="",end:a=!1,style:o,to:l,unstable_viewTransition:c,children:f}=e,u=IL(e,sre),h=Vw(l,{relative:u.relative}),m=zf(),g=k.useContext(L$),{navigator:v,basename:w}=k.useContext(_l),O=g!=null&&bre(h)&&c===!0,x=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,$=m.pathname,T=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||($=$.toLowerCase(),T=T?T.toLowerCase():null,x=x.toLowerCase()),T&&w&&(T=pl(T,w)||T);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let R=$===x||!a&&$.startsWith(x)&&$.charAt(S)==="/",_=T!=null&&(T===x||!a&&T.startsWith(x)&&T.charAt(x.length)==="/"),P={isActive:R,isPending:_,isTransitioning:O},A=R?i:void 0,N;typeof s=="function"?N=s(P):N=[s,R?"active":null,_?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let M=typeof o=="function"?o(P):o;return k.createElement(F$,xy({},u,{"aria-current":A,className:N,ref:n,style:M,to:l,unstable_viewTransition:c}),typeof f=="function"?f(P):f)});var S_;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(S_||(S_={}));var XA;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(XA||(XA={}));function gre(t){let e=k.useContext(p1);return e||vt(!1),e}function vre(t,e){let{target:n,replace:i,state:r,preventScrollReset:s,relative:a,unstable_viewTransition:o}=e===void 0?{}:e,l=ah(),c=zf(),f=Vw(t,{relative:a});return k.useCallback(u=>{if(ire(u,n)){u.preventDefault();let h=i!==void 0?i:Ed(c)===Ed(f);l(t,{replace:h,state:r,preventScrollReset:s,relative:a,unstable_viewTransition:o})}},[c,l,f,i,r,n,t,s,a,o])}function bre(t,e){e===void 0&&(e={});let n=k.useContext(BL);n==null&&vt(!1);let{basename:i}=gre(S_.useViewTransitionState),r=Vw(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=pl(n.currentLocation.pathname,i)||n.currentLocation.pathname,a=pl(n.nextLocation.pathname,i)||n.nextLocation.pathname;return b_(r.pathname,a)!=null||b_(r.pathname,s)!=null}function yre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const wre=k.forwardRef(yre);function kre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"}))}const Ore=k.forwardRef(kre);function xre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))}const Sre=k.forwardRef(xre);function _re({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const QL=k.forwardRef(_re);function Cre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 15-6 6m0 0-6-6m6 6V9a6 6 0 0 1 12 0v3"}))}const $re=k.forwardRef(Cre);function Pre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Tre=k.forwardRef(Pre);function Are({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const Ere=k.forwardRef(Are);function Rre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Gw=k.forwardRef(Rre);function Dre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"}))}const Mre=k.forwardRef(Dre);function Nre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const zL=k.forwardRef(Nre);function Lre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const jre=k.forwardRef(Lre);function Ire({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))}const qL=k.forwardRef(Ire);function Bre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const Fre=k.forwardRef(Bre);function Qre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}))}const WL=k.forwardRef(Qre);function zre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}const qre=k.forwardRef(zre);function Wre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const Q$=k.forwardRef(Wre);function Ure({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))}const Vre=k.forwardRef(Ure);function Hre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const Zre=k.forwardRef(Hre);function Gre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Xre=k.forwardRef(Gre);function Yre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const z$=k.forwardRef(Yre);function Kre({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.34 15.84c-.688-.06-1.386-.09-2.09-.09H7.5a4.5 4.5 0 1 1 0-9h.75c.704 0 1.402-.03 2.09-.09m0 9.18c.253.962.584 1.892.985 2.783.247.55.06 1.21-.463 1.511l-.657.38c-.551.318-1.26.117-1.527-.461a20.845 20.845 0 0 1-1.44-4.282m3.102.069a18.03 18.03 0 0 1-.59-4.59c0-1.586.205-3.124.59-4.59m0 9.18a23.848 23.848 0 0 1 8.835 2.535M10.34 6.66a23.847 23.847 0 0 0 8.835-2.535m0 0A23.74 23.74 0 0 0 18.795 3m.38 1.125a23.91 23.91 0 0 1 1.014 5.395m-1.014 8.855c-.118.38-.245.754-.38 1.125m.38-1.125a23.91 23.91 0 0 0 1.014-5.395m0-3.46c.495.413.811 1.035.811 1.73 0 .695-.316 1.317-.811 1.73m0-3.46a24.347 24.347 0 0 1 0 3.46"}))}const Jre=k.forwardRef(Kre);function ese({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"}))}const tse=k.forwardRef(ese);function nse({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const ise=k.forwardRef(nse);function rse({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"}))}const sse=k.forwardRef(rse);function ase({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const ose=k.forwardRef(ase);function lse({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const Xw=k.forwardRef(lse);function cse({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const fse=k.forwardRef(cse);function use({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const dse=k.forwardRef(use);function hse({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const pse=k.forwardRef(hse),UL=()=>{const{dispatch:t}=Ir();function e(){t({payload:!0,type:"set-open"})}return b.jsx($c,{content:"Collections",side:"right",children:b.jsxs(xc,{className:"lg:hidden",onClick:e,variant:"ghost",children:[b.jsx(Tre,{"aria-hidden":!0,className:"h-5 w-5"}),b.jsx("span",{className:"sr-only",children:"Open collection panel"})]})})};var Kx={exports:{}},Jx,YA;function mse(){if(YA)return Jx;YA=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jx=t,Jx}var e2,KA;function gse(){if(KA)return e2;KA=1;var t=mse();function e(){}function n(){}return n.resetWarningCache=e,e2=function(){function i(a,o,l,c,f,u){if(u!==t){var h=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 h.name="Invariant Violation",h}}i.isRequired=i;function r(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:r,element:i,elementType:i,instanceOf:r,node:i,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},e2}var JA;function q$(){return JA||(JA=1,Kx.exports=gse()()),Kx.exports}var vse=q$();const ln=qw(vse);function oh(t,e,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(f){try{c(i.next(f))}catch(u){a(u)}}function l(f){try{c(i.throw(f))}catch(u){a(u)}}function c(f){f.done?s(f.value):r(f.value).then(o,l)}c((i=i.apply(t,e||[])).next())})}function lh(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(f){return l([c,f])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(f){c=[6,f],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function eE(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),r,s=[],a;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(o){a={error:o}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function tE(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))}var bse=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function m1(t,e){var n=yse(t);if(typeof n.path!="string"){var i=t.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof e=="string"?e:typeof i=="string"&&i.length>0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}function yse(t){var e=t.name,n=e&&e.lastIndexOf(".")!==-1;if(n&&!t.type){var i=e.split(".").pop().toLowerCase(),r=bse.get(i);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}var wse=[".DS_Store","Thumbs.db"];function kse(t){return oh(this,void 0,void 0,function(){return lh(this,function(e){return Sy(t)&&Ose(t.dataTransfer)?[2,Cse(t.dataTransfer,t.type)]:xse(t)?[2,Sse(t)]:Array.isArray(t)&&t.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,_se(t)]:[2,[]]})})}function Ose(t){return Sy(t)}function xse(t){return Sy(t)&&Sy(t.target)}function Sy(t){return typeof t=="object"&&t!==null}function Sse(t){return __(t.target.files).map(function(e){return m1(e)})}function _se(t){return oh(this,void 0,void 0,function(){var e;return lh(this,function(n){switch(n.label){case 0:return[4,Promise.all(t.map(function(i){return i.getFile()}))];case 1:return e=n.sent(),[2,e.map(function(i){return m1(i)})]}})})}function Cse(t,e){return oh(this,void 0,void 0,function(){var n,i;return lh(this,function(r){switch(r.label){case 0:return t.items?(n=__(t.items).filter(function(s){return s.kind==="file"}),e!=="drop"?[2,n]:[4,Promise.all(n.map($se))]):[3,2];case 1:return i=r.sent(),[2,nE(VL(i))];case 2:return[2,nE(__(t.files).map(function(s){return m1(s)}))]}})})}function nE(t){return t.filter(function(e){return wse.indexOf(e.name)===-1})}function __(t){if(t===null)return[];for(var e=[],n=0;n<t.length;n++){var i=t[n];e.push(i)}return e}function $se(t){if(typeof t.webkitGetAsEntry!="function")return iE(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?HL(e):iE(t)}function VL(t){return t.reduce(function(e,n){return tE(tE([],eE(e),!1),eE(Array.isArray(n)?VL(n):[n]),!1)},[])}function iE(t){var e=t.getAsFile();if(!e)return Promise.reject("".concat(t," is not a File"));var n=m1(e);return Promise.resolve(n)}function Pse(t){return oh(this,void 0,void 0,function(){return lh(this,function(e){return[2,t.isDirectory?HL(t):Tse(t)]})})}function HL(t){var e=t.createReader();return new Promise(function(n,i){var r=[];function s(){var a=this;e.readEntries(function(o){return oh(a,void 0,void 0,function(){var l,c,f;return lh(this,function(u){switch(u.label){case 0:if(o.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return l=u.sent(),n(l),[3,4];case 3:return c=u.sent(),i(c),[3,4];case 4:return[3,6];case 5:f=Promise.all(o.map(Pse)),r.push(f),s(),u.label=6;case 6:return[2]}})})},function(o){i(o)})}s()})}function Tse(t){return oh(this,void 0,void 0,function(){return lh(this,function(e){return[2,new Promise(function(n,i){t.file(function(r){var s=m1(r,t.fullPath);n(s)},function(r){i(r)})})]})})}var bv={},rE;function Ase(){return rE||(rE=1,bv.__esModule=!0,bv.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),i=t.name||"",r=(t.type||"").toLowerCase(),s=r.replace(/\/.*$/,"");return n.some(function(a){var o=a.trim().toLowerCase();return o.charAt(0)==="."?i.toLowerCase().endsWith(o):o.endsWith("/*")?s===o.replace(/\/.*$/,""):r===o})}return!0}),bv}var Ese=Ase();const Rse=qw(Ese);function sE(t){return Nse(t)||Mse(t)||GL(t)||Dse()}function Dse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mse(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Nse(t){if(Array.isArray(t))return C_(t)}function aE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function oE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?aE(Object(n),!0).forEach(function(i){ZL(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aE(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ZL(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ag(t,e){return Ise(t)||jse(t,e)||GL(t,e)||Lse()}function Lse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GL(t,e){if(t){if(typeof t=="string")return C_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C_(t,e)}}function C_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function jse(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i=[],r=!0,s=!1,a,o;try{for(n=n.call(t);!(r=(a=n.next()).done)&&(i.push(a.value),!(e&&i.length===e));r=!0);}catch(l){s=!0,o=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(s)throw o}}return i}}function Ise(t){if(Array.isArray(t))return t}var Bse="file-invalid-type",Fse="file-too-large",Qse="file-too-small",zse="too-many-files",qse=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var n=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Bse,message:"File type must be ".concat(n)}},lE=function(e){return{code:Fse,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},cE=function(e){return{code:Qse,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},Wse={code:zse,message:"Too many files"};function XL(t,e){var n=t.type==="application/x-moz-file"||Rse(t,e);return[n,n?null:qse(e)]}function YL(t,e,n){if(hf(t.size))if(hf(e)&&hf(n)){if(t.size>n)return[!1,lE(n)];if(t.size<e)return[!1,cE(e)]}else{if(hf(e)&&t.size<e)return[!1,cE(e)];if(hf(n)&&t.size>n)return[!1,lE(n)]}return[!0,null]}function hf(t){return t!=null}function Use(t){var e=t.files,n=t.accept,i=t.minSize,r=t.maxSize,s=t.multiple,a=t.maxFiles,o=t.validator;return!s&&e.length>1||s&&a>=1&&e.length>a?!1:e.every(function(l){var c=XL(l,n),f=Ag(c,1),u=f[0],h=YL(l,i,r),m=Ag(h,1),g=m[0],v=o?o(l):null;return u&&g&&!v})}function _y(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function yv(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function fE(t){t.preventDefault()}function Vse(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function Hse(t){return t.indexOf("Edge/")!==-1}function Zse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Vse(t)||Hse(t)}function za(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){for(var r=arguments.length,s=new Array(r>1?r-1:0),a=1;a<r;a++)s[a-1]=arguments[a];return e.some(function(o){return!_y(i)&&o&&o.apply(void 0,[i].concat(s)),_y(i)})}}function Gse(){return"showOpenFilePicker"in window}function Xse(t){if(hf(t)){var e=Object.entries(t).filter(function(n){var i=Ag(n,2),r=i[0],s=i[1],a=!0;return KL(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(s)||!s.every(JL))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,i){var r=Ag(i,2),s=r[0],a=r[1];return oE(oE({},n),{},ZL({},s,a))},{});return[{description:"Files",accept:e}]}return t}function Yse(t){if(hf(t))return Object.entries(t).reduce(function(e,n){var i=Ag(n,2),r=i[0],s=i[1];return[].concat(sE(e),[r],sE(s))},[]).filter(function(e){return KL(e)||JL(e)}).join(",")}function Kse(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function Jse(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function KL(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}function JL(t){return/^.*\.[\w]+$/.test(t)}var eae=["children"],tae=["open"],nae=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],iae=["refKey","onChange","onClick"];function rae(t){return oae(t)||aae(t)||ej(t)||sae()}function sae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aae(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oae(t){if(Array.isArray(t))return $_(t)}function t2(t,e){return fae(t)||cae(t,e)||ej(t,e)||lae()}function lae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ej(t,e){if(t){if(typeof t=="string")return $_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $_(t,e)}}function $_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function cae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i=[],r=!0,s=!1,a,o;try{for(n=n.call(t);!(r=(a=n.next()).done)&&(i.push(a.value),!(e&&i.length===e));r=!0);}catch(l){s=!0,o=l}finally{try{!r&&n.return!=null&&n.return()}finally{if(s)throw o}}return i}}function fae(t){if(Array.isArray(t))return t}function uE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Bn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uE(Object(n),!0).forEach(function(i){P_(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uE(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function P_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cy(t,e){if(t==null)return{};var n=uae(t,e),i,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function uae(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,s;for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}var W$=k.forwardRef(function(t,e){var n=t.children,i=Cy(t,eae),r=g1(i),s=r.open,a=Cy(r,tae);return k.useImperativeHandle(e,function(){return{open:s}},[s]),tt.createElement(k.Fragment,null,n(Bn(Bn({},a),{},{open:s})))});W$.displayName="Dropzone";var tj={disabled:!1,getFilesFromEvent:kse,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};W$.defaultProps=tj;W$.propTypes={children:ln.func,accept:ln.objectOf(ln.arrayOf(ln.string)),multiple:ln.bool,preventDropOnDocument:ln.bool,noClick:ln.bool,noKeyboard:ln.bool,noDrag:ln.bool,noDragEventsBubbling:ln.bool,minSize:ln.number,maxSize:ln.number,maxFiles:ln.number,disabled:ln.bool,getFilesFromEvent:ln.func,onFileDialogCancel:ln.func,onFileDialogOpen:ln.func,useFsAccessApi:ln.bool,autoFocus:ln.bool,onDragEnter:ln.func,onDragLeave:ln.func,onDragOver:ln.func,onDrop:ln.func,onDropAccepted:ln.func,onDropRejected:ln.func,onError:ln.func,validator:ln.func};var T_={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function g1(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Bn(Bn({},tj),t),n=e.accept,i=e.disabled,r=e.getFilesFromEvent,s=e.maxSize,a=e.minSize,o=e.multiple,l=e.maxFiles,c=e.onDragEnter,f=e.onDragLeave,u=e.onDragOver,h=e.onDrop,m=e.onDropAccepted,g=e.onDropRejected,v=e.onFileDialogCancel,w=e.onFileDialogOpen,O=e.useFsAccessApi,x=e.autoFocus,$=e.preventDropOnDocument,T=e.noClick,S=e.noKeyboard,R=e.noDrag,_=e.noDragEventsBubbling,P=e.onError,A=e.validator,N=k.useMemo(function(){return Yse(n)},[n]),M=k.useMemo(function(){return Xse(n)},[n]),Q=k.useMemo(function(){return typeof w=="function"?w:dE},[w]),U=k.useMemo(function(){return typeof v=="function"?v:dE},[v]),z=k.useRef(null),Y=k.useRef(null),ae=k.useReducer(dae,T_),ne=t2(ae,2),he=ne[0],ve=ne[1],je=he.isFocused,we=he.isFileDialogActive,ge=k.useRef(typeof window<"u"&&window.isSecureContext&&O&&Gse()),B=function(){!ge.current&&we&&setTimeout(function(){if(Y.current){var qe=Y.current.files;qe.length||(ve({type:"closeDialog"}),U())}},300)};k.useEffect(function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}},[Y,we,U,ge]);var D=k.useRef([]),te=function(qe){z.current&&z.current.contains(qe.target)||(qe.preventDefault(),D.current=[])};k.useEffect(function(){return $&&(document.addEventListener("dragover",fE,!1),document.addEventListener("drop",te,!1)),function(){$&&(document.removeEventListener("dragover",fE),document.removeEventListener("drop",te))}},[z,$]),k.useEffect(function(){return!i&&x&&z.current&&z.current.focus(),function(){}},[z,x,i]);var q=k.useCallback(function(xe){P?P(xe):console.error(xe)},[P]),lt=k.useCallback(function(xe){xe.preventDefault(),xe.persist(),jn(xe),D.current=[].concat(rae(D.current),[xe.target]),yv(xe)&&Promise.resolve(r(xe)).then(function(qe){if(!(_y(xe)&&!_)){var Ft=qe.length,Et=Ft>0&&Use({files:qe,accept:N,minSize:a,maxSize:s,multiple:o,maxFiles:l,validator:A}),Xt=Ft>0&&!Et;ve({isDragAccept:Et,isDragReject:Xt,isDragActive:!0,type:"setDraggedFiles"}),c&&c(xe)}}).catch(function(qe){return q(qe)})},[r,c,q,_,N,a,s,o,l,A]),yt=k.useCallback(function(xe){xe.preventDefault(),xe.persist(),jn(xe);var qe=yv(xe);if(qe&&xe.dataTransfer)try{xe.dataTransfer.dropEffect="copy"}catch{}return qe&&u&&u(xe),!1},[u,_]),mt=k.useCallback(function(xe){xe.preventDefault(),xe.persist(),jn(xe);var qe=D.current.filter(function(Et){return z.current&&z.current.contains(Et)}),Ft=qe.indexOf(xe.target);Ft!==-1&&qe.splice(Ft,1),D.current=qe,!(qe.length>0)&&(ve({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yv(xe)&&f&&f(xe))},[z,f,_]),Ke=k.useCallback(function(xe,qe){var Ft=[],Et=[];xe.forEach(function(Xt){var ii=XL(Xt,N),tr=t2(ii,2),xn=tr[0],Wr=tr[1],Os=YL(Xt,a,s),Ur=t2(Os,2),Vr=Ur[0],Hr=Ur[1],br=A?A(Xt):null;if(xn&&Vr&&!br)Ft.push(Xt);else{var ia=[Wr,Hr];br&&(ia=ia.concat(br)),Et.push({file:Xt,errors:ia.filter(function(jo){return jo})})}}),(!o&&Ft.length>1||o&&l>=1&&Ft.length>l)&&(Ft.forEach(function(Xt){Et.push({file:Xt,errors:[Wse]})}),Ft.splice(0)),ve({acceptedFiles:Ft,fileRejections:Et,type:"setFiles"}),h&&h(Ft,Et,qe),Et.length>0&&g&&g(Et,qe),Ft.length>0&&m&&m(Ft,qe)},[ve,o,N,a,s,l,h,m,g,A]),Gt=k.useCallback(function(xe){xe.preventDefault(),xe.persist(),jn(xe),D.current=[],yv(xe)&&Promise.resolve(r(xe)).then(function(qe){_y(xe)&&!_||Ke(qe,xe)}).catch(function(qe){return q(qe)}),ve({type:"reset"})},[r,Ke,q,_]),dt=k.useCallback(function(){if(ge.current){ve({type:"openDialog"}),Q();var xe={multiple:o,types:M};window.showOpenFilePicker(xe).then(function(qe){return r(qe)}).then(function(qe){Ke(qe,null),ve({type:"closeDialog"})}).catch(function(qe){Kse(qe)?(U(qe),ve({type:"closeDialog"})):Jse(qe)?(ge.current=!1,Y.current?(Y.current.value=null,Y.current.click()):q(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):q(qe)});return}Y.current&&(ve({type:"openDialog"}),Q(),Y.current.value=null,Y.current.click())},[ve,Q,U,O,Ke,q,M,o]),dn=k.useCallback(function(xe){!z.current||!z.current.isEqualNode(xe.target)||(xe.key===" "||xe.key==="Enter"||xe.keyCode===32||xe.keyCode===13)&&(xe.preventDefault(),dt())},[z,dt]),Ot=k.useCallback(function(){ve({type:"focus"})},[]),wn=k.useCallback(function(){ve({type:"blur"})},[]),kn=k.useCallback(function(){T||(Zse()?setTimeout(dt,0):dt())},[T,dt]),an=function(qe){return i?null:qe},qi=function(qe){return S?null:an(qe)},vr=function(qe){return R?null:an(qe)},jn=function(qe){_&&qe.stopPropagation()},On=k.useMemo(function(){return function(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qe=xe.refKey,Ft=qe===void 0?"ref":qe,Et=xe.role,Xt=xe.onKeyDown,ii=xe.onFocus,tr=xe.onBlur,xn=xe.onClick,Wr=xe.onDragEnter,Os=xe.onDragOver,Ur=xe.onDragLeave,Vr=xe.onDrop,Hr=Cy(xe,nae);return Bn(Bn(P_({onKeyDown:qi(za(Xt,dn)),onFocus:qi(za(ii,Ot)),onBlur:qi(za(tr,wn)),onClick:an(za(xn,kn)),onDragEnter:vr(za(Wr,lt)),onDragOver:vr(za(Os,yt)),onDragLeave:vr(za(Ur,mt)),onDrop:vr(za(Vr,Gt)),role:typeof Et=="string"&&Et!==""?Et:"presentation"},Ft,z),!i&&!S?{tabIndex:0}:{}),Hr)}},[z,dn,Ot,wn,kn,lt,yt,mt,Gt,S,R,i]),yi=k.useCallback(function(xe){xe.stopPropagation()},[]),er=k.useMemo(function(){return function(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},qe=xe.refKey,Ft=qe===void 0?"ref":qe,Et=xe.onChange,Xt=xe.onClick,ii=Cy(xe,iae),tr=P_({accept:N,multiple:o,type:"file",style:{display:"none"},onChange:an(za(Et,Gt)),onClick:an(za(Xt,yi)),tabIndex:-1},Ft,Y);return Bn(Bn({},tr),ii)}},[Y,n,o,Gt,i]);return Bn(Bn({},he),{},{isFocused:je&&!i,getRootProps:On,getInputProps:er,rootRef:z,inputRef:Y,open:an(dt)})}function dae(t,e){switch(e.type){case"focus":return Bn(Bn({},t),{},{isFocused:!0});case"blur":return Bn(Bn({},t),{},{isFocused:!1});case"openDialog":return Bn(Bn({},T_),{},{isFileDialogActive:!0});case"closeDialog":return Bn(Bn({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Bn(Bn({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Bn(Bn({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Bn({},T_);default:return t}}function dE(){}const U$=(t="Copy")=>{const[e,n]=k.useState(t);return{copyToClipboard:r=>{n("Copied"),navigator.clipboard.writeText(r),setTimeout(()=>{n(t)},1e3)},text:e}},nj={data:[],host:"",href:"",origin:""},ye={compressToBase64(t){return EA.compressToUTF16(JSON.stringify(t))},decompressFromBase64(t){return JSON.parse(EA.decompressFromUTF16(t))},async getPageData(t){try{const e=await chrome.storage.local.get(t);return this.decompressFromBase64(e[t])}catch(e){return fl.error("Error getting page data from storage:",e),nj}},async getStorageData(t){try{const e=await chrome.storage.local.get(t);return this.decompressFromBase64(e[t])}catch{return}},async setPageData(t,e){await chrome.storage.local.set({[t]:this.compressToBase64(e)})},async setStorageData(t,e){await chrome.storage.local.set({[t]:this.compressToBase64(e)})}};function hae(){const{dispatch:t,state:e}=en();k.useEffect(()=>{document.body.classList.toggle("dark",e.view.colorMode==="dark")},[e.view.colorMode]);const n=()=>{const i=e.view.colorMode==="light"?"dark":"light",r=i==="light"?"#fff":"#1A2338",s={...e.view,canvas:r,colorMode:i};document.body.classList.toggle("dark",i==="dark"),t({payload:s,type:"set-view"}),ye.setStorageData("view",s)};return{colorMode:e.view.colorMode,toggleColorMode:n}}const Lm=!1,pae={prod:{svgr:"https://us-west2-svg-gobbler.cloudfunctions.net/svg-gobbler-svgr"}},V$=pae.prod,H$=t=>async(e="")=>{const n={payload:{message:e},type:t};try{await fetch(V$.svgr,{body:JSON.stringify(n),headers:{"Content-Type":"application/json"},method:"POST"})}catch(i){fl.error("Could not send feature request.",i)}};async function mae(){const t=[],e=await ye.getStorageData("collections")??[];for(const n of e)t.push(ye.getPageData(n.id));await Promise.all(t).then(n=>{const i=new Blob([JSON.stringify(n)],{type:"application/json"}),r=URL.createObjectURL(i),s=document.createElement("a");s.href=r,s.download="data.json",s.click(),URL.revokeObjectURL(r)}).catch(()=>{alert("Error exporting data")})}async function gae(){const t=await ye.getStorageData("collections")??[],e=new fg;await Promise.all(t.map(async n=>{const i=e.folder(n.name);if(!i)return;const r=await ye.getPageData(n.id);for(const s of r.data){const a=s.svg,o=s.name;i.file(`${o}.svg`,a)}}));try{const n=await e.generateAsync({type:"blob"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download="data.zip",r.click(),URL.revokeObjectURL(i)}catch(n){console.error("Error generating zip file:",n),alert("Error exporting data")}}async function vae(t){var a;const e=await ye.getPageData(t),i=((a=(await ye.getStorageData("collections")??[]).find(o=>o.id===t))==null?void 0:a.name)||"collection-data",r=new fg,s=r.folder(i);if(s){for(const o of e.data){const l=o.svg,c=o.name;s.file(`${c}.svg`,l)}try{const o=await r.generateAsync({type:"blob"}),l=URL.createObjectURL(o),c=document.createElement("a");c.href=l,c.download=`${i}.zip`,c.click(),URL.revokeObjectURL(l)}catch(o){console.error("Error generating zip file:",o),alert("Error exporting data")}}}const ij=()=>({exportAllDataAsJson:mae,exportAllDataAsZip:gae,exportCurrentCollectionDataAsZip:vae}),bae=(t={})=>{const[e,n]=k.useState(!1),i=k.useRef(null);return k.useEffect(()=>{const r=i.current;if(!r)return;const s=new IntersectionObserver(([a])=>{n(a.isIntersecting)},t);return s.observe(r),()=>{s.disconnect()}},[t]),{elementRef:i,isIntersecting:e}},yae=t=>{k.useEffect(t,[])},wae=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],kae=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Oae=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],xae=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],hE=(t,e,n)=>{let i=t;return typeof e=="string"||Array.isArray(e)?i=t.toLocaleString(e,n):(e===!0||n!==void 0)&&(i=t.toLocaleString(void 0,n)),i};function Sae(t,e){if(!Number.isFinite(t))throw new TypeError(`Expected a finite number, got ${typeof t}: ${t}`);e={bits:!1,binary:!1,space:!0,...e};const n=e.bits?e.binary?xae:Oae:e.binary?kae:wae,i=e.space?" ":"";if(e.signed&&t===0)return` 0${i}${n[0]}`;const r=t<0,s=r?"-":e.signed?"+":"";r&&(t=-t);let a;if(e.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(a={maximumFractionDigits:e.maximumFractionDigits,...a}),t<1){const f=hE(t,e.locale,a);return s+f+i+n[0]}const o=Math.min(Math.floor(e.binary?Math.log(t)/Math.log(1024):Math.log10(t)/3),n.length-1);t/=(e.binary?1024:1e3)**o,a||(t=t.toPrecision(3));const l=hE(Number(t),e.locale,a),c=n[o];return s+l+i+c}const oi={createBase64DataUri(t){return"data:image/svg+xml;base64,"+btoa(t)},createEncodedDataUri(t){return"data:image/svg+xml,"+encodeURIComponent(t)},createMinifiedDataUri(t){return Lne(t)},createStorageSvg(t){return{corsRestricted:!1,id:xl(),lastEdited:new Date().toISOString(),name:t.name,svg:t.svg}},createStorageSvgs(t){return t.map(e=>({corsRestricted:e.corsRestricted,id:e.id,lastEdited:e.lastEdited,name:e.name,svg:e.svg}))},getPrettyBytes(t,e){const n=new TextEncoder().encode(t).length;return Sae(n,e)},isValidSvg(t){try{return!!new DOMParser().parseFromString(t,"image/svg+xml").querySelector("svg")}catch{return!1}}};class ch{constructor(e){Zo(this,"asElement");Zo(this,"corsRestricted",!1);Zo(this,"id");Zo(this,"lastEdited");Zo(this,"name");Zo(this,"svg");Zo(this,"svgType");this.id=e.id,this.lastEdited=e.lastEdited,this.name=e.name,this.svg=e.svg,this.svgType=this.constructor.name}get fileSize(){return oi.getPrettyBytes(this.svg)}get isValid(){return!!this.asElement}get presentationSvg(){var n;const e=(n=this.asElement)==null?void 0:n.cloneNode(!0);return e.removeAttribute("height"),e.removeAttribute("width"),e.removeAttribute("class"),e.removeAttribute("style"),e.outerHTML}createClone(){var n;const e=new ch({corsRestricted:this.corsRestricted,id:this.id,lastEdited:this.lastEdited,name:this.name,svg:this.svg});return e.asElement=(n=this.asElement)==null?void 0:n.cloneNode(!0),e}createSvgElement(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");return e.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),e}createSymbolElement(e){const n=document.createElementNS("http://www.w3.org/2000/svg","symbol");return n.setAttribute("id",e),n}createUseElement(e){const n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttribute("href",`#${e}`),n}parseFromString(){const e=new DOMParser,{documentElement:n}=e.parseFromString(this.svg,"image/svg+xml");if(!n.querySelector("parsererror"))return n;console.error(`Failed to parse SVG element: ${this.svg}`)}stampLastEdited(){this.lastEdited=new Date().toISOString()}updateName(e){this.name=e,this.stampLastEdited()}}class pE extends ch{constructor(e){super(e),this.removeXlinkHref(),this.processG()}processG(){const e=document.createElement("div");e.style.visibility="hidden",document.body.append(e);const n=this.createSvgElement();e.append(n),n.innerHTML=this.svg;const r=n.querySelector("g").getBBox();e.remove(),n.setAttribute("viewBox",`${r.x} ${r.y} ${r.width} ${r.height}`),this.asElement=n,this.svg=n.outerHTML}removeXlinkHref(){this.svg=this.svg.replaceAll("xlink:href","href")}}let n2=class extends ch{constructor(n,i){super(n);Zo(this,"origin");this.origin=i,this.processImage()}get absoluteImageUrl(){var i;const n=((i=this.asElement)==null?void 0:i.getAttribute("src"))??"";return n.startsWith("data:")||n.startsWith("http://")||n.startsWith("https://")?n:n.startsWith("//")?`https:${n}`:n.startsWith("www.")?`https://${n}`:n.startsWith("/")?`${this.origin.replace(/\/$/,"")}${n}`:`${this.origin.replace(/\/$/,"")}/${n.replace(/^\.\//,"")}`}async fetchSvgContent(){const n=new AbortController,i=n.signal,r=setTimeout(()=>n.abort(),3e3);try{const s=await fetch(this.absoluteImageUrl,{headers:{Accept:"image/svg+xml, text/xml, application/xml, */*"},mode:"cors",signal:i});if(clearTimeout(r),!s.ok)return this.corsRestricted=!0,this;const a=await s.text();this.svg=a;const o=this.parseFromString();o&&(this.asElement=o,this.svg=this.asElement.outerHTML)}catch{this.corsRestricted=!0}return this}processImage(){if(this.corsRestricted)return;const n=this.svg.match(/src=["']([^"']*)["']/),i=n?n[1]:"";if(!i&&this.svg.includes("<svg")&&this.svg.includes("</svg>")){this.asElement=this.parseFromString();return}switch(!0){case i.includes("data:image/svg+xml;base64"):{const r=i.indexOf(",")+1,s=i.slice(r);this.svg=this.base64DecodeUnicode(s),this.asElement=this.parseFromString();break}case i.includes("data:image/svg+xml;utf8"):{const r=i.indexOf("<svg"),s=i.lastIndexOf("</svg>")+6;if(r!==-1&&s>r){const a=i.slice(r,s);this.svg=a,this.asElement=this.parseFromString()}break}case i.startsWith("data:image/svg+xml,"):{try{const r=decodeURIComponent(i.split(",")[1]);this.svg=r,this.asElement=this.parseFromString()}catch(r){console.warn("Error decoding URL-encoded SVG:",r)}break}default:this.parseAndSetElement()}}base64DecodeUnicode(n){try{return decodeURIComponent([...atob(n)].map(i=>{var r;return"%"+("00"+((r=i.codePointAt(0))==null?void 0:r.toString(16))).slice(-2)}).join(""))}catch{return n}}parseAndSetElement(){const n=`<!DOCTYPE html><html><head><base href="${this.origin.replaceAll('"',""")}/"></head><body>${this.svg}</body></html>`;try{const i=new DOMParser().parseFromString(n,"text/html");if(!i.body.firstElementChild||i.querySelector("parsererror")){console.error("Parsing error in parseAndSetElement");return}this.asElement=i.body.firstElementChild}catch(i){console.error("Error in parseAndSetElement:",i)}}};class Z$ extends ch{constructor(e){super(e),this.asElement=this.parseFromString(),this.setViewBox()}setViewBox(){if(!this.asElement)return;const e=this.asElement;if(e.getAttribute("viewBox"))return;const i=e.getAttribute("width"),r=e.getAttribute("height");if(i&&r){const s=i.replaceAll(/[^0-9.]/g,""),a=r.replaceAll(/[^0-9.]/g,"");if(s&&a){e.setAttribute("viewBox",`0 0 ${s} ${a}`);return}}try{const s=e.getBBox();if(s.width>0&&s.height>0){e.setAttribute("viewBox",`${s.x} ${s.y} ${s.width} ${s.height}`);return}}catch{console.warn("Failed to get SVG dimensions using getBBox():",this.name)}}}class mE extends ch{constructor(e){super(e),this.processSymbol()}processSymbol(){const e=this.parseFromString();if(!e)return;const n=crypto.randomUUID(),i=this.createSvgElement(),r=this.createUseElement(n);e.setAttribute("id",n);const s=e.getAttribute("viewBox");s&&i.setAttribute("viewBox",s),i.append(e,r),this.asElement=i,this.svg=i.outerHTML}}class _ae{async process(e){if(!e)return[];const i=e.data.map(a=>this.createSvgElement(a,e.origin)).filter(a=>!!a).map(a=>a instanceof n2?a.fetchSvgContent():Promise.resolve(a)),r=await Promise.all(i);return[...new Set(this.processAsyncData(r))]}createSvgElement(e,n){try{const r=new DOMParser().parseFromString(e.svg,"image/svg+xml"),{tagName:s}=r.documentElement;switch(s){case"g":return new pE(e);case"img":return new n2(e,n);case"svg":return new Z$(e);case"symbol":return new mE(e);default:return}}catch(i){console.error(i);return}}expandImageToElements(e){if(e instanceof n2){const n=[e];return this.extractAndPushElements(e,"symbol",n),this.extractAndPushElements(e,"g",n),n}return[e]}extractAndPushElements(e,n,i){var s;const r=(s=e.asElement)==null?void 0:s.querySelectorAll(n);if(r)for(const[a,o]of r.entries()){const l={corsRestricted:e.corsRestricted,id:xl(),lastEdited:e.lastEdited,name:`${e.name}-${n}-${a}`,svg:o.outerHTML},c=n==="symbol"?mE:pE;i.push(new c(l))}}processAsyncData(e){return e.filter(n=>n&&n.isValid).flatMap(n=>this.expandImageToElements(n))}}const rj=new _ae,Yw=()=>{const{dispatch:t,state:e}=en(),{revalidate:n}=Hw();return k.useCallback(async function(i){const{collectionId:r}=e;let s=await ye.getPageData(r);const a=i.map(oi.createStorageSvg);s={...s,data:[...a,...s.data]},await ye.setPageData(r,s);const o=a.map(l=>new Z$(l));t({payload:[...e.data,...o],type:"set-data"}),t({type:"process-data"}),n()},[t,e,n])},Cae=()=>{const{dispatch:t,state:e}=Ki(),n=Yw();k.useEffect(()=>{const i=r=>{var o;if(document.querySelector("#upload-modal"))return;const a=(o=r.clipboardData)==null?void 0:o.getData("text/plain");if(a&&oi.isValidSvg(a)){r.preventDefault(),n([{name:xl(),svg:a}]);const l={...e,onboarding:{...e.onboarding,hasPastedSvg:!0,viewedSvgInClipboard:!0}};ye.setStorageData("user",l),t({payload:l,type:"set-user"})}};return globalThis.addEventListener("paste",i),()=>{globalThis.removeEventListener("paste",i)}},[n,e,t])},sj=()=>({reset:async()=>{await chrome.storage.local.clear();const e={href:"svggobbler.com",id:xl(),name:"Welcome to SVG Gobbler",origin:"svggobbler.com"},n={data:[oi.createStorageSvg({name:"svggobbler.com",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150.156 150.156"><g clip-path="url(#c)"><rect width="150.156" height="150.156" fill="#FB575E" rx="35.193"/><circle cx="24.635" cy="47.51" r="11.731" fill="#fff"/><circle cx="125.521" cy="47.51" r="11.731" fill="#fff"/><path fill="none" stroke="#fff" stroke-width="8.212" d="M24.635 47.51h100.886m-85.636 54.55s0-56.015 35.78-56.015 35.779 56.015 35.779 56.015"/><rect width="41.058" height="41.058" x="55.136" y="26.981" fill="#1E293B" rx="11.731"/><rect width="41.058" height="41.058" x="19.356" y="82.117" fill="#1E293B" rx="11.731"/><rect width="41.058" height="41.058" x="90.915" y="82.117" fill="#1E293B" rx="11.731"/></g></svg>'})],host:"svggobbler.com",href:"https://svggobbler.com",origin:"svggobbler.com"};await ye.setPageData(e.id,n),await ye.setStorageData("collections",[e]),globalThis.location.reload()}});function gE(t){var e;if(t.type)return t.type;let n=(e=t.as)!=null?e:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function G$(t,e){let[n,i]=k.useState(()=>gE(t));return Sa(()=>{i(gE(t))},[t.type,t.as]),Sa(()=>{n||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&i("button")},[n,e]),n}function vE(t){return[t.screenX,t.screenY]}function $ae(){let t=k.useRef([-1,-1]);return{wasMoved(e){let n=vE(e);return t.current[0]===n[0]&&t.current[1]===n[1]?!1:(t.current=n,!0)},update(e){t.current=vE(e)}}}function Pae({container:t,accept:e,walk:n,enabled:i=!0}){let r=k.useRef(e),s=k.useRef(n);k.useEffect(()=>{r.current=e,s.current=n},[e,n]),Sa(()=>{if(!t||!i)return;let a=$$(t);if(!a)return;let o=r.current,l=s.current,c=Object.assign(u=>o(u),{acceptNode:o}),f=a.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,c,!1);for(;f.nextNode();)l(f.currentNode)},[t,i,r,s])}function Tae(t){throw new Error("Unexpected object: "+t)}var Oa=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(Oa||{});function Aae(t,e){let n=e.resolveItems();if(n.length<=0)return null;let i=e.resolveActiveIndex(),r=i??-1;switch(t.focus){case 0:{for(let s=0;s<n.length;++s)if(!e.resolveDisabled(n[s],s,n))return s;return i}case 1:{for(let s=r-1;s>=0;--s)if(!e.resolveDisabled(n[s],s,n))return s;return i}case 2:{for(let s=r+1;s<n.length;++s)if(!e.resolveDisabled(n[s],s,n))return s;return i}case 3:{for(let s=n.length-1;s>=0;--s)if(!e.resolveDisabled(n[s],s,n))return s;return i}case 4:{for(let s=0;s<n.length;++s)if(e.resolveId(n[s],s,n)===t.id)return s;return i}case 5:return null;default:Tae(t)}}let bE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function yE(t){var e,n;let i=(e=t.innerText)!=null?e:"",r=t.cloneNode(!0);if(!(r instanceof HTMLElement))return i;let s=!1;for(let o of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))o.remove(),s=!0;let a=s?(n=r.innerText)!=null?n:"":i;return bE.test(a)&&(a=a.replace(bE,"")),a}function Eae(t){let e=t.getAttribute("aria-label");if(typeof e=="string")return e.trim();let n=t.getAttribute("aria-labelledby");if(n){let i=n.split(" ").map(r=>{let s=document.getElementById(r);if(s){let a=s.getAttribute("aria-label");return typeof a=="string"?a.trim():yE(s).trim()}return null}).filter(Boolean);if(i.length>0)return i.join(", ")}return yE(t).trim()}function Rae(t){let e=k.useRef(""),n=k.useRef("");return It(()=>{let i=t.current;if(!i)return"";let r=i.innerText;if(e.current===r)return n.current;let s=Eae(i).trim().toLowerCase();return e.current=r,n.current=s,s})}var Dae=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Dae||{}),Mae=(t=>(t[t.Pointer=0]="Pointer",t[t.Other=1]="Other",t))(Mae||{}),Nae=(t=>(t[t.OpenMenu=0]="OpenMenu",t[t.CloseMenu=1]="CloseMenu",t[t.GoToItem=2]="GoToItem",t[t.Search=3]="Search",t[t.ClearSearch=4]="ClearSearch",t[t.RegisterItem=5]="RegisterItem",t[t.UnregisterItem=6]="UnregisterItem",t))(Nae||{});function i2(t,e=n=>n){let n=t.activeItemIndex!==null?t.items[t.activeItemIndex]:null,i=id(e(t.items.slice()),s=>s.dataRef.current.domRef.current),r=n?i.indexOf(n):null;return r===-1&&(r=null),{items:i,activeItemIndex:r}}let Lae={1(t){return t.menuState===1?t:{...t,activeItemIndex:null,menuState:1}},0(t){return t.menuState===0?t:{...t,__demoMode:!1,menuState:0}},2:(t,e)=>{var n;let i=i2(t),r=Aae(e,{resolveItems:()=>i.items,resolveActiveIndex:()=>i.activeItemIndex,resolveId:s=>s.id,resolveDisabled:s=>s.dataRef.current.disabled});return{...t,...i,searchQuery:"",activeItemIndex:r,activationTrigger:(n=e.trigger)!=null?n:1}},3:(t,e)=>{let n=t.searchQuery!==""?0:1,i=t.searchQuery+e.value.toLowerCase(),r=(t.activeItemIndex!==null?t.items.slice(t.activeItemIndex+n).concat(t.items.slice(0,t.activeItemIndex+n)):t.items).find(a=>{var o;return((o=a.dataRef.current.textValue)==null?void 0:o.startsWith(i))&&!a.dataRef.current.disabled}),s=r?t.items.indexOf(r):-1;return s===-1||s===t.activeItemIndex?{...t,searchQuery:i}:{...t,searchQuery:i,activeItemIndex:s,activationTrigger:1}},4(t){return t.searchQuery===""?t:{...t,searchQuery:"",searchActiveItemIndex:null}},5:(t,e)=>{let n=i2(t,i=>[...i,{id:e.id,dataRef:e.dataRef}]);return{...t,...n}},6:(t,e)=>{let n=i2(t,i=>{let r=i.findIndex(s=>s.id===e.id);return r!==-1&&i.splice(r,1),i});return{...t,...n,activationTrigger:1}}},X$=k.createContext(null);X$.displayName="MenuContext";function Kw(t){let e=k.useContext(X$);if(e===null){let n=new Error(`<${t} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Kw),n}return e}function jae(t,e){return Nr(e.type,Lae,t,e)}let Iae=k.Fragment;function Bae(t,e){let{__demoMode:n=!1,...i}=t,r=k.useReducer(jae,{__demoMode:n,menuState:n?0:1,buttonRef:k.createRef(),itemsRef:k.createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:s,itemsRef:a,buttonRef:o},l]=r,c=mr(e);oL([o,a],(m,g)=>{var v;l({type:1}),cL(g,fL.Loose)||(m.preventDefault(),(v=o.current)==null||v.focus())},s===0);let f=It(()=>{l({type:1})}),u=k.useMemo(()=>({open:s===0,close:f}),[s,f]),h={ref:c};return tt.createElement(X$.Provider,{value:r},tt.createElement(lL,{value:Nr(s,{0:So.Open,1:So.Closed})},Fr({ourProps:h,theirProps:i,slot:u,defaultTag:Iae,name:"Menu"})))}let Fae="button";function Qae(t,e){var n;let i=_a(),{id:r=`headlessui-menu-button-${i}`,...s}=t,[a,o]=Kw("Menu.Button"),l=mr(a.buttonRef,e),c=sL(),f=It(v=>{switch(v.key){case Qt.Space:case Qt.Enter:case Qt.ArrowDown:v.preventDefault(),v.stopPropagation(),o({type:0}),c.nextFrame(()=>o({type:2,focus:Oa.First}));break;case Qt.ArrowUp:v.preventDefault(),v.stopPropagation(),o({type:0}),c.nextFrame(()=>o({type:2,focus:Oa.Last}));break}}),u=It(v=>{switch(v.key){case Qt.Space:v.preventDefault();break}}),h=It(v=>{if(T$(v.currentTarget))return v.preventDefault();t.disabled||(a.menuState===0?(o({type:1}),c.nextFrame(()=>{var w;return(w=a.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})})):(v.preventDefault(),o({type:0})))}),m=k.useMemo(()=>({open:a.menuState===0}),[a]),g={ref:l,id:r,type:G$(t,a.buttonRef),"aria-haspopup":"menu","aria-controls":(n=a.itemsRef.current)==null?void 0:n.id,"aria-expanded":a.menuState===0,onKeyDown:f,onKeyUp:u,onClick:h};return Fr({ourProps:g,theirProps:s,slot:m,defaultTag:Fae,name:"Menu.Button"})}let zae="div",qae=Sc.RenderStrategy|Sc.Static;function Wae(t,e){var n,i;let r=_a(),{id:s=`headlessui-menu-items-${r}`,...a}=t,[o,l]=Kw("Menu.Items"),c=mr(o.itemsRef,e),f=zw(o.itemsRef),u=sL(),h=P$(),m=h!==null?(h&So.Open)===So.Open:o.menuState===0;k.useEffect(()=>{let x=o.itemsRef.current;x&&o.menuState===0&&x!==(f==null?void 0:f.activeElement)&&x.focus({preventScroll:!0})},[o.menuState,o.itemsRef,f]),Pae({container:o.itemsRef.current,enabled:o.menuState===0,accept(x){return x.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:x.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(x){x.setAttribute("role","none")}});let g=It(x=>{var $,T;switch(u.dispose(),x.key){case Qt.Space:if(o.searchQuery!=="")return x.preventDefault(),x.stopPropagation(),l({type:3,value:x.key});case Qt.Enter:if(x.preventDefault(),x.stopPropagation(),l({type:1}),o.activeItemIndex!==null){let{dataRef:S}=o.items[o.activeItemIndex];(T=($=S.current)==null?void 0:$.domRef.current)==null||T.click()}aL(o.buttonRef.current);break;case Qt.ArrowDown:return x.preventDefault(),x.stopPropagation(),l({type:2,focus:Oa.Next});case Qt.ArrowUp:return x.preventDefault(),x.stopPropagation(),l({type:2,focus:Oa.Previous});case Qt.Home:case Qt.PageUp:return x.preventDefault(),x.stopPropagation(),l({type:2,focus:Oa.First});case Qt.End:case Qt.PageDown:return x.preventDefault(),x.stopPropagation(),l({type:2,focus:Oa.Last});case Qt.Escape:x.preventDefault(),x.stopPropagation(),l({type:1}),m_().nextFrame(()=>{var S;return(S=o.buttonRef.current)==null?void 0:S.focus({preventScroll:!0})});break;case Qt.Tab:x.preventDefault(),x.stopPropagation(),l({type:1}),m_().nextFrame(()=>{pne(o.buttonRef.current,x.shiftKey?ai.Previous:ai.Next)});break;default:x.key.length===1&&(l({type:3,value:x.key}),u.setTimeout(()=>l({type:4}),350));break}}),v=It(x=>{switch(x.key){case Qt.Space:x.preventDefault();break}}),w=k.useMemo(()=>({open:o.menuState===0}),[o]),O={"aria-activedescendant":o.activeItemIndex===null||(n=o.items[o.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(i=o.buttonRef.current)==null?void 0:i.id,id:s,onKeyDown:g,onKeyUp:v,role:"menu",tabIndex:0,ref:c};return Fr({ourProps:O,theirProps:a,slot:w,defaultTag:zae,features:qae,visible:m,name:"Menu.Items"})}let Uae=k.Fragment;function Vae(t,e){let n=_a(),{id:i=`headlessui-menu-item-${n}`,disabled:r=!1,...s}=t,[a,o]=Kw("Menu.Item"),l=a.activeItemIndex!==null?a.items[a.activeItemIndex].id===i:!1,c=k.useRef(null),f=mr(e,c);Sa(()=>{if(a.__demoMode||a.menuState!==0||!l||a.activationTrigger===0)return;let S=m_();return S.requestAnimationFrame(()=>{var R,_;(_=(R=c.current)==null?void 0:R.scrollIntoView)==null||_.call(R,{block:"nearest"})}),S.dispose},[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let u=Rae(c),h=k.useRef({disabled:r,domRef:c,get textValue(){return u()}});Sa(()=>{h.current.disabled=r},[h,r]),Sa(()=>(o({type:5,id:i,dataRef:h}),()=>o({type:6,id:i})),[h,i]);let m=It(()=>{o({type:1})}),g=It(S=>{if(r)return S.preventDefault();o({type:1}),aL(a.buttonRef.current)}),v=It(()=>{if(r)return o({type:2,focus:Oa.Nothing});o({type:2,focus:Oa.Specific,id:i})}),w=$ae(),O=It(S=>w.update(S)),x=It(S=>{w.wasMoved(S)&&(r||l||o({type:2,focus:Oa.Specific,id:i,trigger:0}))}),$=It(S=>{w.wasMoved(S)&&(r||l&&o({type:2,focus:Oa.Nothing}))}),T=k.useMemo(()=>({active:l,disabled:r,close:m}),[l,r,m]);return Fr({ourProps:{id:i,ref:f,role:"menuitem",tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:O,onMouseEnter:O,onPointerMove:x,onMouseMove:x,onPointerLeave:$,onMouseLeave:$},theirProps:s,slot:T,defaultTag:Uae,name:"Menu.Item"})}let Hae=Br(Bae),Zae=Br(Qae),Gae=Br(Wae),Xae=Br(Vae),Ci=Object.assign(Hae,{Button:Zae,Items:Gae,Item:Xae});var Yae=(t=>(t[t.Open=0]="Open",t[t.Closed=1]="Closed",t))(Yae||{}),Kae=(t=>(t[t.TogglePopover=0]="TogglePopover",t[t.ClosePopover=1]="ClosePopover",t[t.SetButton=2]="SetButton",t[t.SetButtonId=3]="SetButtonId",t[t.SetPanel=4]="SetPanel",t[t.SetPanelId=5]="SetPanelId",t))(Kae||{});let Jae={0:t=>{let e={...t,popoverState:Nr(t.popoverState,{0:1,1:0})};return e.popoverState===0&&(e.__demoMode=!1),e},1(t){return t.popoverState===1?t:{...t,popoverState:1}},2(t,e){return t.button===e.button?t:{...t,button:e.button}},3(t,e){return t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId}},4(t,e){return t.panel===e.panel?t:{...t,panel:e.panel}},5(t,e){return t.panelId===e.panelId?t:{...t,panelId:e.panelId}}},Y$=k.createContext(null);Y$.displayName="PopoverContext";function Jw(t){let e=k.useContext(Y$);if(e===null){let n=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Jw),n}return e}let K$=k.createContext(null);K$.displayName="PopoverAPIContext";function J$(t){let e=k.useContext(K$);if(e===null){let n=new Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,J$),n}return e}let e4=k.createContext(null);e4.displayName="PopoverGroupContext";function aj(){return k.useContext(e4)}let ek=k.createContext(null);ek.displayName="PopoverPanelContext";function eoe(){return k.useContext(ek)}function toe(t,e){return Nr(e.type,Jae,t,e)}let noe="div";function ioe(t,e){var n;let{__demoMode:i=!1,...r}=t,s=k.useRef(null),a=mr(e,mne(ae=>{s.current=ae})),o=k.useRef([]),l=k.useReducer(toe,{__demoMode:i,popoverState:i?0:1,buttons:o,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:k.createRef(),afterPanelSentinel:k.createRef()}),[{popoverState:c,button:f,buttonId:u,panel:h,panelId:m,beforePanelSentinel:g,afterPanelSentinel:v},w]=l,O=zw((n=s.current)!=null?n:f),x=k.useMemo(()=>{if(!f||!h)return!1;for(let ge of document.querySelectorAll("body > *"))if(Number(ge==null?void 0:ge.contains(f))^Number(ge==null?void 0:ge.contains(h)))return!0;let ae=A$(),ne=ae.indexOf(f),he=(ne+ae.length-1)%ae.length,ve=(ne+1)%ae.length,je=ae[he],we=ae[ve];return!h.contains(je)&&!h.contains(we)},[f,h]),$=rd(u),T=rd(m),S=k.useMemo(()=>({buttonId:$,panelId:T,close:()=>w({type:1})}),[$,T,w]),R=aj(),_=R==null?void 0:R.registerPopover,P=It(()=>{var ae;return(ae=R==null?void 0:R.isFocusWithinPopoverGroup())!=null?ae:(O==null?void 0:O.activeElement)&&((f==null?void 0:f.contains(O.activeElement))||(h==null?void 0:h.contains(O.activeElement)))});k.useEffect(()=>_==null?void 0:_(S),[_,S]);let[A,N]=gne(),M=vne({mainTreeNodeRef:R==null?void 0:R.mainTreeNodeRef,portals:A,defaultContainers:[f,h]});bne(O==null?void 0:O.defaultView,"focus",ae=>{var ne,he,ve,je;ae.target!==window&&ae.target instanceof HTMLElement&&c===0&&(P()||f&&h&&(M.contains(ae.target)||(he=(ne=g.current)==null?void 0:ne.contains)!=null&&he.call(ne,ae.target)||(je=(ve=v.current)==null?void 0:ve.contains)!=null&&je.call(ve,ae.target)||w({type:1})))},!0),oL(M.resolveContainers,(ae,ne)=>{w({type:1}),cL(ne,fL.Loose)||(ae.preventDefault(),f==null||f.focus())},c===0);let Q=It(ae=>{w({type:1});let ne=ae?ae instanceof HTMLElement?ae:"current"in ae&&ae.current instanceof HTMLElement?ae.current:f:f;ne==null||ne.focus()}),U=k.useMemo(()=>({close:Q,isPortalled:x}),[Q,x]),z=k.useMemo(()=>({open:c===0,close:Q}),[c,Q]),Y={ref:a};return tt.createElement(ek.Provider,{value:null},tt.createElement(Y$.Provider,{value:l},tt.createElement(K$.Provider,{value:U},tt.createElement(lL,{value:Nr(c,{0:So.Open,1:So.Closed})},tt.createElement(N,null,Fr({ourProps:Y,theirProps:r,slot:z,defaultTag:noe,name:"Popover"}),tt.createElement(M.MainTreeNode,null))))))}let roe="button";function soe(t,e){let n=_a(),{id:i=`headlessui-popover-button-${n}`,...r}=t,[s,a]=Jw("Popover.Button"),{isPortalled:o}=J$("Popover.Button"),l=k.useRef(null),c=`headlessui-focus-sentinel-${_a()}`,f=aj(),u=f==null?void 0:f.closeOthers,h=eoe()!==null;k.useEffect(()=>{if(!h)return a({type:3,buttonId:i}),()=>{a({type:3,buttonId:null})}},[h,i,a]);let[m]=k.useState(()=>Symbol()),g=mr(l,e,h?null:M=>{if(M)s.buttons.current.push(m);else{let Q=s.buttons.current.indexOf(m);Q!==-1&&s.buttons.current.splice(Q,1)}s.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),M&&a({type:2,button:M})}),v=mr(l,e),w=zw(l),O=It(M=>{var Q,U,z;if(h){if(s.popoverState===1)return;switch(M.key){case Qt.Space:case Qt.Enter:M.preventDefault(),(U=(Q=M.target).click)==null||U.call(Q),a({type:1}),(z=s.button)==null||z.focus();break}}else switch(M.key){case Qt.Space:case Qt.Enter:M.preventDefault(),M.stopPropagation(),s.popoverState===1&&(u==null||u(s.buttonId)),a({type:0});break;case Qt.Escape:if(s.popoverState!==0)return u==null?void 0:u(s.buttonId);if(!l.current||w!=null&&w.activeElement&&!l.current.contains(w.activeElement))return;M.preventDefault(),M.stopPropagation(),a({type:1});break}}),x=It(M=>{h||M.key===Qt.Space&&M.preventDefault()}),$=It(M=>{var Q,U;T$(M.currentTarget)||t.disabled||(h?(a({type:1}),(Q=s.button)==null||Q.focus()):(M.preventDefault(),M.stopPropagation(),s.popoverState===1&&(u==null||u(s.buttonId)),a({type:0}),(U=s.button)==null||U.focus()))}),T=It(M=>{M.preventDefault(),M.stopPropagation()}),S=s.popoverState===0,R=k.useMemo(()=>({open:S}),[S]),_=G$(t,l),P=h?{ref:v,type:_,onKeyDown:O,onClick:$}:{ref:g,id:s.buttonId,type:_,"aria-expanded":s.popoverState===0,"aria-controls":s.panel?s.panelId:void 0,onKeyDown:O,onKeyUp:x,onClick:$,onMouseDown:T},A=uL(),N=It(()=>{let M=s.panel;if(!M)return;function Q(){Nr(A.current,{[ac.Forwards]:()=>os(M,ai.First),[ac.Backwards]:()=>os(M,ai.Last)})===wf.Error&&os(A$().filter(U=>U.dataset.headlessuiFocusGuard!=="true"),Nr(A.current,{[ac.Forwards]:ai.Next,[ac.Backwards]:ai.Previous}),{relativeTo:s.button})}Q()});return tt.createElement(tt.Fragment,null,Fr({ourProps:P,theirProps:r,slot:R,defaultTag:roe,name:"Popover.Button"}),S&&!h&&o&&tt.createElement(Pg,{id:c,features:Oy.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:N}))}let aoe="div",ooe=Sc.RenderStrategy|Sc.Static;function loe(t,e){let n=_a(),{id:i=`headlessui-popover-overlay-${n}`,...r}=t,[{popoverState:s},a]=Jw("Popover.Overlay"),o=mr(e),l=P$(),c=l!==null?(l&So.Open)===So.Open:s===0,f=It(h=>{if(T$(h.currentTarget))return h.preventDefault();a({type:1})}),u=k.useMemo(()=>({open:s===0}),[s]);return Fr({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:f},theirProps:r,slot:u,defaultTag:aoe,features:ooe,visible:c,name:"Popover.Overlay"})}let coe="div",foe=Sc.RenderStrategy|Sc.Static;function uoe(t,e){let n=_a(),{id:i=`headlessui-popover-panel-${n}`,focus:r=!1,...s}=t,[a,o]=Jw("Popover.Panel"),{close:l,isPortalled:c}=J$("Popover.Panel"),f=`headlessui-focus-sentinel-before-${_a()}`,u=`headlessui-focus-sentinel-after-${_a()}`,h=k.useRef(null),m=mr(h,e,P=>{o({type:4,panel:P})}),g=zw(h),v=wne();Sa(()=>(o({type:5,panelId:i}),()=>{o({type:5,panelId:null})}),[i,o]);let w=P$(),O=w!==null?(w&So.Open)===So.Open:a.popoverState===0,x=It(P=>{var A;switch(P.key){case Qt.Escape:if(a.popoverState!==0||!h.current||g!=null&&g.activeElement&&!h.current.contains(g.activeElement))return;P.preventDefault(),P.stopPropagation(),o({type:1}),(A=a.button)==null||A.focus();break}});k.useEffect(()=>{var P;t.static||a.popoverState===1&&((P=t.unmount)==null||P)&&o({type:4,panel:null})},[a.popoverState,t.unmount,t.static,o]),k.useEffect(()=>{if(a.__demoMode||!r||a.popoverState!==0||!h.current)return;let P=g==null?void 0:g.activeElement;h.current.contains(P)||os(h.current,ai.First)},[a.__demoMode,r,h,a.popoverState]);let $=k.useMemo(()=>({open:a.popoverState===0,close:l}),[a,l]),T={ref:m,id:i,onKeyDown:x,onBlur:r&&a.popoverState===0?P=>{var A,N,M,Q,U;let z=P.relatedTarget;z&&h.current&&((A=h.current)!=null&&A.contains(z)||(o({type:1}),((M=(N=a.beforePanelSentinel.current)==null?void 0:N.contains)!=null&&M.call(N,z)||(U=(Q=a.afterPanelSentinel.current)==null?void 0:Q.contains)!=null&&U.call(Q,z))&&z.focus({preventScroll:!0})))}:void 0,tabIndex:-1},S=uL(),R=It(()=>{let P=h.current;if(!P)return;function A(){Nr(S.current,{[ac.Forwards]:()=>{var N;os(P,ai.First)===wf.Error&&((N=a.afterPanelSentinel.current)==null||N.focus())},[ac.Backwards]:()=>{var N;(N=a.button)==null||N.focus({preventScroll:!0})}})}A()}),_=It(()=>{let P=h.current;if(!P)return;function A(){Nr(S.current,{[ac.Forwards]:()=>{var N;if(!a.button)return;let M=A$(),Q=M.indexOf(a.button),U=M.slice(0,Q+1),z=[...M.slice(Q+1),...U];for(let Y of z.slice())if(Y.dataset.headlessuiFocusGuard==="true"||(N=a.panel)!=null&&N.contains(Y)){let ae=z.indexOf(Y);ae!==-1&&z.splice(ae,1)}os(z,ai.First,{sorted:!1})},[ac.Backwards]:()=>{var N;os(P,ai.Previous)===wf.Error&&((N=a.button)==null||N.focus())}})}A()});return tt.createElement(ek.Provider,{value:i},O&&c&&tt.createElement(Pg,{id:f,ref:a.beforePanelSentinel,features:Oy.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:R}),Fr({mergeRefs:v,ourProps:T,theirProps:s,slot:$,defaultTag:coe,features:foe,visible:O,name:"Popover.Panel"}),O&&c&&tt.createElement(Pg,{id:u,ref:a.afterPanelSentinel,features:Oy.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:_}))}let doe="div";function hoe(t,e){let n=k.useRef(null),i=mr(n,e),[r,s]=k.useState([]),a=yne(),o=It(v=>{s(w=>{let O=w.indexOf(v);if(O!==-1){let x=w.slice();return x.splice(O,1),x}return w})}),l=It(v=>(s(w=>[...w,v]),()=>o(v))),c=It(()=>{var v;let w=$$(n);if(!w)return!1;let O=w.activeElement;return(v=n.current)!=null&&v.contains(O)?!0:r.some(x=>{var $,T;return(($=w.getElementById(x.buttonId.current))==null?void 0:$.contains(O))||((T=w.getElementById(x.panelId.current))==null?void 0:T.contains(O))})}),f=It(v=>{for(let w of r)w.buttonId.current!==v&&w.close()}),u=k.useMemo(()=>({registerPopover:l,unregisterPopover:o,isFocusWithinPopoverGroup:c,closeOthers:f,mainTreeNodeRef:a.mainTreeNodeRef}),[l,o,c,f,a.mainTreeNodeRef]),h=k.useMemo(()=>({}),[]),m=t,g={ref:i};return tt.createElement(e4.Provider,{value:u},Fr({ourProps:g,theirProps:m,slot:h,defaultTag:doe,name:"Popover.Group"}),tt.createElement(a.MainTreeNode,null))}let poe=Br(ioe),moe=Br(soe),goe=Br(loe),voe=Br(uoe),boe=Br(hoe),xf=Object.assign(poe,{Button:moe,Overlay:goe,Panel:voe,Group:boe});function yoe({onFocus:t}){let[e,n]=k.useState(!0),i=kne();return e?tt.createElement(Pg,{as:"button",type:"button",features:Oy.Focusable,onFocus:r=>{r.preventDefault();let s,a=50;function o(){if(a--<=0){s&&cancelAnimationFrame(s);return}if(t()){if(cancelAnimationFrame(s),!i.current)return;n(!1);return}s=requestAnimationFrame(o)}s=requestAnimationFrame(o)}}):null}const oj=k.createContext(null);function woe(){return{groups:new Map,get(t,e){var n;let i=this.groups.get(t);i||(i=new Map,this.groups.set(t,i));let r=(n=i.get(e))!=null?n:0;i.set(e,r+1);let s=Array.from(i.keys()).indexOf(e);function a(){let o=i.get(e);o>1?i.set(e,o-1):i.delete(e)}return[s,a]}}}function koe({children:t}){let e=k.useRef(woe());return k.createElement(oj.Provider,{value:e},t)}function lj(t){let e=k.useContext(oj);if(!e)throw new Error("You must wrap your component in a <StableCollection>");let n=Ooe(),[i,r]=e.current.get(t,n);return k.useEffect(()=>r,[]),i}function Ooe(){var t,e,n;let i=(n=(e=(t=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null?void 0:t.ReactCurrentOwner)==null?void 0:e.current)!=null?n:null;if(!i)return Symbol();let r=[],s=i;for(;s;)r.push(s.index),s=s.return;return"$."+r.join(".")}var xoe=(t=>(t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t))(xoe||{}),Soe=(t=>(t[t.Less=-1]="Less",t[t.Equal=0]="Equal",t[t.Greater=1]="Greater",t))(Soe||{}),_oe=(t=>(t[t.SetSelectedIndex=0]="SetSelectedIndex",t[t.RegisterTab=1]="RegisterTab",t[t.UnregisterTab=2]="UnregisterTab",t[t.RegisterPanel=3]="RegisterPanel",t[t.UnregisterPanel=4]="UnregisterPanel",t))(_oe||{});let Coe={0(t,e){var n;let i=id(t.tabs,f=>f.current),r=id(t.panels,f=>f.current),s=i.filter(f=>{var u;return!((u=f.current)!=null&&u.hasAttribute("disabled"))}),a={...t,tabs:i,panels:r};if(e.index<0||e.index>i.length-1){let f=Nr(Math.sign(e.index-t.selectedIndex),{[-1]:()=>1,0:()=>Nr(Math.sign(e.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(s.length===0)return a;let u=Nr(f,{0:()=>i.indexOf(s[0]),1:()=>i.indexOf(s[s.length-1])});return{...a,selectedIndex:u===-1?t.selectedIndex:u}}let o=i.slice(0,e.index),l=[...i.slice(e.index),...o].find(f=>s.includes(f));if(!l)return a;let c=(n=i.indexOf(l))!=null?n:t.selectedIndex;return c===-1&&(c=t.selectedIndex),{...a,selectedIndex:c}},1(t,e){if(t.tabs.includes(e.tab))return t;let n=t.tabs[t.selectedIndex],i=id([...t.tabs,e.tab],s=>s.current),r=t.selectedIndex;return t.info.current.isControlled||(r=i.indexOf(n),r===-1&&(r=t.selectedIndex)),{...t,tabs:i,selectedIndex:r}},2(t,e){return{...t,tabs:t.tabs.filter(n=>n!==e.tab)}},3(t,e){return t.panels.includes(e.panel)?t:{...t,panels:id([...t.panels,e.panel],n=>n.current)}},4(t,e){return{...t,panels:t.panels.filter(n=>n!==e.panel)}}},t4=k.createContext(null);t4.displayName="TabsDataContext";function Rd(t){let e=k.useContext(t4);if(e===null){let n=new Error(`<${t} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Rd),n}return e}let n4=k.createContext(null);n4.displayName="TabsActionsContext";function i4(t){let e=k.useContext(n4);if(e===null){let n=new Error(`<${t} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,i4),n}return e}function $oe(t,e){return Nr(e.type,Coe,t,e)}let Poe=k.Fragment;function Toe(t,e){let{defaultIndex:n=0,vertical:i=!1,manual:r=!1,onChange:s,selectedIndex:a=null,...o}=t;const l=i?"vertical":"horizontal",c=r?"manual":"auto";let f=a!==null,u=rd({isControlled:f}),h=mr(e),[m,g]=k.useReducer($oe,{info:u,selectedIndex:a??n,tabs:[],panels:[]}),v=k.useMemo(()=>({selectedIndex:m.selectedIndex}),[m.selectedIndex]),w=rd(s||(()=>{})),O=rd(m.tabs),x=k.useMemo(()=>({orientation:l,activation:c,...m}),[l,c,m]),$=It(A=>(g({type:1,tab:A}),()=>g({type:2,tab:A}))),T=It(A=>(g({type:3,panel:A}),()=>g({type:4,panel:A}))),S=It(A=>{R.current!==A&&w.current(A),f||g({type:0,index:A})}),R=rd(f?t.selectedIndex:m.selectedIndex),_=k.useMemo(()=>({registerTab:$,registerPanel:T,change:S}),[]);Sa(()=>{g({type:0,index:a??n})},[a]),Sa(()=>{if(R.current===void 0||m.tabs.length<=0)return;let A=id(m.tabs,N=>N.current);A.some((N,M)=>m.tabs[M]!==N)&&S(A.indexOf(m.tabs[R.current]))});let P={ref:h};return tt.createElement(koe,null,tt.createElement(n4.Provider,{value:_},tt.createElement(t4.Provider,{value:x},x.tabs.length<=0&&tt.createElement(yoe,{onFocus:()=>{var A,N;for(let M of O.current)if(((A=M.current)==null?void 0:A.tabIndex)===0)return(N=M.current)==null||N.focus(),!0;return!1}}),Fr({ourProps:P,theirProps:o,slot:v,defaultTag:Poe,name:"Tabs"}))))}let Aoe="div";function Eoe(t,e){let{orientation:n,selectedIndex:i}=Rd("Tab.List"),r=mr(e);return Fr({ourProps:{ref:r,role:"tablist","aria-orientation":n},theirProps:t,slot:{selectedIndex:i},defaultTag:Aoe,name:"Tabs.List"})}let Roe="button";function Doe(t,e){var n,i;let r=_a(),{id:s=`headlessui-tabs-tab-${r}`,...a}=t,{orientation:o,activation:l,selectedIndex:c,tabs:f,panels:u}=Rd("Tab"),h=i4("Tab"),m=Rd("Tab"),g=k.useRef(null),v=mr(g,e);Sa(()=>h.registerTab(g),[h,g]);let w=lj("tabs"),O=f.indexOf(g);O===-1&&(O=w);let x=O===c,$=It(N=>{var M;let Q=N();if(Q===wf.Success&&l==="auto"){let U=(M=$$(g))==null?void 0:M.activeElement,z=m.tabs.findIndex(Y=>Y.current===U);z!==-1&&h.change(z)}return Q}),T=It(N=>{let M=f.map(Q=>Q.current).filter(Boolean);if(N.key===Qt.Space||N.key===Qt.Enter){N.preventDefault(),N.stopPropagation(),h.change(O);return}switch(N.key){case Qt.Home:case Qt.PageUp:return N.preventDefault(),N.stopPropagation(),$(()=>os(M,ai.First));case Qt.End:case Qt.PageDown:return N.preventDefault(),N.stopPropagation(),$(()=>os(M,ai.Last))}if($(()=>Nr(o,{vertical(){return N.key===Qt.ArrowUp?os(M,ai.Previous|ai.WrapAround):N.key===Qt.ArrowDown?os(M,ai.Next|ai.WrapAround):wf.Error},horizontal(){return N.key===Qt.ArrowLeft?os(M,ai.Previous|ai.WrapAround):N.key===Qt.ArrowRight?os(M,ai.Next|ai.WrapAround):wf.Error}}))===wf.Success)return N.preventDefault()}),S=k.useRef(!1),R=It(()=>{var N;S.current||(S.current=!0,(N=g.current)==null||N.focus({preventScroll:!0}),h.change(O),One(()=>{S.current=!1}))}),_=It(N=>{N.preventDefault()}),P=k.useMemo(()=>{var N;return{selected:x,disabled:(N=t.disabled)!=null?N:!1}},[x,t.disabled]),A={ref:v,onKeyDown:T,onMouseDown:_,onClick:R,id:s,role:"tab",type:G$(t,g),"aria-controls":(i=(n=u[O])==null?void 0:n.current)==null?void 0:i.id,"aria-selected":x,tabIndex:x?0:-1};return Fr({ourProps:A,theirProps:a,slot:P,defaultTag:Roe,name:"Tabs.Tab"})}let Moe="div";function Noe(t,e){let{selectedIndex:n}=Rd("Tab.Panels"),i=mr(e),r=k.useMemo(()=>({selectedIndex:n}),[n]);return Fr({ourProps:{ref:i},theirProps:t,slot:r,defaultTag:Moe,name:"Tabs.Panels"})}let Loe="div",joe=Sc.RenderStrategy|Sc.Static;function Ioe(t,e){var n,i,r,s;let a=_a(),{id:o=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=t,{selectedIndex:f,tabs:u,panels:h}=Rd("Tab.Panel"),m=i4("Tab.Panel"),g=k.useRef(null),v=mr(g,e);Sa(()=>m.registerPanel(g),[m,g,o]);let w=lj("panels"),O=h.indexOf(g);O===-1&&(O=w);let x=O===f,$=k.useMemo(()=>({selected:x}),[x]),T={ref:v,id:o,role:"tabpanel","aria-labelledby":(i=(n=u[O])==null?void 0:n.current)==null?void 0:i.id,tabIndex:x?l:-1};return!x&&((r=c.unmount)==null||r)&&!((s=c.static)!=null&&s)?tt.createElement(Pg,{as:"span","aria-hidden":"true",...T}):Fr({ourProps:T,theirProps:c,slot:$,defaultTag:Loe,features:joe,visible:x,name:"Tabs.Panel"})}let Boe=Br(Doe),Foe=Br(Toe),Qoe=Br(Eoe),zoe=Br(Noe),qoe=Br(Ioe),v1=Object.assign(Boe,{Group:Foe,List:Qoe,Panels:zoe,Panel:qoe});const Eg="http://www.w3.org/2000/svg",Woe="http://www.w3.org/2000/xmlns/";function Uoe(){return md(Eg,"svg",{display:"none",xmlns:Eg})}function Voe(t,e){const n=Uoe();for(const i of t)n.append(Hoe(i,e));return n}function Hoe(t,e){let n;try{n=Goe(t.payload,"viewBox")}catch(r){fl.error(r)}const i=md(Eg,"symbol",{id:`${e.settings.sprite.prefix}${t.name}${e.settings.sprite.suffix}`});return n&&i.setAttribute("viewBox",n),i.innerHTML=Xoe(t.payload),i}function Zoe(t,e){return md(Eg,"use",{href:`#${e.settings.sprite.prefix}${t}${e.settings.sprite.suffix}`})}function md(t,e,n={}){const i=document.createElementNS(t,e);for(const[r,s]of Object.entries(n))r==="xmlns"?i.setAttributeNS(Woe,r,s):i.setAttribute(r,s);return i}function Goe(t,e){const s=new DOMParser().parseFromString(t,"image/svg+xml").documentElement.getAttribute(e);if(!s)throw new Error(`No ${e} found`);return s}function Xoe(t){return[...new DOMParser().parseFromString(t,"image/svg+xml").documentElement.childNodes].map(r=>r instanceof Element?r.outerHTML:r.textContent||"").join("")}const Yoe=`
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||
line-height: 1.5;
|
||
margin: 0;
|
||
padding: 2rem;
|
||
background: #f5f5f5;
|
||
}
|
||
|
||
.container {
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.header {
|
||
margin-bottom: 2rem;
|
||
padding-bottom: 1rem;
|
||
border-bottom: 1px solid #ddd;
|
||
}
|
||
|
||
.header h1 {
|
||
margin: 0;
|
||
color: #333;
|
||
}
|
||
|
||
.header p {
|
||
color: #666;
|
||
margin: 0.5rem 0 0;
|
||
}
|
||
|
||
.icons-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||
gap: 1.5rem;
|
||
margin-top: 2rem;
|
||
}
|
||
|
||
.icon-demo {
|
||
background: white;
|
||
border-radius: 8px;
|
||
padding: 1rem;
|
||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||
transition: transform 0.2s, box-shadow 0.2s;
|
||
}
|
||
|
||
.icon-demo:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
|
||
}
|
||
|
||
.icon-svg {
|
||
width: 100%;
|
||
height: 100px;
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
.icon-name {
|
||
font-size: 0.875rem;
|
||
color: #666;
|
||
margin: 0;
|
||
word-break: break-all;
|
||
}
|
||
|
||
.usage-example {
|
||
background: #f8f9fa;
|
||
border-radius: 4px;
|
||
padding: 1rem;
|
||
margin-top: 2rem;
|
||
}
|
||
|
||
.usage-example pre {
|
||
margin: 0;
|
||
white-space: pre-wrap;
|
||
font-family: 'SF Mono', 'Consolas', monospace;
|
||
font-size: 0.875rem;
|
||
}
|
||
|
||
.usage-example code {
|
||
background: #e9ecef;
|
||
padding: 0.2em 0.4em;
|
||
border-radius: 3px;
|
||
}
|
||
`;function Koe(t,e){const n=Voe(t,e);return{demoHtml:Joe(n,t,e),sprite:n}}function Joe(t,e,n){const i=`<!-- Include the sprite SVG in your HTML -->
|
||
<svg style="display: none;">
|
||
<!-- Your sprite content here -->
|
||
</svg>
|
||
|
||
<!-- Use an icon -->
|
||
<svg>
|
||
<use href="#${n.settings.sprite.prefix}icon-name${n.settings.sprite.suffix}"></use>
|
||
</svg>
|
||
|
||
<svg height="100">
|
||
<use href="#${n.settings.sprite.prefix}icon-name${n.settings.sprite.suffix}"></use>
|
||
</svg>`,r=new Document,s=r.createElement("html"),a=r.createElement("head"),o=r.createElement("body");a.append(md("","meta",{charset:"utf8"})),a.append(md("","meta",{content:"width=device-width, initial-scale=1.0",name:"viewport"}));const l=r.createElement("title");l.textContent="SVG Sprite Demo",a.append(l);const c=r.createElement("style");c.textContent=Yoe,a.append(c),o.append(t);const f=r.createElement("div");f.classList.add("container");const u=r.createElement("div");u.classList.add("header");const h=r.createElement("h1");h.textContent="SVG Gobbler Sprite Demo";const m=r.createElement("p");m.textContent=`This demo demonstrates ${e.length} icons from your sprite sheet.`,u.append(h,m),f.append(u);const g=r.createElement("div");g.classList.add("icons-grid");for(const x of e){const $=r.createElement("div");$.classList.add("icon-demo");const T=md(Eg,"svg",{class:"icon-svg"});T.append(Zoe(x.name,n)),$.append(T);const S=r.createElement("p");S.classList.add("icon-name"),S.textContent=`${n.settings.sprite.prefix}${x.name}${n.settings.sprite.suffix}`,$.append(S),g.append($)}f.append(g);const v=r.createElement("div");v.classList.add("usage-example");const w=r.createElement("h2");w.textContent="How to Use";const O=r.createElement("pre");return O.textContent=i,v.append(w,O),f.append(v),o.append(f),s.append(a,o),r.append(s),xne(r.documentElement.outerHTML,{parser:"html",plugins:[Sne],printWidth:100,semi:!0,singleQuote:!0,tabWidth:2,useTabs:!1})}const Si={convertToDataUrl(t,e,n,i){return new Promise((r,s)=>{const a=this.prepareSvgForImages(t,e),o=new Blob([a],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(o),c=new Image;c.addEventListener("load",()=>{const f=document.createElement("canvas");f.width=c.width,f.height=c.height;const u=f.getContext("2d");if(!u){s(new Error("Canvas context is not available"));return}n==="image/jpeg"&&(u.fillStyle="#FFF",u.fillRect(0,0,c.width,c.height)),u.drawImage(c,0,0,c.width,c.height);const h=f.toDataURL(n,i);URL.revokeObjectURL(l),r(h)}),c.addEventListener("error",()=>{s(new Error("Error loading image"))}),c.src=l})},async copyImageToClipboard(t){try{const e=await fetch(t).then(i=>i.blob()),n=new ClipboardItem({[e.type]:e});await navigator.clipboard.write([n])}catch(e){console.error("Failed to copy:",e)}},async copyStringToClipboard(t){try{await navigator.clipboard.writeText(t)}catch(e){console.error("Failed to copy:",e)}},async downloadDataUrlsZip(t,e){const n=new fg;for(const[r,s]of t.entries()){let a=`${s.name}.${e.fileType}`;const o=s.payload.split(",")[1];e.prefixFilenames&&(a=`${e.filenamePrefix}_${r}.${e.fileType}`),n.file(a,o,{base64:!0})}const i=await n.generateAsync({type:"blob"});this.downloadZipFile(i,`${e.filename}.zip`)},async downloadImageContent(t,e){if(t.length===1){await this.downloadImageDataUrl(t[0].payload,e.filename,e.fileType);return}await this.downloadDataUrlsZip(t,e)},async downloadImageDataUrl(t,e,n){const i=await fetch(t).then(a=>a.blob()),r=URL.createObjectURL(i),s=document.createElement("a");s.download=`${e}.${n}`,s.href=r,s.click()},async downloadSpriteZip(t,e){const n=new fg,{demoHtml:i,sprite:r}=Koe(t,e);n.file("sprite.svg",r.outerHTML),n.file("demo.html",i);const s=await n.generateAsync({type:"blob"});this.downloadZipFile(s,`${e.filename}.zip`)},async downloadSvgContent(t,e){if(t.length===1){await this.downloadSvgString(t[0].payload,e.filename);return}await this.downloadSvgStringsZip(t,e)},async downloadSvgString(t,e){const n=new Blob([t],{type:"text/xml"}),i=URL.createObjectURL(n),r=document.createElement("a");r.download=`${e}.svg`,r.href=i,r.click()},async downloadSvgStringsZip(t,e){const n=new fg;for(const[r,s]of t.entries()){let a=`${s.name}.svg`;e.prefixFilenames&&(a=`${e.filenamePrefix}_${r}.svg`),n.file(a,s.payload)}const i=await n.generateAsync({type:"blob"});this.downloadZipFile(i,`${e.filename}.zip`)},downloadZipFile(t,e){const n=URL.createObjectURL(t),i=document.createElement("a");i.download=e,i.href=n,i.click()},handleUpload(t){const e=t.map(n=>{const i=n.name.trim().replace(/\.svg$/i,"");return n.text().then(r=>({name:i,svg:r})).catch(()=>{throw new Error("Error reading file")})});return Promise.all(e)},isValidSVG(t){const e=new DOMParser,n=e.parseFromString(t,"image/svg+xml"),i=e.parseFromString("INVALID","text/xml").querySelectorAll("parsererror")[0].namespaceURI;return n.getElementsByTagNameNS(i,"parsererror").length>0?!1:n.documentElement.nodeName==="svg"},prepareSvgForImages(t,e){const n=new DOMParser,{documentElement:i}=n.parseFromString(t,"image/svg+xml");if(i.querySelector("parsererror"))throw new Error("Invalid SVG string");i.getAttribute("xmlns")||i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.removeAttribute("style"),i.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg");const r=i.getAttribute("viewBox")||`0 0 ${i.getAttribute("width")} ${i.getAttribute("height")}`;let s=Number.parseInt(r.split(" ")[2]),a=Number.parseInt(r.split(" ")[3]);const o=s/a;return s>a?(s=e,a=e/o):(a=e,s=e*o),i.setAttribute("viewBox",r),i.setAttribute("width",`${s}`),i.setAttribute("height",`${a}`),i.outerHTML}},cj=({open:t,setOpen:e})=>{const[n,i]=k.useState(!1),[r,s]=k.useState(!1),[a,o]=k.useState([]),l=k.useRef(null),c=Yw(),{dispatch:f,state:u}=Ki(),{getInputProps:h,getRootProps:m,isDragActive:g}=g1({accept:{"image/svg+xml":[".svg"]},maxSize:10*1024*1024,multiple:!0,onDropAccepted:O=>{o(x=>[...x,...O])}});async function v(){var $;const O=($=l.current)==null?void 0:$.value;if(O&&!Si.isValidSVG(O))return s(!0);if(i(!0),O){const T={...u,onboarding:{...u.onboarding,hasPastedSvg:!0}};ye.setStorageData("user",T),f({payload:T,type:"set-user"})}const x=O?[{name:xl(),svg:O}]:await Si.handleUpload(a);await c(x),i(!1),w()}function w(){e(!1),setTimeout(()=>{s(!1),o([])},300)}return b.jsxs(Ut,{onClose:w,open:t,setOpen:e,children:[b.jsx(Ut.Header,{children:j("upload_upload")}),b.jsx(Ut.Main,{children:b.jsxs(Fn.Group,{children:[b.jsxs(Fn.List,{children:[b.jsx(Fn.Tab,{children:j("upload_file")}),b.jsx(Fn.Tab,{children:j("upload_clipboard")})]}),b.jsxs(Fn.Panels,{children:[b.jsx(Fn.Panel,{children:b.jsxs("div",{...m(),className:Tt("relative mt-4 min-h-[220px] rounded-lg border-2 border-dashed border-gray-500/25","focus cursor-pointer transition-colors hover:bg-gray-50 dark:hover:bg-gray-900/50",g&&"ring-2 ring-red-600/50 dark:ring-red-500/50"),children:[b.jsxs(Wt,{as:"div",className:"absolute inset-0 flex flex-col items-center justify-center",enter:"transition-all duration-300 ease-in-out",enterFrom:"opacity-0 scale-90",enterTo:"opacity-100 scale-100",leave:"transition-all duration-300 ease-in-out",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-70",show:a.length===0,unmount:!1,children:[b.jsx(Q$,{"aria-hidden":"true",className:"text-muted mx-auto mb-3 h-12 w-12"}),b.jsxs("div",{className:"text flex text-sm leading-6",children:[b.jsx("span",{className:"font-semibold text-red-600 dark:text-red-500",children:j("upload_upload_files")}),b.jsx("input",{className:"sr-only",...h()}),b.jsx("p",{className:"pl-1",children:j("upload_drag_files")})]}),b.jsx("p",{className:"text-xs leading-5",children:j("upload_file_limit")})]}),b.jsxs(Wt,{as:"div",className:"absolute inset-0 flex flex-col items-center justify-center",enter:"transition-all duration-300 ease-in-out delay-150",enterFrom:"opacity-0 scale-90",enterTo:"opacity-100 scale-100",leave:"transition-all duration-300 ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:a.length>0,children:[b.jsx(WL,{"aria-hidden":"true",className:"text-muted mx-auto mb-3 h-12 w-12"}),b.jsxs("span",{className:"text text-sm font-medium leading-5",children:[a.length," ",j("upload_item"),a.length>1&&"s"," ",j("upload_uploaded")]})]})]})}),b.jsxs(Fn.Panel,{children:[b.jsx("textarea",{className:Tt("input mt-4 h-52",r&&"input-invalid"),onFocus:()=>s(!1),ref:l}),r&&b.jsx("span",{"aria-live":"polite",className:"block pt-2 text-xs text-red-600 dark:text-red-400",children:j("upload_error")})]})]})]})}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{loading:n,onClick:v,size:"lg",children:j("upload_upload")}),b.jsx(_t,{loading:n,onClick:w,size:"lg",type:"button",variant:"secondary",children:j("main_cancel")})]}),b.jsx("span",{id:"upload-modal"})]})},ele=()=>{const[t,e]=k.useState(!1),n=Yw(),{getInputProps:i,getRootProps:r,isDragActive:s}=g1({accept:{"image/svg+xml":[".svg"]},maxSize:10*1024*1024,multiple:!0,noClick:!0,noKeyboard:!0,onDropAccepted:a});async function a(o){const l=await Si.handleUpload(o);n(l)}return b.jsxs("div",{...r(),className:Tt("flex h-full w-full items-center justify-center rounded-3xl border-2","border-dashed border-gray-200 bg-white/70 p-12 dark:border-gray-700/50 dark:bg-gray-800/40",s&&"scale-[1.002] ring-4 ring-red-600/50 transition-all duration-300 dark:ring-red-500/50"),children:[b.jsxs("div",{className:"text-center",children:[b.jsx(z$,{"aria-hidden":!0,className:"text-muted mx-auto mb-3 h-12 w-12"}),b.jsx("h3",{className:"mb-2 mt-2 text-lg font-semibold",children:j("empty_title")}),b.jsx("p",{className:"text-muted mt-1 text-sm",children:j("empty_desc")}),b.jsx("div",{className:"mt-6 flex justify-center",children:b.jsxs(_t,{onClick:()=>e(!0),size:"lg",children:[b.jsx(Xw,{"aria-hidden":"true",className:"-ml-0.5 mr-1.5 h-5 w-5"}),j("empty_action")]})})]}),b.jsx("input",{...i(),className:"sr-only"}),b.jsx(cj,{open:t,setOpen:e})]})},nm=()=>{const t=LL(),e=H$("error"),n=k.useRef(null),i=()=>{globalThis.location.reload()},r=()=>{var s;e(((s=n.current)==null?void 0:s.value)??"No error message"),i()};return b.jsx("div",{className:"flex h-full w-full items-center justify-center p-12",children:b.jsx("div",{className:"w-full max-w-lg",children:b.jsxs("div",{className:"text-center",children:[b.jsx(Zre,{"aria-hidden":!0,className:"mx-auto h-12 w-12 text-gray-600 dark:text-gray-400"}),b.jsx("h3",{className:"mt-3 text-lg font-semibold",children:j("error_title")}),b.jsx("p",{className:"mt-1 text-sm",children:j("error_desc")}),b.jsx("label",{className:"sr-only",htmlFor:"error-input",children:j("error_input_label")}),b.jsx("textarea",{autoFocus:!0,className:"input mt-6 h-32",defaultValue:t,id:"error-input",ref:n}),b.jsxs("div",{className:"mt-6 flex justify-center gap-2",children:[b.jsx(_t,{className:"flex-1",onClick:i,size:"lg",variant:"secondary",children:j("error_action")}),b.jsx(_t,{className:"flex-1 text-center",onClick:r,size:"lg",children:j("error_primary_action")})]})]})})})};function tle({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v11.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 1 1 1.06-1.06l3.22 3.22V3a.75.75 0 0 1 .75-.75Zm-9 13.5a.75.75 0 0 1 .75.75v2.25a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5V16.5a.75.75 0 0 1 1.5 0v2.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V16.5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"}))}const nle=k.forwardRef(tle);function ile({title:t,titleId:e,...n},i){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":e},n),t?k.createElement("title",{id:e},t):null,k.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 0 1-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 0 1-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 0 1-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584ZM12 18a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"}))}const rle=k.forwardRef(ile),gs=({content:t})=>b.jsx($c,{content:t,children:b.jsx(rle,{className:"text-muted h-4 w-4 cursor-help opacity-0 transition-opacity ease-in group-hover:opacity-100"})}),sle=()=>{const[t,e]=k.useState(!1),n=H$("feedback"),{dispatch:i,state:r}=Ki(),{state:{collections:s}}=Ir();k.useEffect(()=>{const c=new Date(r.installDate).getTime(),f=Date.now(),u=Math.floor((f-c)/(1e3*60*60*24));!r.onboarding.viewedFeatureRequest&&u>=5&&setTimeout(()=>e(!0),5e3)},[s.length,r.onboarding.viewedFeatureRequest,r.installDate]);const a=c=>{c.preventDefault();const f=new FormData(c.target),u=f.get("feedback-email"),h=f.get("feedback-textarea"),m=`Email: ${u}
|
||
Feedback: ${h}`;n(m),l()},o=()=>{const c={...r,onboarding:{...r.onboarding,viewedFeatureRequest:!0}};ye.setStorageData("user",c),i({payload:c,type:"set-user"})},l=()=>{o(),e(!1)};return b.jsx(Ut,{onClose:l,open:t,setOpen:e,children:b.jsxs("form",{onSubmit:a,children:[b.jsxs(Ut.Header,{children:["👋 ",j("feedback_title")]}),b.jsxs(Ut.Main,{children:[b.jsxs("label",{className:"label",htmlFor:"feedback-email",children:[j("feedback_email")," ",b.jsx("span",{className:"text-xs text-gray-500",children:j("feedback_email_optional")})]}),b.jsx("input",{className:"input mb-4",id:"feedback-email",name:"feedback-email",type:"email"}),b.jsx("label",{className:"label",htmlFor:"feedback-textarea",children:j("feedback_feedback")}),b.jsx("textarea",{className:"input h-32",id:"feedback-textarea",name:"feedback-textarea",placeholder:j("feedback_placeholder"),required:!0})]}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{size:"lg",type:"submit",children:j("feedback_primary_action")}),b.jsx(_t,{onClick:l,size:"lg",type:"button",variant:"secondary",children:j("feedback_secondary_action")})]})]})})};function X(){return X=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},X.apply(null,arguments)}function bi(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t==null||t(r),n===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function ale(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function fj(...t){return e=>t.forEach(n=>ale(n,e))}function Aa(...t){return k.useCallback(fj(...t),t)}function tk(t,e=[]){let n=[];function i(s,a){const o=k.createContext(a),l=n.length;n=[...n,a];function c(u){const{scope:h,children:m,...g}=u,v=(h==null?void 0:h[t][l])||o,w=k.useMemo(()=>g,Object.values(g));return k.createElement(v.Provider,{value:w},m)}function f(u,h){const m=(h==null?void 0:h[t][l])||o,g=k.useContext(m);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,f]}const r=()=>{const s=n.map(a=>k.createContext(a));return function(o){const l=(o==null?void 0:o[t])||s;return k.useMemo(()=>({[`__scope${t}`]:{...o,[t]:l}}),[o,l])}};return r.scopeName=t,[i,ole(r,...e)]}function ole(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const i=t.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=i.reduce((o,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...o,...u}},{});return k.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}const $y=k.forwardRef((t,e)=>{const{children:n,...i}=t,r=k.Children.toArray(n),s=r.find(lle);if(s){const a=s.props.children,o=r.map(l=>l===s?k.Children.count(a)>1?k.Children.only(null):k.isValidElement(a)?a.props.children:null:l);return k.createElement(A_,X({},i,{ref:e}),k.isValidElement(a)?k.cloneElement(a,void 0,o):null)}return k.createElement(A_,X({},i,{ref:e}),n)});$y.displayName="Slot";const A_=k.forwardRef((t,e)=>{const{children:n,...i}=t;return k.isValidElement(n)?k.cloneElement(n,{...cle(i,n.props),ref:e?fj(e,n.ref):n.ref}):k.Children.count(n)>1?k.Children.only(null):null});A_.displayName="SlotClone";const uj=({children:t})=>k.createElement(k.Fragment,null,t);function lle(t){return k.isValidElement(t)&&t.type===uj}function cle(t,e){const n={...e};for(const i in e){const r=t[i],s=e[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...o)=>{s(...o),r(...o)}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...t,...n}}function fle(t){const e=t+"CollectionProvider",[n,i]=tk(e),[r,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:g,children:v}=m,w=tt.useRef(null),O=tt.useRef(new Map).current;return tt.createElement(r,{scope:g,itemMap:O,collectionRef:w},v)},o=t+"CollectionSlot",l=tt.forwardRef((m,g)=>{const{scope:v,children:w}=m,O=s(o,v),x=Aa(g,O.collectionRef);return tt.createElement($y,{ref:x},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=tt.forwardRef((m,g)=>{const{scope:v,children:w,...O}=m,x=tt.useRef(null),$=Aa(g,x),T=s(c,v);return tt.useEffect(()=>(T.itemMap.set(x,{ref:x,...O}),()=>void T.itemMap.delete(x))),tt.createElement($y,{[f]:"",ref:$},w)});function h(m){const g=s(t+"CollectionConsumer",m);return tt.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const O=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((T,S)=>O.indexOf(T.ref.current)-O.indexOf(S.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:l,ItemSlot:u},h,i]}const ule=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qr=ule.reduce((t,e)=>{const n=k.forwardRef((i,r)=>{const{asChild:s,...a}=i,o=s?$y:e;return k.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),k.createElement(o,X({},a,{ref:r}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function dj(t,e){t&&ll.flushSync(()=>t.dispatchEvent(e))}function _o(t){const e=k.useRef(t);return k.useEffect(()=>{e.current=t}),k.useMemo(()=>(...n)=>{var i;return(i=e.current)===null||i===void 0?void 0:i.call(e,...n)},[])}function dle(t,e=globalThis==null?void 0:globalThis.document){const n=_o(t);k.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",i),()=>e.removeEventListener("keydown",i)},[n,e])}const E_="dismissableLayer.update",hle="dismissableLayer.pointerDownOutside",ple="dismissableLayer.focusOutside";let wE;const hj=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pj=k.forwardRef((t,e)=>{var n;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:o,onDismiss:l,...c}=t,f=k.useContext(hj),[u,h]=k.useState(null),m=(n=u==null?void 0:u.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=k.useState({}),v=Aa(e,P=>h(P)),w=Array.from(f.layers),[O]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(O),$=u?w.indexOf(u):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,S=$>=x,R=gle(P=>{const A=P.target,N=[...f.branches].some(M=>M.contains(A));!S||N||(s==null||s(P),o==null||o(P),P.defaultPrevented||l==null||l())},m),_=vle(P=>{const A=P.target;[...f.branches].some(M=>M.contains(A))||(a==null||a(P),o==null||o(P),P.defaultPrevented||l==null||l())},m);return dle(P=>{$===f.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},m),k.useEffect(()=>{if(u)return i&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(wE=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),kE(),()=>{i&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=wE)}},[u,m,i,f]),k.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),kE())},[u,f]),k.useEffect(()=>{const P=()=>g({});return document.addEventListener(E_,P),()=>document.removeEventListener(E_,P)},[]),k.createElement(Qr.div,X({},c,{ref:v,style:{pointerEvents:T?S?"auto":"none":void 0,...t.style},onFocusCapture:bi(t.onFocusCapture,_.onFocusCapture),onBlurCapture:bi(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:bi(t.onPointerDownCapture,R.onPointerDownCapture)}))}),mle=k.forwardRef((t,e)=>{const n=k.useContext(hj),i=k.useRef(null),r=Aa(e,i);return k.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),k.createElement(Qr.div,X({},t,{ref:r}))});function gle(t,e=globalThis==null?void 0:globalThis.document){const n=_o(t),i=k.useRef(!1),r=k.useRef(()=>{});return k.useEffect(()=>{const s=o=>{if(o.target&&!i.current){let c=function(){mj(hle,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=c,e.addEventListener("click",r.current,{once:!0})):c()}else e.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",s),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>i.current=!0}}function vle(t,e=globalThis==null?void 0:globalThis.document){const n=_o(t),i=k.useRef(!1);return k.useEffect(()=>{const r=s=>{s.target&&!i.current&&mj(ple,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function kE(){const t=new CustomEvent(E_);document.dispatchEvent(t)}function mj(t,e,n,{discrete:i}){const r=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),i?dj(r,s):r.dispatchEvent(s)}const ble=pj,yle=mle,gj=k.forwardRef((t,e)=>{var n;const{container:i=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=t;return i?_ne.createPortal(k.createElement(Qr.div,X({},r,{ref:e})),i):null}),Rf=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{};function wle(t,e){return k.useReducer((n,i)=>{const r=e[n][i];return r??n},t)}const nk=t=>{const{present:e,children:n}=t,i=kle(e),r=typeof n=="function"?n({present:i.isPresent}):k.Children.only(n),s=Aa(i.ref,r.ref);return typeof n=="function"||i.isPresent?k.cloneElement(r,{ref:s}):null};nk.displayName="Presence";function kle(t){const[e,n]=k.useState(),i=k.useRef({}),r=k.useRef(t),s=k.useRef("none"),a=t?"mounted":"unmounted",[o,l]=wle(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const c=wv(i.current);s.current=o==="mounted"?c:"none"},[o]),Rf(()=>{const c=i.current,f=r.current;if(f!==t){const h=s.current,m=wv(c);t?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=t}},[t,l]),Rf(()=>{if(e){const c=u=>{const m=wv(i.current).includes(u.animationName);u.target===e&&m&&ll.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=wv(i.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:k.useCallback(c=>{c&&(i.current=getComputedStyle(c)),n(c)},[])}}function wv(t){return(t==null?void 0:t.animationName)||"none"}function vj({prop:t,defaultProp:e,onChange:n=()=>{}}){const[i,r]=Ole({defaultProp:e,onChange:n}),s=t!==void 0,a=s?t:i,o=_o(n),l=k.useCallback(c=>{if(s){const u=typeof c=="function"?c(t):c;u!==t&&o(u)}else r(c)},[s,t,r,o]);return[a,l]}function Ole({defaultProp:t,onChange:e}){const n=k.useState(t),[i]=n,r=k.useRef(i),s=_o(e);return k.useEffect(()=>{r.current!==i&&(s(i),r.current=i)},[i,r,s]),n}const r4=k.forwardRef((t,e)=>k.createElement(Qr.span,X({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),xle=r4,bj="ToastProvider",[s4,Sle,_le]=fle("Toast"),[yj]=tk("Toast",[_le]),[Cle,ik]=yj(bj),wj=t=>{const{__scopeToast:e,label:n="Notification",duration:i=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:a}=t,[o,l]=k.useState(null),[c,f]=k.useState(0),u=k.useRef(!1),h=k.useRef(!1);return k.createElement(s4.Provider,{scope:e},k.createElement(Cle,{scope:e,label:n,duration:i,swipeDirection:r,swipeThreshold:s,toastCount:c,viewport:o,onViewportChange:l,onToastAdd:k.useCallback(()=>f(m=>m+1),[]),onToastRemove:k.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:u,isClosePausedRef:h},a))};wj.propTypes={label(t){if(t.label&&typeof t.label=="string"&&!t.label.trim()){const e=`Invalid prop \`label\` supplied to \`${bj}\`. Expected non-empty \`string\`.`;return new Error(e)}return null}};const $le="ToastViewport",Ple=["F8"],R_="toast.viewportPause",D_="toast.viewportResume",Tle=k.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:i=Ple,label:r="Notifications ({hotkey})",...s}=t,a=ik($le,n),o=Sle(n),l=k.useRef(null),c=k.useRef(null),f=k.useRef(null),u=k.useRef(null),h=Aa(e,u,a.onViewportChange),m=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;k.useEffect(()=>{const w=O=>{var x;i.every(T=>O[T]||O.code===T)&&((x=u.current)===null||x===void 0||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[i]),k.useEffect(()=>{const w=l.current,O=u.current;if(g&&w&&O){const x=()=>{if(!a.isClosePausedRef.current){const R=new CustomEvent(R_);O.dispatchEvent(R),a.isClosePausedRef.current=!0}},$=()=>{if(a.isClosePausedRef.current){const R=new CustomEvent(D_);O.dispatchEvent(R),a.isClosePausedRef.current=!1}},T=R=>{!w.contains(R.relatedTarget)&&$()},S=()=>{w.contains(document.activeElement)||$()};return w.addEventListener("focusin",x),w.addEventListener("focusout",T),w.addEventListener("pointermove",x),w.addEventListener("pointerleave",S),window.addEventListener("blur",x),window.addEventListener("focus",$),()=>{w.removeEventListener("focusin",x),w.removeEventListener("focusout",T),w.removeEventListener("pointermove",x),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",x),window.removeEventListener("focus",$)}}},[g,a.isClosePausedRef]);const v=k.useCallback(({tabbingDirection:w})=>{const x=o().map($=>{const T=$.ref.current,S=[T,...Vle(T)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?x.reverse():x).flat()},[o]);return k.useEffect(()=>{const w=u.current;if(w){const O=x=>{const $=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!$){const P=document.activeElement,A=x.shiftKey;if(x.target===w&&A){var S;(S=c.current)===null||S===void 0||S.focus();return}const Q=v({tabbingDirection:A?"backwards":"forwards"}),U=Q.findIndex(z=>z===P);if(r2(Q.slice(U+1)))x.preventDefault();else{var R,_;A?(R=c.current)===null||R===void 0||R.focus():(_=f.current)===null||_===void 0||_.focus()}}};return w.addEventListener("keydown",O),()=>w.removeEventListener("keydown",O)}},[o,v]),k.createElement(yle,{ref:l,role:"region","aria-label":r.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:g?void 0:"none"}},g&&k.createElement(OE,{ref:c,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"forwards"});r2(w)}}),k.createElement(s4.Slot,{scope:n},k.createElement(Qr.ol,X({tabIndex:-1},s,{ref:h}))),g&&k.createElement(OE,{ref:f,onFocusFromOutsideViewport:()=>{const w=v({tabbingDirection:"backwards"});r2(w)}}))}),Ale="ToastFocusProxy",OE=k.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...r}=t,s=ik(Ale,n);return k.createElement(r4,X({"aria-hidden":!0,tabIndex:0},r,{ref:e,style:{position:"fixed"},onFocus:a=>{var o;const l=a.relatedTarget;!((o=s.viewport)!==null&&o!==void 0&&o.contains(l))&&i()}}))}),rk="Toast",Ele="toast.swipeStart",Rle="toast.swipeMove",Dle="toast.swipeCancel",Mle="toast.swipeEnd",Nle=k.forwardRef((t,e)=>{const{forceMount:n,open:i,defaultOpen:r,onOpenChange:s,...a}=t,[o=!0,l]=vj({prop:i,defaultProp:r,onChange:s});return k.createElement(nk,{present:n||o},k.createElement(kj,X({open:o},a,{ref:e,onClose:()=>l(!1),onPause:_o(t.onPause),onResume:_o(t.onResume),onSwipeStart:bi(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:bi(t.onSwipeMove,c=>{const{x:f,y:u}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${u}px`)}),onSwipeCancel:bi(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:bi(t.onSwipeEnd,c=>{const{x:f,y:u}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${u}px`),l(!1)})})))}),[Lle,jle]=yj(rk,{onClose(){}}),kj=k.forwardRef((t,e)=>{const{__scopeToast:n,type:i="foreground",duration:r,open:s,onClose:a,onEscapeKeyDown:o,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:h,onSwipeEnd:m,...g}=t,v=ik(rk,n),[w,O]=k.useState(null),x=Aa(e,z=>O(z)),$=k.useRef(null),T=k.useRef(null),S=r||v.duration,R=k.useRef(0),_=k.useRef(S),P=k.useRef(0),{onToastAdd:A,onToastRemove:N}=v,M=_o(()=>{var z;(w==null?void 0:w.contains(document.activeElement))&&((z=v.viewport)===null||z===void 0||z.focus()),a()}),Q=k.useCallback(z=>{!z||z===1/0||(window.clearTimeout(P.current),R.current=new Date().getTime(),P.current=window.setTimeout(M,z))},[M]);k.useEffect(()=>{const z=v.viewport;if(z){const Y=()=>{Q(_.current),c==null||c()},ae=()=>{const ne=new Date().getTime()-R.current;_.current=_.current-ne,window.clearTimeout(P.current),l==null||l()};return z.addEventListener(R_,ae),z.addEventListener(D_,Y),()=>{z.removeEventListener(R_,ae),z.removeEventListener(D_,Y)}}},[v.viewport,S,l,c,Q]),k.useEffect(()=>{s&&!v.isClosePausedRef.current&&Q(S)},[s,S,v.isClosePausedRef,Q]),k.useEffect(()=>(A(),()=>N()),[A,N]);const U=k.useMemo(()=>w?Sj(w):null,[w]);return v.viewport?k.createElement(k.Fragment,null,U&&k.createElement(Ile,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0},U),k.createElement(Lle,{scope:n,onClose:M},ll.createPortal(k.createElement(s4.ItemSlot,{scope:n},k.createElement(ble,{asChild:!0,onEscapeKeyDown:bi(o,()=>{v.isFocusedToastEscapeKeyDownRef.current||M(),v.isFocusedToastEscapeKeyDownRef.current=!1})},k.createElement(Qr.li,X({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection},g,{ref:x,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:bi(t.onKeyDown,z=>{z.key==="Escape"&&(o==null||o(z.nativeEvent),z.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:bi(t.onPointerDown,z=>{z.button===0&&($.current={x:z.clientX,y:z.clientY})}),onPointerMove:bi(t.onPointerMove,z=>{if(!$.current)return;const Y=z.clientX-$.current.x,ae=z.clientY-$.current.y,ne=!!T.current,he=["left","right"].includes(v.swipeDirection),ve=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,je=he?ve(0,Y):0,we=he?0:ve(0,ae),ge=z.pointerType==="touch"?10:2,B={x:je,y:we},D={originalEvent:z,delta:B};ne?(T.current=B,kv(Rle,u,D,{discrete:!1})):xE(B,v.swipeDirection,ge)?(T.current=B,kv(Ele,f,D,{discrete:!1}),z.target.setPointerCapture(z.pointerId)):(Math.abs(Y)>ge||Math.abs(ae)>ge)&&($.current=null)}),onPointerUp:bi(t.onPointerUp,z=>{const Y=T.current,ae=z.target;if(ae.hasPointerCapture(z.pointerId)&&ae.releasePointerCapture(z.pointerId),T.current=null,$.current=null,Y){const ne=z.currentTarget,he={originalEvent:z,delta:Y};xE(Y,v.swipeDirection,v.swipeThreshold)?kv(Mle,m,he,{discrete:!0}):kv(Dle,h,he,{discrete:!0}),ne.addEventListener("click",ve=>ve.preventDefault(),{once:!0})}})})))),v.viewport))):null});kj.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${rk}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const Ile=t=>{const{__scopeToast:e,children:n,...i}=t,r=ik(rk,e),[s,a]=k.useState(!1),[o,l]=k.useState(!1);return Wle(()=>a(!0)),k.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),o?null:k.createElement(gj,{asChild:!0},k.createElement(r4,i,s&&k.createElement(k.Fragment,null,r.label," ",n)))},Ble=k.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t;return k.createElement(Qr.div,X({},i,{ref:e}))}),Fle=k.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t;return k.createElement(Qr.div,X({},i,{ref:e}))}),Qle="ToastAction",Oj=k.forwardRef((t,e)=>{const{altText:n,...i}=t;return n?k.createElement(xj,{altText:n,asChild:!0},k.createElement(qle,X({},i,{ref:e}))):null});Oj.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${Qle}\``)}};const zle="ToastClose",qle=k.forwardRef((t,e)=>{const{__scopeToast:n,...i}=t,r=jle(zle,n);return k.createElement(xj,{asChild:!0},k.createElement(Qr.button,X({type:"button"},i,{ref:e,onClick:bi(t.onClick,r.onClose)})))}),xj=k.forwardRef((t,e)=>{const{__scopeToast:n,altText:i,...r}=t;return k.createElement(Qr.div,X({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0},r,{ref:e}))});function Sj(t){const e=[];return Array.from(t.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&e.push(i.textContent),Ule(i)){const r=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const a=i.dataset.radixToastAnnounceAlt;a&&e.push(a)}else e.push(...Sj(i))}}),e}function kv(t,e,n,{discrete:i}){const r=n.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),i?dj(r,s):r.dispatchEvent(s)}const xE=(t,e,n=0)=>{const i=Math.abs(t.x),r=Math.abs(t.y),s=i>r;return e==="left"||e==="right"?s&&i>n:!s&&r>n};function Wle(t=()=>{}){const e=_o(t);Rf(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[e])}function Ule(t){return t.nodeType===t.ELEMENT_NODE}function Vle(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function r2(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}const _j=wj,Cj=Tle,Hle=Nle,Zle=Ble,Gle=Fle,SE=Oj,$j=({actionText:t,description:e,onAction:n,onSecondaryAction:i,open:r,secondaryActionText:s,title:a})=>b.jsx(Hle,{className:Tt("bottom-6 right-6 w-auto md:left-auto md:w-full md:max-w-sm","fixed inset-x-4 rounded-lg bg-white shadow-lg dark:bg-gray-800","radix-state-open:animate-toast-slide-in-bottom md:radix-state-open:animate-toast-slide-in-right","radix-state-closed:animate-toast-hide","radix-swipe-direction-right:radix-swipe-end:animate-toast-swipe-out-x","radix-swipe-direction-right:translate-x-radix-toast-swipe-move-x","radix-swipe-direction-down:radix-swipe-end:animate-toast-swipe-out-y","radix-swipe-direction-down:translate-y-radix-toast-swipe-move-y","radix-swipe-cancel:translate-x-0 radix-swipe-cancel:duration-200 radix-swipe-cancel:ease-[ease]","focus:outline-none focus-visible:ring focus-visible:ring-red-500"),open:r,children:b.jsxs("div",{className:"flex",children:[b.jsx("div",{className:"flex w-0 flex-1 items-center py-4 pl-5",children:b.jsxs("div",{className:"radix w-full",children:[b.jsx(Zle,{className:"text-sm font-medium text-gray-900 dark:text-gray-100",children:a}),b.jsx(Gle,{className:"mt-1 text-sm text-gray-700 dark:text-gray-400",children:e})]})}),b.jsx("div",{className:"flex",children:b.jsxs("div",{className:"flex flex-col space-y-1 px-3 py-2",children:[t&&n&&b.jsx("div",{className:"flex h-0 flex-1",children:b.jsx(SE,{altText:t,className:"flex w-full items-center justify-center rounded-lg border border-transparent bg-red-50 px-3 py-2 text-sm font-medium text-red-600 hover:bg-gray-100 focus:z-10 focus:outline-none focus-visible:ring focus-visible:ring-opacity-75 dark:text-red-500 dark:hover:bg-gray-900",onClick:n,children:t})}),s&&i&&b.jsx("div",{className:"flex h-0 flex-1",children:b.jsx(SE,{altText:s,className:"flex w-full items-center justify-center rounded-lg border border-transparent px-3 py-2 text-sm font-medium hover:bg-gray-50 focus:z-10 focus:outline-none focus-visible:ring dark:hover:bg-gray-900",onClick:i,children:s})})]})})]})}),Xle=()=>{const[t,e]=k.useState(!1),{dispatch:n,state:i}=Ki(),{state:{collections:r}}=Ir();k.useEffect(()=>{r.length>=3&&!i.onboarding.viewedReview&&e(!0)},[r.length,i.onboarding.viewedReview]);const s=()=>{const o={...i,onboarding:{...i.onboarding,viewedReview:!0}};ye.setStorageData("user",o),n({payload:o,type:"set-user"}),e(!1)},a=()=>{s();const o=yL.isFirefox?Ad.firefoxWebstore:Ad.chromeWebstore;window.open(o,"_blank")};return b.jsx($j,{actionText:j("review_primary_action"),description:j("review_desc"),onAction:a,onSecondaryAction:s,open:t,secondaryActionText:j("review_secondary_action"),title:`${j("review_title")} 👋`})},Yle=t=>b.jsx(v1.Group,{...t}),Kle=t=>{const{className:e,...n}=t;return b.jsx(v1.List,{className:Tt(e,"border-b border-gray-200 dark:border-gray-700"),...n})},Jle=t=>b.jsx(v1.Panels,{...t}),ece=t=>b.jsx(v1.Panel,{...t}),tce=t=>b.jsx(v1,{...t,className:Tt("ui-selected:border-red-500 ui-selected:font-medium ui-selected:text-red-500","border-transparent text-gray-600 hover:border-gray-200 ui-not-selected:dark:text-gray-400","whitespace-nowrap border-b-2 px-4 py-2.5 text-sm dark:hover:border-gray-600")}),Fn={Group:Yle,List:Kle,Panel:ece,Panels:Jle,Tab:tce},nce=rL.useId||(()=>{});let ice=0;function rce(t){const[e,n]=k.useState(nce());return Rf(()=>{n(i=>i??String(ice++))},[t]),e?`radix-${e}`:""}const sce=["top","right","bottom","left"],vo=Math.min,ls=Math.max,Py=Math.round,Ov=Math.floor,_c=t=>({x:t,y:t}),ace={left:"right",right:"left",bottom:"top",top:"bottom"},oce={start:"end",end:"start"};function M_(t,e,n){return ls(t,vo(e,n))}function ml(t,e){return typeof t=="function"?t(e):t}function gl(t){return t.split("-")[0]}function fh(t){return t.split("-")[1]}function a4(t){return t==="x"?"y":"x"}function o4(t){return t==="y"?"height":"width"}function uh(t){return["top","bottom"].includes(gl(t))?"y":"x"}function l4(t){return a4(uh(t))}function lce(t,e,n){n===void 0&&(n=!1);const i=fh(t),r=l4(t),s=o4(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Ty(a)),[a,Ty(a)]}function cce(t){const e=Ty(t);return[N_(t),e,N_(e)]}function N_(t){return t.replace(/start|end/g,e=>oce[e])}function fce(t,e,n){const i=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?s:a;default:return[]}}function uce(t,e,n,i){const r=fh(t);let s=fce(gl(t),n==="start",i);return r&&(s=s.map(a=>a+"-"+r),e&&(s=s.concat(s.map(N_)))),s}function Ty(t){return t.replace(/left|right|bottom|top/g,e=>ace[e])}function dce(t){return{top:0,right:0,bottom:0,left:0,...t}}function Pj(t){return typeof t!="number"?dce(t):{top:t,right:t,bottom:t,left:t}}function Ay(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function _E(t,e,n){let{reference:i,floating:r}=t;const s=uh(e),a=l4(e),o=o4(a),l=gl(e),c=s==="y",f=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,h=i[o]/2-r[o]/2;let m;switch(l){case"top":m={x:f,y:i.y-r.height};break;case"bottom":m={x:f,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:u};break;case"left":m={x:i.x-r.width,y:u};break;default:m={x:i.x,y:i.y}}switch(fh(e)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}const hce=async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=_E(c,i,l),h=i,m={},g=0;for(let v=0;v<o.length;v++){const{name:w,fn:O}=o[v],{x,y:$,data:T,reset:S}=await O({x:f,y:u,initialPlacement:i,placement:h,strategy:r,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});f=x??f,u=$??u,m={...m,[w]:{...m[w],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:r}):S.rects),{x:f,y:u}=_E(c,h,l)),v=-1)}return{x:f,y:u,placement:h,strategy:r,middlewareData:m}};async function Rg(t,e){var n;e===void 0&&(e={});const{x:i,y:r,platform:s,rects:a,elements:o,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=ml(e,t),g=Pj(m),w=o[h?u==="floating"?"reference":"floating":u],O=Ay(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:c,rootBoundary:f,strategy:l})),x=u==="floating"?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),T=await(s.isElement==null?void 0:s.isElement($))?await(s.getScale==null?void 0:s.getScale($))||{x:1,y:1}:{x:1,y:1},S=Ay(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:x,offsetParent:$,strategy:l}):x);return{top:(O.top-S.top+g.top)/T.y,bottom:(S.bottom-O.bottom+g.bottom)/T.y,left:(O.left-S.left+g.left)/T.x,right:(S.right-O.right+g.right)/T.x}}const pce=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:s,platform:a,elements:o,middlewareData:l}=e,{element:c,padding:f=0}=ml(t,e)||{};if(c==null)return{};const u=Pj(f),h={x:n,y:i},m=l4(r),g=o4(m),v=await a.getDimensions(c),w=m==="y",O=w?"top":"left",x=w?"bottom":"right",$=w?"clientHeight":"clientWidth",T=s.reference[g]+s.reference[m]-h[m]-s.floating[g],S=h[m]-s.reference[m],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let _=R?R[$]:0;(!_||!await(a.isElement==null?void 0:a.isElement(R)))&&(_=o.floating[$]||s.floating[g]);const P=T/2-S/2,A=_/2-v[g]/2-1,N=vo(u[O],A),M=vo(u[x],A),Q=N,U=_-v[g]-M,z=_/2-v[g]/2+P,Y=M_(Q,z,U),ae=!l.arrow&&fh(r)!=null&&z!==Y&&s.reference[g]/2-(z<Q?N:M)-v[g]/2<0,ne=ae?z<Q?z-Q:z-U:0;return{[m]:h[m]+ne,data:{[m]:Y,centerOffset:z-Y-ne,...ae&&{alignmentOffset:ne}},reset:ae}}}),mce=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=ml(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const O=gl(r),x=gl(o)===o,$=await(l.isRTL==null?void 0:l.isRTL(c.floating)),T=h||(x||!v?[Ty(o)]:cce(o));!h&&g!=="none"&&T.push(...uce(o,v,g,$));const S=[o,...T],R=await Rg(e,w),_=[];let P=((i=s.flip)==null?void 0:i.overflows)||[];if(f&&_.push(R[O]),u){const Q=lce(r,a,$);_.push(R[Q[0]],R[Q[1]])}if(P=[...P,{placement:r,overflows:_}],!_.every(Q=>Q<=0)){var A,N;const Q=(((A=s.flip)==null?void 0:A.index)||0)+1,U=S[Q];if(U)return{data:{index:Q,overflows:P},reset:{placement:U}};let z=(N=P.filter(Y=>Y.overflows[0]<=0).sort((Y,ae)=>Y.overflows[1]-ae.overflows[1])[0])==null?void 0:N.placement;if(!z)switch(m){case"bestFit":{var M;const Y=(M=P.map(ae=>[ae.placement,ae.overflows.filter(ne=>ne>0).reduce((ne,he)=>ne+he,0)]).sort((ae,ne)=>ae[1]-ne[1])[0])==null?void 0:M[0];Y&&(z=Y);break}case"initialPlacement":z=o;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function CE(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function $E(t){return sce.some(e=>t[e]>=0)}const gce=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...r}=ml(t,e);switch(i){case"referenceHidden":{const s=await Rg(e,{...r,elementContext:"reference"}),a=CE(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:$E(a)}}}case"escaped":{const s=await Rg(e,{...r,altBoundary:!0}),a=CE(s,n.floating);return{data:{escapedOffsets:a,escaped:$E(a)}}}default:return{}}}}};async function vce(t,e){const{placement:n,platform:i,elements:r}=t,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=gl(n),o=fh(n),l=uh(n)==="y",c=["left","top"].includes(a)?-1:1,f=s&&l?-1:1,u=ml(e,t);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return o&&typeof g=="number"&&(m=o==="end"?g*-1:g),l?{x:m*f,y:h*c}:{x:h*c,y:m*f}}const bce=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:a,middlewareData:o}=e,l=await vce(e,t);return a===((n=o.offset)==null?void 0:n.placement)&&(i=o.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:a}}}}},yce=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:w=>{let{x:O,y:x}=w;return{x:O,y:x}}},...l}=ml(t,e),c={x:n,y:i},f=await Rg(e,l),u=uh(gl(r)),h=a4(u);let m=c[h],g=c[u];if(s){const w=h==="y"?"top":"left",O=h==="y"?"bottom":"right",x=m+f[w],$=m-f[O];m=M_(x,m,$)}if(a){const w=u==="y"?"top":"left",O=u==="y"?"bottom":"right",x=g+f[w],$=g-f[O];g=M_(x,g,$)}const v=o.fn({...e,[h]:m,[u]:g});return{...v,data:{x:v.x-n,y:v.y-i}}}}},wce=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:r,rects:s,middlewareData:a}=e,{offset:o=0,mainAxis:l=!0,crossAxis:c=!0}=ml(t,e),f={x:n,y:i},u=uh(r),h=a4(u);let m=f[h],g=f[u];const v=ml(o,e),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const $=h==="y"?"height":"width",T=s.reference[h]-s.floating[$]+w.mainAxis,S=s.reference[h]+s.reference[$]-w.mainAxis;m<T?m=T:m>S&&(m=S)}if(c){var O,x;const $=h==="y"?"width":"height",T=["top","left"].includes(gl(r)),S=s.reference[u]-s.floating[$]+(T&&((O=a.offset)==null?void 0:O[u])||0)+(T?0:w.crossAxis),R=s.reference[u]+s.reference[$]+(T?0:((x=a.offset)==null?void 0:x[u])||0)-(T?w.crossAxis:0);g<S?g=S:g>R&&(g=R)}return{[h]:m,[u]:g}}}},kce=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:r,elements:s}=e,{apply:a=()=>{},...o}=ml(t,e),l=await Rg(e,o),c=gl(n),f=fh(n),u=uh(n)==="y",{width:h,height:m}=i.floating;let g,v;c==="top"||c==="bottom"?(g=c,v=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(v=c,g=f==="end"?"top":"bottom");const w=m-l.top-l.bottom,O=h-l.left-l.right,x=vo(m-l[g],w),$=vo(h-l[v],O),T=!e.middlewareData.shift;let S=x,R=$;if(u?R=f||T?vo($,O):O:S=f||T?vo(x,w):w,T&&!f){const P=ls(l.left,0),A=ls(l.right,0),N=ls(l.top,0),M=ls(l.bottom,0);u?R=h-2*(P!==0||A!==0?P+A:ls(l.left,l.right)):S=m-2*(N!==0||M!==0?N+M:ls(l.top,l.bottom))}await a({...e,availableWidth:R,availableHeight:S});const _=await r.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function dh(t){return Tj(t)?(t.nodeName||"").toLowerCase():"#document"}function vs(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $l(t){var e;return(e=(Tj(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Tj(t){return t instanceof Node||t instanceof vs(t).Node}function Co(t){return t instanceof Element||t instanceof vs(t).Element}function $o(t){return t instanceof HTMLElement||t instanceof vs(t).HTMLElement}function PE(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof vs(t).ShadowRoot}function b1(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=Ea(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function Oce(t){return["table","td","th"].includes(dh(t))}function c4(t){const e=f4(),n=Ea(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function xce(t){let e=Cc(t);for(;$o(e)&&!Dd(e);){if(c4(e))return e;e=Cc(e)}return null}function f4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Dd(t){return["html","body","#document"].includes(dh(t))}function Ea(t){return vs(t).getComputedStyle(t)}function sk(t){return Co(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Cc(t){if(dh(t)==="html")return t;const e=t.assignedSlot||t.parentNode||PE(t)&&t.host||$l(t);return PE(e)?e.host:e}function Aj(t){const e=Cc(t);return Dd(e)?t.ownerDocument?t.ownerDocument.body:t.body:$o(e)&&b1(e)?e:Aj(e)}function Dg(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Aj(t),s=r===((i=t.ownerDocument)==null?void 0:i.body),a=vs(r);return s?e.concat(a,a.visualViewport||[],b1(r)?r:[],a.frameElement&&n?Dg(a.frameElement):[]):e.concat(r,Dg(r,[],n))}function Ej(t){const e=Ea(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=$o(t),s=r?t.offsetWidth:n,a=r?t.offsetHeight:i,o=Py(n)!==s||Py(i)!==a;return o&&(n=s,i=a),{width:n,height:i,$:o}}function u4(t){return Co(t)?t:t.contextElement}function gd(t){const e=u4(t);if(!$o(e))return _c(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:s}=Ej(e);let a=(s?Py(n.width):n.width)/i,o=(s?Py(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const Sce=_c(0);function Rj(t){const e=vs(t);return!f4()||!e.visualViewport?Sce:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _ce(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==vs(t)?!1:e}function Df(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=u4(t);let a=_c(1);e&&(i?Co(i)&&(a=gd(i)):a=gd(t));const o=_ce(s,n,i)?Rj(s):_c(0);let l=(r.left+o.x)/a.x,c=(r.top+o.y)/a.y,f=r.width/a.x,u=r.height/a.y;if(s){const h=vs(s),m=i&&Co(i)?vs(i):i;let g=h,v=g.frameElement;for(;v&&i&&m!==g;){const w=gd(v),O=v.getBoundingClientRect(),x=Ea(v),$=O.left+(v.clientLeft+parseFloat(x.paddingLeft))*w.x,T=O.top+(v.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,c*=w.y,f*=w.x,u*=w.y,l+=$,c+=T,g=vs(v),v=g.frameElement}}return Ay({width:f,height:u,x:l,y:c})}const Cce=[":popover-open",":modal"];function d4(t){return Cce.some(e=>{try{return t.matches(e)}catch{return!1}})}function $ce(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const s=r==="fixed",a=$l(i),o=e?d4(e.floating):!1;if(i===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},c=_c(1);const f=_c(0),u=$o(i);if((u||!u&&!s)&&((dh(i)!=="body"||b1(a))&&(l=sk(i)),$o(i))){const h=Df(i);c=gd(i),f.x=h.x+i.clientLeft,f.y=h.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x,y:n.y*c.y-l.scrollTop*c.y+f.y}}function Pce(t){return Array.from(t.getClientRects())}function Dj(t){return Df($l(t)).left+sk(t).scrollLeft}function Tce(t){const e=$l(t),n=sk(t),i=t.ownerDocument.body,r=ls(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=ls(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Dj(t);const o=-n.scrollTop;return Ea(i).direction==="rtl"&&(a+=ls(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:a,y:o}}function Ace(t,e){const n=vs(t),i=$l(t),r=n.visualViewport;let s=i.clientWidth,a=i.clientHeight,o=0,l=0;if(r){s=r.width,a=r.height;const c=f4();(!c||c&&e==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:o,y:l}}function Ece(t,e){const n=Df(t,!0,e==="fixed"),i=n.top+t.clientTop,r=n.left+t.clientLeft,s=$o(t)?gd(t):_c(1),a=t.clientWidth*s.x,o=t.clientHeight*s.y,l=r*s.x,c=i*s.y;return{width:a,height:o,x:l,y:c}}function TE(t,e,n){let i;if(e==="viewport")i=Ace(t,n);else if(e==="document")i=Tce($l(t));else if(Co(e))i=Ece(e,n);else{const r=Rj(t);i={...e,x:e.x-r.x,y:e.y-r.y}}return Ay(i)}function Mj(t,e){const n=Cc(t);return n===e||!Co(n)||Dd(n)?!1:Ea(n).position==="fixed"||Mj(n,e)}function Rce(t,e){const n=e.get(t);if(n)return n;let i=Dg(t,[],!1).filter(o=>Co(o)&&dh(o)!=="body"),r=null;const s=Ea(t).position==="fixed";let a=s?Cc(t):t;for(;Co(a)&&!Dd(a);){const o=Ea(a),l=c4(a);!l&&o.position==="fixed"&&(r=null),(s?!l&&!r:!l&&o.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||b1(a)&&!l&&Mj(t,a))?i=i.filter(f=>f!==a):r=o,a=Cc(a)}return e.set(t,i),i}function Dce(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const a=[...n==="clippingAncestors"?d4(e)?[]:Rce(e,this._c):[].concat(n),i],o=a[0],l=a.reduce((c,f)=>{const u=TE(e,f,r);return c.top=ls(u.top,c.top),c.right=vo(u.right,c.right),c.bottom=vo(u.bottom,c.bottom),c.left=ls(u.left,c.left),c},TE(e,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Mce(t){const{width:e,height:n}=Ej(t);return{width:e,height:n}}function Nce(t,e,n){const i=$o(e),r=$l(e),s=n==="fixed",a=Df(t,!0,s,e);let o={scrollLeft:0,scrollTop:0};const l=_c(0);if(i||!i&&!s)if((dh(e)!=="body"||b1(r))&&(o=sk(e)),i){const u=Df(e,!0,s,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else r&&(l.x=Dj(r));const c=a.left+o.scrollLeft-l.x,f=a.top+o.scrollTop-l.y;return{x:c,y:f,width:a.width,height:a.height}}function s2(t){return Ea(t).position==="static"}function AE(t,e){return!$o(t)||Ea(t).position==="fixed"?null:e?e(t):t.offsetParent}function Nj(t,e){const n=vs(t);if(d4(t))return n;if(!$o(t)){let r=Cc(t);for(;r&&!Dd(r);){if(Co(r)&&!s2(r))return r;r=Cc(r)}return n}let i=AE(t,e);for(;i&&Oce(i)&&s2(i);)i=AE(i,e);return i&&Dd(i)&&s2(i)&&!c4(i)?n:i||xce(t)||n}const Lce=async function(t){const e=this.getOffsetParent||Nj,n=this.getDimensions,i=await n(t.floating);return{reference:Nce(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jce(t){return Ea(t).direction==="rtl"}const Ice={convertOffsetParentRelativeRectToViewportRelativeRect:$ce,getDocumentElement:$l,getClippingRect:Dce,getOffsetParent:Nj,getElementRects:Lce,getClientRects:Pce,getDimensions:Mce,getScale:gd,isElement:Co,isRTL:jce};function Bce(t,e){let n=null,i;const r=$l(t);function s(){var o;clearTimeout(i),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const{left:c,top:f,width:u,height:h}=t.getBoundingClientRect();if(o||e(),!u||!h)return;const m=Ov(f),g=Ov(r.clientWidth-(c+u)),v=Ov(r.clientHeight-(f+h)),w=Ov(c),x={rootMargin:-m+"px "+-g+"px "+-v+"px "+-w+"px",threshold:ls(0,vo(1,l))||1};let $=!0;function T(S){const R=S[0].intersectionRatio;if(R!==l){if(!$)return a();R?a(!1,R):i=setTimeout(()=>{a(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(T,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(t)}return a(!0),s}function Fce(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,c=u4(t),f=r||s?[...c?Dg(c):[],...Dg(e)]:[];f.forEach(O=>{r&&O.addEventListener("scroll",n,{passive:!0}),s&&O.addEventListener("resize",n)});const u=c&&o?Bce(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(O=>{let[x]=O;x&&x.target===c&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var $;($=m)==null||$.observe(e)})),n()}),c&&!l&&m.observe(c),m.observe(e));let g,v=l?Df(t):null;l&&w();function w(){const O=Df(t);v&&(O.x!==v.x||O.y!==v.y||O.width!==v.width||O.height!==v.height)&&n(),v=O,g=requestAnimationFrame(w)}return n(),()=>{var O;f.forEach(x=>{r&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),u==null||u(),(O=m)==null||O.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const Qce=bce,zce=yce,qce=mce,Wce=kce,Uce=gce,EE=pce,Vce=wce,Hce=(t,e,n)=>{const i=new Map,r={platform:Ice,...n},s={...r.platform,_c:i};return hce(t,e,{...r,platform:s})};var Nb=typeof document<"u"?k.useLayoutEffect:k.useEffect;function Ey(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;i--!==0;)if(!Ey(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=n;i--!==0;){const s=r[i];if(!(s==="_owner"&&t.$$typeof)&&!Ey(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Lj(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function RE(t,e){const n=Lj(t);return Math.round(e*n)/n}function DE(t){const e=k.useRef(t);return Nb(()=>{e.current=t}),e}function Zce(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:c}=t,[f,u]=k.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,m]=k.useState(i);Ey(h,i)||m(i);const[g,v]=k.useState(null),[w,O]=k.useState(null),x=k.useCallback(ne=>{ne!==R.current&&(R.current=ne,v(ne))},[]),$=k.useCallback(ne=>{ne!==_.current&&(_.current=ne,O(ne))},[]),T=s||g,S=a||w,R=k.useRef(null),_=k.useRef(null),P=k.useRef(f),A=l!=null,N=DE(l),M=DE(r),Q=k.useCallback(()=>{if(!R.current||!_.current)return;const ne={placement:e,strategy:n,middleware:h};M.current&&(ne.platform=M.current),Hce(R.current,_.current,ne).then(he=>{const ve={...he,isPositioned:!0};U.current&&!Ey(P.current,ve)&&(P.current=ve,ll.flushSync(()=>{u(ve)}))})},[h,e,n,M]);Nb(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,u(ne=>({...ne,isPositioned:!1})))},[c]);const U=k.useRef(!1);Nb(()=>(U.current=!0,()=>{U.current=!1}),[]),Nb(()=>{if(T&&(R.current=T),S&&(_.current=S),T&&S){if(N.current)return N.current(T,S,Q);Q()}},[T,S,Q,N,A]);const z=k.useMemo(()=>({reference:R,floating:_,setReference:x,setFloating:$}),[x,$]),Y=k.useMemo(()=>({reference:T,floating:S}),[T,S]),ae=k.useMemo(()=>{const ne={position:n,left:0,top:0};if(!Y.floating)return ne;const he=RE(Y.floating,f.x),ve=RE(Y.floating,f.y);return o?{...ne,transform:"translate("+he+"px, "+ve+"px)",...Lj(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:he,top:ve}},[n,o,Y.floating,f.x,f.y]);return k.useMemo(()=>({...f,update:Q,refs:z,elements:Y,floatingStyles:ae}),[f,Q,z,Y,ae])}const Gce=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:i,padding:r}=typeof t=="function"?t(n):t;return i&&e(i)?i.current!=null?EE({element:i.current,padding:r}).fn(n):{}:i?EE({element:i,padding:r}).fn(n):{}}}},Xce=(t,e)=>({...Qce(t),options:[t,e]}),Yce=(t,e)=>({...zce(t),options:[t,e]}),Kce=(t,e)=>({...Vce(t),options:[t,e]}),Jce=(t,e)=>({...qce(t),options:[t,e]}),efe=(t,e)=>({...Wce(t),options:[t,e]}),tfe=(t,e)=>({...Uce(t),options:[t,e]}),nfe=(t,e)=>({...Gce(t),options:[t,e]}),ife=k.forwardRef((t,e)=>{const{children:n,width:i=10,height:r=5,...s}=t;return k.createElement(Qr.svg,X({},s,{ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:k.createElement("polygon",{points:"0,0 30,0 15,10"}))}),rfe=ife;function sfe(t){const[e,n]=k.useState(void 0);return Rf(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,o;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,o=c.blockSize}else a=t.offsetWidth,o=t.offsetHeight;n({width:a,height:o})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else n(void 0)},[t]),e}const jj="Popper",[Ij,Bj]=tk(jj),[afe,Fj]=Ij(jj),ofe=t=>{const{__scopePopper:e,children:n}=t,[i,r]=k.useState(null);return k.createElement(afe,{scope:e,anchor:i,onAnchorChange:r},n)},lfe="PopperAnchor",cfe=k.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:i,...r}=t,s=Fj(lfe,n),a=k.useRef(null),o=Aa(e,a);return k.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||a.current)}),i?null:k.createElement(Qr.div,X({},r,{ref:o}))}),Qj="PopperContent",[ffe,ufe]=Ij(Qj),dfe=k.forwardRef((t,e)=>{var n,i,r,s,a,o,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:h=0,align:m="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:w=!0,collisionBoundary:O=[],collisionPadding:x=0,sticky:$="partial",hideWhenDetached:T=!1,updatePositionStrategy:S="optimized",onPlaced:R,..._}=t,P=Fj(Qj,f),[A,N]=k.useState(null),M=Aa(e,wn=>N(wn)),[Q,U]=k.useState(null),z=sfe(Q),Y=(n=z==null?void 0:z.width)!==null&&n!==void 0?n:0,ae=(i=z==null?void 0:z.height)!==null&&i!==void 0?i:0,ne=u+(m!=="center"?"-"+m:""),he=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ve=Array.isArray(O)?O:[O],je=ve.length>0,we={padding:he,boundary:ve.filter(gfe),altBoundary:je},{refs:ge,floatingStyles:B,placement:D,isPositioned:te,middlewareData:q}=Zce({strategy:"fixed",placement:ne,whileElementsMounted:(...wn)=>Fce(...wn,{animationFrame:S==="always"}),elements:{reference:P.anchor},middleware:[Xce({mainAxis:h+ae,alignmentAxis:g}),w&&Yce({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Kce():void 0,...we}),w&&Jce({...we}),efe({...we,apply:({elements:wn,rects:kn,availableWidth:an,availableHeight:qi})=>{const{width:vr,height:jn}=kn.reference,On=wn.floating.style;On.setProperty("--radix-popper-available-width",`${an}px`),On.setProperty("--radix-popper-available-height",`${qi}px`),On.setProperty("--radix-popper-anchor-width",`${vr}px`),On.setProperty("--radix-popper-anchor-height",`${jn}px`)}}),Q&&nfe({element:Q,padding:v}),vfe({arrowWidth:Y,arrowHeight:ae}),T&&tfe({strategy:"referenceHidden",...we})]}),[lt,yt]=zj(D),mt=_o(R);Rf(()=>{te&&(mt==null||mt())},[te,mt]);const Ke=(r=q.arrow)===null||r===void 0?void 0:r.x,Gt=(s=q.arrow)===null||s===void 0?void 0:s.y,dt=((a=q.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[dn,Ot]=k.useState();return Rf(()=>{A&&Ot(window.getComputedStyle(A).zIndex)},[A]),k.createElement("div",{ref:ge.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:te?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:dn,"--radix-popper-transform-origin":[(o=q.transformOrigin)===null||o===void 0?void 0:o.x,(l=q.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},k.createElement(ffe,{scope:f,placedSide:lt,onArrowChange:U,arrowX:Ke,arrowY:Gt,shouldHideArrow:dt},k.createElement(Qr.div,X({"data-side":lt,"data-align":yt},_,{ref:M,style:{..._.style,animation:te?void 0:"none",opacity:(c=q.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))}),hfe="PopperArrow",pfe={top:"bottom",right:"left",bottom:"top",left:"right"},mfe=k.forwardRef(function(e,n){const{__scopePopper:i,...r}=e,s=ufe(hfe,i),a=pfe[s.placedSide];return k.createElement("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}},k.createElement(rfe,X({},r,{ref:n,style:{...r.style,display:"block"}})))});function gfe(t){return t!==null}const vfe=t=>({name:"transformOrigin",options:t,fn(e){var n,i,r,s,a;const{placement:o,rects:l,middlewareData:c}=e,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,h=u?0:t.arrowWidth,m=u?0:t.arrowHeight,[g,v]=zj(o),w={start:"0%",center:"50%",end:"100%"}[v],O=((i=(r=c.arrow)===null||r===void 0?void 0:r.x)!==null&&i!==void 0?i:0)+h/2,x=((s=(a=c.arrow)===null||a===void 0?void 0:a.y)!==null&&s!==void 0?s:0)+m/2;let $="",T="";return g==="bottom"?($=u?w:`${O}px`,T=`${-m}px`):g==="top"?($=u?w:`${O}px`,T=`${l.floating.height+m}px`):g==="right"?($=`${-m}px`,T=u?w:`${x}px`):g==="left"&&($=`${l.floating.width+m}px`,T=u?w:`${x}px`),{data:{x:$,y:T}}}});function zj(t){const[e,n="center"]=t.split("-");return[e,n]}const bfe=ofe,yfe=cfe,wfe=dfe,kfe=mfe,[ak]=tk("Tooltip",[Bj]),ok=Bj(),Ofe="TooltipProvider",xfe=700,L_="tooltip.open",[Sfe,h4]=ak(Ofe),_fe=t=>{const{__scopeTooltip:e,delayDuration:n=xfe,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:s}=t,[a,o]=k.useState(!0),l=k.useRef(!1),c=k.useRef(0);return k.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),k.createElement(Sfe,{scope:e,isOpenDelayed:a,delayDuration:n,onOpen:k.useCallback(()=>{window.clearTimeout(c.current),o(!1)},[]),onClose:k.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o(!0),i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:k.useCallback(f=>{l.current=f},[]),disableHoverableContent:r},s)},p4="Tooltip",[Cfe,y1]=ak(p4),$fe=t=>{const{__scopeTooltip:e,children:n,open:i,defaultOpen:r=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:o}=t,l=h4(p4,t.__scopeTooltip),c=ok(e),[f,u]=k.useState(null),h=rce(),m=k.useRef(0),g=a??l.disableHoverableContent,v=o??l.delayDuration,w=k.useRef(!1),[O=!1,x]=vj({prop:i,defaultProp:r,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(L_))):l.onClose(),s==null||s(_)}}),$=k.useMemo(()=>O?w.current?"delayed-open":"instant-open":"closed",[O]),T=k.useCallback(()=>{window.clearTimeout(m.current),w.current=!1,x(!0)},[x]),S=k.useCallback(()=>{window.clearTimeout(m.current),x(!1)},[x]),R=k.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,x(!0)},v)},[v,x]);return k.useEffect(()=>()=>window.clearTimeout(m.current),[]),k.createElement(bfe,c,k.createElement(Cfe,{scope:e,contentId:h,open:O,stateAttribute:$,trigger:f,onTriggerChange:u,onTriggerEnter:k.useCallback(()=>{l.isOpenDelayed?R():T()},[l.isOpenDelayed,R,T]),onTriggerLeave:k.useCallback(()=>{g?S():window.clearTimeout(m.current)},[S,g]),onOpen:T,onClose:S,disableHoverableContent:g},n))},ME="TooltipTrigger",Pfe=k.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,r=y1(ME,n),s=h4(ME,n),a=ok(n),o=k.useRef(null),l=Aa(e,o,r.onTriggerChange),c=k.useRef(!1),f=k.useRef(!1),u=k.useCallback(()=>c.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),k.createElement(yfe,X({asChild:!0},a),k.createElement(Qr.button,X({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:l,onPointerMove:bi(t.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:bi(t.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:bi(t.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:bi(t.onFocus,()=>{c.current||r.onOpen()}),onBlur:bi(t.onBlur,r.onClose),onClick:bi(t.onClick,r.onClose)})))}),qj="TooltipPortal",[Tfe,Afe]=ak(qj,{forceMount:void 0}),Efe=t=>{const{__scopeTooltip:e,forceMount:n,children:i,container:r}=t,s=y1(qj,e);return k.createElement(Tfe,{scope:e,forceMount:n},k.createElement(nk,{present:n||s.open},k.createElement(gj,{asChild:!0,container:r},i)))},Mg="TooltipContent",Rfe=k.forwardRef((t,e)=>{const n=Afe(Mg,t.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...s}=t,a=y1(Mg,t.__scopeTooltip);return k.createElement(nk,{present:i||a.open},a.disableHoverableContent?k.createElement(Wj,X({side:r},s,{ref:e})):k.createElement(Dfe,X({side:r},s,{ref:e})))}),Dfe=k.forwardRef((t,e)=>{const n=y1(Mg,t.__scopeTooltip),i=h4(Mg,t.__scopeTooltip),r=k.useRef(null),s=Aa(e,r),[a,o]=k.useState(null),{trigger:l,onClose:c}=n,f=r.current,{onPointerInTransitChange:u}=i,h=k.useCallback(()=>{o(null),u(!1)},[u]),m=k.useCallback((g,v)=>{const w=g.currentTarget,O={x:g.clientX,y:g.clientY},x=Ife(O,w.getBoundingClientRect()),$=Bfe(O,x),T=Ffe(v.getBoundingClientRect()),S=zfe([...$,...T]);o(S),u(!0)},[u]);return k.useEffect(()=>()=>h(),[h]),k.useEffect(()=>{if(l&&f){const g=w=>m(w,f),v=w=>m(w,l);return l.addEventListener("pointerleave",g),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",v)}}},[l,f,m,h]),k.useEffect(()=>{if(a){const g=v=>{const w=v.target,O={x:v.clientX,y:v.clientY},x=(l==null?void 0:l.contains(w))||(f==null?void 0:f.contains(w)),$=!Qfe(O,a);x?h():$&&(h(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,f,a,c,h]),k.createElement(Wj,X({},t,{ref:s}))}),[Mfe,Nfe]=ak(p4,{isInside:!1}),Wj=k.forwardRef((t,e)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=t,l=y1(Mg,n),c=ok(n),{onClose:f}=l;return k.useEffect(()=>(document.addEventListener(L_,f),()=>document.removeEventListener(L_,f)),[f]),k.useEffect(()=>{if(l.trigger){const u=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),k.createElement(pj,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:u=>u.preventDefault(),onDismiss:f},k.createElement(wfe,X({"data-state":l.stateAttribute},c,o,{ref:e,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),k.createElement(uj,null,i),k.createElement(Mfe,{scope:n,isInside:!0},k.createElement(xle,{id:l.contentId,role:"tooltip"},r||i))))}),Lfe="TooltipArrow",jfe=k.forwardRef((t,e)=>{const{__scopeTooltip:n,...i}=t,r=ok(n);return Nfe(Lfe,n).isInside?null:k.createElement(kfe,X({},r,i,{ref:e}))});function Ife(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,i,r,s)){case s:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function Bfe(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return i}function Ffe(t){const{top:e,right:n,bottom:i,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:i},{x:r,y:i}]}function Qfe(t,e){const{x:n,y:i}=t;let r=!1;for(let s=0,a=e.length-1;s<e.length;a=s++){const o=e[s].x,l=e[s].y,c=e[a].x,f=e[a].y;l>i!=f>i&&n<(c-o)*(i-l)/(f-l)+o&&(r=!r)}return r}function zfe(t){const e=t.slice();return e.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),qfe(e)}function qfe(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const r=t[i];for(;e.length>=2;){const s=e[e.length-1],a=e[e.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const r=t[i];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}const Uj=_fe,lk=$fe,ck=Pfe,fk=Efe,uk=Rfe,dk=jfe,$c=({children:t,content:e,side:n="bottom"})=>b.jsxs(lk,{delayDuration:300,children:[b.jsx(ck,{asChild:!0,children:t}),b.jsx(fk,{children:b.jsxs(uk,{className:Tt("radix-side-top:animate-slide-down-fade","radix-side-right:animate-slide-left-fade","radix-side-bottom:animate-slide-up-fade","radix-side-left:animate-slide-right-fade","inline-flex items-center rounded-lg px-3 py-2","bg-gray-800 text-xs shadow-md dark:bg-white","max-w-[16rem] text-white dark:text-gray-800"),side:n,sideOffset:4,children:[e,b.jsx(dk,{className:"fill-current text-gray-800 dark:text-gray-200"})]})})]}),Wfe=()=>b.jsx(Wt,{appear:!0,as:k.Fragment,enter:"transition-all duration-300 ease-in-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",show:!0,children:b.jsx("div",{className:"flex h-full w-full items-center justify-center rounded-3xl bg-white/70 p-12 dark:bg-gray-800/70",children:b.jsxs("div",{className:"text-center",children:[b.jsx(z$,{"aria-hidden":!0,className:"mx-auto mb-3 h-12 w-12"}),b.jsx("h3",{className:"mb-2 mt-2 text-lg font-semibold",children:j("no_results_title")}),b.jsx("p",{className:"text-muted mt-1 text-sm",children:j("no_results_desc")})]})})}),Ufe=({data:t})=>t.corsRestricted?b.jsx("img",{className:"absolute bottom-0 top-0 m-auto w-full",src:t.absoluteImageUrl}):b.jsx("span",{className:Tt("[& > svg]:absolute [& > svg]:inset-0 [& > svg]:inline-block relative inline-block w-full overflow-hidden pb-[100%] align-top"),dangerouslySetInnerHTML:{__html:t.presentationSvg}}),Vfe=({children:t,data:e})=>{const n=()=>{window.open(e.absoluteImageUrl,"_blank")};return b.jsxs(k.Fragment,{children:[b.jsx("div",{className:"absolute right-3 top-3 z-50 cursor-help opacity-0 transition-all duration-300 ease-in-out group-hover/card:opacity-100",children:b.jsx($c,{content:j("card_tooltip_cors"),children:b.jsx(Xre,{"aria-hidden":"true",className:"h-6 w-6"})})}),b.jsx("div",{className:"absolute bottom-3 left-3 right-3 z-50 opacity-0 transition-all duration-300 ease-in-out group-hover/card:opacity-100",children:b.jsxs(_t,{className:"w-full justify-center bg-white dark:bg-gray-800/90",onClick:n,size:"sm",variant:"secondary",children:[j("card_open"),b.jsx(QL,{"aria-hidden":"true",className:"h-4 w-4"})]})}),t]})},m4={menu:{enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95"},popover:{enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95"}},Lu=({children:t,onClick:e})=>b.jsx(Ci.Item,{children:({active:n})=>b.jsx("span",{className:Tt(n&&"bg-gray-100 dark:bg-gray-700","block cursor-pointer rounded-md px-2 py-2 text-xs","flex items-center"),onClick:e,children:t})}),Vj=t=>{const{state:e}=en(),{revalidate:n}=Hw();async function i(){const u={corsRestricted:t.corsRestricted,id:xl(),lastEdited:new Date().toISOString(),name:t.name,svg:t.svg},h=[new Z$(u),...e.data],m=await ye.getPageData(e.collectionId);ye.setPageData(e.collectionId,{...m,data:oi.createStorageSvgs(h)}),n()}async function r(){const u=e.data.filter(m=>m.id!==t.id),h=await ye.getPageData(e.collectionId);ye.setPageData(e.collectionId,{...h,data:oi.createStorageSvgs(u)}),n()}function s(){Si.copyStringToClipboard(t.svg)}async function a(){const u=Mb.optimize(t.svg);Si.copyStringToClipboard(u.data)}async function o(){Si.downloadSvgString(t.svg,t.name)}async function l(){const u=oi.createBase64DataUri(t.svg);Si.copyStringToClipboard(u)}async function c(){const u=oi.createEncodedDataUri(t.svg);Si.copyStringToClipboard(u)}async function f(){const u=oi.createMinifiedDataUri(t.svg);Si.copyStringToClipboard(u)}return{copyBase64DataUri:l,copyEncodedDataUri:c,copyMinifiedDataUri:f,copyOptimized:a,copyOriginal:s,deleteItem:r,downloadOriginal:o,duplicateItem:i}},Hfe=({data:t})=>{const{copyBase64DataUri:e,copyEncodedDataUri:n,copyOriginal:i,deleteItem:r,downloadOriginal:s,duplicateItem:a}=Vj(t);return b.jsx("div",{className:Tt("absolute right-1 top-1 opacity-0 group-hover/card:opacity-100","group/select z-20 transition-all duration-300 ease-in-out"),children:b.jsxs(Ci,{as:"div",className:"relative",children:[b.jsx(Ci.Button,{as:"div",children:b.jsx("label",{className:"flex cursor-pointer items-center justify-center rounded-lg p-2 group-hover/select:bg-gray-100/70 group-hover/select:dark:bg-gray-800",children:b.jsx(xc,{className:"rounded-md",size:"xs",variant:"secondary",children:b.jsx(Vre,{"aria-hidden":"true",className:"h-3 w-3"})})})}),b.jsx(Wt,{as:b.Fragment,...m4.menu,children:b.jsxs(Ci.Items,{className:Tt("absolute z-10 w-40 origin-top-left rounded-lg p-1","bg-white shadow-md ring-1 ring-black dark:bg-gray-800 dark:ring-white","focus animate-slide-up-fade ring-opacity-5 dark:ring-opacity-5"),children:[b.jsxs(Lu,{onClick:i,children:[b.jsx(zL,{className:"mr-1.5 h-3.5 w-3.5"}),b.jsx("span",{className:"flex-grow",children:j("card_action_copy")})]}),b.jsxs(Lu,{onClick:s,children:[b.jsx(wre,{className:"mr-1.5 h-3.5 w-3.5"}),b.jsx("span",{className:"flex-grow",children:j("card_action_download")})]}),b.jsxs(Lu,{onClick:n,children:[b.jsx(jre,{className:"mr-1.5 h-3.5 w-3.5"}),b.jsx("span",{className:"flex-grow",children:j("copy_uri")})]}),b.jsxs(Lu,{onClick:e,children:[b.jsx(qL,{className:"mr-1.5 h-3.5 w-3.5"}),b.jsx("span",{className:"flex-grow",children:j("copy_base64_uri")})]}),b.jsx("span",{className:"my-1 block h-px bg-gray-200 dark:bg-gray-700"}),b.jsxs(Lu,{onClick:a,children:[b.jsx(qre,{className:"mr-1.5 h-3.5 w-3.5"}),j("card_action_duplicate")]}),b.jsxs(Lu,{onClick:r,children:[b.jsx(pse,{className:"mr-1.5 h-3.5 w-3.5"}),j("card_action_delete")]})]})})]})})},Zfe=({data:t})=>{const[e,n]=k.useState(j("main_copy")),{copyOptimized:i}=Vj(t);function r(){n(j("export_copied")),i(),setTimeout(()=>{n(j("main_copy"))},1200)}return b.jsx("div",{className:"absolute bottom-3 left-3 right-3 z-10 opacity-0 transition-all duration-300 ease-in-out group-hover/card:opacity-100",children:b.jsx(_t,{className:"w-full justify-center bg-white dark:bg-gray-800/90",onClick:r,size:"sm",variant:"secondary",children:e})})},Gfe=({data:t})=>{const{dispatch:e,state:n}=en(),i=k.useMemo(()=>n.selected.some(s=>s.id===t.id),[n.selected,t]),r=s=>{switch(s.target.checked){case!1:return e({payload:t,type:"remove-selected"});case!0:return e({payload:t,type:"add-selected"})}};return b.jsx("div",{className:Tt("absolute left-1 top-1 opacity-0 group-hover/card:opacity-100","group/select z-10 transition-all duration-300 ease-in-out",i&&"opacity-100"),children:b.jsx("label",{className:"flex cursor-pointer items-center justify-center rounded-lg p-2 group-hover/select:bg-gray-100/70 group-hover/select:dark:bg-gray-800",children:b.jsx("input",{checked:i,className:`h-5 w-5 cursor-pointer rounded border-gray-300 bg-gray-100 text-red-600
|
||
transition-all duration-150 ease-in-out focus:ring-2 focus:ring-red-500 dark:border-gray-600
|
||
dark:bg-gray-700 dark:ring-offset-gray-800 dark:focus:ring-red-600`,onChange:r,type:"checkbox"})})})},Xfe=({children:t,data:e})=>{const{state:n}=en();return b.jsxs(k.Fragment,{children:[b.jsx(Hfe,{data:e}),b.jsx(Gfe,{data:e}),b.jsx(Zfe,{data:e}),b.jsx(F$,{className:"flex h-full w-full items-center justify-center",to:`/details/${n.collectionId}/${e.id}`,children:t})]})},Yfe=({data:t})=>{const{state:{view:{filters:e}}}=en();if(!t.corsRestricted)return e["show-size"]?b.jsx("span",{className:"absolute top-2 w-full text-center text-xs text-gray-500",children:t.fileSize}):b.jsx("span",{className:"absolute top-4 w-full text-center text-xs text-gray-500 opacity-0 transition-all duration-300 ease-in-out group-hover/card:opacity-100",children:t.fileSize})},Kfe=k.forwardRef((t,e)=>{const{className:n,data:i,...r}=t,{state:s}=en(),a=k.useMemo(()=>i.corsRestricted?Vfe:Xfe,[i.corsRestricted]);return b.jsxs("div",{...r,className:Tt(s.view.filters["show-name"]&&"rounded-b-none","text relative rounded-2xl","group/card transition-all duration-300 ease-in-out","flex aspect-square items-center justify-center",n),ref:e,children:[b.jsx(Yfe,{data:i}),b.jsx(a,{data:i,children:b.jsx("div",{className:"relative overflow-hidden transition-all duration-100 ease-in",style:{height:s.view.size,width:s.view.size},children:b.jsx(Ufe,{data:i})})})]})}),Jfe=({data:t})=>{const{dispatch:e,state:n}=en(),i=async r=>{var o;const s=(o=r.target.textContent)==null?void 0:o.replace(/[\r\n]+/g," ").replaceAll(/\s+/g," ").trim();if(!s||s===t.name)return;t.updateName(s);const a=await ye.getPageData(n.collectionId);a.data=a.data.map(l=>l.id===t.id?t:l),ye.setPageData(n.collectionId,a),e({type:"process-data"})};return b.jsx(Wt,{as:"div",className:"h-8 w-full whitespace-nowrap px-2 pb-2 text-xs text-gray-500 dark:text-gray-400",enter:"transition-opacity duration-300 ease-in-out",enterFrom:"opacity-0 h-0",enterTo:"opacity-100 h-8",leave:"transition-opacity duration-300 ease-in-out",leaveFrom:"opacity-100 h-8",leaveTo:"opacity-0 h-0",show:n.view.filters["show-name"],children:b.jsx("span",{className:"flex h-full w-full items-center justify-center",children:b.jsx("span",{className:"max-w-full overflow-hidden rounded-sm p-1 hover:bg-gray-100 dark:hover:bg-gray-900",contentEditable:"plaintext-only",onBlur:i,suppressContentEditableWarning:!0,children:t.name})})})},eue=({children:t})=>{const e=Yw(),{getInputProps:n,getRootProps:i,isDragActive:r}=g1({accept:{"image/svg+xml":[".svg"]},maxSize:10*1024*1024,multiple:!0,noClick:!0,noKeyboard:!0,onDrop:s});async function s(a,o){if(a.length>0){const l=await Si.handleUpload(a);e(l)}o.length>0}return b.jsxs("div",{...i(),className:"group",children:[b.jsx("div",{className:Tt("pointer-events-none fixed z-50 flex items-center justify-center",r&&"bottom-0 left-0 right-0 top-28 p-6 lg:left-72"),children:b.jsx("div",{className:Tt("rounded-2xl shadow-lg transition-all duration-100 ease-in-out","border-2 border-dashed border-red-300/70 ring-0 dark:border-red-500/70","h-full w-full items-center justify-center overflow-hidden bg-white/95 dark:bg-gray-700/95",r?"flex":"hidden"),children:b.jsxs("div",{className:Tt("flex flex-col items-center justify-center transition-opacity duration-500 ease-in-out"),children:[b.jsx(Q$,{"aria-hidden":"true",className:"text-muted mx-auto mb-3 h-12 w-12"}),b.jsx("div",{className:"text flex text-sm leading-6",children:b.jsxs("p",{className:"pl-1",children:[b.jsx("span",{className:"font-semibold text-red-600 dark:text-red-500",children:j("drop_files")})," ",j("to_upload")]})}),b.jsx("p",{className:"text-xs leading-5",children:j("upload_file_limit")})]})})}),b.jsx("input",{...n(),className:"sr-only"}),t]})},tue=()=>{const{dispatch:t}=en(),{elementRef:e,isIntersecting:n}=bae();return k.useEffect(()=>{n&&t({type:"load-more"})},[n,t]),b.jsx("li",{ref:e})},nue=()=>{const[t,e]=k.useState(!1),{dispatch:n,state:i}=Ki();k.useEffect(()=>{i.onboarding.hasPastedSvg&&!i.onboarding.viewedSvgInClipboard?e(!0):e(!1)},[i.onboarding.hasPastedSvg,i.onboarding.viewedSvgInClipboard]);const r=()=>{const s={...i,onboarding:{...i.onboarding,viewedSvgInClipboard:!0}};ye.setStorageData("user",s),n({payload:s,type:"set-user"}),e(!1)};return b.jsx($j,{actionText:j("paste_cue_action"),description:j("paste_cue_desc"),onAction:r,open:t,title:j("paste_cue_title")})},iue=({data:t})=>{const{dispatch:e,state:n}=en();k.useEffect(()=>(e({payload:t,type:"set-data"}),e({type:"process-data"}),()=>e({type:"reset"})),[t,e]);function i(){switch(n.view.size){case 96:return"10rem";case 128:return"12.5rem";case 192:return"15rem";case 256:return"17.5rem";default:return"8.75rem"}}return n.processedData.length===0?b.jsx(Wfe,{}):b.jsx(eue,{children:b.jsxs("section",{className:"border-gray-200 transition-colors dark:border-gray-800",children:[b.jsxs("ul",{className:"grid justify-between gap-4",style:{gridTemplateColumns:`repeat(auto-fill, minmax(${i()}, 1fr))`},children:[n.processedData.map((r,s)=>b.jsxs(Wt,{appear:!0,as:"li",className:"rounded-xl transition-all duration-300 ease-in-out hover:shadow-md",enter:"transition-all duration-300 ease-in-out",enterFrom:"opacity-0 scale-90",enterTo:"opacity-100 scale-100",show:!0,style:{backgroundColor:n.view.canvas},children:[b.jsx(Kfe,{data:r}),b.jsx(Jfe,{data:r})]},r.svg+s)),b.jsx(tue,{})]}),b.jsx(Xle,{}),b.jsx(sle,{}),b.jsx(nue,{})]})})},g4=()=>{const{revalidate:t}=Hw(),{dispatch:e,state:n}=en(),{collectionId:i}=n,r=n.selected,s=n.data.filter(h=>!r.includes(h)),a=oi.createStorageSvgs(s),o=oi.createStorageSvgs(r);function l(){e({type:"unselect-all"}),e({type:"process-data"}),t()}return{deleteSelectedItems:async()=>{const h=await ye.getPageData(i);await ye.setPageData(i,{...h,data:a}),l()},duplicateItems:async h=>{const m=await ye.getPageData(h);await ye.setPageData(h,{...m,data:[...o,...m.data]}),l()},moveSelectedItems:async h=>{const m=await ye.getPageData(h),g=await ye.getPageData(i);await ye.setPageData(h,{...m,data:[...o,...m.data]}),await ye.setPageData(i,{...g,data:a}),l()}}},rue=()=>{const[t,e]=k.useState(!1),{state:n}=Ir(),{duplicateItems:i}=g4(),r=k.useRef(null),s=()=>{e(!0)},a=()=>{var c;const l=(c=r.current)==null?void 0:c.value;l&&(i(l),e(!1))},o=n.collections.length===1;return b.jsxs(k.Fragment,{children:[b.jsx(_t,{disabled:o,onClick:s,size:"xs",variant:"ghost",children:j("main_copy")}),b.jsxs(Ut,{open:t,setOpen:e,children:[b.jsx(Ut.Header,{children:j("main_copy_collection")}),b.jsx(Ut.Main,{children:b.jsxs("div",{className:"py-3",children:[b.jsx("label",{className:"label",htmlFor:"collection",children:j("main_name")}),b.jsx("select",{className:"select",id:"collection",ref:r,children:n.collections.map(l=>b.jsx("option",{value:l.id,children:l.name},l.id))})]})}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{onClick:a,children:j("main_submit")}),b.jsx(_t,{onClick:()=>e(!1),variant:"secondary",children:j("main_cancel")})]})]})]})},sue=()=>{const{deleteSelectedItems:t}=g4();return b.jsx(_t,{onClick:t,size:"xs",variant:"ghost",children:j("main_delete")})},aue=()=>{const[t,e]=k.useState(!1),{state:n}=Ir(),{state:i}=en(),{moveSelectedItems:r}=g4(),s=k.useRef(null),a=()=>{e(!0)},o=()=>{var u;const f=(u=s.current)==null?void 0:u.value;f&&(r(f),e(!1))},l=n.collections.filter(f=>f.id!==i.collectionId),c=n.collections.length===1;return b.jsxs(k.Fragment,{children:[b.jsx(_t,{disabled:c,onClick:a,size:"xs",variant:"ghost",children:j("main_move")}),b.jsxs(Ut,{open:t,setOpen:e,children:[b.jsx(Ut.Header,{children:j("main_move_collection")}),b.jsxs(Ut.Main,{children:[b.jsx("label",{className:"label",htmlFor:"collection",children:j("main_name")}),b.jsx("select",{className:"select",id:"collection",ref:s,children:l.map(f=>b.jsx("option",{value:f.id,children:f.name},f.id))})]}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{onClick:o,children:j("main_submit")}),b.jsx(_t,{onClick:()=>e(!1),variant:"secondary",children:j("main_cancel")})]})]})]})},oue=()=>{const{state:t}=en();return b.jsx(Wt,{enter:"transition ease-in-out duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition ease-in-out duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:t.selected.length>0,children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{"aria-hidden":!0,className:"h-4 w-px bg-gray-200 dark:bg-gray-700"}),b.jsx(aue,{}),b.jsx(rue,{}),b.jsx(sue,{})]})})},lue=()=>{const{state:t}=en(),e=k.useMemo(()=>t.view.filters["hide-cors"]?t.data.filter(n=>!n.corsRestricted).length:t.data.length,[t.data,t.view.filters]);return b.jsxs("div",{className:"hidden shrink-0 text-xs leading-none md:block",children:[j("main_showing")," ",b.jsx("span",{className:"font-medium",children:t.processedData.length})," ",j("main_of")," ",b.jsx("span",{className:"font-medium",children:e})," ",j("main_results")]})},cue=()=>{const{dispatch:t,state:e}=en(),[n,i]=k.useState(!1);function r(){i(!0)}function s(){e.search.length>0||i(!1)}function a(l){t({payload:l.target.value,type:"set-search"}),t({type:"process-data"})}function o(){t({payload:"",type:"set-search"}),t({type:"process-data"}),i(!1)}return b.jsxs("div",{className:Tt("relative h-8 transition-all duration-300 ease-in-out",n?"w-52":"w-8"),children:[b.jsx(z$,{className:"pointer-events-none absolute left-2 top-1/2 z-0 h-4 w-4 -translate-y-1/2"}),b.jsx("input",{className:Tt("input h-full hover:bg-gray-50 dark:hover:bg-gray-800",n&&"!pl-7",!n&&"!border-none"),onBlur:s,onChange:a,onFocus:r,type:"text",value:e.search}),n&&b.jsx(xc,{className:"absolute right-1 top-1/2 -translate-y-1/2",onClick:o,size:"xs",variant:"ghost",children:b.jsx(E$,{className:"h-4 w-4"})})]})},fue=()=>{const{state:t}=en(),e=k.useMemo(()=>t.view.filters["hide-cors"]?t.data.filter(n=>!n.corsRestricted).length:t.data.length,[t.data,t.view.filters]);return b.jsxs("div",{className:"hidden text-right leading-none md:block",children:[b.jsx("span",{className:"font-medium",children:t.selected.length})," ",j("main_of")," ",b.jsx("span",{className:"font-medium",children:e})," ",j("selected")]})},uue=()=>{const{dispatch:t,state:e}=en(),n=k.useRef(null),i=e.selected.length,r=e.data.filter(o=>!o.corsRestricted).length,s=i===r,a=()=>{t(s?{type:"unselect-all"}:{type:"select-all"})};return k.useEffect(()=>{n.current!==null&&(n.current.indeterminate=i>0&&!s)},[i,r,s]),b.jsx(Wt,{as:k.Fragment,enter:"transition ease-in-out duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition ease-in-out duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:r>0,children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("input",{checked:s,className:"checkbox",id:"select",onChange:a,ref:n,type:"checkbox"}),b.jsxs("label",{className:"cursor-pointer text-xs font-medium leading-none",htmlFor:"select",children:[j("main_select")," ",s?j("main_none"):j("main_all")]})]})})},due=()=>{const{state:t}=en(),e=k.useMemo(()=>t.selected.length>0?fue:lue,[t.selected.length]);return b.jsxs("aside",{className:"main-bar",children:[b.jsx(uue,{}),b.jsx(oue,{}),b.jsx("span",{className:"flex-grow"}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(cue,{}),b.jsx("div",{"aria-hidden":!0,className:"hidden h-4 w-px bg-gray-200 dark:bg-gray-700 md:block"}),b.jsx(e,{})]})]})},hue=[{label:j("edit_id"),tooltip:j("edit_id_tooltip"),value:"id"},{label:j("edit_height"),tooltip:j("edit_height_tooltip"),value:"height"},{label:j("edit_width"),tooltip:j("edit_width_tooltip"),value:"width"},{label:j("edit_class"),tooltip:j("edit_class_tooltip"),value:"class"},{label:j("edit_viewbox"),tooltip:j("edit_viewbox_tooltip"),value:"viewBox"},{label:j("edit_fill"),tooltip:j("edit_fill_tooltip"),value:"fill"}],pue=()=>{const{state:t}=dL(),{dispatch:e,state:n}=en();async function i(){const{collectionId:r,data:s,selected:a}=n,{custom:o,standard:l}=t,c=a.map(h=>{const m=h.createClone();for(const[g,v]of Object.entries(l))v&&m.asElement&&(m.asElement.setAttribute(g,v),m.svg=m.asElement.outerHTML,m.stampLastEdited());return o.name&&o.value&&m.asElement&&(m.asElement.setAttribute(o.name,o.value),m.svg=m.asElement.outerHTML,m.stampLastEdited()),m}),f=s.map(h=>c.find(g=>g.id===h.id)||h),u=await ye.getPageData(r);ye.setPageData(r,{...u,data:f}),e({payload:f,type:"set-data"}),e({payload:c,type:"set-selected"}),e({type:"process-data"})}return{handleUpdateProperties:i}},mue={jpeg:"JPEG",png:"PNG",sprite:"Sprite",svg:"SVG",webp:"WebP"},gue=()=>{const{dispatch:t}=bs(),{state:e}=en(),{dispatch:n,state:i}=bs(),{state:r}=Ir();yae(()=>{var c;let l=e.selected[0].name;e.selected.length>1&&(l=((c=r.collections.find(f=>f.id===e.collectionId))==null?void 0:c.name)??"svg-gobbler"),t({payload:l,type:"set-filename"})});const s=l=>{n({payload:l.target.value,type:"set-filename"})},a=l=>{n({payload:l.target.value,type:"set-filename-prefix"})},o=l=>{n({payload:l.target.checked,type:"set-prefix-filenames"})};return e.selected.length===1||i.fileType==="sprite"?b.jsxs(b.Fragment,{children:[b.jsx("label",{className:"export-label",htmlFor:"file-name",children:j("export_filename")}),b.jsx("input",{className:"export-input",id:"file-name",onChange:s,type:"text",value:i.filename})]}):b.jsxs(b.Fragment,{children:[b.jsx("label",{className:"export-label",htmlFor:"file-name",children:j("export_export_filename")}),b.jsx("input",{className:"export-input",id:"file-name",onChange:s,type:"text",value:i.filename}),b.jsxs("div",{className:"group mt-4 flex items-center gap-2",children:[b.jsx("input",{checked:i.prefixFilenames,className:"checkbox",id:"prefix-files",onChange:o,type:"checkbox"}),b.jsxs("span",{className:"flex gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"prefix-files",children:j("export_prefix_names")}),b.jsx(gs,{content:j("export_prefix_names_tooltip")})]})]}),i.prefixFilenames&&b.jsxs("div",{className:"mt-2 flex flex-col",children:[b.jsx("input",{className:"export-input",id:"prefix-file-name",onChange:a,type:"text",value:i.filenamePrefix}),b.jsx("span",{className:"text-muted text-xs",children:i.filenamePrefix&&i.filenamePrefix+"_1."+i.fileType})]})]})},v4="Applied to the largest side (height or width) of the image while scaling proportionally.",vue=()=>{const{dispatch:t,state:e}=bs(),n=r=>{t({payload:Number(r.target.value),type:"set-webp-size"})},i=r=>{t({payload:Number(r.target.value),type:"set-webp-quality"})};return b.jsxs("div",{className:"flex flex-col gap-3",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"group flex items-center gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"size",children:j("export_size")}),b.jsx(gs,{content:v4})]}),b.jsx("input",{className:"export-input",id:"size",onChange:n,type:"text",value:e.settings.webp.size})]}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"quality",children:j("export_quality")}),b.jsx("input",{className:"export-input",id:"quality",max:1,min:0,onChange:i,step:.01,type:"number",value:e.settings.webp.quality})]})]})},bue=()=>{const{dispatch:t,state:e}=bs(),n=r=>{t({payload:Number(r.target.value),type:"set-jpeg-size"})},i=r=>{t({payload:Number(r.target.value),type:"set-jpeg-quality"})};return b.jsxs("div",{className:"flex flex-col gap-3",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"group flex items-center gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"size",children:j("export_size")}),b.jsx(gs,{content:v4})]}),b.jsx("input",{className:"export-input",id:"size",onChange:n,type:"text",value:e.settings.png.size})]}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"quality",children:j("export_quality")}),b.jsx("input",{className:"export-input",id:"quality",max:1,min:0,onChange:i,step:.01,type:"number",value:e.settings.jpeg.quality})]})]})},yue=()=>{const{dispatch:t,state:e}=bs(),n=i=>{t({payload:Number(i.target.value),type:"set-png-size"})};return b.jsx("div",{className:"flex flex-col gap-3",children:b.jsxs("div",{children:[b.jsxs("div",{className:"group flex items-center gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"size",children:j("export_size")}),b.jsx(gs,{content:v4})]}),b.jsx("input",{className:"export-input",id:"size",onChange:n,type:"text",value:e.settings.png.size})]})})},wue=()=>{const{dispatch:t,state:e}=bs();function n(s){t({payload:s.target.value,type:"set-sprite-prefix"})}function i(s){t({payload:s.target.value,type:"set-sprite-suffix"})}const r=`<use href="#${e.settings.sprite.prefix}icon${e.settings.sprite.suffix}" />`;return b.jsxs("div",{children:[b.jsxs("div",{className:"group",children:[b.jsxs("span",{className:"flex gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"id-prefix",children:j("export_sprite_prefix")}),b.jsx(gs,{content:j("export_sprite_prefix_tooltip")})]}),b.jsx("input",{className:"export-input",id:"id-prefix",onChange:n,type:"text",value:e.settings.sprite.prefix}),e.settings.sprite.prefix&&b.jsx("div",{className:"mt-2 flex flex-col",children:b.jsx("span",{className:"text-muted text-xs",children:r})})]}),b.jsxs("div",{className:"group mt-3",children:[b.jsxs("span",{className:"flex gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"id-suffix",children:j("export_sprite_suffix")}),b.jsx(gs,{content:j("export_sprite_suffix_tooltip")})]}),b.jsx("input",{className:"export-input",id:"id-suffix",onChange:i,type:"text",value:e.settings.sprite.suffix}),e.settings.sprite.suffix&&b.jsx("div",{className:"mt-2 flex flex-col",children:b.jsx("span",{className:"text-muted text-xs",children:r})})]})]})};var jm={exports:{}};/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/var kue=jm.exports,NE;function Oue(){return NE||(NE=1,(function(t,e){(function(){var n,i="4.17.21",r=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",u=1,h=2,m=4,g=1,v=2,w=1,O=2,x=4,$=8,T=16,S=32,R=64,_=128,P=256,A=512,N=30,M="...",Q=800,U=16,z=1,Y=2,ae=3,ne=1/0,he=9007199254740991,ve=17976931348623157e292,je=NaN,we=4294967295,ge=we-1,B=we>>>1,D=[["ary",_],["bind",w],["bindKey",O],["curry",$],["curryRight",T],["flip",A],["partial",S],["partialRight",R],["rearg",P]],te="[object Arguments]",q="[object Array]",lt="[object AsyncFunction]",yt="[object Boolean]",mt="[object Date]",Ke="[object DOMException]",Gt="[object Error]",dt="[object Function]",dn="[object GeneratorFunction]",Ot="[object Map]",wn="[object Number]",kn="[object Null]",an="[object Object]",qi="[object Promise]",vr="[object Proxy]",jn="[object RegExp]",On="[object Set]",yi="[object String]",er="[object Symbol]",xe="[object Undefined]",qe="[object WeakMap]",Ft="[object WeakSet]",Et="[object ArrayBuffer]",Xt="[object DataView]",ii="[object Float32Array]",tr="[object Float64Array]",xn="[object Int8Array]",Wr="[object Int16Array]",Os="[object Int32Array]",Ur="[object Uint8Array]",Vr="[object Uint8ClampedArray]",Hr="[object Uint16Array]",br="[object Uint32Array]",ia=/\b__p \+= '';/g,jo=/\b(__p \+=) '' \+/g,jp=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fc=/&(?:amp|lt|gt|quot|#39);/g,Un=/[&<>"']/g,wi=RegExp(Fc.source),Ti=RegExp(Un.source),V=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,se=/<%=([\s\S]+?)%>/g,pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(Ie.source),Ue=/^\s+/,He=/\s/,Sn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nn=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,Yt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ri=/[()=,{}\[\]\/\s]/,Qc=/\\(\\)?/g,Ia=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Io=/\w*$/,Tl=/^[-+]0x[0-9a-f]+$/i,Al=/^0b[01]+$/i,xs=/^\[object .+?Constructor\]$/,bu=/^0o[0-7]+$/i,yu=/^(?:0|[1-9]\d*)$/,wu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,Ai=/['\n\r\u2028\u2029\\]/g,Ei="\\ud800-\\udfff",ui="\\u0300-\\u036f",zc="\\ufe20-\\ufe2f",T0="\\u20d0-\\u20ff",A0=ui+zc+T0,oT="\\u2700-\\u27bf",lT="a-z\\xdf-\\xf6\\xf8-\\xff",oG="\\xac\\xb1\\xd7\\xf7",lG="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cG="\\u2000-\\u206f",fG=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cT="A-Z\\xc0-\\xd6\\xd8-\\xde",fT="\\ufe0e\\ufe0f",uT=oG+lG+cG+fG,BO="['’]",uG="["+Ei+"]",dT="["+uT+"]",E0="["+A0+"]",hT="\\d+",dG="["+oT+"]",pT="["+lT+"]",mT="[^"+Ei+uT+hT+oT+lT+cT+"]",FO="\\ud83c[\\udffb-\\udfff]",hG="(?:"+E0+"|"+FO+")",gT="[^"+Ei+"]",QO="(?:\\ud83c[\\udde6-\\uddff]){2}",zO="[\\ud800-\\udbff][\\udc00-\\udfff]",ku="["+cT+"]",vT="\\u200d",bT="(?:"+pT+"|"+mT+")",pG="(?:"+ku+"|"+mT+")",yT="(?:"+BO+"(?:d|ll|m|re|s|t|ve))?",wT="(?:"+BO+"(?:D|LL|M|RE|S|T|VE))?",kT=hG+"?",OT="["+fT+"]?",mG="(?:"+vT+"(?:"+[gT,QO,zO].join("|")+")"+OT+kT+")*",gG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xT=OT+kT+mG,bG="(?:"+[dG,QO,zO].join("|")+")"+xT,yG="(?:"+[gT+E0+"?",E0,QO,zO,uG].join("|")+")",wG=RegExp(BO,"g"),kG=RegExp(E0,"g"),qO=RegExp(FO+"(?="+FO+")|"+yG+xT,"g"),OG=RegExp([ku+"?"+pT+"+"+yT+"(?="+[dT,ku,"$"].join("|")+")",pG+"+"+wT+"(?="+[dT,ku+bT,"$"].join("|")+")",ku+"?"+bT+"+"+yT,ku+"+"+wT,vG,gG,hT,bG].join("|"),"g"),xG=RegExp("["+vT+Ei+A0+fT+"]"),SG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_G=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],CG=-1,_n={};_n[ii]=_n[tr]=_n[xn]=_n[Wr]=_n[Os]=_n[Ur]=_n[Vr]=_n[Hr]=_n[br]=!0,_n[te]=_n[q]=_n[Et]=_n[yt]=_n[Xt]=_n[mt]=_n[Gt]=_n[dt]=_n[Ot]=_n[wn]=_n[an]=_n[jn]=_n[On]=_n[yi]=_n[qe]=!1;var hn={};hn[te]=hn[q]=hn[Et]=hn[Xt]=hn[yt]=hn[mt]=hn[ii]=hn[tr]=hn[xn]=hn[Wr]=hn[Os]=hn[Ot]=hn[wn]=hn[an]=hn[jn]=hn[On]=hn[yi]=hn[er]=hn[Ur]=hn[Vr]=hn[Hr]=hn[br]=!0,hn[Gt]=hn[dt]=hn[qe]=!1;var $G={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},PG={"&":"&","<":"<",">":">",'"':""","'":"'"},TG={"&":"&","<":"<",">":">",""":'"',"'":"'"},AG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},EG=parseFloat,RG=parseInt,ST=typeof vv=="object"&&vv&&vv.Object===Object&&vv,DG=typeof self=="object"&&self&&self.Object===Object&&self,Ri=ST||DG||Function("return this")(),WO=e&&!e.nodeType&&e,qc=WO&&!0&&t&&!t.nodeType&&t,_T=qc&&qc.exports===WO,UO=_T&&ST.process,Ss=(function(){try{var H=qc&&qc.require&&qc.require("util").types;return H||UO&&UO.binding&&UO.binding("util")}catch{}})(),CT=Ss&&Ss.isArrayBuffer,$T=Ss&&Ss.isDate,PT=Ss&&Ss.isMap,TT=Ss&&Ss.isRegExp,AT=Ss&&Ss.isSet,ET=Ss&&Ss.isTypedArray;function Zr(H,oe,ie){switch(ie.length){case 0:return H.call(oe);case 1:return H.call(oe,ie[0]);case 2:return H.call(oe,ie[0],ie[1]);case 3:return H.call(oe,ie[0],ie[1],ie[2])}return H.apply(oe,ie)}function MG(H,oe,ie,Me){for(var rt=-1,Ht=H==null?0:H.length;++rt<Ht;){var di=H[rt];oe(Me,di,ie(di),H)}return Me}function _s(H,oe){for(var ie=-1,Me=H==null?0:H.length;++ie<Me&&oe(H[ie],ie,H)!==!1;);return H}function NG(H,oe){for(var ie=H==null?0:H.length;ie--&&oe(H[ie],ie,H)!==!1;);return H}function RT(H,oe){for(var ie=-1,Me=H==null?0:H.length;++ie<Me;)if(!oe(H[ie],ie,H))return!1;return!0}function El(H,oe){for(var ie=-1,Me=H==null?0:H.length,rt=0,Ht=[];++ie<Me;){var di=H[ie];oe(di,ie,H)&&(Ht[rt++]=di)}return Ht}function R0(H,oe){var ie=H==null?0:H.length;return!!ie&&Ou(H,oe,0)>-1}function VO(H,oe,ie){for(var Me=-1,rt=H==null?0:H.length;++Me<rt;)if(ie(oe,H[Me]))return!0;return!1}function En(H,oe){for(var ie=-1,Me=H==null?0:H.length,rt=Array(Me);++ie<Me;)rt[ie]=oe(H[ie],ie,H);return rt}function Rl(H,oe){for(var ie=-1,Me=oe.length,rt=H.length;++ie<Me;)H[rt+ie]=oe[ie];return H}function HO(H,oe,ie,Me){var rt=-1,Ht=H==null?0:H.length;for(Me&&Ht&&(ie=H[++rt]);++rt<Ht;)ie=oe(ie,H[rt],rt,H);return ie}function LG(H,oe,ie,Me){var rt=H==null?0:H.length;for(Me&&rt&&(ie=H[--rt]);rt--;)ie=oe(ie,H[rt],rt,H);return ie}function ZO(H,oe){for(var ie=-1,Me=H==null?0:H.length;++ie<Me;)if(oe(H[ie],ie,H))return!0;return!1}var jG=GO("length");function IG(H){return H.split("")}function BG(H){return H.match(Yt)||[]}function DT(H,oe,ie){var Me;return ie(H,function(rt,Ht,di){if(oe(rt,Ht,di))return Me=Ht,!1}),Me}function D0(H,oe,ie,Me){for(var rt=H.length,Ht=ie+(Me?1:-1);Me?Ht--:++Ht<rt;)if(oe(H[Ht],Ht,H))return Ht;return-1}function Ou(H,oe,ie){return oe===oe?YG(H,oe,ie):D0(H,MT,ie)}function FG(H,oe,ie,Me){for(var rt=ie-1,Ht=H.length;++rt<Ht;)if(Me(H[rt],oe))return rt;return-1}function MT(H){return H!==H}function NT(H,oe){var ie=H==null?0:H.length;return ie?YO(H,oe)/ie:je}function GO(H){return function(oe){return oe==null?n:oe[H]}}function XO(H){return function(oe){return H==null?n:H[oe]}}function LT(H,oe,ie,Me,rt){return rt(H,function(Ht,di,on){ie=Me?(Me=!1,Ht):oe(ie,Ht,di,on)}),ie}function QG(H,oe){var ie=H.length;for(H.sort(oe);ie--;)H[ie]=H[ie].value;return H}function YO(H,oe){for(var ie,Me=-1,rt=H.length;++Me<rt;){var Ht=oe(H[Me]);Ht!==n&&(ie=ie===n?Ht:ie+Ht)}return ie}function KO(H,oe){for(var ie=-1,Me=Array(H);++ie<H;)Me[ie]=oe(ie);return Me}function zG(H,oe){return En(oe,function(ie){return[ie,H[ie]]})}function jT(H){return H&&H.slice(0,QT(H)+1).replace(Ue,"")}function Gr(H){return function(oe){return H(oe)}}function JO(H,oe){return En(oe,function(ie){return H[ie]})}function Ip(H,oe){return H.has(oe)}function IT(H,oe){for(var ie=-1,Me=H.length;++ie<Me&&Ou(oe,H[ie],0)>-1;);return ie}function BT(H,oe){for(var ie=H.length;ie--&&Ou(oe,H[ie],0)>-1;);return ie}function qG(H,oe){for(var ie=H.length,Me=0;ie--;)H[ie]===oe&&++Me;return Me}var WG=XO($G),UG=XO(PG);function VG(H){return"\\"+AG[H]}function HG(H,oe){return H==null?n:H[oe]}function xu(H){return xG.test(H)}function ZG(H){return SG.test(H)}function GG(H){for(var oe,ie=[];!(oe=H.next()).done;)ie.push(oe.value);return ie}function ex(H){var oe=-1,ie=Array(H.size);return H.forEach(function(Me,rt){ie[++oe]=[rt,Me]}),ie}function FT(H,oe){return function(ie){return H(oe(ie))}}function Dl(H,oe){for(var ie=-1,Me=H.length,rt=0,Ht=[];++ie<Me;){var di=H[ie];(di===oe||di===f)&&(H[ie]=f,Ht[rt++]=ie)}return Ht}function M0(H){var oe=-1,ie=Array(H.size);return H.forEach(function(Me){ie[++oe]=Me}),ie}function XG(H){var oe=-1,ie=Array(H.size);return H.forEach(function(Me){ie[++oe]=[Me,Me]}),ie}function YG(H,oe,ie){for(var Me=ie-1,rt=H.length;++Me<rt;)if(H[Me]===oe)return Me;return-1}function KG(H,oe,ie){for(var Me=ie+1;Me--;)if(H[Me]===oe)return Me;return Me}function Su(H){return xu(H)?eX(H):jG(H)}function ra(H){return xu(H)?tX(H):IG(H)}function QT(H){for(var oe=H.length;oe--&&He.test(H.charAt(oe)););return oe}var JG=XO(TG);function eX(H){for(var oe=qO.lastIndex=0;qO.test(H);)++oe;return oe}function tX(H){return H.match(qO)||[]}function nX(H){return H.match(OG)||[]}var iX=(function H(oe){oe=oe==null?Ri:_u.defaults(Ri.Object(),oe,_u.pick(Ri,_G));var ie=oe.Array,Me=oe.Date,rt=oe.Error,Ht=oe.Function,di=oe.Math,on=oe.Object,tx=oe.RegExp,rX=oe.String,Cs=oe.TypeError,N0=ie.prototype,sX=Ht.prototype,Cu=on.prototype,L0=oe["__core-js_shared__"],j0=sX.toString,tn=Cu.hasOwnProperty,aX=0,zT=(function(){var d=/[^.]+$/.exec(L0&&L0.keys&&L0.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""})(),I0=Cu.toString,oX=j0.call(on),lX=Ri._,cX=tx("^"+j0.call(tn).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B0=_T?oe.Buffer:n,Ml=oe.Symbol,F0=oe.Uint8Array,qT=B0?B0.allocUnsafe:n,Q0=FT(on.getPrototypeOf,on),WT=on.create,UT=Cu.propertyIsEnumerable,z0=N0.splice,VT=Ml?Ml.isConcatSpreadable:n,Bp=Ml?Ml.iterator:n,Wc=Ml?Ml.toStringTag:n,q0=(function(){try{var d=Gc(on,"defineProperty");return d({},"",{}),d}catch{}})(),fX=oe.clearTimeout!==Ri.clearTimeout&&oe.clearTimeout,uX=Me&&Me.now!==Ri.Date.now&&Me.now,dX=oe.setTimeout!==Ri.setTimeout&&oe.setTimeout,W0=di.ceil,U0=di.floor,nx=on.getOwnPropertySymbols,hX=B0?B0.isBuffer:n,HT=oe.isFinite,pX=N0.join,mX=FT(on.keys,on),hi=di.max,Wi=di.min,gX=Me.now,vX=oe.parseInt,ZT=di.random,bX=N0.reverse,ix=Gc(oe,"DataView"),Fp=Gc(oe,"Map"),rx=Gc(oe,"Promise"),$u=Gc(oe,"Set"),Qp=Gc(oe,"WeakMap"),zp=Gc(on,"create"),V0=Qp&&new Qp,Pu={},yX=Xc(ix),wX=Xc(Fp),kX=Xc(rx),OX=Xc($u),xX=Xc(Qp),H0=Ml?Ml.prototype:n,qp=H0?H0.valueOf:n,GT=H0?H0.toString:n;function L(d){if(zn(d)&&!ct(d)&&!(d instanceof Rt)){if(d instanceof $s)return d;if(tn.call(d,"__wrapped__"))return X6(d)}return new $s(d)}var Tu=(function(){function d(){}return function(p){if(!In(p))return{};if(WT)return WT(p);d.prototype=p;var y=new d;return d.prototype=n,y}})();function Z0(){}function $s(d,p){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=n}L.templateSettings={escape:V,evaluate:G,interpolate:se,variable:"",imports:{_:L}},L.prototype=Z0.prototype,L.prototype.constructor=L,$s.prototype=Tu(Z0.prototype),$s.prototype.constructor=$s;function Rt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=we,this.__views__=[]}function SX(){var d=new Rt(this.__wrapped__);return d.__actions__=yr(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=yr(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=yr(this.__views__),d}function _X(){if(this.__filtered__){var d=new Rt(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function CX(){var d=this.__wrapped__.value(),p=this.__dir__,y=ct(d),C=p<0,E=y?d.length:0,I=IY(0,E,this.__views__),F=I.start,W=I.end,Z=W-F,le=C?W:F-1,ce=this.__iteratees__,de=ce.length,Pe=0,We=Wi(Z,this.__takeCount__);if(!y||!C&&E==Z&&We==Z)return y6(d,this.__actions__);var Je=[];e:for(;Z--&&Pe<We;){le+=p;for(var wt=-1,et=d[le];++wt<de;){var Ct=ce[wt],Lt=Ct.iteratee,Kr=Ct.type,rr=Lt(et);if(Kr==Y)et=rr;else if(!rr){if(Kr==z)continue e;break e}}Je[Pe++]=et}return Je}Rt.prototype=Tu(Z0.prototype),Rt.prototype.constructor=Rt;function Uc(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var C=d[p];this.set(C[0],C[1])}}function $X(){this.__data__=zp?zp(null):{},this.size=0}function PX(d){var p=this.has(d)&&delete this.__data__[d];return this.size-=p?1:0,p}function TX(d){var p=this.__data__;if(zp){var y=p[d];return y===l?n:y}return tn.call(p,d)?p[d]:n}function AX(d){var p=this.__data__;return zp?p[d]!==n:tn.call(p,d)}function EX(d,p){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=zp&&p===n?l:p,this}Uc.prototype.clear=$X,Uc.prototype.delete=PX,Uc.prototype.get=TX,Uc.prototype.has=AX,Uc.prototype.set=EX;function Bo(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var C=d[p];this.set(C[0],C[1])}}function RX(){this.__data__=[],this.size=0}function DX(d){var p=this.__data__,y=G0(p,d);if(y<0)return!1;var C=p.length-1;return y==C?p.pop():z0.call(p,y,1),--this.size,!0}function MX(d){var p=this.__data__,y=G0(p,d);return y<0?n:p[y][1]}function NX(d){return G0(this.__data__,d)>-1}function LX(d,p){var y=this.__data__,C=G0(y,d);return C<0?(++this.size,y.push([d,p])):y[C][1]=p,this}Bo.prototype.clear=RX,Bo.prototype.delete=DX,Bo.prototype.get=MX,Bo.prototype.has=NX,Bo.prototype.set=LX;function Fo(d){var p=-1,y=d==null?0:d.length;for(this.clear();++p<y;){var C=d[p];this.set(C[0],C[1])}}function jX(){this.size=0,this.__data__={hash:new Uc,map:new(Fp||Bo),string:new Uc}}function IX(d){var p=ov(this,d).delete(d);return this.size-=p?1:0,p}function BX(d){return ov(this,d).get(d)}function FX(d){return ov(this,d).has(d)}function QX(d,p){var y=ov(this,d),C=y.size;return y.set(d,p),this.size+=y.size==C?0:1,this}Fo.prototype.clear=jX,Fo.prototype.delete=IX,Fo.prototype.get=BX,Fo.prototype.has=FX,Fo.prototype.set=QX;function Vc(d){var p=-1,y=d==null?0:d.length;for(this.__data__=new Fo;++p<y;)this.add(d[p])}function zX(d){return this.__data__.set(d,l),this}function qX(d){return this.__data__.has(d)}Vc.prototype.add=Vc.prototype.push=zX,Vc.prototype.has=qX;function sa(d){var p=this.__data__=new Bo(d);this.size=p.size}function WX(){this.__data__=new Bo,this.size=0}function UX(d){var p=this.__data__,y=p.delete(d);return this.size=p.size,y}function VX(d){return this.__data__.get(d)}function HX(d){return this.__data__.has(d)}function ZX(d,p){var y=this.__data__;if(y instanceof Bo){var C=y.__data__;if(!Fp||C.length<r-1)return C.push([d,p]),this.size=++y.size,this;y=this.__data__=new Fo(C)}return y.set(d,p),this.size=y.size,this}sa.prototype.clear=WX,sa.prototype.delete=UX,sa.prototype.get=VX,sa.prototype.has=HX,sa.prototype.set=ZX;function XT(d,p){var y=ct(d),C=!y&&Yc(d),E=!y&&!C&&Bl(d),I=!y&&!C&&!E&&Du(d),F=y||C||E||I,W=F?KO(d.length,rX):[],Z=W.length;for(var le in d)(p||tn.call(d,le))&&!(F&&(le=="length"||E&&(le=="offset"||le=="parent")||I&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Wo(le,Z)))&&W.push(le);return W}function YT(d){var p=d.length;return p?d[mx(0,p-1)]:n}function GX(d,p){return lv(yr(d),Hc(p,0,d.length))}function XX(d){return lv(yr(d))}function sx(d,p,y){(y!==n&&!aa(d[p],y)||y===n&&!(p in d))&&Qo(d,p,y)}function Wp(d,p,y){var C=d[p];(!(tn.call(d,p)&&aa(C,y))||y===n&&!(p in d))&&Qo(d,p,y)}function G0(d,p){for(var y=d.length;y--;)if(aa(d[y][0],p))return y;return-1}function YX(d,p,y,C){return Nl(d,function(E,I,F){p(C,E,y(E),F)}),C}function KT(d,p){return d&&Fa(p,ki(p),d)}function KX(d,p){return d&&Fa(p,kr(p),d)}function Qo(d,p,y){p=="__proto__"&&q0?q0(d,p,{configurable:!0,enumerable:!0,value:y,writable:!0}):d[p]=y}function ax(d,p){for(var y=-1,C=p.length,E=ie(C),I=d==null;++y<C;)E[y]=I?n:Fx(d,p[y]);return E}function Hc(d,p,y){return d===d&&(y!==n&&(d=d<=y?d:y),p!==n&&(d=d>=p?d:p)),d}function Ps(d,p,y,C,E,I){var F,W=p&u,Z=p&h,le=p&m;if(y&&(F=E?y(d,C,E,I):y(d)),F!==n)return F;if(!In(d))return d;var ce=ct(d);if(ce){if(F=FY(d),!W)return yr(d,F)}else{var de=Ui(d),Pe=de==dt||de==dn;if(Bl(d))return O6(d,W);if(de==an||de==te||Pe&&!E){if(F=Z||Pe?{}:Q6(d),!W)return Z?TY(d,KX(F,d)):PY(d,KT(F,d))}else{if(!hn[de])return E?d:{};F=QY(d,de,W)}}I||(I=new sa);var We=I.get(d);if(We)return We;I.set(d,F),gA(d)?d.forEach(function(et){F.add(Ps(et,p,y,et,d,I))}):pA(d)&&d.forEach(function(et,Ct){F.set(Ct,Ps(et,p,y,Ct,d,I))});var Je=le?Z?Cx:_x:Z?kr:ki,wt=ce?n:Je(d);return _s(wt||d,function(et,Ct){wt&&(Ct=et,et=d[Ct]),Wp(F,Ct,Ps(et,p,y,Ct,d,I))}),F}function JX(d){var p=ki(d);return function(y){return JT(y,d,p)}}function JT(d,p,y){var C=y.length;if(d==null)return!C;for(d=on(d);C--;){var E=y[C],I=p[E],F=d[E];if(F===n&&!(E in d)||!I(F))return!1}return!0}function e6(d,p,y){if(typeof d!="function")throw new Cs(a);return Yp(function(){d.apply(n,y)},p)}function Up(d,p,y,C){var E=-1,I=R0,F=!0,W=d.length,Z=[],le=p.length;if(!W)return Z;y&&(p=En(p,Gr(y))),C?(I=VO,F=!1):p.length>=r&&(I=Ip,F=!1,p=new Vc(p));e:for(;++E<W;){var ce=d[E],de=y==null?ce:y(ce);if(ce=C||ce!==0?ce:0,F&&de===de){for(var Pe=le;Pe--;)if(p[Pe]===de)continue e;Z.push(ce)}else I(p,de,C)||Z.push(ce)}return Z}var Nl=$6(Ba),t6=$6(lx,!0);function eY(d,p){var y=!0;return Nl(d,function(C,E,I){return y=!!p(C,E,I),y}),y}function X0(d,p,y){for(var C=-1,E=d.length;++C<E;){var I=d[C],F=p(I);if(F!=null&&(W===n?F===F&&!Yr(F):y(F,W)))var W=F,Z=I}return Z}function tY(d,p,y,C){var E=d.length;for(y=gt(y),y<0&&(y=-y>E?0:E+y),C=C===n||C>E?E:gt(C),C<0&&(C+=E),C=y>C?0:bA(C);y<C;)d[y++]=p;return d}function n6(d,p){var y=[];return Nl(d,function(C,E,I){p(C,E,I)&&y.push(C)}),y}function Di(d,p,y,C,E){var I=-1,F=d.length;for(y||(y=qY),E||(E=[]);++I<F;){var W=d[I];p>0&&y(W)?p>1?Di(W,p-1,y,C,E):Rl(E,W):C||(E[E.length]=W)}return E}var ox=P6(),i6=P6(!0);function Ba(d,p){return d&&ox(d,p,ki)}function lx(d,p){return d&&i6(d,p,ki)}function Y0(d,p){return El(p,function(y){return Uo(d[y])})}function Zc(d,p){p=jl(p,d);for(var y=0,C=p.length;d!=null&&y<C;)d=d[Qa(p[y++])];return y&&y==C?d:n}function r6(d,p,y){var C=p(d);return ct(d)?C:Rl(C,y(d))}function nr(d){return d==null?d===n?xe:kn:Wc&&Wc in on(d)?jY(d):XY(d)}function cx(d,p){return d>p}function nY(d,p){return d!=null&&tn.call(d,p)}function iY(d,p){return d!=null&&p in on(d)}function rY(d,p,y){return d>=Wi(p,y)&&d<hi(p,y)}function fx(d,p,y){for(var C=y?VO:R0,E=d[0].length,I=d.length,F=I,W=ie(I),Z=1/0,le=[];F--;){var ce=d[F];F&&p&&(ce=En(ce,Gr(p))),Z=Wi(ce.length,Z),W[F]=!y&&(p||E>=120&&ce.length>=120)?new Vc(F&&ce):n}ce=d[0];var de=-1,Pe=W[0];e:for(;++de<E&&le.length<Z;){var We=ce[de],Je=p?p(We):We;if(We=y||We!==0?We:0,!(Pe?Ip(Pe,Je):C(le,Je,y))){for(F=I;--F;){var wt=W[F];if(!(wt?Ip(wt,Je):C(d[F],Je,y)))continue e}Pe&&Pe.push(Je),le.push(We)}}return le}function sY(d,p,y,C){return Ba(d,function(E,I,F){p(C,y(E),I,F)}),C}function Vp(d,p,y){p=jl(p,d),d=U6(d,p);var C=d==null?d:d[Qa(As(p))];return C==null?n:Zr(C,d,y)}function s6(d){return zn(d)&&nr(d)==te}function aY(d){return zn(d)&&nr(d)==Et}function oY(d){return zn(d)&&nr(d)==mt}function Hp(d,p,y,C,E){return d===p?!0:d==null||p==null||!zn(d)&&!zn(p)?d!==d&&p!==p:lY(d,p,y,C,Hp,E)}function lY(d,p,y,C,E,I){var F=ct(d),W=ct(p),Z=F?q:Ui(d),le=W?q:Ui(p);Z=Z==te?an:Z,le=le==te?an:le;var ce=Z==an,de=le==an,Pe=Z==le;if(Pe&&Bl(d)){if(!Bl(p))return!1;F=!0,ce=!1}if(Pe&&!ce)return I||(I=new sa),F||Du(d)?I6(d,p,y,C,E,I):NY(d,p,Z,y,C,E,I);if(!(y&g)){var We=ce&&tn.call(d,"__wrapped__"),Je=de&&tn.call(p,"__wrapped__");if(We||Je){var wt=We?d.value():d,et=Je?p.value():p;return I||(I=new sa),E(wt,et,y,C,I)}}return Pe?(I||(I=new sa),LY(d,p,y,C,E,I)):!1}function cY(d){return zn(d)&&Ui(d)==Ot}function ux(d,p,y,C){var E=y.length,I=E,F=!C;if(d==null)return!I;for(d=on(d);E--;){var W=y[E];if(F&&W[2]?W[1]!==d[W[0]]:!(W[0]in d))return!1}for(;++E<I;){W=y[E];var Z=W[0],le=d[Z],ce=W[1];if(F&&W[2]){if(le===n&&!(Z in d))return!1}else{var de=new sa;if(C)var Pe=C(le,ce,Z,d,p,de);if(!(Pe===n?Hp(ce,le,g|v,C,de):Pe))return!1}}return!0}function a6(d){if(!In(d)||UY(d))return!1;var p=Uo(d)?cX:xs;return p.test(Xc(d))}function fY(d){return zn(d)&&nr(d)==jn}function uY(d){return zn(d)&&Ui(d)==On}function dY(d){return zn(d)&&pv(d.length)&&!!_n[nr(d)]}function o6(d){return typeof d=="function"?d:d==null?Or:typeof d=="object"?ct(d)?f6(d[0],d[1]):c6(d):TA(d)}function dx(d){if(!Xp(d))return mX(d);var p=[];for(var y in on(d))tn.call(d,y)&&y!="constructor"&&p.push(y);return p}function hY(d){if(!In(d))return GY(d);var p=Xp(d),y=[];for(var C in d)C=="constructor"&&(p||!tn.call(d,C))||y.push(C);return y}function hx(d,p){return d<p}function l6(d,p){var y=-1,C=wr(d)?ie(d.length):[];return Nl(d,function(E,I,F){C[++y]=p(E,I,F)}),C}function c6(d){var p=Px(d);return p.length==1&&p[0][2]?q6(p[0][0],p[0][1]):function(y){return y===d||ux(y,d,p)}}function f6(d,p){return Ax(d)&&z6(p)?q6(Qa(d),p):function(y){var C=Fx(y,d);return C===n&&C===p?Qx(y,d):Hp(p,C,g|v)}}function K0(d,p,y,C,E){d!==p&&ox(p,function(I,F){if(E||(E=new sa),In(I))pY(d,p,F,y,K0,C,E);else{var W=C?C(Rx(d,F),I,F+"",d,p,E):n;W===n&&(W=I),sx(d,F,W)}},kr)}function pY(d,p,y,C,E,I,F){var W=Rx(d,y),Z=Rx(p,y),le=F.get(Z);if(le){sx(d,y,le);return}var ce=I?I(W,Z,y+"",d,p,F):n,de=ce===n;if(de){var Pe=ct(Z),We=!Pe&&Bl(Z),Je=!Pe&&!We&&Du(Z);ce=Z,Pe||We||Je?ct(W)?ce=W:Vn(W)?ce=yr(W):We?(de=!1,ce=O6(Z,!0)):Je?(de=!1,ce=x6(Z,!0)):ce=[]:Kp(Z)||Yc(Z)?(ce=W,Yc(W)?ce=yA(W):(!In(W)||Uo(W))&&(ce=Q6(Z))):de=!1}de&&(F.set(Z,ce),E(ce,Z,C,I,F),F.delete(Z)),sx(d,y,ce)}function u6(d,p){var y=d.length;if(y)return p+=p<0?y:0,Wo(p,y)?d[p]:n}function d6(d,p,y){p.length?p=En(p,function(I){return ct(I)?function(F){return Zc(F,I.length===1?I[0]:I)}:I}):p=[Or];var C=-1;p=En(p,Gr(Ge()));var E=l6(d,function(I,F,W){var Z=En(p,function(le){return le(I)});return{criteria:Z,index:++C,value:I}});return QG(E,function(I,F){return $Y(I,F,y)})}function mY(d,p){return h6(d,p,function(y,C){return Qx(d,C)})}function h6(d,p,y){for(var C=-1,E=p.length,I={};++C<E;){var F=p[C],W=Zc(d,F);y(W,F)&&Zp(I,jl(F,d),W)}return I}function gY(d){return function(p){return Zc(p,d)}}function px(d,p,y,C){var E=C?FG:Ou,I=-1,F=p.length,W=d;for(d===p&&(p=yr(p)),y&&(W=En(d,Gr(y)));++I<F;)for(var Z=0,le=p[I],ce=y?y(le):le;(Z=E(W,ce,Z,C))>-1;)W!==d&&z0.call(W,Z,1),z0.call(d,Z,1);return d}function p6(d,p){for(var y=d?p.length:0,C=y-1;y--;){var E=p[y];if(y==C||E!==I){var I=E;Wo(E)?z0.call(d,E,1):bx(d,E)}}return d}function mx(d,p){return d+U0(ZT()*(p-d+1))}function vY(d,p,y,C){for(var E=-1,I=hi(W0((p-d)/(y||1)),0),F=ie(I);I--;)F[C?I:++E]=d,d+=y;return F}function gx(d,p){var y="";if(!d||p<1||p>he)return y;do p%2&&(y+=d),p=U0(p/2),p&&(d+=d);while(p);return y}function St(d,p){return Dx(W6(d,p,Or),d+"")}function bY(d){return YT(Mu(d))}function yY(d,p){var y=Mu(d);return lv(y,Hc(p,0,y.length))}function Zp(d,p,y,C){if(!In(d))return d;p=jl(p,d);for(var E=-1,I=p.length,F=I-1,W=d;W!=null&&++E<I;){var Z=Qa(p[E]),le=y;if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return d;if(E!=F){var ce=W[Z];le=C?C(ce,Z,W):n,le===n&&(le=In(ce)?ce:Wo(p[E+1])?[]:{})}Wp(W,Z,le),W=W[Z]}return d}var m6=V0?function(d,p){return V0.set(d,p),d}:Or,wY=q0?function(d,p){return q0(d,"toString",{configurable:!0,enumerable:!1,value:qx(p),writable:!0})}:Or;function kY(d){return lv(Mu(d))}function Ts(d,p,y){var C=-1,E=d.length;p<0&&(p=-p>E?0:E+p),y=y>E?E:y,y<0&&(y+=E),E=p>y?0:y-p>>>0,p>>>=0;for(var I=ie(E);++C<E;)I[C]=d[C+p];return I}function OY(d,p){var y;return Nl(d,function(C,E,I){return y=p(C,E,I),!y}),!!y}function J0(d,p,y){var C=0,E=d==null?C:d.length;if(typeof p=="number"&&p===p&&E<=B){for(;C<E;){var I=C+E>>>1,F=d[I];F!==null&&!Yr(F)&&(y?F<=p:F<p)?C=I+1:E=I}return E}return vx(d,p,Or,y)}function vx(d,p,y,C){var E=0,I=d==null?0:d.length;if(I===0)return 0;p=y(p);for(var F=p!==p,W=p===null,Z=Yr(p),le=p===n;E<I;){var ce=U0((E+I)/2),de=y(d[ce]),Pe=de!==n,We=de===null,Je=de===de,wt=Yr(de);if(F)var et=C||Je;else le?et=Je&&(C||Pe):W?et=Je&&Pe&&(C||!We):Z?et=Je&&Pe&&!We&&(C||!wt):We||wt?et=!1:et=C?de<=p:de<p;et?E=ce+1:I=ce}return Wi(I,ge)}function g6(d,p){for(var y=-1,C=d.length,E=0,I=[];++y<C;){var F=d[y],W=p?p(F):F;if(!y||!aa(W,Z)){var Z=W;I[E++]=F===0?0:F}}return I}function v6(d){return typeof d=="number"?d:Yr(d)?je:+d}function Xr(d){if(typeof d=="string")return d;if(ct(d))return En(d,Xr)+"";if(Yr(d))return GT?GT.call(d):"";var p=d+"";return p=="0"&&1/d==-ne?"-0":p}function Ll(d,p,y){var C=-1,E=R0,I=d.length,F=!0,W=[],Z=W;if(y)F=!1,E=VO;else if(I>=r){var le=p?null:DY(d);if(le)return M0(le);F=!1,E=Ip,Z=new Vc}else Z=p?[]:W;e:for(;++C<I;){var ce=d[C],de=p?p(ce):ce;if(ce=y||ce!==0?ce:0,F&&de===de){for(var Pe=Z.length;Pe--;)if(Z[Pe]===de)continue e;p&&Z.push(de),W.push(ce)}else E(Z,de,y)||(Z!==W&&Z.push(de),W.push(ce))}return W}function bx(d,p){return p=jl(p,d),d=U6(d,p),d==null||delete d[Qa(As(p))]}function b6(d,p,y,C){return Zp(d,p,y(Zc(d,p)),C)}function ev(d,p,y,C){for(var E=d.length,I=C?E:-1;(C?I--:++I<E)&&p(d[I],I,d););return y?Ts(d,C?0:I,C?I+1:E):Ts(d,C?I+1:0,C?E:I)}function y6(d,p){var y=d;return y instanceof Rt&&(y=y.value()),HO(p,function(C,E){return E.func.apply(E.thisArg,Rl([C],E.args))},y)}function yx(d,p,y){var C=d.length;if(C<2)return C?Ll(d[0]):[];for(var E=-1,I=ie(C);++E<C;)for(var F=d[E],W=-1;++W<C;)W!=E&&(I[E]=Up(I[E]||F,d[W],p,y));return Ll(Di(I,1),p,y)}function w6(d,p,y){for(var C=-1,E=d.length,I=p.length,F={};++C<E;){var W=C<I?p[C]:n;y(F,d[C],W)}return F}function wx(d){return Vn(d)?d:[]}function kx(d){return typeof d=="function"?d:Or}function jl(d,p){return ct(d)?d:Ax(d,p)?[d]:G6(Kt(d))}var xY=St;function Il(d,p,y){var C=d.length;return y=y===n?C:y,!p&&y>=C?d:Ts(d,p,y)}var k6=fX||function(d){return Ri.clearTimeout(d)};function O6(d,p){if(p)return d.slice();var y=d.length,C=qT?qT(y):new d.constructor(y);return d.copy(C),C}function Ox(d){var p=new d.constructor(d.byteLength);return new F0(p).set(new F0(d)),p}function SY(d,p){var y=p?Ox(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.byteLength)}function _Y(d){var p=new d.constructor(d.source,Io.exec(d));return p.lastIndex=d.lastIndex,p}function CY(d){return qp?on(qp.call(d)):{}}function x6(d,p){var y=p?Ox(d.buffer):d.buffer;return new d.constructor(y,d.byteOffset,d.length)}function S6(d,p){if(d!==p){var y=d!==n,C=d===null,E=d===d,I=Yr(d),F=p!==n,W=p===null,Z=p===p,le=Yr(p);if(!W&&!le&&!I&&d>p||I&&F&&Z&&!W&&!le||C&&F&&Z||!y&&Z||!E)return 1;if(!C&&!I&&!le&&d<p||le&&y&&E&&!C&&!I||W&&y&&E||!F&&E||!Z)return-1}return 0}function $Y(d,p,y){for(var C=-1,E=d.criteria,I=p.criteria,F=E.length,W=y.length;++C<F;){var Z=S6(E[C],I[C]);if(Z){if(C>=W)return Z;var le=y[C];return Z*(le=="desc"?-1:1)}}return d.index-p.index}function _6(d,p,y,C){for(var E=-1,I=d.length,F=y.length,W=-1,Z=p.length,le=hi(I-F,0),ce=ie(Z+le),de=!C;++W<Z;)ce[W]=p[W];for(;++E<F;)(de||E<I)&&(ce[y[E]]=d[E]);for(;le--;)ce[W++]=d[E++];return ce}function C6(d,p,y,C){for(var E=-1,I=d.length,F=-1,W=y.length,Z=-1,le=p.length,ce=hi(I-W,0),de=ie(ce+le),Pe=!C;++E<ce;)de[E]=d[E];for(var We=E;++Z<le;)de[We+Z]=p[Z];for(;++F<W;)(Pe||E<I)&&(de[We+y[F]]=d[E++]);return de}function yr(d,p){var y=-1,C=d.length;for(p||(p=ie(C));++y<C;)p[y]=d[y];return p}function Fa(d,p,y,C){var E=!y;y||(y={});for(var I=-1,F=p.length;++I<F;){var W=p[I],Z=C?C(y[W],d[W],W,y,d):n;Z===n&&(Z=d[W]),E?Qo(y,W,Z):Wp(y,W,Z)}return y}function PY(d,p){return Fa(d,Tx(d),p)}function TY(d,p){return Fa(d,B6(d),p)}function tv(d,p){return function(y,C){var E=ct(y)?MG:YX,I=p?p():{};return E(y,d,Ge(C,2),I)}}function Au(d){return St(function(p,y){var C=-1,E=y.length,I=E>1?y[E-1]:n,F=E>2?y[2]:n;for(I=d.length>3&&typeof I=="function"?(E--,I):n,F&&ir(y[0],y[1],F)&&(I=E<3?n:I,E=1),p=on(p);++C<E;){var W=y[C];W&&d(p,W,C,I)}return p})}function $6(d,p){return function(y,C){if(y==null)return y;if(!wr(y))return d(y,C);for(var E=y.length,I=p?E:-1,F=on(y);(p?I--:++I<E)&&C(F[I],I,F)!==!1;);return y}}function P6(d){return function(p,y,C){for(var E=-1,I=on(p),F=C(p),W=F.length;W--;){var Z=F[d?W:++E];if(y(I[Z],Z,I)===!1)break}return p}}function AY(d,p,y){var C=p&w,E=Gp(d);function I(){var F=this&&this!==Ri&&this instanceof I?E:d;return F.apply(C?y:this,arguments)}return I}function T6(d){return function(p){p=Kt(p);var y=xu(p)?ra(p):n,C=y?y[0]:p.charAt(0),E=y?Il(y,1).join(""):p.slice(1);return C[d]()+E}}function Eu(d){return function(p){return HO($A(CA(p).replace(wG,"")),d,"")}}function Gp(d){return function(){var p=arguments;switch(p.length){case 0:return new d;case 1:return new d(p[0]);case 2:return new d(p[0],p[1]);case 3:return new d(p[0],p[1],p[2]);case 4:return new d(p[0],p[1],p[2],p[3]);case 5:return new d(p[0],p[1],p[2],p[3],p[4]);case 6:return new d(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new d(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var y=Tu(d.prototype),C=d.apply(y,p);return In(C)?C:y}}function EY(d,p,y){var C=Gp(d);function E(){for(var I=arguments.length,F=ie(I),W=I,Z=Ru(E);W--;)F[W]=arguments[W];var le=I<3&&F[0]!==Z&&F[I-1]!==Z?[]:Dl(F,Z);if(I-=le.length,I<y)return M6(d,p,nv,E.placeholder,n,F,le,n,n,y-I);var ce=this&&this!==Ri&&this instanceof E?C:d;return Zr(ce,this,F)}return E}function A6(d){return function(p,y,C){var E=on(p);if(!wr(p)){var I=Ge(y,3);p=ki(p),y=function(W){return I(E[W],W,E)}}var F=d(p,y,C);return F>-1?E[I?p[F]:F]:n}}function E6(d){return qo(function(p){var y=p.length,C=y,E=$s.prototype.thru;for(d&&p.reverse();C--;){var I=p[C];if(typeof I!="function")throw new Cs(a);if(E&&!F&&av(I)=="wrapper")var F=new $s([],!0)}for(C=F?C:y;++C<y;){I=p[C];var W=av(I),Z=W=="wrapper"?$x(I):n;Z&&Ex(Z[0])&&Z[1]==(_|$|S|P)&&!Z[4].length&&Z[9]==1?F=F[av(Z[0])].apply(F,Z[3]):F=I.length==1&&Ex(I)?F[W]():F.thru(I)}return function(){var le=arguments,ce=le[0];if(F&&le.length==1&&ct(ce))return F.plant(ce).value();for(var de=0,Pe=y?p[de].apply(this,le):ce;++de<y;)Pe=p[de].call(this,Pe);return Pe}})}function nv(d,p,y,C,E,I,F,W,Z,le){var ce=p&_,de=p&w,Pe=p&O,We=p&($|T),Je=p&A,wt=Pe?n:Gp(d);function et(){for(var Ct=arguments.length,Lt=ie(Ct),Kr=Ct;Kr--;)Lt[Kr]=arguments[Kr];if(We)var rr=Ru(et),Jr=qG(Lt,rr);if(C&&(Lt=_6(Lt,C,E,We)),I&&(Lt=C6(Lt,I,F,We)),Ct-=Jr,We&&Ct<le){var Hn=Dl(Lt,rr);return M6(d,p,nv,et.placeholder,y,Lt,Hn,W,Z,le-Ct)}var oa=de?y:this,Ho=Pe?oa[d]:d;return Ct=Lt.length,W?Lt=YY(Lt,W):Je&&Ct>1&&Lt.reverse(),ce&&Z<Ct&&(Lt.length=Z),this&&this!==Ri&&this instanceof et&&(Ho=wt||Gp(Ho)),Ho.apply(oa,Lt)}return et}function R6(d,p){return function(y,C){return sY(y,d,p(C),{})}}function iv(d,p){return function(y,C){var E;if(y===n&&C===n)return p;if(y!==n&&(E=y),C!==n){if(E===n)return C;typeof y=="string"||typeof C=="string"?(y=Xr(y),C=Xr(C)):(y=v6(y),C=v6(C)),E=d(y,C)}return E}}function xx(d){return qo(function(p){return p=En(p,Gr(Ge())),St(function(y){var C=this;return d(p,function(E){return Zr(E,C,y)})})})}function rv(d,p){p=p===n?" ":Xr(p);var y=p.length;if(y<2)return y?gx(p,d):p;var C=gx(p,W0(d/Su(p)));return xu(p)?Il(ra(C),0,d).join(""):C.slice(0,d)}function RY(d,p,y,C){var E=p&w,I=Gp(d);function F(){for(var W=-1,Z=arguments.length,le=-1,ce=C.length,de=ie(ce+Z),Pe=this&&this!==Ri&&this instanceof F?I:d;++le<ce;)de[le]=C[le];for(;Z--;)de[le++]=arguments[++W];return Zr(Pe,E?y:this,de)}return F}function D6(d){return function(p,y,C){return C&&typeof C!="number"&&ir(p,y,C)&&(y=C=n),p=Vo(p),y===n?(y=p,p=0):y=Vo(y),C=C===n?p<y?1:-1:Vo(C),vY(p,y,C,d)}}function sv(d){return function(p,y){return typeof p=="string"&&typeof y=="string"||(p=Es(p),y=Es(y)),d(p,y)}}function M6(d,p,y,C,E,I,F,W,Z,le){var ce=p&$,de=ce?F:n,Pe=ce?n:F,We=ce?I:n,Je=ce?n:I;p|=ce?S:R,p&=~(ce?R:S),p&x||(p&=-4);var wt=[d,p,E,We,de,Je,Pe,W,Z,le],et=y.apply(n,wt);return Ex(d)&&V6(et,wt),et.placeholder=C,H6(et,d,p)}function Sx(d){var p=di[d];return function(y,C){if(y=Es(y),C=C==null?0:Wi(gt(C),292),C&&HT(y)){var E=(Kt(y)+"e").split("e"),I=p(E[0]+"e"+(+E[1]+C));return E=(Kt(I)+"e").split("e"),+(E[0]+"e"+(+E[1]-C))}return p(y)}}var DY=$u&&1/M0(new $u([,-0]))[1]==ne?function(d){return new $u(d)}:Vx;function N6(d){return function(p){var y=Ui(p);return y==Ot?ex(p):y==On?XG(p):zG(p,d(p))}}function zo(d,p,y,C,E,I,F,W){var Z=p&O;if(!Z&&typeof d!="function")throw new Cs(a);var le=C?C.length:0;if(le||(p&=-97,C=E=n),F=F===n?F:hi(gt(F),0),W=W===n?W:gt(W),le-=E?E.length:0,p&R){var ce=C,de=E;C=E=n}var Pe=Z?n:$x(d),We=[d,p,y,C,E,ce,de,I,F,W];if(Pe&&ZY(We,Pe),d=We[0],p=We[1],y=We[2],C=We[3],E=We[4],W=We[9]=We[9]===n?Z?0:d.length:hi(We[9]-le,0),!W&&p&($|T)&&(p&=-25),!p||p==w)var Je=AY(d,p,y);else p==$||p==T?Je=EY(d,p,W):(p==S||p==(w|S))&&!E.length?Je=RY(d,p,y,C):Je=nv.apply(n,We);var wt=Pe?m6:V6;return H6(wt(Je,We),d,p)}function L6(d,p,y,C){return d===n||aa(d,Cu[y])&&!tn.call(C,y)?p:d}function j6(d,p,y,C,E,I){return In(d)&&In(p)&&(I.set(p,d),K0(d,p,n,j6,I),I.delete(p)),d}function MY(d){return Kp(d)?n:d}function I6(d,p,y,C,E,I){var F=y&g,W=d.length,Z=p.length;if(W!=Z&&!(F&&Z>W))return!1;var le=I.get(d),ce=I.get(p);if(le&&ce)return le==p&&ce==d;var de=-1,Pe=!0,We=y&v?new Vc:n;for(I.set(d,p),I.set(p,d);++de<W;){var Je=d[de],wt=p[de];if(C)var et=F?C(wt,Je,de,p,d,I):C(Je,wt,de,d,p,I);if(et!==n){if(et)continue;Pe=!1;break}if(We){if(!ZO(p,function(Ct,Lt){if(!Ip(We,Lt)&&(Je===Ct||E(Je,Ct,y,C,I)))return We.push(Lt)})){Pe=!1;break}}else if(!(Je===wt||E(Je,wt,y,C,I))){Pe=!1;break}}return I.delete(d),I.delete(p),Pe}function NY(d,p,y,C,E,I,F){switch(y){case Xt:if(d.byteLength!=p.byteLength||d.byteOffset!=p.byteOffset)return!1;d=d.buffer,p=p.buffer;case Et:return!(d.byteLength!=p.byteLength||!I(new F0(d),new F0(p)));case yt:case mt:case wn:return aa(+d,+p);case Gt:return d.name==p.name&&d.message==p.message;case jn:case yi:return d==p+"";case Ot:var W=ex;case On:var Z=C&g;if(W||(W=M0),d.size!=p.size&&!Z)return!1;var le=F.get(d);if(le)return le==p;C|=v,F.set(d,p);var ce=I6(W(d),W(p),C,E,I,F);return F.delete(d),ce;case er:if(qp)return qp.call(d)==qp.call(p)}return!1}function LY(d,p,y,C,E,I){var F=y&g,W=_x(d),Z=W.length,le=_x(p),ce=le.length;if(Z!=ce&&!F)return!1;for(var de=Z;de--;){var Pe=W[de];if(!(F?Pe in p:tn.call(p,Pe)))return!1}var We=I.get(d),Je=I.get(p);if(We&&Je)return We==p&&Je==d;var wt=!0;I.set(d,p),I.set(p,d);for(var et=F;++de<Z;){Pe=W[de];var Ct=d[Pe],Lt=p[Pe];if(C)var Kr=F?C(Lt,Ct,Pe,p,d,I):C(Ct,Lt,Pe,d,p,I);if(!(Kr===n?Ct===Lt||E(Ct,Lt,y,C,I):Kr)){wt=!1;break}et||(et=Pe=="constructor")}if(wt&&!et){var rr=d.constructor,Jr=p.constructor;rr!=Jr&&"constructor"in d&&"constructor"in p&&!(typeof rr=="function"&&rr instanceof rr&&typeof Jr=="function"&&Jr instanceof Jr)&&(wt=!1)}return I.delete(d),I.delete(p),wt}function qo(d){return Dx(W6(d,n,J6),d+"")}function _x(d){return r6(d,ki,Tx)}function Cx(d){return r6(d,kr,B6)}var $x=V0?function(d){return V0.get(d)}:Vx;function av(d){for(var p=d.name+"",y=Pu[p],C=tn.call(Pu,p)?y.length:0;C--;){var E=y[C],I=E.func;if(I==null||I==d)return E.name}return p}function Ru(d){var p=tn.call(L,"placeholder")?L:d;return p.placeholder}function Ge(){var d=L.iteratee||Wx;return d=d===Wx?o6:d,arguments.length?d(arguments[0],arguments[1]):d}function ov(d,p){var y=d.__data__;return WY(p)?y[typeof p=="string"?"string":"hash"]:y.map}function Px(d){for(var p=ki(d),y=p.length;y--;){var C=p[y],E=d[C];p[y]=[C,E,z6(E)]}return p}function Gc(d,p){var y=HG(d,p);return a6(y)?y:n}function jY(d){var p=tn.call(d,Wc),y=d[Wc];try{d[Wc]=n;var C=!0}catch{}var E=I0.call(d);return C&&(p?d[Wc]=y:delete d[Wc]),E}var Tx=nx?function(d){return d==null?[]:(d=on(d),El(nx(d),function(p){return UT.call(d,p)}))}:Hx,B6=nx?function(d){for(var p=[];d;)Rl(p,Tx(d)),d=Q0(d);return p}:Hx,Ui=nr;(ix&&Ui(new ix(new ArrayBuffer(1)))!=Xt||Fp&&Ui(new Fp)!=Ot||rx&&Ui(rx.resolve())!=qi||$u&&Ui(new $u)!=On||Qp&&Ui(new Qp)!=qe)&&(Ui=function(d){var p=nr(d),y=p==an?d.constructor:n,C=y?Xc(y):"";if(C)switch(C){case yX:return Xt;case wX:return Ot;case kX:return qi;case OX:return On;case xX:return qe}return p});function IY(d,p,y){for(var C=-1,E=y.length;++C<E;){var I=y[C],F=I.size;switch(I.type){case"drop":d+=F;break;case"dropRight":p-=F;break;case"take":p=Wi(p,d+F);break;case"takeRight":d=hi(d,p-F);break}}return{start:d,end:p}}function BY(d){var p=d.match(nn);return p?p[1].split(Ve):[]}function F6(d,p,y){p=jl(p,d);for(var C=-1,E=p.length,I=!1;++C<E;){var F=Qa(p[C]);if(!(I=d!=null&&y(d,F)))break;d=d[F]}return I||++C!=E?I:(E=d==null?0:d.length,!!E&&pv(E)&&Wo(F,E)&&(ct(d)||Yc(d)))}function FY(d){var p=d.length,y=new d.constructor(p);return p&&typeof d[0]=="string"&&tn.call(d,"index")&&(y.index=d.index,y.input=d.input),y}function Q6(d){return typeof d.constructor=="function"&&!Xp(d)?Tu(Q0(d)):{}}function QY(d,p,y){var C=d.constructor;switch(p){case Et:return Ox(d);case yt:case mt:return new C(+d);case Xt:return SY(d,y);case ii:case tr:case xn:case Wr:case Os:case Ur:case Vr:case Hr:case br:return x6(d,y);case Ot:return new C;case wn:case yi:return new C(d);case jn:return _Y(d);case On:return new C;case er:return CY(d)}}function zY(d,p){var y=p.length;if(!y)return d;var C=y-1;return p[C]=(y>1?"& ":"")+p[C],p=p.join(y>2?", ":" "),d.replace(Sn,`{
|
||
/* [wrapped with `+p+`] */
|
||
`)}function qY(d){return ct(d)||Yc(d)||!!(VT&&d&&d[VT])}function Wo(d,p){var y=typeof d;return p=p??he,!!p&&(y=="number"||y!="symbol"&&yu.test(d))&&d>-1&&d%1==0&&d<p}function ir(d,p,y){if(!In(y))return!1;var C=typeof p;return(C=="number"?wr(y)&&Wo(p,y.length):C=="string"&&p in y)?aa(y[p],d):!1}function Ax(d,p){if(ct(d))return!1;var y=typeof d;return y=="number"||y=="symbol"||y=="boolean"||d==null||Yr(d)?!0:Te.test(d)||!pe.test(d)||p!=null&&d in on(p)}function WY(d){var p=typeof d;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?d!=="__proto__":d===null}function Ex(d){var p=av(d),y=L[p];if(typeof y!="function"||!(p in Rt.prototype))return!1;if(d===y)return!0;var C=$x(y);return!!C&&d===C[0]}function UY(d){return!!zT&&zT in d}var VY=L0?Uo:Zx;function Xp(d){var p=d&&d.constructor,y=typeof p=="function"&&p.prototype||Cu;return d===y}function z6(d){return d===d&&!In(d)}function q6(d,p){return function(y){return y==null?!1:y[d]===p&&(p!==n||d in on(y))}}function HY(d){var p=dv(d,function(C){return y.size===c&&y.clear(),C}),y=p.cache;return p}function ZY(d,p){var y=d[1],C=p[1],E=y|C,I=E<(w|O|_),F=C==_&&y==$||C==_&&y==P&&d[7].length<=p[8]||C==(_|P)&&p[7].length<=p[8]&&y==$;if(!(I||F))return d;C&w&&(d[2]=p[2],E|=y&w?0:x);var W=p[3];if(W){var Z=d[3];d[3]=Z?_6(Z,W,p[4]):W,d[4]=Z?Dl(d[3],f):p[4]}return W=p[5],W&&(Z=d[5],d[5]=Z?C6(Z,W,p[6]):W,d[6]=Z?Dl(d[5],f):p[6]),W=p[7],W&&(d[7]=W),C&_&&(d[8]=d[8]==null?p[8]:Wi(d[8],p[8])),d[9]==null&&(d[9]=p[9]),d[0]=p[0],d[1]=E,d}function GY(d){var p=[];if(d!=null)for(var y in on(d))p.push(y);return p}function XY(d){return I0.call(d)}function W6(d,p,y){return p=hi(p===n?d.length-1:p,0),function(){for(var C=arguments,E=-1,I=hi(C.length-p,0),F=ie(I);++E<I;)F[E]=C[p+E];E=-1;for(var W=ie(p+1);++E<p;)W[E]=C[E];return W[p]=y(F),Zr(d,this,W)}}function U6(d,p){return p.length<2?d:Zc(d,Ts(p,0,-1))}function YY(d,p){for(var y=d.length,C=Wi(p.length,y),E=yr(d);C--;){var I=p[C];d[C]=Wo(I,y)?E[I]:n}return d}function Rx(d,p){if(!(p==="constructor"&&typeof d[p]=="function")&&p!="__proto__")return d[p]}var V6=Z6(m6),Yp=dX||function(d,p){return Ri.setTimeout(d,p)},Dx=Z6(wY);function H6(d,p,y){var C=p+"";return Dx(d,zY(C,KY(BY(C),y)))}function Z6(d){var p=0,y=0;return function(){var C=gX(),E=U-(C-y);if(y=C,E>0){if(++p>=Q)return arguments[0]}else p=0;return d.apply(n,arguments)}}function lv(d,p){var y=-1,C=d.length,E=C-1;for(p=p===n?C:p;++y<p;){var I=mx(y,E),F=d[I];d[I]=d[y],d[y]=F}return d.length=p,d}var G6=HY(function(d){var p=[];return d.charCodeAt(0)===46&&p.push(""),d.replace(ze,function(y,C,E,I){p.push(E?I.replace(Qc,"$1"):C||y)}),p});function Qa(d){if(typeof d=="string"||Yr(d))return d;var p=d+"";return p=="0"&&1/d==-ne?"-0":p}function Xc(d){if(d!=null){try{return j0.call(d)}catch{}try{return d+""}catch{}}return""}function KY(d,p){return _s(D,function(y){var C="_."+y[0];p&y[1]&&!R0(d,C)&&d.push(C)}),d.sort()}function X6(d){if(d instanceof Rt)return d.clone();var p=new $s(d.__wrapped__,d.__chain__);return p.__actions__=yr(d.__actions__),p.__index__=d.__index__,p.__values__=d.__values__,p}function JY(d,p,y){(y?ir(d,p,y):p===n)?p=1:p=hi(gt(p),0);var C=d==null?0:d.length;if(!C||p<1)return[];for(var E=0,I=0,F=ie(W0(C/p));E<C;)F[I++]=Ts(d,E,E+=p);return F}function eK(d){for(var p=-1,y=d==null?0:d.length,C=0,E=[];++p<y;){var I=d[p];I&&(E[C++]=I)}return E}function tK(){var d=arguments.length;if(!d)return[];for(var p=ie(d-1),y=arguments[0],C=d;C--;)p[C-1]=arguments[C];return Rl(ct(y)?yr(y):[y],Di(p,1))}var nK=St(function(d,p){return Vn(d)?Up(d,Di(p,1,Vn,!0)):[]}),iK=St(function(d,p){var y=As(p);return Vn(y)&&(y=n),Vn(d)?Up(d,Di(p,1,Vn,!0),Ge(y,2)):[]}),rK=St(function(d,p){var y=As(p);return Vn(y)&&(y=n),Vn(d)?Up(d,Di(p,1,Vn,!0),n,y):[]});function sK(d,p,y){var C=d==null?0:d.length;return C?(p=y||p===n?1:gt(p),Ts(d,p<0?0:p,C)):[]}function aK(d,p,y){var C=d==null?0:d.length;return C?(p=y||p===n?1:gt(p),p=C-p,Ts(d,0,p<0?0:p)):[]}function oK(d,p){return d&&d.length?ev(d,Ge(p,3),!0,!0):[]}function lK(d,p){return d&&d.length?ev(d,Ge(p,3),!0):[]}function cK(d,p,y,C){var E=d==null?0:d.length;return E?(y&&typeof y!="number"&&ir(d,p,y)&&(y=0,C=E),tY(d,p,y,C)):[]}function Y6(d,p,y){var C=d==null?0:d.length;if(!C)return-1;var E=y==null?0:gt(y);return E<0&&(E=hi(C+E,0)),D0(d,Ge(p,3),E)}function K6(d,p,y){var C=d==null?0:d.length;if(!C)return-1;var E=C-1;return y!==n&&(E=gt(y),E=y<0?hi(C+E,0):Wi(E,C-1)),D0(d,Ge(p,3),E,!0)}function J6(d){var p=d==null?0:d.length;return p?Di(d,1):[]}function fK(d){var p=d==null?0:d.length;return p?Di(d,ne):[]}function uK(d,p){var y=d==null?0:d.length;return y?(p=p===n?1:gt(p),Di(d,p)):[]}function dK(d){for(var p=-1,y=d==null?0:d.length,C={};++p<y;){var E=d[p];C[E[0]]=E[1]}return C}function eA(d){return d&&d.length?d[0]:n}function hK(d,p,y){var C=d==null?0:d.length;if(!C)return-1;var E=y==null?0:gt(y);return E<0&&(E=hi(C+E,0)),Ou(d,p,E)}function pK(d){var p=d==null?0:d.length;return p?Ts(d,0,-1):[]}var mK=St(function(d){var p=En(d,wx);return p.length&&p[0]===d[0]?fx(p):[]}),gK=St(function(d){var p=As(d),y=En(d,wx);return p===As(y)?p=n:y.pop(),y.length&&y[0]===d[0]?fx(y,Ge(p,2)):[]}),vK=St(function(d){var p=As(d),y=En(d,wx);return p=typeof p=="function"?p:n,p&&y.pop(),y.length&&y[0]===d[0]?fx(y,n,p):[]});function bK(d,p){return d==null?"":pX.call(d,p)}function As(d){var p=d==null?0:d.length;return p?d[p-1]:n}function yK(d,p,y){var C=d==null?0:d.length;if(!C)return-1;var E=C;return y!==n&&(E=gt(y),E=E<0?hi(C+E,0):Wi(E,C-1)),p===p?KG(d,p,E):D0(d,MT,E,!0)}function wK(d,p){return d&&d.length?u6(d,gt(p)):n}var kK=St(tA);function tA(d,p){return d&&d.length&&p&&p.length?px(d,p):d}function OK(d,p,y){return d&&d.length&&p&&p.length?px(d,p,Ge(y,2)):d}function xK(d,p,y){return d&&d.length&&p&&p.length?px(d,p,n,y):d}var SK=qo(function(d,p){var y=d==null?0:d.length,C=ax(d,p);return p6(d,En(p,function(E){return Wo(E,y)?+E:E}).sort(S6)),C});function _K(d,p){var y=[];if(!(d&&d.length))return y;var C=-1,E=[],I=d.length;for(p=Ge(p,3);++C<I;){var F=d[C];p(F,C,d)&&(y.push(F),E.push(C))}return p6(d,E),y}function Mx(d){return d==null?d:bX.call(d)}function CK(d,p,y){var C=d==null?0:d.length;return C?(y&&typeof y!="number"&&ir(d,p,y)?(p=0,y=C):(p=p==null?0:gt(p),y=y===n?C:gt(y)),Ts(d,p,y)):[]}function $K(d,p){return J0(d,p)}function PK(d,p,y){return vx(d,p,Ge(y,2))}function TK(d,p){var y=d==null?0:d.length;if(y){var C=J0(d,p);if(C<y&&aa(d[C],p))return C}return-1}function AK(d,p){return J0(d,p,!0)}function EK(d,p,y){return vx(d,p,Ge(y,2),!0)}function RK(d,p){var y=d==null?0:d.length;if(y){var C=J0(d,p,!0)-1;if(aa(d[C],p))return C}return-1}function DK(d){return d&&d.length?g6(d):[]}function MK(d,p){return d&&d.length?g6(d,Ge(p,2)):[]}function NK(d){var p=d==null?0:d.length;return p?Ts(d,1,p):[]}function LK(d,p,y){return d&&d.length?(p=y||p===n?1:gt(p),Ts(d,0,p<0?0:p)):[]}function jK(d,p,y){var C=d==null?0:d.length;return C?(p=y||p===n?1:gt(p),p=C-p,Ts(d,p<0?0:p,C)):[]}function IK(d,p){return d&&d.length?ev(d,Ge(p,3),!1,!0):[]}function BK(d,p){return d&&d.length?ev(d,Ge(p,3)):[]}var FK=St(function(d){return Ll(Di(d,1,Vn,!0))}),QK=St(function(d){var p=As(d);return Vn(p)&&(p=n),Ll(Di(d,1,Vn,!0),Ge(p,2))}),zK=St(function(d){var p=As(d);return p=typeof p=="function"?p:n,Ll(Di(d,1,Vn,!0),n,p)});function qK(d){return d&&d.length?Ll(d):[]}function WK(d,p){return d&&d.length?Ll(d,Ge(p,2)):[]}function UK(d,p){return p=typeof p=="function"?p:n,d&&d.length?Ll(d,n,p):[]}function Nx(d){if(!(d&&d.length))return[];var p=0;return d=El(d,function(y){if(Vn(y))return p=hi(y.length,p),!0}),KO(p,function(y){return En(d,GO(y))})}function nA(d,p){if(!(d&&d.length))return[];var y=Nx(d);return p==null?y:En(y,function(C){return Zr(p,n,C)})}var VK=St(function(d,p){return Vn(d)?Up(d,p):[]}),HK=St(function(d){return yx(El(d,Vn))}),ZK=St(function(d){var p=As(d);return Vn(p)&&(p=n),yx(El(d,Vn),Ge(p,2))}),GK=St(function(d){var p=As(d);return p=typeof p=="function"?p:n,yx(El(d,Vn),n,p)}),XK=St(Nx);function YK(d,p){return w6(d||[],p||[],Wp)}function KK(d,p){return w6(d||[],p||[],Zp)}var JK=St(function(d){var p=d.length,y=p>1?d[p-1]:n;return y=typeof y=="function"?(d.pop(),y):n,nA(d,y)});function iA(d){var p=L(d);return p.__chain__=!0,p}function eJ(d,p){return p(d),d}function cv(d,p){return p(d)}var tJ=qo(function(d){var p=d.length,y=p?d[0]:0,C=this.__wrapped__,E=function(I){return ax(I,d)};return p>1||this.__actions__.length||!(C instanceof Rt)||!Wo(y)?this.thru(E):(C=C.slice(y,+y+(p?1:0)),C.__actions__.push({func:cv,args:[E],thisArg:n}),new $s(C,this.__chain__).thru(function(I){return p&&!I.length&&I.push(n),I}))});function nJ(){return iA(this)}function iJ(){return new $s(this.value(),this.__chain__)}function rJ(){this.__values__===n&&(this.__values__=vA(this.value()));var d=this.__index__>=this.__values__.length,p=d?n:this.__values__[this.__index__++];return{done:d,value:p}}function sJ(){return this}function aJ(d){for(var p,y=this;y instanceof Z0;){var C=X6(y);C.__index__=0,C.__values__=n,p?E.__wrapped__=C:p=C;var E=C;y=y.__wrapped__}return E.__wrapped__=d,p}function oJ(){var d=this.__wrapped__;if(d instanceof Rt){var p=d;return this.__actions__.length&&(p=new Rt(this)),p=p.reverse(),p.__actions__.push({func:cv,args:[Mx],thisArg:n}),new $s(p,this.__chain__)}return this.thru(Mx)}function lJ(){return y6(this.__wrapped__,this.__actions__)}var cJ=tv(function(d,p,y){tn.call(d,y)?++d[y]:Qo(d,y,1)});function fJ(d,p,y){var C=ct(d)?RT:eY;return y&&ir(d,p,y)&&(p=n),C(d,Ge(p,3))}function uJ(d,p){var y=ct(d)?El:n6;return y(d,Ge(p,3))}var dJ=A6(Y6),hJ=A6(K6);function pJ(d,p){return Di(fv(d,p),1)}function mJ(d,p){return Di(fv(d,p),ne)}function gJ(d,p,y){return y=y===n?1:gt(y),Di(fv(d,p),y)}function rA(d,p){var y=ct(d)?_s:Nl;return y(d,Ge(p,3))}function sA(d,p){var y=ct(d)?NG:t6;return y(d,Ge(p,3))}var vJ=tv(function(d,p,y){tn.call(d,y)?d[y].push(p):Qo(d,y,[p])});function bJ(d,p,y,C){d=wr(d)?d:Mu(d),y=y&&!C?gt(y):0;var E=d.length;return y<0&&(y=hi(E+y,0)),mv(d)?y<=E&&d.indexOf(p,y)>-1:!!E&&Ou(d,p,y)>-1}var yJ=St(function(d,p,y){var C=-1,E=typeof p=="function",I=wr(d)?ie(d.length):[];return Nl(d,function(F){I[++C]=E?Zr(p,F,y):Vp(F,p,y)}),I}),wJ=tv(function(d,p,y){Qo(d,y,p)});function fv(d,p){var y=ct(d)?En:l6;return y(d,Ge(p,3))}function kJ(d,p,y,C){return d==null?[]:(ct(p)||(p=p==null?[]:[p]),y=C?n:y,ct(y)||(y=y==null?[]:[y]),d6(d,p,y))}var OJ=tv(function(d,p,y){d[y?0:1].push(p)},function(){return[[],[]]});function xJ(d,p,y){var C=ct(d)?HO:LT,E=arguments.length<3;return C(d,Ge(p,4),y,E,Nl)}function SJ(d,p,y){var C=ct(d)?LG:LT,E=arguments.length<3;return C(d,Ge(p,4),y,E,t6)}function _J(d,p){var y=ct(d)?El:n6;return y(d,hv(Ge(p,3)))}function CJ(d){var p=ct(d)?YT:bY;return p(d)}function $J(d,p,y){(y?ir(d,p,y):p===n)?p=1:p=gt(p);var C=ct(d)?GX:yY;return C(d,p)}function PJ(d){var p=ct(d)?XX:kY;return p(d)}function TJ(d){if(d==null)return 0;if(wr(d))return mv(d)?Su(d):d.length;var p=Ui(d);return p==Ot||p==On?d.size:dx(d).length}function AJ(d,p,y){var C=ct(d)?ZO:OY;return y&&ir(d,p,y)&&(p=n),C(d,Ge(p,3))}var EJ=St(function(d,p){if(d==null)return[];var y=p.length;return y>1&&ir(d,p[0],p[1])?p=[]:y>2&&ir(p[0],p[1],p[2])&&(p=[p[0]]),d6(d,Di(p,1),[])}),uv=uX||function(){return Ri.Date.now()};function RJ(d,p){if(typeof p!="function")throw new Cs(a);return d=gt(d),function(){if(--d<1)return p.apply(this,arguments)}}function aA(d,p,y){return p=y?n:p,p=d&&p==null?d.length:p,zo(d,_,n,n,n,n,p)}function oA(d,p){var y;if(typeof p!="function")throw new Cs(a);return d=gt(d),function(){return--d>0&&(y=p.apply(this,arguments)),d<=1&&(p=n),y}}var Lx=St(function(d,p,y){var C=w;if(y.length){var E=Dl(y,Ru(Lx));C|=S}return zo(d,C,p,y,E)}),lA=St(function(d,p,y){var C=w|O;if(y.length){var E=Dl(y,Ru(lA));C|=S}return zo(p,C,d,y,E)});function cA(d,p,y){p=y?n:p;var C=zo(d,$,n,n,n,n,n,p);return C.placeholder=cA.placeholder,C}function fA(d,p,y){p=y?n:p;var C=zo(d,T,n,n,n,n,n,p);return C.placeholder=fA.placeholder,C}function uA(d,p,y){var C,E,I,F,W,Z,le=0,ce=!1,de=!1,Pe=!0;if(typeof d!="function")throw new Cs(a);p=Es(p)||0,In(y)&&(ce=!!y.leading,de="maxWait"in y,I=de?hi(Es(y.maxWait)||0,p):I,Pe="trailing"in y?!!y.trailing:Pe);function We(Hn){var oa=C,Ho=E;return C=E=n,le=Hn,F=d.apply(Ho,oa),F}function Je(Hn){return le=Hn,W=Yp(Ct,p),ce?We(Hn):F}function wt(Hn){var oa=Hn-Z,Ho=Hn-le,AA=p-oa;return de?Wi(AA,I-Ho):AA}function et(Hn){var oa=Hn-Z,Ho=Hn-le;return Z===n||oa>=p||oa<0||de&&Ho>=I}function Ct(){var Hn=uv();if(et(Hn))return Lt(Hn);W=Yp(Ct,wt(Hn))}function Lt(Hn){return W=n,Pe&&C?We(Hn):(C=E=n,F)}function Kr(){W!==n&&k6(W),le=0,C=Z=E=W=n}function rr(){return W===n?F:Lt(uv())}function Jr(){var Hn=uv(),oa=et(Hn);if(C=arguments,E=this,Z=Hn,oa){if(W===n)return Je(Z);if(de)return k6(W),W=Yp(Ct,p),We(Z)}return W===n&&(W=Yp(Ct,p)),F}return Jr.cancel=Kr,Jr.flush=rr,Jr}var DJ=St(function(d,p){return e6(d,1,p)}),MJ=St(function(d,p,y){return e6(d,Es(p)||0,y)});function NJ(d){return zo(d,A)}function dv(d,p){if(typeof d!="function"||p!=null&&typeof p!="function")throw new Cs(a);var y=function(){var C=arguments,E=p?p.apply(this,C):C[0],I=y.cache;if(I.has(E))return I.get(E);var F=d.apply(this,C);return y.cache=I.set(E,F)||I,F};return y.cache=new(dv.Cache||Fo),y}dv.Cache=Fo;function hv(d){if(typeof d!="function")throw new Cs(a);return function(){var p=arguments;switch(p.length){case 0:return!d.call(this);case 1:return!d.call(this,p[0]);case 2:return!d.call(this,p[0],p[1]);case 3:return!d.call(this,p[0],p[1],p[2])}return!d.apply(this,p)}}function LJ(d){return oA(2,d)}var jJ=xY(function(d,p){p=p.length==1&&ct(p[0])?En(p[0],Gr(Ge())):En(Di(p,1),Gr(Ge()));var y=p.length;return St(function(C){for(var E=-1,I=Wi(C.length,y);++E<I;)C[E]=p[E].call(this,C[E]);return Zr(d,this,C)})}),jx=St(function(d,p){var y=Dl(p,Ru(jx));return zo(d,S,n,p,y)}),dA=St(function(d,p){var y=Dl(p,Ru(dA));return zo(d,R,n,p,y)}),IJ=qo(function(d,p){return zo(d,P,n,n,n,p)});function BJ(d,p){if(typeof d!="function")throw new Cs(a);return p=p===n?p:gt(p),St(d,p)}function FJ(d,p){if(typeof d!="function")throw new Cs(a);return p=p==null?0:hi(gt(p),0),St(function(y){var C=y[p],E=Il(y,0,p);return C&&Rl(E,C),Zr(d,this,E)})}function QJ(d,p,y){var C=!0,E=!0;if(typeof d!="function")throw new Cs(a);return In(y)&&(C="leading"in y?!!y.leading:C,E="trailing"in y?!!y.trailing:E),uA(d,p,{leading:C,maxWait:p,trailing:E})}function zJ(d){return aA(d,1)}function qJ(d,p){return jx(kx(p),d)}function WJ(){if(!arguments.length)return[];var d=arguments[0];return ct(d)?d:[d]}function UJ(d){return Ps(d,m)}function VJ(d,p){return p=typeof p=="function"?p:n,Ps(d,m,p)}function HJ(d){return Ps(d,u|m)}function ZJ(d,p){return p=typeof p=="function"?p:n,Ps(d,u|m,p)}function GJ(d,p){return p==null||JT(d,p,ki(p))}function aa(d,p){return d===p||d!==d&&p!==p}var XJ=sv(cx),YJ=sv(function(d,p){return d>=p}),Yc=s6((function(){return arguments})())?s6:function(d){return zn(d)&&tn.call(d,"callee")&&!UT.call(d,"callee")},ct=ie.isArray,KJ=CT?Gr(CT):aY;function wr(d){return d!=null&&pv(d.length)&&!Uo(d)}function Vn(d){return zn(d)&&wr(d)}function JJ(d){return d===!0||d===!1||zn(d)&&nr(d)==yt}var Bl=hX||Zx,eee=$T?Gr($T):oY;function tee(d){return zn(d)&&d.nodeType===1&&!Kp(d)}function nee(d){if(d==null)return!0;if(wr(d)&&(ct(d)||typeof d=="string"||typeof d.splice=="function"||Bl(d)||Du(d)||Yc(d)))return!d.length;var p=Ui(d);if(p==Ot||p==On)return!d.size;if(Xp(d))return!dx(d).length;for(var y in d)if(tn.call(d,y))return!1;return!0}function iee(d,p){return Hp(d,p)}function ree(d,p,y){y=typeof y=="function"?y:n;var C=y?y(d,p):n;return C===n?Hp(d,p,n,y):!!C}function Ix(d){if(!zn(d))return!1;var p=nr(d);return p==Gt||p==Ke||typeof d.message=="string"&&typeof d.name=="string"&&!Kp(d)}function see(d){return typeof d=="number"&&HT(d)}function Uo(d){if(!In(d))return!1;var p=nr(d);return p==dt||p==dn||p==lt||p==vr}function hA(d){return typeof d=="number"&&d==gt(d)}function pv(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=he}function In(d){var p=typeof d;return d!=null&&(p=="object"||p=="function")}function zn(d){return d!=null&&typeof d=="object"}var pA=PT?Gr(PT):cY;function aee(d,p){return d===p||ux(d,p,Px(p))}function oee(d,p,y){return y=typeof y=="function"?y:n,ux(d,p,Px(p),y)}function lee(d){return mA(d)&&d!=+d}function cee(d){if(VY(d))throw new rt(s);return a6(d)}function fee(d){return d===null}function uee(d){return d==null}function mA(d){return typeof d=="number"||zn(d)&&nr(d)==wn}function Kp(d){if(!zn(d)||nr(d)!=an)return!1;var p=Q0(d);if(p===null)return!0;var y=tn.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&j0.call(y)==oX}var Bx=TT?Gr(TT):fY;function dee(d){return hA(d)&&d>=-he&&d<=he}var gA=AT?Gr(AT):uY;function mv(d){return typeof d=="string"||!ct(d)&&zn(d)&&nr(d)==yi}function Yr(d){return typeof d=="symbol"||zn(d)&&nr(d)==er}var Du=ET?Gr(ET):dY;function hee(d){return d===n}function pee(d){return zn(d)&&Ui(d)==qe}function mee(d){return zn(d)&&nr(d)==Ft}var gee=sv(hx),vee=sv(function(d,p){return d<=p});function vA(d){if(!d)return[];if(wr(d))return mv(d)?ra(d):yr(d);if(Bp&&d[Bp])return GG(d[Bp]());var p=Ui(d),y=p==Ot?ex:p==On?M0:Mu;return y(d)}function Vo(d){if(!d)return d===0?d:0;if(d=Es(d),d===ne||d===-ne){var p=d<0?-1:1;return p*ve}return d===d?d:0}function gt(d){var p=Vo(d),y=p%1;return p===p?y?p-y:p:0}function bA(d){return d?Hc(gt(d),0,we):0}function Es(d){if(typeof d=="number")return d;if(Yr(d))return je;if(In(d)){var p=typeof d.valueOf=="function"?d.valueOf():d;d=In(p)?p+"":p}if(typeof d!="string")return d===0?d:+d;d=jT(d);var y=Al.test(d);return y||bu.test(d)?RG(d.slice(2),y?2:8):Tl.test(d)?je:+d}function yA(d){return Fa(d,kr(d))}function bee(d){return d?Hc(gt(d),-he,he):d===0?d:0}function Kt(d){return d==null?"":Xr(d)}var yee=Au(function(d,p){if(Xp(p)||wr(p)){Fa(p,ki(p),d);return}for(var y in p)tn.call(p,y)&&Wp(d,y,p[y])}),wA=Au(function(d,p){Fa(p,kr(p),d)}),gv=Au(function(d,p,y,C){Fa(p,kr(p),d,C)}),wee=Au(function(d,p,y,C){Fa(p,ki(p),d,C)}),kee=qo(ax);function Oee(d,p){var y=Tu(d);return p==null?y:KT(y,p)}var xee=St(function(d,p){d=on(d);var y=-1,C=p.length,E=C>2?p[2]:n;for(E&&ir(p[0],p[1],E)&&(C=1);++y<C;)for(var I=p[y],F=kr(I),W=-1,Z=F.length;++W<Z;){var le=F[W],ce=d[le];(ce===n||aa(ce,Cu[le])&&!tn.call(d,le))&&(d[le]=I[le])}return d}),See=St(function(d){return d.push(n,j6),Zr(kA,n,d)});function _ee(d,p){return DT(d,Ge(p,3),Ba)}function Cee(d,p){return DT(d,Ge(p,3),lx)}function $ee(d,p){return d==null?d:ox(d,Ge(p,3),kr)}function Pee(d,p){return d==null?d:i6(d,Ge(p,3),kr)}function Tee(d,p){return d&&Ba(d,Ge(p,3))}function Aee(d,p){return d&&lx(d,Ge(p,3))}function Eee(d){return d==null?[]:Y0(d,ki(d))}function Ree(d){return d==null?[]:Y0(d,kr(d))}function Fx(d,p,y){var C=d==null?n:Zc(d,p);return C===n?y:C}function Dee(d,p){return d!=null&&F6(d,p,nY)}function Qx(d,p){return d!=null&&F6(d,p,iY)}var Mee=R6(function(d,p,y){p!=null&&typeof p.toString!="function"&&(p=I0.call(p)),d[p]=y},qx(Or)),Nee=R6(function(d,p,y){p!=null&&typeof p.toString!="function"&&(p=I0.call(p)),tn.call(d,p)?d[p].push(y):d[p]=[y]},Ge),Lee=St(Vp);function ki(d){return wr(d)?XT(d):dx(d)}function kr(d){return wr(d)?XT(d,!0):hY(d)}function jee(d,p){var y={};return p=Ge(p,3),Ba(d,function(C,E,I){Qo(y,p(C,E,I),C)}),y}function Iee(d,p){var y={};return p=Ge(p,3),Ba(d,function(C,E,I){Qo(y,E,p(C,E,I))}),y}var Bee=Au(function(d,p,y){K0(d,p,y)}),kA=Au(function(d,p,y,C){K0(d,p,y,C)}),Fee=qo(function(d,p){var y={};if(d==null)return y;var C=!1;p=En(p,function(I){return I=jl(I,d),C||(C=I.length>1),I}),Fa(d,Cx(d),y),C&&(y=Ps(y,u|h|m,MY));for(var E=p.length;E--;)bx(y,p[E]);return y});function Qee(d,p){return OA(d,hv(Ge(p)))}var zee=qo(function(d,p){return d==null?{}:mY(d,p)});function OA(d,p){if(d==null)return{};var y=En(Cx(d),function(C){return[C]});return p=Ge(p),h6(d,y,function(C,E){return p(C,E[0])})}function qee(d,p,y){p=jl(p,d);var C=-1,E=p.length;for(E||(E=1,d=n);++C<E;){var I=d==null?n:d[Qa(p[C])];I===n&&(C=E,I=y),d=Uo(I)?I.call(d):I}return d}function Wee(d,p,y){return d==null?d:Zp(d,p,y)}function Uee(d,p,y,C){return C=typeof C=="function"?C:n,d==null?d:Zp(d,p,y,C)}var xA=N6(ki),SA=N6(kr);function Vee(d,p,y){var C=ct(d),E=C||Bl(d)||Du(d);if(p=Ge(p,4),y==null){var I=d&&d.constructor;E?y=C?new I:[]:In(d)?y=Uo(I)?Tu(Q0(d)):{}:y={}}return(E?_s:Ba)(d,function(F,W,Z){return p(y,F,W,Z)}),y}function Hee(d,p){return d==null?!0:bx(d,p)}function Zee(d,p,y){return d==null?d:b6(d,p,kx(y))}function Gee(d,p,y,C){return C=typeof C=="function"?C:n,d==null?d:b6(d,p,kx(y),C)}function Mu(d){return d==null?[]:JO(d,ki(d))}function Xee(d){return d==null?[]:JO(d,kr(d))}function Yee(d,p,y){return y===n&&(y=p,p=n),y!==n&&(y=Es(y),y=y===y?y:0),p!==n&&(p=Es(p),p=p===p?p:0),Hc(Es(d),p,y)}function Kee(d,p,y){return p=Vo(p),y===n?(y=p,p=0):y=Vo(y),d=Es(d),rY(d,p,y)}function Jee(d,p,y){if(y&&typeof y!="boolean"&&ir(d,p,y)&&(p=y=n),y===n&&(typeof p=="boolean"?(y=p,p=n):typeof d=="boolean"&&(y=d,d=n)),d===n&&p===n?(d=0,p=1):(d=Vo(d),p===n?(p=d,d=0):p=Vo(p)),d>p){var C=d;d=p,p=C}if(y||d%1||p%1){var E=ZT();return Wi(d+E*(p-d+EG("1e-"+((E+"").length-1))),p)}return mx(d,p)}var ete=Eu(function(d,p,y){return p=p.toLowerCase(),d+(y?_A(p):p)});function _A(d){return zx(Kt(d).toLowerCase())}function CA(d){return d=Kt(d),d&&d.replace(wu,WG).replace(kG,"")}function tte(d,p,y){d=Kt(d),p=Xr(p);var C=d.length;y=y===n?C:Hc(gt(y),0,C);var E=y;return y-=p.length,y>=0&&d.slice(y,E)==p}function nte(d){return d=Kt(d),d&&Ti.test(d)?d.replace(Un,UG):d}function ite(d){return d=Kt(d),d&&$e.test(d)?d.replace(Ie,"\\$&"):d}var rte=Eu(function(d,p,y){return d+(y?"-":"")+p.toLowerCase()}),ste=Eu(function(d,p,y){return d+(y?" ":"")+p.toLowerCase()}),ate=T6("toLowerCase");function ote(d,p,y){d=Kt(d),p=gt(p);var C=p?Su(d):0;if(!p||C>=p)return d;var E=(p-C)/2;return rv(U0(E),y)+d+rv(W0(E),y)}function lte(d,p,y){d=Kt(d),p=gt(p);var C=p?Su(d):0;return p&&C<p?d+rv(p-C,y):d}function cte(d,p,y){d=Kt(d),p=gt(p);var C=p?Su(d):0;return p&&C<p?rv(p-C,y)+d:d}function fte(d,p,y){return y||p==null?p=0:p&&(p=+p),vX(Kt(d).replace(Ue,""),p||0)}function ute(d,p,y){return(y?ir(d,p,y):p===n)?p=1:p=gt(p),gx(Kt(d),p)}function dte(){var d=arguments,p=Kt(d[0]);return d.length<3?p:p.replace(d[1],d[2])}var hte=Eu(function(d,p,y){return d+(y?"_":"")+p.toLowerCase()});function pte(d,p,y){return y&&typeof y!="number"&&ir(d,p,y)&&(p=y=n),y=y===n?we:y>>>0,y?(d=Kt(d),d&&(typeof p=="string"||p!=null&&!Bx(p))&&(p=Xr(p),!p&&xu(d))?Il(ra(d),0,y):d.split(p,y)):[]}var mte=Eu(function(d,p,y){return d+(y?" ":"")+zx(p)});function gte(d,p,y){return d=Kt(d),y=y==null?0:Hc(gt(y),0,d.length),p=Xr(p),d.slice(y,y+p.length)==p}function vte(d,p,y){var C=L.templateSettings;y&&ir(d,p,y)&&(p=n),d=Kt(d),p=gv({},p,C,L6);var E=gv({},p.imports,C.imports,L6),I=ki(E),F=JO(E,I),W,Z,le=0,ce=p.interpolate||xt,de="__p += '",Pe=tx((p.escape||xt).source+"|"+ce.source+"|"+(ce===se?Ia:xt).source+"|"+(p.evaluate||xt).source+"|$","g"),We="//# sourceURL="+(tn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++CG+"]")+`
|
||
`;d.replace(Pe,function(et,Ct,Lt,Kr,rr,Jr){return Lt||(Lt=Kr),de+=d.slice(le,Jr).replace(Ai,VG),Ct&&(W=!0,de+=`' +
|
||
__e(`+Ct+`) +
|
||
'`),rr&&(Z=!0,de+=`';
|
||
`+rr+`;
|
||
__p += '`),Lt&&(de+=`' +
|
||
((__t = (`+Lt+`)) == null ? '' : __t) +
|
||
'`),le=Jr+et.length,et}),de+=`';
|
||
`;var Je=tn.call(p,"variable")&&p.variable;if(!Je)de=`with (obj) {
|
||
`+de+`
|
||
}
|
||
`;else if(ri.test(Je))throw new rt(o);de=(Z?de.replace(ia,""):de).replace(jo,"$1").replace(jp,"$1;"),de="function("+(Je||"obj")+`) {
|
||
`+(Je?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(Z?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+de+`return __p
|
||
}`;var wt=PA(function(){return Ht(I,We+"return "+de).apply(n,F)});if(wt.source=de,Ix(wt))throw wt;return wt}function bte(d){return Kt(d).toLowerCase()}function yte(d){return Kt(d).toUpperCase()}function wte(d,p,y){if(d=Kt(d),d&&(y||p===n))return jT(d);if(!d||!(p=Xr(p)))return d;var C=ra(d),E=ra(p),I=IT(C,E),F=BT(C,E)+1;return Il(C,I,F).join("")}function kte(d,p,y){if(d=Kt(d),d&&(y||p===n))return d.slice(0,QT(d)+1);if(!d||!(p=Xr(p)))return d;var C=ra(d),E=BT(C,ra(p))+1;return Il(C,0,E).join("")}function Ote(d,p,y){if(d=Kt(d),d&&(y||p===n))return d.replace(Ue,"");if(!d||!(p=Xr(p)))return d;var C=ra(d),E=IT(C,ra(p));return Il(C,E).join("")}function xte(d,p){var y=N,C=M;if(In(p)){var E="separator"in p?p.separator:E;y="length"in p?gt(p.length):y,C="omission"in p?Xr(p.omission):C}d=Kt(d);var I=d.length;if(xu(d)){var F=ra(d);I=F.length}if(y>=I)return d;var W=y-Su(C);if(W<1)return C;var Z=F?Il(F,0,W).join(""):d.slice(0,W);if(E===n)return Z+C;if(F&&(W+=Z.length-W),Bx(E)){if(d.slice(W).search(E)){var le,ce=Z;for(E.global||(E=tx(E.source,Kt(Io.exec(E))+"g")),E.lastIndex=0;le=E.exec(ce);)var de=le.index;Z=Z.slice(0,de===n?W:de)}}else if(d.indexOf(Xr(E),W)!=W){var Pe=Z.lastIndexOf(E);Pe>-1&&(Z=Z.slice(0,Pe))}return Z+C}function Ste(d){return d=Kt(d),d&&wi.test(d)?d.replace(Fc,JG):d}var _te=Eu(function(d,p,y){return d+(y?" ":"")+p.toUpperCase()}),zx=T6("toUpperCase");function $A(d,p,y){return d=Kt(d),p=y?n:p,p===n?ZG(d)?nX(d):BG(d):d.match(p)||[]}var PA=St(function(d,p){try{return Zr(d,n,p)}catch(y){return Ix(y)?y:new rt(y)}}),Cte=qo(function(d,p){return _s(p,function(y){y=Qa(y),Qo(d,y,Lx(d[y],d))}),d});function $te(d){var p=d==null?0:d.length,y=Ge();return d=p?En(d,function(C){if(typeof C[1]!="function")throw new Cs(a);return[y(C[0]),C[1]]}):[],St(function(C){for(var E=-1;++E<p;){var I=d[E];if(Zr(I[0],this,C))return Zr(I[1],this,C)}})}function Pte(d){return JX(Ps(d,u))}function qx(d){return function(){return d}}function Tte(d,p){return d==null||d!==d?p:d}var Ate=E6(),Ete=E6(!0);function Or(d){return d}function Wx(d){return o6(typeof d=="function"?d:Ps(d,u))}function Rte(d){return c6(Ps(d,u))}function Dte(d,p){return f6(d,Ps(p,u))}var Mte=St(function(d,p){return function(y){return Vp(y,d,p)}}),Nte=St(function(d,p){return function(y){return Vp(d,y,p)}});function Ux(d,p,y){var C=ki(p),E=Y0(p,C);y==null&&!(In(p)&&(E.length||!C.length))&&(y=p,p=d,d=this,E=Y0(p,ki(p)));var I=!(In(y)&&"chain"in y)||!!y.chain,F=Uo(d);return _s(E,function(W){var Z=p[W];d[W]=Z,F&&(d.prototype[W]=function(){var le=this.__chain__;if(I||le){var ce=d(this.__wrapped__),de=ce.__actions__=yr(this.__actions__);return de.push({func:Z,args:arguments,thisArg:d}),ce.__chain__=le,ce}return Z.apply(d,Rl([this.value()],arguments))})}),d}function Lte(){return Ri._===this&&(Ri._=lX),this}function Vx(){}function jte(d){return d=gt(d),St(function(p){return u6(p,d)})}var Ite=xx(En),Bte=xx(RT),Fte=xx(ZO);function TA(d){return Ax(d)?GO(Qa(d)):gY(d)}function Qte(d){return function(p){return d==null?n:Zc(d,p)}}var zte=D6(),qte=D6(!0);function Hx(){return[]}function Zx(){return!1}function Wte(){return{}}function Ute(){return""}function Vte(){return!0}function Hte(d,p){if(d=gt(d),d<1||d>he)return[];var y=we,C=Wi(d,we);p=Ge(p),d-=we;for(var E=KO(C,p);++y<d;)p(y);return E}function Zte(d){return ct(d)?En(d,Qa):Yr(d)?[d]:yr(G6(Kt(d)))}function Gte(d){var p=++aX;return Kt(d)+p}var Xte=iv(function(d,p){return d+p},0),Yte=Sx("ceil"),Kte=iv(function(d,p){return d/p},1),Jte=Sx("floor");function ene(d){return d&&d.length?X0(d,Or,cx):n}function tne(d,p){return d&&d.length?X0(d,Ge(p,2),cx):n}function nne(d){return NT(d,Or)}function ine(d,p){return NT(d,Ge(p,2))}function rne(d){return d&&d.length?X0(d,Or,hx):n}function sne(d,p){return d&&d.length?X0(d,Ge(p,2),hx):n}var ane=iv(function(d,p){return d*p},1),one=Sx("round"),lne=iv(function(d,p){return d-p},0);function cne(d){return d&&d.length?YO(d,Or):0}function fne(d,p){return d&&d.length?YO(d,Ge(p,2)):0}return L.after=RJ,L.ary=aA,L.assign=yee,L.assignIn=wA,L.assignInWith=gv,L.assignWith=wee,L.at=kee,L.before=oA,L.bind=Lx,L.bindAll=Cte,L.bindKey=lA,L.castArray=WJ,L.chain=iA,L.chunk=JY,L.compact=eK,L.concat=tK,L.cond=$te,L.conforms=Pte,L.constant=qx,L.countBy=cJ,L.create=Oee,L.curry=cA,L.curryRight=fA,L.debounce=uA,L.defaults=xee,L.defaultsDeep=See,L.defer=DJ,L.delay=MJ,L.difference=nK,L.differenceBy=iK,L.differenceWith=rK,L.drop=sK,L.dropRight=aK,L.dropRightWhile=oK,L.dropWhile=lK,L.fill=cK,L.filter=uJ,L.flatMap=pJ,L.flatMapDeep=mJ,L.flatMapDepth=gJ,L.flatten=J6,L.flattenDeep=fK,L.flattenDepth=uK,L.flip=NJ,L.flow=Ate,L.flowRight=Ete,L.fromPairs=dK,L.functions=Eee,L.functionsIn=Ree,L.groupBy=vJ,L.initial=pK,L.intersection=mK,L.intersectionBy=gK,L.intersectionWith=vK,L.invert=Mee,L.invertBy=Nee,L.invokeMap=yJ,L.iteratee=Wx,L.keyBy=wJ,L.keys=ki,L.keysIn=kr,L.map=fv,L.mapKeys=jee,L.mapValues=Iee,L.matches=Rte,L.matchesProperty=Dte,L.memoize=dv,L.merge=Bee,L.mergeWith=kA,L.method=Mte,L.methodOf=Nte,L.mixin=Ux,L.negate=hv,L.nthArg=jte,L.omit=Fee,L.omitBy=Qee,L.once=LJ,L.orderBy=kJ,L.over=Ite,L.overArgs=jJ,L.overEvery=Bte,L.overSome=Fte,L.partial=jx,L.partialRight=dA,L.partition=OJ,L.pick=zee,L.pickBy=OA,L.property=TA,L.propertyOf=Qte,L.pull=kK,L.pullAll=tA,L.pullAllBy=OK,L.pullAllWith=xK,L.pullAt=SK,L.range=zte,L.rangeRight=qte,L.rearg=IJ,L.reject=_J,L.remove=_K,L.rest=BJ,L.reverse=Mx,L.sampleSize=$J,L.set=Wee,L.setWith=Uee,L.shuffle=PJ,L.slice=CK,L.sortBy=EJ,L.sortedUniq=DK,L.sortedUniqBy=MK,L.split=pte,L.spread=FJ,L.tail=NK,L.take=LK,L.takeRight=jK,L.takeRightWhile=IK,L.takeWhile=BK,L.tap=eJ,L.throttle=QJ,L.thru=cv,L.toArray=vA,L.toPairs=xA,L.toPairsIn=SA,L.toPath=Zte,L.toPlainObject=yA,L.transform=Vee,L.unary=zJ,L.union=FK,L.unionBy=QK,L.unionWith=zK,L.uniq=qK,L.uniqBy=WK,L.uniqWith=UK,L.unset=Hee,L.unzip=Nx,L.unzipWith=nA,L.update=Zee,L.updateWith=Gee,L.values=Mu,L.valuesIn=Xee,L.without=VK,L.words=$A,L.wrap=qJ,L.xor=HK,L.xorBy=ZK,L.xorWith=GK,L.zip=XK,L.zipObject=YK,L.zipObjectDeep=KK,L.zipWith=JK,L.entries=xA,L.entriesIn=SA,L.extend=wA,L.extendWith=gv,Ux(L,L),L.add=Xte,L.attempt=PA,L.camelCase=ete,L.capitalize=_A,L.ceil=Yte,L.clamp=Yee,L.clone=UJ,L.cloneDeep=HJ,L.cloneDeepWith=ZJ,L.cloneWith=VJ,L.conformsTo=GJ,L.deburr=CA,L.defaultTo=Tte,L.divide=Kte,L.endsWith=tte,L.eq=aa,L.escape=nte,L.escapeRegExp=ite,L.every=fJ,L.find=dJ,L.findIndex=Y6,L.findKey=_ee,L.findLast=hJ,L.findLastIndex=K6,L.findLastKey=Cee,L.floor=Jte,L.forEach=rA,L.forEachRight=sA,L.forIn=$ee,L.forInRight=Pee,L.forOwn=Tee,L.forOwnRight=Aee,L.get=Fx,L.gt=XJ,L.gte=YJ,L.has=Dee,L.hasIn=Qx,L.head=eA,L.identity=Or,L.includes=bJ,L.indexOf=hK,L.inRange=Kee,L.invoke=Lee,L.isArguments=Yc,L.isArray=ct,L.isArrayBuffer=KJ,L.isArrayLike=wr,L.isArrayLikeObject=Vn,L.isBoolean=JJ,L.isBuffer=Bl,L.isDate=eee,L.isElement=tee,L.isEmpty=nee,L.isEqual=iee,L.isEqualWith=ree,L.isError=Ix,L.isFinite=see,L.isFunction=Uo,L.isInteger=hA,L.isLength=pv,L.isMap=pA,L.isMatch=aee,L.isMatchWith=oee,L.isNaN=lee,L.isNative=cee,L.isNil=uee,L.isNull=fee,L.isNumber=mA,L.isObject=In,L.isObjectLike=zn,L.isPlainObject=Kp,L.isRegExp=Bx,L.isSafeInteger=dee,L.isSet=gA,L.isString=mv,L.isSymbol=Yr,L.isTypedArray=Du,L.isUndefined=hee,L.isWeakMap=pee,L.isWeakSet=mee,L.join=bK,L.kebabCase=rte,L.last=As,L.lastIndexOf=yK,L.lowerCase=ste,L.lowerFirst=ate,L.lt=gee,L.lte=vee,L.max=ene,L.maxBy=tne,L.mean=nne,L.meanBy=ine,L.min=rne,L.minBy=sne,L.stubArray=Hx,L.stubFalse=Zx,L.stubObject=Wte,L.stubString=Ute,L.stubTrue=Vte,L.multiply=ane,L.nth=wK,L.noConflict=Lte,L.noop=Vx,L.now=uv,L.pad=ote,L.padEnd=lte,L.padStart=cte,L.parseInt=fte,L.random=Jee,L.reduce=xJ,L.reduceRight=SJ,L.repeat=ute,L.replace=dte,L.result=qee,L.round=one,L.runInContext=H,L.sample=CJ,L.size=TJ,L.snakeCase=hte,L.some=AJ,L.sortedIndex=$K,L.sortedIndexBy=PK,L.sortedIndexOf=TK,L.sortedLastIndex=AK,L.sortedLastIndexBy=EK,L.sortedLastIndexOf=RK,L.startCase=mte,L.startsWith=gte,L.subtract=lne,L.sum=cne,L.sumBy=fne,L.template=vte,L.times=Hte,L.toFinite=Vo,L.toInteger=gt,L.toLength=bA,L.toLower=bte,L.toNumber=Es,L.toSafeInteger=bee,L.toString=Kt,L.toUpper=yte,L.trim=wte,L.trimEnd=kte,L.trimStart=Ote,L.truncate=xte,L.unescape=Ste,L.uniqueId=Gte,L.upperCase=_te,L.upperFirst=zx,L.each=rA,L.eachRight=sA,L.first=eA,Ux(L,(function(){var d={};return Ba(L,function(p,y){tn.call(L.prototype,y)||(d[y]=p)}),d})(),{chain:!1}),L.VERSION=i,_s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){L[d].placeholder=L}),_s(["drop","take"],function(d,p){Rt.prototype[d]=function(y){y=y===n?1:hi(gt(y),0);var C=this.__filtered__&&!p?new Rt(this):this.clone();return C.__filtered__?C.__takeCount__=Wi(y,C.__takeCount__):C.__views__.push({size:Wi(y,we),type:d+(C.__dir__<0?"Right":"")}),C},Rt.prototype[d+"Right"]=function(y){return this.reverse()[d](y).reverse()}}),_s(["filter","map","takeWhile"],function(d,p){var y=p+1,C=y==z||y==ae;Rt.prototype[d]=function(E){var I=this.clone();return I.__iteratees__.push({iteratee:Ge(E,3),type:y}),I.__filtered__=I.__filtered__||C,I}}),_s(["head","last"],function(d,p){var y="take"+(p?"Right":"");Rt.prototype[d]=function(){return this[y](1).value()[0]}}),_s(["initial","tail"],function(d,p){var y="drop"+(p?"":"Right");Rt.prototype[d]=function(){return this.__filtered__?new Rt(this):this[y](1)}}),Rt.prototype.compact=function(){return this.filter(Or)},Rt.prototype.find=function(d){return this.filter(d).head()},Rt.prototype.findLast=function(d){return this.reverse().find(d)},Rt.prototype.invokeMap=St(function(d,p){return typeof d=="function"?new Rt(this):this.map(function(y){return Vp(y,d,p)})}),Rt.prototype.reject=function(d){return this.filter(hv(Ge(d)))},Rt.prototype.slice=function(d,p){d=gt(d);var y=this;return y.__filtered__&&(d>0||p<0)?new Rt(y):(d<0?y=y.takeRight(-d):d&&(y=y.drop(d)),p!==n&&(p=gt(p),y=p<0?y.dropRight(-p):y.take(p-d)),y)},Rt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Rt.prototype.toArray=function(){return this.take(we)},Ba(Rt.prototype,function(d,p){var y=/^(?:filter|find|map|reject)|While$/.test(p),C=/^(?:head|last)$/.test(p),E=L[C?"take"+(p=="last"?"Right":""):p],I=C||/^find/.test(p);E&&(L.prototype[p]=function(){var F=this.__wrapped__,W=C?[1]:arguments,Z=F instanceof Rt,le=W[0],ce=Z||ct(F),de=function(Ct){var Lt=E.apply(L,Rl([Ct],W));return C&&Pe?Lt[0]:Lt};ce&&y&&typeof le=="function"&&le.length!=1&&(Z=ce=!1);var Pe=this.__chain__,We=!!this.__actions__.length,Je=I&&!Pe,wt=Z&&!We;if(!I&&ce){F=wt?F:new Rt(this);var et=d.apply(F,W);return et.__actions__.push({func:cv,args:[de],thisArg:n}),new $s(et,Pe)}return Je&&wt?d.apply(this,W):(et=this.thru(de),Je?C?et.value()[0]:et.value():et)})}),_s(["pop","push","shift","sort","splice","unshift"],function(d){var p=N0[d],y=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",C=/^(?:pop|shift)$/.test(d);L.prototype[d]=function(){var E=arguments;if(C&&!this.__chain__){var I=this.value();return p.apply(ct(I)?I:[],E)}return this[y](function(F){return p.apply(ct(F)?F:[],E)})}}),Ba(Rt.prototype,function(d,p){var y=L[p];if(y){var C=y.name+"";tn.call(Pu,C)||(Pu[C]=[]),Pu[C].push({name:p,func:y})}}),Pu[nv(n,O).name]=[{name:"wrapper",func:n}],Rt.prototype.clone=SX,Rt.prototype.reverse=_X,Rt.prototype.value=CX,L.prototype.at=tJ,L.prototype.chain=nJ,L.prototype.commit=iJ,L.prototype.next=rJ,L.prototype.plant=aJ,L.prototype.reverse=oJ,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=lJ,L.prototype.first=L.prototype.head,Bp&&(L.prototype[Bp]=sJ),L}),_u=iX();qc?((qc.exports=_u)._=_u,WO._=_u):Ri._=_u}).call(kue)})(jm,jm.exports)),jm.exports}var hk=Oue();const Md=qw(hk),pk=[{description:j("svgo_cleanupAttrs_desc"),label:j("svgo_cleanupAttrs"),name:"cleanupAttrs"},{description:j("svgo_cleanupEnableBackground_desc"),label:j("svgo_cleanupEnableBackground"),name:"cleanupEnableBackground"},{description:j("svgo_cleanupIDs_desc"),label:j("svgo_cleanupIDs"),name:"cleanupIds"},{description:j("svgo_cleanupNumericValues_desc"),label:j("svgo_cleanupNumericValues"),name:"cleanupNumericValues"},{description:j("svgo_collapsGroups_desc"),label:j("svgo_collapsGroups"),name:"collapseGroups"},{description:j("svgo_convertColors_desc"),label:j("svgo_convertColors"),name:"convertColors"},{description:j("svgo_convertEllipseToCircle_desc"),label:j("svgo_convertEllipseToCircle"),name:"convertEllipseToCircle"},{description:j("svgo_convertPathData_desc"),label:j("svgo_convertPathData"),name:"convertPathData"},{description:j("svgo_convertShapeToPath_desc"),label:j("svgo_convertShapeToPath"),name:"convertShapeToPath"},{description:j("svgo_convertTransform_desc"),label:j("svgo_convertTransform"),name:"convertTransform"},{description:j("svgo_inlineStyles_desc"),label:j("svgo_inlineStyles"),name:"inlineStyles"},{description:j("svgo_mergePaths_desc"),label:j("svgo_mergePaths"),name:"mergePaths"},{description:j("svgo_mergeStyles_desc"),label:j("svgo_mergeStyles"),name:"mergeStyles"},{description:j("svgo_minifyStyles_desc"),label:j("svgo_minifyStyles"),name:"minifyStyles"},{description:j("svgo_moveElemsAttrsToGroup_desc"),label:j("svgo_moveElemsAttrsToGroup"),name:"moveElemsAttrsToGroup"},{description:j("svgo_moveGroupAttrsToElems_desc"),label:j("svgo_moveGroupAttrsToElems"),name:"moveGroupAttrsToElems"},{description:j("svgo_removeComments_desc"),label:j("svgo_removeComments"),name:"removeComments"},{description:j("svgo_removeDesc_desc"),label:j("svgo_removeDesc"),name:"removeDesc"},{description:j("svgo_removeDoctype_desc"),label:j("svgo_removeDoctype"),name:"removeDoctype"},{description:j("svgo_removeEditorsNSData_desc"),label:j("svgo_removeEditorsNSData"),name:"removeEditorsNSData"},{description:j("svgo_removeEmptyAttrs_desc"),label:j("svgo_removeEmptyAttrs"),name:"removeEmptyAttrs"},{description:j("svgo_removeEmptyContainers_desc"),label:j("svgo_removeEmptyContainers"),name:"removeEmptyContainers"},{description:j("svgo_removeEmptyText_desc"),label:j("svgo_removeEmptyText"),name:"removeEmptyText"},{description:j("svgo_removeHiddenElems_desc"),label:j("svgo_removeHiddenElems"),name:"removeHiddenElems"},{description:j("svgo_removeMetadata_desc"),label:j("svgo_removeMetadata"),name:"removeMetadata"},{description:j("svgo_removeNonInheritableGroupAttrs_desc"),label:j("svgo_removeNonInheritableGroupAttrs"),name:"removeNonInheritableGroupAttrs"},{description:j("svgo_removeTitle_desc"),label:j("svgo_removeTitle"),name:"removeTitle"},{description:j("svgo_removeUnknownsAndDefaults_desc"),label:j("svgo_removeUnknownsAndDefaults"),name:"removeUnknownsAndDefaults"},{description:j("svgo_removeUnusedNS_desc"),label:j("svgo_removeUnusedNS"),name:"removeUnusedNS"},{description:j("svgo_removeUselessDefs_desc"),label:j("svgo_removeUselessDefs"),name:"removeUselessDefs"},{description:j("svgo_removeUselessStrokeAndFill_desc"),label:j("svgo_removeUselessStrokeAndFill"),name:"removeUselessStrokeAndFill"},{description:j("svgo_removeXMLInstructions_desc"),label:j("svgo_removeXMLInstructions"),name:"removeXMLProcInst"},{description:j("svgo_sortAttrs_desc"),label:j("svgo_sortAttrs"),name:"sortAttrs"},{description:j("svgo_sortDefsChildren_desc"),label:j("svgo_sortDefsChildren"),name:"sortDefsChildren"}],xue=[{description:j("svgo_removeViewBox_desc"),label:j("svgo_removeViewBox"),name:"removeViewBox"},{description:j("svgo_cleanupListOfValues_desc"),label:j("svgo_cleanupListOfValues"),name:"cleanupListOfValues"},{description:j("svgo_convertOneStopGradients_desc"),label:j("svgo_convertOneStopGradients"),name:"convertOneStopGradients"},{description:j("svgo_convertStyleToAttrs_desc"),label:j("svgo_convertStyleToAttrs"),name:"convertStyleToAttrs"},{description:j("svgo_prefixIds_desc"),label:j("svgo_prefixIds"),name:"prefixIds"},{description:j("svgo_removeDimensions_desc"),label:j("svgo_removeDimensions"),name:"removeDimensions"},{description:j("svgo_removeOffCanvasPaths_desc"),label:j("svgo_removeOffCanvasPaths"),name:"removeOffCanvasPaths"},{description:j("svgo_removeRasterImages_desc"),label:j("svgo_removeRasterImages"),name:"removeRasterImages"},{description:j("svgo_removeScriptElement_desc"),label:j("svgo_removeScriptElement"),name:"removeScriptElement"},{description:j("svgo_removeStyleElement_desc"),label:j("svgo_removeStyleElement"),name:"removeStyleElement"},{description:j("svgo_removeXMLNS_desc"),label:j("svgo_removeXMLNS"),name:"removeXMLNS"},{description:j("svgo_reusePaths_desc"),label:j("svgo_reusePaths"),name:"reusePaths"}],b4=[...pk,...xue],Sue=()=>{const{dispatch:t,state:e}=bs(),n=async()=>{const o=await ye.getStorageData("plugins")??[];t({payload:o,type:"set-svgo-plugins"})},i=()=>{t({payload:[],type:"set-svgo-plugins"})},r=()=>{t({payload:pk,type:"set-svgo-plugins"})},s=async()=>{ye.setStorageData("plugins",e.settings.svg.svgoPlugins)},a=[{label:"Default settings",onClick:n},{label:"SVGO default",onClick:r},{label:"Deselect all",onClick:i}];return b.jsx(k.Fragment,{children:b.jsxs(Ci,{children:[b.jsxs(Ci.Button,{className:"flex items-center gap-1",children:[j("export_apply")," ",b.jsx(Gw,{className:"h-4 w-4"})]}),b.jsx(Wt,{as:k.Fragment,...m4.menu,children:b.jsx(Ci.Items,{className:Tt("absolute right-0 z-10 mt-2 w-40 origin-top-right rounded-md","bg-white shadow-2xl ring-1 ring-black dark:bg-gray-800 dark:ring-white","focus ring-opacity-5 dark:ring-opacity-5"),children:b.jsxs("div",{className:"py-1",children:[a.map(o=>b.jsx(Ci.Item,{children:({active:l})=>b.jsx("span",{className:Tt("block cursor-pointer px-3 py-1.5 text-xs",{"bg-gray-100 dark:bg-gray-700":l}),onClick:o.onClick,children:o.label})},o.label)),b.jsx("div",{className:"my-2 border-t border-gray-100 dark:border-gray-700"}),b.jsx(Ci.Item,{children:({active:o})=>b.jsx("span",{className:Tt("block cursor-pointer px-3 py-1.5 text-xs",{"bg-gray-100 dark:bg-gray-700":o}),onClick:s,children:"Set as default"})})]})})})]})})},_ue=({plugin:t})=>{const{dispatch:e,state:n}=bs(),i=k.useMemo(()=>n.settings.svg.svgoPlugins.some(s=>s.name===t.name),[n.settings.svg.svgoPlugins,t]),r=s=>{switch(s.target.checked){case!1:{e({payload:t,type:"remove-svgo-plugin"});break}case!0:{e({payload:t,type:"add-svgo-plugin"});break}}};return b.jsxs("div",{className:"group flex gap-2",children:[b.jsx("input",{checked:i,className:"checkbox",id:t.name,onChange:r,type:"checkbox"}),b.jsx("div",{children:b.jsx("label",{className:"export-label",htmlFor:t.name,children:t.label})}),b.jsx(gs,{content:t.description})]})},Cue=()=>{const{dispatch:t,state:e}=bs(),n=s=>{t({payload:s.target.checked,type:"set-optimize-exports"})},i=s=>{t({payload:s.target.checked,type:"set-prettify"})},r=s=>{t({payload:Number(s.target.value),type:"set-float-precision"})};return b.jsxs(k.Fragment,{children:[b.jsxs("div",{className:"flex flex-col gap-3",children:[b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{checked:e.settings.svg.optimizeExports,className:"checkbox",id:"optimize",onChange:n,type:"checkbox"}),b.jsx("label",{className:"export-label",htmlFor:"optimize",children:j("export_optimize_exports")})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{checked:e.settings.svg.prettify,className:"checkbox",id:"prettify",onChange:i,type:"checkbox"}),b.jsx("label",{className:"export-label",htmlFor:"prettify",children:j("export_pretty")})]}),b.jsxs("div",{children:[b.jsxs("div",{className:"group mb-1 mt-2 flex items-center gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"float-precision",children:j("export_floating")}),b.jsx(gs,{content:"Precision of floating point numbers. Will be passed to each plugin that supports this param."})]}),b.jsx("input",{className:"input",id:"float-precision",max:"10",min:"1",onChange:r,type:"number",value:e.settings.svg.floatPrecision})]})]}),b.jsx("span",{className:"mb-5 mt-6 block h-px bg-gray-200 dark:bg-gray-700"}),b.jsxs(Wt,{as:"div",className:"flex flex-col gap-3 pb-8",enter:"transition-all duration-300 ease-in-out delay-150",enterFrom:"opacity-0 h-0",enterTo:"opacity-100 h-100",leave:"transition-all duration-300 ease-in-out",leaveFrom:"opacity-100 h-100",leaveTo:"opacity-0 h-0",show:e.settings.svg.optimizeExports,children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h2",{className:"my-2 text-sm font-medium leading-none",children:j("details_plugin")}),b.jsx(Sue,{})]}),Md.sortBy(b4,"label").map(s=>b.jsx(_ue,{plugin:s},s.name))]})]})},Yu={enter:"transition-all duration-500 ease-in",enterFrom:"opacity-0 h-0 translate-y-2",enterTo:"opacity-100 h-20 translate-y-0",leave:"transition-all duration-500 ease-out",leaveFrom:"opacity-100 h-20 translate-y-0",leaveTo:"opacity-0 h-0 translate-y-2"},$ue=k.forwardRef((t,e)=>{const{dispatch:n,state:i}=bs(),r=s=>{n({payload:s.target.value,type:"set-file-type"})};return b.jsxs("div",{ref:e,...t,className:"flex-1 overflow-y-auto p-4",children:[b.jsxs("div",{className:"mb-3",children:[b.jsx("label",{className:"export-label",htmlFor:"file-type",children:j("export_filetype")}),b.jsx("select",{className:"export-select",id:"file-type",onChange:r,value:i.fileType,children:Cne.map(s=>b.jsx("option",{value:s,children:mue[s]},s))})]}),b.jsx("div",{className:"mb-5",children:b.jsx(gue,{})}),b.jsx("h2",{className:"my-3 text-sm font-medium",children:j("export_settings")}),b.jsxs("div",{className:"relative",children:[b.jsx(Wt,{as:"div",show:i.fileType==="svg",...Yu,children:b.jsx(Cue,{})}),b.jsx(Wt,{as:"div",show:i.fileType==="png",...Yu,children:b.jsx(yue,{})}),b.jsx(Wt,{as:"div",show:i.fileType==="webp",...Yu,children:b.jsx(vue,{})}),b.jsx(Wt,{as:"div",show:i.fileType==="jpeg",...Yu,children:b.jsx(bue,{})}),b.jsx(Wt,{as:"div",show:i.fileType==="sprite",...Yu,children:b.jsx(wue,{})})]})]})}),a2={applied:j("edit_applied"),apply:j("edit_apply")},Pue=k.forwardRef((t,e)=>{const[n,i]=k.useState(a2.apply),{dispatch:r,state:s}=dL(),{handleUpdateProperties:a}=pue();function o(h){const{id:m,value:g}=h.currentTarget;r({payload:{[m]:g},type:"set-edit-property-value"})}function l(h){const{id:m,value:g}=h.currentTarget;switch(m){case"custom-name":{r({payload:g,type:"set-edit-custom-name"});break}case"custom-value":{r({payload:g,type:"set-edit-custom-value"});break}}}function c(){r({type:"reset"})}function f(){a(),i(a2.applied),setTimeout(()=>{i(a2.apply)},2e3)}const u=k.useMemo(()=>{const h=Object.values(s.standard).some(v=>v!==""),m=s.custom.name!=="",g=s.custom.value!=="";return h||m&&g},[s]);return b.jsxs(k.Fragment,{children:[b.jsxs("div",{ref:e,...t,className:"flex-1 overflow-y-auto p-4",children:[b.jsx("h2",{className:"mb-3 text-sm font-medium",children:j("edit_properties")}),b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsxs("div",{className:"group",children:[b.jsxs("div",{className:"flex items-center gap-0.5",children:[b.jsx("label",{className:"export-label",htmlFor:"custom-name",children:j("edit_custom_name")}),b.jsx(gs,{content:j("edit_custom_name_tooltip")})]}),b.jsx("input",{className:"export-input",id:"custom-name",onChange:l,type:"text",value:s.custom.name})]}),b.jsxs("div",{className:"group",children:[b.jsxs("div",{className:"flex items-center gap-0.5",children:[b.jsx("label",{className:"export-label",htmlFor:"custom-value",children:j("edit_custom_value")}),b.jsx(gs,{content:j("edit_custom_value_tooltip")})]}),b.jsx("input",{className:"export-input",id:"custom-value",onChange:l,type:"text",value:s.custom.value})]})]}),b.jsx("hr",{className:"my-6"}),b.jsx("div",{className:"flex flex-col gap-2",children:hue.map(h=>b.jsxs("div",{className:"group",children:[b.jsxs("div",{className:"flex items-center gap-0.5",children:[b.jsx("label",{className:"export-label",htmlFor:h.value,children:h.label}),h.tooltip&&b.jsx(gs,{content:h.tooltip})]}),b.jsx("input",{className:"export-input",id:h.value,onChange:o,type:"text",value:s.standard[h.value]})]},h.value))})]}),b.jsxs("footer",{className:"flex shrink-0 flex-col gap-2 border-t border-gray-200 px-4 pb-6 pt-4 dark:border-gray-700",children:[b.jsx(Wt,{as:"div",className:"flex-1",show:u,...Yu,children:b.jsx(_t,{className:"w-full",onClick:c,variant:"secondary",children:j("edit_reset")})}),b.jsx(_t,{disabled:!u,onClick:f,children:n})]})]})});var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tue(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})})),n}var Hj={},Zj={};(function(t){(function(e){e.parser=function(B,D){return new i(B,D)},e.SAXParser=i,e.MAX_BUFFER_LENGTH=64*1024;var n=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(B,D){if(!(this instanceof i))return new i(B,D);var te=this;s(te),te.q=te.c="",te.bufferCheckPosition=e.MAX_BUFFER_LENGTH,te.opt=D||{},te.opt.lowercase=te.opt.lowercase||te.opt.lowercasetags,te.looseCase=te.opt.lowercase?"toLowerCase":"toUpperCase",te.tags=[],te.closed=te.closedRoot=te.sawRoot=!1,te.tag=te.error=null,te.strict=!!B,te.noscript=!!(B||te.opt.noscript),te.state=S.BEGIN,te.strictEntities=te.opt.strictEntities,te.ENTITIES=te.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),te.attribList=[],te.opt.xmlns&&(te.ns=Object.create(u)),te.trackPosition=te.opt.position!==!1,te.trackPosition&&(te.position=te.line=te.column=0),_(te,"onready")}Object.create||(Object.create=function(B){function D(){}D.prototype=B;var te=new D;return te}),Object.keys||(Object.keys=function(B){var D=[];for(var te in B)B.hasOwnProperty(te)&&D.push(te);return D});function r(B){for(var D=Math.max(e.MAX_BUFFER_LENGTH,10),te=0,q=0,lt=n.length;q<lt;q++){var yt=B[n[q]].length;if(yt>D)switch(n[q]){case"textNode":A(B);break;case"cdata":P(B,"oncdata",B.cdata),B.cdata="";break;case"script":P(B,"onscript",B.script),B.script="";break;default:M(B,"Max buffer length exceeded: "+n[q])}te=Math.max(te,yt)}var mt=e.MAX_BUFFER_LENGTH-te;B.bufferCheckPosition=mt+B.position}function s(B){for(var D=0,te=n.length;D<te;D++)B[n[D]]=""}function a(B){A(B),B.cdata!==""&&(P(B,"oncdata",B.cdata),B.cdata=""),B.script!==""&&(P(B,"onscript",B.script),B.script="")}i.prototype={end:function(){Q(this)},write:ge,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o="[CDATA[",l="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",f="http://www.w3.org/2000/xmlns/",u={xml:c,xmlns:f},h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function w(B){return B===" "||B===`
|
||
`||B==="\r"||B===" "}function O(B){return B==='"'||B==="'"}function x(B){return B===">"||w(B)}function $(B,D){return B.test(D)}function T(B,D){return!$(B,D)}var S=0;e.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(B){var D=e.ENTITIES[B],te=typeof D=="number"?String.fromCharCode(D):D;e.ENTITIES[B]=te}));for(var R in e.STATE)e.STATE[e.STATE[R]]=R;S=e.STATE;function _(B,D,te){B[D]&&B[D](te)}function P(B,D,te){B.textNode&&A(B),_(B,D,te)}function A(B){B.textNode=N(B.opt,B.textNode),B.textNode&&_(B,"ontext",B.textNode),B.textNode=""}function N(B,D){return B.trim&&(D=D.trim()),B.normalize&&(D=D.replace(/\s+/g," ")),D}function M(B,D){A(B);const te=D+`
|
||
Line: `+B.line+`
|
||
Column: `+B.column+`
|
||
Char: `+B.c,q=new Error(te);return q.reason=D,q.line=B.line,q.column=B.column,B.error=q,_(B,"onerror",q),B}function Q(B){return B.sawRoot&&!B.closedRoot&&U(B,"Unclosed root tag"),B.state!==S.BEGIN&&B.state!==S.BEGIN_WHITESPACE&&B.state!==S.TEXT&&M(B,"Unexpected end"),A(B),B.c="",B.closed=!0,_(B,"onend"),i.call(B,B.strict,B.opt),B}function U(B,D){if(typeof B!="object"||!(B instanceof i))throw new Error("bad call to strictFail");B.strict&&M(B,D)}function z(B){B.strict||(B.tagName=B.tagName[B.looseCase]());var D=B.tags[B.tags.length-1]||B,te=B.tag={name:B.tagName,attributes:{}};B.opt.xmlns&&(te.ns=D.ns),B.attribList.length=0,P(B,"onopentagstart",te)}function Y(B,D){var te=B.indexOf(":"),q=te<0?["",B]:B.split(":"),lt=q[0],yt=q[1];return D&&B==="xmlns"&&(lt="xmlns",yt=""),{prefix:lt,local:yt}}function ae(B){if(B.strict||(B.attribName=B.attribName[B.looseCase]()),B.attribList.indexOf(B.attribName)!==-1||B.tag.attributes.hasOwnProperty(B.attribName)){B.attribName=B.attribValue="";return}if(B.opt.xmlns){var D=Y(B.attribName,!0),te=D.prefix,q=D.local;if(te==="xmlns")if(q==="xml"&&B.attribValue!==c)U(B,"xml: prefix must be bound to "+c+`
|
||
Actual: `+B.attribValue);else if(q==="xmlns"&&B.attribValue!==f)U(B,"xmlns: prefix must be bound to "+f+`
|
||
Actual: `+B.attribValue);else{var lt=B.tag,yt=B.tags[B.tags.length-1]||B;lt.ns===yt.ns&&(lt.ns=Object.create(yt.ns)),lt.ns[q]=B.attribValue}B.attribList.push([B.attribName,B.attribValue])}else B.tag.attributes[B.attribName]=B.attribValue,P(B,"onattribute",{name:B.attribName,value:B.attribValue});B.attribName=B.attribValue=""}function ne(B,D){if(B.opt.xmlns){var te=B.tag,q=Y(B.tagName);te.prefix=q.prefix,te.local=q.local,te.uri=te.ns[q.prefix]||"",te.prefix&&!te.uri&&(U(B,"Unbound namespace prefix: "+JSON.stringify(B.tagName)),te.uri=q.prefix);var lt=B.tags[B.tags.length-1]||B;te.ns&<.ns!==te.ns&&Object.keys(te.ns).forEach((function(qi){P(B,"onopennamespace",{prefix:qi,uri:te.ns[qi]})}));for(var yt=0,mt=B.attribList.length;yt<mt;yt++){var Ke=B.attribList[yt],Gt=Ke[0],dt=Ke[1],dn=Y(Gt,!0),Ot=dn.prefix,wn=dn.local,kn=Ot===""?"":te.ns[Ot]||"",an={name:Gt,value:dt,prefix:Ot,local:wn,uri:kn};Ot&&Ot!=="xmlns"&&!kn&&(U(B,"Unbound namespace prefix: "+JSON.stringify(Ot)),an.uri=Ot),B.tag.attributes[Gt]=an,P(B,"onattribute",an)}B.attribList.length=0}B.tag.isSelfClosing=!!D,B.sawRoot=!0,B.tags.push(B.tag),P(B,"onopentag",B.tag),D||(!B.noscript&&B.tagName.toLowerCase()==="script"?B.state=S.SCRIPT:B.state=S.TEXT,B.tag=null,B.tagName=""),B.attribName=B.attribValue="",B.attribList.length=0}function he(B){if(!B.tagName){U(B,"Weird empty close tag."),B.textNode+="</>",B.state=S.TEXT;return}if(B.script){if(B.tagName!=="script"){B.script+="</"+B.tagName+">",B.tagName="",B.state=S.SCRIPT;return}P(B,"onscript",B.script),B.script=""}var D=B.tags.length,te=B.tagName;B.strict||(te=te[B.looseCase]());for(var q=te;D--;){var lt=B.tags[D];if(lt.name!==q)U(B,"Unexpected close tag");else break}if(D<0){U(B,"Unmatched closing tag: "+B.tagName),B.textNode+="</"+B.tagName+">",B.state=S.TEXT;return}B.tagName=te;for(var yt=B.tags.length;yt-- >D;){var mt=B.tag=B.tags.pop();B.tagName=B.tag.name,P(B,"onclosetag",B.tagName);var Ke={};for(var Gt in mt.ns)Ke[Gt]=mt.ns[Gt];var dt=B.tags[B.tags.length-1]||B;B.opt.xmlns&&mt.ns!==dt.ns&&Object.keys(mt.ns).forEach((function(dn){var Ot=mt.ns[dn];P(B,"onclosenamespace",{prefix:dn,uri:Ot})}))}D===0&&(B.closedRoot=!0),B.tagName=B.attribValue=B.attribName="",B.attribList.length=0,B.state=S.TEXT}function ve(B){var D=B.entity,te=D.toLowerCase(),q,lt="";return B.ENTITIES[D]?B.ENTITIES[D]:B.ENTITIES[te]?B.ENTITIES[te]:(D=te,D.charAt(0)==="#"&&(D.charAt(1)==="x"?(D=D.slice(2),q=parseInt(D,16),lt=q.toString(16)):(D=D.slice(1),q=parseInt(D,10),lt=q.toString(10))),D=D.replace(/^0+/,""),isNaN(q)||lt.toLowerCase()!==D?(U(B,"Invalid character entity"),"&"+B.entity+";"):String.fromCodePoint(q))}function je(B,D){D==="<"?(B.state=S.OPEN_WAKA,B.startTagPosition=B.position):w(D)||(U(B,"Non-whitespace before first tag."),B.textNode=D,B.state=S.TEXT)}function we(B,D){var te="";return D<B.length&&(te=B.charAt(D)),te}function ge(B){var D=this;if(this.error)throw this.error;if(D.closed)return M(D,"Cannot write after close. Assign an onready handler.");if(B===null)return Q(D);typeof B=="object"&&(B=B.toString());for(var te=0,q="";q=we(B,te++),D.c=q,!!q;)switch(D.trackPosition&&(D.position++,q===`
|
||
`?(D.line++,D.column=0):D.column++),D.state){case S.BEGIN:if(D.state=S.BEGIN_WHITESPACE,q==="\uFEFF")continue;je(D,q);continue;case S.BEGIN_WHITESPACE:je(D,q);continue;case S.TEXT:if(D.sawRoot&&!D.closedRoot){for(var lt=te-1;q&&q!=="<"&&q!=="&";)q=we(B,te++),q&&D.trackPosition&&(D.position++,q===`
|
||
`?(D.line++,D.column=0):D.column++);D.textNode+=B.substring(lt,te-1)}q==="<"&&!(D.sawRoot&&D.closedRoot&&!D.strict)?(D.state=S.OPEN_WAKA,D.startTagPosition=D.position):(!w(q)&&(!D.sawRoot||D.closedRoot)&&U(D,"Text data outside of root node."),q==="&"?D.state=S.TEXT_ENTITY:D.textNode+=q);continue;case S.SCRIPT:q==="<"?D.state=S.SCRIPT_ENDING:D.script+=q;continue;case S.SCRIPT_ENDING:q==="/"?D.state=S.CLOSE_TAG:(D.script+="<"+q,D.state=S.SCRIPT);continue;case S.OPEN_WAKA:if(q==="!")D.state=S.SGML_DECL,D.sgmlDecl="";else if(!w(q))if($(h,q))D.state=S.OPEN_TAG,D.tagName=q;else if(q==="/")D.state=S.CLOSE_TAG,D.tagName="";else if(q==="?")D.state=S.PROC_INST,D.procInstName=D.procInstBody="";else{if(U(D,"Unencoded <"),D.startTagPosition+1<D.position){var yt=D.position-D.startTagPosition;q=new Array(yt).join(" ")+q}D.textNode+="<"+q,D.state=S.TEXT}continue;case S.SGML_DECL:(D.sgmlDecl+q).toUpperCase()===o?(P(D,"onopencdata"),D.state=S.CDATA,D.sgmlDecl="",D.cdata=""):D.sgmlDecl+q==="--"?(D.state=S.COMMENT,D.comment="",D.sgmlDecl=""):(D.sgmlDecl+q).toUpperCase()===l?(D.state=S.DOCTYPE,(D.doctype||D.sawRoot)&&U(D,"Inappropriately located doctype declaration"),D.doctype="",D.sgmlDecl=""):q===">"?(P(D,"onsgmldeclaration",D.sgmlDecl),D.sgmlDecl="",D.state=S.TEXT):(O(q)&&(D.state=S.SGML_DECL_QUOTED),D.sgmlDecl+=q);continue;case S.SGML_DECL_QUOTED:q===D.q&&(D.state=S.SGML_DECL,D.q=""),D.sgmlDecl+=q;continue;case S.DOCTYPE:q===">"?(D.state=S.TEXT,P(D,"ondoctype",D.doctype),D.doctype=!0):(D.doctype+=q,q==="["?D.state=S.DOCTYPE_DTD:O(q)&&(D.state=S.DOCTYPE_QUOTED,D.q=q));continue;case S.DOCTYPE_QUOTED:D.doctype+=q,q===D.q&&(D.q="",D.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:D.doctype+=q,q==="]"?D.state=S.DOCTYPE:O(q)&&(D.state=S.DOCTYPE_DTD_QUOTED,D.q=q);continue;case S.DOCTYPE_DTD_QUOTED:D.doctype+=q,q===D.q&&(D.state=S.DOCTYPE_DTD,D.q="");continue;case S.COMMENT:q==="-"?D.state=S.COMMENT_ENDING:D.comment+=q;continue;case S.COMMENT_ENDING:q==="-"?(D.state=S.COMMENT_ENDED,D.comment=N(D.opt,D.comment),D.comment&&P(D,"oncomment",D.comment),D.comment=""):(D.comment+="-"+q,D.state=S.COMMENT);continue;case S.COMMENT_ENDED:q!==">"?(U(D,"Malformed comment"),D.comment+="--"+q,D.state=S.COMMENT):D.state=S.TEXT;continue;case S.CDATA:q==="]"?D.state=S.CDATA_ENDING:D.cdata+=q;continue;case S.CDATA_ENDING:q==="]"?D.state=S.CDATA_ENDING_2:(D.cdata+="]"+q,D.state=S.CDATA);continue;case S.CDATA_ENDING_2:q===">"?(D.cdata&&P(D,"oncdata",D.cdata),P(D,"onclosecdata"),D.cdata="",D.state=S.TEXT):q==="]"?D.cdata+="]":(D.cdata+="]]"+q,D.state=S.CDATA);continue;case S.PROC_INST:q==="?"?D.state=S.PROC_INST_ENDING:w(q)?D.state=S.PROC_INST_BODY:D.procInstName+=q;continue;case S.PROC_INST_BODY:if(!D.procInstBody&&w(q))continue;q==="?"?D.state=S.PROC_INST_ENDING:D.procInstBody+=q;continue;case S.PROC_INST_ENDING:q===">"?(P(D,"onprocessinginstruction",{name:D.procInstName,body:D.procInstBody}),D.procInstName=D.procInstBody="",D.state=S.TEXT):(D.procInstBody+="?"+q,D.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:$(m,q)?D.tagName+=q:(z(D),q===">"?ne(D):q==="/"?D.state=S.OPEN_TAG_SLASH:(w(q)||U(D,"Invalid character in tag name"),D.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:q===">"?(ne(D,!0),he(D)):(U(D,"Forward-slash in opening tag not followed by >"),D.state=S.ATTRIB);continue;case S.ATTRIB:if(w(q))continue;q===">"?ne(D):q==="/"?D.state=S.OPEN_TAG_SLASH:$(h,q)?(D.attribName=q,D.attribValue="",D.state=S.ATTRIB_NAME):U(D,"Invalid attribute name");continue;case S.ATTRIB_NAME:q==="="?D.state=S.ATTRIB_VALUE:q===">"?(U(D,"Attribute without value"),D.attribValue=D.attribName,ae(D),ne(D)):w(q)?D.state=S.ATTRIB_NAME_SAW_WHITE:$(m,q)?D.attribName+=q:U(D,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if(q==="=")D.state=S.ATTRIB_VALUE;else{if(w(q))continue;U(D,"Attribute without value"),D.tag.attributes[D.attribName]="",D.attribValue="",P(D,"onattribute",{name:D.attribName,value:""}),D.attribName="",q===">"?ne(D):$(h,q)?(D.attribName=q,D.state=S.ATTRIB_NAME):(U(D,"Invalid attribute name"),D.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(w(q))continue;O(q)?(D.q=q,D.state=S.ATTRIB_VALUE_QUOTED):(U(D,"Unquoted attribute value"),D.state=S.ATTRIB_VALUE_UNQUOTED,D.attribValue=q);continue;case S.ATTRIB_VALUE_QUOTED:if(q!==D.q){q==="&"?D.state=S.ATTRIB_VALUE_ENTITY_Q:D.attribValue+=q;continue}ae(D),D.q="",D.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:w(q)?D.state=S.ATTRIB:q===">"?ne(D):q==="/"?D.state=S.OPEN_TAG_SLASH:$(h,q)?(U(D,"No whitespace between attributes"),D.attribName=q,D.attribValue="",D.state=S.ATTRIB_NAME):U(D,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!x(q)){q==="&"?D.state=S.ATTRIB_VALUE_ENTITY_U:D.attribValue+=q;continue}ae(D),q===">"?ne(D):D.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(D.tagName)q===">"?he(D):$(m,q)?D.tagName+=q:D.script?(D.script+="</"+D.tagName,D.tagName="",D.state=S.SCRIPT):(w(q)||U(D,"Invalid tagname in closing tag"),D.state=S.CLOSE_TAG_SAW_WHITE);else{if(w(q))continue;T(h,q)?D.script?(D.script+="</"+q,D.state=S.SCRIPT):U(D,"Invalid tagname in closing tag."):D.tagName=q}continue;case S.CLOSE_TAG_SAW_WHITE:if(w(q))continue;q===">"?he(D):U(D,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var mt,Ke;switch(D.state){case S.TEXT_ENTITY:mt=S.TEXT,Ke="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:mt=S.ATTRIB_VALUE_QUOTED,Ke="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:mt=S.ATTRIB_VALUE_UNQUOTED,Ke="attribValue";break}if(q===";"){var Gt=ve(D);D.state===S.TEXT_ENTITY&&!e.ENTITIES[D.entity]&&Gt!=="&"+D.entity+";"?B=B.slice(0,te)+Gt+B.slice(te):D[Ke]+=Gt,D.entity="",D.state=mt}else $(D.entity.length?v:g,q)?D.entity+=q:(U(D,"Invalid character in entity name"),D[Ke]+="&"+D.entity+q,D.entity="",D.state=mt);continue;default:throw new Error(D,"Unknown state: "+D.state)}return D.position>=D.bufferCheckPosition&&r(D),D}})(t)})(Zj);var An={};(function(t){t.elemsGroups={animation:new Set(["animate","animateColor","animateMotion","animateTransform","set"]),descriptive:new Set(["desc","metadata","title"]),shape:new Set(["circle","ellipse","line","path","polygon","polyline","rect"]),structural:new Set(["defs","g","svg","symbol","use"]),paintServer:new Set(["hatch","linearGradient","meshGradient","pattern","radialGradient","solidColor"]),nonRendering:new Set(["clipPath","filter","linearGradient","marker","mask","pattern","radialGradient","solidColor","symbol"]),container:new Set(["a","defs","foreignObject","g","marker","mask","missing-glyph","pattern","svg","switch","symbol"]),textContent:new Set(["altGlyph","altGlyphDef","altGlyphItem","glyph","glyphRef","text","textPath","tref","tspan"]),textContentChild:new Set(["altGlyph","textPath","tref","tspan"]),lightSource:new Set(["feDiffuseLighting","feDistantLight","fePointLight","feSpecularLighting","feSpotLight"]),filterPrimitive:new Set(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence"])},t.textElems=new Set([...t.elemsGroups.textContent,"pre","title"]),t.pathElems=new Set(["glyph","missing-glyph","path"]),t.attrsGroups={animationAddition:new Set(["additive","accumulate"]),animationAttributeTarget:new Set(["attributeType","attributeName"]),animationEvent:new Set(["onbegin","onend","onrepeat","onload"]),animationTiming:new Set(["begin","dur","end","fill","max","min","repeatCount","repeatDur","restart"]),animationValue:new Set(["by","calcMode","from","keySplines","keyTimes","to","values"]),conditionalProcessing:new Set(["requiredExtensions","requiredFeatures","systemLanguage"]),core:new Set(["id","tabindex","xml:base","xml:lang","xml:space"]),graphicalEvent:new Set(["onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup"]),presentation:new Set(["alignment-baseline","baseline-shift","clip-path","clip-rule","clip","color-interpolation-filters","color-interpolation","color-profile","color-rendering","color","cursor","direction","display","dominant-baseline","enable-background","fill-opacity","fill-rule","fill","filter","flood-color","flood-opacity","font-family","font-size-adjust","font-size","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","stroke","text-anchor","text-decoration","text-overflow","text-rendering","transform-origin","transform","unicode-bidi","vector-effect","visibility","word-spacing","writing-mode"]),xlink:new Set(["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type"]),documentEvent:new Set(["onabort","onerror","onresize","onscroll","onunload","onzoom"]),documentElementEvent:new Set(["oncopy","oncut","onpaste"]),globalEvent:new Set(["oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting"]),filterPrimitive:new Set(["x","y","width","height","result"]),transferFunction:new Set(["amplitude","exponent","intercept","offset","slope","tableValues","type"])},t.attrsGroupsDefaults={core:{"xml:space":"default"},presentation:{clip:"auto","clip-path":"none","clip-rule":"nonzero",mask:"none",opacity:"1","stop-color":"#000","stop-opacity":"1","fill-opacity":"1","fill-rule":"nonzero",fill:"#000",stroke:"none","stroke-width":"1","stroke-linecap":"butt","stroke-linejoin":"miter","stroke-miterlimit":"4","stroke-dasharray":"none","stroke-dashoffset":"0","stroke-opacity":"1","paint-order":"normal","vector-effect":"none",display:"inline",visibility:"visible","marker-start":"none","marker-mid":"none","marker-end":"none","color-interpolation":"sRGB","color-interpolation-filters":"linearRGB","color-rendering":"auto","shape-rendering":"auto","text-rendering":"auto","image-rendering":"auto","font-style":"normal","font-variant":"normal","font-weight":"normal","font-stretch":"normal","font-size":"medium","font-size-adjust":"none",kerning:"auto","letter-spacing":"normal","word-spacing":"normal","text-decoration":"none","text-anchor":"start","text-overflow":"clip","writing-mode":"lr-tb","glyph-orientation-vertical":"auto","glyph-orientation-horizontal":"0deg",direction:"ltr","unicode-bidi":"normal","dominant-baseline":"auto","alignment-baseline":"baseline","baseline-shift":"baseline"},transferFunction:{slope:"1",intercept:"0",amplitude:"1",exponent:"1",offset:"0"}},t.elems={a:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","style","target","transform"]),defaults:{target:"_self"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view","tspan"])},altGlyph:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","dx","dy","externalResourcesRequired","format","glyphRef","rotate","style","x","y"])},altGlyphDef:{attrsGroups:new Set(["core"]),content:new Set(["glyphRef"])},altGlyphItem:{attrsGroups:new Set(["core"]),content:new Set(["glyphRef","altGlyphItem"])},animate:{attrsGroups:new Set(["animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","conditionalProcessing","core","presentation","xlink"]),attrs:new Set(["externalResourcesRequired"]),contentGroups:new Set(["descriptive"])},animateColor:{attrsGroups:new Set(["animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","conditionalProcessing","core","presentation","xlink"]),attrs:new Set(["externalResourcesRequired"]),contentGroups:new Set(["descriptive"])},animateMotion:{attrsGroups:new Set(["animationAddition","animationEvent","animationTiming","animationValue","conditionalProcessing","core","xlink"]),attrs:new Set(["externalResourcesRequired","keyPoints","origin","path","rotate"]),defaults:{rotate:"0"},contentGroups:new Set(["descriptive"]),content:new Set(["mpath"])},animateTransform:{attrsGroups:new Set(["animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","conditionalProcessing","core","xlink"]),attrs:new Set(["externalResourcesRequired","type"]),contentGroups:new Set(["descriptive"])},circle:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","cx","cy","externalResourcesRequired","r","style","transform"]),defaults:{cx:"0",cy:"0"},contentGroups:new Set(["animation","descriptive"])},clipPath:{attrsGroups:new Set(["conditionalProcessing","core","presentation"]),attrs:new Set(["class","clipPathUnits","externalResourcesRequired","style","transform"]),defaults:{clipPathUnits:"userSpaceOnUse"},contentGroups:new Set(["animation","descriptive","shape"]),content:new Set(["text","use"])},"color-profile":{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["local","name","rendering-intent"]),defaults:{name:"sRGB","rendering-intent":"auto"},contentGroups:new Set(["descriptive"])},cursor:{attrsGroups:new Set(["core","conditionalProcessing","xlink"]),attrs:new Set(["externalResourcesRequired","x","y"]),defaults:{x:"0",y:"0"},contentGroups:new Set(["descriptive"])},defs:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform"]),contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},desc:{attrsGroups:new Set(["core"]),attrs:new Set(["class","style"])},ellipse:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","cx","cy","externalResourcesRequired","rx","ry","style","transform"]),defaults:{cx:"0",cy:"0"},contentGroups:new Set(["animation","descriptive"])},feBlend:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","in2","mode"]),defaults:{mode:"normal"},content:new Set(["animate","set"])},feColorMatrix:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","type","values"]),defaults:{type:"matrix"},content:new Set(["animate","set"])},feComponentTransfer:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in"]),content:new Set(["feFuncA","feFuncB","feFuncG","feFuncR"])},feComposite:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","in2","k1","k2","k3","k4","operator","style"]),defaults:{operator:"over",k1:"0",k2:"0",k3:"0",k4:"0"},content:new Set(["animate","set"])},feConvolveMatrix:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","kernelMatrix","order","style","bias","divisor","edgeMode","targetX","targetY","kernelUnitLength","preserveAlpha"]),defaults:{order:"3",bias:"0",edgeMode:"duplicate",preserveAlpha:"false"},content:new Set(["animate","set"])},feDiffuseLighting:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","diffuseConstant","in","kernelUnitLength","style","surfaceScale"]),defaults:{surfaceScale:"1",diffuseConstant:"1"},contentGroups:new Set(["descriptive"]),content:new Set(["feDistantLight","fePointLight","feSpotLight"])},feDisplacementMap:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","in2","scale","style","xChannelSelector","yChannelSelector"]),defaults:{scale:"0",xChannelSelector:"A",yChannelSelector:"A"},content:new Set(["animate","set"])},feDistantLight:{attrsGroups:new Set(["core"]),attrs:new Set(["azimuth","elevation"]),defaults:{azimuth:"0",elevation:"0"},content:new Set(["animate","set"])},feFlood:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style"]),content:new Set(["animate","animateColor","set"])},feFuncA:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feFuncB:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feFuncG:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feFuncR:{attrsGroups:new Set(["core","transferFunction"]),content:new Set(["set","animate"])},feGaussianBlur:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","stdDeviation"]),defaults:{stdDeviation:"0"},content:new Set(["set","animate"])},feImage:{attrsGroups:new Set(["core","presentation","filterPrimitive","xlink"]),attrs:new Set(["class","externalResourcesRequired","href","preserveAspectRatio","style","xlink:href"]),defaults:{preserveAspectRatio:"xMidYMid meet"},content:new Set(["animate","animateTransform","set"])},feMerge:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style"]),content:new Set(["feMergeNode"])},feMergeNode:{attrsGroups:new Set(["core"]),attrs:new Set(["in"]),content:new Set(["animate","set"])},feMorphology:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","operator","radius"]),defaults:{operator:"erode",radius:"0"},content:new Set(["animate","set"])},feOffset:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in","dx","dy"]),defaults:{dx:"0",dy:"0"},content:new Set(["animate","set"])},fePointLight:{attrsGroups:new Set(["core"]),attrs:new Set(["x","y","z"]),defaults:{x:"0",y:"0",z:"0"},content:new Set(["animate","set"])},feSpecularLighting:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","in","kernelUnitLength","specularConstant","specularExponent","style","surfaceScale"]),defaults:{surfaceScale:"1",specularConstant:"1",specularExponent:"1"},contentGroups:new Set(["descriptive","lightSource"])},feSpotLight:{attrsGroups:new Set(["core"]),attrs:new Set(["limitingConeAngle","pointsAtX","pointsAtY","pointsAtZ","specularExponent","x","y","z"]),defaults:{x:"0",y:"0",z:"0",pointsAtX:"0",pointsAtY:"0",pointsAtZ:"0",specularExponent:"1"},content:new Set(["animate","set"])},feTile:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["class","style","in"]),content:new Set(["animate","set"])},feTurbulence:{attrsGroups:new Set(["core","presentation","filterPrimitive"]),attrs:new Set(["baseFrequency","class","numOctaves","seed","stitchTiles","style","type"]),defaults:{baseFrequency:"0",numOctaves:"1",seed:"0",stitchTiles:"noStitch",type:"turbulence"},content:new Set(["animate","set"])},filter:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","filterRes","filterUnits","height","href","primitiveUnits","style","width","x","xlink:href","y"]),defaults:{primitiveUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:new Set(["descriptive","filterPrimitive"]),content:new Set(["animate","set"])},font:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","externalResourcesRequired","horiz-adv-x","horiz-origin-x","horiz-origin-y","style","vert-adv-y","vert-origin-x","vert-origin-y"]),defaults:{"horiz-origin-x":"0","horiz-origin-y":"0"},contentGroups:new Set(["descriptive"]),content:new Set(["font-face","glyph","hkern","missing-glyph","vkern"])},"font-face":{attrsGroups:new Set(["core"]),attrs:new Set(["font-family","font-style","font-variant","font-weight","font-stretch","font-size","unicode-range","units-per-em","panose-1","stemv","stemh","slope","cap-height","x-height","accent-height","ascent","descent","widths","bbox","ideographic","alphabetic","mathematical","hanging","v-ideographic","v-alphabetic","v-mathematical","v-hanging","underline-position","underline-thickness","strikethrough-position","strikethrough-thickness","overline-position","overline-thickness"]),defaults:{"font-style":"all","font-variant":"normal","font-weight":"all","font-stretch":"normal","unicode-range":"U+0-10FFFF","units-per-em":"1000","panose-1":"0 0 0 0 0 0 0 0 0 0",slope:"0"},contentGroups:new Set(["descriptive"]),content:new Set(["font-face-src"])},"font-face-format":{attrsGroups:new Set(["core"]),attrs:new Set(["string"])},"font-face-name":{attrsGroups:new Set(["core"]),attrs:new Set(["name"])},"font-face-src":{attrsGroups:new Set(["core"]),content:new Set(["font-face-name","font-face-uri"])},"font-face-uri":{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["href","xlink:href"]),content:new Set(["font-face-format"])},foreignObject:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","height","style","transform","width","x","y"]),defaults:{x:"0",y:"0"}},g:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform"]),contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},glyph:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["arabic-form","class","d","glyph-name","horiz-adv-x","lang","orientation","style","unicode","vert-adv-y","vert-origin-x","vert-origin-y"]),defaults:{"arabic-form":"initial"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},glyphRef:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","d","horiz-adv-x","style","vert-adv-y","vert-origin-x","vert-origin-y"]),contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},hatch:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","hatchContentUnits","hatchUnits","pitch","rotate","style","transform","x","y"]),defaults:{hatchUnits:"objectBoundingBox",hatchContentUnits:"userSpaceOnUse",x:"0",y:"0",pitch:"0",rotate:"0"},contentGroups:new Set(["animation","descriptive"]),content:new Set(["hatchPath"])},hatchPath:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","style","d","offset"]),defaults:{offset:"0"},contentGroups:new Set(["animation","descriptive"])},hkern:{attrsGroups:new Set(["core"]),attrs:new Set(["u1","g1","u2","g2","k"])},image:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","height","href","preserveAspectRatio","style","transform","width","x","xlink:href","y"]),defaults:{x:"0",y:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:new Set(["animation","descriptive"])},line:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform","x1","x2","y1","y2"]),defaults:{x1:"0",y1:"0",x2:"0",y2:"0"},contentGroups:new Set(["animation","descriptive"])},linearGradient:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","gradientTransform","gradientUnits","href","spreadMethod","style","x1","x2","xlink:href","y1","y2"]),defaults:{x1:"0",y1:"0",x2:"100%",y2:"0",spreadMethod:"pad"},contentGroups:new Set(["descriptive"]),content:new Set(["animate","animateTransform","set","stop"])},marker:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","externalResourcesRequired","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","style","viewBox"]),defaults:{markerUnits:"strokeWidth",refX:"0",refY:"0",markerWidth:"3",markerHeight:"3"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},mask:{attrsGroups:new Set(["conditionalProcessing","core","presentation"]),attrs:new Set(["class","externalResourcesRequired","height","mask-type","maskContentUnits","maskUnits","style","width","x","y"]),defaults:{maskUnits:"objectBoundingBox",maskContentUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},metadata:{attrsGroups:new Set(["core"])},"missing-glyph":{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","d","horiz-adv-x","style","vert-adv-y","vert-origin-x","vert-origin-y"]),contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},mpath:{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["externalResourcesRequired","href","xlink:href"]),contentGroups:new Set(["descriptive"])},path:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","d","externalResourcesRequired","pathLength","style","transform"]),contentGroups:new Set(["animation","descriptive"])},pattern:{attrsGroups:new Set(["conditionalProcessing","core","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","height","href","patternContentUnits","patternTransform","patternUnits","preserveAspectRatio","style","viewBox","width","x","xlink:href","y"]),defaults:{patternUnits:"objectBoundingBox",patternContentUnits:"userSpaceOnUse",x:"0",y:"0",width:"0",height:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},polygon:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","points","style","transform"]),contentGroups:new Set(["animation","descriptive"])},polyline:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","points","style","transform"]),contentGroups:new Set(["animation","descriptive"])},radialGradient:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","cx","cy","externalResourcesRequired","fr","fx","fy","gradientTransform","gradientUnits","href","r","spreadMethod","style","xlink:href"]),defaults:{gradientUnits:"objectBoundingBox",cx:"50%",cy:"50%",r:"50%"},contentGroups:new Set(["descriptive"]),content:new Set(["animate","animateTransform","set","stop"])},meshGradient:{attrsGroups:new Set(["core","presentation","xlink"]),attrs:new Set(["class","style","x","y","gradientUnits","transform"]),contentGroups:new Set(["descriptive","paintServer","animation"]),content:new Set(["meshRow"])},meshRow:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style"]),contentGroups:new Set(["descriptive"]),content:new Set(["meshPatch"])},meshPatch:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style"]),contentGroups:new Set(["descriptive"]),content:new Set(["stop"])},rect:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","height","rx","ry","style","transform","width","x","y"]),defaults:{x:"0",y:"0"},contentGroups:new Set(["animation","descriptive"])},script:{attrsGroups:new Set(["core","xlink"]),attrs:new Set(["externalResourcesRequired","type","href","xlink:href"])},set:{attrsGroups:new Set(["animation","animationAttributeTarget","animationTiming","conditionalProcessing","core","xlink"]),attrs:new Set(["externalResourcesRequired","to"]),contentGroups:new Set(["descriptive"])},solidColor:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style"]),contentGroups:new Set(["paintServer"])},stop:{attrsGroups:new Set(["core","presentation"]),attrs:new Set(["class","style","offset","path"]),content:new Set(["animate","animateColor","set"])},style:{attrsGroups:new Set(["core"]),attrs:new Set(["type","media","title"]),defaults:{type:"text/css"}},svg:{attrsGroups:new Set(["conditionalProcessing","core","documentEvent","graphicalEvent","presentation"]),attrs:new Set(["baseProfile","class","contentScriptType","contentStyleType","height","preserveAspectRatio","style","version","viewBox","width","x","y","zoomAndPan"]),defaults:{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet",zoomAndPan:"magnify",version:"1.1",baseProfile:"none",contentScriptType:"application/ecmascript",contentStyleType:"text/css"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},switch:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","style","transform"]),contentGroups:new Set(["animation","descriptive","shape"]),content:new Set(["a","foreignObject","g","image","svg","switch","text","use"])},symbol:{attrsGroups:new Set(["core","graphicalEvent","presentation"]),attrs:new Set(["class","externalResourcesRequired","preserveAspectRatio","refX","refY","style","viewBox"]),defaults:{refX:"0",refY:"0"},contentGroups:new Set(["animation","descriptive","paintServer","shape","structural"]),content:new Set(["a","altGlyphDef","clipPath","color-profile","cursor","filter","font-face","font","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"])},text:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","dx","dy","externalResourcesRequired","lengthAdjust","rotate","style","textLength","transform","x","y"]),defaults:{x:"0",y:"0",lengthAdjust:"spacing"},contentGroups:new Set(["animation","descriptive","textContentChild"]),content:new Set(["a"])},textPath:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","d","externalResourcesRequired","href","method","spacing","startOffset","style","xlink:href"]),defaults:{startOffset:"0",method:"align",spacing:"exact"},contentGroups:new Set(["descriptive"]),content:new Set(["a","altGlyph","animate","animateColor","set","tref","tspan"])},title:{attrsGroups:new Set(["core"]),attrs:new Set(["class","style"])},tref:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","href","style","xlink:href"]),contentGroups:new Set(["descriptive"]),content:new Set(["animate","animateColor","set"])},tspan:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation"]),attrs:new Set(["class","dx","dy","externalResourcesRequired","lengthAdjust","rotate","style","textLength","x","y"]),contentGroups:new Set(["descriptive"]),content:new Set(["a","altGlyph","animate","animateColor","set","tref","tspan"])},use:{attrsGroups:new Set(["conditionalProcessing","core","graphicalEvent","presentation","xlink"]),attrs:new Set(["class","externalResourcesRequired","height","href","style","transform","width","x","xlink:href","y"]),defaults:{x:"0",y:"0"},contentGroups:new Set(["animation","descriptive"])},view:{attrsGroups:new Set(["core"]),attrs:new Set(["externalResourcesRequired","preserveAspectRatio","viewBox","viewTarget","zoomAndPan"]),contentGroups:new Set(["descriptive"])},vkern:{attrsGroups:new Set(["core"]),attrs:new Set(["u1","g1","u2","g2","k"])}},t.editorNamespaces=new Set(["http://creativecommons.org/ns#","http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd","http://ns.adobe.com/AdobeIllustrator/10.0/","http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/","http://ns.adobe.com/Extensibility/1.0/","http://ns.adobe.com/Flows/1.0/","http://ns.adobe.com/GenericCustomNamespace/1.0/","http://ns.adobe.com/Graphs/1.0/","http://ns.adobe.com/ImageReplacement/1.0/","http://ns.adobe.com/SaveForWeb/1.0/","http://ns.adobe.com/Variables/1.0/","http://ns.adobe.com/XPath/1.0/","http://purl.org/dc/elements/1.1/","http://schemas.microsoft.com/visio/2003/SVGExtensions/","http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","http://taptrix.com/vectorillustrator/svg_extensions","http://www.bohemiancoding.com/sketch/ns","http://www.figma.com/figma/ns","http://www.inkscape.org/namespaces/inkscape","http://www.serif.com/","http://www.vector.evaxdesign.sk","http://www.w3.org/1999/02/22-rdf-syntax-ns#"]),t.referencesProps=new Set(["clip-path","color-profile","fill","filter","marker-end","marker-mid","marker-start","mask","stroke","style"]),t.inheritableAttrs=new Set(["clip-rule","color-interpolation-filters","color-interpolation","color-profile","color-rendering","color","cursor","direction","dominant-baseline","fill-opacity","fill-rule","fill","font-family","font-size-adjust","font-size","font-stretch","font-style","font-variant","font-weight","font","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","marker-end","marker-mid","marker-start","marker","paint-order","pointer-events","shape-rendering","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","stroke","text-anchor","text-rendering","transform","visibility","word-spacing","writing-mode"]),t.presentationNonInheritableGroupAttrs=new Set(["clip-path","display","filter","mask","opacity","text-decoration","transform","unicode-bidi"]),t.colorsNames={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",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:"#639",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"},t.colorsShortNames={"#f0ffff":"azure","#f5f5dc":"beige","#ffe4c4":"bisque","#a52a2a":"brown","#ff7f50":"coral","#ffd700":"gold","#808080":"gray","#008000":"green","#4b0082":"indigo","#fffff0":"ivory","#f0e68c":"khaki","#faf0e6":"linen","#800000":"maroon","#000080":"navy","#808000":"olive","#ffa500":"orange","#da70d6":"orchid","#cd853f":"peru","#ffc0cb":"pink","#dda0dd":"plum","#800080":"purple","#f00":"red","#ff0000":"red","#fa8072":"salmon","#a0522d":"sienna","#c0c0c0":"silver","#fffafa":"snow","#d2b48c":"tan","#008080":"teal","#ff6347":"tomato","#ee82ee":"violet","#f5deb3":"wheat"},t.colorsProps=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),t.pseudoClasses={displayState:new Set(["fullscreen","modal","picture-in-picture"]),input:new Set(["autofill","blank","checked","default","disabled","enabled","in-range","indetermined","invalid","optional","out-of-range","placeholder-shown","read-only","read-write","required","user-invalid","valid"]),linguistic:new Set(["dir","lang"]),location:new Set(["any-link","link","local-link","scope","target-within","target","visited"]),resourceState:new Set(["playing","paused"]),timeDimensional:new Set(["current","past","future"]),treeStructural:new Set(["empty","first-child","first-of-type","last-child","last-of-type","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","root"]),userAction:new Set(["active","focus-visible","focus-within","focus","hover"]),functional:new Set(["is","not","where","has"])}})(An);const Aue=Zj,{textElems:Eue}=An;class y4 extends Error{constructor(e,n,i,r,s){super(e),this.name="SvgoParserError",this.message=`${s||"<input>"}:${n}:${i}: ${e}`,this.reason=e,this.line=n,this.column=i,this.source=r,Error.captureStackTrace&&Error.captureStackTrace(this,y4)}toString(){const e=this.source.split(/\r?\n/),n=Math.max(this.line-3,0),i=Math.min(this.line+2,e.length),r=String(i).length,s=Math.max(this.column-54,0),a=Math.max(this.column+20,80),o=e.slice(n,i).map(((l,c)=>{const f=l.slice(s,a);let u="",h="";s!==0&&(u=s>l.length-1?" ":"…"),a<l.length-1&&(h="…");const m=n+1+c,g=` ${m.toString().padStart(r)} | `;if(m===this.line){const v=g.replace(/[^|]/g," "),w=(u+l.slice(s,this.column-1)).replace(/[^\t]/g," "),O=v+w;return`>${g}${u}${f}${h}
|
||
${O}^`}return` ${g}${u}${f}${h}`})).join(`
|
||
`);return`${this.name}: ${this.message}
|
||
|
||
${o}
|
||
`}}const o2=/<!ENTITY\s+(\S+)\s+(?:'([^']+)'|"([^"]+)")\s*>/g,LE={strict:!0,trim:!1,normalize:!1,lowercase:!0,xmlns:!0,position:!0},Rue=(t,e)=>{const n=Aue.parser(LE.strict,LE),i={type:"root",children:[]};let r=i;const s=[i],a=o=>{Object.defineProperty(o,"parentNode",{writable:!0,value:r}),r.children.push(o)};return n.ondoctype=o=>{a({type:"doctype",name:"svg",data:{doctype:o}});const c=o.indexOf("[");if(c>=0){o2.lastIndex=c;let f=o2.exec(t);for(;f!=null;)n.ENTITIES[f[1]]=f[2]||f[3],f=o2.exec(t)}},n.onprocessinginstruction=o=>{const l={type:"instruction",name:o.name,value:o.body};a(l)},n.oncomment=o=>{const l={type:"comment",value:o.trim()};a(l)},n.oncdata=o=>{a({type:"cdata",value:o})},n.onopentag=o=>{let l={type:"element",name:o.name,attributes:{},children:[]};for(const[c,f]of Object.entries(o.attributes))l.attributes[c]=f.value;a(l),r=l,s.push(l)},n.ontext=o=>{if(r.type==="element"){if(Eue.has(r.name))a({type:"text",value:o});else if(/\S/.test(o)){const l={type:"text",value:o.trim()};a(l)}}},n.onclosetag=()=>{s.pop(),r=s[s.length-1]},n.onerror=o=>{const l=new y4(o.reason,o.line+1,o.column,t,e);if(o.message.indexOf("Unexpected end")===-1)throw l},n.write(t).close(),i};Hj.parseSvg=Rue;var Gj={};const{textElems:Due}=An,Mue=t=>Nue[t],af={doctypeStart:"<!DOCTYPE",doctypeEnd:">",procInstStart:"<?",procInstEnd:"?>",tagOpenStart:"<",tagOpenEnd:">",tagCloseStart:"</",tagCloseEnd:">",tagShortStart:"<",tagShortEnd:"/>",attrStart:'="',attrEnd:'"',commentStart:"<!--",commentEnd:"-->",cdataStart:"<![CDATA[",cdataEnd:"]]>",textStart:"",textEnd:"",indent:4,regEntities:/[&'"<>]/g,regValEntities:/[&"<>]/g,encodeEntity:Mue,pretty:!1,useShortTags:!0,eol:"lf",finalNewline:!1},Nue={"&":"&","'":"'",'"':""",">":">","<":"<"},Lue=(t,e={})=>{const n={...af,...e},i=n.indent;let r=" ";typeof i=="number"&&Number.isNaN(i)===!1?r=i<0?" ":" ".repeat(i):typeof i=="string"&&(r=i);const s={indent:r,textContext:null,indentLevel:0},a=n.eol==="crlf"?`\r
|
||
`:`
|
||
`;n.pretty&&(n.doctypeEnd+=a,n.procInstEnd+=a,n.commentEnd+=a,n.cdataEnd+=a,n.tagShortEnd+=a,n.tagOpenEnd+=a,n.tagCloseEnd+=a,n.textEnd+=a);let o=Xj(t,n,s);return n.finalNewline&&o.length>0&&!o.endsWith(`
|
||
`)&&(o+=a),o};Gj.stringifySvg=Lue;const Xj=(t,e,n)=>{let i="";n.indentLevel+=1;for(const r of t.children)r.type==="element"&&(i+=Que(r,e,n)),r.type==="text"&&(i+=zue(r,e,n)),r.type==="doctype"&&(i+=jue(r,e)),r.type==="instruction"&&(i+=Iue(r,e)),r.type==="comment"&&(i+=Bue(r,e)),r.type==="cdata"&&(i+=Fue(r,e,n));return n.indentLevel-=1,i},ad=(t,e)=>{let n="";return t.pretty&&e.textContext==null&&(n=e.indent.repeat(e.indentLevel-1)),n},jue=(t,e)=>e.doctypeStart+t.data.doctype+e.doctypeEnd,Iue=(t,e)=>e.procInstStart+t.name+" "+t.value+e.procInstEnd,Bue=(t,e)=>e.commentStart+t.value+e.commentEnd,Fue=(t,e,n)=>ad(e,n)+e.cdataStart+t.value+e.cdataEnd,Que=(t,e,n)=>{if(t.children.length===0)return e.useShortTags?ad(e,n)+e.tagShortStart+t.name+l2(t,e)+e.tagShortEnd:ad(e,n)+e.tagShortStart+t.name+l2(t,e)+e.tagOpenEnd+e.tagCloseStart+t.name+e.tagCloseEnd;{let i=e.tagOpenStart,r=e.tagOpenEnd,s=e.tagCloseStart,a=e.tagCloseEnd,o=ad(e,n),l=ad(e,n);n.textContext?(i=af.tagOpenStart,r=af.tagOpenEnd,s=af.tagCloseStart,a=af.tagCloseEnd,o=""):Due.has(t.name)&&(r=af.tagOpenEnd,s=af.tagCloseStart,l="",n.textContext=t);const c=Xj(t,e,n);return n.textContext===t&&(n.textContext=null),o+i+t.name+l2(t,e)+r+c+l+s+t.name+a}},l2=(t,e)=>{let n="";for(const[i,r]of Object.entries(t.attributes))if(r!==void 0){const s=r.toString().replace(e.regValEntities,e.encodeEntity);n+=" "+i+e.attrStart+s+e.attrEnd}else n+=" "+i;return n},zue=(t,e,n)=>ad(e,n)+e.textStart+t.value.replace(e.regEntities,e.encodeEntity)+(n.textContext?"":e.textEnd);var Yj={},mk={},At={},Kj={},Jj={},fs={},qf={},w1={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(i){return i.type===e.Tag||i.type===e.Script||i.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(w1);var Pt={},Mc=Ze&&Ze.__extends||(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(i[s]=r[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),dg=Ze&&Ze.__assign||function(){return dg=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},dg.apply(this,arguments)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.cloneNode=Pt.hasChildren=Pt.isDocument=Pt.isDirective=Pt.isComment=Pt.isText=Pt.isCDATA=Pt.isTag=Pt.Element=Pt.Document=Pt.CDATA=Pt.NodeWithChildren=Pt.ProcessingInstruction=Pt.Comment=Pt.Text=Pt.DataNode=Pt.Node=void 0;var Lr=w1,w4=(function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),k4(this,e)},t})();Pt.Node=w4;var gk=(function(t){Mc(e,t);function e(n){var i=t.call(this)||this;return i.data=n,i}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),e})(w4);Pt.DataNode=gk;var eI=(function(t){Mc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Lr.ElementType.Text,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e})(gk);Pt.Text=eI;var tI=(function(t){Mc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Lr.ElementType.Comment,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e})(gk);Pt.Comment=tI;var nI=(function(t){Mc(e,t);function e(n,i){var r=t.call(this,i)||this;return r.name=n,r.type=Lr.ElementType.Directive,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e})(gk);Pt.ProcessingInstruction=nI;var vk=(function(t){Mc(e,t);function e(n){var i=t.call(this)||this;return i.children=n,i}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),e})(w4);Pt.NodeWithChildren=vk;var iI=(function(t){Mc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Lr.ElementType.CDATA,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e})(vk);Pt.CDATA=iI;var rI=(function(t){Mc(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Lr.ElementType.Root,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e})(vk);Pt.Document=rI;var sI=(function(t){Mc(e,t);function e(n,i,r,s){r===void 0&&(r=[]),s===void 0&&(s=n==="script"?Lr.ElementType.Script:n==="style"?Lr.ElementType.Style:Lr.ElementType.Tag);var a=t.call(this,r)||this;return a.name=n,a.attribs=i,a.type=s,a}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map((function(i){var r,s;return{name:i,value:n.attribs[i],namespace:(r=n["x-attribsNamespace"])===null||r===void 0?void 0:r[i],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[i]}}))},enumerable:!1,configurable:!0}),e})(vk);Pt.Element=sI;function aI(t){return(0,Lr.isTag)(t)}Pt.isTag=aI;function oI(t){return t.type===Lr.ElementType.CDATA}Pt.isCDATA=oI;function lI(t){return t.type===Lr.ElementType.Text}Pt.isText=lI;function cI(t){return t.type===Lr.ElementType.Comment}Pt.isComment=cI;function fI(t){return t.type===Lr.ElementType.Directive}Pt.isDirective=fI;function uI(t){return t.type===Lr.ElementType.Root}Pt.isDocument=uI;function que(t){return Object.prototype.hasOwnProperty.call(t,"children")}Pt.hasChildren=que;function k4(t,e){e===void 0&&(e=!1);var n;if(lI(t))n=new eI(t.data);else if(cI(t))n=new tI(t.data);else if(aI(t)){var i=e?c2(t.children):[],r=new sI(t.name,dg({},t.attribs),i);i.forEach((function(l){return l.parent=r})),t.namespace!=null&&(r.namespace=t.namespace),t["x-attribsNamespace"]&&(r["x-attribsNamespace"]=dg({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(r["x-attribsPrefix"]=dg({},t["x-attribsPrefix"])),n=r}else if(oI(t)){var i=e?c2(t.children):[],s=new iI(i);i.forEach((function(c){return c.parent=s})),n=s}else if(uI(t)){var i=e?c2(t.children):[],a=new rI(i);i.forEach((function(c){return c.parent=a})),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),n=a}else if(fI(t)){var o=new nI(t.name,t.data);t["x-name"]!=null&&(o["x-name"]=t["x-name"],o["x-publicId"]=t["x-publicId"],o["x-systemId"]=t["x-systemId"]),n=o}else throw new Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}Pt.cloneNode=k4;function c2(t){for(var e=t.map((function(i){return k4(i,!0)})),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}(function(t){var e=Ze&&Ze.__createBinding||(Object.create?function(o,l,c,f){f===void 0&&(f=c);var u=Object.getOwnPropertyDescriptor(l,c);(!u||("get"in u?!l.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(o,f,u)}:function(o,l,c,f){f===void 0&&(f=c),o[f]=l[c]}),n=Ze&&Ze.__exportStar||function(o,l){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&e(l,o,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=w1,r=Pt;n(Pt,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=(function(){function o(l,c,f){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof c=="function"&&(f=c,c=s),typeof l=="object"&&(c=l,l=void 0),this.callback=l??null,this.options=c??s,this.elementCB=f??null}return o.prototype.onparserinit=function(l){this.parser=l},o.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(l){this.handleCallback(l)},o.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},o.prototype.onopentag=function(l,c){var f=this.options.xmlMode?i.ElementType.Tag:void 0,u=new r.Element(l,c,void 0,f);this.addNode(u),this.tagStack.push(u)},o.prototype.ontext=function(l){var c=this.lastNode;if(c&&c.type===i.ElementType.Text)c.data+=l,this.options.withEndIndices&&(c.endIndex=this.parser.endIndex);else{var f=new r.Text(l);this.addNode(f),this.lastNode=f}},o.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=l;return}var c=new r.Comment(l);this.addNode(c),this.lastNode=c},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var l=new r.Text(""),c=new r.CDATA([l]);this.addNode(c),l.parent=c,this.lastNode=l},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(l,c){var f=new r.ProcessingInstruction(l,c);this.addNode(f)},o.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},o.prototype.addNode=function(l){var c=this.tagStack[this.tagStack.length-1],f=c.children[c.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),c.children.push(l),f&&(l.prev=f,f.next=l),l.parent=c,this.lastNode=null},o})();t.DomHandler=a,t.default=a})(qf);var k1={},dI={},j_={},O4={};Object.defineProperty(O4,"__esModule",{value:!0});O4.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(t){return t.charCodeAt(0)})));var x4={};Object.defineProperty(x4,"__esModule",{value:!0});x4.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)})));var I_={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var a="";return s>65535&&(s-=65536,a+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),a+=String.fromCharCode(s),a};function i(s){var a;return s>=55296&&s<=57343||s>1114111?65533:(a=n.get(s))!==null&&a!==void 0?a:s}t.replaceCodePoint=i;function r(s){return(0,t.fromCodePoint)(i(s))}t.default=r})(I_);(function(t){var e=Ze&&Ze.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var n=e(O4);t.htmlDecodeTree=n.default;var i=e(x4);t.xmlDecodeTree=i.default;var r=e(I_);t.decodeCodePoint=r.default;var s=I_;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var a;(function(v){v[v.NUM=35]="NUM",v[v.SEMI=59]="SEMI",v[v.ZERO=48]="ZERO",v[v.NINE=57]="NINE",v[v.LOWER_A=97]="LOWER_A",v[v.LOWER_F=102]="LOWER_F",v[v.LOWER_X=120]="LOWER_X",v[v.To_LOWER_BIT=32]="To_LOWER_BIT"})(a||(a={}));var o;(function(v){v[v.VALUE_LENGTH=49152]="VALUE_LENGTH",v[v.BRANCH_LENGTH=16256]="BRANCH_LENGTH",v[v.JUMP_TABLE=127]="JUMP_TABLE"})(o=t.BinTrieFlags||(t.BinTrieFlags={}));function l(v){return function(O,x){for(var $="",T=0,S=0;(S=O.indexOf("&",S))>=0;){if($+=O.slice(T,S),T=S,S+=1,O.charCodeAt(S)===a.NUM){var R=S+1,_=10,P=O.charCodeAt(R);(P|a.To_LOWER_BIT)===a.LOWER_X&&(_=16,S+=1,R+=1);do P=O.charCodeAt(++S);while(P>=a.ZERO&&P<=a.NINE||_===16&&(P|a.To_LOWER_BIT)>=a.LOWER_A&&(P|a.To_LOWER_BIT)<=a.LOWER_F);if(R!==S){var A=O.substring(R,S),N=parseInt(A,_);if(O.charCodeAt(S)===a.SEMI)S+=1;else if(x)continue;$+=(0,r.default)(N),T=S}continue}for(var M=0,Q=1,U=0,z=v[U];S<O.length&&(U=c(v,z,U+1,O.charCodeAt(S)),!(U<0));S++,Q++){z=v[U];var Y=z&o.VALUE_LENGTH;if(Y){(!x||O.charCodeAt(S)===a.SEMI)&&(M=U,Q=0);var ae=(Y>>14)-1;if(ae===0)break;U+=ae}}if(M!==0){var ae=(v[M]&o.VALUE_LENGTH)>>14;$+=ae===1?String.fromCharCode(v[M]&~o.VALUE_LENGTH):ae===2?String.fromCharCode(v[M+1]):String.fromCharCode(v[M+1],v[M+2]),T=S-Q+1}}return $+O.slice(T)}}function c(v,w,O,x){var $=(w&o.BRANCH_LENGTH)>>7,T=w&o.JUMP_TABLE;if($===0)return T!==0&&x===T?O:-1;if(T){var S=x-T;return S<0||S>=$?-1:v[O+S]-1}for(var R=O,_=R+$-1;R<=_;){var P=R+_>>>1,A=v[P];if(A<x)R=P+1;else if(A>x)_=P-1;else return v[P+$]}return-1}t.determineBranch=c;var f=l(n.default),u=l(i.default);function h(v){return f(v,!1)}t.decodeHTML=h;function m(v){return f(v,!0)}t.decodeHTMLStrict=m;function g(v){return u(v,!0)}t.decodeXML=g})(j_);var Mf={},S4={};Object.defineProperty(S4,"__esModule",{value:!0});function xv(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}S4.default=new Map(xv([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(xv([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(xv([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(xv([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Ry={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(r,s){return r.codePointAt(s)}:function(r,s){return(r.charCodeAt(s)&64512)===55296?(r.charCodeAt(s)-55296)*1024+r.charCodeAt(s+1)-56320+65536:r.charCodeAt(s)};function n(r){for(var s="",a=0,o;(o=t.xmlReplacer.exec(r))!==null;){var l=o.index,c=r.charCodeAt(l),f=e.get(c);f!==void 0?(s+=r.substring(a,l)+f,a=l+1):(s+="".concat(r.substring(a,l),"&#x").concat((0,t.getCodePoint)(r,l).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((c&64512)===55296))}return s+r.substr(a)}t.encodeXML=n,t.escape=n;function i(r,s){return function(o){for(var l,c=0,f="";l=r.exec(o);)c!==l.index&&(f+=o.substring(c,l.index)),f+=s.get(l[0].charCodeAt(0)),c=l.index+1;return f+o.substring(c)}}t.escapeUTF8=i(/[&<>'"]/g,e),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Ry);var Wue=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.encodeNonAsciiHTML=Mf.encodeHTML=void 0;var Uue=Wue(S4),hI=Ry,Vue=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Hue(t){return pI(Vue,t)}Mf.encodeHTML=Hue;function Zue(t){return pI(hI.xmlReplacer,t)}Mf.encodeNonAsciiHTML=Zue;function pI(t,e){for(var n="",i=0,r;(r=t.exec(e))!==null;){var s=r.index;n+=e.substring(i,s);var a=e.charCodeAt(s),o=Uue.default.get(a);if(typeof o=="object"){if(s+1<e.length){var l=e.charCodeAt(s+1),c=typeof o.n=="number"?o.n===l?o.o:void 0:o.n.get(l);if(c!==void 0){n+=c,i=t.lastIndex+=1;continue}}o=o.v}if(o!==void 0)n+=o,i=s+1;else{var f=(0,hI.getCodePoint)(e,s);n+="&#x".concat(f.toString(16),";"),i=t.lastIndex+=+(f!==a)}}return n+e.substr(i)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.DecodingMode=t.EntityLevel=void 0;var e=j_,n=Mf,i=Ry,r;(function(m){m[m.XML=0]="XML",m[m.HTML=1]="HTML"})(r=t.EntityLevel||(t.EntityLevel={}));var s;(function(m){m[m.Legacy=0]="Legacy",m[m.Strict=1]="Strict"})(s=t.DecodingMode||(t.DecodingMode={}));var a;(function(m){m[m.UTF8=0]="UTF8",m[m.ASCII=1]="ASCII",m[m.Extensive=2]="Extensive",m[m.Attribute=3]="Attribute",m[m.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function o(m,g){g===void 0&&(g=r.XML);var v=typeof g=="number"?{level:g}:g;return v.level===r.HTML?v.mode===s.Strict?(0,e.decodeHTMLStrict)(m):(0,e.decodeHTML)(m):(0,e.decodeXML)(m)}t.decode=o;function l(m,g){g===void 0&&(g=r.XML);var v=typeof g=="number"?{level:g}:g;return v.level===r.HTML?v.mode===s.Legacy?(0,e.decodeHTML)(m):(0,e.decodeHTMLStrict)(m):(0,e.decodeXML)(m)}t.decodeStrict=l;function c(m,g){g===void 0&&(g=r.XML);var v=typeof g=="number"?{level:g}:g;return v.mode===a.UTF8?(0,i.escapeUTF8)(m):v.mode===a.Attribute?(0,i.escapeAttribute)(m):v.mode===a.Text?(0,i.escapeText)(m):v.level===r.HTML?v.mode===a.ASCII?(0,n.encodeNonAsciiHTML)(m):(0,n.encodeHTML)(m):(0,i.encodeXML)(m)}t.encode=c;var f=Ry;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return f.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return f.escapeText}});var u=Mf;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var h=j_;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(dI);var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.attributeNames=Nd.elementNames=void 0;Nd.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(t){return[t.toLowerCase(),t]})));Nd.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(t){return[t.toLowerCase(),t]})));var od=Ze&&Ze.__assign||function(){return od=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},od.apply(this,arguments)},Gue=Ze&&Ze.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Xue=Ze&&Ze.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Yue=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Gue(e,t,n);return Xue(e,t),e};Object.defineProperty(k1,"__esModule",{value:!0});k1.render=void 0;var Go=Yue(w1),Dy=dI,mI=Nd,Kue=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Jue(t){return t.replace(/"/g,""")}function ede(t,e){var n;if(t){var i=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?Jue:e.xmlMode||e.encodeEntities!=="utf8"?Dy.encodeXML:Dy.escapeAttribute;return Object.keys(t).map((function(r){var s,a,o=(s=t[r])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(r=(a=mI.attributeNames.get(r))!==null&&a!==void 0?a:r),!e.emptyAttrs&&!e.xmlMode&&o===""?r:"".concat(r,'="').concat(i(o),'"')})).join(" ")}}var jE=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function bk(t,e){e===void 0&&(e={});for(var n=("length"in t)?t:[t],i="",r=0;r<n.length;r++)i+=tde(n[r],e);return i}k1.render=bk;k1.default=bk;function tde(t,e){switch(t.type){case Go.Root:return bk(t.children,e);case Go.Doctype:case Go.Directive:return sde(t);case Go.Comment:return lde(t);case Go.CDATA:return ode(t);case Go.Script:case Go.Style:case Go.Tag:return rde(t,e);case Go.Text:return ade(t,e)}}var nde=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),ide=new Set(["svg","math"]);function rde(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=mI.elementNames.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&nde.has(t.parent.name)&&(e=od(od({},e),{xmlMode:!1}))),!e.xmlMode&&ide.has(t.name)&&(e=od(od({},e),{xmlMode:"foreign"}));var i="<".concat(t.name),r=ede(t.attribs,e);return r&&(i+=" ".concat(r)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&jE.has(t.name))?(e.xmlMode||(i+=" "),i+="/>"):(i+=">",t.children.length>0&&(i+=bk(t.children,e)),(e.xmlMode||!jE.has(t.name))&&(i+="</".concat(t.name,">"))),i}function sde(t){return"<".concat(t.data,">")}function ade(t,e){var n,i=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Kue.has(t.parent.name))&&(i=e.xmlMode||e.encodeEntities!=="utf8"?(0,Dy.encodeXML)(i):(0,Dy.escapeText)(i)),i}function ode(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function lde(t){return"<!--".concat(t.data,"-->")}var cde=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fs,"__esModule",{value:!0});fs.innerText=fs.textContent=fs.getText=fs.getInnerHTML=fs.getOuterHTML=void 0;var ko=qf,fde=cde(k1),ude=w1;function gI(t,e){return(0,fde.default)(t,e)}fs.getOuterHTML=gI;function dde(t,e){return(0,ko.hasChildren)(t)?t.children.map((function(n){return gI(n,e)})).join(""):""}fs.getInnerHTML=dde;function Lb(t){return Array.isArray(t)?t.map(Lb).join(""):(0,ko.isTag)(t)?t.name==="br"?`
|
||
`:Lb(t.children):(0,ko.isCDATA)(t)?Lb(t.children):(0,ko.isText)(t)?t.data:""}fs.getText=Lb;function B_(t){return Array.isArray(t)?t.map(B_).join(""):(0,ko.hasChildren)(t)&&!(0,ko.isComment)(t)?B_(t.children):(0,ko.isText)(t)?t.data:""}fs.textContent=B_;function F_(t){return Array.isArray(t)?t.map(F_).join(""):(0,ko.hasChildren)(t)&&(t.type===ude.ElementType.Tag||(0,ko.isCDATA)(t))?F_(t.children):(0,ko.isText)(t)?t.data:""}fs.innerText=F_;var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0});Oi.prevElementSibling=Oi.nextElementSibling=Oi.getName=Oi.hasAttrib=Oi.getAttributeValue=Oi.getSiblings=Oi.getParent=Oi.getChildren=void 0;var _4=qf;function vI(t){return(0,_4.hasChildren)(t)?t.children:[]}Oi.getChildren=vI;function bI(t){return t.parent||null}Oi.getParent=bI;function hde(t){var e,n,i=bI(t);if(i!=null)return vI(i);for(var r=[t],s=t.prev,a=t.next;s!=null;)r.unshift(s),e=s,s=e.prev;for(;a!=null;)r.push(a),n=a,a=n.next;return r}Oi.getSiblings=hde;function pde(t,e){var n;return(n=t.attribs)===null||n===void 0?void 0:n[e]}Oi.getAttributeValue=pde;function mde(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}Oi.hasAttrib=mde;function gde(t){return t.name}Oi.getName=gde;function vde(t){for(var e,n=t.next;n!==null&&!(0,_4.isTag)(n);)e=n,n=e.next;return n}Oi.nextElementSibling=vde;function bde(t){for(var e,n=t.prev;n!==null&&!(0,_4.isTag)(n);)e=n,n=e.prev;return n}Oi.prevElementSibling=bde;var _r={};Object.defineProperty(_r,"__esModule",{value:!0});_r.prepend=_r.prependChild=_r.append=_r.appendChild=_r.replaceElement=_r.removeElement=void 0;function O1(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}}_r.removeElement=O1;function yde(t,e){var n=e.prev=t.prev;n&&(n.next=e);var i=e.next=t.next;i&&(i.prev=e);var r=e.parent=t.parent;if(r){var s=r.children;s[s.lastIndexOf(t)]=e,t.parent=null}}_r.replaceElement=yde;function wde(t,e){if(O1(e),e.next=null,e.parent=t,t.children.push(e)>1){var n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null}_r.appendChild=wde;function kde(t,e){O1(e);var n=t.parent,i=t.next;if(e.next=i,e.prev=t,t.next=e,e.parent=n,i){if(i.prev=e,n){var r=n.children;r.splice(r.lastIndexOf(i),0,e)}}else n&&n.children.push(e)}_r.append=kde;function Ode(t,e){if(O1(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var n=t.children[1];n.prev=e,e.next=n}else e.next=null}_r.prependChild=Ode;function xde(t,e){O1(e);var n=t.parent;if(n){var i=n.children;i.splice(i.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}_r.prepend=xde;var lr={};Object.defineProperty(lr,"__esModule",{value:!0});lr.findAll=lr.existsOne=lr.findOne=lr.findOneChild=lr.find=lr.filter=void 0;var Ng=qf;function Sde(t,e,n,i){return n===void 0&&(n=!0),i===void 0&&(i=1/0),Array.isArray(e)||(e=[e]),C4(t,e,n,i)}lr.filter=Sde;function C4(t,e,n,i){for(var r=[],s=0,a=e;s<a.length;s++){var o=a[s];if(t(o)&&(r.push(o),--i<=0))break;if(n&&(0,Ng.hasChildren)(o)&&o.children.length>0){var l=C4(t,o.children,n,i);if(r.push.apply(r,l),i-=l.length,i<=0)break}}return r}lr.find=C4;function _de(t,e){return e.find(t)}lr.findOneChild=_de;function yI(t,e,n){n===void 0&&(n=!0);for(var i=null,r=0;r<e.length&&!i;r++){var s=e[r];if((0,Ng.isTag)(s))t(s)?i=s:n&&s.children.length>0&&(i=yI(t,s.children,!0));else continue}return i}lr.findOne=yI;function wI(t,e){return e.some((function(n){return(0,Ng.isTag)(n)&&(t(n)||n.children.length>0&&wI(t,n.children))}))}lr.existsOne=wI;function Cde(t,e){for(var n,i=[],r=e.filter(Ng.isTag),s;s=r.shift();){var a=(n=s.children)===null||n===void 0?void 0:n.filter(Ng.isTag);a&&a.length>0&&r.unshift.apply(r,a),t(s)&&i.push(s)}return i}lr.findAll=Cde;var us={};Object.defineProperty(us,"__esModule",{value:!0});us.getElementsByTagType=us.getElementsByTagName=us.getElementById=us.getElements=us.testElement=void 0;var pf=qf,yk=lr,My={tag_name:function(t){return typeof t=="function"?function(e){return(0,pf.isTag)(e)&&t(e.name)}:t==="*"?pf.isTag:function(e){return(0,pf.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,pf.isText)(e)&&t(e.data)}:function(e){return(0,pf.isText)(e)&&e.data===t}}};function kI(t,e){return typeof e=="function"?function(n){return(0,pf.isTag)(n)&&e(n.attribs[t])}:function(n){return(0,pf.isTag)(n)&&n.attribs[t]===e}}function $de(t,e){return function(n){return t(n)||e(n)}}function OI(t){var e=Object.keys(t).map((function(n){var i=t[n];return Object.prototype.hasOwnProperty.call(My,n)?My[n](i):kI(n,i)}));return e.length===0?null:e.reduce($de)}function Pde(t,e){var n=OI(t);return n?n(e):!0}us.testElement=Pde;function Tde(t,e,n,i){i===void 0&&(i=1/0);var r=OI(t);return r?(0,yk.filter)(r,e,n,i):[]}us.getElements=Tde;function Ade(t,e,n){return n===void 0&&(n=!0),Array.isArray(e)||(e=[e]),(0,yk.findOne)(kI("id",t),e,n)}us.getElementById=Ade;function Ede(t,e,n,i){return n===void 0&&(n=!0),i===void 0&&(i=1/0),(0,yk.filter)(My.tag_name(t),e,n,i)}us.getElementsByTagName=Ede;function Rde(t,e,n,i){return n===void 0&&(n=!0),i===void 0&&(i=1/0),(0,yk.filter)(My.tag_type(t),e,n,i)}us.getElementsByTagType=Rde;var xI={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=qf;function n(a){for(var o=a.length;--o>=0;){var l=a[o];if(o>0&&a.lastIndexOf(l,o-1)>=0){a.splice(o,1);continue}for(var c=l.parent;c;c=c.parent)if(a.includes(c)){a.splice(o,1);break}}return a}t.removeSubsets=n;var i;(function(a){a[a.DISCONNECTED=1]="DISCONNECTED",a[a.PRECEDING=2]="PRECEDING",a[a.FOLLOWING=4]="FOLLOWING",a[a.CONTAINS=8]="CONTAINS",a[a.CONTAINED_BY=16]="CONTAINED_BY"})(i=t.DocumentPosition||(t.DocumentPosition={}));function r(a,o){var l=[],c=[];if(a===o)return 0;for(var f=(0,e.hasChildren)(a)?a:a.parent;f;)l.unshift(f),f=f.parent;for(f=(0,e.hasChildren)(o)?o:o.parent;f;)c.unshift(f),f=f.parent;for(var u=Math.min(l.length,c.length),h=0;h<u&&l[h]===c[h];)h++;if(h===0)return i.DISCONNECTED;var m=l[h-1],g=m.children,v=l[h],w=c[h];return g.indexOf(v)>g.indexOf(w)?m===o?i.FOLLOWING|i.CONTAINED_BY:i.FOLLOWING:m===a?i.PRECEDING|i.CONTAINS:i.PRECEDING}t.compareDocumentPosition=r;function s(a){return a=a.filter((function(o,l,c){return!c.includes(o,l+1)})),a.sort((function(o,l){var c=r(o,l);return c&i.PRECEDING?-1:c&i.FOLLOWING?1:0})),a}t.uniqueSort=s})(xI);var wk={};Object.defineProperty(wk,"__esModule",{value:!0});wk.getFeed=void 0;var Dde=fs,x1=us;function Mde(t){var e=Ny(Bde,t);return e?e.name==="feed"?Nde(e):Lde(e):null}wk.getFeed=Mde;function Nde(t){var e,n=t.children,i={type:"atom",items:(0,x1.getElementsByTagName)("entry",n).map((function(a){var o,l=a.children,c={media:SI(l)};Sr(c,"id","id",l),Sr(c,"title","title",l);var f=(o=Ny("link",l))===null||o===void 0?void 0:o.attribs.href;f&&(c.link=f);var u=Sf("summary",l)||Sf("content",l);u&&(c.description=u);var h=Sf("updated",l);return h&&(c.pubDate=new Date(h)),c}))};Sr(i,"id","id",n),Sr(i,"title","title",n);var r=(e=Ny("link",n))===null||e===void 0?void 0:e.attribs.href;r&&(i.link=r),Sr(i,"description","subtitle",n);var s=Sf("updated",n);return s&&(i.updated=new Date(s)),Sr(i,"author","email",n,!0),i}function Lde(t){var e,n,i=(n=(e=Ny("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&n!==void 0?n:[],r={type:t.name.substr(0,3),id:"",items:(0,x1.getElementsByTagName)("item",t.children).map((function(a){var o=a.children,l={media:SI(o)};Sr(l,"id","guid",o),Sr(l,"title","title",o),Sr(l,"link","link",o),Sr(l,"description","description",o);var c=Sf("pubDate",o);return c&&(l.pubDate=new Date(c)),l}))};Sr(r,"title","title",i),Sr(r,"link","link",i),Sr(r,"description","description",i);var s=Sf("lastBuildDate",i);return s&&(r.updated=new Date(s)),Sr(r,"author","managingEditor",i,!0),r}var jde=["url","type","lang"],Ide=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function SI(t){return(0,x1.getElementsByTagName)("media:content",t).map((function(e){for(var n=e.attribs,i={medium:n.medium,isDefault:!!n.isDefault},r=0,s=jde;r<s.length;r++){var a=s[r];n[a]&&(i[a]=n[a])}for(var o=0,l=Ide;o<l.length;o++){var a=l[o];n[a]&&(i[a]=parseInt(n[a],10))}return n.expression&&(i.expression=n.expression),i}))}function Ny(t,e){return(0,x1.getElementsByTagName)(t,e,!0,1)[0]}function Sf(t,e,n){return n===void 0&&(n=!1),(0,Dde.textContent)((0,x1.getElementsByTagName)(t,e,n,1)).trim()}function Sr(t,e,n,i,r){r===void 0&&(r=!1);var s=Sf(n,i,r);s&&(t[e]=s)}function Bde(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=Ze&&Ze.__createBinding||(Object.create?function(r,s,a,o){o===void 0&&(o=a);var l=Object.getOwnPropertyDescriptor(s,a);(!l||("get"in l?!s.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(r,o,l)}:function(r,s,a,o){o===void 0&&(o=a),r[o]=s[a]}),n=Ze&&Ze.__exportStar||function(r,s){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&e(s,r,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,n(fs,t),n(Oi,t),n(_r,t),n(lr,t),n(us,t),n(xI,t),n(wk,t);var i=qf;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return i.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return i.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return i.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return i.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return i.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return i.hasChildren}})})(Jj);var hh={trueFunc:function(){return!0},falseFunc:function(){return!1}},bc={},jt;(function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"})(jt||(jt={}));const Fde={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var Mn;(function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"})(Mn||(Mn={}));const IE=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Qde=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,zde=new Map([[126,Mn.Element],[94,Mn.Start],[36,Mn.End],[42,Mn.Any],[33,Mn.Not],[124,Mn.Hyphen]]),qde=new Set(["has","not","matches","is","where","host","host-context"]);function _I(t){switch(t.type){case jt.Adjacent:case jt.Child:case jt.Descendant:case jt.Parent:case jt.Sibling:case jt.ColumnCombinator:return!0;default:return!1}}const Wde=new Set(["contains","icontains"]);function Ude(t,e,n){const i=parseInt(e,16)-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)}function im(t){return t.replace(Qde,Ude)}function f2(t){return t===39||t===34}function BE(t){return t===32||t===9||t===10||t===12||t===13}function Vde(t){const e=[],n=CI(e,`${t}`,0);if(n<t.length)throw new Error(`Unmatched selector: ${t.slice(n)}`);return e}function CI(t,e,n){let i=[];function r(h){const m=e.slice(n+h).match(IE);if(!m)throw new Error(`Expected name, found ${e.slice(n)}`);const[g]=m;return n+=h+g.length,im(g)}function s(h){for(n+=h;n<e.length&&BE(e.charCodeAt(n));)n++}function a(){n+=1;const h=n;let m=1;for(;m>0&&n<e.length;n++)e.charCodeAt(n)===40&&!o(n)?m++:e.charCodeAt(n)===41&&!o(n)&&m--;if(m)throw new Error("Parenthesis not matched");return im(e.slice(h,n-1))}function o(h){let m=0;for(;e.charCodeAt(--h)===92;)m++;return(m&1)===1}function l(){if(i.length>0&&_I(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function c(h){if(i.length>0&&i[i.length-1].type===jt.Descendant){i[i.length-1].type=h;return}l(),i.push({type:h})}function f(h,m){i.push({type:jt.Attribute,name:h,action:m,value:r(1),namespace:null,ignoreCase:"quirks"})}function u(){if(i.length&&i[i.length-1].type===jt.Descendant&&i.pop(),i.length===0)throw new Error("Empty sub-selector");t.push(i)}if(s(0),e.length===n)return n;e:for(;n<e.length;){const h=e.charCodeAt(n);switch(h){case 32:case 9:case 10:case 12:case 13:{(i.length===0||i[0].type!==jt.Descendant)&&(l(),i.push({type:jt.Descendant})),s(1);break}case 62:{c(jt.Child),s(1);break}case 60:{c(jt.Parent),s(1);break}case 126:{c(jt.Sibling),s(1);break}case 43:{c(jt.Adjacent),s(1);break}case 46:{f("class",Mn.Element);break}case 35:{f("id",Mn.Equals);break}case 91:{s(1);let m,g=null;e.charCodeAt(n)===124?m=r(1):e.startsWith("*|",n)?(g="*",m=r(2)):(m=r(0),e.charCodeAt(n)===124&&e.charCodeAt(n+1)!==61&&(g=m,m=r(1))),s(0);let v=Mn.Exists;const w=zde.get(e.charCodeAt(n));if(w){if(v=w,e.charCodeAt(n+1)!==61)throw new Error("Expected `=`");s(2)}else e.charCodeAt(n)===61&&(v=Mn.Equals,s(1));let O="",x=null;if(v!=="exists"){if(f2(e.charCodeAt(n))){const S=e.charCodeAt(n);let R=n+1;for(;R<e.length&&(e.charCodeAt(R)!==S||o(R));)R+=1;if(e.charCodeAt(R)!==S)throw new Error("Attribute value didn't end");O=im(e.slice(n+1,R)),n=R+1}else{const S=n;for(;n<e.length&&(!BE(e.charCodeAt(n))&&e.charCodeAt(n)!==93||o(n));)n+=1;O=im(e.slice(S,n))}s(0);const T=e.charCodeAt(n)|32;T===115?(x=!1,s(1)):T===105&&(x=!0,s(1))}if(e.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const $={type:jt.Attribute,name:m,action:v,value:O,namespace:g,ignoreCase:x};i.push($);break}case 58:{if(e.charCodeAt(n+1)===58){i.push({type:jt.PseudoElement,name:r(2).toLowerCase(),data:e.charCodeAt(n)===40?a():null});continue}const m=r(1).toLowerCase();let g=null;if(e.charCodeAt(n)===40)if(qde.has(m)){if(f2(e.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${m} cannot be quoted`);if(g=[],n=CI(g,e,n+1),e.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${m} (${e})`);n+=1}else{if(g=a(),Wde.has(m)){const v=g.charCodeAt(0);v===g.charCodeAt(g.length-1)&&f2(v)&&(g=g.slice(1,-1))}g=im(g)}i.push({type:jt.Pseudo,name:m,data:g});break}case 44:{u(),i=[],s(1);break}default:{if(e.startsWith("/*",n)){const v=e.indexOf("*/",n+2);if(v<0)throw new Error("Comment was not terminated");n=v+2,i.length===0&&s(0);break}let m=null,g;if(h===42)n+=1,g="*";else if(h===124){if(g="",e.charCodeAt(n+1)===124){c(jt.ColumnCombinator),s(2);break}}else if(IE.test(e.slice(n)))g=r(0);else break e;e.charCodeAt(n)===124&&e.charCodeAt(n+1)!==124&&(m=g,e.charCodeAt(n+1)===42?(g="*",n+=2):g=r(1)),i.push(g==="*"?{type:jt.Universal,namespace:m}:{type:jt.Tag,name:g,namespace:m})}}}return u(),n}const $I=["\\",'"'],PI=[...$I,"(",")"],Hde=new Set($I.map((t=>t.charCodeAt(0)))),FE=new Set(PI.map((t=>t.charCodeAt(0)))),ld=new Set([...PI,"~","^","$","*","+","!","|",":","[","]"," ","."].map((t=>t.charCodeAt(0))));function TI(t){return t.map((e=>e.map(Zde).join(""))).join(", ")}function Zde(t,e,n){switch(t.type){case jt.Child:return e===0?"> ":" > ";case jt.Parent:return e===0?"< ":" < ";case jt.Sibling:return e===0?"~ ":" ~ ";case jt.Adjacent:return e===0?"+ ":" + ";case jt.Descendant:return" ";case jt.ColumnCombinator:return e===0?"|| ":" || ";case jt.Universal:return t.namespace==="*"&&e+1<n.length&&"name"in n[e+1]?"":`${AI(t.namespace)}*`;case jt.Tag:return QE(t);case jt.PseudoElement:return`::${tl(t.name,ld)}${t.data===null?"":`(${tl(t.data,FE)})`}`;case jt.Pseudo:return`:${tl(t.name,ld)}${t.data===null?"":`(${typeof t.data=="string"?tl(t.data,FE):TI(t.data)})`}`;case jt.Attribute:{if(t.name==="id"&&t.action===Mn.Equals&&t.ignoreCase==="quirks"&&!t.namespace)return`#${tl(t.value,ld)}`;if(t.name==="class"&&t.action===Mn.Element&&t.ignoreCase==="quirks"&&!t.namespace)return`.${tl(t.value,ld)}`;const i=QE(t);return t.action===Mn.Exists?`[${i}]`:`[${i}${Gde(t.action)}="${tl(t.value,Hde)}"${t.ignoreCase===null?"":t.ignoreCase?" i":" s"}]`}}}function Gde(t){switch(t){case Mn.Equals:return"";case Mn.Element:return"~";case Mn.Start:return"^";case Mn.End:return"$";case Mn.Any:return"*";case Mn.Not:return"!";case Mn.Hyphen:return"|";case Mn.Exists:throw new Error("Shouldn't be here")}}function QE(t){return`${AI(t.namespace)}${tl(t.name,ld)}`}function AI(t){return t!==null?`${t==="*"?"*":tl(t,ld)}|`:""}function tl(t,e){let n=0,i="";for(let r=0;r<t.length;r++)e.has(t.charCodeAt(r))&&(i+=`${t.slice(n,r)}\\${t.charAt(r)}`,n=r+1);return i.length>0?i+t.slice(n):t}var Xde=Object.freeze({__proto__:null,isTraversal:_I,parse:Vde,stringify:TI,get SelectorType(){return jt},IgnoreCaseMode:Fde,get AttributeAction(){return Mn}}),S1=Tue(Xde),ph={};Object.defineProperty(ph,"__esModule",{value:!0});ph.isTraversal=void 0;var cs=S1,EI=new Map([[cs.SelectorType.Universal,50],[cs.SelectorType.Tag,30],[cs.SelectorType.Attribute,1],[cs.SelectorType.Pseudo,0]]);function Yde(t){return!EI.has(t.type)}ph.isTraversal=Yde;var Kde=new Map([[cs.AttributeAction.Exists,10],[cs.AttributeAction.Equals,8],[cs.AttributeAction.Not,7],[cs.AttributeAction.Start,6],[cs.AttributeAction.End,6],[cs.AttributeAction.Any,5]]);function Jde(t){for(var e=t.map(RI),n=1;n<t.length;n++){var i=e[n];if(!(i<0))for(var r=n-1;r>=0&&i<e[r];r--){var s=t[r+1];t[r+1]=t[r],t[r]=s,e[r+1]=e[r],e[r]=i}}}ph.default=Jde;function RI(t){var e,n,i=(e=EI.get(t.type))!==null&&e!==void 0?e:-1;return t.type===cs.SelectorType.Attribute?(i=(n=Kde.get(t.action))!==null&&n!==void 0?n:4,t.action===cs.AttributeAction.Equals&&t.name==="id"&&(i=9),t.ignoreCase&&(i>>=1)):t.type===cs.SelectorType.Pseudo&&(t.data?t.name==="has"||t.name==="contains"?i=0:Array.isArray(t.data)?(i=Math.min.apply(Math,t.data.map((function(r){return Math.min.apply(Math,r.map(RI))}))),i<0&&(i=0)):i=2:i=3),i}var kk={},Ok={},ehe=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ok,"__esModule",{value:!0});Ok.attributeRules=void 0;var Sv=ehe(hh),the=/[-[\]{}()*+?.,\\^$|#\s]/g;function zE(t){return t.replace(the,"\\$&")}var nhe=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Kc(t,e){return typeof t.ignoreCase=="boolean"?t.ignoreCase:t.ignoreCase==="quirks"?!!e.quirksMode:!e.xmlMode&&nhe.has(t.name)}Ok.attributeRules={equals:function(t,e,n){var i=n.adapter,r=e.name,s=e.value;return Kc(e,n)?(s=s.toLowerCase(),function(a){var o=i.getAttributeValue(a,r);return o!=null&&o.length===s.length&&o.toLowerCase()===s&&t(a)}):function(a){return i.getAttributeValue(a,r)===s&&t(a)}},hyphen:function(t,e,n){var i=n.adapter,r=e.name,s=e.value,a=s.length;return Kc(e,n)?(s=s.toLowerCase(),function(l){var c=i.getAttributeValue(l,r);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a).toLowerCase()===s&&t(l)}):function(l){var c=i.getAttributeValue(l,r);return c!=null&&(c.length===a||c.charAt(a)==="-")&&c.substr(0,a)===s&&t(l)}},element:function(t,e,n){var i=n.adapter,r=e.name,s=e.value;if(/\s/.test(s))return Sv.default.falseFunc;var a=new RegExp("(?:^|\\s)".concat(zE(s),"(?:$|\\s)"),Kc(e,n)?"i":"");return function(l){var c=i.getAttributeValue(l,r);return c!=null&&c.length>=s.length&&a.test(c)&&t(l)}},exists:function(t,e,n){var i=e.name,r=n.adapter;return function(s){return r.hasAttrib(s,i)&&t(s)}},start:function(t,e,n){var i=n.adapter,r=e.name,s=e.value,a=s.length;return a===0?Sv.default.falseFunc:Kc(e,n)?(s=s.toLowerCase(),function(o){var l=i.getAttributeValue(o,r);return l!=null&&l.length>=a&&l.substr(0,a).toLowerCase()===s&&t(o)}):function(o){var l;return!!(!((l=i.getAttributeValue(o,r))===null||l===void 0)&&l.startsWith(s))&&t(o)}},end:function(t,e,n){var i=n.adapter,r=e.name,s=e.value,a=-s.length;return a===0?Sv.default.falseFunc:Kc(e,n)?(s=s.toLowerCase(),function(o){var l;return((l=i.getAttributeValue(o,r))===null||l===void 0?void 0:l.substr(a).toLowerCase())===s&&t(o)}):function(o){var l;return!!(!((l=i.getAttributeValue(o,r))===null||l===void 0)&&l.endsWith(s))&&t(o)}},any:function(t,e,n){var i=n.adapter,r=e.name,s=e.value;if(s==="")return Sv.default.falseFunc;if(Kc(e,n)){var a=new RegExp(zE(s),"i");return function(l){var c=i.getAttributeValue(l,r);return c!=null&&c.length>=s.length&&a.test(c)&&t(l)}}return function(o){var l;return!!(!((l=i.getAttributeValue(o,r))===null||l===void 0)&&l.includes(s))&&t(o)}},not:function(t,e,n){var i=n.adapter,r=e.name,s=e.value;return s===""?function(a){return!!i.getAttributeValue(a,r)&&t(a)}:Kc(e,n)?(s=s.toLowerCase(),function(a){var o=i.getAttributeValue(a,r);return(o==null||o.length!==s.length||o.toLowerCase()!==s)&&t(a)}):function(a){return i.getAttributeValue(a,r)!==s&&t(a)}}};var $4={},DI={},MI={},xk={};Object.defineProperty(xk,"__esModule",{value:!0});xk.parse=void 0;var ihe=new Set([9,10,12,13,32]),qE=48,rhe=57;function she(t){if(t=t.trim().toLowerCase(),t==="even")return[2,0];if(t==="odd")return[2,1];var e=0,n=0,i=s(),r=a();if(e<t.length&&t.charAt(e)==="n"&&(e++,n=i*(r??1),o(),e<t.length?(i=s(),o(),r=a()):i=r=0),r===null||e<t.length)throw new Error("n-th rule couldn't be parsed ('".concat(t,"')"));return[n,i*r];function s(){return t.charAt(e)==="-"?(e++,-1):(t.charAt(e)==="+"&&e++,1)}function a(){for(var l=e,c=0;e<t.length&&t.charCodeAt(e)>=qE&&t.charCodeAt(e)<=rhe;)c=c*10+(t.charCodeAt(e)-qE),e++;return e===l?null:c}function o(){for(;e<t.length&&ihe.has(t.charCodeAt(e));)e++}}xk.parse=she;var Ld={},ahe=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ld,"__esModule",{value:!0});Ld.generate=Ld.compile=void 0;var WE=ahe(hh);function ohe(t){var e=t[0],n=t[1]-1;if(n<0&&e<=0)return WE.default.falseFunc;if(e===-1)return function(s){return s<=n};if(e===0)return function(s){return s===n};if(e===1)return n<0?WE.default.trueFunc:function(s){return s>=n};var i=Math.abs(e),r=(n%i+i)%i;return e>1?function(s){return s>=n&&s%i===r}:function(s){return s<=n&&s%i===r}}Ld.compile=ohe;function lhe(t){var e=t[0],n=t[1]-1,i=0;if(e<0){var r=-e,s=(n%r+r)%r;return function(){var a=s+r*i++;return a>n?null:a}}return e===0?n<0?function(){return null}:function(){return i++===0?n:null}:(n<0&&(n+=e*Math.ceil(-n/e)),function(){return e*i+++n})}Ld.generate=lhe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sequence=t.generate=t.compile=t.parse=void 0;var e=xk;Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return e.parse}});var n=Ld;Object.defineProperty(t,"compile",{enumerable:!0,get:function(){return n.compile}}),Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return n.generate}});function i(s){return(0,n.compile)((0,e.parse)(s))}t.default=i;function r(s){return(0,n.generate)((0,e.parse)(s))}t.sequence=r})(MI);(function(t){var e=Ze&&Ze.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0}),t.filters=void 0;var n=e(MI),i=e(hh);function r(a,o){return function(l){var c=o.getParent(l);return c!=null&&o.isTag(c)&&a(l)}}t.filters={contains:function(a,o,l){var c=l.adapter;return function(u){return a(u)&&c.getText(u).includes(o)}},icontains:function(a,o,l){var c=l.adapter,f=o.toLowerCase();return function(h){return a(h)&&c.getText(h).toLowerCase().includes(f)}},"nth-child":function(a,o,l){var c=l.adapter,f=l.equals,u=(0,n.default)(o);return u===i.default.falseFunc?i.default.falseFunc:u===i.default.trueFunc?r(a,c):function(m){for(var g=c.getSiblings(m),v=0,w=0;w<g.length&&!f(m,g[w]);w++)c.isTag(g[w])&&v++;return u(v)&&a(m)}},"nth-last-child":function(a,o,l){var c=l.adapter,f=l.equals,u=(0,n.default)(o);return u===i.default.falseFunc?i.default.falseFunc:u===i.default.trueFunc?r(a,c):function(m){for(var g=c.getSiblings(m),v=0,w=g.length-1;w>=0&&!f(m,g[w]);w--)c.isTag(g[w])&&v++;return u(v)&&a(m)}},"nth-of-type":function(a,o,l){var c=l.adapter,f=l.equals,u=(0,n.default)(o);return u===i.default.falseFunc?i.default.falseFunc:u===i.default.trueFunc?r(a,c):function(m){for(var g=c.getSiblings(m),v=0,w=0;w<g.length;w++){var O=g[w];if(f(m,O))break;c.isTag(O)&&c.getName(O)===c.getName(m)&&v++}return u(v)&&a(m)}},"nth-last-of-type":function(a,o,l){var c=l.adapter,f=l.equals,u=(0,n.default)(o);return u===i.default.falseFunc?i.default.falseFunc:u===i.default.trueFunc?r(a,c):function(m){for(var g=c.getSiblings(m),v=0,w=g.length-1;w>=0;w--){var O=g[w];if(f(m,O))break;c.isTag(O)&&c.getName(O)===c.getName(m)&&v++}return u(v)&&a(m)}},root:function(a,o,l){var c=l.adapter;return function(f){var u=c.getParent(f);return(u==null||!c.isTag(u))&&a(f)}},scope:function(a,o,l,c){var f=l.equals;return!c||c.length===0?t.filters.root(a,o,l):c.length===1?function(u){return f(c[0],u)&&a(u)}:function(u){return c.includes(u)&&a(u)}},hover:s("isHovered"),visited:s("isVisited"),active:s("isActive")};function s(a){return function(l,c,f){var u=f.adapter,h=u[a];return typeof h!="function"?i.default.falseFunc:function(g){return h(g)&&l(g)}}}})(DI);var jd={};Object.defineProperty(jd,"__esModule",{value:!0});jd.verifyPseudoArgs=jd.pseudos=void 0;jd.pseudos={empty:function(t,e){var n=e.adapter;return!n.getChildren(t).some((function(i){return n.isTag(i)||n.getText(i)!==""}))},"first-child":function(t,e){var n=e.adapter,i=e.equals;if(n.prevElementSibling)return n.prevElementSibling(t)==null;var r=n.getSiblings(t).find((function(s){return n.isTag(s)}));return r!=null&&i(t,r)},"last-child":function(t,e){for(var n=e.adapter,i=e.equals,r=n.getSiblings(t),s=r.length-1;s>=0;s--){if(i(t,r[s]))return!0;if(n.isTag(r[s]))break}return!1},"first-of-type":function(t,e){for(var n=e.adapter,i=e.equals,r=n.getSiblings(t),s=n.getName(t),a=0;a<r.length;a++){var o=r[a];if(i(t,o))return!0;if(n.isTag(o)&&n.getName(o)===s)break}return!1},"last-of-type":function(t,e){for(var n=e.adapter,i=e.equals,r=n.getSiblings(t),s=n.getName(t),a=r.length-1;a>=0;a--){var o=r[a];if(i(t,o))return!0;if(n.isTag(o)&&n.getName(o)===s)break}return!1},"only-of-type":function(t,e){var n=e.adapter,i=e.equals,r=n.getName(t);return n.getSiblings(t).every((function(s){return i(t,s)||!n.isTag(s)||n.getName(s)!==r}))},"only-child":function(t,e){var n=e.adapter,i=e.equals;return n.getSiblings(t).every((function(r){return i(t,r)||!n.isTag(r)}))}};function che(t,e,n,i){if(n===null){if(t.length>i)throw new Error("Pseudo-class :".concat(e," requires an argument"))}else if(t.length===i)throw new Error("Pseudo-class :".concat(e," doesn't have any arguments"))}jd.verifyPseudoArgs=che;var Sk={};Object.defineProperty(Sk,"__esModule",{value:!0});Sk.aliases=void 0;Sk.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||
optgroup[disabled] > option,
|
||
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var _k={};(function(t){var e=Ze&&Ze.__spreadArray||function(c,f,u){if(u||arguments.length===2)for(var h=0,m=f.length,g;h<m;h++)(g||!(h in f))&&(g||(g=Array.prototype.slice.call(f,0,h)),g[h]=f[h]);return c.concat(g||Array.prototype.slice.call(f))},n=Ze&&Ze.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.subselects=t.getNextSiblings=t.ensureIsTag=t.PLACEHOLDER_ELEMENT=void 0;var i=n(hh),r=ph;t.PLACEHOLDER_ELEMENT={};function s(c,f){return c===i.default.falseFunc?i.default.falseFunc:function(u){return f.isTag(u)&&c(u)}}t.ensureIsTag=s;function a(c,f){var u=f.getSiblings(c);if(u.length<=1)return[];var h=u.indexOf(c);return h<0||h===u.length-1?[]:u.slice(h+1).filter(f.isTag)}t.getNextSiblings=a;function o(c){return{xmlMode:!!c.xmlMode,lowerCaseAttributeNames:!!c.lowerCaseAttributeNames,lowerCaseTags:!!c.lowerCaseTags,quirksMode:!!c.quirksMode,cacheResults:!!c.cacheResults,pseudos:c.pseudos,adapter:c.adapter,equals:c.equals}}var l=function(c,f,u,h,m){var g=m(f,o(u),h);return g===i.default.trueFunc?c:g===i.default.falseFunc?i.default.falseFunc:function(v){return g(v)&&c(v)}};t.subselects={is:l,matches:l,where:l,not:function(c,f,u,h,m){var g=m(f,o(u),h);return g===i.default.falseFunc?c:g===i.default.trueFunc?i.default.falseFunc:function(v){return!g(v)&&c(v)}},has:function(c,f,u,h,m){var g=u.adapter,v=o(u);v.relativeSelector=!0;var w=f.some((function(S){return S.some(r.isTraversal)}))?[t.PLACEHOLDER_ELEMENT]:void 0,O=m(f,v,w);if(O===i.default.falseFunc)return i.default.falseFunc;var x=s(O,g);if(w&&O!==i.default.trueFunc){var $=O.shouldTestNextSiblings,T=$===void 0?!1:$;return function(S){if(!c(S))return!1;w[0]=S;var R=g.getChildren(S),_=T?e(e([],R,!0),a(S,g),!0):R;return g.existsOne(x,_)}}return function(S){return c(S)&&g.existsOne(x,g.getChildren(S))}}}})(_k);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.compilePseudoSelector=t.aliases=t.pseudos=t.filters=void 0;var e=S1,n=DI;Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return n.filters}});var i=jd;Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return i.pseudos}});var r=Sk;Object.defineProperty(t,"aliases",{enumerable:!0,get:function(){return r.aliases}});var s=_k;function a(o,l,c,f,u){var h,m=l.name,g=l.data;if(Array.isArray(g)){if(!(m in s.subselects))throw new Error("Unknown pseudo-class :".concat(m,"(").concat(g,")"));return s.subselects[m](o,g,c,f,u)}var v=(h=c.pseudos)===null||h===void 0?void 0:h[m],w=typeof v=="string"?v:r.aliases[m];if(typeof w=="string"){if(g!=null)throw new Error("Pseudo ".concat(m," doesn't have any arguments"));var O=(0,e.parse)(w);return s.subselects.is(o,O,c,f,u)}if(typeof v=="function")return(0,i.verifyPseudoArgs)(v,m,g,1),function($){return v($,g)&&o($)};if(m in n.filters)return n.filters[m](o,g,c,f);if(m in i.pseudos){var x=i.pseudos[m];return(0,i.verifyPseudoArgs)(x,m,g,2),function($){return x($,c,g)&&o($)}}throw new Error("Unknown pseudo-class :".concat(m))}t.compilePseudoSelector=a})($4);Object.defineProperty(kk,"__esModule",{value:!0});kk.compileGeneralSelector=void 0;var fhe=Ok,uhe=$4,la=S1;function u2(t,e){var n=e.getParent(t);return n&&e.isTag(n)?n:null}function dhe(t,e,n,i,r){var s=n.adapter,a=n.equals;switch(e.type){case la.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case la.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case la.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),fhe.attributeRules[e.action](t,e,n)}case la.SelectorType.Pseudo:return(0,uhe.compilePseudoSelector)(t,e,n,i,r);case la.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");var o=e.name;return(!n.xmlMode||n.lowerCaseTags)&&(o=o.toLowerCase()),function(f){return s.getName(f)===o&&t(f)}}case la.SelectorType.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(f){for(var u=f;u=u2(u,s);)if(t(u))return!0;return!1};var l=new WeakSet;return function(f){for(var u=f;u=u2(u,s);)if(!l.has(u)){if(s.isTag(u)&&t(u))return!0;l.add(u)}return!1}}case"_flexibleDescendant":return function(f){var u=f;do if(t(u))return!0;while(u=u2(u,s));return!1};case la.SelectorType.Parent:return function(f){return s.getChildren(f).some((function(u){return s.isTag(u)&&t(u)}))};case la.SelectorType.Child:return function(f){var u=s.getParent(f);return u!=null&&s.isTag(u)&&t(u)};case la.SelectorType.Sibling:return function(f){for(var u=s.getSiblings(f),h=0;h<u.length;h++){var m=u[h];if(a(f,m))break;if(s.isTag(m)&&t(m))return!0}return!1};case la.SelectorType.Adjacent:return s.prevElementSibling?function(f){var u=s.prevElementSibling(f);return u!=null&&t(u)}:function(f){for(var u=s.getSiblings(f),h,m=0;m<u.length;m++){var g=u[m];if(a(f,g))break;s.isTag(g)&&(h=g)}return!!h&&t(h)};case la.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}kk.compileGeneralSelector=dhe;var hhe=Ze&&Ze.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),phe=Ze&&Ze.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),mhe=Ze&&Ze.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&hhe(e,t,n);return phe(e,t),e},ghe=Ze&&Ze.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bc,"__esModule",{value:!0});bc.compileToken=bc.compileUnsafe=bc.compile=void 0;var cl=S1,oc=ghe(hh),Q_=mhe(ph),vhe=kk,NI=_k;function bhe(t,e,n){var i=LI(t,e,n);return(0,NI.ensureIsTag)(i,e.adapter)}bc.compile=bhe;function LI(t,e,n){var i=typeof t=="string"?(0,cl.parse)(t):t;return P4(i,e,n)}bc.compileUnsafe=LI;function jI(t){return t.type===cl.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some((function(e){return e.some(jI)})))}var yhe={type:cl.SelectorType.Descendant},whe={type:"_flexibleDescendant"},khe={type:cl.SelectorType.Pseudo,name:"scope",data:null};function Ohe(t,e,n){for(var i=e.adapter,r=!!(n!=null&&n.every((function(l){var c=i.isTag(l)&&i.getParent(l);return l===NI.PLACEHOLDER_ELEMENT||c&&i.isTag(c)}))),s=0,a=t;s<a.length;s++){var o=a[s];if(!(o.length>0&&(0,Q_.isTraversal)(o[0])&&o[0].type!==cl.SelectorType.Descendant))if(r&&!o.some(jI))o.unshift(yhe);else continue;o.unshift(khe)}}function P4(t,e,n){var i;t.forEach(Q_.default),n=(i=e.context)!==null&&i!==void 0?i:n;var r=Array.isArray(n),s=n&&(Array.isArray(n)?n:[n]);if(e.relativeSelector!==!1)Ohe(t,e,s);else if(t.some((function(l){return l.length>0&&(0,Q_.isTraversal)(l[0])})))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var a=!1,o=t.map((function(l){if(l.length>=2){var c=l[0],f=l[1];c.type!==cl.SelectorType.Pseudo||c.name!=="scope"||(r&&f.type===cl.SelectorType.Descendant?l[1]=whe:(f.type===cl.SelectorType.Adjacent||f.type===cl.SelectorType.Sibling)&&(a=!0))}return xhe(l,e,s)})).reduce(She,oc.default.falseFunc);return o.shouldTestNextSiblings=a,o}bc.compileToken=P4;function xhe(t,e,n){var i;return t.reduce((function(r,s){return r===oc.default.falseFunc?oc.default.falseFunc:(0,vhe.compileGeneralSelector)(r,s,e,n,P4)}),(i=e.rootFunc)!==null&&i!==void 0?i:oc.default.trueFunc)}function She(t,e){return e===oc.default.falseFunc||t===oc.default.trueFunc?t:t===oc.default.falseFunc||e===oc.default.trueFunc?e:function(i){return t(i)||e(i)}}(function(t){var e=Ze&&Ze.__createBinding||(Object.create?function(x,$,T,S){S===void 0&&(S=T);var R=Object.getOwnPropertyDescriptor($,T);(!R||("get"in R?!$.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return $[T]}}),Object.defineProperty(x,S,R)}:function(x,$,T,S){S===void 0&&(S=T),x[S]=$[T]}),n=Ze&&Ze.__setModuleDefault||(Object.create?function(x,$){Object.defineProperty(x,"default",{enumerable:!0,value:$})}:function(x,$){x.default=$}),i=Ze&&Ze.__importStar||function(x){if(x&&x.__esModule)return x;var $={};if(x!=null)for(var T in x)T!=="default"&&Object.prototype.hasOwnProperty.call(x,T)&&e($,x,T);return n($,x),$},r=Ze&&Ze.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(t,"__esModule",{value:!0}),t.aliases=t.pseudos=t.filters=t.is=t.selectOne=t.selectAll=t.prepareContext=t._compileToken=t._compileUnsafe=t.compile=void 0;var s=i(Jj),a=r(hh),o=bc,l=_k,c=function(x,$){return x===$},f={adapter:s,equals:c};function u(x){var $,T,S,R,_=x??f;return($=_.adapter)!==null&&$!==void 0||(_.adapter=s),(T=_.equals)!==null&&T!==void 0||(_.equals=(R=(S=_.adapter)===null||S===void 0?void 0:S.equals)!==null&&R!==void 0?R:c),_}function h(x){return function(T,S,R){var _=u(S);return x(T,_,R)}}t.compile=h(o.compile),t._compileUnsafe=h(o.compileUnsafe),t._compileToken=h(o.compileToken);function m(x){return function(T,S,R){var _=u(R);typeof T!="function"&&(T=(0,o.compileUnsafe)(T,_,S));var P=g(S,_.adapter,T.shouldTestNextSiblings);return x(T,P,_)}}function g(x,$,T){return T===void 0&&(T=!1),T&&(x=v(x,$)),Array.isArray(x)?$.removeSubsets(x):$.getChildren(x)}t.prepareContext=g;function v(x,$){for(var T=Array.isArray(x)?x.slice(0):[x],S=T.length,R=0;R<S;R++){var _=(0,l.getNextSiblings)(T[R],$);T.push.apply(T,_)}return T}t.selectAll=m((function(x,$,T){return x===a.default.falseFunc||!$||$.length===0?[]:T.adapter.findAll(x,$)})),t.selectOne=m((function(x,$,T){return x===a.default.falseFunc||!$||$.length===0?null:T.adapter.findOne(x,$)}));function w(x,$,T){var S=u(T);return(typeof $=="function"?$:(0,o.compile)($,S))(x)}t.is=w,t.default=t.selectAll;var O=$4;Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return O.filters}}),Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return O.pseudos}}),Object.defineProperty(t,"aliases",{enumerable:!0,get:function(){return O.aliases}})})(Kj);const Ck=t=>t.type==="element",II=(t,e)=>e.some((n=>Ck(n)?t(n)||II(t,_1(n)):!1)),_he=(t,e)=>t.attributes[e],_1=t=>t.children||[],Che=t=>t.name,T4=t=>t.parentNode||null,$he=t=>{var e=T4(t);return e?_1(e):[]},Phe=t=>t.children[0].type==="text"&&t.children[0].type==="cdata"?t.children[0].value:"",The=(t,e)=>t.attributes[e]!==void 0,Ahe=t=>{let e=t.length,n,i,r;for(;--e>-1;){for(n=i=t[e],t[e]=null,r=!0;i;){if(t.includes(i)){r=!1,t.splice(e,1);break}i=T4(i)}r&&(t[e]=n)}return t},BI=(t,e)=>{const n=[];for(const i of e)Ck(i)&&(t(i)&&n.push(i),n.push(...BI(t,_1(i))));return n},FI=(t,e)=>{for(const n of e)if(Ck(n)){if(t(n))return n;const i=FI(t,_1(n));if(i)return i}return null},Ehe={isTag:Ck,existsOne:II,getAttributeValue:_he,getChildren:_1,getName:Che,getParent:T4,getSiblings:$he,getText:Phe,hasAttrib:The,removeSubsets:Ahe,findAll:BI,findOne:FI};var Rhe=Ehe;const{selectAll:Dhe,selectOne:Mhe,is:Nhe}=Kj,Lhe=Rhe,A4={xmlMode:!0,adapter:Lhe},jhe=(t,e)=>Dhe(e,t,A4);At.querySelectorAll=jhe;const Ihe=(t,e)=>Mhe(e,t,A4);At.querySelector=Ihe;const Bhe=(t,e)=>Nhe(t,e,A4);At.matches=Bhe;const QI=Symbol();At.visitSkip=QI;const z_=(t,e,n)=>{const i=e[t.type];if(!(i&&i.enter&&i.enter(t,n)===QI)){if(t.type==="root")for(const r of t.children)z_(r,e,t);if(t.type==="element"&&n.children.includes(t))for(const r of t.children)z_(r,e,t);i&&i.exit&&i.exit(t,n)}};At.visit=z_;const Fhe=(t,e)=>{e.children=e.children.filter((n=>n!==t))};At.detachNodeFromParent=Fhe;const{visit:Qhe}=At,zI=(t,e,n,i,r)=>{for(const s of n){const a=i==null?void 0:i[s.name];if(a===!1)continue;const o={...s.params,...r,...a},l=s.fn(t,o,e);l!=null&&Qhe(t,l)}};mk.invokePlugins=zI;const zhe=({name:t,plugins:e})=>({name:t,fn:(n,i,r)=>{const{floatPrecision:s,overrides:a}=i,o={};if(s!=null&&(o.floatPrecision=s),a){const l=e.map((({name:c})=>c));for(const c of Object.keys(a))l.includes(c)||console.warn(`You are trying to configure ${c} which is not part of ${t}.
|
||
Try to put it before or after, for example
|
||
|
||
plugins: [
|
||
{
|
||
name: '${t}',
|
||
},
|
||
'${c}'
|
||
]
|
||
`)}zI(n,r,e,a,o)}});mk.createPreset=zhe;var C1={};const{detachNodeFromParent:qhe}=At;C1.name="removeDoctype";C1.description="removes doctype declaration";C1.fn=()=>({doctype:{enter:(t,e)=>{qhe(t,e)}}});var $1={};const{detachNodeFromParent:Whe}=At;$1.name="removeXMLProcInst";$1.description="removes XML processing instructions";$1.fn=()=>({instruction:{enter:(t,e)=>{t.name==="xml"&&Whe(t,e)}}});var P1={};const{detachNodeFromParent:Uhe}=At;P1.name="removeComments";P1.description="removes comments";const Vhe=[/^!/];P1.fn=(t,e)=>{const{preservePatterns:n=Vhe}=e;return{comment:{enter:(i,r)=>{if(n){if(!Array.isArray(n))throw Error(`Expected array in removeComments preservePatterns parameter but received ${n}`);if(n.some((a=>new RegExp(a).test(i.value))))return}Uhe(i,r)}}}};var T1={};const{detachNodeFromParent:Hhe}=At;T1.name="removeMetadata";T1.description="removes <metadata>";T1.fn=()=>({element:{enter:(t,e)=>{t.name==="metadata"&&Hhe(t,e)}}});var A1={};const{detachNodeFromParent:Zhe}=At,{editorNamespaces:UE}=An;A1.name="removeEditorsNSData";A1.description="removes editors namespaces, elements and attributes";A1.fn=(t,e)=>{let n=[...UE];Array.isArray(e.additionalNamespaces)&&(n=[...UE,...e.additionalNamespaces]);const i=[];return{element:{enter:(r,s)=>{if(r.name==="svg")for(const[a,o]of Object.entries(r.attributes))a.startsWith("xmlns:")&&n.includes(o)&&(i.push(a.slice(6)),delete r.attributes[a]);for(const a of Object.keys(r.attributes))if(a.includes(":")){const[o]=a.split(":");i.includes(o)&&delete r.attributes[a]}if(r.name.includes(":")){const[a]=r.name.split(":");i.includes(a)&&Zhe(r,s)}}}}};var E1={};E1.name="cleanupAttrs";E1.description="cleanups attributes from newlines, trailing and repeating spaces";const Ghe=/(\S)\r?\n(\S)/g,Xhe=/\r?\n/g,Yhe=/\s{2,}/g;E1.fn=(t,e)=>{const{newlines:n=!0,trim:i=!0,spaces:r=!0}=e;return{element:{enter:s=>{for(const a of Object.keys(s.attributes))n&&(s.attributes[a]=s.attributes[a].replace(Ghe,((o,l,c)=>l+" "+c)),s.attributes[a]=s.attributes[a].replace(Xhe,"")),i&&(s.attributes[a]=s.attributes[a].trim()),r&&(s.attributes[a]=s.attributes[a].replace(Yhe," "))}}}};var R1={};const{visitSkip:Khe,detachNodeFromParent:VE}=At;R1.name="mergeStyles";R1.description="merge multiple style elements into one";R1.fn=()=>{let t=null,e="",n="text";return{element:{enter:(i,r)=>{if(i.name==="foreignObject")return Khe;if(i.name!=="style"||i.attributes.type!=null&&i.attributes.type!==""&&i.attributes.type!=="text/css")return;let s="";for(const a of i.children)a.type==="text"&&(s+=a.value),a.type==="cdata"&&(n="cdata",s+=a.value);if(s.trim().length===0){VE(i,r);return}if(i.attributes.media==null?e+=s:(e+=`@media ${i.attributes.media}{${s}}`,delete i.attributes.media),t==null)t=i;else{VE(i,r);const a={type:n,value:e};Object.defineProperty(a,"parentNode",{writable:!0,value:t}),t.children=[a]}}}}};var D1={},Vt={},Ne={},ke={};const Jhe=0,epe=1,tpe=2,npe=3,ipe=4,rpe=5,spe=6,ape=7,ope=8,lpe=9,cpe=10,fpe=11,upe=12,dpe=13,hpe=14,ppe=15,mpe=16,gpe=17,vpe=18,bpe=19,ype=20,wpe=21,kpe=22,Ope=23,xpe=24,Spe=25;ke.AtKeyword=npe;ke.BadString=spe;ke.BadUrl=ope;ke.CDC=ppe;ke.CDO=hpe;ke.Colon=mpe;ke.Comma=vpe;ke.Comment=Spe;ke.Delim=lpe;ke.Dimension=upe;ke.EOF=Jhe;ke.Function=tpe;ke.Hash=ipe;ke.Ident=epe;ke.LeftCurlyBracket=Ope;ke.LeftParenthesis=wpe;ke.LeftSquareBracket=bpe;ke.Number=cpe;ke.Percentage=fpe;ke.RightCurlyBracket=xpe;ke.RightParenthesis=kpe;ke.RightSquareBracket=ype;ke.Semicolon=gpe;ke.String=rpe;ke.Url=ape;ke.WhiteSpace=dpe;var zt={};const _pe=0;function lc(t){return t>=48&&t<=57}function Cpe(t){return lc(t)||t>=65&&t<=70||t>=97&&t<=102}function qI(t){return t>=65&&t<=90}function WI(t){return t>=97&&t<=122}function UI(t){return qI(t)||WI(t)}function VI(t){return t>=128}function Lg(t){return UI(t)||VI(t)||t===95}function $pe(t){return Lg(t)||lc(t)||t===45}function HI(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function E4(t){return t===10||t===13||t===12}function ZI(t){return E4(t)||t===32||t===9}function q_(t,e){return!(t!==92||E4(e)||e===_pe)}function Ppe(t,e,n){return t===45?Lg(e)||e===45||q_(e,n):Lg(t)?!0:t===92?q_(t,e):!1}function Tpe(t,e,n){return t===43||t===45?lc(e)?2:e===46&&lc(n)?3:0:t===46?lc(e)?2:0:lc(t)?1:0}function Ape(t){return t===65279||t===65534?1:0}const W_=new Array(128),GI=128,XI=130,YI=131,R4=132,KI=133;for(let t=0;t<W_.length;t++)W_[t]=ZI(t)&&XI||lc(t)&&YI||Lg(t)&&R4||HI(t)&&KI||t||GI;function Epe(t){return t<128?W_[t]:R4}zt.DigitCategory=YI;zt.EofCategory=GI;zt.NameStartCategory=R4;zt.NonPrintableCategory=KI;zt.WhiteSpaceCategory=XI;zt.charCodeCategory=Epe;zt.isBOM=Ape;zt.isDigit=lc;zt.isHexDigit=Cpe;zt.isIdentifierStart=Ppe;zt.isLetter=UI;zt.isLowercaseLetter=WI;zt.isName=$pe;zt.isNameStart=Lg;zt.isNewline=E4;zt.isNonAscii=VI;zt.isNonPrintable=HI;zt.isNumberStart=Tpe;zt.isUppercaseLetter=qI;zt.isValidEscape=q_;zt.isWhiteSpace=ZI;var ci={};const ur=zt;function vd(t,e){return e<t.length?t.charCodeAt(e):0}function JI(t,e,n){return n===13&&vd(t,e+1)===10?2:1}function eB(t,e,n){let i=t.charCodeAt(e);return ur.isUppercaseLetter(i)&&(i=i|32),i===n}function Rpe(t,e,n,i){if(n-e!==i.length||e<0||n>t.length)return!1;for(let r=e;r<n;r++){const s=i.charCodeAt(r-e);let a=t.charCodeAt(r);if(ur.isUppercaseLetter(a)&&(a=a|32),a!==s)return!1}return!0}function Dpe(t,e){for(;e>=0&&ur.isWhiteSpace(t.charCodeAt(e));e--);return e+1}function Mpe(t,e){for(;e<t.length&&ur.isWhiteSpace(t.charCodeAt(e));e++);return e}function jb(t,e){for(;e<t.length&&ur.isDigit(t.charCodeAt(e));e++);return e}function D4(t,e){if(e+=2,ur.isHexDigit(vd(t,e-1))){for(const i=Math.min(t.length,e+5);e<i&&ur.isHexDigit(vd(t,e));e++);const n=vd(t,e);ur.isWhiteSpace(n)&&(e+=JI(t,e,n))}return e}function Npe(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!ur.isName(n)){if(ur.isValidEscape(n,vd(t,e+1))){e=D4(t,e)-1;continue}break}}return e}function Lpe(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),ur.isDigit(n)&&(e=jb(t,e+1),n=t.charCodeAt(e)),n===46&&ur.isDigit(t.charCodeAt(e+1))&&(e+=2,e=jb(t,e)),eB(t,e,101)){let i=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(i=1,n=t.charCodeAt(e+2)),ur.isDigit(n)&&(e=jb(t,e+1+i+1))}return e}function jpe(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}ur.isValidEscape(n,vd(t,e+1))&&(e=D4(t,e))}return e}function Ipe(t){if(t.length===1&&!ur.isHexDigit(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}ci.cmpChar=eB;ci.cmpStr=Rpe;ci.consumeBadUrlRemnants=jpe;ci.consumeEscaped=D4;ci.consumeName=Npe;ci.consumeNumber=Lpe;ci.decodeEscaped=Ipe;ci.findDecimalNumberEnd=jb;ci.findWhiteSpaceEnd=Mpe;ci.findWhiteSpaceStart=Dpe;ci.getNewlineLength=JI;const Bpe=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];var $k=Bpe,M4={},N4={};const Fpe=16*1024;function Qpe(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,Fpe)):t}N4.adoptBuffer=Qpe;const HE=N4,zpe=zt,ZE=10,qpe=12,GE=13;function XE(t){const e=t.source,n=e.length,i=e.length>0?zpe.isBOM(e.charCodeAt(0)):0,r=HE.adoptBuffer(t.lines,n),s=HE.adoptBuffer(t.columns,n);let a=t.startLine,o=t.startColumn;for(let l=i;l<n;l++){const c=e.charCodeAt(l);r[l]=a,s[l]=o++,(c===ZE||c===GE||c===qpe)&&(c===GE&&l+1<n&&e.charCodeAt(l+1)===ZE&&(l++,r[l]=a,s[l]=o),a++,o=1)}r[n]=a,s[n]=o,t.lines=r,t.columns=s,t.computed=!0}class Wpe{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,n=0,i=1,r=1){this.source=e,this.startOffset=n,this.startLine=i,this.startColumn=r,this.computed=!1}getLocation(e,n){return this.computed||XE(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,i){return this.computed||XE(this),{source:i,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}M4.OffsetToLocation=Wpe;var Pk={};const YE=N4,Upe=ci,Vpe=$k,pi=ke,Rs=16777215,Fl=24,Hpe=new Map([[pi.Function,pi.RightParenthesis],[pi.LeftParenthesis,pi.RightParenthesis],[pi.LeftSquareBracket,pi.RightSquareBracket],[pi.LeftCurlyBracket,pi.RightCurlyBracket]]);class Zpe{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=(()=>{})){e=String(e||"");const i=e.length,r=YE.adoptBuffer(this.offsetAndType,e.length+1),s=YE.adoptBuffer(this.balance,e.length+1);let a=0,o=0,l=0,c=-1;for(this.offsetAndType=null,this.balance=null,n(e,((f,u,h)=>{switch(f){default:s[a]=i;break;case o:{let m=l&Rs;for(l=s[m],o=l>>Fl,s[a]=m,s[m++]=a;m<a;m++)s[m]===i&&(s[m]=a);break}case pi.LeftParenthesis:case pi.Function:case pi.LeftSquareBracket:case pi.LeftCurlyBracket:s[a]=l,o=Hpe.get(f),l=o<<Fl|a;break}r[a++]=f<<Fl|h,c===-1&&(c=u)})),r[a]=pi.EOF<<Fl|i,s[a]=i,s[i]=i;l!==0;){const f=l&Rs;l=s[f],s[f]=i}this.source=e,this.firstCharOffset=c===-1?0:c,this.tokenCount=a,this.offsetAndType=r,this.balance=s,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>Fl:pi.EOF}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Rs:this.source.length}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?Upe.cmpStr(this.source,this.offsetAndType[e-1]&Rs,this.offsetAndType[e]&Rs,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Rs:this.offsetAndType[this.tokenCount]&Rs:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===pi.Delim&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===pi.Delim&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&Rs,n=this.offsetAndType[n],this.tokenType=n>>Fl,this.tokenEnd=n&Rs):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>Fl,this.tokenEnd=e&Rs):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=pi.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===pi.WhiteSpace||this.tokenType===pi.Comment;)this.next()}skipUntilBalanced(e,n){let i=e,r,s;e:for(;i<this.tokenCount;i++){if(r=this.balance[i],r<e)break e;switch(s=i>0?this.offsetAndType[i-1]&Rs:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:i++;break e;default:this.balance[r]===i&&(i=r)}}this.skip(i-this.tokenIndex)}forEachToken(e){for(let n=0,i=this.firstCharOffset;n<this.tokenCount;n++){const r=i,s=this.offsetAndType[n],a=s&Rs,o=s>>Fl;i=a,e(o,r,a,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((n,i,r,s)=>{e[s]={idx:s,type:Vpe[n],chunk:this.source.substring(i,r),balance:this.balance[s]}})),e}}Pk.TokenStream=Zpe;const Fe=ke,st=zt,rn=ci,Gpe=$k,Xpe=M4,Ype=Pk;function Kpe(t,e){function n(u){return u<o?t.charCodeAt(u):0}function i(){if(c=rn.consumeNumber(t,c),st.isIdentifierStart(n(c),n(c+1),n(c+2))){f=Fe.Dimension,c=rn.consumeName(t,c);return}if(n(c)===37){f=Fe.Percentage,c++;return}f=Fe.Number}function r(){const u=c;if(c=rn.consumeName(t,c),rn.cmpStr(t,u,c,"url")&&n(c)===40){if(c=rn.findWhiteSpaceEnd(t,c+1),n(c)===34||n(c)===39){f=Fe.Function,c=u+4;return}a();return}if(n(c)===40){f=Fe.Function,c++;return}f=Fe.Ident}function s(u){for(u||(u=n(c++)),f=Fe.String;c<t.length;c++){const h=t.charCodeAt(c);switch(st.charCodeCategory(h)){case u:c++;return;case st.WhiteSpaceCategory:if(st.isNewline(h)){c+=rn.getNewlineLength(t,c,h),f=Fe.BadString;return}break;case 92:if(c===t.length-1)break;const m=n(c+1);st.isNewline(m)?c+=rn.getNewlineLength(t,c+1,m):st.isValidEscape(h,m)&&(c=rn.consumeEscaped(t,c)-1);break}}}function a(){for(f=Fe.Url,c=rn.findWhiteSpaceEnd(t,c);c<t.length;c++){const u=t.charCodeAt(c);switch(st.charCodeCategory(u)){case 41:c++;return;case st.WhiteSpaceCategory:if(c=rn.findWhiteSpaceEnd(t,c),n(c)===41||c>=t.length){c<t.length&&c++;return}c=rn.consumeBadUrlRemnants(t,c),f=Fe.BadUrl;return;case 34:case 39:case 40:case st.NonPrintableCategory:c=rn.consumeBadUrlRemnants(t,c),f=Fe.BadUrl;return;case 92:if(st.isValidEscape(u,n(c+1))){c=rn.consumeEscaped(t,c)-1;break}c=rn.consumeBadUrlRemnants(t,c),f=Fe.BadUrl;return}}}t=String(t||"");const o=t.length;let l=st.isBOM(n(0)),c=l,f;for(;c<o;){const u=t.charCodeAt(c);switch(st.charCodeCategory(u)){case st.WhiteSpaceCategory:f=Fe.WhiteSpace,c=rn.findWhiteSpaceEnd(t,c+1);break;case 34:s();break;case 35:st.isName(n(c+1))||st.isValidEscape(n(c+1),n(c+2))?(f=Fe.Hash,c=rn.consumeName(t,c+1)):(f=Fe.Delim,c++);break;case 39:s();break;case 40:f=Fe.LeftParenthesis,c++;break;case 41:f=Fe.RightParenthesis,c++;break;case 43:st.isNumberStart(u,n(c+1),n(c+2))?i():(f=Fe.Delim,c++);break;case 44:f=Fe.Comma,c++;break;case 45:st.isNumberStart(u,n(c+1),n(c+2))?i():n(c+1)===45&&n(c+2)===62?(f=Fe.CDC,c=c+3):st.isIdentifierStart(u,n(c+1),n(c+2))?r():(f=Fe.Delim,c++);break;case 46:st.isNumberStart(u,n(c+1),n(c+2))?i():(f=Fe.Delim,c++);break;case 47:n(c+1)===42?(f=Fe.Comment,c=t.indexOf("*/",c+2),c=c===-1?t.length:c+2):(f=Fe.Delim,c++);break;case 58:f=Fe.Colon,c++;break;case 59:f=Fe.Semicolon,c++;break;case 60:n(c+1)===33&&n(c+2)===45&&n(c+3)===45?(f=Fe.CDO,c=c+4):(f=Fe.Delim,c++);break;case 64:st.isIdentifierStart(n(c+1),n(c+2),n(c+3))?(f=Fe.AtKeyword,c=rn.consumeName(t,c+1)):(f=Fe.Delim,c++);break;case 91:f=Fe.LeftSquareBracket,c++;break;case 92:st.isValidEscape(u,n(c+1))?r():(f=Fe.Delim,c++);break;case 93:f=Fe.RightSquareBracket,c++;break;case 123:f=Fe.LeftCurlyBracket,c++;break;case 125:f=Fe.RightCurlyBracket,c++;break;case st.DigitCategory:i();break;case st.NameStartCategory:r();break;default:f=Fe.Delim,c++}e(f,l,l=c)}}Ne.AtKeyword=Fe.AtKeyword;Ne.BadString=Fe.BadString;Ne.BadUrl=Fe.BadUrl;Ne.CDC=Fe.CDC;Ne.CDO=Fe.CDO;Ne.Colon=Fe.Colon;Ne.Comma=Fe.Comma;Ne.Comment=Fe.Comment;Ne.Delim=Fe.Delim;Ne.Dimension=Fe.Dimension;Ne.EOF=Fe.EOF;Ne.Function=Fe.Function;Ne.Hash=Fe.Hash;Ne.Ident=Fe.Ident;Ne.LeftCurlyBracket=Fe.LeftCurlyBracket;Ne.LeftParenthesis=Fe.LeftParenthesis;Ne.LeftSquareBracket=Fe.LeftSquareBracket;Ne.Number=Fe.Number;Ne.Percentage=Fe.Percentage;Ne.RightCurlyBracket=Fe.RightCurlyBracket;Ne.RightParenthesis=Fe.RightParenthesis;Ne.RightSquareBracket=Fe.RightSquareBracket;Ne.Semicolon=Fe.Semicolon;Ne.String=Fe.String;Ne.Url=Fe.Url;Ne.WhiteSpace=Fe.WhiteSpace;Ne.tokenTypes=Fe;Ne.DigitCategory=st.DigitCategory;Ne.EofCategory=st.EofCategory;Ne.NameStartCategory=st.NameStartCategory;Ne.NonPrintableCategory=st.NonPrintableCategory;Ne.WhiteSpaceCategory=st.WhiteSpaceCategory;Ne.charCodeCategory=st.charCodeCategory;Ne.isBOM=st.isBOM;Ne.isDigit=st.isDigit;Ne.isHexDigit=st.isHexDigit;Ne.isIdentifierStart=st.isIdentifierStart;Ne.isLetter=st.isLetter;Ne.isLowercaseLetter=st.isLowercaseLetter;Ne.isName=st.isName;Ne.isNameStart=st.isNameStart;Ne.isNewline=st.isNewline;Ne.isNonAscii=st.isNonAscii;Ne.isNonPrintable=st.isNonPrintable;Ne.isNumberStart=st.isNumberStart;Ne.isUppercaseLetter=st.isUppercaseLetter;Ne.isValidEscape=st.isValidEscape;Ne.isWhiteSpace=st.isWhiteSpace;Ne.cmpChar=rn.cmpChar;Ne.cmpStr=rn.cmpStr;Ne.consumeBadUrlRemnants=rn.consumeBadUrlRemnants;Ne.consumeEscaped=rn.consumeEscaped;Ne.consumeName=rn.consumeName;Ne.consumeNumber=rn.consumeNumber;Ne.decodeEscaped=rn.decodeEscaped;Ne.findDecimalNumberEnd=rn.findDecimalNumberEnd;Ne.findWhiteSpaceEnd=rn.findWhiteSpaceEnd;Ne.findWhiteSpaceStart=rn.findWhiteSpaceStart;Ne.getNewlineLength=rn.getNewlineLength;Ne.tokenNames=Gpe;Ne.OffsetToLocation=Xpe.OffsetToLocation;Ne.TokenStream=Ype.TokenStream;Ne.tokenize=Kpe;var tB={},Wf={};let ju=null;class Bs{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return Bs.createItem(e)}allocateCursor(e,n){let i;return ju!==null?(i=ju,ju=ju.cursor,i.prev=e,i.next=n,i.cursor=this.cursor):i={prev:e,next:n,cursor:this.cursor},this.cursor=i,i}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=ju,ju=e}updateCursors(e,n,i,r){let{cursor:s}=this;for(;s!==null;)s.prev===e&&(s.prev=n),s.next===i&&(s.next=r),s=s.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let i of e){const r=Bs.createItem(i);n!==null?n.next=r:this.head=r,r.prev=n,n=r}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const i=this.allocateCursor(null,this.head);for(;i.next!==null;){const r=i.next;i.next=r.next,e.call(n,r.data,r,this)}this.releaseCursor()}forEachRight(e,n=this){const i=this.allocateCursor(this.tail,null);for(;i.prev!==null;){const r=i.prev;i.prev=r.prev,e.call(n,r.data,r,this)}this.releaseCursor()}reduce(e,n,i=this){let r=this.allocateCursor(null,this.head),s=n,a;for(;r.next!==null;)a=r.next,r.next=a.next,s=e.call(i,s,a.data,a,this);return this.releaseCursor(),s}reduceRight(e,n,i=this){let r=this.allocateCursor(this.tail,null),s=n,a;for(;r.prev!==null;)a=r.prev,r.prev=a.prev,s=e.call(i,s,a.data,a,this);return this.releaseCursor(),s}some(e,n=this){for(let i=this.head;i!==null;i=i.next)if(e.call(n,i.data,i,this))return!0;return!1}map(e,n=this){const i=new Bs;for(let r=this.head;r!==null;r=r.next)i.appendData(e.call(n,r.data,r,this));return i}filter(e,n=this){const i=new Bs;for(let r=this.head;r!==null;r=r.next)e.call(n,r.data,r,this)&&i.appendData(r.data);return i}nextUntil(e,n,i=this){if(e===null)return;const r=this.allocateCursor(null,e);for(;r.next!==null;){const s=r.next;if(r.next=s.next,n.call(i,s.data,s,this))break}this.releaseCursor()}prevUntil(e,n,i=this){if(e===null)return;const r=this.allocateCursor(e,null);for(;r.prev!==null;){const s=r.prev;if(r.prev=s.prev,n.call(i,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new Bs;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(Bs.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(Bs.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(Bs.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(Bs.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(Bs.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}Wf.List=Bs;var nB={},Tk={};function Jpe(t,e){const n=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
|
||
`)}})}Tk.createCustomError=Jpe;const eme=Tk,d2=100,KE=60,JE=" ";function e9({source:t,line:e,column:n},i){function r(f,u){return s.slice(f,u).map(((h,m)=>String(f+m+1).padStart(l)+" |"+h)).join(`
|
||
`)}const s=t.split(/\r\n?|\n|\f/),a=Math.max(1,e-i)-1,o=Math.min(e+i,s.length+1),l=Math.max(4,String(o).length)+1;let c=0;n+=(JE.length-1)*(s[e-1].substr(0,n-1).match(/\t/g)||[]).length,n>d2&&(c=n-KE+3,n=KE-2);for(let f=a;f<=o;f++)f>=0&&f<s.length&&(s[f]=s[f].replace(/\t/g,JE),s[f]=(c>0&&s[f].length>c?"…":"")+s[f].substr(c,d2-2)+(s[f].length>c+d2-1?"…":""));return[r(a,e),new Array(n+l+2).join("-")+"^",r(e,o)].filter(Boolean).join(`
|
||
`)}function tme(t,e,n,i,r){return Object.assign(eme.createCustomError("SyntaxError",t),{source:e,offset:n,line:i,column:r,sourceFragment(a){return e9({source:e,line:i,column:r},isNaN(a)?0:a)},get formattedMessage(){return`Parse error: ${t}
|
||
`+e9({source:e,line:i,column:r},2)}})}nB.SyntaxError=tme;var iB={};const t9=ke;function nme(t){const e=this.createList();let n=!1;const i={recognizer:t};for(;!this.eof;){switch(this.tokenType){case t9.Comment:this.next();continue;case t9.WhiteSpace:n=!0,this.next();continue}let r=t.getNode.call(this,i);if(r===void 0)break;n&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,r,e,i),n=!1),e.push(r)}return n&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,e,i),e}iB.readSequence=nme;const n9=Wf,i9=nB,ime=Ne,rme=iB,sme=M4,ame=Pk,rm=ci,qa=ke,ome=$k,r9=()=>{},lme=33,cme=35,h2=59,s9=123,a9=0;function fme(t){return function(){return this[t]()}}function p2(t){const e=Object.create(null);for(const n in t){const i=t[n],r=i.parse||i;r&&(e[n]=r)}return e}function ume(t){const e={context:Object.create(null),scope:Object.assign(Object.create(null),t.scope),atrule:p2(t.atrule),pseudo:p2(t.pseudo),node:p2(t.node)};for(const n in t.parseContext)switch(typeof t.parseContext[n]){case"function":e.context[n]=t.parseContext[n];break;case"string":e.context[n]=fme(t.parseContext[n]);break}return{config:e,...e,...e.node}}function dme(t){let e="",n="<unknown>",i=!1,r=r9,s=!1;const a=new sme.OffsetToLocation,o=Object.assign(new ame.TokenStream,ume(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:rme.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(c){return c===s9?1:0},consumeUntilLeftCurlyBracketOrSemicolon(c){return c===s9||c===h2?1:0},consumeUntilExclamationMarkOrSemicolon(c){return c===lme||c===h2?1:0},consumeUntilSemicolonIncluded(c){return c===h2?2:0},createList(){return new n9.List},createSingleNodeList(c){return new n9.List().appendData(c)},getFirstListNode(c){return c&&c.first},getLastListNode(c){return c&&c.last},parseWithFallback(c,f){const u=this.tokenIndex;try{return c.call(this)}catch(h){if(s)throw h;const m=f.call(this,u);return s=!0,r(h,m),s=!1,m}},lookupNonWSType(c){let f;do if(f=this.lookupType(c++),f!==qa.WhiteSpace)return f;while(f!==a9);return a9},charCodeAt(c){return c>=0&&c<e.length?e.charCodeAt(c):0},substring(c,f){return e.substring(c,f)},substrToCursor(c){return this.source.substring(c,this.tokenStart)},cmpChar(c,f){return rm.cmpChar(e,c,f)},cmpStr(c,f,u){return rm.cmpStr(e,c,f,u)},consume(c){const f=this.tokenStart;return this.eat(c),this.substrToCursor(f)},consumeFunctionName(){const c=e.substring(this.tokenStart,this.tokenEnd-1);return this.eat(qa.Function),c},consumeNumber(c){const f=e.substring(this.tokenStart,rm.consumeNumber(e,this.tokenStart));return this.eat(c),f},eat(c){if(this.tokenType!==c){const f=ome[c].slice(0,-6).replace(/-/g," ").replace(/^./,(m=>m.toUpperCase()));let u=`${/[[\](){}]/.test(f)?`"${f}"`:f} is expected`,h=this.tokenStart;switch(c){case qa.Ident:this.tokenType===qa.Function||this.tokenType===qa.Url?(h=this.tokenEnd-1,u="Identifier is expected but function found"):u="Identifier is expected";break;case qa.Hash:this.isDelim(cme)&&(this.next(),h++,u="Name is expected");break;case qa.Percentage:this.tokenType===qa.Number&&(h=this.tokenEnd,u="Percent sign is expected");break}this.error(u,h)}this.next()},eatIdent(c){(this.tokenType!==qa.Ident||this.lookupValue(0,c)===!1)&&this.error(`Identifier "${c}" is expected`),this.next()},eatDelim(c){this.isDelim(c)||this.error(`Delim "${String.fromCharCode(c)}" is expected`),this.next()},getLocation(c,f){return i?a.getLocationRange(c,f,n):null},getLocationFromList(c){if(i){const f=this.getFirstListNode(c),u=this.getLastListNode(c);return a.getLocationRange(f!==null?f.loc.start.offset-a.startOffset:this.tokenStart,u!==null?u.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(c,f){const u=typeof f<"u"&&f<e.length?a.getLocation(f):this.eof?a.getLocation(rm.findWhiteSpaceStart(e,e.length-1)):a.getLocation(this.tokenStart);throw new i9.SyntaxError(c||"Unexpected input",e,u.offset,u.line,u.column)}});return Object.assign(function(c,f){e=c,f=f||{},o.setSource(e,ime.tokenize),a.setSource(e,f.offset,f.line,f.column),n=f.filename||"<unknown>",i=!!f.positions,r=typeof f.onParseError=="function"?f.onParseError:r9,s=!1,o.parseAtrulePrelude="parseAtrulePrelude"in f?!!f.parseAtrulePrelude:!0,o.parseRulePrelude="parseRulePrelude"in f?!!f.parseRulePrelude:!0,o.parseValue="parseValue"in f?!!f.parseValue:!0,o.parseCustomProperty="parseCustomProperty"in f?!!f.parseCustomProperty:!1;const{context:u="default",onComment:h}=f;if(!(u in o.context))throw new Error("Unknown context `"+u+"`");typeof h=="function"&&o.forEachToken(((g,v,w)=>{if(g===qa.Comment){const O=o.getLocation(v,w),x=rm.cmpStr(e,w-2,w,"*/")?e.slice(v+2,w-2):e.slice(v+2,w);h(x,O)}}));const m=o.context[u].call(o,f);return o.eof||o.error(),m},{SyntaxError:i9.SyntaxError,config:o.config})}tB.createParser=dme;var rB={},sB={},L4={},j4={},I4={},o9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");I4.encode=function(t){if(0<=t&&t<o9.length)return o9[t];throw new TypeError("Must be between 0 and 63: "+t)};I4.decode=function(t){var e=65,n=90,i=97,r=122,s=48,a=57,o=43,l=47,c=26,f=52;return e<=t&&t<=n?t-e:i<=t&&t<=r?t-i+c:s<=t&&t<=a?t-s+f:t==o?62:t==l?63:-1};var aB=I4,B4=5,oB=1<<B4,lB=oB-1,cB=oB;function hme(t){return t<0?(-t<<1)+1:(t<<1)+0}function pme(t){var e=(t&1)===1,n=t>>1;return e?-n:n}j4.encode=function(e){var n="",i,r=hme(e);do i=r&lB,r>>>=B4,r>0&&(i|=cB),n+=aB.encode(i);while(r>0);return n};j4.decode=function(e,n,i){var r=e.length,s=0,a=0,o,l;do{if(n>=r)throw new Error("Expected more digits in base 64 VLQ value.");if(l=aB.decode(e.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));o=!!(l&cB),l&=lB,s=s+(l<<a),a+=B4}while(o);i.value=pme(s),i.rest=n};var Ak={};(function(t){function e(P,A,N){if(A in P)return P[A];if(arguments.length===3)return N;throw new Error('"'+A+'" is a required argument.')}t.getArg=e;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,i=/^data:.+\,.+$/;function r(P){var A=P.match(n);return A?{scheme:A[1],auth:A[2],host:A[3],port:A[4],path:A[5]}:null}t.urlParse=r;function s(P){var A="";return P.scheme&&(A+=P.scheme+":"),A+="//",P.auth&&(A+=P.auth+"@"),P.host&&(A+=P.host),P.port&&(A+=":"+P.port),P.path&&(A+=P.path),A}t.urlGenerate=s;var a=32;function o(P){var A=[];return function(N){for(var M=0;M<A.length;M++)if(A[M].input===N){var Q=A[0];return A[0]=A[M],A[M]=Q,A[0].result}var U=P(N);return A.unshift({input:N,result:U}),A.length>a&&A.pop(),U}}var l=o((function(A){var N=A,M=r(A);if(M){if(!M.path)return A;N=M.path}for(var Q=t.isAbsolute(N),U=[],z=0,Y=0;;)if(z=Y,Y=N.indexOf("/",z),Y===-1){U.push(N.slice(z));break}else for(U.push(N.slice(z,Y));Y<N.length&&N[Y]==="/";)Y++;for(var ae,ne=0,Y=U.length-1;Y>=0;Y--)ae=U[Y],ae==="."?U.splice(Y,1):ae===".."?ne++:ne>0&&(ae===""?(U.splice(Y+1,ne),ne=0):(U.splice(Y,2),ne--));return N=U.join("/"),N===""&&(N=Q?"/":"."),M?(M.path=N,s(M)):N}));t.normalize=l;function c(P,A){P===""&&(P="."),A===""&&(A=".");var N=r(A),M=r(P);if(M&&(P=M.path||"/"),N&&!N.scheme)return M&&(N.scheme=M.scheme),s(N);if(N||A.match(i))return A;if(M&&!M.host&&!M.path)return M.host=A,s(M);var Q=A.charAt(0)==="/"?A:l(P.replace(/\/+$/,"")+"/"+A);return M?(M.path=Q,s(M)):Q}t.join=c,t.isAbsolute=function(P){return P.charAt(0)==="/"||n.test(P)};function f(P,A){P===""&&(P="."),P=P.replace(/\/$/,"");for(var N=0;A.indexOf(P+"/")!==0;){var M=P.lastIndexOf("/");if(M<0||(P=P.slice(0,M),P.match(/^([^\/]+:\/)?\/*$/)))return A;++N}return Array(N+1).join("../")+A.substr(P.length+1)}t.relative=f;var u=(function(){var P=Object.create(null);return!("__proto__"in P)})();function h(P){return P}function m(P){return v(P)?"$"+P:P}t.toSetString=u?h:m;function g(P){return v(P)?P.slice(1):P}t.fromSetString=u?h:g;function v(P){if(!P)return!1;var A=P.length;if(A<9||P.charCodeAt(A-1)!==95||P.charCodeAt(A-2)!==95||P.charCodeAt(A-3)!==111||P.charCodeAt(A-4)!==116||P.charCodeAt(A-5)!==111||P.charCodeAt(A-6)!==114||P.charCodeAt(A-7)!==112||P.charCodeAt(A-8)!==95||P.charCodeAt(A-9)!==95)return!1;for(var N=A-10;N>=0;N--)if(P.charCodeAt(N)!==36)return!1;return!0}function w(P,A,N){var M=T(P.source,A.source);return M!==0||(M=P.originalLine-A.originalLine,M!==0)||(M=P.originalColumn-A.originalColumn,M!==0||N)||(M=P.generatedColumn-A.generatedColumn,M!==0)||(M=P.generatedLine-A.generatedLine,M!==0)?M:T(P.name,A.name)}t.compareByOriginalPositions=w;function O(P,A,N){var M;return M=P.originalLine-A.originalLine,M!==0||(M=P.originalColumn-A.originalColumn,M!==0||N)||(M=P.generatedColumn-A.generatedColumn,M!==0)||(M=P.generatedLine-A.generatedLine,M!==0)?M:T(P.name,A.name)}t.compareByOriginalPositionsNoSource=O;function x(P,A,N){var M=P.generatedLine-A.generatedLine;return M!==0||(M=P.generatedColumn-A.generatedColumn,M!==0||N)||(M=T(P.source,A.source),M!==0)||(M=P.originalLine-A.originalLine,M!==0)||(M=P.originalColumn-A.originalColumn,M!==0)?M:T(P.name,A.name)}t.compareByGeneratedPositionsDeflated=x;function $(P,A,N){var M=P.generatedColumn-A.generatedColumn;return M!==0||N||(M=T(P.source,A.source),M!==0)||(M=P.originalLine-A.originalLine,M!==0)||(M=P.originalColumn-A.originalColumn,M!==0)?M:T(P.name,A.name)}t.compareByGeneratedPositionsDeflatedNoLine=$;function T(P,A){return P===A?0:P===null?1:A===null?-1:P>A?1:-1}function S(P,A){var N=P.generatedLine-A.generatedLine;return N!==0||(N=P.generatedColumn-A.generatedColumn,N!==0)||(N=T(P.source,A.source),N!==0)||(N=P.originalLine-A.originalLine,N!==0)||(N=P.originalColumn-A.originalColumn,N!==0)?N:T(P.name,A.name)}t.compareByGeneratedPositionsInflated=S;function R(P){return JSON.parse(P.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=R;function _(P,A,N){if(A=A||"",P&&(P[P.length-1]!=="/"&&A[0]!=="/"&&(P+="/"),A=P+A),N){var M=r(N);if(!M)throw new Error("sourceMapURL could not be parsed");if(M.path){var Q=M.path.lastIndexOf("/");Q>=0&&(M.path=M.path.substring(0,Q+1))}A=c(s(M),A)}return l(A)}t.computeSourceURL=_})(Ak);var fB={},F4=Ak,Q4=Object.prototype.hasOwnProperty,Pf=typeof Map<"u";function vl(){this._array=[],this._set=Pf?new Map:Object.create(null)}vl.fromArray=function(e,n){for(var i=new vl,r=0,s=e.length;r<s;r++)i.add(e[r],n);return i};vl.prototype.size=function(){return Pf?this._set.size:Object.getOwnPropertyNames(this._set).length};vl.prototype.add=function(e,n){var i=Pf?e:F4.toSetString(e),r=Pf?this.has(e):Q4.call(this._set,i),s=this._array.length;(!r||n)&&this._array.push(e),r||(Pf?this._set.set(e,s):this._set[i]=s)};vl.prototype.has=function(e){if(Pf)return this._set.has(e);var n=F4.toSetString(e);return Q4.call(this._set,n)};vl.prototype.indexOf=function(e){if(Pf){var n=this._set.get(e);if(n>=0)return n}else{var i=F4.toSetString(e);if(Q4.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')};vl.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};vl.prototype.toArray=function(){return this._array.slice()};fB.ArraySet=vl;var uB={},dB=Ak;function mme(t,e){var n=t.generatedLine,i=e.generatedLine,r=t.generatedColumn,s=e.generatedColumn;return i>n||i==n&&s>=r||dB.compareByGeneratedPositionsInflated(t,e)<=0}function Ek(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ek.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)};Ek.prototype.add=function(e){mme(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Ek.prototype.toArray=function(){return this._sorted||(this._array.sort(dB.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};uB.MappingList=Ek;var sm=j4,li=Ak,Ly=fB.ArraySet,gme=uB.MappingList;function Ys(t){t||(t={}),this._file=li.getArg(t,"file",null),this._sourceRoot=li.getArg(t,"sourceRoot",null),this._skipValidation=li.getArg(t,"skipValidation",!1),this._sources=new Ly,this._names=new Ly,this._mappings=new gme,this._sourcesContents=null}Ys.prototype._version=3;Ys.fromSourceMap=function(e){var n=e.sourceRoot,i=new Ys({file:e.file,sourceRoot:n});return e.eachMapping((function(r){var s={generated:{line:r.generatedLine,column:r.generatedColumn}};r.source!=null&&(s.source=r.source,n!=null&&(s.source=li.relative(n,s.source)),s.original={line:r.originalLine,column:r.originalColumn},r.name!=null&&(s.name=r.name)),i.addMapping(s)})),e.sources.forEach((function(r){var s=r;n!==null&&(s=li.relative(n,r)),i._sources.has(s)||i._sources.add(s);var a=e.sourceContentFor(r);a!=null&&i.setSourceContent(r,a)})),i};Ys.prototype.addMapping=function(e){var n=li.getArg(e,"generated"),i=li.getArg(e,"original",null),r=li.getArg(e,"source",null),s=li.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,i,r,s),r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:r,name:s})};Ys.prototype.setSourceContent=function(e,n){var i=e;this._sourceRoot!=null&&(i=li.relative(this._sourceRoot,i)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[li.toSetString(i)]=n):this._sourcesContents&&(delete this._sourcesContents[li.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ys.prototype.applySourceMap=function(e,n,i){var r=n;if(n==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}var s=this._sourceRoot;s!=null&&(r=li.relative(s,r));var a=new Ly,o=new Ly;this._mappings.unsortedForEach((function(l){if(l.source===r&&l.originalLine!=null){var c=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,i!=null&&(l.source=li.join(i,l.source)),s!=null&&(l.source=li.relative(s,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var u=l.name;u!=null&&!o.has(u)&&o.add(u)}),this),this._sources=a,this._names=o,e.sources.forEach((function(l){var c=e.sourceContentFor(l);c!=null&&(i!=null&&(l=li.join(i,l)),s!=null&&(l=li.relative(s,l)),this.setSourceContent(l,c))}),this)};Ys.prototype._validateMapping=function(e,n,i,r){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!i&&!r)){if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&i)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:i,original:n,name:r}))}};Ys.prototype._serializeMappings=function(){for(var e=0,n=1,i=0,r=0,s=0,a=0,o="",l,c,f,u,h=this._mappings.toArray(),m=0,g=h.length;m<g;m++){if(c=h[m],l="",c.generatedLine!==n)for(e=0;c.generatedLine!==n;)l+=";",n++;else if(m>0){if(!li.compareByGeneratedPositionsInflated(c,h[m-1]))continue;l+=","}l+=sm.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(u=this._sources.indexOf(c.source),l+=sm.encode(u-a),a=u,l+=sm.encode(c.originalLine-1-r),r=c.originalLine-1,l+=sm.encode(c.originalColumn-i),i=c.originalColumn,c.name!=null&&(f=this._names.indexOf(c.name),l+=sm.encode(f-s),s=f)),o+=l}return o};Ys.prototype._generateSourcesContent=function(e,n){return e.map((function(i){if(!this._sourcesContents)return null;n!=null&&(i=li.relative(n,i));var r=li.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)};Ys.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Ys.prototype.toString=function(){return JSON.stringify(this.toJSON())};L4.SourceMapGenerator=Ys;const vme=L4,l9=new Set(["Atrule","Selector","Declaration"]);function bme(t){const e=new vme.SourceMapGenerator,n={line:1,column:0},i={line:0,column:0},r={line:1,column:0},s={generated:r};let a=1,o=0,l=!1;const c=t.node;t.node=function(h){if(h.loc&&h.loc.start&&l9.has(h.type)){const m=h.loc.start.line,g=h.loc.start.column-1;(i.line!==m||i.column!==g)&&(i.line=m,i.column=g,n.line=a,n.column=o,l&&(l=!1,(n.line!==r.line||n.column!==r.column)&&e.addMapping(s)),l=!0,e.addMapping({source:h.loc.source,original:i,generated:n}))}c.call(this,h),l&&l9.has(h.type)&&(r.line=a,r.column=o)};const f=t.emit;t.emit=function(h,m,g){for(let v=0;v<h.length;v++)h.charCodeAt(v)===10?(a++,o=0):o++;f(h,m,g)};const u=t.result;return t.result=function(){return l&&e.addMapping(s),{css:u(),map:e}},t}sB.generateSourceMap=bme;var z4={};const K=ke,yme=43,wme=45,m2=(t,e)=>{if(t===K.Delim&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},hB=[[K.Ident,K.Ident],[K.Ident,K.Function],[K.Ident,K.Url],[K.Ident,K.BadUrl],[K.Ident,"-"],[K.Ident,K.Number],[K.Ident,K.Percentage],[K.Ident,K.Dimension],[K.Ident,K.CDC],[K.Ident,K.LeftParenthesis],[K.AtKeyword,K.Ident],[K.AtKeyword,K.Function],[K.AtKeyword,K.Url],[K.AtKeyword,K.BadUrl],[K.AtKeyword,"-"],[K.AtKeyword,K.Number],[K.AtKeyword,K.Percentage],[K.AtKeyword,K.Dimension],[K.AtKeyword,K.CDC],[K.Hash,K.Ident],[K.Hash,K.Function],[K.Hash,K.Url],[K.Hash,K.BadUrl],[K.Hash,"-"],[K.Hash,K.Number],[K.Hash,K.Percentage],[K.Hash,K.Dimension],[K.Hash,K.CDC],[K.Dimension,K.Ident],[K.Dimension,K.Function],[K.Dimension,K.Url],[K.Dimension,K.BadUrl],[K.Dimension,"-"],[K.Dimension,K.Number],[K.Dimension,K.Percentage],[K.Dimension,K.Dimension],[K.Dimension,K.CDC],["#",K.Ident],["#",K.Function],["#",K.Url],["#",K.BadUrl],["#","-"],["#",K.Number],["#",K.Percentage],["#",K.Dimension],["#",K.CDC],["-",K.Ident],["-",K.Function],["-",K.Url],["-",K.BadUrl],["-","-"],["-",K.Number],["-",K.Percentage],["-",K.Dimension],["-",K.CDC],[K.Number,K.Ident],[K.Number,K.Function],[K.Number,K.Url],[K.Number,K.BadUrl],[K.Number,K.Number],[K.Number,K.Percentage],[K.Number,K.Dimension],[K.Number,"%"],[K.Number,K.CDC],["@",K.Ident],["@",K.Function],["@",K.Url],["@",K.BadUrl],["@","-"],["@",K.CDC],[".",K.Number],[".",K.Percentage],[".",K.Dimension],["+",K.Number],["+",K.Percentage],["+",K.Dimension],["/","*"]],kme=hB.concat([[K.Ident,K.Hash],[K.Dimension,K.Hash],[K.Hash,K.Hash],[K.AtKeyword,K.LeftParenthesis],[K.AtKeyword,K.String],[K.AtKeyword,K.Colon],[K.Percentage,K.Percentage],[K.Percentage,K.Dimension],[K.Percentage,K.Function],[K.Percentage,"-"],[K.RightParenthesis,K.Ident],[K.RightParenthesis,K.Function],[K.RightParenthesis,K.Percentage],[K.RightParenthesis,K.Dimension],[K.RightParenthesis,K.Hash],[K.RightParenthesis,"-"]]);function pB(t){const e=new Set(t.map((([n,i])=>m2(n)<<16|m2(i))));return function(n,i,r){const s=m2(i,r),a=r.charCodeAt(0);return(a===wme&&i!==K.Ident&&i!==K.Function&&i!==K.CDC||a===yme?e.has(n<<16|a<<8):e.has(n<<16|s))&&this.emit(" ",K.WhiteSpace,!0),s}}const Ome=pB(hB),xme=pB(kme);z4.safe=xme;z4.spec=Ome;const Sme=Ne,_me=sB,g2=z4,c9=ke,Cme=92;function $me(t,e){if(typeof e=="function"){let n=null;t.children.forEach((i=>{n!==null&&e.call(this,n),this.node(i),n=i}));return}t.children.forEach(this.node,this)}function Pme(t){Sme.tokenize(t,((e,n,i)=>{this.token(e,t.slice(n,i))}))}function Tme(t){const e=new Map;for(let n in t.node){const i=t.node[n];typeof(i.generate||i)=="function"&&e.set(n,i.generate||i)}return function(n,i){let r="",s=0,a={node(l){if(e.has(l.type))e.get(l.type).call(o,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:g2.safe,token(l,c){s=this.tokenBefore(s,l,c),this.emit(c,l,!1),l===c9.Delim&&c.charCodeAt(0)===Cme&&this.emit(`
|
||
`,c9.WhiteSpace,!0)},emit(l){r+=l},result(){return r}};i&&(typeof i.decorator=="function"&&(a=i.decorator(a)),i.sourceMap&&(a=_me.generateSourceMap(a)),i.mode in g2&&(a.tokenBefore=g2[i.mode]));const o={node:l=>a.node(l),children:$me,token:(l,c)=>a.token(l,c),tokenize:Pme};return a.node(n),a.result()}}rB.createGenerator=Tme;var mB={};const v2=Wf;function Ame(t){return{fromPlainObject(e){return t(e,{enter(n){n.children&&!(n.children instanceof v2.List)&&(n.children=new v2.List().fromArray(n.children))}}),e},toPlainObject(e){return t(e,{leave(n){n.children&&n.children instanceof v2.List&&(n.children=n.children.toArray())}}),e}}}mB.createConvertor=Ame;var gB={};const{hasOwnProperty:q4}=Object.prototype,Im=function(){};function f9(t){return typeof t=="function"?t:Im}function u9(t,e){return function(n,i,r){n.type===e&&t.call(this,n,i,r)}}function Eme(t,e){const n=e.structure,i=[];for(const r in n){if(q4.call(n,r)===!1)continue;let s=n[r];const a={name:r,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const o of s)o===null?a.nullable=!0:typeof o=="string"?a.type="node":Array.isArray(o)&&(a.type="list");a.type&&i.push(a)}return i.length?{context:e.walkContext,fields:i}:null}function Rme(t){const e={};for(const n in t.node)if(q4.call(t.node,n)){const i=t.node[n];if(!i.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=Eme(n,i)}return e}function d9(t,e){const n=t.fields.slice(),i=t.context,r=typeof i=="string";return e&&n.reverse(),function(s,a,o,l){let c;r&&(c=a[i],a[i]=s);for(const f of n){const u=s[f.name];if(!f.nullable||u){if(f.type==="list"){if(e?u.reduceRight(l,!1):u.reduce(l,!1))return!0}else if(o(u))return!0}}r&&(a[i]=c)}}function h9({StyleSheet:t,Atrule:e,Rule:n,Block:i,DeclarationList:r}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:i},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:i},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:i,DeclarationList:r}}}function Dme(t){const e=Rme(t),n={},i={},r=Symbol("break-walk"),s=Symbol("skip-node");for(const c in e)q4.call(e,c)&&e[c]!==null&&(n[c]=d9(e[c],!1),i[c]=d9(e[c],!0));const a=h9(n),o=h9(i),l=function(c,f){function u(O,x,$){const T=h.call(w,O,x,$);return T===r?!0:T===s?!1:!!(g.hasOwnProperty(O.type)&&g[O.type](O,w,u,v)||m.call(w,O,x,$)===r)}let h=Im,m=Im,g=n,v=(O,x,$,T)=>O||u(x,$,T);const w={break:r,skip:s,root:c,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof f=="function")h=f;else if(f&&(h=f9(f.enter),m=f9(f.leave),f.reverse&&(g=i),f.visit)){if(a.hasOwnProperty(f.visit))g=f.reverse?o[f.visit]:a[f.visit];else if(!e.hasOwnProperty(f.visit))throw new Error("Bad value `"+f.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");h=u9(h,f.visit),m=u9(m,f.visit)}if(h===Im&&m===Im)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");u(c)};return l.break=r,l.skip=s,l.find=function(c,f){let u=null;return l(c,(function(h,m,g){if(f.call(this,h,m,g))return u=h,r})),u},l.findLast=function(c,f){let u=null;return l(c,{reverse:!0,enter(h,m,g){if(f.call(this,h,m,g))return u=h,r}}),u},l.findAll=function(c,f){const u=[];return l(c,(function(h,m,g){f.call(this,h,m,g)&&u.push(h)})),u},l}gB.createWalker=Dme;var W4={},U4={},Rk={};function Mme(t){return t}function Nme(t){const{min:e,max:n,comma:i}=t;return e===0&&n===0?i?"#?":"*":e===0&&n===1?"?":e===1&&n===0?i?"#":"+":e===1&&n===1?"":(i?"#":"")+(e===n?"{"+e+"}":"{"+e+","+(n!==0?n:"")+"}")}function Lme(t){switch(t.type){case"Range":return" ["+(t.min===null?"-∞":t.min)+","+(t.max===null?"∞":t.max)+"]";default:throw new Error("Unknown node type `"+t.type+"`")}}function jme(t,e,n,i){const r=t.combinator===" "||i?t.combinator:" "+t.combinator+" ",s=t.terms.map((a=>V4(a,e,n,i))).join(r);return t.explicit||n?(i||s[0]===","?"[":"[ ")+s+(i?"]":" ]"):s}function V4(t,e,n,i){let r;switch(t.type){case"Group":r=jme(t,e,n,i)+(t.disallowEmpty?"!":"");break;case"Multiplier":return V4(t.term,e,n,i)+e(Nme(t),t);case"Type":r="<"+t.name+(t.opts?e(Lme(t.opts),t.opts):"")+">";break;case"Property":r="<'"+t.name+"'>";break;case"Keyword":r=t.name;break;case"AtKeyword":r="@"+t.name;break;case"Function":r=t.name+"(";break;case"String":case"Token":r=t.value;break;case"Comma":r=",";break;default:throw new Error("Unknown node type `"+t.type+"`")}return e(r,t)}function Ime(t,e){let n=Mme,i=!1,r=!1;return typeof e=="function"?n=e:e&&(i=!!e.forceBraces,r=!!e.compact,typeof e.decorate=="function"&&(n=e.decorate)),V4(t,n,i,r)}Rk.generate=Ime;const vB=Tk,Bme=Rk,p9={offset:0,line:1,column:1};function Fme(t,e){const n=t.tokens,i=t.longestMatch,r=i<n.length&&n[i].node||null,s=r!==e?r:null;let a=0,o=0,l=0,c="",f,u;for(let h=0;h<n.length;h++){const m=n[h].value;h===i&&(o=m.length,a=c.length),s!==null&&n[h].node===s&&(h<=i?l++:l=0),c+=m}return i===n.length||l>1?(f=_v(s||e,"end")||Bm(p9,c),u=Bm(f)):(f=_v(s,"start")||Bm(_v(e,"start")||p9,c.slice(0,a)),u=_v(s,"end")||Bm(f,c.substr(a,o))),{css:c,mismatchOffset:a,mismatchLength:o,start:f,end:u}}function _v(t,e){const n=t&&t.loc&&t.loc[e];return n?"line"in n?Bm(n):n:null}function Bm({offset:t,line:e,column:n},i){const r={offset:t,line:e,column:n};if(i){const s=i.split(/\n|\r\n?|\f/);r.offset+=i.length,r.line+=s.length-1,r.column=s.length===1?r.column+i.length:s.pop().length+1}return r}const Qme=function(t,e){const n=vB.createCustomError("SyntaxReferenceError",t+(e?" `"+e+"`":""));return n.reference=e,n},zme=function(t,e,n,i){const r=vB.createCustomError("SyntaxMatchError",t),{css:s,mismatchOffset:a,mismatchLength:o,start:l,end:c}=Fme(i,n);return r.rawMessage=t,r.syntax=e?Bme.generate(e):"<generic>",r.css=s,r.mismatchOffset=a,r.mismatchLength=o,r.message=t+`
|
||
syntax: `+r.syntax+`
|
||
value: `+(s||"<empty string>")+`
|
||
--------`+new Array(r.mismatchOffset+1).join("-")+"^",Object.assign(r,l),r.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},r};U4.SyntaxMatchError=zme;U4.SyntaxReferenceError=Qme;var Uf={};const Cv=new Map,Iu=new Map,jy=45,qme=Vme,Wme=Hme,Ume=Z4;function H4(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===jy&&t.charCodeAt(e+1)===jy}function Z4(t,e){if(e=e||0,t.length-e>=3&&t.charCodeAt(e)===jy&&t.charCodeAt(e+1)!==jy){const n=t.indexOf("-",e+2);if(n!==-1)return t.substring(e,n+1)}return""}function Vme(t){if(Cv.has(t))return Cv.get(t);const e=t.toLowerCase();let n=Cv.get(e);if(n===void 0){const i=H4(e,0),r=i?"":Z4(e,0);n=Object.freeze({basename:e.substr(r.length),name:e,prefix:r,vendor:r,custom:i})}return Cv.set(t,n),n}function Hme(t){if(Iu.has(t))return Iu.get(t);let e=t,n=t[0];n==="/"?n=t[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const i=H4(e,n.length);if(!i&&(e=e.toLowerCase(),Iu.has(e))){const o=Iu.get(e);return Iu.set(t,o),o}const r=i?"":Z4(e,n.length),s=e.substr(0,n.length+r.length),a=Object.freeze({basename:e.substr(s.length),name:e.substr(n.length),hack:n,vendor:r,prefix:s,custom:i});return Iu.set(t,a),a}Uf.isCustomProperty=H4;Uf.keyword=qme;Uf.property=Wme;Uf.vendorPrefix=Ume;var G4={};const Zme=["initial","inherit","unset","revert","revert-layer"];G4.cssWideKeywords=Zme;var M1={};const bB=zt,ga=ke,b2=ci,jg=43,so=45,y2=110,Bu=!0,Gme=!1;function U_(t,e){return t!==null&&t.type===ga.Delim&&t.value.charCodeAt(0)===e}function hg(t,e,n){for(;t!==null&&(t.type===ga.WhiteSpace||t.type===ga.Comment);)t=n(++e);return e}function Hl(t,e,n,i){if(!t)return 0;const r=t.value.charCodeAt(e);if(r===jg||r===so){if(n)return 0;e++}for(;e<t.value.length;e++)if(!bB.isDigit(t.value.charCodeAt(e)))return 0;return i+1}function w2(t,e,n){let i=!1,r=hg(t,e,n);if(t=n(r),t===null)return e;if(t.type!==ga.Number)if(U_(t,jg)||U_(t,so)){if(i=!0,r=hg(n(++r),r,n),t=n(r),t===null||t.type!==ga.Number)return 0}else return e;if(!i){const s=t.value.charCodeAt(0);if(s!==jg&&s!==so)return 0}return Hl(t,i?0:1,i,r)}function Xme(t,e){let n=0;if(!t)return 0;if(t.type===ga.Number)return Hl(t,0,Gme,n);if(t.type===ga.Ident&&t.value.charCodeAt(0)===so){if(!b2.cmpChar(t.value,1,y2))return 0;switch(t.value.length){case 2:return w2(e(++n),n,e);case 3:return t.value.charCodeAt(2)!==so?0:(n=hg(e(++n),n,e),t=e(n),Hl(t,0,Bu,n));default:return t.value.charCodeAt(2)!==so?0:Hl(t,3,Bu,n)}}else if(t.type===ga.Ident||U_(t,jg)&&e(n+1).type===ga.Ident){if(t.type!==ga.Ident&&(t=e(++n)),t===null||!b2.cmpChar(t.value,0,y2))return 0;switch(t.value.length){case 1:return w2(e(++n),n,e);case 2:return t.value.charCodeAt(1)!==so?0:(n=hg(e(++n),n,e),t=e(n),Hl(t,0,Bu,n));default:return t.value.charCodeAt(1)!==so?0:Hl(t,2,Bu,n)}}else if(t.type===ga.Dimension){let i=t.value.charCodeAt(0),r=i===jg||i===so?1:0,s=r;for(;s<t.value.length&&bB.isDigit(t.value.charCodeAt(s));s++);return s===r||!b2.cmpChar(t.value,s,y2)?0:s+1===t.value.length?w2(e(++n),n,e):t.value.charCodeAt(s+1)!==so?0:s+2===t.value.length?(n=hg(e(++n),n,e),t=e(n),Hl(t,0,Bu,n)):Hl(t,s+2,Bu,n)}return 0}var Yme=Xme;const Kme=zt,of=ke,Jme=ci,ege=43,yB=45,wB=63,tge=117;function V_(t,e){return t!==null&&t.type===of.Delim&&t.value.charCodeAt(0)===e}function nge(t,e){return t.value.charCodeAt(0)===e}function Fm(t,e,n){let i=0;for(let r=e;r<t.value.length;r++){const s=t.value.charCodeAt(r);if(s===yB&&n&&i!==0)return Fm(t,e+i+1,!1),6;if(!Kme.isHexDigit(s)||++i>6)return 0}return i}function $v(t,e,n){if(!t)return 0;for(;V_(n(e),wB);){if(++t>6)return 0;e++}return e}function ige(t,e){let n=0;if(t===null||t.type!==of.Ident||!Jme.cmpChar(t.value,0,tge)||(t=e(++n),t===null))return 0;if(V_(t,ege))return t=e(++n),t===null?0:t.type===of.Ident?$v(Fm(t,0,!0),++n,e):V_(t,wB)?$v(1,++n,e):0;if(t.type===of.Number){const i=Fm(t,1,!0);return i===0?0:(t=e(++n),t===null?n:t.type===of.Dimension||t.type===of.Number?!nge(t,yB)||!Fm(t,1,!1)?0:n+1:$v(i,n,e))}return t.type===of.Dimension?$v(Fm(t,1,!0),++n,e):0}var rge=ige;const sge=G4,age=Yme,oge=rge,Re=ke,Dk=zt,X4=ci,lge=["calc(","-moz-calc(","-webkit-calc("],Y4=new Map([[Re.Function,Re.RightParenthesis],[Re.LeftParenthesis,Re.RightParenthesis],[Re.LeftSquareBracket,Re.RightSquareBracket],[Re.LeftCurlyBracket,Re.RightCurlyBracket]]);function Ca(t,e){return e<t.length?t.charCodeAt(e):0}function kB(t,e){return X4.cmpStr(t,0,t.length,e)}function OB(t,e){for(let n=0;n<e.length;n++)if(kB(t,e[n]))return!0;return!1}function xB(t,e){return e!==t.length-2?!1:Ca(t,e)===92&&Dk.isDigit(Ca(t,e+1))}function Mk(t,e,n){if(t&&t.type==="Range"){const i=Number(n!==void 0&&n!==e.length?e.substr(0,n):e);if(isNaN(i)||t.min!==null&&i<t.min&&typeof t.min!="string"||t.max!==null&&i>t.max&&typeof t.max!="string")return!0}return!1}function cge(t,e){let n=0,i=[],r=0;e:do{switch(t.type){case Re.RightCurlyBracket:case Re.RightParenthesis:case Re.RightSquareBracket:if(t.type!==n)break e;if(n=i.pop(),i.length===0){r++;break e}break;case Re.Function:case Re.LeftParenthesis:case Re.LeftSquareBracket:case Re.LeftCurlyBracket:i.push(n),n=Y4.get(t.type);break}r++}while(t=e(r));return r}function zs(t){return function(e,n,i){return e===null?0:e.type===Re.Function&&OB(e.value,lge)?cge(e,n):t(e,n,i)}}function vn(t){return function(e){return e===null||e.type!==t?0:1}}function fge(t){if(t===null||t.type!==Re.Ident)return 0;const e=t.value.toLowerCase();return OB(e,sge.cssWideKeywords)||kB(e,"default")?0:1}function uge(t){return t===null||t.type!==Re.Ident||Ca(t.value,0)!==45||Ca(t.value,1)!==45?0:1}function dge(t){if(t===null||t.type!==Re.Hash)return 0;const e=t.value.length;if(e!==4&&e!==5&&e!==7&&e!==9)return 0;for(let n=1;n<e;n++)if(!Dk.isHexDigit(Ca(t.value,n)))return 0;return 1}function hge(t){return t===null||t.type!==Re.Hash||!Dk.isIdentifierStart(Ca(t.value,1),Ca(t.value,2),Ca(t.value,3))?0:1}function pge(t,e){if(!t)return 0;let n=0,i=[],r=0;e:do{switch(t.type){case Re.BadString:case Re.BadUrl:break e;case Re.RightCurlyBracket:case Re.RightParenthesis:case Re.RightSquareBracket:if(t.type!==n)break e;n=i.pop();break;case Re.Semicolon:if(n===0)break e;break;case Re.Delim:if(n===0&&t.value==="!")break e;break;case Re.Function:case Re.LeftParenthesis:case Re.LeftSquareBracket:case Re.LeftCurlyBracket:i.push(n),n=Y4.get(t.type);break}r++}while(t=e(r));return r}function mge(t,e){if(!t)return 0;let n=0,i=[],r=0;e:do{switch(t.type){case Re.BadString:case Re.BadUrl:break e;case Re.RightCurlyBracket:case Re.RightParenthesis:case Re.RightSquareBracket:if(t.type!==n)break e;n=i.pop();break;case Re.Function:case Re.LeftParenthesis:case Re.LeftSquareBracket:case Re.LeftCurlyBracket:i.push(n),n=Y4.get(t.type);break}r++}while(t=e(r));return r}function Xo(t){return t&&(t=new Set(t)),function(e,n,i){if(e===null||e.type!==Re.Dimension)return 0;const r=X4.consumeNumber(e.value,0);if(t!==null){const s=e.value.indexOf("\\",r),a=s===-1||!xB(e.value,s)?e.value.substr(r):e.value.substring(r,s);if(t.has(a.toLowerCase())===!1)return 0}return Mk(i,e.value,r)?0:1}}function gge(t,e,n){return t===null||t.type!==Re.Percentage||Mk(n,t.value,t.value.length-1)?0:1}function SB(t){return typeof t!="function"&&(t=function(){return 0}),function(e,n,i){return e!==null&&e.type===Re.Number&&Number(e.value)===0?1:t(e,n,i)}}function vge(t,e,n){if(t===null)return 0;const i=X4.consumeNumber(t.value,0);return!(i===t.value.length)&&!xB(t.value,i)||Mk(n,t.value,i)?0:1}function bge(t,e,n){if(t===null||t.type!==Re.Number)return 0;let i=Ca(t.value,0)===43||Ca(t.value,0)===45?1:0;for(;i<t.value.length;i++)if(!Dk.isDigit(Ca(t.value,i)))return 0;return Mk(n,t.value,i)?0:1}const _B={"ident-token":vn(Re.Ident),"function-token":vn(Re.Function),"at-keyword-token":vn(Re.AtKeyword),"hash-token":vn(Re.Hash),"string-token":vn(Re.String),"bad-string-token":vn(Re.BadString),"url-token":vn(Re.Url),"bad-url-token":vn(Re.BadUrl),"delim-token":vn(Re.Delim),"number-token":vn(Re.Number),"percentage-token":vn(Re.Percentage),"dimension-token":vn(Re.Dimension),"whitespace-token":vn(Re.WhiteSpace),"CDO-token":vn(Re.CDO),"CDC-token":vn(Re.CDC),"colon-token":vn(Re.Colon),"semicolon-token":vn(Re.Semicolon),"comma-token":vn(Re.Comma),"[-token":vn(Re.LeftSquareBracket),"]-token":vn(Re.RightSquareBracket),"(-token":vn(Re.LeftParenthesis),")-token":vn(Re.RightParenthesis),"{-token":vn(Re.LeftCurlyBracket),"}-token":vn(Re.RightCurlyBracket)},CB={string:vn(Re.String),ident:vn(Re.Ident),percentage:zs(gge),zero:SB(),number:zs(vge),integer:zs(bge),"custom-ident":fge,"custom-property-name":uge,"hex-color":dge,"id-selector":hge,"an-plus-b":age,urange:oge,"declaration-value":pge,"any-value":mge};function $B(t){const{angle:e,decibel:n,frequency:i,flex:r,length:s,resolution:a,semitones:o,time:l}=t||{};return{dimension:zs(Xo(null)),angle:zs(Xo(e)),decibel:zs(Xo(n)),frequency:zs(Xo(i)),flex:zs(Xo(r)),length:zs(SB(Xo(s))),resolution:zs(Xo(a)),semitones:zs(Xo(o)),time:zs(Xo(l))}}function yge(t){return{..._B,...CB,...$B(t)}}M1.createDemensionTypes=$B;M1.createGenericTypes=yge;M1.productionTypes=CB;M1.tokenTypes=_B;var Pl={};const wge=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],kge=["deg","grad","rad","turn"],Oge=["s","ms"],xge=["hz","khz"],Sge=["dpi","dpcm","dppx","x"],_ge=["fr"],Cge=["db"],$ge=["st"];Pl.angle=kge;Pl.decibel=Cge;Pl.flex=_ge;Pl.frequency=xge;Pl.length=wge;Pl.resolution=Sge;Pl.semitones=$ge;Pl.time=Oge;const Pge=Ne,Tge={decorator(t){const e=[];let n=null;return{...t,node(i){const r=n;n=i,t.node.call(this,i),n=r},emit(i,r,s){e.push({type:r,value:i,node:s?null:n})},result(){return e}}}};function Age(t){const e=[];return Pge.tokenize(t,((n,i,r)=>e.push({type:n,value:t.slice(i,r),node:null}))),e}function Ege(t,e){return typeof t=="string"?Age(t):e.generate(t,Tge)}var Rge=Ege,mh={},Nk={},PB={},K4={};const Dge=Tk;function Mge(t,e,n){return Object.assign(Dge.createCustomError("SyntaxError",t),{input:e,offset:n,rawMessage:t,message:t+`
|
||
`+e+`
|
||
--`+new Array((n||e.length)+1).join("-")+"^"})}K4.SyntaxError=Mge;const Nge=K4,Lge=9,jge=10,Ige=12,Bge=13,Fge=32;class Qge{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const n=this.str.charCodeAt(e);if(n!==Bge&&n!==jge&&n!==Ige&&n!==Fge&&n!==Lge)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new Nge.SyntaxError(e,this.str,this.pos)}}PB.Tokenizer=Qge;const zge=PB,qge=9,Wge=10,Uge=12,Vge=13,Hge=32,TB=33,J4=35,m9=38,Iy=39,AB=40,Zge=41,EB=42,eP=43,tP=44,g9=45,nP=60,RB=62,H_=63,Gge=64,Lk=91,iP=93,By=123,v9=124,b9=125,y9=8734,Ig=new Uint8Array(128).map(((t,e)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(e))?1:0)),w9={" ":1,"&&":2,"||":3,"|":4};function Fy(t){return t.substringToPos(t.findWsEnd(t.pos))}function Id(t){let e=t.pos;for(;e<t.str.length;e++){const n=t.str.charCodeAt(e);if(n>=128||Ig[n]===0)break}return t.pos===e&&t.error("Expect a keyword"),t.substringToPos(e)}function Qy(t){let e=t.pos;for(;e<t.str.length;e++){const n=t.str.charCodeAt(e);if(n<48||n>57)break}return t.pos===e&&t.error("Expect a number"),t.substringToPos(e)}function Xge(t){const e=t.str.indexOf("'",t.pos+1);return e===-1&&(t.pos=t.str.length,t.error("Expect an apostrophe")),t.substringToPos(e+1)}function k9(t){let e=null,n=null;return t.eat(By),e=Qy(t),t.charCode()===tP?(t.pos++,t.charCode()!==b9&&(n=Qy(t))):n=e,t.eat(b9),{min:Number(e),max:n?Number(n):0}}function Yge(t){let e=null,n=!1;switch(t.charCode()){case EB:t.pos++,e={min:0,max:0};break;case eP:t.pos++,e={min:1,max:0};break;case H_:t.pos++,e={min:0,max:1};break;case J4:t.pos++,n=!0,t.charCode()===By?e=k9(t):t.charCode()===H_?(t.pos++,e={min:0,max:0}):e={min:1,max:0};break;case By:e=k9(t);break;default:return null}return{type:"Multiplier",comma:n,min:e.min,max:e.max,term:null}}function Bd(t,e){const n=Yge(t);return n!==null?(n.term=e,t.charCode()===J4&&t.charCodeAt(t.pos-1)===eP?Bd(t,n):n):e}function k2(t){const e=t.peek();return e===""?null:{type:"Token",value:e}}function Kge(t){let e;return t.eat(nP),t.eat(Iy),e=Id(t),t.eat(Iy),t.eat(RB),Bd(t,{type:"Property",name:e})}function Jge(t){let e=null,n=null,i=1;return t.eat(Lk),t.charCode()===g9&&(t.peek(),i=-1),i==-1&&t.charCode()===y9?t.peek():(e=i*Number(Qy(t)),Ig[t.charCode()]!==0&&(e+=Id(t))),Fy(t),t.eat(tP),Fy(t),t.charCode()===y9?t.peek():(i=1,t.charCode()===g9&&(t.peek(),i=-1),n=i*Number(Qy(t)),Ig[t.charCode()]!==0&&(n+=Id(t))),t.eat(iP),{type:"Range",min:e,max:n}}function e1e(t){let e,n=null;return t.eat(nP),e=Id(t),t.charCode()===AB&&t.nextCharCode()===Zge&&(t.pos+=2,e+="()"),t.charCodeAt(t.findWsEnd(t.pos))===Lk&&(Fy(t),n=Jge(t)),t.eat(RB),Bd(t,{type:"Type",name:e,opts:n})}function t1e(t){const e=Id(t);return t.charCode()===AB?(t.pos++,{type:"Function",name:e}):Bd(t,{type:"Keyword",name:e})}function n1e(t,e){function n(r,s){return{type:"Group",terms:r,combinator:s,disallowEmpty:!1,explicit:!1}}let i;for(e=Object.keys(e).sort(((r,s)=>w9[r]-w9[s]));e.length>0;){i=e.shift();let r=0,s=0;for(;r<t.length;r++){const a=t[r];a.type==="Combinator"&&(a.value===i?(s===-1&&(s=r-1),t.splice(r,1),r--):(s!==-1&&r-s>1&&(t.splice(s,r-s,n(t.slice(s,r),i)),r=s+1),s=-1))}s!==-1&&e.length&&t.splice(s,r-s,n(t.slice(s,r),i))}return i}function DB(t){const e=[],n={};let i,r=null,s=t.pos;for(;i=r1e(t);)i.type!=="Spaces"&&(i.type==="Combinator"?((r===null||r.type==="Combinator")&&(t.pos=s,t.error("Unexpected combinator")),n[i.value]=!0):r!==null&&r.type!=="Combinator"&&(n[" "]=!0,e.push({type:"Combinator",value:" "})),e.push(i),r=i,s=t.pos);return r!==null&&r.type==="Combinator"&&(t.pos-=s,t.error("Unexpected combinator")),{type:"Group",terms:e,combinator:n1e(e,n)||" ",disallowEmpty:!1,explicit:!1}}function i1e(t){let e;return t.eat(Lk),e=DB(t),t.eat(iP),e.explicit=!0,t.charCode()===TB&&(t.pos++,e.disallowEmpty=!0),e}function r1e(t){let e=t.charCode();if(e<128&&Ig[e]===1)return t1e(t);switch(e){case iP:break;case Lk:return Bd(t,i1e(t));case nP:return t.nextCharCode()===Iy?Kge(t):e1e(t);case v9:return{type:"Combinator",value:t.substringToPos(t.pos+(t.nextCharCode()===v9?2:1))};case m9:return t.pos++,t.eat(m9),{type:"Combinator",value:"&&"};case tP:return t.pos++,{type:"Comma"};case Iy:return Bd(t,{type:"String",value:Xge(t)});case Hge:case qge:case Wge:case Vge:case Uge:return{type:"Spaces",value:Fy(t)};case Gge:return e=t.nextCharCode(),e<128&&Ig[e]===1?(t.pos++,{type:"AtKeyword",name:Id(t)}):k2(t);case EB:case eP:case H_:case J4:case TB:break;case By:if(e=t.nextCharCode(),e<48||e>57)return k2(t);break;default:return k2(t)}}function s1e(t){const e=new zge.Tokenizer(t),n=DB(e);return e.pos!==t.length&&e.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}Nk.parse=s1e;const a1e=Nk,Gn={type:"Match"},ar={type:"Mismatch"},rP={type:"DisallowEmpty"},o1e=40,l1e=41;function Hi(t,e,n){return e===Gn&&n===ar||t===Gn&&e===Gn&&n===Gn?t:(t.type==="If"&&t.else===ar&&e===Gn&&(e=t.then,t=t.match),{type:"If",match:t,then:e,else:n})}function MB(t){return t.length>2&&t.charCodeAt(t.length-2)===o1e&&t.charCodeAt(t.length-1)===l1e}function O9(t){return t.type==="Keyword"||t.type==="AtKeyword"||t.type==="Function"||t.type==="Type"&&MB(t.name)}function Z_(t,e,n){switch(t){case" ":{let i=Gn;for(let r=e.length-1;r>=0;r--){const s=e[r];i=Hi(s,i,ar)}return i}case"|":{let i=ar,r=null;for(let s=e.length-1;s>=0;s--){let a=e[s];if(O9(a)&&(r===null&&s>0&&O9(e[s-1])&&(r=Object.create(null),i=Hi({type:"Enum",map:r},Gn,i)),r!==null)){const o=(MB(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(o in r)){r[o]=a;continue}}r=null,i=Hi(a,Gn,i)}return i}case"&&":{if(e.length>5)return{type:"MatchOnce",terms:e,all:!0};let i=ar;for(let r=e.length-1;r>=0;r--){const s=e[r];let a;e.length>1?a=Z_(t,e.filter((function(o){return o!==s})),!1):a=Gn,i=Hi(s,a,i)}return i}case"||":{if(e.length>5)return{type:"MatchOnce",terms:e,all:!1};let i=n?Gn:ar;for(let r=e.length-1;r>=0;r--){const s=e[r];let a;e.length>1?a=Z_(t,e.filter((function(o){return o!==s})),!0):a=Gn,i=Hi(s,a,i)}return i}}}function c1e(t){let e=Gn,n=sP(t.term);if(t.max===0)n=Hi(n,rP,ar),e=Hi(n,null,ar),e.then=Hi(Gn,Gn,e),t.comma&&(e.then.else=Hi({type:"Comma",syntax:t},e,ar));else for(let i=t.min||1;i<=t.max;i++)t.comma&&e!==Gn&&(e=Hi({type:"Comma",syntax:t},e,ar)),e=Hi(n,Hi(Gn,Gn,e),ar);if(t.min===0)e=Hi(Gn,Gn,e);else for(let i=0;i<t.min-1;i++)t.comma&&e!==Gn&&(e=Hi({type:"Comma",syntax:t},e,ar)),e=Hi(n,e,ar);return e}function sP(t){if(typeof t=="function")return{type:"Generic",fn:t};switch(t.type){case"Group":{let e=Z_(t.combinator,t.terms.map(sP),!1);return t.disallowEmpty&&(e=Hi(e,rP,ar)),e}case"Multiplier":return c1e(t);case"Type":case"Property":return{type:t.type,name:t.name,syntax:t};case"Keyword":return{type:t.type,name:t.name.toLowerCase(),syntax:t};case"AtKeyword":return{type:t.type,name:"@"+t.name.toLowerCase(),syntax:t};case"Function":return{type:t.type,name:t.name.toLowerCase()+"(",syntax:t};case"String":return t.value.length===3?{type:"Token",value:t.value.charAt(1),syntax:t}:{type:t.type,value:t.value.substr(1,t.value.length-2).replace(/\\'/g,"'"),syntax:t};case"Token":return{type:t.type,value:t.value,syntax:t};case"Comma":return{type:t.type,syntax:t};default:throw new Error("Unknown node type:",t.type)}}function f1e(t,e){return typeof t=="string"&&(t=a1e.parse(t)),{type:"MatchGraph",match:sP(t),syntax:e||null,source:t}}mh.DISALLOW_EMPTY=rP;mh.MATCH=Gn;mh.MISMATCH=ar;mh.buildMatchGraph=f1e;var aP={};const pn=mh,Ar=ke,{hasOwnProperty:x9}=Object.prototype,u1e=0,d1e=1,zy=2,oP=3,S9="Match",h1e="Mismatch",p1e="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",_9=15e3;function NB(t){let e=null,n=null,i=t;for(;i!==null;)n=i.prev,i.prev=e,e=i,i=n;return e}function O2(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const i=e.charCodeAt(n);let r=t.charCodeAt(n);if(r>=65&&r<=90&&(r=r|32),r!==i)return!1}return!0}function m1e(t){return t.type!==Ar.Delim?!1:t.value!=="?"}function C9(t){return t===null?!0:t.type===Ar.Comma||t.type===Ar.Function||t.type===Ar.LeftParenthesis||t.type===Ar.LeftSquareBracket||t.type===Ar.LeftCurlyBracket||m1e(t)}function $9(t){return t===null?!0:t.type===Ar.RightParenthesis||t.type===Ar.RightSquareBracket||t.type===Ar.RightCurlyBracket||t.type===Ar.Delim&&t.value==="/"}function LB(t,e,n){function i(){do x++,O=x<t.length?t[x]:null;while(O!==null&&(O.type===Ar.WhiteSpace||O.type===Ar.Comment))}function r(S){const R=x+S;return R<t.length?t[R]:null}function s(S,R){return{nextState:S,matchStack:T,syntaxStack:u,thenStack:h,tokenIndex:x,prev:R}}function a(S){h={nextState:S,matchStack:T,syntaxStack:u,prev:h}}function o(S){m=s(S,m)}function l(){T={type:d1e,syntax:e.syntax,token:O,prev:T},i(),g=null,x>$&&($=x)}function c(){u={syntax:e.syntax,opts:e.syntax.opts||u!==null&&u.opts||null,prev:u},T={type:zy,syntax:e.syntax,token:T.token,prev:T}}function f(){T.type===zy?T=T.prev:T={type:oP,syntax:u.syntax,token:T.token,prev:T},u=u.prev}let u=null,h=null,m=null,g=null,v=0,w=null,O=null,x=-1,$=0,T={type:u1e,syntax:null,token:null,prev:null};for(i();w===null&&++v<_9;)switch(e.type){case"Match":if(h===null){if(O!==null&&(x!==t.length-1||O.value!=="\\0"&&O.value!=="\\9")){e=pn.MISMATCH;break}w=S9;break}if(e=h.nextState,e===pn.DISALLOW_EMPTY)if(h.matchStack===T){e=pn.MISMATCH;break}else e=pn.MATCH;for(;h.syntaxStack!==u;)f();h=h.prev;break;case"Mismatch":if(g!==null&&g!==!1)(m===null||x>m.tokenIndex)&&(m=g,g=!1);else if(m===null){w=h1e;break}e=m.nextState,h=m.thenStack,u=m.syntaxStack,T=m.matchStack,x=m.tokenIndex,O=x<t.length?t[x]:null,m=m.prev;break;case"MatchGraph":e=e.match;break;case"If":e.else!==pn.MISMATCH&&o(e.else),e.then!==pn.MATCH&&a(e.then),e=e.match;break;case"MatchOnce":e={type:"MatchOnceBuffer",syntax:e,index:0,mask:0};break;case"MatchOnceBuffer":{const _=e.syntax.terms;if(e.index===_.length){if(e.mask===0||e.syntax.all){e=pn.MISMATCH;break}e=pn.MATCH;break}if(e.mask===(1<<_.length)-1){e=pn.MATCH;break}for(;e.index<_.length;e.index++){const P=1<<e.index;if((e.mask&P)===0){o(e),a({type:"AddMatchOnce",syntax:e.syntax,mask:e.mask|P}),e=_[e.index++];break}}break}case"AddMatchOnce":e={type:"MatchOnceBuffer",syntax:e.syntax,index:0,mask:e.mask};break;case"Enum":if(O!==null){let _=O.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),x9.call(e.map,_)){e=e.map[_];break}}e=pn.MISMATCH;break;case"Generic":{const _=u!==null?u.opts:null,P=x+Math.floor(e.fn(O,r,_));if(!isNaN(P)&&P>x){for(;x<P;)l();e=pn.MATCH}else e=pn.MISMATCH;break}case"Type":case"Property":{const _=e.type==="Type"?"types":"properties",P=x9.call(n,_)?n[_][e.name]:null;if(!P||!P.match)throw new Error("Bad syntax reference: "+(e.type==="Type"?"<"+e.name+">":"<'"+e.name+"'>"));if(g!==!1&&O!==null&&e.type==="Type"&&(e.name==="custom-ident"&&O.type===Ar.Ident||e.name==="length"&&O.value==="0")){g===null&&(g=s(e,m)),e=pn.MISMATCH;break}c(),e=P.match;break}case"Keyword":{const _=e.name;if(O!==null){let P=O.value;if(P.indexOf("\\")!==-1&&(P=P.replace(/\\[09].*$/,"")),O2(P,_)){l(),e=pn.MATCH;break}}e=pn.MISMATCH;break}case"AtKeyword":case"Function":if(O!==null&&O2(O.value,e.name)){l(),e=pn.MATCH;break}e=pn.MISMATCH;break;case"Token":if(O!==null&&O.value===e.value){l(),e=pn.MATCH;break}e=pn.MISMATCH;break;case"Comma":O!==null&&O.type===Ar.Comma?C9(T.token)?e=pn.MISMATCH:(l(),e=$9(O)?pn.MISMATCH:pn.MATCH):e=C9(T.token)||$9(O)?pn.MATCH:pn.MISMATCH;break;case"String":let S="",R=x;for(;R<t.length&&S.length<e.value.length;R++)S+=t[R].value;if(O2(S,e.value)){for(;x<R;)l();e=pn.MATCH}else e=pn.MISMATCH;break;default:throw new Error("Unknown node type: "+e.type)}switch(w){case null:console.warn("[csstree-match] BREAK after "+_9+" iterations"),w=p1e,T=null;break;case S9:for(;u!==null;)f();break;default:T=null}return{tokens:t,reason:w,iterations:v,match:T,longestMatch:$}}function g1e(t,e,n){const i=LB(t,e,n||{});if(i.match!==null){let r=NB(i.match).prev;for(i.match=[];r!==null;){switch(r.type){case zy:case oP:i.match.push({type:r.type,syntax:r.syntax});break;default:i.match.push({token:r.token.value,node:r.token.node});break}r=r.prev}}return i}function v1e(t,e,n){const i=LB(t,e,n||{});if(i.match===null)return i;let r=i.match,s=i.match={syntax:e.syntax||null,match:[]};const a=[s];for(r=NB(r).prev;r!==null;){switch(r.type){case zy:s.match.push(s={syntax:r.syntax,match:[]}),a.push(s);break;case oP:a.pop(),s=a[a.length-1];break;default:s.match.push({syntax:r.syntax||null,token:r.token.value,node:r.token.node})}r=r.prev}return i}aP.matchAsList=g1e;aP.matchAsTree=v1e;var N1={};function jB(t){function e(r){return r===null?!1:r.type==="Type"||r.type==="Property"||r.type==="Keyword"}function n(r){if(Array.isArray(r.match)){for(let s=0;s<r.match.length;s++)if(n(r.match[s]))return e(r.syntax)&&i.unshift(r.syntax),!0}else if(r.node===t)return i=e(r.syntax)?[r.syntax]:[],!0;return!1}let i=null;return this.matched!==null&&n(this.matched),i}function b1e(t,e){return lP(this,t,(n=>n.type==="Type"&&n.name===e))}function y1e(t,e){return lP(this,t,(n=>n.type==="Property"&&n.name===e))}function w1e(t){return lP(this,t,(e=>e.type==="Keyword"))}function lP(t,e,n){const i=jB.call(t,e);return i===null?!1:i.some(n)}N1.getTrace=jB;N1.isKeyword=w1e;N1.isProperty=y1e;N1.isType=b1e;var IB={};const k1e=Wf;function BB(t){return"node"in t?t.node:BB(t.match[0])}function FB(t){return"node"in t?t.node:FB(t.match[t.match.length-1])}function O1e(t,e,n,i,r){function s(o){if(o.syntax!==null&&o.syntax.type===i&&o.syntax.name===r){const l=BB(o),c=FB(o);t.syntax.walk(e,(function(f,u,h){if(f===l){const m=new k1e.List;do{if(m.appendData(u.data),u.data===c)break;u=u.next}while(u!==null);a.push({parent:h,nodes:m})}}))}Array.isArray(o.match)&&o.match.forEach(s)}const a=[];return n.matched!==null&&s(n.matched),a}IB.matchFragments=O1e;var QB={};const x1e=Wf,{hasOwnProperty:pg}=Object.prototype;function x2(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0}function P9(t){return!!t&&x2(t.offset)&&x2(t.line)&&x2(t.column)}function S1e(t,e){return function(i,r){if(!i||i.constructor!==Object)return r(i,"Type of node should be an Object");for(let s in i){let a=!0;if(pg.call(i,s)!==!1){if(s==="type")i.type!==t&&r(i,"Wrong node type `"+i.type+"`, expected `"+t+"`");else if(s==="loc"){if(i.loc===null)continue;if(i.loc&&i.loc.constructor===Object)if(typeof i.loc.source!="string")s+=".source";else if(!P9(i.loc.start))s+=".start";else if(!P9(i.loc.end))s+=".end";else continue;a=!1}else if(e.hasOwnProperty(s)){a=!1;for(let o=0;!a&&o<e[s].length;o++){const l=e[s][o];switch(l){case String:a=typeof i[s]=="string";break;case Boolean:a=typeof i[s]=="boolean";break;case null:a=i[s]===null;break;default:typeof l=="string"?a=i[s]&&i[s].type===l:Array.isArray(l)&&(a=i[s]instanceof x1e.List)}}}else r(i,"Unknown field `"+s+"` for "+t+" node type");a||r(i,"Bad value for `"+t+"."+s+"`")}}for(const s in e)pg.call(e,s)&&pg.call(i,s)===!1&&r(i,"Field `"+t+"."+s+"` is missed")}}function _1e(t,e){const n=e.structure,i={type:String,loc:!0},r={type:'"'+t+'"'};for(const s in n){if(pg.call(n,s)===!1)continue;const a=[],o=i[s]=Array.isArray(n[s])?n[s].slice():[n[s]];for(let l=0;l<o.length;l++){const c=o[l];if(c===String||c===Boolean)a.push(c.name);else if(c===null)a.push("null");else if(typeof c=="string")a.push("<"+c+">");else if(Array.isArray(c))a.push("List");else throw new Error("Wrong value `"+c+"` in `"+t+"."+s+"` structure definition")}r[s]=a.join(" | ")}return{docs:r,check:S1e(t,i)}}function C1e(t){const e={};if(t.node){for(const n in t.node)if(pg.call(t.node,n)){const i=t.node[n];if(i.structure)e[n]=_1e(n,i);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return e}QB.getStructureFromConfig=C1e;var cP={};const Qm=function(){};function T9(t){return typeof t=="function"?t:Qm}function $1e(t,e,n){function i(a){switch(r.call(n,a),a.type){case"Group":a.terms.forEach(i);break;case"Multiplier":i(a.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+a.type)}s.call(n,a)}let r=Qm,s=Qm;if(typeof e=="function"?r=e:e&&(r=T9(e.enter),s=T9(e.leave)),r===Qm&&s===Qm)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");i(t)}cP.walk=$1e;const Ku=U4,am=Uf,P1e=G4,T1e=M1,A9=Pl,A1e=Rge,G_=mh,E9=aP,E1e=N1,R9=IB,R1e=QB,D1e=Nk,zB=Rk,M1e=cP,N1e=G_.buildMatchGraph(P1e.cssWideKeywords.join(" | "));function X_(t,e,n){const i={};for(const r in t)t[r].syntax&&(i[r]=n?t[r].syntax:zB.generate(t[r].syntax,{compact:e}));return i}function L1e(t,e,n){const i={};for(const[r,s]of Object.entries(t))i[r]={prelude:s.prelude&&(n?s.prelude.syntax:zB.generate(s.prelude.syntax,{compact:e})),descriptors:s.descriptors&&X_(s.descriptors,e,n)};return i}function j1e(t){for(let e=0;e<t.length;e++)if(t[e].value.toLowerCase()==="var(")return!0;return!1}function da(t,e,n){return{matched:t,iterations:n,error:e,...E1e}}function Fu(t,e,n,i){const r=A1e(n,t.syntax);let s;return j1e(r)?da(null,new Error("Matching for a tree with var() is not supported")):(i&&(s=E9.matchAsTree(r,t.cssWideKeywordsSyntax,t)),(!i||!s.match)&&(s=E9.matchAsTree(r,e.match,t),!s.match)?da(null,new Ku.SyntaxMatchError(s.reason,e.syntax,n,s),s.iterations):da(s.match,null,s.iterations))}class I1e{constructor(e,n,i){if(this.cssWideKeywordsSyntax=N1e,this.syntax=n,this.generic=!1,this.units={...A9},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||R1e.getStructureFromConfig(e),e){if(e.units)for(const r of Object.keys(A9))Array.isArray(e.units[r])&&(this.units[r]=e.units[r]);if(e.types)for(const r in e.types)this.addType_(r,e.types[r]);if(e.generic){this.generic=!0;for(const[r,s]of Object.entries(T1e.createGenericTypes(this.units)))this.addType_(r,s)}if(e.atrules)for(const r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(const r in e.properties)this.addProperty_(r,e.properties[r])}}checkStructure(e){function n(s,a){r.push({node:s,message:a})}const i=this.structure,r=[];return this.syntax.walk(e,(function(s){i.hasOwnProperty(s.type)?i[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")})),r.length?r:!1}createDescriptor(e,n,i,r=null){const s={type:n,name:i},a={type:n,name:i,parent:r,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?a.match=G_.buildMatchGraph(e,s):(typeof e=="string"?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:D1e.parse(e)}),a.syntax}}):a.syntax=e,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:G_.buildMatchGraph(a.syntax,s)}),a.match}})),a}addAtrule_(e,n){n&&(this.atrules[e]={type:"Atrule",name:e,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",e):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce(((i,r)=>(i[r]=this.createDescriptor(n.descriptors[r],"AtruleDescriptor",r,e),i)),Object.create(null)):null})}addProperty_(e,n){n&&(this.properties[e]=this.createDescriptor(n,"Property",e))}addType_(e,n){n&&(this.types[e]=this.createDescriptor(n,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Ku.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,n){const i=this.checkAtruleName(e);if(i)return i;const r=this.getAtrule(e);if(!r.prelude&&n)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!n&&!Fu(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,n){const i=this.checkAtruleName(e);if(i)return i;const r=this.getAtrule(e),s=am.keyword(n);if(!r.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[s.name]&&!r.descriptors[s.basename])return new Ku.SyntaxReferenceError("Unknown at-rule descriptor",n)}checkPropertyName(e){if(!this.getProperty(e))return new Ku.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,n){const i=this.checkAtrulePrelude(e,n);if(i)return da(null,i);const r=this.getAtrule(e);return r.prelude?Fu(this,r.prelude,n||"",!1):da(null,null)}matchAtruleDescriptor(e,n,i){const r=this.checkAtruleDescriptorName(e,n);if(r)return da(null,r);const s=this.getAtrule(e),a=am.keyword(n);return Fu(this,s.descriptors[a.name]||s.descriptors[a.basename],i,!1)}matchDeclaration(e){return e.type!=="Declaration"?da(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,n){if(am.property(e).custom)return da(null,new Error("Lexer matching doesn't applicable for custom properties"));const i=this.checkPropertyName(e);return i?da(null,i):Fu(this,this.getProperty(e),n,!0)}matchType(e,n){const i=this.getType(e);return i?Fu(this,i,n,!1):da(null,new Ku.SyntaxReferenceError("Unknown type",e))}match(e,n){return typeof e!="string"&&(!e||!e.type)?da(null,new Ku.SyntaxReferenceError("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Fu(this,e,n,!1))}findValueFragments(e,n,i,r){return R9.matchFragments(this,n,this.matchProperty(e,n),i,r)}findDeclarationValueFragments(e,n,i){return R9.matchFragments(this,e.value,this.matchDeclaration(e),n,i)}findAllFragments(e,n,i){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:s=>{r.push.apply(r,this.findDeclarationValueFragments(s,n,i))}}),r}getAtrule(e,n=!0){const i=am.keyword(e);return(i.vendor&&n?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name])||null}getAtrulePrelude(e,n=!0){const i=this.getAtrule(e,n);return i&&i.prelude||null}getAtruleDescriptor(e,n){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[n]||null}getProperty(e,n=!0){const i=am.property(e);return(i.vendor&&n?this.properties[i.name]||this.properties[i.basename]:this.properties[i.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,s,a,o){if(a.has(s))return a.get(s);a.set(s,!1),o.syntax!==null&&M1e.walk(o.syntax,(function(l){if(l.type!=="Type"&&l.type!=="Property")return;const c=l.type==="Type"?r.types:r.properties,f=l.type==="Type"?n:i;(!hasOwnProperty.call(c,l.name)||e(r,l.name,f,c[l.name]))&&a.set(s,!0)}),this)}let n=new Map,i=new Map;for(const r in this.types)e(this,r,n,this.types[r]);for(const r in this.properties)e(this,r,i,this.properties[r]);return n=[...n.keys()].filter((r=>n.get(r))),i=[...i.keys()].filter((r=>i.get(r))),n.length||i.length?{types:n,properties:i}:null}dump(e,n){return{generic:this.generic,units:this.units,types:X_(this.types,!n,e),properties:X_(this.properties,!n,e),atrules:L1e(this.atrules,!n,e)}}toString(){return JSON.stringify(this.dump())}}W4.Lexer=I1e;function S2(t,e){return typeof e=="string"&&/^\s*\|/.test(e)?typeof t=="string"?t+e:e.replace(/^\s*\|\s*/,""):e||null}function D9(t,e){const n=Object.create(null);for(const[i,r]of Object.entries(t))if(r){n[i]={};for(const s of Object.keys(r))e.includes(s)&&(n[i][s]=r[s])}return n}function B1e(t,e){const n={...t};for(const[i,r]of Object.entries(e))switch(i){case"generic":n[i]=!!r;break;case"units":n[i]={...t[i]};for(const[s,a]of Object.entries(r))n[i][s]=Array.isArray(a)?a:[];break;case"atrules":n[i]={...t[i]};for(const[s,a]of Object.entries(r)){const o=n[i][s]||{},l=n[i][s]={prelude:o.prelude||null,descriptors:{...o.descriptors}};if(a){l.prelude=a.prelude?S2(l.prelude,a.prelude):l.prelude||null;for(const[c,f]of Object.entries(a.descriptors||{}))l.descriptors[c]=f?S2(l.descriptors[c],f):null;Object.keys(l.descriptors).length||(l.descriptors=null)}}break;case"types":case"properties":n[i]={...t[i]};for(const[s,a]of Object.entries(r))n[i][s]=S2(n[i][s],a);break;case"scope":n[i]={...t[i]};for(const[s,a]of Object.entries(r))n[i][s]={...n[i][s],...a};break;case"parseContext":n[i]={...t[i],...r};break;case"atrule":case"pseudo":n[i]={...t[i],...D9(r,["parse"])};break;case"node":n[i]={...t[i],...D9(r,["name","structure","parse","generate","walkContext"])};break}return n}var F1e=B1e;const Q1e=Ne,z1e=tB,q1e=rB,W1e=mB,U1e=gB,M9=W4,Y_=F1e;function qB(t){const e=z1e.createParser(t),n=U1e.createWalker(t),i=q1e.createGenerator(t),{fromPlainObject:r,toPlainObject:s}=W1e.createConvertor(n),a={lexer:null,createLexer:o=>new M9.Lexer(o,a,a.lexer.structure),tokenize:Q1e.tokenize,parse:e,generate:i,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:r,toPlainObject:s,fork(o){const l=Y_({},t);return qB(typeof o=="function"?o(l,Object.assign):Y_(l,o))}};return a.lexer=new M9.Lexer({generic:!0,units:t.units,types:t.types,atrules:t.atrules,properties:t.properties,node:t.node},a),a}const V1e=t=>qB(Y_({},t));var WB=V1e,H1e={generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}}},ut={},gh={};const Li=ke,UB=zt,lo=43,ss=45,Ib=110,lf=!0,Z1e=!1;function Bb(t,e){let n=this.tokenStart+t;const i=this.charCodeAt(n);for((i===lo||i===ss)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)UB.isDigit(this.charCodeAt(n))||this.error("Integer is expected",n)}function cd(t){return Bb.call(this,0,t)}function Ql(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case Ib:n="N is expected";break;case ss:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function _2(){let t=0,e=0,n=this.tokenType;for(;n===Li.WhiteSpace||n===Li.Comment;)n=this.lookupType(++t);if(n!==Li.Number)if(this.isDelim(lo,t)||this.isDelim(ss,t)){e=this.isDelim(lo,t)?lo:ss;do n=this.lookupType(++t);while(n===Li.WhiteSpace||n===Li.Comment);n!==Li.Number&&(this.skip(t),cd.call(this,lf))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==lo&&n!==ss&&this.error("Number sign is expected")),cd.call(this,e!==0),e===ss?"-"+this.consume(Li.Number):this.consume(Li.Number)}const G1e="AnPlusB",X1e={a:[String,null],b:[String,null]};function Y1e(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===Li.Number)cd.call(this,Z1e),n=this.consume(Li.Number);else if(this.tokenType===Li.Ident&&this.cmpChar(this.tokenStart,ss))switch(e="-1",Ql.call(this,1,Ib),this.tokenEnd-this.tokenStart){case 2:this.next(),n=_2.call(this);break;case 3:Ql.call(this,2,ss),this.next(),this.skipSC(),cd.call(this,lf),n="-"+this.consume(Li.Number);break;default:Ql.call(this,2,ss),Bb.call(this,3,lf),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===Li.Ident||this.isDelim(lo)&&this.lookupType(1)===Li.Ident){let i=0;switch(e="1",this.isDelim(lo)&&(i=1,this.next()),Ql.call(this,0,Ib),this.tokenEnd-this.tokenStart){case 1:this.next(),n=_2.call(this);break;case 2:Ql.call(this,1,ss),this.next(),this.skipSC(),cd.call(this,lf),n="-"+this.consume(Li.Number);break;default:Ql.call(this,1,ss),Bb.call(this,2,lf),this.next(),n=this.substrToCursor(t+i+1)}}else if(this.tokenType===Li.Dimension){const i=this.charCodeAt(this.tokenStart),r=i===lo||i===ss;let s=this.tokenStart+r;for(;s<this.tokenEnd&&UB.isDigit(this.charCodeAt(s));s++);s===this.tokenStart+r&&this.error("Integer is expected",this.tokenStart+r),Ql.call(this,s-this.tokenStart,Ib),e=this.substring(t,s),s+1===this.tokenEnd?(this.next(),n=_2.call(this)):(Ql.call(this,s-this.tokenStart+1,ss),s+2===this.tokenEnd?(this.next(),this.skipSC(),cd.call(this,lf),n="-"+this.consume(Li.Number)):(Bb.call(this,s-this.tokenStart+2,lf),this.next(),n=this.substrToCursor(s+1)))}else this.error();return e!==null&&e.charCodeAt(0)===lo&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===lo&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function K1e(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}gh.generate=K1e;gh.name=G1e;gh.parse=Y1e;gh.structure=X1e;var Vf={};const co=ke;function N9(t){return this.Raw(t,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function J1e(){for(let t=1,e;e=this.lookupType(t);t++){if(e===co.RightCurlyBracket)return!0;if(e===co.LeftCurlyBracket||e===co.AtKeyword)return!1}return!1}const e0e="Atrule",t0e="atrule",n0e={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function i0e(t=!1){const e=this.tokenStart;let n,i,r=null,s=null;switch(this.eat(co.AtKeyword),n=this.substrToCursor(e+1),i=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==co.LeftCurlyBracket&&this.tokenType!==co.Semicolon&&(this.parseAtrulePrelude?r=this.parseWithFallback(this.AtrulePrelude.bind(this,n,t),N9):r=N9.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case co.Semicolon:this.next();break;case co.LeftCurlyBracket:hasOwnProperty.call(this.atrule,i)&&typeof this.atrule[i].block=="function"?s=this.atrule[i].block.call(this,t):s=this.Block(J1e.call(this));break}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:n,prelude:r,block:s}}function r0e(t){this.token(co.AtKeyword,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(co.Semicolon,";")}Vf.generate=r0e;Vf.name=e0e;Vf.parse=i0e;Vf.structure=n0e;Vf.walkContext=t0e;var Hf={};const L9=ke,s0e="AtrulePrelude",a0e="atrulePrelude",o0e={children:[[]]};function l0e(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==L9.LeftCurlyBracket&&this.tokenType!==L9.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function c0e(t){this.children(t)}Hf.generate=c0e;Hf.name=s0e;Hf.parse=l0e;Hf.structure=o0e;Hf.walkContext=a0e;var vh={};const Ws=ke,f0e=36,VB=42,Fb=61,u0e=94,K_=124,d0e=126;function h0e(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(VB)?(e=!0,this.next()):this.isDelim(K_)||this.eat(Ws.Ident),this.isDelim(K_)?this.charCodeAt(this.tokenStart+1)!==Fb?(this.next(),this.eat(Ws.Ident)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function p0e(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==Fb&&e!==d0e&&e!==u0e&&e!==f0e&&e!==VB&&e!==K_&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==Fb&&(this.isDelim(Fb)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const m0e="AttributeSelector",g0e={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function v0e(){const t=this.tokenStart;let e,n=null,i=null,r=null;return this.eat(Ws.LeftSquareBracket),this.skipSC(),e=h0e.call(this),this.skipSC(),this.tokenType!==Ws.RightSquareBracket&&(this.tokenType!==Ws.Ident&&(n=p0e.call(this),this.skipSC(),i=this.tokenType===Ws.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===Ws.Ident&&(r=this.consume(Ws.Ident),this.skipSC())),this.eat(Ws.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:i,flags:r}}function b0e(t){this.token(Ws.Delim,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(Ws.Ident,t.flags),this.token(Ws.Delim,"]")}vh.generate=b0e;vh.name=m0e;vh.parse=v0e;vh.structure=g0e;var Zf={};const va=ke,y0e=38;function HB(t){return this.Raw(t,null,!0)}function j9(){return this.parseWithFallback(this.Rule,HB)}function I9(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}function w0e(){if(this.tokenType===va.Semicolon)return I9.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,I9);return this.tokenType===va.Semicolon&&this.next(),t}const k0e="Block",O0e="block",x0e={children:[["Atrule","Rule","Declaration"]]};function S0e(t){const e=t?w0e:j9,n=this.tokenStart;let i=this.createList();this.eat(va.LeftCurlyBracket);e:for(;!this.eof;)switch(this.tokenType){case va.RightCurlyBracket:break e;case va.WhiteSpace:case va.Comment:this.next();break;case va.AtKeyword:i.push(this.parseWithFallback(this.Atrule.bind(this,t),HB));break;default:t&&this.isDelim(y0e)?i.push(j9.call(this)):i.push(e.call(this))}return this.eof||this.eat(va.RightCurlyBracket),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:i}}function _0e(t){this.token(va.LeftCurlyBracket,"{"),this.children(t,(e=>{e.type==="Declaration"&&this.token(va.Semicolon,";")})),this.token(va.RightCurlyBracket,"}")}Zf.generate=_0e;Zf.name=k0e;Zf.parse=S0e;Zf.structure=x0e;Zf.walkContext=O0e;var bh={};const qy=ke,C0e="Brackets",$0e={children:[[]]};function P0e(t,e){const n=this.tokenStart;let i=null;return this.eat(qy.LeftSquareBracket),i=t.call(this,e),this.eof||this.eat(qy.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:i}}function T0e(t){this.token(qy.Delim,"["),this.children(t),this.token(qy.Delim,"]")}bh.generate=T0e;bh.name=C0e;bh.parse=P0e;bh.structure=$0e;var yh={};const ZB=ke,A0e="CDC",E0e=[];function R0e(){const t=this.tokenStart;return this.eat(ZB.CDC),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function D0e(){this.token(ZB.CDC,"-->")}yh.generate=D0e;yh.name=A0e;yh.parse=R0e;yh.structure=E0e;var wh={};const GB=ke,M0e="CDO",N0e=[];function L0e(){const t=this.tokenStart;return this.eat(GB.CDO),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function j0e(){this.token(GB.CDO,"<!--")}wh.generate=j0e;wh.name=M0e;wh.parse=L0e;wh.structure=N0e;var kh={};const J_=ke,I0e=46,B0e="ClassSelector",F0e={name:String};function Q0e(){return this.eatDelim(I0e),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(J_.Ident)}}function z0e(t){this.token(J_.Delim,"."),this.token(J_.Ident,t.name)}kh.generate=z0e;kh.name=B0e;kh.parse=Q0e;kh.structure=F0e;var Oh={};const B9=ke,q0e=43,F9=47,W0e=62,U0e=126,V0e="Combinator",H0e={name:String};function Z0e(){const t=this.tokenStart;let e;switch(this.tokenType){case B9.WhiteSpace:e=" ";break;case B9.Delim:switch(this.charCodeAt(this.tokenStart)){case W0e:case q0e:case U0e:this.next();break;case F9:this.next(),this.eatIdent("deep"),this.eatDelim(F9);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function G0e(t){this.tokenize(t.name)}Oh.generate=G0e;Oh.name=V0e;Oh.parse=Z0e;Oh.structure=H0e;var xh={};const XB=ke,X0e=42,Y0e=47,K0e="Comment",J0e={value:String};function eve(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(XB.Comment),e-t+2>=2&&this.charCodeAt(e-2)===X0e&&this.charCodeAt(e-1)===Y0e&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function tve(t){this.token(XB.Comment,"/*"+t.value+"*/")}xh.generate=tve;xh.name=K0e;xh.parse=eve;xh.structure=J0e;var Gf={};const nve=Uf,Rr=ke,YB=33,ive=35,rve=36,sve=38,ave=42,ove=43,Q9=47;function lve(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!0)}function cve(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!1)}function fve(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==Rr.Semicolon&&this.isDelim(YB)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const uve="Declaration",dve="declaration",hve={important:[Boolean,String],property:String,value:["Value","Raw"]};function pve(){const t=this.tokenStart,e=this.tokenIndex,n=gve.call(this),i=nve.isCustomProperty(n),r=i?this.parseCustomProperty:this.parseValue,s=i?cve:lve;let a=!1,o;this.skipSC(),this.eat(Rr.Colon);const l=this.tokenIndex;if(i||this.skipSC(),r?o=this.parseWithFallback(fve,s):o=s.call(this,this.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty){for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Rr.WhiteSpace){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(YB)&&(a=vve.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Rr.Semicolon&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:a,property:n,value:o}}function mve(t){this.token(Rr.Ident,t.property),this.token(Rr.Colon,":"),this.node(t.value),t.important&&(this.token(Rr.Delim,"!"),this.token(Rr.Ident,t.important===!0?"important":t.important))}function gve(){const t=this.tokenStart;if(this.tokenType===Rr.Delim)switch(this.charCodeAt(this.tokenStart)){case ave:case rve:case ove:case ive:case sve:this.next();break;case Q9:this.next(),this.isDelim(Q9)&&this.next();break}return this.tokenType===Rr.Hash?this.eat(Rr.Hash):this.eat(Rr.Ident),this.substrToCursor(t)}function vve(){this.eat(Rr.Delim),this.skipSC();const t=this.consume(Rr.Ident);return t==="important"?!0:t}Gf.generate=mve;Gf.name=uve;Gf.parse=pve;Gf.structure=hve;Gf.walkContext=dve;var Sh={};const zm=ke,bve=38;function C2(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}const yve="DeclarationList",wve={children:[["Declaration","Atrule","Rule"]]};function kve(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case zm.WhiteSpace:case zm.Comment:case zm.Semicolon:this.next();break;case zm.AtKeyword:t.push(this.parseWithFallback(this.Atrule.bind(this,!0),C2));break;default:this.isDelim(bve)?t.push(this.parseWithFallback(this.Rule,C2)):t.push(this.parseWithFallback(this.Declaration,C2))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function Ove(t){this.children(t,(e=>{e.type==="Declaration"&&this.token(zm.Semicolon,";")}))}Sh.generate=Ove;Sh.name=yve;Sh.parse=kve;Sh.structure=wve;var _h={};const KB=ke,xve="Dimension",Sve={value:String,unit:String};function _ve(){const t=this.tokenStart,e=this.consumeNumber(KB.Dimension);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function Cve(t){this.token(KB.Dimension,t.value+t.unit)}_h.generate=Cve;_h.name=xve;_h.parse=_ve;_h.structure=Sve;var Xf={};const e3=ke,$ve="Function",Pve="function",Tve={name:String,children:[[]]};function Ave(t,e){const n=this.tokenStart,i=this.consumeFunctionName(),r=i.toLowerCase();let s;return s=e.hasOwnProperty(r)?e[r].call(this,e):t.call(this,e),this.eof||this.eat(e3.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:i,children:s}}function Eve(t){this.token(e3.Function,t.name+"("),this.children(t),this.token(e3.RightParenthesis,")")}Xf.generate=Eve;Xf.name=$ve;Xf.parse=Ave;Xf.structure=Tve;Xf.walkContext=Pve;var Yf={};const JB=ke,Rve="XXX",Dve="Hash",Mve={value:String};function Nve(){const t=this.tokenStart;return this.eat(JB.Hash),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function Lve(t){this.token(JB.Hash,"#"+t.value)}Yf.generate=Lve;Yf.name=Dve;Yf.parse=Nve;Yf.structure=Mve;Yf.xxx=Rve;var Ch={};const eF=ke,jve="Identifier",Ive={name:String};function Bve(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(eF.Ident)}}function Fve(t){this.token(eF.Ident,t.name)}Ch.generate=Fve;Ch.name=jve;Ch.parse=Bve;Ch.structure=Ive;var $h={};const tF=ke,Qve="IdSelector",zve={name:String};function qve(){const t=this.tokenStart;return this.eat(tF.Hash),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function Wve(t){this.token(tF.Delim,"#"+t.name)}$h.generate=Wve;$h.name=Qve;$h.parse=qve;$h.structure=zve;var Ph={};const ns=ke,Uve="MediaFeature",Vve={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Hve(){const t=this.tokenStart;let e,n=null;if(this.eat(ns.LeftParenthesis),this.skipSC(),e=this.consume(ns.Ident),this.skipSC(),this.tokenType!==ns.RightParenthesis){switch(this.eat(ns.Colon),this.skipSC(),this.tokenType){case ns.Number:this.lookupNonWSType(1)===ns.Delim?n=this.Ratio():n=this.Number();break;case ns.Dimension:n=this.Dimension();break;case ns.Ident:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(ns.RightParenthesis),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function Zve(t){this.token(ns.LeftParenthesis,"("),this.token(ns.Ident,t.name),t.value!==null&&(this.token(ns.Colon,":"),this.node(t.value)),this.token(ns.RightParenthesis,")")}Ph.generate=Zve;Ph.name=Uve;Ph.parse=Hve;Ph.structure=Vve;var Th={};const Pv=ke,Gve="MediaQuery",Xve={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Yve(){const t=this.createList();let e=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Pv.Comment:case Pv.WhiteSpace:this.next();continue;case Pv.Ident:e=this.Identifier();break;case Pv.LeftParenthesis:e=this.MediaFeature();break;default:break e}t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}}function Kve(t){this.children(t)}Th.generate=Kve;Th.name=Gve;Th.parse=Yve;Th.structure=Xve;var Ah={};const nF=ke,Jve="MediaQueryList",ebe={children:[["MediaQuery"]]};function tbe(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===nF.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function nbe(t){this.children(t,(()=>this.token(nF.Comma,",")))}Ah.generate=nbe;Ah.name=Jve;Ah.parse=tbe;Ah.structure=ebe;var Eh={};const ibe=ke,rbe=38,sbe="NestingSelector",abe={};function obe(){const t=this.tokenStart;return this.eatDelim(rbe),{type:"NestingSelector",loc:this.getLocation(t,this.tokenStart)}}function lbe(){this.token(ibe.Delim,"&")}Eh.generate=lbe;Eh.name=sbe;Eh.parse=obe;Eh.structure=abe;var Rh={};const cbe=ke,fbe="Nth",ube={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function dbe(){this.skipSC();const t=this.tokenStart;let e=t,n=null,i;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?i=this.Identifier():i=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:i,selector:n}}function hbe(t){this.node(t.nth),t.selector!==null&&(this.token(cbe.Ident,"of"),this.node(t.selector))}Rh.generate=hbe;Rh.name=fbe;Rh.parse=dbe;Rh.structure=ube;var Dh={};const iF=ke,pbe="Number",mbe={value:String};function gbe(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(iF.Number)}}function vbe(t){this.token(iF.Number,t.value)}Dh.generate=vbe;Dh.name=pbe;Dh.parse=gbe;Dh.structure=mbe;var Mh={};const bbe="Operator",ybe={value:String};function wbe(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function kbe(t){this.tokenize(t.value)}Mh.generate=kbe;Mh.name=bbe;Mh.parse=wbe;Mh.structure=ybe;var Nh={};const Wy=ke,Obe="Parentheses",xbe={children:[[]]};function Sbe(t,e){const n=this.tokenStart;let i=null;return this.eat(Wy.LeftParenthesis),i=t.call(this,e),this.eof||this.eat(Wy.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:i}}function _be(t){this.token(Wy.LeftParenthesis,"("),this.children(t),this.token(Wy.RightParenthesis,")")}Nh.generate=_be;Nh.name=Obe;Nh.parse=Sbe;Nh.structure=xbe;var Lh={};const rF=ke,Cbe="Percentage",$be={value:String};function Pbe(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(rF.Percentage)}}function Tbe(t){this.token(rF.Percentage,t.value+"%")}Lh.generate=Tbe;Lh.name=Cbe;Lh.parse=Pbe;Lh.structure=$be;var Kf={};const cc=ke,Abe="PseudoClassSelector",Ebe="function",Rbe={name:String,children:[["Raw"],null]};function Dbe(){const t=this.tokenStart;let e=null,n,i;return this.eat(cc.Colon),this.tokenType===cc.Function?(n=this.consumeFunctionName(),i=n.toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),e=this.pseudo[i].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(this.tokenIndex,null,!1))),this.eat(cc.RightParenthesis)):n=this.consume(cc.Ident),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function Mbe(t){this.token(cc.Colon,":"),t.children===null?this.token(cc.Ident,t.name):(this.token(cc.Function,t.name+"("),this.children(t),this.token(cc.RightParenthesis,")"))}Kf.generate=Mbe;Kf.name=Abe;Kf.parse=Dbe;Kf.structure=Rbe;Kf.walkContext=Ebe;var Jf={};const fo=ke,Nbe="PseudoElementSelector",Lbe="function",jbe={name:String,children:[["Raw"],null]};function Ibe(){const t=this.tokenStart;let e=null,n,i;return this.eat(fo.Colon),this.eat(fo.Colon),this.tokenType===fo.Function?(n=this.consumeFunctionName(),i=n.toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),e=this.pseudo[i].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(this.tokenIndex,null,!1))),this.eat(fo.RightParenthesis)):n=this.consume(fo.Ident),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function Bbe(t){this.token(fo.Colon,":"),this.token(fo.Colon,":"),t.children===null?this.token(fo.Ident,t.name):(this.token(fo.Function,t.name+"("),this.children(t),this.token(fo.RightParenthesis,")"))}Jf.generate=Bbe;Jf.name=Nbe;Jf.parse=Ibe;Jf.structure=jbe;Jf.walkContext=Lbe;var jh={};const Qb=ke,Fbe=zt,Qbe=47,zbe=46;function z9(){this.skipSC();const t=this.consume(Qb.Number);for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);!Fbe.isDigit(n)&&n!==zbe&&this.error("Unsigned number is expected",this.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.tokenStart-t.length),t}const qbe="Ratio",Wbe={left:String,right:String};function Ube(){const t=this.tokenStart,e=z9.call(this);let n;return this.skipSC(),this.eatDelim(Qbe),n=z9.call(this),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function Vbe(t){this.token(Qb.Number,t.left),this.token(Qb.Delim,"/"),this.token(Qb.Number,t.right)}jh.generate=Vbe;jh.name=qbe;jh.parse=Ube;jh.structure=Wbe;var Ih={};const Hbe=ke;function Zbe(){return this.tokenIndex>0&&this.lookupType(-1)===Hbe.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Gbe="Raw",Xbe={value:String};function Ybe(t,e,n){const i=this.getTokenStart(t);let r;return this.skipUntilBalanced(t,e||this.consumeUntilBalanceEnd),n&&this.tokenStart>i?r=Zbe.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.substring(i,r)}}function Kbe(t){this.tokenize(t.value)}Ih.generate=Kbe;Ih.name=Gbe;Ih.parse=Ybe;Ih.structure=Xbe;var eu={};const Jbe=ke;function q9(t){return this.Raw(t,this.consumeUntilLeftCurlyBracket,!0)}function eye(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Jbe.LeftCurlyBracket&&this.error(),t}const tye="Rule",nye="rule",iye={prelude:["SelectorList","Raw"],block:["Block"]};function rye(){const t=this.tokenIndex,e=this.tokenStart;let n,i;return this.parseRulePrelude?n=this.parseWithFallback(eye,q9):n=q9.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:i}}function sye(t){this.node(t.prelude),this.node(t.block)}eu.generate=sye;eu.name=tye;eu.parse=rye;eu.structure=iye;eu.walkContext=nye;var Bh={};const aye="Selector",oye={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function lye(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function cye(t){this.children(t)}Bh.generate=cye;Bh.name=aye;Bh.parse=lye;Bh.structure=oye;var tu={};const sF=ke,fye="SelectorList",uye="selector",dye={children:[["Selector","Raw"]]};function hye(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===sF.Comma){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function pye(t){this.children(t,(()=>this.token(sF.Comma,",")))}tu.generate=pye;tu.name=fye;tu.parse=hye;tu.structure=dye;tu.walkContext=uye;var Fh={},L1={};const t3=zt,W9=ci,n3=92,aF=34,oF=39;function mye(t){const e=t.length,n=t.charCodeAt(0),i=n===aF||n===oF?1:0,r=i===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let s="";for(let a=i;a<=r;a++){let o=t.charCodeAt(a);if(o===n3){if(a===r){a!==e-1&&(s=t.substr(a+1));break}if(o=t.charCodeAt(++a),t3.isValidEscape(n3,o)){const l=a-1,c=W9.consumeEscaped(t,l);a=c-1,s+=W9.decodeEscaped(t.substring(l+1,c))}else o===13&&t.charCodeAt(a+1)===10&&a++}else s+=t[a]}return s}function gye(t,e){const n=e?"'":'"',i=e?oF:aF;let r="",s=!1;for(let a=0;a<t.length;a++){const o=t.charCodeAt(a);if(o===0){r+="<22>";continue}if(o<=31||o===127){r+="\\"+o.toString(16),s=!0;continue}o===i||o===n3?(r+="\\"+t.charAt(a),s=!1):(s&&(t3.isHexDigit(o)||t3.isWhiteSpace(o))&&(r+=" "),r+=t.charAt(a),s=!1)}return n+r+n}L1.decode=mye;L1.encode=gye;const lF=L1,cF=ke,vye="String",bye={value:String};function yye(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:lF.decode(this.consume(cF.String))}}function wye(t){this.token(cF.String,lF.encode(t.value))}Fh.generate=wye;Fh.name=vye;Fh.parse=yye;Fh.structure=bye;var nu={};const om=ke,kye=33;function U9(t){return this.Raw(t,null,!1)}const Oye="StyleSheet",xye="stylesheet",Sye={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function _ye(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case om.WhiteSpace:this.next();continue;case om.Comment:if(this.charCodeAt(this.tokenStart+2)!==kye){this.next();continue}n=this.Comment();break;case om.CDO:n=this.CDO();break;case om.CDC:n=this.CDC();break;case om.AtKeyword:n=this.parseWithFallback(this.Atrule,U9);break;default:n=this.parseWithFallback(this.Rule,U9)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function Cye(t){this.children(t)}nu.generate=Cye;nu.name=Oye;nu.parse=_ye;nu.structure=Sye;nu.walkContext=xye;var Qh={};const $ye=ke,Pye=42,V9=124;function $2(){this.tokenType!==$ye.Ident&&this.isDelim(Pye)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const Tye="TypeSelector",Aye={name:String};function Eye(){const t=this.tokenStart;return this.isDelim(V9)?(this.next(),$2.call(this)):($2.call(this),this.isDelim(V9)&&(this.next(),$2.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function Rye(t){this.tokenize(t.name)}Qh.generate=Rye;Qh.name=Tye;Qh.parse=Eye;Qh.structure=Aye;var zh={};const lm=ke,Dye=zt,fF=43,uF=45,i3=63;function qm(t,e){let n=0;for(let i=this.tokenStart+t;i<this.tokenEnd;i++){const r=this.charCodeAt(i);if(r===uF&&e&&n!==0)return qm.call(this,t+n+1,!1),-1;Dye.isHexDigit(r)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",i),++n>6&&this.error("Too many hex digits",i)}return this.next(),n}function Tv(t){let e=0;for(;this.isDelim(i3);)++e>t&&this.error("Too many question marks"),this.next()}function Mye(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===fF?"Plus sign":"Hyphen minus")+" is expected")}function Nye(){let t=0;switch(this.tokenType){case lm.Number:if(t=qm.call(this,1,!0),this.isDelim(i3)){Tv.call(this,6-t);break}if(this.tokenType===lm.Dimension||this.tokenType===lm.Number){Mye.call(this,uF),qm.call(this,1,!1);break}break;case lm.Dimension:t=qm.call(this,1,!0),t>0&&Tv.call(this,6-t);break;default:if(this.eatDelim(fF),this.tokenType===lm.Ident){t=qm.call(this,0,!0),t>0&&Tv.call(this,6-t);break}if(this.isDelim(i3)){this.next(),Tv.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Lye="UnicodeRange",jye={value:String};function Iye(){const t=this.tokenStart;return this.eatIdent("u"),Nye.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function Bye(t){this.tokenize(t.value)}zh.generate=Bye;zh.name=Lye;zh.parse=Iye;zh.structure=jye;var qh={},jk={};const zb=zt,H9=ci,Fye=32,r3=92,Qye=34,zye=39,qye=40,dF=41;function Wye(t){const e=t.length;let n=4,i=t.charCodeAt(e-1)===dF?e-2:e-1,r="";for(;n<i&&zb.isWhiteSpace(t.charCodeAt(n));)n++;for(;n<i&&zb.isWhiteSpace(t.charCodeAt(i));)i--;for(let s=n;s<=i;s++){let a=t.charCodeAt(s);if(a===r3){if(s===i){s!==e-1&&(r=t.substr(s+1));break}if(a=t.charCodeAt(++s),zb.isValidEscape(r3,a)){const o=s-1,l=H9.consumeEscaped(t,o);s=l-1,r+=H9.decodeEscaped(t.substring(o+1,l))}else a===13&&t.charCodeAt(s+1)===10&&s++}else r+=t[s]}return r}function Uye(t){let e="",n=!1;for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);if(r===0){e+="<22>";continue}if(r<=31||r===127){e+="\\"+r.toString(16),n=!0;continue}r===Fye||r===r3||r===Qye||r===zye||r===qye||r===dF?(e+="\\"+t.charAt(i),n=!1):(n&&zb.isHexDigit(r)&&(e+=" "),e+=t.charAt(i),n=!1)}return"url("+e+")"}jk.decode=Wye;jk.encode=Uye;const hF=jk,Vye=L1,cf=ke,Hye="Url",Zye={value:String};function Gye(){const t=this.tokenStart;let e;switch(this.tokenType){case cf.Url:e=hF.decode(this.consume(cf.Url));break;case cf.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(cf.Function),this.skipSC(),e=Vye.decode(this.consume(cf.String)),this.skipSC(),this.eof||this.eat(cf.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function Xye(t){this.token(cf.Url,hF.encode(t.value))}qh.generate=Xye;qh.name=Hye;qh.parse=Gye;qh.structure=Zye;var Wh={};const Yye="Value",Kye={children:[[]]};function Jye(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function ewe(t){this.children(t)}Wh.generate=ewe;Wh.name=Yye;Wh.parse=Jye;Wh.structure=Kye;var Uh={};const pF=ke,twe=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),nwe="WhiteSpace",iwe={value:String};function rwe(){return this.eat(pF.WhiteSpace),twe}function swe(t){this.token(pF.WhiteSpace,t.value)}Uh.generate=swe;Uh.name=nwe;Uh.parse=rwe;Uh.structure=iwe;const awe=gh,owe=Vf,lwe=Hf,cwe=vh,fwe=Zf,uwe=bh,dwe=yh,hwe=wh,pwe=kh,mwe=Oh,gwe=xh,vwe=Gf,bwe=Sh,ywe=_h,wwe=Xf,kwe=Yf,Owe=Ch,xwe=$h,Swe=Ph,_we=Th,Cwe=Ah,$we=Eh,Pwe=Rh,Twe=Dh,Awe=Mh,Ewe=Nh,Rwe=Lh,Dwe=Kf,Mwe=Jf,Nwe=jh,Lwe=Ih,jwe=eu,Iwe=Bh,Bwe=tu,Fwe=Fh,Qwe=nu,zwe=Qh,qwe=zh,Wwe=qh,Uwe=Wh,Vwe=Uh;ut.AnPlusB=awe;ut.Atrule=owe;ut.AtrulePrelude=lwe;ut.AttributeSelector=cwe;ut.Block=fwe;ut.Brackets=uwe;ut.CDC=dwe;ut.CDO=hwe;ut.ClassSelector=pwe;ut.Combinator=mwe;ut.Comment=gwe;ut.Declaration=vwe;ut.DeclarationList=bwe;ut.Dimension=ywe;ut.Function=wwe;ut.Hash=kwe;ut.Identifier=Owe;ut.IdSelector=xwe;ut.MediaFeature=Swe;ut.MediaQuery=_we;ut.MediaQueryList=Cwe;ut.NestingSelector=$we;ut.Nth=Pwe;ut.Number=Twe;ut.Operator=Awe;ut.Parentheses=Ewe;ut.Percentage=Rwe;ut.PseudoClassSelector=Dwe;ut.PseudoElementSelector=Mwe;ut.Ratio=Nwe;ut.Raw=Lwe;ut.Rule=jwe;ut.Selector=Iwe;ut.SelectorList=Bwe;ut.String=Fwe;ut.StyleSheet=Qwe;ut.TypeSelector=zwe;ut.UnicodeRange=qwe;ut.Url=Wwe;ut.Value=Uwe;ut.WhiteSpace=Vwe;const Hwe=H1e,Zwe=ut,Gwe={generic:!0,...Hwe,node:Zwe};var Xwe=Gwe,Ik={};const Ds=ke,Ywe=35,Kwe=42,Z9=43,Jwe=45,eke=47,tke=117;function nke(t){switch(this.tokenType){case Ds.Hash:return this.Hash();case Ds.Comma:return this.Operator();case Ds.LeftParenthesis:return this.Parentheses(this.readSequence,t.recognizer);case Ds.LeftSquareBracket:return this.Brackets(this.readSequence,t.recognizer);case Ds.String:return this.String();case Ds.Dimension:return this.Dimension();case Ds.Percentage:return this.Percentage();case Ds.Number:return this.Number();case Ds.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,t.recognizer);case Ds.Url:return this.Url();case Ds.Ident:return this.cmpChar(this.tokenStart,tke)&&this.cmpChar(this.tokenStart+1,Z9)?this.UnicodeRange():this.Identifier();case Ds.Delim:{const e=this.charCodeAt(this.tokenStart);if(e===eke||e===Kwe||e===Z9||e===Jwe)return this.Operator();e===Ywe&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var mF=nke;const ike=mF,rke={getNode:ike};var ske=rke;const Yo=ke,ake=35,oke=38,lke=42,cke=43,fke=47,G9=46,uke=62,dke=124,hke=126;function pke(t,e){e.last!==null&&e.last.type!=="Combinator"&&t!==null&&t.type!=="Combinator"&&e.push({type:"Combinator",loc:null,name:" "})}function mke(){switch(this.tokenType){case Yo.LeftSquareBracket:return this.AttributeSelector();case Yo.Hash:return this.IdSelector();case Yo.Colon:return this.lookupType(1)===Yo.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case Yo.Ident:return this.TypeSelector();case Yo.Number:case Yo.Percentage:return this.Percentage();case Yo.Dimension:this.charCodeAt(this.tokenStart)===G9&&this.error("Identifier is expected",this.tokenStart+1);break;case Yo.Delim:{switch(this.charCodeAt(this.tokenStart)){case cke:case uke:case hke:case fke:return this.Combinator();case G9:return this.ClassSelector();case lke:case dke:return this.TypeSelector();case ake:return this.IdSelector();case oke:return this.NestingSelector()}break}}}const gke={onWhiteSpace:pke,getNode:mke};var vke=gke;function bke(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}var yke=bke;const X9=ke;function wke(){const t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),this.tokenType===X9.Comma){t.push(this.Operator());const e=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let i=e-this.tokenIndex;i<=0;i++)if(this.lookupType(i)===X9.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(n)}return t}var kke=wke;const Oke=mF,xke=yke,Ske=kke;function Y9(t){return t!==null&&t.type==="Operator"&&(t.value[t.value.length-1]==="-"||t.value[t.value.length-1]==="+")}const _ke={getNode:Oke,onWhiteSpace(t,e){Y9(t)&&(t.value=" "+t.value),Y9(e.last)&&(e.last.value+=" ")},expression:xke,var:Ske};var Cke=_ke;const $ke=ske,Pke=vke,Tke=Cke;Ik.AtrulePrelude=$ke;Ik.Selector=Pke;Ik.Value=Tke;const Ake={parse:{prelude:null,block(){return this.Block(!0)}}};var Eke=Ake;const cm=ke,Rke={parse:{prelude(){const t=this.createList();switch(this.skipSC(),this.tokenType){case cm.String:t.push(this.String());break;case cm.Url:case cm.Function:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===cm.Ident||this.lookupNonWSType(0)===cm.LeftParenthesis)&&t.push(this.MediaQueryList()),t},block:null}};var Dke=Rke;const Mke={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(t=!1){return this.Block(t)}}};var Nke=Mke;const Lke={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};var jke=Lke;const Ike={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};var Bke=Ike;const mf=ke;function Fke(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function Qke(){return this.skipSC(),this.tokenType===mf.Ident&&this.lookupNonWSType(1)===mf.Colon?this.createSingleNodeList(this.Declaration()):gF.call(this)}function gF(){const t=this.createList();let e;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case mf.Comment:case mf.WhiteSpace:this.next();continue;case mf.Function:e=this.Function(Fke,this.scope.AtrulePrelude);break;case mf.Ident:e=this.Identifier();break;case mf.LeftParenthesis:e=this.Parentheses(Qke,this.scope.AtrulePrelude);break;default:break e}t.push(e)}return t}const zke={parse:{prelude(){const t=gF.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block(t=!1){return this.Block(t)}}};var qke=zke;const Wke=Eke,Uke=Dke,Vke=Nke,Hke=jke,Zke=Bke,Gke=qke,Xke={"font-face":Wke,import:Uke,media:Vke,nest:Hke,page:Zke,supports:Gke};var Yke=Xke;const Jc={parse(){return this.createSingleNodeList(this.SelectorList())}},P2={parse(){return this.createSingleNodeList(this.Selector())}},K9={parse(){return this.createSingleNodeList(this.Identifier())}},Av={parse(){return this.createSingleNodeList(this.Nth())}},Kke={dir:K9,has:Jc,lang:K9,matches:Jc,is:Jc,"-moz-any":Jc,"-webkit-any":Jc,where:Jc,not:Jc,"nth-child":Av,"nth-last-child":Av,"nth-last-of-type":Av,"nth-of-type":Av,slotted:P2,host:P2,"host-context":P2};var Jke=Kke,ht={};const eOe=gh,tOe=Vf,nOe=Hf,iOe=vh,rOe=Zf,sOe=bh,aOe=yh,oOe=wh,lOe=kh,cOe=Oh,fOe=xh,uOe=Gf,dOe=Sh,hOe=_h,pOe=Xf,mOe=Yf,gOe=Ch,vOe=$h,bOe=Ph,yOe=Th,wOe=Ah,kOe=Eh,OOe=Rh,xOe=Dh,SOe=Mh,_Oe=Nh,COe=Lh,$Oe=Kf,POe=Jf,TOe=jh,AOe=Ih,EOe=eu,ROe=Bh,DOe=tu,MOe=Fh,NOe=nu,LOe=Qh,jOe=zh,IOe=qh,BOe=Wh,FOe=Uh;ht.AnPlusB=eOe.parse;ht.Atrule=tOe.parse;ht.AtrulePrelude=nOe.parse;ht.AttributeSelector=iOe.parse;ht.Block=rOe.parse;ht.Brackets=sOe.parse;ht.CDC=aOe.parse;ht.CDO=oOe.parse;ht.ClassSelector=lOe.parse;ht.Combinator=cOe.parse;ht.Comment=fOe.parse;ht.Declaration=uOe.parse;ht.DeclarationList=dOe.parse;ht.Dimension=hOe.parse;ht.Function=pOe.parse;ht.Hash=mOe.parse;ht.Identifier=gOe.parse;ht.IdSelector=vOe.parse;ht.MediaFeature=bOe.parse;ht.MediaQuery=yOe.parse;ht.MediaQueryList=wOe.parse;ht.NestingSelector=kOe.parse;ht.Nth=OOe.parse;ht.Number=xOe.parse;ht.Operator=SOe.parse;ht.Parentheses=_Oe.parse;ht.Percentage=COe.parse;ht.PseudoClassSelector=$Oe.parse;ht.PseudoElementSelector=POe.parse;ht.Ratio=TOe.parse;ht.Raw=AOe.parse;ht.Rule=EOe.parse;ht.Selector=ROe.parse;ht.SelectorList=DOe.parse;ht.String=MOe.parse;ht.StyleSheet=NOe.parse;ht.TypeSelector=LOe.parse;ht.UnicodeRange=jOe.parse;ht.Url=IOe.parse;ht.Value=BOe.parse;ht.WhiteSpace=FOe.parse;const QOe=Ik,zOe=Yke,qOe=Jke,WOe=ht,UOe={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:QOe,atrule:zOe,pseudo:qOe,node:WOe};var VOe=UOe;const HOe=ut,ZOe={node:HOe};var GOe=ZOe;const XOe=WB,YOe=Xwe,KOe=VOe,JOe=GOe,exe=XOe({...YOe,...KOe,...JOe});var txe=exe,nxe="2.3.1",j1={};const ixe=K4,rxe=Rk,sxe=Nk,axe=cP;j1.SyntaxError=ixe.SyntaxError;j1.generate=rxe.generate;j1.parse=sxe.parse;j1.walk=axe.walk;var vF={};const oxe=Wf;function s3(t){const e={};for(const n in t){let i=t[n];i&&(Array.isArray(i)||i instanceof oxe.List?i=i.map(s3):i.constructor===Object&&(i=s3(i))),e[n]=i}return e}vF.clone=s3;var fP={};const bF=zt,J9=ci,eR=92;function lxe(t){const e=t.length-1;let n="";for(let i=0;i<t.length;i++){let r=t.charCodeAt(i);if(r===eR){if(i===e)break;if(r=t.charCodeAt(++i),bF.isValidEscape(eR,r)){const s=i-1,a=J9.consumeEscaped(t,s);i=a-1,n+=J9.decodeEscaped(t.substring(s+1,a))}else r===13&&t.charCodeAt(i+1)===10&&i++}else n+=t[i]}return n}function cxe(t){let e="";if(t.length===1&&t.charCodeAt(0)===45)return"\\-";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(i===0){e+="<22>";continue}if(i<=31||i===127||i>=48&&i<=57&&(n===0||n===1&&t.charCodeAt(0)===45)){e+="\\"+i.toString(16)+" ";continue}bF.isName(i)?e+=t.charAt(n):e+="\\"+t.charAt(n)}return e}fP.decode=lxe;fP.encode=cxe;const fxe=txe,uxe=nxe,dxe=WB,hxe=Wf,pxe=W4,mxe=j1,gxe=vF,Bk=Uf,vxe=fP,bxe=L1,yxe=jk,wxe=ke,kxe=$k,Oxe=Pk,{tokenize:xxe,parse:Sxe,generate:_xe,lexer:Cxe,createLexer:$xe,walk:Pxe,find:Txe,findLast:Axe,findAll:Exe,toPlainObject:Rxe,fromPlainObject:Dxe,fork:Mxe}=fxe;Vt.version=uxe.version;Vt.createSyntax=dxe;Vt.List=hxe.List;Vt.Lexer=pxe.Lexer;Vt.definitionSyntax=mxe;Vt.clone=gxe.clone;Vt.isCustomProperty=Bk.isCustomProperty;Vt.keyword=Bk.keyword;Vt.property=Bk.property;Vt.vendorPrefix=Bk.vendorPrefix;Vt.ident=vxe;Vt.string=bxe;Vt.url=yxe;Vt.tokenTypes=wxe;Vt.tokenNames=kxe;Vt.TokenStream=Oxe.TokenStream;Vt.createLexer=$xe;Vt.find=Txe;Vt.findAll=Exe;Vt.findLast=Axe;Vt.fork=Mxe;Vt.fromPlainObject=Dxe;Vt.generate=_xe;Vt.lexer=Cxe;Vt.parse=Sxe;Vt.toPlainObject=Rxe;Vt.tokenize=xxe;Vt.walk=Pxe;var Nc={},Nxe="5.0.5",ys={},Ye={},Le={},Oe={};const Lxe=0,jxe=1,Ixe=2,Bxe=3,Fxe=4,Qxe=5,zxe=6,qxe=7,Wxe=8,Uxe=9,Vxe=10,Hxe=11,Zxe=12,Gxe=13,Xxe=14,Yxe=15,Kxe=16,Jxe=17,e2e=18,t2e=19,n2e=20,i2e=21,r2e=22,s2e=23,a2e=24,o2e=25;Oe.AtKeyword=Bxe;Oe.BadString=zxe;Oe.BadUrl=Wxe;Oe.CDC=Yxe;Oe.CDO=Xxe;Oe.Colon=Kxe;Oe.Comma=e2e;Oe.Comment=o2e;Oe.Delim=Uxe;Oe.Dimension=Zxe;Oe.EOF=Lxe;Oe.Function=Ixe;Oe.Hash=Fxe;Oe.Ident=jxe;Oe.LeftCurlyBracket=s2e;Oe.LeftParenthesis=i2e;Oe.LeftSquareBracket=t2e;Oe.Number=Vxe;Oe.Percentage=Hxe;Oe.RightCurlyBracket=a2e;Oe.RightParenthesis=r2e;Oe.RightSquareBracket=n2e;Oe.Semicolon=Jxe;Oe.String=Qxe;Oe.Url=qxe;Oe.WhiteSpace=Gxe;var qt={};const l2e=0;function fc(t){return t>=48&&t<=57}function c2e(t){return fc(t)||t>=65&&t<=70||t>=97&&t<=102}function yF(t){return t>=65&&t<=90}function wF(t){return t>=97&&t<=122}function kF(t){return yF(t)||wF(t)}function OF(t){return t>=128}function Bg(t){return kF(t)||OF(t)||t===95}function f2e(t){return Bg(t)||fc(t)||t===45}function xF(t){return t>=0&&t<=8||t===11||t>=14&&t<=31||t===127}function uP(t){return t===10||t===13||t===12}function SF(t){return uP(t)||t===32||t===9}function a3(t,e){return!(t!==92||uP(e)||e===l2e)}function u2e(t,e,n){return t===45?Bg(e)||e===45||a3(e,n):Bg(t)?!0:t===92?a3(t,e):!1}function d2e(t,e,n){return t===43||t===45?fc(e)?2:e===46&&fc(n)?3:0:t===46?fc(e)?2:0:fc(t)?1:0}function h2e(t){return t===65279||t===65534?1:0}const o3=new Array(128),_F=128,CF=130,$F=131,dP=132,PF=133;for(let t=0;t<o3.length;t++)o3[t]=SF(t)&&CF||fc(t)&&$F||Bg(t)&&dP||xF(t)&&PF||t||_F;function p2e(t){return t<128?o3[t]:dP}qt.DigitCategory=$F;qt.EofCategory=_F;qt.NameStartCategory=dP;qt.NonPrintableCategory=PF;qt.WhiteSpaceCategory=CF;qt.charCodeCategory=p2e;qt.isBOM=h2e;qt.isDigit=fc;qt.isHexDigit=c2e;qt.isIdentifierStart=u2e;qt.isLetter=kF;qt.isLowercaseLetter=wF;qt.isName=f2e;qt.isNameStart=Bg;qt.isNewline=uP;qt.isNonAscii=OF;qt.isNonPrintable=xF;qt.isNumberStart=d2e;qt.isUppercaseLetter=yF;qt.isValidEscape=a3;qt.isWhiteSpace=SF;var fi={};const dr=qt;function bd(t,e){return e<t.length?t.charCodeAt(e):0}function TF(t,e,n){return n===13&&bd(t,e+1)===10?2:1}function AF(t,e,n){let i=t.charCodeAt(e);return dr.isUppercaseLetter(i)&&(i=i|32),i===n}function m2e(t,e,n,i){if(n-e!==i.length||e<0||n>t.length)return!1;for(let r=e;r<n;r++){const s=i.charCodeAt(r-e);let a=t.charCodeAt(r);if(dr.isUppercaseLetter(a)&&(a=a|32),a!==s)return!1}return!0}function g2e(t,e){for(;e>=0&&dr.isWhiteSpace(t.charCodeAt(e));e--);return e+1}function v2e(t,e){for(;e<t.length&&dr.isWhiteSpace(t.charCodeAt(e));e++);return e}function qb(t,e){for(;e<t.length&&dr.isDigit(t.charCodeAt(e));e++);return e}function hP(t,e){if(e+=2,dr.isHexDigit(bd(t,e-1))){for(const i=Math.min(t.length,e+5);e<i&&dr.isHexDigit(bd(t,e));e++);const n=bd(t,e);dr.isWhiteSpace(n)&&(e+=TF(t,e,n))}return e}function b2e(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(!dr.isName(n)){if(dr.isValidEscape(n,bd(t,e+1))){e=hP(t,e)-1;continue}break}}return e}function y2e(t,e){let n=t.charCodeAt(e);if((n===43||n===45)&&(n=t.charCodeAt(e+=1)),dr.isDigit(n)&&(e=qb(t,e+1),n=t.charCodeAt(e)),n===46&&dr.isDigit(t.charCodeAt(e+1))&&(e+=2,e=qb(t,e)),AF(t,e,101)){let i=0;n=t.charCodeAt(e+1),(n===45||n===43)&&(i=1,n=t.charCodeAt(e+2)),dr.isDigit(n)&&(e=qb(t,e+1+i+1))}return e}function w2e(t,e){for(;e<t.length;e++){const n=t.charCodeAt(e);if(n===41){e++;break}dr.isValidEscape(n,bd(t,e+1))&&(e=hP(t,e))}return e}function k2e(t){if(t.length===1&&!dr.isHexDigit(t.charCodeAt(0)))return t[0];let e=parseInt(t,16);return(e===0||e>=55296&&e<=57343||e>1114111)&&(e=65533),String.fromCodePoint(e)}fi.cmpChar=AF;fi.cmpStr=m2e;fi.consumeBadUrlRemnants=w2e;fi.consumeEscaped=hP;fi.consumeName=b2e;fi.consumeNumber=y2e;fi.decodeEscaped=k2e;fi.findDecimalNumberEnd=qb;fi.findWhiteSpaceEnd=v2e;fi.findWhiteSpaceStart=g2e;fi.getNewlineLength=TF;const O2e=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];var Fk=O2e,pP={},mP={};const x2e=16*1024;function S2e(t=null,e){return t===null||t.length<e?new Uint32Array(Math.max(e+1024,x2e)):t}mP.adoptBuffer=S2e;const tR=mP,_2e=qt,nR=10,C2e=12,iR=13;function rR(t){const e=t.source,n=e.length,i=e.length>0?_2e.isBOM(e.charCodeAt(0)):0,r=tR.adoptBuffer(t.lines,n),s=tR.adoptBuffer(t.columns,n);let a=t.startLine,o=t.startColumn;for(let l=i;l<n;l++){const c=e.charCodeAt(l);r[l]=a,s[l]=o++,(c===nR||c===iR||c===C2e)&&(c===iR&&l+1<n&&e.charCodeAt(l+1)===nR&&(l++,r[l]=a,s[l]=o),a++,o=1)}r[n]=a,s[n]=o,t.lines=r,t.columns=s,t.computed=!0}class $2e{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,n=0,i=1,r=1){this.source=e,this.startOffset=n,this.startLine=i,this.startColumn=r,this.computed=!1}getLocation(e,n){return this.computed||rR(this),{source:n,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,n,i){return this.computed||rR(this),{source:i,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}pP.OffsetToLocation=$2e;var Qk={};const sR=mP,P2e=fi,T2e=Fk,mi=Oe,Ms=16777215,zl=24,A2e=new Map([[mi.Function,mi.RightParenthesis],[mi.LeftParenthesis,mi.RightParenthesis],[mi.LeftSquareBracket,mi.RightSquareBracket],[mi.LeftCurlyBracket,mi.RightCurlyBracket]]);class E2e{constructor(e,n){this.setSource(e,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",n=(()=>{})){e=String(e||"");const i=e.length,r=sR.adoptBuffer(this.offsetAndType,e.length+1),s=sR.adoptBuffer(this.balance,e.length+1);let a=0,o=0,l=0,c=-1;for(this.offsetAndType=null,this.balance=null,n(e,((f,u,h)=>{switch(f){default:s[a]=i;break;case o:{let m=l&Ms;for(l=s[m],o=l>>zl,s[a]=m,s[m++]=a;m<a;m++)s[m]===i&&(s[m]=a);break}case mi.LeftParenthesis:case mi.Function:case mi.LeftSquareBracket:case mi.LeftCurlyBracket:s[a]=l,o=A2e.get(f),l=o<<zl|a;break}r[a++]=f<<zl|h,c===-1&&(c=u)})),r[a]=mi.EOF<<zl|i,s[a]=i,s[i]=i;l!==0;){const f=l&Ms;l=s[f],s[f]=i}this.source=e,this.firstCharOffset=c===-1?0:c,this.tokenCount=a,this.offsetAndType=r,this.balance=s,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>zl:mi.EOF}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Ms:this.source.length}lookupValue(e,n){return e+=this.tokenIndex,e<this.tokenCount?P2e.cmpStr(this.source,this.offsetAndType[e-1]&Ms,this.offsetAndType[e]&Ms,n):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Ms:this.offsetAndType[this.tokenCount]&Ms:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,n){return n?this.lookupType(n)===mi.Delim&&this.source.charCodeAt(this.lookupOffset(n))===e:this.tokenType===mi.Delim&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let n=this.tokenIndex+e;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]&Ms,n=this.offsetAndType[n],this.tokenType=n>>zl,this.tokenEnd=n&Ms):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>zl,this.tokenEnd=e&Ms):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=mi.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===mi.WhiteSpace||this.tokenType===mi.Comment;)this.next()}skipUntilBalanced(e,n){let i=e,r,s;e:for(;i<this.tokenCount;i++){if(r=this.balance[i],r<e)break e;switch(s=i>0?this.offsetAndType[i-1]&Ms:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:i++;break e;default:this.balance[r]===i&&(i=r)}}this.skip(i-this.tokenIndex)}forEachToken(e){for(let n=0,i=this.firstCharOffset;n<this.tokenCount;n++){const r=i,s=this.offsetAndType[n],a=s&Ms,o=s>>zl;i=a,e(o,r,a,n)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((n,i,r,s)=>{e[s]={idx:s,type:T2e[n],chunk:this.source.substring(i,r),balance:this.balance[s]}})),e}}Qk.TokenStream=E2e;const Qe=Oe,at=qt,sn=fi,R2e=Fk,D2e=pP,M2e=Qk;function N2e(t,e){function n(u){return u<o?t.charCodeAt(u):0}function i(){if(c=sn.consumeNumber(t,c),at.isIdentifierStart(n(c),n(c+1),n(c+2))){f=Qe.Dimension,c=sn.consumeName(t,c);return}if(n(c)===37){f=Qe.Percentage,c++;return}f=Qe.Number}function r(){const u=c;if(c=sn.consumeName(t,c),sn.cmpStr(t,u,c,"url")&&n(c)===40){if(c=sn.findWhiteSpaceEnd(t,c+1),n(c)===34||n(c)===39){f=Qe.Function,c=u+4;return}a();return}if(n(c)===40){f=Qe.Function,c++;return}f=Qe.Ident}function s(u){for(u||(u=n(c++)),f=Qe.String;c<t.length;c++){const h=t.charCodeAt(c);switch(at.charCodeCategory(h)){case u:c++;return;case at.WhiteSpaceCategory:if(at.isNewline(h)){c+=sn.getNewlineLength(t,c,h),f=Qe.BadString;return}break;case 92:if(c===t.length-1)break;const m=n(c+1);at.isNewline(m)?c+=sn.getNewlineLength(t,c+1,m):at.isValidEscape(h,m)&&(c=sn.consumeEscaped(t,c)-1);break}}}function a(){for(f=Qe.Url,c=sn.findWhiteSpaceEnd(t,c);c<t.length;c++){const u=t.charCodeAt(c);switch(at.charCodeCategory(u)){case 41:c++;return;case at.WhiteSpaceCategory:if(c=sn.findWhiteSpaceEnd(t,c),n(c)===41||c>=t.length){c<t.length&&c++;return}c=sn.consumeBadUrlRemnants(t,c),f=Qe.BadUrl;return;case 34:case 39:case 40:case at.NonPrintableCategory:c=sn.consumeBadUrlRemnants(t,c),f=Qe.BadUrl;return;case 92:if(at.isValidEscape(u,n(c+1))){c=sn.consumeEscaped(t,c)-1;break}c=sn.consumeBadUrlRemnants(t,c),f=Qe.BadUrl;return}}}t=String(t||"");const o=t.length;let l=at.isBOM(n(0)),c=l,f;for(;c<o;){const u=t.charCodeAt(c);switch(at.charCodeCategory(u)){case at.WhiteSpaceCategory:f=Qe.WhiteSpace,c=sn.findWhiteSpaceEnd(t,c+1);break;case 34:s();break;case 35:at.isName(n(c+1))||at.isValidEscape(n(c+1),n(c+2))?(f=Qe.Hash,c=sn.consumeName(t,c+1)):(f=Qe.Delim,c++);break;case 39:s();break;case 40:f=Qe.LeftParenthesis,c++;break;case 41:f=Qe.RightParenthesis,c++;break;case 43:at.isNumberStart(u,n(c+1),n(c+2))?i():(f=Qe.Delim,c++);break;case 44:f=Qe.Comma,c++;break;case 45:at.isNumberStart(u,n(c+1),n(c+2))?i():n(c+1)===45&&n(c+2)===62?(f=Qe.CDC,c=c+3):at.isIdentifierStart(u,n(c+1),n(c+2))?r():(f=Qe.Delim,c++);break;case 46:at.isNumberStart(u,n(c+1),n(c+2))?i():(f=Qe.Delim,c++);break;case 47:n(c+1)===42?(f=Qe.Comment,c=t.indexOf("*/",c+2),c=c===-1?t.length:c+2):(f=Qe.Delim,c++);break;case 58:f=Qe.Colon,c++;break;case 59:f=Qe.Semicolon,c++;break;case 60:n(c+1)===33&&n(c+2)===45&&n(c+3)===45?(f=Qe.CDO,c=c+4):(f=Qe.Delim,c++);break;case 64:at.isIdentifierStart(n(c+1),n(c+2),n(c+3))?(f=Qe.AtKeyword,c=sn.consumeName(t,c+1)):(f=Qe.Delim,c++);break;case 91:f=Qe.LeftSquareBracket,c++;break;case 92:at.isValidEscape(u,n(c+1))?r():(f=Qe.Delim,c++);break;case 93:f=Qe.RightSquareBracket,c++;break;case 123:f=Qe.LeftCurlyBracket,c++;break;case 125:f=Qe.RightCurlyBracket,c++;break;case at.DigitCategory:i();break;case at.NameStartCategory:r();break;default:f=Qe.Delim,c++}e(f,l,l=c)}}Le.AtKeyword=Qe.AtKeyword;Le.BadString=Qe.BadString;Le.BadUrl=Qe.BadUrl;Le.CDC=Qe.CDC;Le.CDO=Qe.CDO;Le.Colon=Qe.Colon;Le.Comma=Qe.Comma;Le.Comment=Qe.Comment;Le.Delim=Qe.Delim;Le.Dimension=Qe.Dimension;Le.EOF=Qe.EOF;Le.Function=Qe.Function;Le.Hash=Qe.Hash;Le.Ident=Qe.Ident;Le.LeftCurlyBracket=Qe.LeftCurlyBracket;Le.LeftParenthesis=Qe.LeftParenthesis;Le.LeftSquareBracket=Qe.LeftSquareBracket;Le.Number=Qe.Number;Le.Percentage=Qe.Percentage;Le.RightCurlyBracket=Qe.RightCurlyBracket;Le.RightParenthesis=Qe.RightParenthesis;Le.RightSquareBracket=Qe.RightSquareBracket;Le.Semicolon=Qe.Semicolon;Le.String=Qe.String;Le.Url=Qe.Url;Le.WhiteSpace=Qe.WhiteSpace;Le.tokenTypes=Qe;Le.DigitCategory=at.DigitCategory;Le.EofCategory=at.EofCategory;Le.NameStartCategory=at.NameStartCategory;Le.NonPrintableCategory=at.NonPrintableCategory;Le.WhiteSpaceCategory=at.WhiteSpaceCategory;Le.charCodeCategory=at.charCodeCategory;Le.isBOM=at.isBOM;Le.isDigit=at.isDigit;Le.isHexDigit=at.isHexDigit;Le.isIdentifierStart=at.isIdentifierStart;Le.isLetter=at.isLetter;Le.isLowercaseLetter=at.isLowercaseLetter;Le.isName=at.isName;Le.isNameStart=at.isNameStart;Le.isNewline=at.isNewline;Le.isNonAscii=at.isNonAscii;Le.isNonPrintable=at.isNonPrintable;Le.isNumberStart=at.isNumberStart;Le.isUppercaseLetter=at.isUppercaseLetter;Le.isValidEscape=at.isValidEscape;Le.isWhiteSpace=at.isWhiteSpace;Le.cmpChar=sn.cmpChar;Le.cmpStr=sn.cmpStr;Le.consumeBadUrlRemnants=sn.consumeBadUrlRemnants;Le.consumeEscaped=sn.consumeEscaped;Le.consumeName=sn.consumeName;Le.consumeNumber=sn.consumeNumber;Le.decodeEscaped=sn.decodeEscaped;Le.findDecimalNumberEnd=sn.findDecimalNumberEnd;Le.findWhiteSpaceEnd=sn.findWhiteSpaceEnd;Le.findWhiteSpaceStart=sn.findWhiteSpaceStart;Le.getNewlineLength=sn.getNewlineLength;Le.tokenNames=R2e;Le.OffsetToLocation=D2e.OffsetToLocation;Le.TokenStream=M2e.TokenStream;Le.tokenize=N2e;var EF={},iu={};let Qu=null;class Fs{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return Fs.createItem(e)}allocateCursor(e,n){let i;return Qu!==null?(i=Qu,Qu=Qu.cursor,i.prev=e,i.next=n,i.cursor=this.cursor):i={prev:e,next:n,cursor:this.cursor},this.cursor=i,i}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Qu,Qu=e}updateCursors(e,n,i,r){let{cursor:s}=this;for(;s!==null;)s.prev===e&&(s.prev=n),s.next===i&&(s.next=r),s=s.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let n=this.head;n!==null;n=n.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let n=null;this.head=null;for(let i of e){const r=Fs.createItem(i);n!==null?n.next=r:this.head=r,r.prev=n,n=r}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,n=this){const i=this.allocateCursor(null,this.head);for(;i.next!==null;){const r=i.next;i.next=r.next,e.call(n,r.data,r,this)}this.releaseCursor()}forEachRight(e,n=this){const i=this.allocateCursor(this.tail,null);for(;i.prev!==null;){const r=i.prev;i.prev=r.prev,e.call(n,r.data,r,this)}this.releaseCursor()}reduce(e,n,i=this){let r=this.allocateCursor(null,this.head),s=n,a;for(;r.next!==null;)a=r.next,r.next=a.next,s=e.call(i,s,a.data,a,this);return this.releaseCursor(),s}reduceRight(e,n,i=this){let r=this.allocateCursor(this.tail,null),s=n,a;for(;r.prev!==null;)a=r.prev,r.prev=a.prev,s=e.call(i,s,a.data,a,this);return this.releaseCursor(),s}some(e,n=this){for(let i=this.head;i!==null;i=i.next)if(e.call(n,i.data,i,this))return!0;return!1}map(e,n=this){const i=new Fs;for(let r=this.head;r!==null;r=r.next)i.appendData(e.call(n,r.data,r,this));return i}filter(e,n=this){const i=new Fs;for(let r=this.head;r!==null;r=r.next)e.call(n,r.data,r,this)&&i.appendData(r.data);return i}nextUntil(e,n,i=this){if(e===null)return;const r=this.allocateCursor(null,e);for(;r.next!==null;){const s=r.next;if(r.next=s.next,n.call(i,s.data,s,this))break}this.releaseCursor()}prevUntil(e,n,i=this){if(e===null)return;const r=this.allocateCursor(e,null);for(;r.prev!==null;){const s=r.prev;if(r.prev=s.prev,n.call(i,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new Fs;for(let n of this)e.appendData(n);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(Fs.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(Fs.createItem(e))}insert(e,n=null){if(n!==null)if(this.updateCursors(n.prev,e,n,e),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=e,n.prev=e,e.next=n,this.updateCursors(null,e)}else n.prev.next=e,e.prev=n.prev,n.prev=e,e.next=n;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,n){return this.insert(Fs.createItem(e),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(Fs.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(Fs.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,n){return e.head===null?this:(n!=null?(this.updateCursors(n.prev,e.tail,n,e.head),n.prev!==null?(n.prev.next=e.head,e.head.prev=n.prev):this.head=e.head,n.prev=e.tail,e.tail.next=n):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,n){"head"in n?this.insertList(n,e):this.insert(n,e),this.remove(e)}}iu.List=Fs;var RF={},zk={};function L2e(t,e){const n=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(n,{name:t,message:e,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,`${t}: ${e}
|
||
`)}})}zk.createCustomError=L2e;const j2e=zk,T2=100,aR=60,oR=" ";function lR({source:t,line:e,column:n},i){function r(f,u){return s.slice(f,u).map(((h,m)=>String(f+m+1).padStart(l)+" |"+h)).join(`
|
||
`)}const s=t.split(/\r\n?|\n|\f/),a=Math.max(1,e-i)-1,o=Math.min(e+i,s.length+1),l=Math.max(4,String(o).length)+1;let c=0;n+=(oR.length-1)*(s[e-1].substr(0,n-1).match(/\t/g)||[]).length,n>T2&&(c=n-aR+3,n=aR-2);for(let f=a;f<=o;f++)f>=0&&f<s.length&&(s[f]=s[f].replace(/\t/g,oR),s[f]=(c>0&&s[f].length>c?"…":"")+s[f].substr(c,T2-2)+(s[f].length>c+T2-1?"…":""));return[r(a,e),new Array(n+l+2).join("-")+"^",r(e,o)].filter(Boolean).join(`
|
||
`)}function I2e(t,e,n,i,r){return Object.assign(j2e.createCustomError("SyntaxError",t),{source:e,offset:n,line:i,column:r,sourceFragment(a){return lR({source:e,line:i,column:r},isNaN(a)?0:a)},get formattedMessage(){return`Parse error: ${t}
|
||
`+lR({source:e,line:i,column:r},2)}})}RF.SyntaxError=I2e;var DF={};const cR=Oe;function B2e(t){const e=this.createList();let n=!1;const i={recognizer:t};for(;!this.eof;){switch(this.tokenType){case cR.Comment:this.next();continue;case cR.WhiteSpace:n=!0,this.next();continue}let r=t.getNode.call(this,i);if(r===void 0)break;n&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,r,e,i),n=!1),e.push(r)}return n&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,e,i),e}DF.readSequence=B2e;const fR=iu,uR=RF,F2e=Le,Q2e=DF,z2e=pP,q2e=Qk,fm=fi,Wa=Oe,W2e=Fk,dR=()=>{},U2e=33,V2e=35,A2=59,hR=123,pR=0;function H2e(t){return function(){return this[t]()}}function E2(t){const e=Object.create(null);for(const n in t){const i=t[n],r=i.parse||i;r&&(e[n]=r)}return e}function Z2e(t){const e={context:Object.create(null),scope:Object.assign(Object.create(null),t.scope),atrule:E2(t.atrule),pseudo:E2(t.pseudo),node:E2(t.node)};for(const n in t.parseContext)switch(typeof t.parseContext[n]){case"function":e.context[n]=t.parseContext[n];break;case"string":e.context[n]=H2e(t.parseContext[n]);break}return{config:e,...e,...e.node}}function G2e(t){let e="",n="<unknown>",i=!1,r=dR,s=!1;const a=new z2e.OffsetToLocation,o=Object.assign(new q2e.TokenStream,Z2e(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Q2e.readSequence,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(c){return c===hR?1:0},consumeUntilLeftCurlyBracketOrSemicolon(c){return c===hR||c===A2?1:0},consumeUntilExclamationMarkOrSemicolon(c){return c===U2e||c===A2?1:0},consumeUntilSemicolonIncluded(c){return c===A2?2:0},createList(){return new fR.List},createSingleNodeList(c){return new fR.List().appendData(c)},getFirstListNode(c){return c&&c.first},getLastListNode(c){return c&&c.last},parseWithFallback(c,f){const u=this.tokenIndex;try{return c.call(this)}catch(h){if(s)throw h;const m=f.call(this,u);return s=!0,r(h,m),s=!1,m}},lookupNonWSType(c){let f;do if(f=this.lookupType(c++),f!==Wa.WhiteSpace)return f;while(f!==pR);return pR},charCodeAt(c){return c>=0&&c<e.length?e.charCodeAt(c):0},substring(c,f){return e.substring(c,f)},substrToCursor(c){return this.source.substring(c,this.tokenStart)},cmpChar(c,f){return fm.cmpChar(e,c,f)},cmpStr(c,f,u){return fm.cmpStr(e,c,f,u)},consume(c){const f=this.tokenStart;return this.eat(c),this.substrToCursor(f)},consumeFunctionName(){const c=e.substring(this.tokenStart,this.tokenEnd-1);return this.eat(Wa.Function),c},consumeNumber(c){const f=e.substring(this.tokenStart,fm.consumeNumber(e,this.tokenStart));return this.eat(c),f},eat(c){if(this.tokenType!==c){const f=W2e[c].slice(0,-6).replace(/-/g," ").replace(/^./,(m=>m.toUpperCase()));let u=`${/[[\](){}]/.test(f)?`"${f}"`:f} is expected`,h=this.tokenStart;switch(c){case Wa.Ident:this.tokenType===Wa.Function||this.tokenType===Wa.Url?(h=this.tokenEnd-1,u="Identifier is expected but function found"):u="Identifier is expected";break;case Wa.Hash:this.isDelim(V2e)&&(this.next(),h++,u="Name is expected");break;case Wa.Percentage:this.tokenType===Wa.Number&&(h=this.tokenEnd,u="Percent sign is expected");break}this.error(u,h)}this.next()},eatIdent(c){(this.tokenType!==Wa.Ident||this.lookupValue(0,c)===!1)&&this.error(`Identifier "${c}" is expected`),this.next()},eatDelim(c){this.isDelim(c)||this.error(`Delim "${String.fromCharCode(c)}" is expected`),this.next()},getLocation(c,f){return i?a.getLocationRange(c,f,n):null},getLocationFromList(c){if(i){const f=this.getFirstListNode(c),u=this.getLastListNode(c);return a.getLocationRange(f!==null?f.loc.start.offset-a.startOffset:this.tokenStart,u!==null?u.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(c,f){const u=typeof f<"u"&&f<e.length?a.getLocation(f):this.eof?a.getLocation(fm.findWhiteSpaceStart(e,e.length-1)):a.getLocation(this.tokenStart);throw new uR.SyntaxError(c||"Unexpected input",e,u.offset,u.line,u.column)}});return Object.assign(function(c,f){e=c,f=f||{},o.setSource(e,F2e.tokenize),a.setSource(e,f.offset,f.line,f.column),n=f.filename||"<unknown>",i=!!f.positions,r=typeof f.onParseError=="function"?f.onParseError:dR,s=!1,o.parseAtrulePrelude="parseAtrulePrelude"in f?!!f.parseAtrulePrelude:!0,o.parseRulePrelude="parseRulePrelude"in f?!!f.parseRulePrelude:!0,o.parseValue="parseValue"in f?!!f.parseValue:!0,o.parseCustomProperty="parseCustomProperty"in f?!!f.parseCustomProperty:!1;const{context:u="default",onComment:h}=f;if(!(u in o.context))throw new Error("Unknown context `"+u+"`");typeof h=="function"&&o.forEachToken(((g,v,w)=>{if(g===Wa.Comment){const O=o.getLocation(v,w),x=fm.cmpStr(e,w-2,w,"*/")?e.slice(v+2,w-2):e.slice(v+2,w);h(x,O)}}));const m=o.context[u].call(o,f);return o.eof||o.error(),m},{SyntaxError:uR.SyntaxError,config:o.config})}EF.createParser=G2e;var MF={},NF={};const X2e=L4,mR=new Set(["Atrule","Selector","Declaration"]);function Y2e(t){const e=new X2e.SourceMapGenerator,n={line:1,column:0},i={line:0,column:0},r={line:1,column:0},s={generated:r};let a=1,o=0,l=!1;const c=t.node;t.node=function(h){if(h.loc&&h.loc.start&&mR.has(h.type)){const m=h.loc.start.line,g=h.loc.start.column-1;(i.line!==m||i.column!==g)&&(i.line=m,i.column=g,n.line=a,n.column=o,l&&(l=!1,(n.line!==r.line||n.column!==r.column)&&e.addMapping(s)),l=!0,e.addMapping({source:h.loc.source,original:i,generated:n}))}c.call(this,h),l&&mR.has(h.type)&&(r.line=a,r.column=o)};const f=t.emit;t.emit=function(h,m,g){for(let v=0;v<h.length;v++)h.charCodeAt(v)===10?(a++,o=0):o++;f(h,m,g)};const u=t.result;return t.result=function(){return l&&e.addMapping(s),{css:u(),map:e}},t}NF.generateSourceMap=Y2e;var gP={};const J=Oe,K2e=43,J2e=45,R2=(t,e)=>{if(t===J.Delim&&(t=e),typeof t=="string"){const n=t.charCodeAt(0);return n>127?32768:n<<8}return t},LF=[[J.Ident,J.Ident],[J.Ident,J.Function],[J.Ident,J.Url],[J.Ident,J.BadUrl],[J.Ident,"-"],[J.Ident,J.Number],[J.Ident,J.Percentage],[J.Ident,J.Dimension],[J.Ident,J.CDC],[J.Ident,J.LeftParenthesis],[J.AtKeyword,J.Ident],[J.AtKeyword,J.Function],[J.AtKeyword,J.Url],[J.AtKeyword,J.BadUrl],[J.AtKeyword,"-"],[J.AtKeyword,J.Number],[J.AtKeyword,J.Percentage],[J.AtKeyword,J.Dimension],[J.AtKeyword,J.CDC],[J.Hash,J.Ident],[J.Hash,J.Function],[J.Hash,J.Url],[J.Hash,J.BadUrl],[J.Hash,"-"],[J.Hash,J.Number],[J.Hash,J.Percentage],[J.Hash,J.Dimension],[J.Hash,J.CDC],[J.Dimension,J.Ident],[J.Dimension,J.Function],[J.Dimension,J.Url],[J.Dimension,J.BadUrl],[J.Dimension,"-"],[J.Dimension,J.Number],[J.Dimension,J.Percentage],[J.Dimension,J.Dimension],[J.Dimension,J.CDC],["#",J.Ident],["#",J.Function],["#",J.Url],["#",J.BadUrl],["#","-"],["#",J.Number],["#",J.Percentage],["#",J.Dimension],["#",J.CDC],["-",J.Ident],["-",J.Function],["-",J.Url],["-",J.BadUrl],["-","-"],["-",J.Number],["-",J.Percentage],["-",J.Dimension],["-",J.CDC],[J.Number,J.Ident],[J.Number,J.Function],[J.Number,J.Url],[J.Number,J.BadUrl],[J.Number,J.Number],[J.Number,J.Percentage],[J.Number,J.Dimension],[J.Number,"%"],[J.Number,J.CDC],["@",J.Ident],["@",J.Function],["@",J.Url],["@",J.BadUrl],["@","-"],["@",J.CDC],[".",J.Number],[".",J.Percentage],[".",J.Dimension],["+",J.Number],["+",J.Percentage],["+",J.Dimension],["/","*"]],eSe=LF.concat([[J.Ident,J.Hash],[J.Dimension,J.Hash],[J.Hash,J.Hash],[J.AtKeyword,J.LeftParenthesis],[J.AtKeyword,J.String],[J.AtKeyword,J.Colon],[J.Percentage,J.Percentage],[J.Percentage,J.Dimension],[J.Percentage,J.Function],[J.Percentage,"-"],[J.RightParenthesis,J.Ident],[J.RightParenthesis,J.Function],[J.RightParenthesis,J.Percentage],[J.RightParenthesis,J.Dimension],[J.RightParenthesis,J.Hash],[J.RightParenthesis,"-"]]);function jF(t){const e=new Set(t.map((([n,i])=>R2(n)<<16|R2(i))));return function(n,i,r){const s=R2(i,r),a=r.charCodeAt(0);return(a===J2e&&i!==J.Ident&&i!==J.Function&&i!==J.CDC||a===K2e?e.has(n<<16|a<<8):e.has(n<<16|s))&&this.emit(" ",J.WhiteSpace,!0),s}}const tSe=jF(LF),nSe=jF(eSe);gP.safe=nSe;gP.spec=tSe;const iSe=Le,rSe=NF,D2=gP,gR=Oe,sSe=92;function aSe(t,e){if(typeof e=="function"){let n=null;t.children.forEach((i=>{n!==null&&e.call(this,n),this.node(i),n=i}));return}t.children.forEach(this.node,this)}function oSe(t){iSe.tokenize(t,((e,n,i)=>{this.token(e,t.slice(n,i))}))}function lSe(t){const e=new Map;for(let n in t.node){const i=t.node[n];typeof(i.generate||i)=="function"&&e.set(n,i.generate||i)}return function(n,i){let r="",s=0,a={node(l){if(e.has(l.type))e.get(l.type).call(o,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:D2.safe,token(l,c){s=this.tokenBefore(s,l,c),this.emit(c,l,!1),l===gR.Delim&&c.charCodeAt(0)===sSe&&this.emit(`
|
||
`,gR.WhiteSpace,!0)},emit(l){r+=l},result(){return r}};i&&(typeof i.decorator=="function"&&(a=i.decorator(a)),i.sourceMap&&(a=rSe.generateSourceMap(a)),i.mode in D2&&(a.tokenBefore=D2[i.mode]));const o={node:l=>a.node(l),children:aSe,token:(l,c)=>a.token(l,c),tokenize:oSe};return a.node(n),a.result()}}MF.createGenerator=lSe;var IF={};const M2=iu;function cSe(t){return{fromPlainObject(e){return t(e,{enter(n){n.children&&!(n.children instanceof M2.List)&&(n.children=new M2.List().fromArray(n.children))}}),e},toPlainObject(e){return t(e,{leave(n){n.children&&n.children instanceof M2.List&&(n.children=n.children.toArray())}}),e}}}IF.createConvertor=cSe;var BF={};const{hasOwnProperty:vP}=Object.prototype,Wm=function(){};function vR(t){return typeof t=="function"?t:Wm}function bR(t,e){return function(n,i,r){n.type===e&&t.call(this,n,i,r)}}function fSe(t,e){const n=e.structure,i=[];for(const r in n){if(vP.call(n,r)===!1)continue;let s=n[r];const a={name:r,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const o of s)o===null?a.nullable=!0:typeof o=="string"?a.type="node":Array.isArray(o)&&(a.type="list");a.type&&i.push(a)}return i.length?{context:e.walkContext,fields:i}:null}function uSe(t){const e={};for(const n in t.node)if(vP.call(t.node,n)){const i=t.node[n];if(!i.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");e[n]=fSe(n,i)}return e}function yR(t,e){const n=t.fields.slice(),i=t.context,r=typeof i=="string";return e&&n.reverse(),function(s,a,o,l){let c;r&&(c=a[i],a[i]=s);for(const f of n){const u=s[f.name];if(!f.nullable||u){if(f.type==="list"){if(e?u.reduceRight(l,!1):u.reduce(l,!1))return!0}else if(o(u))return!0}}r&&(a[i]=c)}}function wR({StyleSheet:t,Atrule:e,Rule:n,Block:i,DeclarationList:r}){return{Atrule:{StyleSheet:t,Atrule:e,Rule:n,Block:i},Rule:{StyleSheet:t,Atrule:e,Rule:n,Block:i},Declaration:{StyleSheet:t,Atrule:e,Rule:n,Block:i,DeclarationList:r}}}function dSe(t){const e=uSe(t),n={},i={},r=Symbol("break-walk"),s=Symbol("skip-node");for(const c in e)vP.call(e,c)&&e[c]!==null&&(n[c]=yR(e[c],!1),i[c]=yR(e[c],!0));const a=wR(n),o=wR(i),l=function(c,f){function u(O,x,$){const T=h.call(w,O,x,$);return T===r?!0:T===s?!1:!!(g.hasOwnProperty(O.type)&&g[O.type](O,w,u,v)||m.call(w,O,x,$)===r)}let h=Wm,m=Wm,g=n,v=(O,x,$,T)=>O||u(x,$,T);const w={break:r,skip:s,root:c,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof f=="function")h=f;else if(f&&(h=vR(f.enter),m=vR(f.leave),f.reverse&&(g=i),f.visit)){if(a.hasOwnProperty(f.visit))g=f.reverse?o[f.visit]:a[f.visit];else if(!e.hasOwnProperty(f.visit))throw new Error("Bad value `"+f.visit+"` for `visit` option (should be: "+Object.keys(e).sort().join(", ")+")");h=bR(h,f.visit),m=bR(m,f.visit)}if(h===Wm&&m===Wm)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");u(c)};return l.break=r,l.skip=s,l.find=function(c,f){let u=null;return l(c,(function(h,m,g){if(f.call(this,h,m,g))return u=h,r})),u},l.findLast=function(c,f){let u=null;return l(c,{reverse:!0,enter(h,m,g){if(f.call(this,h,m,g))return u=h,r}}),u},l.findAll=function(c,f){const u=[];return l(c,(function(h,m,g){f.call(this,h,m,g)&&u.push(h)})),u},l}BF.createWalker=dSe;var bP={},yP={},qk={};function hSe(t){return t}function pSe(t){const{min:e,max:n,comma:i}=t;return e===0&&n===0?i?"#?":"*":e===0&&n===1?"?":e===1&&n===0?i?"#":"+":e===1&&n===1?"":(i?"#":"")+(e===n?"{"+e+"}":"{"+e+","+(n!==0?n:"")+"}")}function mSe(t){switch(t.type){case"Range":return" ["+(t.min===null?"-∞":t.min)+","+(t.max===null?"∞":t.max)+"]";default:throw new Error("Unknown node type `"+t.type+"`")}}function gSe(t,e,n,i){const r=t.combinator===" "||i?t.combinator:" "+t.combinator+" ",s=t.terms.map((a=>wP(a,e,n,i))).join(r);return t.explicit||n?(i||s[0]===","?"[":"[ ")+s+(i?"]":" ]"):s}function wP(t,e,n,i){let r;switch(t.type){case"Group":r=gSe(t,e,n,i)+(t.disallowEmpty?"!":"");break;case"Multiplier":return wP(t.term,e,n,i)+e(pSe(t),t);case"Type":r="<"+t.name+(t.opts?e(mSe(t.opts),t.opts):"")+">";break;case"Property":r="<'"+t.name+"'>";break;case"Keyword":r=t.name;break;case"AtKeyword":r="@"+t.name;break;case"Function":r=t.name+"(";break;case"String":case"Token":r=t.value;break;case"Comma":r=",";break;default:throw new Error("Unknown node type `"+t.type+"`")}return e(r,t)}function vSe(t,e){let n=hSe,i=!1,r=!1;return typeof e=="function"?n=e:e&&(i=!!e.forceBraces,r=!!e.compact,typeof e.decorate=="function"&&(n=e.decorate)),wP(t,n,i,r)}qk.generate=vSe;const FF=zk,bSe=qk,kR={offset:0,line:1,column:1};function ySe(t,e){const n=t.tokens,i=t.longestMatch,r=i<n.length&&n[i].node||null,s=r!==e?r:null;let a=0,o=0,l=0,c="",f,u;for(let h=0;h<n.length;h++){const m=n[h].value;h===i&&(o=m.length,a=c.length),s!==null&&n[h].node===s&&(h<=i?l++:l=0),c+=m}return i===n.length||l>1?(f=Ev(s||e,"end")||Um(kR,c),u=Um(f)):(f=Ev(s,"start")||Um(Ev(e,"start")||kR,c.slice(0,a)),u=Ev(s,"end")||Um(f,c.substr(a,o))),{css:c,mismatchOffset:a,mismatchLength:o,start:f,end:u}}function Ev(t,e){const n=t&&t.loc&&t.loc[e];return n?"line"in n?Um(n):n:null}function Um({offset:t,line:e,column:n},i){const r={offset:t,line:e,column:n};if(i){const s=i.split(/\n|\r\n?|\f/);r.offset+=i.length,r.line+=s.length-1,r.column=s.length===1?r.column+i.length:s.pop().length+1}return r}const wSe=function(t,e){const n=FF.createCustomError("SyntaxReferenceError",t+(e?" `"+e+"`":""));return n.reference=e,n},kSe=function(t,e,n,i){const r=FF.createCustomError("SyntaxMatchError",t),{css:s,mismatchOffset:a,mismatchLength:o,start:l,end:c}=ySe(i,n);return r.rawMessage=t,r.syntax=e?bSe.generate(e):"<generic>",r.css=s,r.mismatchOffset=a,r.mismatchLength=o,r.message=t+`
|
||
syntax: `+r.syntax+`
|
||
value: `+(s||"<empty string>")+`
|
||
--------`+new Array(r.mismatchOffset+1).join("-")+"^",Object.assign(r,l),r.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},r};yP.SyntaxMatchError=kSe;yP.SyntaxReferenceError=wSe;var ru={};const Rv=new Map,zu=new Map,Uy=45,OSe=_Se,xSe=CSe,SSe=OP;function kP(t,e){return e=e||0,t.length-e>=2&&t.charCodeAt(e)===Uy&&t.charCodeAt(e+1)===Uy}function OP(t,e){if(e=e||0,t.length-e>=3&&t.charCodeAt(e)===Uy&&t.charCodeAt(e+1)!==Uy){const n=t.indexOf("-",e+2);if(n!==-1)return t.substring(e,n+1)}return""}function _Se(t){if(Rv.has(t))return Rv.get(t);const e=t.toLowerCase();let n=Rv.get(e);if(n===void 0){const i=kP(e,0),r=i?"":OP(e,0);n=Object.freeze({basename:e.substr(r.length),name:e,prefix:r,vendor:r,custom:i})}return Rv.set(t,n),n}function CSe(t){if(zu.has(t))return zu.get(t);let e=t,n=t[0];n==="/"?n=t[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const i=kP(e,n.length);if(!i&&(e=e.toLowerCase(),zu.has(e))){const o=zu.get(e);return zu.set(t,o),o}const r=i?"":OP(e,n.length),s=e.substr(0,n.length+r.length),a=Object.freeze({basename:e.substr(s.length),name:e.substr(n.length),hack:n,vendor:r,prefix:s,custom:i});return zu.set(t,a),a}ru.isCustomProperty=kP;ru.keyword=OSe;ru.property=xSe;ru.vendorPrefix=SSe;var xP={};const $Se=["initial","inherit","unset","revert","revert-layer"];xP.cssWideKeywords=$Se;const QF=qt,ba=Oe,N2=fi,Fg=43,ao=45,L2=110,qu=!0,PSe=!1;function l3(t,e){return t!==null&&t.type===ba.Delim&&t.value.charCodeAt(0)===e}function mg(t,e,n){for(;t!==null&&(t.type===ba.WhiteSpace||t.type===ba.Comment);)t=n(++e);return e}function Zl(t,e,n,i){if(!t)return 0;const r=t.value.charCodeAt(e);if(r===Fg||r===ao){if(n)return 0;e++}for(;e<t.value.length;e++)if(!QF.isDigit(t.value.charCodeAt(e)))return 0;return i+1}function j2(t,e,n){let i=!1,r=mg(t,e,n);if(t=n(r),t===null)return e;if(t.type!==ba.Number)if(l3(t,Fg)||l3(t,ao)){if(i=!0,r=mg(n(++r),r,n),t=n(r),t===null||t.type!==ba.Number)return 0}else return e;if(!i){const s=t.value.charCodeAt(0);if(s!==Fg&&s!==ao)return 0}return Zl(t,i?0:1,i,r)}function TSe(t,e){let n=0;if(!t)return 0;if(t.type===ba.Number)return Zl(t,0,PSe,n);if(t.type===ba.Ident&&t.value.charCodeAt(0)===ao){if(!N2.cmpChar(t.value,1,L2))return 0;switch(t.value.length){case 2:return j2(e(++n),n,e);case 3:return t.value.charCodeAt(2)!==ao?0:(n=mg(e(++n),n,e),t=e(n),Zl(t,0,qu,n));default:return t.value.charCodeAt(2)!==ao?0:Zl(t,3,qu,n)}}else if(t.type===ba.Ident||l3(t,Fg)&&e(n+1).type===ba.Ident){if(t.type!==ba.Ident&&(t=e(++n)),t===null||!N2.cmpChar(t.value,0,L2))return 0;switch(t.value.length){case 1:return j2(e(++n),n,e);case 2:return t.value.charCodeAt(1)!==ao?0:(n=mg(e(++n),n,e),t=e(n),Zl(t,0,qu,n));default:return t.value.charCodeAt(1)!==ao?0:Zl(t,2,qu,n)}}else if(t.type===ba.Dimension){let i=t.value.charCodeAt(0),r=i===Fg||i===ao?1:0,s=r;for(;s<t.value.length&&QF.isDigit(t.value.charCodeAt(s));s++);return s===r||!N2.cmpChar(t.value,s,L2)?0:s+1===t.value.length?j2(e(++n),n,e):t.value.charCodeAt(s+1)!==ao?0:s+2===t.value.length?(n=mg(e(++n),n,e),t=e(n),Zl(t,0,qu,n)):Zl(t,s+2,qu,n)}return 0}var ASe=TSe;const ESe=qt,ff=Oe,RSe=fi,DSe=43,zF=45,qF=63,MSe=117;function c3(t,e){return t!==null&&t.type===ff.Delim&&t.value.charCodeAt(0)===e}function NSe(t,e){return t.value.charCodeAt(0)===e}function Vm(t,e,n){let i=0;for(let r=e;r<t.value.length;r++){const s=t.value.charCodeAt(r);if(s===zF&&n&&i!==0)return Vm(t,e+i+1,!1),6;if(!ESe.isHexDigit(s)||++i>6)return 0}return i}function Dv(t,e,n){if(!t)return 0;for(;c3(n(e),qF);){if(++t>6)return 0;e++}return e}function LSe(t,e){let n=0;if(t===null||t.type!==ff.Ident||!RSe.cmpChar(t.value,0,MSe)||(t=e(++n),t===null))return 0;if(c3(t,DSe))return t=e(++n),t===null?0:t.type===ff.Ident?Dv(Vm(t,0,!0),++n,e):c3(t,qF)?Dv(1,++n,e):0;if(t.type===ff.Number){const i=Vm(t,1,!0);return i===0?0:(t=e(++n),t===null?n:t.type===ff.Dimension||t.type===ff.Number?!NSe(t,zF)||!Vm(t,1,!1)?0:n+1:Dv(i,n,e))}return t.type===ff.Dimension?Dv(Vm(t,1,!0),++n,e):0}var jSe=LSe;const ISe=xP,BSe=ASe,FSe=jSe,Ee=Oe,Wk=qt,SP=fi,QSe=["calc(","-moz-calc(","-webkit-calc("],_P=new Map([[Ee.Function,Ee.RightParenthesis],[Ee.LeftParenthesis,Ee.RightParenthesis],[Ee.LeftSquareBracket,Ee.RightSquareBracket],[Ee.LeftCurlyBracket,Ee.RightCurlyBracket]]),zSe=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],qSe=["deg","grad","rad","turn"],WSe=["s","ms"],USe=["hz","khz"],VSe=["dpi","dpcm","dppx","x"],HSe=["fr"],ZSe=["db"],GSe=["st"];function $a(t,e){return e<t.length?t.charCodeAt(e):0}function WF(t,e){return SP.cmpStr(t,0,t.length,e)}function UF(t,e){for(let n=0;n<e.length;n++)if(WF(t,e[n]))return!0;return!1}function VF(t,e){return e!==t.length-2?!1:$a(t,e)===92&&Wk.isDigit($a(t,e+1))}function Uk(t,e,n){if(t&&t.type==="Range"){const i=Number(n!==void 0&&n!==e.length?e.substr(0,n):e);if(isNaN(i)||t.min!==null&&i<t.min&&typeof t.min!="string"||t.max!==null&&i>t.max&&typeof t.max!="string")return!0}return!1}function XSe(t,e){let n=0,i=[],r=0;e:do{switch(t.type){case Ee.RightCurlyBracket:case Ee.RightParenthesis:case Ee.RightSquareBracket:if(t.type!==n)break e;if(n=i.pop(),i.length===0){r++;break e}break;case Ee.Function:case Ee.LeftParenthesis:case Ee.LeftSquareBracket:case Ee.LeftCurlyBracket:i.push(n),n=_P.get(t.type);break}r++}while(t=e(r));return r}function Ns(t){return function(e,n,i){return e===null?0:e.type===Ee.Function&&UF(e.value,QSe)?XSe(e,n):t(e,n,i)}}function mn(t){return function(e){return e===null||e.type!==t?0:1}}function YSe(t){if(t===null||t.type!==Ee.Ident)return 0;const e=t.value.toLowerCase();return UF(e,ISe.cssWideKeywords)||WF(e,"default")?0:1}function KSe(t){return t===null||t.type!==Ee.Ident||$a(t.value,0)!==45||$a(t.value,1)!==45?0:1}function JSe(t){if(t===null||t.type!==Ee.Hash)return 0;const e=t.value.length;if(e!==4&&e!==5&&e!==7&&e!==9)return 0;for(let n=1;n<e;n++)if(!Wk.isHexDigit($a(t.value,n)))return 0;return 1}function e_e(t){return t===null||t.type!==Ee.Hash||!Wk.isIdentifierStart($a(t.value,1),$a(t.value,2),$a(t.value,3))?0:1}function t_e(t,e){if(!t)return 0;let n=0,i=[],r=0;e:do{switch(t.type){case Ee.BadString:case Ee.BadUrl:break e;case Ee.RightCurlyBracket:case Ee.RightParenthesis:case Ee.RightSquareBracket:if(t.type!==n)break e;n=i.pop();break;case Ee.Semicolon:if(n===0)break e;break;case Ee.Delim:if(n===0&&t.value==="!")break e;break;case Ee.Function:case Ee.LeftParenthesis:case Ee.LeftSquareBracket:case Ee.LeftCurlyBracket:i.push(n),n=_P.get(t.type);break}r++}while(t=e(r));return r}function n_e(t,e){if(!t)return 0;let n=0,i=[],r=0;e:do{switch(t.type){case Ee.BadString:case Ee.BadUrl:break e;case Ee.RightCurlyBracket:case Ee.RightParenthesis:case Ee.RightSquareBracket:if(t.type!==n)break e;n=i.pop();break;case Ee.Function:case Ee.LeftParenthesis:case Ee.LeftSquareBracket:case Ee.LeftCurlyBracket:i.push(n),n=_P.get(t.type);break}r++}while(t=e(r));return r}function Ko(t){return t&&(t=new Set(t)),function(e,n,i){if(e===null||e.type!==Ee.Dimension)return 0;const r=SP.consumeNumber(e.value,0);if(t!==null){const s=e.value.indexOf("\\",r),a=s===-1||!VF(e.value,s)?e.value.substr(r):e.value.substring(r,s);if(t.has(a.toLowerCase())===!1)return 0}return Uk(i,e.value,r)?0:1}}function i_e(t,e,n){return t===null||t.type!==Ee.Percentage||Uk(n,t.value,t.value.length-1)?0:1}function OR(t){return typeof t!="function"&&(t=function(){return 0}),function(e,n,i){return e!==null&&e.type===Ee.Number&&Number(e.value)===0?1:t(e,n,i)}}function r_e(t,e,n){if(t===null)return 0;const i=SP.consumeNumber(t.value,0);return!(i===t.value.length)&&!VF(t.value,i)||Uk(n,t.value,i)?0:1}function s_e(t,e,n){if(t===null||t.type!==Ee.Number)return 0;let i=$a(t.value,0)===43||$a(t.value,0)===45?1:0;for(;i<t.value.length;i++)if(!Wk.isDigit($a(t.value,i)))return 0;return Uk(n,t.value,i)?0:1}const a_e={"ident-token":mn(Ee.Ident),"function-token":mn(Ee.Function),"at-keyword-token":mn(Ee.AtKeyword),"hash-token":mn(Ee.Hash),"string-token":mn(Ee.String),"bad-string-token":mn(Ee.BadString),"url-token":mn(Ee.Url),"bad-url-token":mn(Ee.BadUrl),"delim-token":mn(Ee.Delim),"number-token":mn(Ee.Number),"percentage-token":mn(Ee.Percentage),"dimension-token":mn(Ee.Dimension),"whitespace-token":mn(Ee.WhiteSpace),"CDO-token":mn(Ee.CDO),"CDC-token":mn(Ee.CDC),"colon-token":mn(Ee.Colon),"semicolon-token":mn(Ee.Semicolon),"comma-token":mn(Ee.Comma),"[-token":mn(Ee.LeftSquareBracket),"]-token":mn(Ee.RightSquareBracket),"(-token":mn(Ee.LeftParenthesis),")-token":mn(Ee.RightParenthesis),"{-token":mn(Ee.LeftCurlyBracket),"}-token":mn(Ee.RightCurlyBracket),string:mn(Ee.String),ident:mn(Ee.Ident),"custom-ident":YSe,"custom-property-name":KSe,"hex-color":JSe,"id-selector":e_e,"an-plus-b":BSe,urange:FSe,"declaration-value":t_e,"any-value":n_e,dimension:Ns(Ko(null)),angle:Ns(Ko(qSe)),decibel:Ns(Ko(ZSe)),frequency:Ns(Ko(USe)),flex:Ns(Ko(HSe)),length:Ns(OR(Ko(zSe))),resolution:Ns(Ko(VSe)),semitones:Ns(Ko(GSe)),time:Ns(Ko(WSe)),percentage:Ns(i_e),zero:OR(),number:Ns(r_e),integer:Ns(s_e)};var o_e=a_e;const l_e=Le,c_e={decorator(t){const e=[];let n=null;return{...t,node(i){const r=n;n=i,t.node.call(this,i),n=r},emit(i,r,s){e.push({type:r,value:i,node:s?null:n})},result(){return e}}}};function f_e(t){const e=[];return l_e.tokenize(t,((n,i,r)=>e.push({type:n,value:t.slice(i,r),node:null}))),e}function u_e(t,e){return typeof t=="string"?f_e(t):e.generate(t,c_e)}var d_e=u_e,Vh={},Vk={},HF={},CP={};const h_e=zk;function p_e(t,e,n){return Object.assign(h_e.createCustomError("SyntaxError",t),{input:e,offset:n,rawMessage:t,message:t+`
|
||
`+e+`
|
||
--`+new Array((n||e.length)+1).join("-")+"^"})}CP.SyntaxError=p_e;const m_e=CP,g_e=9,v_e=10,b_e=12,y_e=13,w_e=32;class k_e{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const n=this.str.charCodeAt(e);if(n!==y_e&&n!==v_e&&n!==b_e&&n!==w_e&&n!==g_e)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new m_e.SyntaxError(e,this.str,this.pos)}}HF.Tokenizer=k_e;const O_e=HF,x_e=9,S_e=10,__e=12,C_e=13,$_e=32,ZF=33,$P=35,xR=38,Vy=39,GF=40,P_e=41,XF=42,PP=43,TP=44,SR=45,AP=60,YF=62,f3=63,T_e=64,Hk=91,EP=93,Hy=123,_R=124,CR=125,$R=8734,Qg=new Uint8Array(128).map(((t,e)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(e))?1:0)),PR={" ":1,"&&":2,"||":3,"|":4};function Zy(t){return t.substringToPos(t.findWsEnd(t.pos))}function Fd(t){let e=t.pos;for(;e<t.str.length;e++){const n=t.str.charCodeAt(e);if(n>=128||Qg[n]===0)break}return t.pos===e&&t.error("Expect a keyword"),t.substringToPos(e)}function Gy(t){let e=t.pos;for(;e<t.str.length;e++){const n=t.str.charCodeAt(e);if(n<48||n>57)break}return t.pos===e&&t.error("Expect a number"),t.substringToPos(e)}function A_e(t){const e=t.str.indexOf("'",t.pos+1);return e===-1&&(t.pos=t.str.length,t.error("Expect an apostrophe")),t.substringToPos(e+1)}function TR(t){let e=null,n=null;return t.eat(Hy),e=Gy(t),t.charCode()===TP?(t.pos++,t.charCode()!==CR&&(n=Gy(t))):n=e,t.eat(CR),{min:Number(e),max:n?Number(n):0}}function E_e(t){let e=null,n=!1;switch(t.charCode()){case XF:t.pos++,e={min:0,max:0};break;case PP:t.pos++,e={min:1,max:0};break;case f3:t.pos++,e={min:0,max:1};break;case $P:t.pos++,n=!0,t.charCode()===Hy?e=TR(t):t.charCode()===f3?(t.pos++,e={min:0,max:0}):e={min:1,max:0};break;case Hy:e=TR(t);break;default:return null}return{type:"Multiplier",comma:n,min:e.min,max:e.max,term:null}}function Qd(t,e){const n=E_e(t);return n!==null?(n.term=e,t.charCode()===$P&&t.charCodeAt(t.pos-1)===PP?Qd(t,n):n):e}function I2(t){const e=t.peek();return e===""?null:{type:"Token",value:e}}function R_e(t){let e;return t.eat(AP),t.eat(Vy),e=Fd(t),t.eat(Vy),t.eat(YF),Qd(t,{type:"Property",name:e})}function D_e(t){let e=null,n=null,i=1;return t.eat(Hk),t.charCode()===SR&&(t.peek(),i=-1),i==-1&&t.charCode()===$R?t.peek():(e=i*Number(Gy(t)),Qg[t.charCode()]!==0&&(e+=Fd(t))),Zy(t),t.eat(TP),Zy(t),t.charCode()===$R?t.peek():(i=1,t.charCode()===SR&&(t.peek(),i=-1),n=i*Number(Gy(t)),Qg[t.charCode()]!==0&&(n+=Fd(t))),t.eat(EP),{type:"Range",min:e,max:n}}function M_e(t){let e,n=null;return t.eat(AP),e=Fd(t),t.charCode()===GF&&t.nextCharCode()===P_e&&(t.pos+=2,e+="()"),t.charCodeAt(t.findWsEnd(t.pos))===Hk&&(Zy(t),n=D_e(t)),t.eat(YF),Qd(t,{type:"Type",name:e,opts:n})}function N_e(t){const e=Fd(t);return t.charCode()===GF?(t.pos++,{type:"Function",name:e}):Qd(t,{type:"Keyword",name:e})}function L_e(t,e){function n(r,s){return{type:"Group",terms:r,combinator:s,disallowEmpty:!1,explicit:!1}}let i;for(e=Object.keys(e).sort(((r,s)=>PR[r]-PR[s]));e.length>0;){i=e.shift();let r=0,s=0;for(;r<t.length;r++){const a=t[r];a.type==="Combinator"&&(a.value===i?(s===-1&&(s=r-1),t.splice(r,1),r--):(s!==-1&&r-s>1&&(t.splice(s,r-s,n(t.slice(s,r),i)),r=s+1),s=-1))}s!==-1&&e.length&&t.splice(s,r-s,n(t.slice(s,r),i))}return i}function KF(t){const e=[],n={};let i,r=null,s=t.pos;for(;i=I_e(t);)i.type!=="Spaces"&&(i.type==="Combinator"?((r===null||r.type==="Combinator")&&(t.pos=s,t.error("Unexpected combinator")),n[i.value]=!0):r!==null&&r.type!=="Combinator"&&(n[" "]=!0,e.push({type:"Combinator",value:" "})),e.push(i),r=i,s=t.pos);return r!==null&&r.type==="Combinator"&&(t.pos-=s,t.error("Unexpected combinator")),{type:"Group",terms:e,combinator:L_e(e,n)||" ",disallowEmpty:!1,explicit:!1}}function j_e(t){let e;return t.eat(Hk),e=KF(t),t.eat(EP),e.explicit=!0,t.charCode()===ZF&&(t.pos++,e.disallowEmpty=!0),e}function I_e(t){let e=t.charCode();if(e<128&&Qg[e]===1)return N_e(t);switch(e){case EP:break;case Hk:return Qd(t,j_e(t));case AP:return t.nextCharCode()===Vy?R_e(t):M_e(t);case _R:return{type:"Combinator",value:t.substringToPos(t.pos+(t.nextCharCode()===_R?2:1))};case xR:return t.pos++,t.eat(xR),{type:"Combinator",value:"&&"};case TP:return t.pos++,{type:"Comma"};case Vy:return Qd(t,{type:"String",value:A_e(t)});case $_e:case x_e:case S_e:case C_e:case __e:return{type:"Spaces",value:Zy(t)};case T_e:return e=t.nextCharCode(),e<128&&Qg[e]===1?(t.pos++,{type:"AtKeyword",name:Fd(t)}):I2(t);case XF:case PP:case f3:case $P:case ZF:break;case Hy:if(e=t.nextCharCode(),e<48||e>57)return I2(t);break;default:return I2(t)}}function B_e(t){const e=new O_e.Tokenizer(t),n=KF(e);return e.pos!==t.length&&e.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}Vk.parse=B_e;const F_e=Vk,Xn={type:"Match"},or={type:"Mismatch"},RP={type:"DisallowEmpty"},Q_e=40,z_e=41;function Zi(t,e,n){return e===Xn&&n===or||t===Xn&&e===Xn&&n===Xn?t:(t.type==="If"&&t.else===or&&e===Xn&&(e=t.then,t=t.match),{type:"If",match:t,then:e,else:n})}function JF(t){return t.length>2&&t.charCodeAt(t.length-2)===Q_e&&t.charCodeAt(t.length-1)===z_e}function AR(t){return t.type==="Keyword"||t.type==="AtKeyword"||t.type==="Function"||t.type==="Type"&&JF(t.name)}function u3(t,e,n){switch(t){case" ":{let i=Xn;for(let r=e.length-1;r>=0;r--){const s=e[r];i=Zi(s,i,or)}return i}case"|":{let i=or,r=null;for(let s=e.length-1;s>=0;s--){let a=e[s];if(AR(a)&&(r===null&&s>0&&AR(e[s-1])&&(r=Object.create(null),i=Zi({type:"Enum",map:r},Xn,i)),r!==null)){const o=(JF(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(o in r)){r[o]=a;continue}}r=null,i=Zi(a,Xn,i)}return i}case"&&":{if(e.length>5)return{type:"MatchOnce",terms:e,all:!0};let i=or;for(let r=e.length-1;r>=0;r--){const s=e[r];let a;e.length>1?a=u3(t,e.filter((function(o){return o!==s})),!1):a=Xn,i=Zi(s,a,i)}return i}case"||":{if(e.length>5)return{type:"MatchOnce",terms:e,all:!1};let i=n?Xn:or;for(let r=e.length-1;r>=0;r--){const s=e[r];let a;e.length>1?a=u3(t,e.filter((function(o){return o!==s})),!0):a=Xn,i=Zi(s,a,i)}return i}}}function q_e(t){let e=Xn,n=DP(t.term);if(t.max===0)n=Zi(n,RP,or),e=Zi(n,null,or),e.then=Zi(Xn,Xn,e),t.comma&&(e.then.else=Zi({type:"Comma",syntax:t},e,or));else for(let i=t.min||1;i<=t.max;i++)t.comma&&e!==Xn&&(e=Zi({type:"Comma",syntax:t},e,or)),e=Zi(n,Zi(Xn,Xn,e),or);if(t.min===0)e=Zi(Xn,Xn,e);else for(let i=0;i<t.min-1;i++)t.comma&&e!==Xn&&(e=Zi({type:"Comma",syntax:t},e,or)),e=Zi(n,e,or);return e}function DP(t){if(typeof t=="function")return{type:"Generic",fn:t};switch(t.type){case"Group":{let e=u3(t.combinator,t.terms.map(DP),!1);return t.disallowEmpty&&(e=Zi(e,RP,or)),e}case"Multiplier":return q_e(t);case"Type":case"Property":return{type:t.type,name:t.name,syntax:t};case"Keyword":return{type:t.type,name:t.name.toLowerCase(),syntax:t};case"AtKeyword":return{type:t.type,name:"@"+t.name.toLowerCase(),syntax:t};case"Function":return{type:t.type,name:t.name.toLowerCase()+"(",syntax:t};case"String":return t.value.length===3?{type:"Token",value:t.value.charAt(1),syntax:t}:{type:t.type,value:t.value.substr(1,t.value.length-2).replace(/\\'/g,"'"),syntax:t};case"Token":return{type:t.type,value:t.value,syntax:t};case"Comma":return{type:t.type,syntax:t};default:throw new Error("Unknown node type:",t.type)}}function W_e(t,e){return typeof t=="string"&&(t=F_e.parse(t)),{type:"MatchGraph",match:DP(t),syntax:e||null,source:t}}Vh.DISALLOW_EMPTY=RP;Vh.MATCH=Xn;Vh.MISMATCH=or;Vh.buildMatchGraph=W_e;var MP={};const gn=Vh,Er=Oe,{hasOwnProperty:ER}=Object.prototype,U_e=0,V_e=1,Xy=2,NP=3,RR="Match",H_e="Mismatch",Z_e="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",DR=15e3;function eQ(t){let e=null,n=null,i=t;for(;i!==null;)n=i.prev,i.prev=e,e=i,i=n;return e}function B2(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const i=e.charCodeAt(n);let r=t.charCodeAt(n);if(r>=65&&r<=90&&(r=r|32),r!==i)return!1}return!0}function G_e(t){return t.type!==Er.Delim?!1:t.value!=="?"}function MR(t){return t===null?!0:t.type===Er.Comma||t.type===Er.Function||t.type===Er.LeftParenthesis||t.type===Er.LeftSquareBracket||t.type===Er.LeftCurlyBracket||G_e(t)}function NR(t){return t===null?!0:t.type===Er.RightParenthesis||t.type===Er.RightSquareBracket||t.type===Er.RightCurlyBracket||t.type===Er.Delim&&t.value==="/"}function tQ(t,e,n){function i(){do x++,O=x<t.length?t[x]:null;while(O!==null&&(O.type===Er.WhiteSpace||O.type===Er.Comment))}function r(S){const R=x+S;return R<t.length?t[R]:null}function s(S,R){return{nextState:S,matchStack:T,syntaxStack:u,thenStack:h,tokenIndex:x,prev:R}}function a(S){h={nextState:S,matchStack:T,syntaxStack:u,prev:h}}function o(S){m=s(S,m)}function l(){T={type:V_e,syntax:e.syntax,token:O,prev:T},i(),g=null,x>$&&($=x)}function c(){u={syntax:e.syntax,opts:e.syntax.opts||u!==null&&u.opts||null,prev:u},T={type:Xy,syntax:e.syntax,token:T.token,prev:T}}function f(){T.type===Xy?T=T.prev:T={type:NP,syntax:u.syntax,token:T.token,prev:T},u=u.prev}let u=null,h=null,m=null,g=null,v=0,w=null,O=null,x=-1,$=0,T={type:U_e,syntax:null,token:null,prev:null};for(i();w===null&&++v<DR;)switch(e.type){case"Match":if(h===null){if(O!==null&&(x!==t.length-1||O.value!=="\\0"&&O.value!=="\\9")){e=gn.MISMATCH;break}w=RR;break}if(e=h.nextState,e===gn.DISALLOW_EMPTY)if(h.matchStack===T){e=gn.MISMATCH;break}else e=gn.MATCH;for(;h.syntaxStack!==u;)f();h=h.prev;break;case"Mismatch":if(g!==null&&g!==!1)(m===null||x>m.tokenIndex)&&(m=g,g=!1);else if(m===null){w=H_e;break}e=m.nextState,h=m.thenStack,u=m.syntaxStack,T=m.matchStack,x=m.tokenIndex,O=x<t.length?t[x]:null,m=m.prev;break;case"MatchGraph":e=e.match;break;case"If":e.else!==gn.MISMATCH&&o(e.else),e.then!==gn.MATCH&&a(e.then),e=e.match;break;case"MatchOnce":e={type:"MatchOnceBuffer",syntax:e,index:0,mask:0};break;case"MatchOnceBuffer":{const _=e.syntax.terms;if(e.index===_.length){if(e.mask===0||e.syntax.all){e=gn.MISMATCH;break}e=gn.MATCH;break}if(e.mask===(1<<_.length)-1){e=gn.MATCH;break}for(;e.index<_.length;e.index++){const P=1<<e.index;if((e.mask&P)===0){o(e),a({type:"AddMatchOnce",syntax:e.syntax,mask:e.mask|P}),e=_[e.index++];break}}break}case"AddMatchOnce":e={type:"MatchOnceBuffer",syntax:e.syntax,index:0,mask:e.mask};break;case"Enum":if(O!==null){let _=O.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),ER.call(e.map,_)){e=e.map[_];break}}e=gn.MISMATCH;break;case"Generic":{const _=u!==null?u.opts:null,P=x+Math.floor(e.fn(O,r,_));if(!isNaN(P)&&P>x){for(;x<P;)l();e=gn.MATCH}else e=gn.MISMATCH;break}case"Type":case"Property":{const _=e.type==="Type"?"types":"properties",P=ER.call(n,_)?n[_][e.name]:null;if(!P||!P.match)throw new Error("Bad syntax reference: "+(e.type==="Type"?"<"+e.name+">":"<'"+e.name+"'>"));if(g!==!1&&O!==null&&e.type==="Type"&&(e.name==="custom-ident"&&O.type===Er.Ident||e.name==="length"&&O.value==="0")){g===null&&(g=s(e,m)),e=gn.MISMATCH;break}c(),e=P.match;break}case"Keyword":{const _=e.name;if(O!==null){let P=O.value;if(P.indexOf("\\")!==-1&&(P=P.replace(/\\[09].*$/,"")),B2(P,_)){l(),e=gn.MATCH;break}}e=gn.MISMATCH;break}case"AtKeyword":case"Function":if(O!==null&&B2(O.value,e.name)){l(),e=gn.MATCH;break}e=gn.MISMATCH;break;case"Token":if(O!==null&&O.value===e.value){l(),e=gn.MATCH;break}e=gn.MISMATCH;break;case"Comma":O!==null&&O.type===Er.Comma?MR(T.token)?e=gn.MISMATCH:(l(),e=NR(O)?gn.MISMATCH:gn.MATCH):e=MR(T.token)||NR(O)?gn.MATCH:gn.MISMATCH;break;case"String":let S="",R=x;for(;R<t.length&&S.length<e.value.length;R++)S+=t[R].value;if(B2(S,e.value)){for(;x<R;)l();e=gn.MATCH}else e=gn.MISMATCH;break;default:throw new Error("Unknown node type: "+e.type)}switch(w){case null:console.warn("[csstree-match] BREAK after "+DR+" iterations"),w=Z_e,T=null;break;case RR:for(;u!==null;)f();break;default:T=null}return{tokens:t,reason:w,iterations:v,match:T,longestMatch:$}}function X_e(t,e,n){const i=tQ(t,e,n||{});if(i.match!==null){let r=eQ(i.match).prev;for(i.match=[];r!==null;){switch(r.type){case Xy:case NP:i.match.push({type:r.type,syntax:r.syntax});break;default:i.match.push({token:r.token.value,node:r.token.node});break}r=r.prev}}return i}function Y_e(t,e,n){const i=tQ(t,e,n||{});if(i.match===null)return i;let r=i.match,s=i.match={syntax:e.syntax||null,match:[]};const a=[s];for(r=eQ(r).prev;r!==null;){switch(r.type){case Xy:s.match.push(s={syntax:r.syntax,match:[]}),a.push(s);break;case NP:a.pop(),s=a[a.length-1];break;default:s.match.push({syntax:r.syntax||null,token:r.token.value,node:r.token.node})}r=r.prev}return i}MP.matchAsList=X_e;MP.matchAsTree=Y_e;var I1={};function nQ(t){function e(r){return r===null?!1:r.type==="Type"||r.type==="Property"||r.type==="Keyword"}function n(r){if(Array.isArray(r.match)){for(let s=0;s<r.match.length;s++)if(n(r.match[s]))return e(r.syntax)&&i.unshift(r.syntax),!0}else if(r.node===t)return i=e(r.syntax)?[r.syntax]:[],!0;return!1}let i=null;return this.matched!==null&&n(this.matched),i}function K_e(t,e){return LP(this,t,(n=>n.type==="Type"&&n.name===e))}function J_e(t,e){return LP(this,t,(n=>n.type==="Property"&&n.name===e))}function e3e(t){return LP(this,t,(e=>e.type==="Keyword"))}function LP(t,e,n){const i=nQ.call(t,e);return i===null?!1:i.some(n)}I1.getTrace=nQ;I1.isKeyword=e3e;I1.isProperty=J_e;I1.isType=K_e;var iQ={};const t3e=iu;function rQ(t){return"node"in t?t.node:rQ(t.match[0])}function sQ(t){return"node"in t?t.node:sQ(t.match[t.match.length-1])}function n3e(t,e,n,i,r){function s(o){if(o.syntax!==null&&o.syntax.type===i&&o.syntax.name===r){const l=rQ(o),c=sQ(o);t.syntax.walk(e,(function(f,u,h){if(f===l){const m=new t3e.List;do{if(m.appendData(u.data),u.data===c)break;u=u.next}while(u!==null);a.push({parent:h,nodes:m})}}))}Array.isArray(o.match)&&o.match.forEach(s)}const a=[];return n.matched!==null&&s(n.matched),a}iQ.matchFragments=n3e;var aQ={};const i3e=iu,{hasOwnProperty:gg}=Object.prototype;function F2(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0}function LR(t){return!!t&&F2(t.offset)&&F2(t.line)&&F2(t.column)}function r3e(t,e){return function(i,r){if(!i||i.constructor!==Object)return r(i,"Type of node should be an Object");for(let s in i){let a=!0;if(gg.call(i,s)!==!1){if(s==="type")i.type!==t&&r(i,"Wrong node type `"+i.type+"`, expected `"+t+"`");else if(s==="loc"){if(i.loc===null)continue;if(i.loc&&i.loc.constructor===Object)if(typeof i.loc.source!="string")s+=".source";else if(!LR(i.loc.start))s+=".start";else if(!LR(i.loc.end))s+=".end";else continue;a=!1}else if(e.hasOwnProperty(s)){a=!1;for(let o=0;!a&&o<e[s].length;o++){const l=e[s][o];switch(l){case String:a=typeof i[s]=="string";break;case Boolean:a=typeof i[s]=="boolean";break;case null:a=i[s]===null;break;default:typeof l=="string"?a=i[s]&&i[s].type===l:Array.isArray(l)&&(a=i[s]instanceof i3e.List)}}}else r(i,"Unknown field `"+s+"` for "+t+" node type");a||r(i,"Bad value for `"+t+"."+s+"`")}}for(const s in e)gg.call(e,s)&&gg.call(i,s)===!1&&r(i,"Field `"+t+"."+s+"` is missed")}}function s3e(t,e){const n=e.structure,i={type:String,loc:!0},r={type:'"'+t+'"'};for(const s in n){if(gg.call(n,s)===!1)continue;const a=[],o=i[s]=Array.isArray(n[s])?n[s].slice():[n[s]];for(let l=0;l<o.length;l++){const c=o[l];if(c===String||c===Boolean)a.push(c.name);else if(c===null)a.push("null");else if(typeof c=="string")a.push("<"+c+">");else if(Array.isArray(c))a.push("List");else throw new Error("Wrong value `"+c+"` in `"+t+"."+s+"` structure definition")}r[s]=a.join(" | ")}return{docs:r,check:r3e(t,i)}}function a3e(t){const e={};if(t.node){for(const n in t.node)if(gg.call(t.node,n)){const i=t.node[n];if(i.structure)e[n]=s3e(n,i);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return e}aQ.getStructureFromConfig=a3e;var jP={};const Hm=function(){};function jR(t){return typeof t=="function"?t:Hm}function o3e(t,e,n){function i(a){switch(r.call(n,a),a.type){case"Group":a.terms.forEach(i);break;case"Multiplier":i(a.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+a.type)}s.call(n,a)}let r=Hm,s=Hm;if(typeof e=="function"?r=e:e&&(r=jR(e.enter),s=jR(e.leave)),r===Hm&&s===Hm)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");i(t)}jP.walk=o3e;const Ju=yP,um=ru,l3e=xP,IR=o_e,c3e=d_e,d3=Vh,BR=MP,f3e=I1,FR=iQ,u3e=aQ,d3e=Vk,oQ=qk,h3e=jP,p3e=d3.buildMatchGraph(l3e.cssWideKeywords.join(" | "));function h3(t,e,n){const i={};for(const r in t)t[r].syntax&&(i[r]=n?t[r].syntax:oQ.generate(t[r].syntax,{compact:e}));return i}function m3e(t,e,n){const i={};for(const[r,s]of Object.entries(t))i[r]={prelude:s.prelude&&(n?s.prelude.syntax:oQ.generate(s.prelude.syntax,{compact:e})),descriptors:s.descriptors&&h3(s.descriptors,e,n)};return i}function g3e(t){for(let e=0;e<t.length;e++)if(t[e].value.toLowerCase()==="var(")return!0;return!1}function ha(t,e,n){return{matched:t,iterations:n,error:e,...f3e}}function Wu(t,e,n,i){const r=c3e(n,t.syntax);let s;return g3e(r)?ha(null,new Error("Matching for a tree with var() is not supported")):(i&&(s=BR.matchAsTree(r,t.cssWideKeywordsSyntax,t)),(!i||!s.match)&&(s=BR.matchAsTree(r,e.match,t),!s.match)?ha(null,new Ju.SyntaxMatchError(s.reason,e.syntax,n,s),s.iterations):ha(s.match,null,s.iterations))}class v3e{constructor(e,n,i){if(this.cssWideKeywordsSyntax=p3e,this.syntax=n,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||u3e.getStructureFromConfig(e),e){if(e.types)for(const r in e.types)this.addType_(r,e.types[r]);if(e.generic){this.generic=!0;for(const r in IR)this.addType_(r,IR[r])}if(e.atrules)for(const r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(const r in e.properties)this.addProperty_(r,e.properties[r])}}checkStructure(e){function n(s,a){r.push({node:s,message:a})}const i=this.structure,r=[];return this.syntax.walk(e,(function(s){i.hasOwnProperty(s.type)?i[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")})),r.length?r:!1}createDescriptor(e,n,i,r=null){const s={type:n,name:i},a={type:n,name:i,parent:r,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?a.match=d3.buildMatchGraph(e,s):(typeof e=="string"?Object.defineProperty(a,"syntax",{get(){return Object.defineProperty(a,"syntax",{value:d3e.parse(e)}),a.syntax}}):a.syntax=e,Object.defineProperty(a,"match",{get(){return Object.defineProperty(a,"match",{value:d3.buildMatchGraph(a.syntax,s)}),a.match}})),a}addAtrule_(e,n){n&&(this.atrules[e]={type:"Atrule",name:e,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",e):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce(((i,r)=>(i[r]=this.createDescriptor(n.descriptors[r],"AtruleDescriptor",r,e),i)),Object.create(null)):null})}addProperty_(e,n){n&&(this.properties[e]=this.createDescriptor(n,"Property",e))}addType_(e,n){n&&(this.types[e]=this.createDescriptor(n,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Ju.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,n){const i=this.checkAtruleName(e);if(i)return i;const r=this.getAtrule(e);if(!r.prelude&&n)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!n&&!Wu(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,n){const i=this.checkAtruleName(e);if(i)return i;const r=this.getAtrule(e),s=um.keyword(n);if(!r.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[s.name]&&!r.descriptors[s.basename])return new Ju.SyntaxReferenceError("Unknown at-rule descriptor",n)}checkPropertyName(e){if(!this.getProperty(e))return new Ju.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,n){const i=this.checkAtrulePrelude(e,n);if(i)return ha(null,i);const r=this.getAtrule(e);return r.prelude?Wu(this,r.prelude,n||"",!1):ha(null,null)}matchAtruleDescriptor(e,n,i){const r=this.checkAtruleDescriptorName(e,n);if(r)return ha(null,r);const s=this.getAtrule(e),a=um.keyword(n);return Wu(this,s.descriptors[a.name]||s.descriptors[a.basename],i,!1)}matchDeclaration(e){return e.type!=="Declaration"?ha(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,n){if(um.property(e).custom)return ha(null,new Error("Lexer matching doesn't applicable for custom properties"));const i=this.checkPropertyName(e);return i?ha(null,i):Wu(this,this.getProperty(e),n,!0)}matchType(e,n){const i=this.getType(e);return i?Wu(this,i,n,!1):ha(null,new Ju.SyntaxReferenceError("Unknown type",e))}match(e,n){return typeof e!="string"&&(!e||!e.type)?ha(null,new Ju.SyntaxReferenceError("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Wu(this,e,n,!1))}findValueFragments(e,n,i,r){return FR.matchFragments(this,n,this.matchProperty(e,n),i,r)}findDeclarationValueFragments(e,n,i){return FR.matchFragments(this,e.value,this.matchDeclaration(e),n,i)}findAllFragments(e,n,i){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:s=>{r.push.apply(r,this.findDeclarationValueFragments(s,n,i))}}),r}getAtrule(e,n=!0){const i=um.keyword(e);return(i.vendor&&n?this.atrules[i.name]||this.atrules[i.basename]:this.atrules[i.name])||null}getAtrulePrelude(e,n=!0){const i=this.getAtrule(e,n);return i&&i.prelude||null}getAtruleDescriptor(e,n){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[n]||null}getProperty(e,n=!0){const i=um.property(e);return(i.vendor&&n?this.properties[i.name]||this.properties[i.basename]:this.properties[i.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,s,a,o){if(a.has(s))return a.get(s);a.set(s,!1),o.syntax!==null&&h3e.walk(o.syntax,(function(l){if(l.type!=="Type"&&l.type!=="Property")return;const c=l.type==="Type"?r.types:r.properties,f=l.type==="Type"?n:i;(!hasOwnProperty.call(c,l.name)||e(r,l.name,f,c[l.name]))&&a.set(s,!0)}),this)}let n=new Map,i=new Map;for(const r in this.types)e(this,r,n,this.types[r]);for(const r in this.properties)e(this,r,i,this.properties[r]);return n=[...n.keys()].filter((r=>n.get(r))),i=[...i.keys()].filter((r=>i.get(r))),n.length||i.length?{types:n,properties:i}:null}dump(e,n){return{generic:this.generic,types:h3(this.types,!n,e),properties:h3(this.properties,!n,e),atrules:m3e(this.atrules,!n,e)}}toString(){return JSON.stringify(this.dump())}}bP.Lexer=v3e;const{hasOwnProperty:yd}=Object.prototype,b3e={generic:!0,types:p3,atrules:{prelude:zR,descriptors:zR},properties:p3,parseContext:y3e,scope:cQ,atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Zk(t){return t&&t.constructor===Object}function lQ(t){return Zk(t)?{...t}:t}function y3e(t,e){return Object.assign(t,e)}function cQ(t,e){for(const n in e)yd.call(e,n)&&(Zk(t[n])?cQ(t[n],e[n]):t[n]=lQ(e[n]));return t}function QR(t,e){return typeof e=="string"&&/^\s*\|/.test(e)?typeof t=="string"?t+e:e.replace(/^\s*\|\s*/,""):e||null}function p3(t,e){if(typeof e=="string")return QR(t,e);const n={...t};for(let i in e)yd.call(e,i)&&(n[i]=QR(yd.call(t,i)?t[i]:void 0,e[i]));return n}function zR(t,e){const n=p3(t,e);return!Zk(n)||Object.keys(n).length?n:null}function Zm(t,e,n){for(const i in n)if(yd.call(n,i)!==!1){if(n[i]===!0)yd.call(e,i)&&(t[i]=lQ(e[i]));else if(n[i]){if(typeof n[i]=="function"){const r=n[i];t[i]=r({},t[i]),t[i]=r(t[i]||{},e[i])}else if(Zk(n[i])){const r={};for(let s in t[i])r[s]=Zm({},t[i][s],n[i]);for(let s in e[i])r[s]=Zm(r[s]||{},e[i][s],n[i]);t[i]=r}else if(Array.isArray(n[i])){const r={},s=n[i].reduce((function(a,o){return a[o]=!0,a}),{});for(const[a,o]of Object.entries(t[i]||{}))r[a]={},o&&Zm(r[a],o,s);for(const a in e[i])yd.call(e[i],a)&&(r[a]||(r[a]={}),e[i]&&e[i][a]&&Zm(r[a],e[i][a],s));t[i]=r}}}return t}const w3e=(t,e)=>Zm(t,e,b3e);var k3e=w3e;const O3e=Le,x3e=EF,S3e=MF,_3e=IF,C3e=BF,qR=bP,m3=k3e;function fQ(t){const e=x3e.createParser(t),n=C3e.createWalker(t),i=S3e.createGenerator(t),{fromPlainObject:r,toPlainObject:s}=_3e.createConvertor(n),a={lexer:null,createLexer:o=>new qR.Lexer(o,a,a.lexer.structure),tokenize:O3e.tokenize,parse:e,generate:i,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:r,toPlainObject:s,fork(o){const l=m3({},t);return fQ(typeof o=="function"?o(l,Object.assign):m3(l,o))}};return a.lexer=new qR.Lexer({generic:!0,types:t.types,atrules:t.atrules,properties:t.properties,node:t.node},a),a}const $3e=t=>fQ(m3({},t));var uQ=$3e,P3e={generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fit-content()":"fit-content( [<length>|<percentage>] )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length>|<percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length>|<percentage>|min-content|max-content|auto] , [<length>|<percentage>|<flex>|min-content|max-content|auto] )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","reversed-counter-name":"reversed( <counter-name> )",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","positive-integer":"<integer [0,∞]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end","caret-color":"auto|<color>",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[size||layout||style||paint]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}}}},pt={},Hh={};const ji=Oe,dQ=qt,uo=43,as=45,Wb=110,uf=!0,T3e=!1;function Ub(t,e){let n=this.tokenStart+t;const i=this.charCodeAt(n);for((i===uo||i===as)&&(e&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)dQ.isDigit(this.charCodeAt(n))||this.error("Integer is expected",n)}function fd(t){return Ub.call(this,0,t)}function ql(t,e){if(!this.cmpChar(this.tokenStart+t,e)){let n="";switch(e){case Wb:n="N is expected";break;case as:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+t)}}function Q2(){let t=0,e=0,n=this.tokenType;for(;n===ji.WhiteSpace||n===ji.Comment;)n=this.lookupType(++t);if(n!==ji.Number)if(this.isDelim(uo,t)||this.isDelim(as,t)){e=this.isDelim(uo,t)?uo:as;do n=this.lookupType(++t);while(n===ji.WhiteSpace||n===ji.Comment);n!==ji.Number&&(this.skip(t),fd.call(this,uf))}else return null;return t>0&&this.skip(t),e===0&&(n=this.charCodeAt(this.tokenStart),n!==uo&&n!==as&&this.error("Number sign is expected")),fd.call(this,e!==0),e===as?"-"+this.consume(ji.Number):this.consume(ji.Number)}const A3e="AnPlusB",E3e={a:[String,null],b:[String,null]};function R3e(){const t=this.tokenStart;let e=null,n=null;if(this.tokenType===ji.Number)fd.call(this,T3e),n=this.consume(ji.Number);else if(this.tokenType===ji.Ident&&this.cmpChar(this.tokenStart,as))switch(e="-1",ql.call(this,1,Wb),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Q2.call(this);break;case 3:ql.call(this,2,as),this.next(),this.skipSC(),fd.call(this,uf),n="-"+this.consume(ji.Number);break;default:ql.call(this,2,as),Ub.call(this,3,uf),this.next(),n=this.substrToCursor(t+2)}else if(this.tokenType===ji.Ident||this.isDelim(uo)&&this.lookupType(1)===ji.Ident){let i=0;switch(e="1",this.isDelim(uo)&&(i=1,this.next()),ql.call(this,0,Wb),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Q2.call(this);break;case 2:ql.call(this,1,as),this.next(),this.skipSC(),fd.call(this,uf),n="-"+this.consume(ji.Number);break;default:ql.call(this,1,as),Ub.call(this,2,uf),this.next(),n=this.substrToCursor(t+i+1)}}else if(this.tokenType===ji.Dimension){const i=this.charCodeAt(this.tokenStart),r=i===uo||i===as;let s=this.tokenStart+r;for(;s<this.tokenEnd&&dQ.isDigit(this.charCodeAt(s));s++);s===this.tokenStart+r&&this.error("Integer is expected",this.tokenStart+r),ql.call(this,s-this.tokenStart,Wb),e=this.substring(t,s),s+1===this.tokenEnd?(this.next(),n=Q2.call(this)):(ql.call(this,s-this.tokenStart+1,as),s+2===this.tokenEnd?(this.next(),this.skipSC(),fd.call(this,uf),n="-"+this.consume(ji.Number)):(Ub.call(this,s-this.tokenStart+2,uf),this.next(),n=this.substrToCursor(s+1)))}else this.error();return e!==null&&e.charCodeAt(0)===uo&&(e=e.substr(1)),n!==null&&n.charCodeAt(0)===uo&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.tokenStart),a:e,b:n}}function D3e(t){if(t.a){const e=t.a==="+1"&&"n"||t.a==="1"&&"n"||t.a==="-1"&&"-n"||t.a+"n";if(t.b){const n=t.b[0]==="-"||t.b[0]==="+"?t.b:"+"+t.b;this.tokenize(e+n)}else this.tokenize(e)}else this.tokenize(t.b)}Hh.generate=D3e;Hh.name=A3e;Hh.parse=R3e;Hh.structure=E3e;var su={};const ho=Oe;function WR(t){return this.Raw(t,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function M3e(){for(let t=1,e;e=this.lookupType(t);t++){if(e===ho.RightCurlyBracket)return!0;if(e===ho.LeftCurlyBracket||e===ho.AtKeyword)return!1}return!1}const N3e="Atrule",L3e="atrule",j3e={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function I3e(){const t=this.tokenStart;let e,n,i=null,r=null;switch(this.eat(ho.AtKeyword),e=this.substrToCursor(t+1),n=e.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==ho.LeftCurlyBracket&&this.tokenType!==ho.Semicolon&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),WR):i=WR.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case ho.Semicolon:this.next();break;case ho.LeftCurlyBracket:hasOwnProperty.call(this.atrule,n)&&typeof this.atrule[n].block=="function"?r=this.atrule[n].block.call(this):r=this.Block(M3e.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:e,prelude:i,block:r}}function B3e(t){this.token(ho.AtKeyword,"@"+t.name),t.prelude!==null&&this.node(t.prelude),t.block?this.node(t.block):this.token(ho.Semicolon,";")}su.generate=B3e;su.name=N3e;su.parse=I3e;su.structure=j3e;su.walkContext=L3e;var au={};const UR=Oe,F3e="AtrulePrelude",Q3e="atrulePrelude",z3e={children:[[]]};function q3e(t){let e=null;return t!==null&&(t=t.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==UR.LeftCurlyBracket&&this.tokenType!==UR.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}}function W3e(t){this.children(t)}au.generate=W3e;au.name=F3e;au.parse=q3e;au.structure=z3e;au.walkContext=Q3e;var Zh={};const Us=Oe,U3e=36,hQ=42,Vb=61,V3e=94,g3=124,H3e=126;function Z3e(){this.eof&&this.error("Unexpected end of input");const t=this.tokenStart;let e=!1;return this.isDelim(hQ)?(e=!0,this.next()):this.isDelim(g3)||this.eat(Us.Ident),this.isDelim(g3)?this.charCodeAt(this.tokenStart+1)!==Vb?(this.next(),this.eat(Us.Ident)):e&&this.error("Identifier is expected",this.tokenEnd):e&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function G3e(){const t=this.tokenStart,e=this.charCodeAt(t);return e!==Vb&&e!==H3e&&e!==V3e&&e!==U3e&&e!==hQ&&e!==g3&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),e!==Vb&&(this.isDelim(Vb)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(t)}const X3e="AttributeSelector",Y3e={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function K3e(){const t=this.tokenStart;let e,n=null,i=null,r=null;return this.eat(Us.LeftSquareBracket),this.skipSC(),e=Z3e.call(this),this.skipSC(),this.tokenType!==Us.RightSquareBracket&&(this.tokenType!==Us.Ident&&(n=G3e.call(this),this.skipSC(),i=this.tokenType===Us.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===Us.Ident&&(r=this.consume(Us.Ident),this.skipSC())),this.eat(Us.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:i,flags:r}}function J3e(t){this.token(Us.Delim,"["),this.node(t.name),t.matcher!==null&&(this.tokenize(t.matcher),this.node(t.value)),t.flags!==null&&this.token(Us.Ident,t.flags),this.token(Us.Delim,"]")}Zh.generate=J3e;Zh.name=X3e;Zh.parse=K3e;Zh.structure=Y3e;var ou={};const ya=Oe;function pQ(t){return this.Raw(t,null,!0)}function eCe(){return this.parseWithFallback(this.Rule,pQ)}function VR(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}function tCe(){if(this.tokenType===ya.Semicolon)return VR.call(this,this.tokenIndex);const t=this.parseWithFallback(this.Declaration,VR);return this.tokenType===ya.Semicolon&&this.next(),t}const nCe="Block",iCe="block",rCe={children:[["Atrule","Rule","Declaration"]]};function sCe(t){const e=t?tCe:eCe,n=this.tokenStart;let i=this.createList();this.eat(ya.LeftCurlyBracket);e:for(;!this.eof;)switch(this.tokenType){case ya.RightCurlyBracket:break e;case ya.WhiteSpace:case ya.Comment:this.next();break;case ya.AtKeyword:i.push(this.parseWithFallback(this.Atrule,pQ));break;default:i.push(e.call(this))}return this.eof||this.eat(ya.RightCurlyBracket),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:i}}function aCe(t){this.token(ya.LeftCurlyBracket,"{"),this.children(t,(e=>{e.type==="Declaration"&&this.token(ya.Semicolon,";")})),this.token(ya.RightCurlyBracket,"}")}ou.generate=aCe;ou.name=nCe;ou.parse=sCe;ou.structure=rCe;ou.walkContext=iCe;var Gh={};const Yy=Oe,oCe="Brackets",lCe={children:[[]]};function cCe(t,e){const n=this.tokenStart;let i=null;return this.eat(Yy.LeftSquareBracket),i=t.call(this,e),this.eof||this.eat(Yy.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:i}}function fCe(t){this.token(Yy.Delim,"["),this.children(t),this.token(Yy.Delim,"]")}Gh.generate=fCe;Gh.name=oCe;Gh.parse=cCe;Gh.structure=lCe;var Xh={};const mQ=Oe,uCe="CDC",dCe=[];function hCe(){const t=this.tokenStart;return this.eat(mQ.CDC),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function pCe(){this.token(mQ.CDC,"-->")}Xh.generate=pCe;Xh.name=uCe;Xh.parse=hCe;Xh.structure=dCe;var Yh={};const gQ=Oe,mCe="CDO",gCe=[];function vCe(){const t=this.tokenStart;return this.eat(gQ.CDO),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function bCe(){this.token(gQ.CDO,"<!--")}Yh.generate=bCe;Yh.name=mCe;Yh.parse=vCe;Yh.structure=gCe;var Kh={};const v3=Oe,yCe=46,wCe="ClassSelector",kCe={name:String};function OCe(){return this.eatDelim(yCe),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(v3.Ident)}}function xCe(t){this.token(v3.Delim,"."),this.token(v3.Ident,t.name)}Kh.generate=xCe;Kh.name=wCe;Kh.parse=OCe;Kh.structure=kCe;var Jh={};const HR=Oe,SCe=43,ZR=47,_Ce=62,CCe=126,$Ce="Combinator",PCe={name:String};function TCe(){const t=this.tokenStart;let e;switch(this.tokenType){case HR.WhiteSpace:e=" ";break;case HR.Delim:switch(this.charCodeAt(this.tokenStart)){case _Ce:case SCe:case CCe:this.next();break;case ZR:this.next(),this.eatIdent("deep"),this.eatDelim(ZR);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t);break}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function ACe(t){this.tokenize(t.name)}Jh.generate=ACe;Jh.name=$Ce;Jh.parse=TCe;Jh.structure=PCe;var ep={};const vQ=Oe,ECe=42,RCe=47,DCe="Comment",MCe={value:String};function NCe(){const t=this.tokenStart;let e=this.tokenEnd;return this.eat(vQ.Comment),e-t+2>=2&&this.charCodeAt(e-2)===ECe&&this.charCodeAt(e-1)===RCe&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,e)}}function LCe(t){this.token(vQ.Comment,"/*"+t.value+"*/")}ep.generate=LCe;ep.name=DCe;ep.parse=NCe;ep.structure=MCe;var lu={};const jCe=ru,Dr=Oe,bQ=33,ICe=35,BCe=36,FCe=38,QCe=42,zCe=43,GR=47;function qCe(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!0)}function WCe(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!1)}function UCe(){const t=this.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==Dr.Semicolon&&this.isDelim(bQ)===!1&&this.isBalanceEdge(t)===!1&&this.error(),e}const VCe="Declaration",HCe="declaration",ZCe={important:[Boolean,String],property:String,value:["Value","Raw"]};function GCe(){const t=this.tokenStart,e=this.tokenIndex,n=YCe.call(this),i=jCe.isCustomProperty(n),r=i?this.parseCustomProperty:this.parseValue,s=i?WCe:qCe;let a=!1,o;this.skipSC(),this.eat(Dr.Colon);const l=this.tokenIndex;if(i||this.skipSC(),r?o=this.parseWithFallback(UCe,s):o=s.call(this,this.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty){for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Dr.WhiteSpace){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(bQ)&&(a=KCe.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Dr.Semicolon&&this.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:a,property:n,value:o}}function XCe(t){this.token(Dr.Ident,t.property),this.token(Dr.Colon,":"),this.node(t.value),t.important&&(this.token(Dr.Delim,"!"),this.token(Dr.Ident,t.important===!0?"important":t.important))}function YCe(){const t=this.tokenStart;if(this.tokenType===Dr.Delim)switch(this.charCodeAt(this.tokenStart)){case QCe:case BCe:case zCe:case ICe:case FCe:this.next();break;case GR:this.next(),this.isDelim(GR)&&this.next();break}return this.tokenType===Dr.Hash?this.eat(Dr.Hash):this.eat(Dr.Ident),this.substrToCursor(t)}function KCe(){this.eat(Dr.Delim),this.skipSC();const t=this.consume(Dr.Ident);return t==="important"?!0:t}lu.generate=XCe;lu.name=VCe;lu.parse=GCe;lu.structure=ZCe;lu.walkContext=HCe;var tp={};const Hb=Oe;function JCe(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}const e$e="DeclarationList",t$e={children:[["Declaration"]]};function n$e(){const t=this.createList();for(;!this.eof;)switch(this.tokenType){case Hb.WhiteSpace:case Hb.Comment:case Hb.Semicolon:this.next();break;default:t.push(this.parseWithFallback(this.Declaration,JCe))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function i$e(t){this.children(t,(e=>{e.type==="Declaration"&&this.token(Hb.Semicolon,";")}))}tp.generate=i$e;tp.name=e$e;tp.parse=n$e;tp.structure=t$e;var np={};const yQ=Oe,r$e="Dimension",s$e={value:String,unit:String};function a$e(){const t=this.tokenStart,e=this.consumeNumber(yQ.Dimension);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:e,unit:this.substring(t+e.length,this.tokenStart)}}function o$e(t){this.token(yQ.Dimension,t.value+t.unit)}np.generate=o$e;np.name=r$e;np.parse=a$e;np.structure=s$e;var cu={};const b3=Oe,l$e="Function",c$e="function",f$e={name:String,children:[[]]};function u$e(t,e){const n=this.tokenStart,i=this.consumeFunctionName(),r=i.toLowerCase();let s;return s=e.hasOwnProperty(r)?e[r].call(this,e):t.call(this,e),this.eof||this.eat(b3.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:i,children:s}}function d$e(t){this.token(b3.Function,t.name+"("),this.children(t),this.token(b3.RightParenthesis,")")}cu.generate=d$e;cu.name=l$e;cu.parse=u$e;cu.structure=f$e;cu.walkContext=c$e;var fu={};const wQ=Oe,h$e="XXX",p$e="Hash",m$e={value:String};function g$e(){const t=this.tokenStart;return this.eat(wQ.Hash),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function v$e(t){this.token(wQ.Hash,"#"+t.value)}fu.generate=v$e;fu.name=p$e;fu.parse=g$e;fu.structure=m$e;fu.xxx=h$e;var ip={};const kQ=Oe,b$e="Identifier",y$e={name:String};function w$e(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(kQ.Ident)}}function k$e(t){this.token(kQ.Ident,t.name)}ip.generate=k$e;ip.name=b$e;ip.parse=w$e;ip.structure=y$e;var rp={};const OQ=Oe,O$e="IdSelector",x$e={name:String};function S$e(){const t=this.tokenStart;return this.eat(OQ.Hash),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function _$e(t){this.token(OQ.Delim,"#"+t.name)}rp.generate=_$e;rp.name=O$e;rp.parse=S$e;rp.structure=x$e;var sp={};const is=Oe,C$e="MediaFeature",$$e={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function P$e(){const t=this.tokenStart;let e,n=null;if(this.eat(is.LeftParenthesis),this.skipSC(),e=this.consume(is.Ident),this.skipSC(),this.tokenType!==is.RightParenthesis){switch(this.eat(is.Colon),this.skipSC(),this.tokenType){case is.Number:this.lookupNonWSType(1)===is.Delim?n=this.Ratio():n=this.Number();break;case is.Dimension:n=this.Dimension();break;case is.Ident:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(is.RightParenthesis),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function T$e(t){this.token(is.LeftParenthesis,"("),this.token(is.Ident,t.name),t.value!==null&&(this.token(is.Colon,":"),this.node(t.value)),this.token(is.RightParenthesis,")")}sp.generate=T$e;sp.name=C$e;sp.parse=P$e;sp.structure=$$e;var ap={};const Mv=Oe,A$e="MediaQuery",E$e={children:[["Identifier","MediaFeature","WhiteSpace"]]};function R$e(){const t=this.createList();let e=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Mv.Comment:case Mv.WhiteSpace:this.next();continue;case Mv.Ident:e=this.Identifier();break;case Mv.LeftParenthesis:e=this.MediaFeature();break;default:break e}t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}}function D$e(t){this.children(t)}ap.generate=D$e;ap.name=A$e;ap.parse=R$e;ap.structure=E$e;var op={};const xQ=Oe,M$e="MediaQueryList",N$e={children:[["MediaQuery"]]};function L$e(){const t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),this.tokenType===xQ.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function j$e(t){this.children(t,(()=>this.token(xQ.Comma,",")))}op.generate=j$e;op.name=M$e;op.parse=L$e;op.structure=N$e;var lp={};const I$e=Oe,B$e="Nth",F$e={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Q$e(){this.skipSC();const t=this.tokenStart;let e=t,n=null,i;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?i=this.Identifier():i=this.AnPlusB(),e=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),e=this.tokenStart),{type:"Nth",loc:this.getLocation(t,e),nth:i,selector:n}}function z$e(t){this.node(t.nth),t.selector!==null&&(this.token(I$e.Ident,"of"),this.node(t.selector))}lp.generate=z$e;lp.name=B$e;lp.parse=Q$e;lp.structure=F$e;var cp={};const SQ=Oe,q$e="Number",W$e={value:String};function U$e(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(SQ.Number)}}function V$e(t){this.token(SQ.Number,t.value)}cp.generate=V$e;cp.name=q$e;cp.parse=U$e;cp.structure=W$e;var fp={};const H$e="Operator",Z$e={value:String};function G$e(){const t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function X$e(t){this.tokenize(t.value)}fp.generate=X$e;fp.name=H$e;fp.parse=G$e;fp.structure=Z$e;var up={};const Ky=Oe,Y$e="Parentheses",K$e={children:[[]]};function J$e(t,e){const n=this.tokenStart;let i=null;return this.eat(Ky.LeftParenthesis),i=t.call(this,e),this.eof||this.eat(Ky.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:i}}function e4e(t){this.token(Ky.LeftParenthesis,"("),this.children(t),this.token(Ky.RightParenthesis,")")}up.generate=e4e;up.name=Y$e;up.parse=J$e;up.structure=K$e;var dp={};const _Q=Oe,t4e="Percentage",n4e={value:String};function i4e(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(_Q.Percentage)}}function r4e(t){this.token(_Q.Percentage,t.value+"%")}dp.generate=r4e;dp.name=t4e;dp.parse=i4e;dp.structure=n4e;var uu={};const uc=Oe,s4e="PseudoClassSelector",a4e="function",o4e={name:String,children:[["Raw"],null]};function l4e(){const t=this.tokenStart;let e=null,n,i;return this.eat(uc.Colon),this.tokenType===uc.Function?(n=this.consumeFunctionName(),i=n.toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),e=this.pseudo[i].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(this.tokenIndex,null,!1))),this.eat(uc.RightParenthesis)):n=this.consume(uc.Ident),{type:"PseudoClassSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function c4e(t){this.token(uc.Colon,":"),t.children===null?this.token(uc.Ident,t.name):(this.token(uc.Function,t.name+"("),this.children(t),this.token(uc.RightParenthesis,")"))}uu.generate=c4e;uu.name=s4e;uu.parse=l4e;uu.structure=o4e;uu.walkContext=a4e;var du={};const po=Oe,f4e="PseudoElementSelector",u4e="function",d4e={name:String,children:[["Raw"],null]};function h4e(){const t=this.tokenStart;let e=null,n,i;return this.eat(po.Colon),this.eat(po.Colon),this.tokenType===po.Function?(n=this.consumeFunctionName(),i=n.toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),e=this.pseudo[i].call(this),this.skipSC()):(e=this.createList(),e.push(this.Raw(this.tokenIndex,null,!1))),this.eat(po.RightParenthesis)):n=this.consume(po.Ident),{type:"PseudoElementSelector",loc:this.getLocation(t,this.tokenStart),name:n,children:e}}function p4e(t){this.token(po.Colon,":"),this.token(po.Colon,":"),t.children===null?this.token(po.Ident,t.name):(this.token(po.Function,t.name+"("),this.children(t),this.token(po.RightParenthesis,")"))}du.generate=p4e;du.name=f4e;du.parse=h4e;du.structure=d4e;du.walkContext=u4e;var hp={};const Zb=Oe,m4e=qt,g4e=47,v4e=46;function XR(){this.skipSC();const t=this.consume(Zb.Number);for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);!m4e.isDigit(n)&&n!==v4e&&this.error("Unsigned number is expected",this.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.tokenStart-t.length),t}const b4e="Ratio",y4e={left:String,right:String};function w4e(){const t=this.tokenStart,e=XR.call(this);let n;return this.skipSC(),this.eatDelim(g4e),n=XR.call(this),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:e,right:n}}function k4e(t){this.token(Zb.Number,t.left),this.token(Zb.Delim,"/"),this.token(Zb.Number,t.right)}hp.generate=k4e;hp.name=b4e;hp.parse=w4e;hp.structure=y4e;var pp={};const O4e=Oe;function x4e(){return this.tokenIndex>0&&this.lookupType(-1)===O4e.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const S4e="Raw",_4e={value:String};function C4e(t,e,n){const i=this.getTokenStart(t);let r;return this.skipUntilBalanced(t,e||this.consumeUntilBalanceEnd),n&&this.tokenStart>i?r=x4e.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.substring(i,r)}}function $4e(t){this.tokenize(t.value)}pp.generate=$4e;pp.name=S4e;pp.parse=C4e;pp.structure=_4e;var hu={};const P4e=Oe;function YR(t){return this.Raw(t,this.consumeUntilLeftCurlyBracket,!0)}function T4e(){const t=this.SelectorList();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==P4e.LeftCurlyBracket&&this.error(),t}const A4e="Rule",E4e="rule",R4e={prelude:["SelectorList","Raw"],block:["Block"]};function D4e(){const t=this.tokenIndex,e=this.tokenStart;let n,i;return this.parseRulePrelude?n=this.parseWithFallback(T4e,YR):n=YR.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.tokenStart),prelude:n,block:i}}function M4e(t){this.node(t.prelude),this.node(t.block)}hu.generate=M4e;hu.name=A4e;hu.parse=D4e;hu.structure=R4e;hu.walkContext=E4e;var mp={};const N4e="Selector",L4e={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function j4e(){const t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function I4e(t){this.children(t)}mp.generate=I4e;mp.name=N4e;mp.parse=j4e;mp.structure=L4e;var pu={};const CQ=Oe,B4e="SelectorList",F4e="selector",Q4e={children:[["Selector","Raw"]]};function z4e(){const t=this.createList();for(;!this.eof;){if(t.push(this.Selector()),this.tokenType===CQ.Comma){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function q4e(t){this.children(t,(()=>this.token(CQ.Comma,",")))}pu.generate=q4e;pu.name=B4e;pu.parse=z4e;pu.structure=Q4e;pu.walkContext=F4e;var gp={},B1={};const y3=qt,KR=fi,w3=92,$Q=34,PQ=39;function W4e(t){const e=t.length,n=t.charCodeAt(0),i=n===$Q||n===PQ?1:0,r=i===1&&e>1&&t.charCodeAt(e-1)===n?e-2:e-1;let s="";for(let a=i;a<=r;a++){let o=t.charCodeAt(a);if(o===w3){if(a===r){a!==e-1&&(s=t.substr(a+1));break}if(o=t.charCodeAt(++a),y3.isValidEscape(w3,o)){const l=a-1,c=KR.consumeEscaped(t,l);a=c-1,s+=KR.decodeEscaped(t.substring(l+1,c))}else o===13&&t.charCodeAt(a+1)===10&&a++}else s+=t[a]}return s}function U4e(t,e){const n=e?"'":'"',i=e?PQ:$Q;let r="",s=!1;for(let a=0;a<t.length;a++){const o=t.charCodeAt(a);if(o===0){r+="<22>";continue}if(o<=31||o===127){r+="\\"+o.toString(16),s=!0;continue}o===i||o===w3?(r+="\\"+t.charAt(a),s=!1):(s&&(y3.isHexDigit(o)||y3.isWhiteSpace(o))&&(r+=" "),r+=t.charAt(a),s=!1)}return n+r+n}B1.decode=W4e;B1.encode=U4e;const TQ=B1,AQ=Oe,V4e="String",H4e={value:String};function Z4e(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:TQ.decode(this.consume(AQ.String))}}function G4e(t){this.token(AQ.String,TQ.encode(t.value))}gp.generate=G4e;gp.name=V4e;gp.parse=Z4e;gp.structure=H4e;var mu={};const dm=Oe,X4e=33;function JR(t){return this.Raw(t,null,!1)}const Y4e="StyleSheet",K4e="stylesheet",J4e={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function ePe(){const t=this.tokenStart,e=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case dm.WhiteSpace:this.next();continue;case dm.Comment:if(this.charCodeAt(this.tokenStart+2)!==X4e){this.next();continue}n=this.Comment();break;case dm.CDO:n=this.CDO();break;case dm.CDC:n=this.CDC();break;case dm.AtKeyword:n=this.parseWithFallback(this.Atrule,JR);break;default:n=this.parseWithFallback(this.Rule,JR)}e.push(n)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:e}}function tPe(t){this.children(t)}mu.generate=tPe;mu.name=Y4e;mu.parse=ePe;mu.structure=J4e;mu.walkContext=K4e;var vp={};const nPe=Oe,iPe=42,eD=124;function z2(){this.tokenType!==nPe.Ident&&this.isDelim(iPe)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const rPe="TypeSelector",sPe={name:String};function aPe(){const t=this.tokenStart;return this.isDelim(eD)?(this.next(),z2.call(this)):(z2.call(this),this.isDelim(eD)&&(this.next(),z2.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function oPe(t){this.tokenize(t.name)}vp.generate=oPe;vp.name=rPe;vp.parse=aPe;vp.structure=sPe;var bp={};const hm=Oe,lPe=qt,EQ=43,RQ=45,k3=63;function Gm(t,e){let n=0;for(let i=this.tokenStart+t;i<this.tokenEnd;i++){const r=this.charCodeAt(i);if(r===RQ&&e&&n!==0)return Gm.call(this,t+n+1,!1),-1;lPe.isHexDigit(r)||this.error(e&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",i),++n>6&&this.error("Too many hex digits",i)}return this.next(),n}function Nv(t){let e=0;for(;this.isDelim(k3);)++e>t&&this.error("Too many question marks"),this.next()}function cPe(t){this.charCodeAt(this.tokenStart)!==t&&this.error((t===EQ?"Plus sign":"Hyphen minus")+" is expected")}function fPe(){let t=0;switch(this.tokenType){case hm.Number:if(t=Gm.call(this,1,!0),this.isDelim(k3)){Nv.call(this,6-t);break}if(this.tokenType===hm.Dimension||this.tokenType===hm.Number){cPe.call(this,RQ),Gm.call(this,1,!1);break}break;case hm.Dimension:t=Gm.call(this,1,!0),t>0&&Nv.call(this,6-t);break;default:if(this.eatDelim(EQ),this.tokenType===hm.Ident){t=Gm.call(this,0,!0),t>0&&Nv.call(this,6-t);break}if(this.isDelim(k3)){this.next(),Nv.call(this,5);break}this.error("Hex digit or question mark is expected")}}const uPe="UnicodeRange",dPe={value:String};function hPe(){const t=this.tokenStart;return this.eatIdent("u"),fPe.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function pPe(t){this.tokenize(t.value)}bp.generate=pPe;bp.name=uPe;bp.parse=hPe;bp.structure=dPe;var yp={},Gk={};const Gb=qt,tD=fi,mPe=32,O3=92,gPe=34,vPe=39,bPe=40,DQ=41;function yPe(t){const e=t.length;let n=4,i=t.charCodeAt(e-1)===DQ?e-2:e-1,r="";for(;n<i&&Gb.isWhiteSpace(t.charCodeAt(n));)n++;for(;n<i&&Gb.isWhiteSpace(t.charCodeAt(i));)i--;for(let s=n;s<=i;s++){let a=t.charCodeAt(s);if(a===O3){if(s===i){s!==e-1&&(r=t.substr(s+1));break}if(a=t.charCodeAt(++s),Gb.isValidEscape(O3,a)){const o=s-1,l=tD.consumeEscaped(t,o);s=l-1,r+=tD.decodeEscaped(t.substring(o+1,l))}else a===13&&t.charCodeAt(s+1)===10&&s++}else r+=t[s]}return r}function wPe(t){let e="",n=!1;for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);if(r===0){e+="<22>";continue}if(r<=31||r===127){e+="\\"+r.toString(16),n=!0;continue}r===mPe||r===O3||r===gPe||r===vPe||r===bPe||r===DQ?(e+="\\"+t.charAt(i),n=!1):(n&&Gb.isHexDigit(r)&&(e+=" "),e+=t.charAt(i),n=!1)}return"url("+e+")"}Gk.decode=yPe;Gk.encode=wPe;const MQ=Gk,kPe=B1,df=Oe,OPe="Url",xPe={value:String};function SPe(){const t=this.tokenStart;let e;switch(this.tokenType){case df.Url:e=MQ.decode(this.consume(df.Url));break;case df.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(df.Function),this.skipSC(),e=kPe.decode(this.consume(df.String)),this.skipSC(),this.eof||this.eat(df.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.tokenStart),value:e}}function _Pe(t){this.token(df.Url,MQ.encode(t.value))}yp.generate=_Pe;yp.name=OPe;yp.parse=SPe;yp.structure=xPe;var wp={};const CPe="Value",$Pe={children:[[]]};function PPe(){const t=this.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:e}}function TPe(t){this.children(t)}wp.generate=TPe;wp.name=CPe;wp.parse=PPe;wp.structure=$Pe;var kp={};const NQ=Oe,APe=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),EPe="WhiteSpace",RPe={value:String};function DPe(){return this.eat(NQ.WhiteSpace),APe}function MPe(t){this.token(NQ.WhiteSpace,t.value)}kp.generate=MPe;kp.name=EPe;kp.parse=DPe;kp.structure=RPe;const NPe=Hh,LPe=su,jPe=au,IPe=Zh,BPe=ou,FPe=Gh,QPe=Xh,zPe=Yh,qPe=Kh,WPe=Jh,UPe=ep,VPe=lu,HPe=tp,ZPe=np,GPe=cu,XPe=fu,YPe=ip,KPe=rp,JPe=sp,e5e=ap,t5e=op,n5e=lp,i5e=cp,r5e=fp,s5e=up,a5e=dp,o5e=uu,l5e=du,c5e=hp,f5e=pp,u5e=hu,d5e=mp,h5e=pu,p5e=gp,m5e=mu,g5e=vp,v5e=bp,b5e=yp,y5e=wp,w5e=kp;pt.AnPlusB=NPe;pt.Atrule=LPe;pt.AtrulePrelude=jPe;pt.AttributeSelector=IPe;pt.Block=BPe;pt.Brackets=FPe;pt.CDC=QPe;pt.CDO=zPe;pt.ClassSelector=qPe;pt.Combinator=WPe;pt.Comment=UPe;pt.Declaration=VPe;pt.DeclarationList=HPe;pt.Dimension=ZPe;pt.Function=GPe;pt.Hash=XPe;pt.Identifier=YPe;pt.IdSelector=KPe;pt.MediaFeature=JPe;pt.MediaQuery=e5e;pt.MediaQueryList=t5e;pt.Nth=n5e;pt.Number=i5e;pt.Operator=r5e;pt.Parentheses=s5e;pt.Percentage=a5e;pt.PseudoClassSelector=o5e;pt.PseudoElementSelector=l5e;pt.Ratio=c5e;pt.Raw=f5e;pt.Rule=u5e;pt.Selector=d5e;pt.SelectorList=h5e;pt.String=p5e;pt.StyleSheet=m5e;pt.TypeSelector=g5e;pt.UnicodeRange=v5e;pt.Url=b5e;pt.Value=y5e;pt.WhiteSpace=w5e;const k5e=P3e,O5e=pt,x5e={generic:!0,...k5e,node:O5e};var S5e=x5e,Xk={};const Ls=Oe,_5e=35,C5e=42,nD=43,$5e=45,P5e=47,T5e=117;function A5e(t){switch(this.tokenType){case Ls.Hash:return this.Hash();case Ls.Comma:return this.Operator();case Ls.LeftParenthesis:return this.Parentheses(this.readSequence,t.recognizer);case Ls.LeftSquareBracket:return this.Brackets(this.readSequence,t.recognizer);case Ls.String:return this.String();case Ls.Dimension:return this.Dimension();case Ls.Percentage:return this.Percentage();case Ls.Number:return this.Number();case Ls.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,t.recognizer);case Ls.Url:return this.Url();case Ls.Ident:return this.cmpChar(this.tokenStart,T5e)&&this.cmpChar(this.tokenStart+1,nD)?this.UnicodeRange():this.Identifier();case Ls.Delim:{const e=this.charCodeAt(this.tokenStart);if(e===P5e||e===C5e||e===nD||e===$5e)return this.Operator();e===_5e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var LQ=A5e;const E5e=LQ,R5e={getNode:E5e};var D5e=R5e;const Jo=Oe,M5e=35,N5e=42,L5e=43,j5e=47,iD=46,I5e=62,B5e=124,F5e=126;function Q5e(t,e){e.last!==null&&e.last.type!=="Combinator"&&t!==null&&t.type!=="Combinator"&&e.push({type:"Combinator",loc:null,name:" "})}function z5e(){switch(this.tokenType){case Jo.LeftSquareBracket:return this.AttributeSelector();case Jo.Hash:return this.IdSelector();case Jo.Colon:return this.lookupType(1)===Jo.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case Jo.Ident:return this.TypeSelector();case Jo.Number:case Jo.Percentage:return this.Percentage();case Jo.Dimension:this.charCodeAt(this.tokenStart)===iD&&this.error("Identifier is expected",this.tokenStart+1);break;case Jo.Delim:{switch(this.charCodeAt(this.tokenStart)){case L5e:case I5e:case F5e:case j5e:return this.Combinator();case iD:return this.ClassSelector();case N5e:case B5e:return this.TypeSelector();case M5e:return this.IdSelector()}break}}}const q5e={onWhiteSpace:Q5e,getNode:z5e};var W5e=q5e;function U5e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}var V5e=U5e;const rD=Oe;function H5e(){const t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),this.tokenType===rD.Comma){t.push(this.Operator());const e=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let i=e-this.tokenIndex;i<=0;i++)if(this.lookupType(i)===rD.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(n)}return t}var Z5e=H5e;const G5e=LQ,X5e=V5e,Y5e=Z5e;function sD(t){return t!==null&&t.type==="Operator"&&(t.value[t.value.length-1]==="-"||t.value[t.value.length-1]==="+")}const K5e={getNode:G5e,onWhiteSpace(t,e){sD(t)&&(t.value=" "+t.value),sD(e.last)&&(e.last.value+=" ")},expression:X5e,var:Y5e};var J5e=K5e;const eTe=D5e,tTe=W5e,nTe=J5e;Xk.AtrulePrelude=eTe;Xk.Selector=tTe;Xk.Value=nTe;const iTe={parse:{prelude:null,block(){return this.Block(!0)}}};var rTe=iTe;const pm=Oe,sTe={parse:{prelude(){const t=this.createList();switch(this.skipSC(),this.tokenType){case pm.String:t.push(this.String());break;case pm.Url:case pm.Function:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===pm.Ident||this.lookupNonWSType(0)===pm.LeftParenthesis)&&t.push(this.MediaQueryList()),t},block:null}};var aTe=sTe;const oTe={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){return this.Block(!1)}}};var lTe=oTe;const cTe={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};var fTe=cTe;const gf=Oe;function uTe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function dTe(){return this.skipSC(),this.tokenType===gf.Ident&&this.lookupNonWSType(1)===gf.Colon?this.createSingleNodeList(this.Declaration()):jQ.call(this)}function jQ(){const t=this.createList();let e;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case gf.Comment:case gf.WhiteSpace:this.next();continue;case gf.Function:e=this.Function(uTe,this.scope.AtrulePrelude);break;case gf.Ident:e=this.Identifier();break;case gf.LeftParenthesis:e=this.Parentheses(dTe,this.scope.AtrulePrelude);break;default:break e}t.push(e)}return t}const hTe={parse:{prelude(){const t=jQ.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block(){return this.Block(!1)}}};var pTe=hTe;const mTe=rTe,gTe=aTe,vTe=lTe,bTe=fTe,yTe=pTe,wTe={"font-face":mTe,import:gTe,media:vTe,page:bTe,supports:yTe};var kTe=wTe;const ef={parse(){return this.createSingleNodeList(this.SelectorList())}},OTe={parse(){return this.createSingleNodeList(this.Selector())}},aD={parse(){return this.createSingleNodeList(this.Identifier())}},Lv={parse(){return this.createSingleNodeList(this.Nth())}},xTe={dir:aD,has:ef,lang:aD,matches:ef,is:ef,"-moz-any":ef,"-webkit-any":ef,where:ef,not:ef,"nth-child":Lv,"nth-last-child":Lv,"nth-last-of-type":Lv,"nth-of-type":Lv,slotted:OTe};var STe=xTe,bt={};const _Te=Hh,CTe=su,$Te=au,PTe=Zh,TTe=ou,ATe=Gh,ETe=Xh,RTe=Yh,DTe=Kh,MTe=Jh,NTe=ep,LTe=lu,jTe=tp,ITe=np,BTe=cu,FTe=fu,QTe=ip,zTe=rp,qTe=sp,WTe=ap,UTe=op,VTe=lp,HTe=cp,ZTe=fp,GTe=up,XTe=dp,YTe=uu,KTe=du,JTe=hp,e6e=pp,t6e=hu,n6e=mp,i6e=pu,r6e=gp,s6e=mu,a6e=vp,o6e=bp,l6e=yp,c6e=wp,f6e=kp;bt.AnPlusB=_Te.parse;bt.Atrule=CTe.parse;bt.AtrulePrelude=$Te.parse;bt.AttributeSelector=PTe.parse;bt.Block=TTe.parse;bt.Brackets=ATe.parse;bt.CDC=ETe.parse;bt.CDO=RTe.parse;bt.ClassSelector=DTe.parse;bt.Combinator=MTe.parse;bt.Comment=NTe.parse;bt.Declaration=LTe.parse;bt.DeclarationList=jTe.parse;bt.Dimension=ITe.parse;bt.Function=BTe.parse;bt.Hash=FTe.parse;bt.Identifier=QTe.parse;bt.IdSelector=zTe.parse;bt.MediaFeature=qTe.parse;bt.MediaQuery=WTe.parse;bt.MediaQueryList=UTe.parse;bt.Nth=VTe.parse;bt.Number=HTe.parse;bt.Operator=ZTe.parse;bt.Parentheses=GTe.parse;bt.Percentage=XTe.parse;bt.PseudoClassSelector=YTe.parse;bt.PseudoElementSelector=KTe.parse;bt.Ratio=JTe.parse;bt.Raw=e6e.parse;bt.Rule=t6e.parse;bt.Selector=n6e.parse;bt.SelectorList=i6e.parse;bt.String=r6e.parse;bt.StyleSheet=s6e.parse;bt.TypeSelector=a6e.parse;bt.UnicodeRange=o6e.parse;bt.Url=l6e.parse;bt.Value=c6e.parse;bt.WhiteSpace=f6e.parse;const u6e=Xk,d6e=kTe,h6e=STe,p6e=bt,m6e={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:u6e,atrule:d6e,pseudo:h6e,node:p6e};var g6e=m6e;const v6e=pt,b6e={node:v6e};var y6e=b6e;const w6e=uQ,k6e=S5e,O6e=g6e,x6e=y6e,S6e=w6e({...k6e,...O6e,...x6e});var _6e=S6e,C6e="2.2.1",F1={};const $6e=CP,P6e=qk,T6e=Vk,A6e=jP;F1.SyntaxError=$6e.SyntaxError;F1.generate=P6e.generate;F1.parse=T6e.parse;F1.walk=A6e.walk;var IQ={};const E6e=iu;function x3(t){const e={};for(const n in t){let i=t[n];i&&(Array.isArray(i)||i instanceof E6e.List?i=i.map(x3):i.constructor===Object&&(i=x3(i))),e[n]=i}return e}IQ.clone=x3;var IP={};const BQ=qt,oD=fi,lD=92;function R6e(t){const e=t.length-1;let n="";for(let i=0;i<t.length;i++){let r=t.charCodeAt(i);if(r===lD){if(i===e)break;if(r=t.charCodeAt(++i),BQ.isValidEscape(lD,r)){const s=i-1,a=oD.consumeEscaped(t,s);i=a-1,n+=oD.decodeEscaped(t.substring(s+1,a))}else r===13&&t.charCodeAt(i+1)===10&&i++}else n+=t[i]}return n}function D6e(t){let e="";if(t.length===1&&t.charCodeAt(0)===45)return"\\-";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(i===0){e+="<22>";continue}if(i<=31||i===127||i>=48&&i<=57&&(n===0||n===1&&t.charCodeAt(0)===45)){e+="\\"+i.toString(16)+" ";continue}BQ.isName(i)?e+=t.charAt(n):e+="\\"+t.charAt(n)}return e}IP.decode=R6e;IP.encode=D6e;const M6e=_6e,N6e=C6e,L6e=uQ,j6e=iu,I6e=bP,B6e=F1,F6e=IQ,Yk=ru,Q6e=IP,z6e=B1,q6e=Gk,W6e=Oe,U6e=Fk,V6e=Qk,{tokenize:H6e,parse:Z6e,generate:G6e,lexer:X6e,createLexer:Y6e,walk:K6e,find:J6e,findLast:eAe,findAll:tAe,toPlainObject:nAe,fromPlainObject:iAe,fork:rAe}=M6e;Ye.version=N6e.version;Ye.createSyntax=L6e;Ye.List=j6e.List;Ye.Lexer=I6e.Lexer;Ye.definitionSyntax=B6e;Ye.clone=F6e.clone;Ye.isCustomProperty=Yk.isCustomProperty;Ye.keyword=Yk.keyword;Ye.property=Yk.property;Ye.vendorPrefix=Yk.vendorPrefix;Ye.ident=Q6e;Ye.string=z6e;Ye.url=q6e;Ye.tokenTypes=W6e;Ye.tokenNames=U6e;Ye.TokenStream=V6e.TokenStream;Ye.createLexer=Y6e;Ye.find=J6e;Ye.findAll=tAe;Ye.findLast=eAe;Ye.fork=rAe;Ye.fromPlainObject=iAe;Ye.generate=G6e;Ye.lexer=X6e;Ye.parse=Z6e;Ye.toPlainObject=nAe;Ye.tokenize=H6e;Ye.walk=K6e;var FQ={};const{hasOwnProperty:sAe}=Object.prototype;function q2(t,e){const n=Object.create(null);if(!Array.isArray(t))return null;for(let i of t)e&&(i=i.toLowerCase()),n[i]=!0;return n}function cD(t){if(!t)return null;const e=q2(t.tags,!0),n=q2(t.ids),i=q2(t.classes);return e===null&&n===null&&i===null?null:{tags:e,ids:n,classes:i}}function aAe(t){let e=!1;if(t.scopes&&Array.isArray(t.scopes)){e=Object.create(null);for(let n=0;n<t.scopes.length;n++){const i=t.scopes[n];if(!i||!Array.isArray(i))throw new Error("Wrong usage format");for(const r of i){if(sAe.call(e,r))throw new Error(`Class can't be used for several scopes: ${r}`);e[r]=n+1}}}return{whitelist:cD(t),blacklist:cD(t.blacklist),scopes:e}}FQ.buildIndex=aAe;var Q1={};function oAe(t){return!t||!t.children||t.children.isEmpty}function lAe(t,e){return t!==null&&t.children===e}Q1.hasNoChildren=oAe;Q1.isNodeChildrenList=lAe;const cAe=Ye,jv=Q1;function fAe(t,e,n){if(t.block&&(this.stylesheet!==null&&(this.stylesheet.firstAtrulesAllowed=!1),jv.hasNoChildren(t.block))){n.remove(e);return}switch(t.name){case"charset":if(jv.hasNoChildren(t.prelude)){n.remove(e);return}if(e.prev){n.remove(e);return}break;case"import":if(this.stylesheet===null||!this.stylesheet.firstAtrulesAllowed){n.remove(e);return}n.prevUntil(e.prev,(function(i){if(!(i.type==="Atrule"&&(i.name==="import"||i.name==="charset")))return this.root.firstAtrulesAllowed=!1,n.remove(e),!0}),this);break;default:{const i=cAe.keyword(t.name).basename;(i==="keyframes"||i==="media"||i==="supports")&&(jv.hasNoChildren(t.prelude)||jv.hasNoChildren(t.block))&&n.remove(e)}}}var uAe=fAe;function dAe(t,e,n){n.remove(e)}var hAe=dAe;const pAe=Ye;function mAe(t,e,n){if(t.value.children&&t.value.children.isEmpty){n.remove(e);return}pAe.property(t.property).custom&&/\S/.test(t.value.value)&&(t.value.value=t.value.value.trim())}var gAe=mAe;const fD=Q1;function vAe(t,e,n){(fD.isNodeChildrenList(this.stylesheet,n)||fD.isNodeChildrenList(this.block,n))&&n.remove(e)}var bAe=vAe;const QQ=Ye,W2=Q1,{hasOwnProperty:Uu}=Object.prototype,yAe=new Set(["keyframes"]);function zQ(t,e){return t.children.forEach(((n,i,r)=>{let s=!1;QQ.walk(n,(function(a){if(this.selector===null||this.selector===t)switch(a.type){case"SelectorList":(this.function===null||this.function.name.toLowerCase()!=="not")&&zQ(a,e)&&(s=!0);break;case"ClassSelector":e.whitelist!==null&&e.whitelist.classes!==null&&!Uu.call(e.whitelist.classes,a.name)&&(s=!0),e.blacklist!==null&&e.blacklist.classes!==null&&Uu.call(e.blacklist.classes,a.name)&&(s=!0);break;case"IdSelector":e.whitelist!==null&&e.whitelist.ids!==null&&!Uu.call(e.whitelist.ids,a.name)&&(s=!0),e.blacklist!==null&&e.blacklist.ids!==null&&Uu.call(e.blacklist.ids,a.name)&&(s=!0);break;case"TypeSelector":a.name.charAt(a.name.length-1)!=="*"&&(e.whitelist!==null&&e.whitelist.tags!==null&&!Uu.call(e.whitelist.tags,a.name.toLowerCase())&&(s=!0),e.blacklist!==null&&e.blacklist.tags!==null&&Uu.call(e.blacklist.tags,a.name.toLowerCase())&&(s=!0));break}})),s&&r.remove(i)})),t.children.isEmpty}function wAe(t,e,n,i){if(W2.hasNoChildren(t.prelude)||W2.hasNoChildren(t.block)){n.remove(e);return}if(this.atrule&&yAe.has(QQ.keyword(this.atrule.name).basename))return;const{usage:r}=i;if(r&&(r.whitelist!==null||r.blacklist!==null)&&(zQ(t.prelude,r),W2.hasNoChildren(t.prelude))){n.remove(e);return}}var kAe=wAe;function OAe(t,e,n){if(e.data.name!=="*")return;const r=e.next&&e.next.data.type;(r==="IdSelector"||r==="ClassSelector"||r==="AttributeSelector"||r==="PseudoClassSelector"||r==="PseudoElementSelector")&&n.remove(e)}var xAe=OAe;function SAe(t,e,n){n.remove(e)}var _Ae=SAe;const CAe=Ye,$Ae=uAe,PAe=hAe,TAe=gAe,AAe=bAe,EAe=kAe,RAe=xAe,DAe=_Ae,uD={Atrule:$Ae,Comment:PAe,Declaration:TAe,Raw:AAe,Rule:EAe,TypeSelector:RAe,WhiteSpace:DAe};function MAe(t,e){CAe.walk(t,{leave(n,i,r){uD.hasOwnProperty(n.type)&&uD[n.type].call(this,n,i,r,e)}})}var NAe=MAe;function LAe(t){t.block.children.forEach((e=>{e.prelude.children.forEach((n=>{n.children.forEach(((i,r)=>{i.type==="Percentage"&&i.value==="100"?r.data={type:"TypeSelector",loc:i.loc,name:"to"}:i.type==="TypeSelector"&&i.name==="from"&&(r.data={type:"Percentage",loc:i.loc,value:"0"})}))}))}))}var jAe=LAe;const IAe=Ye,BAe=jAe;function FAe(t){IAe.keyword(t.name).basename==="keyframes"&&BAe(t)}var QAe=FAe;const zAe=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;function qAe(t){return t===""||t==="-"?!1:!zAe.test(t)}function WAe(t){const e=t.value;!e||e.type!=="String"||qAe(e.value)&&(t.value={type:"Identifier",loc:e.loc,name:e.value})}var UAe=WAe;function VAe(t){const e=t.children;e.forEachRight((function(n,i){if(n.type==="Identifier"){if(n.name==="bold")i.data={type:"Number",loc:n.loc,value:"700"};else if(n.name==="normal"){const r=i.prev;r&&r.data.type==="Operator"&&r.data.value==="/"&&this.remove(r),this.remove(i)}}})),e.isEmpty&&e.insert(e.createItem({type:"Identifier",name:"normal"}))}var HAe=VAe;function ZAe(t){const e=t.children.head.data;if(e.type==="Identifier")switch(e.name){case"normal":t.children.head.data={type:"Number",loc:e.loc,value:"400"};break;case"bold":t.children.head.data={type:"Number",loc:e.loc,value:"700"};break}}var GAe=ZAe;const XAe=Ye;function YAe(t){function e(){i.length||i.unshift({type:"Number",loc:null,value:"0"},{type:"Number",loc:null,value:"0"}),n.push.apply(n,i),i=[]}let n=[],i=[];t.children.forEach((r=>{if(r.type==="Operator"&&r.value===","){e(),n.push(r);return}r.type==="Identifier"&&(r.name==="transparent"||r.name==="none"||r.name==="repeat"||r.name==="scroll")||i.push(r)})),e(),t.children=new XAe.List().fromArray(n)}var KAe=YAe;function JAe(t){t.children.forEach(((e,n,i)=>{e.type==="Identifier"&&e.name.toLowerCase()==="none"&&(i.head===i.tail?n.data={type:"Number",loc:e.loc,value:"0"}:i.remove(n))}))}var eEe=JAe;const tEe=Ye,nEe=HAe,iEe=GAe,rEe=KAe,dD=eEe,hD={font:nEe,"font-weight":iEe,background:rEe,border:dD,outline:dD};function sEe(t){if(!this.declaration)return;const e=tEe.property(this.declaration.property);hD.hasOwnProperty(e.basename)&&hD[e.basename](t)}var aEe=sEe,Op={};const oEe=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,lEe=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,cEe=new Set(["Dimension","Hash","Identifier","Number","Raw","UnicodeRange"]);function qQ(t,e){const n=e&&e.prev!==null&&cEe.has(e.prev.data.type)?lEe:oEe;return t=String(t).replace(n,"$1$2$3"),(t===""||t==="-")&&(t="0"),t}function fEe(t){t.value=qQ(t.value)}Op.Number=fEe;Op.packNumber=qQ;const uEe=Op,dEe=new Set(["calc","min","max","clamp"]),hEe=new Set(["px","mm","cm","in","pt","pc","em","ex","ch","rem","vh","vw","vmin","vmax","vm"]);function pEe(t,e){const n=uEe.packNumber(t.value);if(t.value=n,n==="0"&&this.declaration!==null&&this.atrulePrelude===null){const i=t.unit.toLowerCase();if(!hEe.has(i)||this.declaration.property==="-ms-flex"||this.declaration.property==="flex"||this.function&&dEe.has(this.function.name))return;e.data={type:"Number",loc:t.loc,value:n}}}var mEe=pEe;const gEe=Ye,vEe=Op,bEe=new Set(["width","min-width","max-width","height","min-height","max-height","flex","-ms-flex"]);function yEe(t,e){t.value=vEe.packNumber(t.value),t.value==="0"&&this.declaration&&!bEe.has(this.declaration.property)&&(e.data={type:"Number",loc:t.loc,value:t.value},gEe.lexer.matchDeclaration(this.declaration).isType(e.data,"length")||(e.data=t))}var wEe=yEe;function kEe(t){t.value=t.value.replace(/\\/g,"/")}var OEe=kEe,Kk={};const xEe=Ye,SEe=Op,pD={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",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"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:"639",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"},mD={8e5:"maroon",800080:"purple",808e3:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};function U2(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function gD(t,e,n,i){let r,s,a;if(e===0)r=s=a=n;else{const o=n<.5?n*(1+e):n+e-n*e,l=2*n-o;r=U2(l,o,t+1/3),s=U2(l,o,t),a=U2(l,o,t-1/3)}return[Math.round(r*255),Math.round(s*255),Math.round(a*255),i]}function V2(t){return t=t.toString(16),t.length===1?"0"+t:t}function H2(t,e,n){let i=t.head,r=[],s=!1;for(;i!==null;){const{type:a,value:o}=i.data;switch(a){case"Number":case"Percentage":if(s)return;s=!0,r.push({type:a,value:Number(o)});break;case"Operator":if(o===","){if(!s)return;s=!1}else if(s||o!=="+")return;break;default:return}i=i.next}if(r.length===e){if(r.length===4){if(r[3].type!=="Number")return;r[3].type="Alpha"}if(n){if(r[0].type!==r[1].type||r[0].type!==r[2].type)return}else{if(r[0].type!=="Number"||r[1].type!=="Percentage"||r[2].type!=="Percentage")return;r[0].type="Angle"}return r.map((function(a){let o=Math.max(0,a.value);switch(a.type){case"Number":o=Math.min(o,255);break;case"Percentage":if(o=Math.min(o,100)/100,!n)return o;o=255*o;break;case"Angle":return(o%360+360)%360/360;case"Alpha":return Math.min(o,1)}return Math.round(o)}))}}function _Ee(t,e){let n=t.name,i;if(n==="rgba"||n==="hsla"){if(i=H2(t.children,4,n==="rgba"),!i)return;if(n==="hsla"&&(i=gD(...i),t.name="rgba"),i[3]===0){const r=this.function&&this.function.name;if(i[0]===0&&i[1]===0&&i[2]===0||!/^(?:to|from|color-stop)$|gradient$/i.test(r)){e.data={type:"Identifier",loc:t.loc,name:"transparent"};return}}if(i[3]!==1){t.children.forEach(((r,s,a)=>{if(r.type==="Operator"){r.value!==","&&a.remove(s);return}s.data={type:"Number",loc:r.loc,value:SEe.packNumber(i.shift())}}));return}n="rgb"}if(n==="hsl"){if(i=i||H2(t.children,3,!1),!i)return;i=gD(...i),n="rgb"}if(n==="rgb"){if(i=i||H2(t.children,3,!0),!i)return;e.data={type:"Hash",loc:t.loc,value:V2(i[0])+V2(i[1])+V2(i[2])},WQ(e.data,e)}}function CEe(t,e){if(this.declaration===null)return;let n=t.name.toLowerCase();if(pD.hasOwnProperty(n)&&xEe.lexer.matchDeclaration(this.declaration).isType(t,"color")){const i=pD[n];i.length+1<=n.length?e.data={type:"Hash",loc:t.loc,value:i}:(n==="grey"&&(n="gray"),t.name=n)}}function WQ(t,e){let n=t.value.toLowerCase();n.length===6&&n[0]===n[1]&&n[2]===n[3]&&n[4]===n[5]&&(n=n[0]+n[2]+n[4]),mD[n]?e.data={type:"Identifier",loc:t.loc,name:mD[n]}:t.value=n}Kk.compressFunction=_Ee;Kk.compressHex=WQ;Kk.compressIdent=CEe;const $Ee=Ye,PEe=QAe,TEe=UAe,AEe=aEe,EEe=mEe,REe=wEe,DEe=Op,MEe=OEe,Z2=Kk,vD={Atrule:PEe,AttributeSelector:TEe,Value:AEe,Dimension:EEe,Percentage:REe,Number:DEe.Number,Url:MEe,Hash:Z2.compressHex,Identifier:Z2.compressIdent,Function:Z2.compressFunction};function NEe(t){$Ee.walk(t,{leave(e,n,i){vD.hasOwnProperty(e.type)&&vD[e.type].call(this,e,n,i)}})}var LEe=NEe;const jEe=Ye;class IEe{constructor(){this.map=new Map}resolve(e){let n=this.map.get(e);return n===void 0&&(n=this.map.size+1,this.map.set(e,n)),n}}function BEe(){const t=new IEe;return function(n){const i=jEe.generate(n);return n.id=t.resolve(i),n.length=i.length,n.fingerprint=null,n}}var FEe=BEe;const QEe=Ye;function zEe(t){return t.type==="Raw"?QEe.parse(t.value,{context:"selectorList"}):t}function qEe(t,e){for(let n=0;n<3;n++)if(t[n]!==e[n])return t[n]>e[n]?t:e;return t}function bD(t){return zEe(t).children.reduce(((e,n)=>qEe(UQ(n),e)),[0,0,0])}function UQ(t){let e=0,n=0,i=0;return t.children.forEach((r=>{switch(r.type){case"IdSelector":e++;break;case"ClassSelector":case"AttributeSelector":n++;break;case"PseudoClassSelector":switch(r.name.toLowerCase()){case"not":case"has":case"is":case"matches":case"-webkit-any":case"-moz-any":{const[s,a,o]=bD(r.children.first);e+=s,n+=a,i+=o;break}case"nth-child":case"nth-last-child":{const s=r.children.first;if(s.type==="Nth"&&s.selector){const[a,o,l]=bD(s.selector);e+=a,n+=o+1,i+=l}else n++;break}case"where":break;case"before":case"after":case"first-line":case"first-letter":i++;break;default:n++}break;case"TypeSelector":r.name.endsWith("*")||i++;break;case"PseudoElementSelector":i++;break}})),[e,n,i]}var VQ=UQ;const yD=Ye,WEe=VQ,UEe=new Set(["first-letter","first-line","after","before"]),VEe=new Set(["link","visited","hover","active","first-letter","first-line","after","before"]);function HEe(t,e){const n=new Set;t.prelude.children.forEach((function(i){let r="*",s=0;i.children.forEach((function(a){switch(a.type){case"ClassSelector":if(e&&e.scopes){const o=e.scopes[a.name]||0;if(s!==0&&o!==s)throw new Error("Selector can't has classes from different scopes: "+yD.generate(i));s=o}break;case"PseudoClassSelector":{const o=a.name.toLowerCase();VEe.has(o)||n.add(`:${o}`);break}case"PseudoElementSelector":{const o=a.name.toLowerCase();UEe.has(o)||n.add(`::${o}`);break}case"TypeSelector":r=a.name.toLowerCase();break;case"AttributeSelector":a.flags&&n.add(`[${a.flags.toLowerCase()}]`);break;case"Combinator":r="*";break}})),i.compareMarker=WEe(i).toString(),i.id=null,i.id=yD.generate(i),s&&(i.compareMarker+=":"+s),r!=="*"&&(i.compareMarker+=","+r)})),t.pseudoSignature=n.size>0?[...n].sort().join(","):!1}var HQ=HEe;const Iv=Ye,ZEe=FEe,GEe=HQ;function XEe(t,e){const n=ZEe();return Iv.walk(t,{visit:"Rule",enter(i){i.block.children.forEach(n),GEe(i,e.usage)}}),Iv.walk(t,{visit:"Atrule",enter(i){i.prelude&&(i.prelude.id=null,i.prelude.id=Iv.generate(i.prelude)),Iv.keyword(i.name).basename==="keyframes"&&(i.block.avoidRulesMerge=!0,i.block.children.forEach((function(r){r.prelude.children.forEach((function(s){s.compareMarker=s.id}))})))}}),{declaration:n}}var YEe=XEe;const Jy=Ye,{hasOwnProperty:wD}=Object.prototype;function kD(t,e,n,i){const r=e.data,s=Jy.keyword(r.name).basename,a=r.name.toLowerCase()+"/"+(r.prelude?r.prelude.id:null);wD.call(t,s)||(t[s]=Object.create(null)),i&&delete t[s][a],wD.call(t[s],a)||(t[s][a]=new Jy.List),t[s][a].append(n.remove(e))}function KEe(t,e){const n=Object.create(null);let i=null;t.children.forEach((function(r,s,a){if(r.type==="Atrule"){const o=Jy.keyword(r.name).basename;switch(o){case"keyframes":kD(n,s,a,!0);return;case"media":if(e.forceMediaMerge){kD(n,s,a,!1);return}break}i===null&&o!=="charset"&&o!=="import"&&(i=s)}else i===null&&(i=s)}));for(const r in n)for(const s in n[r])t.children.insertList(n[r][s],r==="media"?null:i)}function OD(t){return t.type==="Atrule"&&t.name==="media"}function JEe(t,e,n){if(!OD(t))return;const i=e.prev&&e.prev.data;!i||!OD(i)||t.prelude&&i.prelude&&t.prelude.id===i.prelude.id&&(i.block.children.appendList(t.block.children),n.remove(e))}function e9e(t,e){KEe(t,e),Jy.walk(t,{visit:"Atrule",reverse:!0,enter:JEe})}var t9e=e9e,Do={};const{hasOwnProperty:n9e}=Object.prototype;function i9e(t,e){let n=t.head,i=e.head;for(;n!==null&&i!==null&&n.data.id===i.data.id;)n=n.next,i=i.next;return n===null&&i===null}function r9e(t,e){let n=t.head,i=e.head;for(;n!==null&&i!==null&&n.data.id===i.data.id;)n=n.next,i=i.next;return n===null&&i===null}function s9e(t,e){const n={eq:[],ne1:[],ne2:[],ne2overrided:[]},i=Object.create(null),r=Object.create(null);for(let s=e.head;s;s=s.next)r[s.data.id]=!0;for(let s=t.head;s;s=s.next){const a=s.data;a.fingerprint&&(i[a.fingerprint]=a.important),r[a.id]?(r[a.id]=!1,n.eq.push(a)):n.ne1.push(a)}for(let s=e.head;s;s=s.next){const a=s.data;r[a.id]&&((!n9e.call(i,a.fingerprint)||!i[a.fingerprint]&&a.important)&&n.ne2.push(a),n.ne2overrided.push(a))}return n}function a9e(t,e){return e.forEach((n=>{const i=n.id;let r=t.head;for(;r;){const s=r.data.id;if(s===i)return;if(s>i)break;r=r.next}t.insert(t.createItem(n),r)})),t}function ZQ(t,e){let n=t.head;for(;n!==null;){let i=e.head;for(;i!==null;){if(n.data.compareMarker===i.data.compareMarker)return!0;i=i.next}n=n.next}return!1}function GQ(t){switch(t.type){case"Rule":return ZQ(t.prelude.children,this);case"Atrule":if(t.block)return t.block.children.some(GQ,this);break;case"Declaration":return!1}return!0}Do.addSelectors=a9e;Do.compareDeclarations=s9e;Do.hasSimilarSelectors=ZQ;Do.isEqualDeclarations=r9e;Do.isEqualSelectors=i9e;Do.unsafeToSkipNode=GQ;const o9e=Ye,mm=Do;function l9e(t,e,n){const i=t.prelude.children,r=t.block.children;n.prevUntil(e.prev,(function(s){if(s.type!=="Rule")return mm.unsafeToSkipNode.call(i,s);const a=s.prelude.children,o=s.block.children;if(t.pseudoSignature===s.pseudoSignature){if(mm.isEqualSelectors(a,i))return o.appendList(r),n.remove(e),!0;if(mm.isEqualDeclarations(r,o))return mm.addSelectors(a,i),n.remove(e),!0}return mm.hasSimilarSelectors(i,a)}))}function c9e(t){o9e.walk(t,{visit:"Rule",enter:l9e})}var f9e=c9e;const XQ=Ye;function u9e(t,e,n){const i=t.prelude.children;for(;i.head!==i.tail;){const r=new XQ.List;r.insert(i.remove(i.head)),n.insert(n.createItem({type:"Rule",loc:t.loc,prelude:{type:"SelectorList",loc:t.prelude.loc,children:r},block:{type:"Block",loc:t.block.loc,children:t.block.children.copy()},pseudoSignature:t.pseudoSignature}),e)}}function d9e(t){XQ.walk(t,{visit:"Rule",reverse:!0,enter:u9e})}var h9e=d9e;const ed=Ye,YQ=1,p9e=2,Vu=0,gm=1,G2=2,Bv=3,xD=["top","right","bottom","left"],m9e={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},SD={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"};class g9e{constructor(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}getValueSequence(e,n){const i=[];let r="";return e.value.type!=="Value"||e.value.children.some((function(a){let o=!1;switch(a.type){case"Identifier":switch(a.name){case"\\0":case"\\9":r=a.name;return;case"inherit":case"initial":case"unset":case"revert":o=a.name;break}break;case"Dimension":switch(a.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":o=a.unit;break}break;case"Hash":case"Number":case"Percentage":break;case"Function":if(a.name==="var")return!0;o=a.name;break;default:return!0}i.push({node:a,special:o,important:e.important})}))||i.length>n||typeof this.iehack=="string"&&this.iehack!==r?!1:(this.iehack=r,i)}canOverride(e,n){const i=this.sides[e];return!i||n.important&&!i.important}add(e,n){function i(){const r=this.sides,s=m9e[e];if(s){if(!(s in r))return!1;const a=this.getValueSequence(n,1);if(!a||!a.length)return!1;for(const o in r)if(r[o]!==null&&r[o].special!==a[0].special)return!1;return this.canOverride(s,a[0])&&(r[s]=a[0]),!0}else if(e===this.name){const a=this.getValueSequence(n,4);if(!a||!a.length)return!1;switch(a.length){case 1:a[gm]=a[Vu],a[G2]=a[Vu],a[Bv]=a[Vu];break;case 2:a[G2]=a[Vu],a[Bv]=a[gm];break;case 3:a[Bv]=a[gm];break}for(let o=0;o<4;o++)for(const l in r)if(r[l]!==null&&r[l].special!==a[o].special)return!1;for(let o=0;o<4;o++)this.canOverride(xD[o],a[o])&&(r[xD[o]]=a[o]);return!0}}return i.call(this)?(this.loc||(this.loc=n.loc),!0):!1}isOkToMinimize(){const e=this.sides.top,n=this.sides.right,i=this.sides.bottom,r=this.sides.left;if(e&&n&&i&&r){const s=e.important+n.important+i.important+r.important;return s===0||s===4}return!1}getValue(){const e=new ed.List,n=this.sides,i=[n.top,n.right,n.bottom,n.left],r=[ed.generate(n.top.node),ed.generate(n.right.node),ed.generate(n.bottom.node),ed.generate(n.left.node)];r[Bv]===r[gm]&&(i.pop(),r[G2]===r[Vu]&&(i.pop(),r[gm]===r[Vu]&&i.pop()));for(let s=0;s<i.length;s++)e.appendData(i[s].node);return this.iehack&&e.appendData({type:"Identifier",loc:null,name:this.iehack}),{type:"Value",loc:null,children:e}}getDeclaration(){return{type:"Declaration",loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}}}function v9e(t,e,n,i){const r=t.block.children,s=t.prelude.children.first.id;return t.block.children.forEachRight((function(a,o){const l=a.property;if(!SD.hasOwnProperty(l))return;const c=SD[l];let f,u;if((!i||s===i)&&c in e&&(u=p9e,f=e[c]),(!f||!f.add(l,a))&&(u=YQ,f=new g9e(c),!f.add(l,a))){i=null;return}e[c]=f,n.push({operation:u,block:r,item:o,shorthand:f}),i=s})),i}function b9e(t,e){t.forEach((function(n){const i=n.shorthand;i.isOkToMinimize()&&(n.operation===YQ?n.item.data=e(i.getDeclaration()):n.block.remove(n.item))}))}function y9e(t,e){const n={},i=[];ed.walk(t,{visit:"Rule",reverse:!0,enter(r){const s=this.block||this.stylesheet,a=(r.pseudoSignature||"")+"|"+r.prelude.children.first.id;let o,l;n.hasOwnProperty(s.id)?o=n[s.id]:(o={lastShortSelector:null},n[s.id]=o),o.hasOwnProperty(a)?l=o[a]:(l={},o[a]=l),o.lastShortSelector=v9e.call(this,r,l,i,o.lastShortSelector)}}),b9e(i,e.declaration)}var w9e=y9e;const vf=Ye;let k9e=1;const O9e=new Set(["src"]),_D={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},CD={cursor:["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],overflow:["hidden","visible","scroll","auto"],position:["static","relative","absolute","fixed"]},$D={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};function KQ(t,e,n){const i=vf.property(t).basename;if(i==="background")return t+":"+vf.generate(e.value);const r=e.id;let s=n[r];if(!s){switch(e.value.type){case"Value":const a={};let o="",l="",c=!1;e.value.children.forEach((function f(u){switch(u.type){case"Value":case"Brackets":case"Parentheses":u.children.forEach(f);break;case"Raw":c=!0;break;case"Identifier":{const{name:h}=u;o||(o=vf.keyword(h).vendor),/\\[09]/.test(h)&&(l=RegExp.lastMatch),CD.hasOwnProperty(i)?CD[i].indexOf(h)===-1&&(a[h]=!0):_D.hasOwnProperty(i)&&_D[i].test(h)&&(a[h]=!0);break}case"Function":{let{name:h}=u;o||(o=vf.keyword(h).vendor),h==="rect"&&(u.children.some((g=>g.type==="Operator"&&g.value===","))||(h="rect-backward")),a[h+"()"]=!0,u.children.forEach(f);break}case"Dimension":{const{unit:h}=u;switch(/\\[09]/.test(h)&&(l=RegExp.lastMatch),h){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":a[h]=!0;break}break}}})),s=c?"!"+k9e++:"!"+Object.keys(a).sort()+"|"+l+o;break;case"Raw":s="!"+e.value.value;break;default:s=vf.generate(e.value)}n[r]=s}return t+s}function x9e(t,e,n){const i=vf.property(e.property);if($D.hasOwnProperty(i.basename)){const r=$D[i.basename];for(const s of r){const a=KQ(i.prefix+s,e,n),o=t.hasOwnProperty(a)?t[a]:null;if(o&&(!e.important||o.item.data.important))return o}}}function S9e(t,e,n,i,r){const s=t.block.children;s.forEachRight((function(a,o){const{property:l}=a,c=KQ(l,a,r),f=i[c];f&&!O9e.has(l)?a.important&&!f.item.data.important?(i[c]={block:s,item:o},f.block.remove(f.item)):s.remove(o):x9e(i,a,r)?s.remove(o):(a.fingerprint=c,i[c]={block:s,item:o})})),s.isEmpty&&n.remove(e)}function _9e(t){const e={},n=Object.create(null);vf.walk(t,{visit:"Rule",reverse:!0,enter(i,r,s){const a=this.block||this.stylesheet,o=(i.pseudoSignature||"")+"|"+i.prelude.children.first.id;let l,c;e.hasOwnProperty(a.id)?l=e[a.id]:(l={},e[a.id]=l),l.hasOwnProperty(o)?c=l[o]:(c={},l[o]=c),S9e.call(this,i,r,s,c,n)}})}var C9e=_9e;const $9e=Ye,PD=Do;function P9e(t,e,n){const i=t.prelude.children,r=t.block.children,s=i.first.compareMarker,a={};n.nextUntil(e.next,(function(o,l){if(o.type!=="Rule")return PD.unsafeToSkipNode.call(i,o);if(t.pseudoSignature!==o.pseudoSignature)return!0;const c=o.prelude.children.head,f=o.block.children,u=c.data.compareMarker;if(u in a)return!0;if(i.head===i.tail&&i.first.id===c.data.id){r.appendList(f),n.remove(l);return}if(PD.isEqualDeclarations(r,f)){const h=c.data.id;i.some(((m,g)=>{const v=m.id;if(h<v)return i.insert(c,g),!0;if(!g.next)return i.insert(c),!0})),n.remove(l);return}if(u===s)return!0;a[u]=!0}))}function T9e(t){$9e.walk(t,{visit:"Rule",enter:P9e})}var A9e=T9e;const S3=Ye,tf=Do;function X2(t){return t.reduce(((e,n)=>e+n.id.length+1),0)-1}function Y2(t){let e=0;for(const n of t)e+=n.length;return e+t.length-1}function E9e(t,e,n){const i=this.block!==null?this.block.avoidRulesMerge:!1,r=t.prelude.children,s=t.block,a=Object.create(null);let o=!0,l=!0;n.prevUntil(e.prev,(function(c,f){const u=c.block,h=c.type;if(h!=="Rule"){const v=tf.unsafeToSkipNode.call(r,c);return!v&&h==="Atrule"&&u&&S3.walk(u,{visit:"Rule",enter(w){w.prelude.children.forEach((O=>{a[O.compareMarker]=!0}))}}),v}if(t.pseudoSignature!==c.pseudoSignature)return!0;const m=c.prelude.children;if(l=!m.some((v=>v.compareMarker in a)),!l&&!o)return!0;if(o&&tf.isEqualSelectors(m,r))return u.children.appendList(s.children),n.remove(e),!0;const g=tf.compareDeclarations(s.children,u.children);if(g.eq.length){if(!g.ne1.length&&!g.ne2.length)return l&&(tf.addSelectors(r,m),n.remove(f)),!0;if(!i)if(g.ne1.length&&!g.ne2.length){const v=X2(r),w=Y2(g.eq);o&&v<w&&(tf.addSelectors(m,r),s.children.fromArray(g.ne1))}else if(!g.ne1.length&&g.ne2.length){const v=X2(m),w=Y2(g.eq);l&&v<w&&(tf.addSelectors(r,m),u.children.fromArray(g.ne2))}else{const v={type:"SelectorList",loc:null,children:tf.addSelectors(m.copy(),r)},w=X2(v.children)+2;if(Y2(g.eq)>=w){const x=n.createItem({type:"Rule",loc:null,prelude:v,block:{type:"Block",loc:null,children:new S3.List().fromArray(g.eq)},pseudoSignature:t.pseudoSignature});return s.children.fromArray(g.ne1),u.children.fromArray(g.ne2overrided),o?n.insert(x,f):n.insert(x,e),!0}}}o&&(o=!m.some((v=>r.some((w=>w.compareMarker===v.compareMarker))))),m.forEach((v=>{a[v.compareMarker]=!0}))}))}function R9e(t){S3.walk(t,{visit:"Rule",reverse:!0,enter:E9e})}var D9e=R9e;const M9e=YEe,N9e=t9e,L9e=f9e,j9e=h9e,I9e=w9e,B9e=C9e,F9e=A9e,Q9e=D9e;function z9e(t,e){const n=M9e(t,e);e.logger("prepare",t),N9e(t,e),e.logger("mergeAtrule",t),L9e(t),e.logger("initialMergeRuleset",t),j9e(t),e.logger("disjoinRuleset",t),I9e(t,n),e.logger("restructShorthand",t),B9e(t),e.logger("restructBlock",t),F9e(t),e.logger("mergeRuleset",t),Q9e(t),e.logger("restructRuleset",t)}var q9e=z9e;const wa=Ye,W9e=FQ,U9e=NAe,V9e=LEe,H9e=q9e;function Z9e(t,e){const n=new wa.List;let i=!1,r;return t.nextUntil(t.head,((s,a,o)=>{if(s.type==="Comment"){if(!e||s.value.charAt(0)!=="!"){o.remove(a);return}if(i||r)return!0;o.remove(a),r=s;return}s.type!=="WhiteSpace"&&(i=!0),n.insert(o.remove(a))})),{comment:r,stylesheet:{type:"StyleSheet",loc:null,children:n}}}function G9e(t,e,n,i){i.logger(`Compress block #${n}`,null,!0);let r=1;return t.type==="StyleSheet"&&(t.firstAtrulesAllowed=e,t.id=r++),wa.walk(t,{visit:"Atrule",enter(s){s.block!==null&&(s.block.id=r++)}}),i.logger("init",t),U9e(t,i),i.logger("clean",t),V9e(t),i.logger("replace",t),i.restructuring&&H9e(t,i),t}function X9e(t){let e="comments"in t?t.comments:"exclamation";return typeof e=="boolean"?e=e?"exclamation":!1:e!=="exclamation"&&e!=="first-exclamation"&&(e=!1),e}function Y9e(t){return"restructure"in t?t.restructure:"restructuring"in t?t.restructuring:!0}function K9e(t){return new wa.List().appendData({type:"Rule",loc:null,prelude:{type:"SelectorList",loc:null,children:new wa.List().appendData({type:"Selector",loc:null,children:new wa.List().appendData({type:"TypeSelector",loc:null,name:"x"})})},block:t})}function J9e(t,e){t=t||{type:"StyleSheet",loc:null,children:new wa.List},e=e||{};const n={logger:typeof e.logger=="function"?e.logger:function(){},restructuring:Y9e(e),forceMediaMerge:!!e.forceMediaMerge,usage:e.usage?W9e.buildIndex(e.usage):!1},i=new wa.List;let r=X9e(e),s=!0,a,o,l=1,c;e.clone&&(t=wa.clone(t)),t.type==="StyleSheet"?(a=t.children,t.children=i):a=K9e(t);do{if(o=Z9e(a,!!r),G9e(o.stylesheet,s,l++,n),c=o.stylesheet.children,o.comment&&(i.isEmpty||i.insert(wa.List.createItem({type:"Raw",value:`
|
||
`})),i.insert(wa.List.createItem(o.comment)),c.isEmpty||i.insert(wa.List.createItem({type:"Raw",value:`
|
||
`}))),s&&!c.isEmpty){const f=c.last;(f.type!=="Atrule"||f.name!=="import"&&f.name!=="charset")&&(s=!1)}r!=="exclamation"&&(r=!1),i.appendList(c)}while(!a.isEmpty);return{ast:t}}var eRe=J9e;const ud=Ye,tRe=eRe,nRe=VQ;function TD(t){const e=ud.string.encode(t,!0),n=ud.string.encode(t);return e.length<n.length?e:n}const{lexer:iRe,tokenize:rRe,parse:sRe,generate:aRe,walk:oRe,find:lRe,findLast:cRe,findAll:fRe,fromPlainObject:uRe,toPlainObject:dRe}=ud.fork({node:{String:{generate(t){this.token(ud.tokenTypes.String,TD(t.value))}},Url:{generate(t){const e=ud.url.encode(t.value),n=TD(t.value);this.token(ud.tokenTypes.Url,e.length<=n.length+5?e:"url("+n+")")}}}});ys.compress=tRe;ys.specificity=nRe;ys.find=lRe;ys.findAll=fRe;ys.findLast=cRe;ys.fromPlainObject=uRe;ys.generate=aRe;ys.lexer=iRe;ys.parse=sRe;ys.toPlainObject=dRe;ys.tokenize=rRe;ys.walk=oRe;var Lc={};const hRe=HQ,xp=Do;Lc.processSelector=hRe;Lc.addSelectors=xp.addSelectors;Lc.compareDeclarations=xp.compareDeclarations;Lc.hasSimilarSelectors=xp.hasSimilarSelectors;Lc.isEqualDeclarations=xp.isEqualDeclarations;Lc.isEqualSelectors=xp.isEqualSelectors;Lc.unsafeToSkipNode=xp.unsafeToSkipNode;const pRe=Nxe,JQ=ys,mRe=Lc,{parse:gRe,generate:_3,compress:vRe}=JQ;function Hu(t,e,n,i){return e.debug&&console.error(`## ${t} done in %d ms
|
||
`,Date.now()-n),i}function bRe(t){let e;return function(i,r){let s=i;if(r&&(s=`[${((Date.now()-e)/1e3).toFixed(3)}s] ${s}`),t>1&&r){let a=_3(r);t===2&&a.length>256&&(a=a.substr(0,256)+"..."),s+=`
|
||
${a}
|
||
`}console.error(s),e=Date.now()}}function yRe(t){return t={...t},typeof t.logger!="function"&&t.debug&&(t.logger=bRe(t.debug)),t}function AD(t,e,n){Array.isArray(n)||(n=[n]),n.forEach((i=>i(t,e)))}function ez(t,e,n){n=n||{};const i=n.filename||"<unknown>";let r;const s=Hu("parsing",n,Date.now(),gRe(e,{context:t,filename:i,positions:!!n.sourceMap}));n.beforeCompress&&Hu("beforeCompress",n,Date.now(),AD(s,n,n.beforeCompress));const a=Hu("compress",n,Date.now(),vRe(s,yRe(n)));return n.afterCompress&&Hu("afterCompress",n,Date.now(),AD(a,n,n.afterCompress)),n.sourceMap?r=Hu("generate(sourceMap: true)",n,Date.now(),(()=>{const o=_3(a.ast,{sourceMap:!0});return o.map._file=i,o.map.setSourceContent(i,e),o})()):r=Hu("generate",n,Date.now(),{css:_3(a.ast),map:null}),r}function wRe(t,e){return ez("stylesheet",t,e)}function kRe(t,e){return ez("declarationList",t,e)}Nc.version=pRe.version;Nc.syntax=JQ;Nc.utils=mRe;Nc.minify=wRe;Nc.minifyBlock=kRe;var ws={};const ds=Vt,K2=S1,{syntax:{specificity:ORe}}=Nc,{visit:xRe,matches:SRe}=At,{attrsGroups:_Re,inheritableAttrs:CRe,presentationNonInheritableGroupAttrs:$Re}=An,Fv=ds.walk.skip,ED=(t,e)=>{const n=[];t.block.children.forEach((r=>{r.type==="Declaration"&&n.push({name:r.property,value:ds.generate(r.value),important:r.important===!0})}));const i=[];return ds.walk(t.prelude,(r=>{if(r.type==="Selector"){const s=ds.clone(r);let a=!1;ds.walk(s,((o,l,c)=>{o.type==="PseudoClassSelector"&&(a=!0,c.remove(l))})),i.push({specificity:ORe(r),dynamic:a||e,selector:ds.generate(s),declarations:n})}})),i},PRe=(t,e)=>{const n=[],i=ds.parse(t,{parseValue:!1,parseAtrulePrelude:!1});return ds.walk(i,(r=>{if(r.type==="Rule")return n.push(...ED(r,e||!1)),Fv;if(r.type==="Atrule")return r.name==="keyframes"||r.name==="-webkit-keyframes"||ds.walk(r,(s=>{if(s.type==="Rule")return n.push(...ED(s,e||!0)),Fv})),Fv})),n},TRe=t=>{const e=[],n=ds.parse(t,{context:"declarationList",parseValue:!1});return ds.walk(n,(i=>{i.type==="Declaration"&&e.push({name:i.property,value:ds.generate(i.value),important:i.important===!0})})),e},RD=(t,e)=>{const n={},i=new Map;for(const[s,a]of Object.entries(e.attributes))_Re.presentation.has(s)&&(n[s]={type:"static",inherited:!1,value:a},i.set(s,!1));for(const{selector:s,declarations:a,dynamic:o}of t.rules)if(SRe(e,s))for(const{name:l,value:c,important:f}of a){const u=n[l];if(!(u&&u.type==="dynamic")){if(o){n[l]={type:"dynamic",inherited:!1};continue}(u==null||f===!0||i.get(l)===!1)&&(n[l]={type:"static",inherited:!1,value:c},i.set(l,f))}}const r=e.attributes.style==null?[]:TRe(e.attributes.style);for(const{name:s,value:a,important:o}of r){const l=n[s];l&&l.type==="dynamic"||(l==null||o===!0||i.get(s)===!1)&&(n[s]={type:"static",inherited:!1,value:a},i.set(s,o))}return n},tz=(t,e)=>{for(let n=0;n<4;n+=1){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0};ws.compareSpecificity=tz;const ARe=t=>{const e=[],n=new Map;return xRe(t,{element:{enter:(i,r)=>{if(n.set(i,r),i.name==="style"&&(i.attributes.type==null||i.attributes.type===""||i.attributes.type==="text/css")){const s=i.attributes.media!=null&&i.attributes.media!=="all";for(const a of i.children)(a.type==="text"||a.type==="cdata")&&e.push(...PRe(a.value,s))}}}}),e.sort(((i,r)=>tz(i.specificity,r.specificity))),{rules:e,parents:n}};ws.collectStylesheet=ARe;const ERe=(t,e)=>{const{parents:n}=t,i=RD(t,e);let r=n.get(e);for(;r!=null&&r.type!=="root";){const s=RD(t,r);for(const[a,o]of Object.entries(s))i[a]==null&&CRe.has(a)&&!$Re.has(a)&&(i[a]={...o,inherited:!0});r=n.get(r)}return i};ws.computeStyle=ERe;const RRe=(t,e,n=null,i=!1)=>{const r=typeof t=="string"?K2.parse(t):K2.parse(ds.generate(t.data));for(const s of r)if(s.some(((o,l)=>i&&(l===s.length-1||!K2.isTraversal(s[l+1]))||o.type!=="attribute"||o.name!==e?!1:n==null?!0:o.value===n)))return!0;return!1};ws.includesAttrSelector=RRe;const js=Vt,{syntax:{specificity:DD}}=Nc,{visitSkip:DRe,querySelectorAll:MRe,detachNodeFromParent:NRe}=At,{compareSpecificity:LRe,includesAttrSelector:J2}=ws,{attrsGroups:jRe,pseudoClasses:MD}=An;D1.name="inlineStyles";D1.description="inline styles (additional options)";const IRe=[...MD.functional,...MD.treeStructural];D1.fn=(t,e)=>{const{onlyMatchedOnce:n=!0,removeMatchedSelectors:i=!0,useMqs:r=["","screen"],usePseudos:s=[""]}=e,a=[];let o=[];return{element:{enter:(l,c)=>{if(l.name==="foreignObject")return DRe;if(l.name!=="style"||l.children.length===0||l.attributes.type!=null&&l.attributes.type!==""&&l.attributes.type!=="text/css")return;const f=l.children.filter((h=>h.type==="text"||h.type==="cdata")).map((h=>h.value)).join("");let u=null;try{u=js.parse(f,{parseValue:!1,parseCustomProperty:!1})}catch{return}u.type==="StyleSheet"&&a.push({node:l,parentNode:c,cssAst:u}),js.walk(u,{visit:"Rule",enter(h){const m=this.atrule;let g="";m!=null&&(g=m.name,m.prelude!=null&&(g+=` ${js.generate(m.prelude)}`)),r.includes(g)&&h.prelude.type==="SelectorList"&&h.prelude.children.forEach(((v,w)=>{if(v.type==="Selector"){const O=[];v.children.forEach((($,T,S)=>{($.type==="PseudoClassSelector"||$.type==="PseudoElementSelector")&&!IRe.includes($.name)&&O.push({item:T,list:S})}));const x=js.generate({type:"Selector",children:new js.List().fromArray(O.map(($=>$.item.data)))});if(s.includes(x))for(const $ of O)$.list.remove($.item);o.push({node:v,rule:h,item:w})}}))}})}},root:{exit:()=>{if(a.length===0)return;const l=o.slice().sort(((c,f)=>{const u=DD(c.item.data),h=DD(f.item.data);return LRe(u,h)})).reverse();for(const c of l){const f=js.generate(c.item.data),u=[];try{for(const h of MRe(t,f))h.type==="element"&&u.push(h)}catch{continue}if(u.length!==0&&!(n&&u.length>1)){for(const h of u){const m=js.parse(h.attributes.style??"",{context:"declarationList",parseValue:!1});if(m.type!=="DeclarationList")continue;const g=new Map;let v;js.walk(m,{visit:"Declaration",enter(O,x){v==null&&(v=x),g.set(O.property.toLowerCase(),x)}}),js.walk(c.rule,{visit:"Declaration",enter(O){const x=O.property;jRe.presentation.has(x)&&!o.some((S=>J2(S.item,x)))&&delete h.attributes[x];const $=g.get(x),T=m.children.createItem(O);$==null?m.children.insert(T,v):$.data.important!==!0&&O.important===!0&&(m.children.replace($,T),g.set(x,T))}});const w=js.generate(m);w.length!==0&&(h.attributes.style=w)}i&&u.length!==0&&c.rule.prelude.type==="SelectorList"&&c.rule.prelude.children.remove(c.item),c.matchedElements=u}}if(i){for(const c of l)if(c.matchedElements!=null&&!(n&&c.matchedElements.length>1))for(const f of c.matchedElements){const u=new Set(f.attributes.class==null?null:f.attributes.class.split(" "));for(const m of c.node.children)m.type==="ClassSelector"&&!o.some((g=>J2(g.item,"class",m.name,!0)))&&u.delete(m.name);u.size===0?delete f.attributes.class:f.attributes.class=Array.from(u).join(" ");const h=c.node.children.first;(h==null?void 0:h.type)==="IdSelector"&&f.attributes.id===h.name&&!o.some((m=>J2(m.item,"id",h.name,!0)))&&delete f.attributes.id}for(const c of a)if(js.walk(c.cssAst,{visit:"Rule",enter:function(f,u,h){f.type==="Rule"&&f.prelude.type==="SelectorList"&&f.prelude.children.isEmpty&&h.remove(u)}}),c.cssAst.children.isEmpty)NRe(c.node,c.parentNode);else{const f=c.node.children[0];(f.type==="text"||f.type==="cdata")&&(f.value=js.generate(c.cssAst))}}}}}};var z1={},ni={};const{attrsGroups:vm,referencesProps:BRe}=An,nz=/\burl\((["'])?#(.+?)\1\)/g,FRe=/^#(.+?)$/,QRe=/(\w+)\.[a-zA-Z]/;ni.encodeSVGDatauri=(t,e)=>{var n="data:image/svg+xml";return!e||e==="base64"?(n+=";base64,",t=n+Buffer.from(t).toString("base64")):e==="enc"?t=n+","+encodeURIComponent(t):e==="unenc"&&(t=n+","+t),t};ni.decodeSVGDatauri=t=>{var e=/data:image\/svg\+xml(;charset=[^;,]*)?(;base64)?,(.*)/,n=e.exec(t);if(!n)return t;var i=n[3];return n[2]?t=Buffer.from(i,"base64").toString("utf8"):i.charAt(0)==="%"?t=decodeURIComponent(i):i.charAt(0)==="<"&&(t=i),t};ni.cleanupOutData=(t,e,n)=>{let i="",r,s;return t.forEach(((a,o)=>{if(r=" ",o==0&&(r=""),e.noSpaceAfterFlags&&(n=="A"||n=="a")){var l=o%7;(l==4||l==5)&&(r="")}const c=e.leadingZero?iz(a):a.toString();e.negativeExtraSpace&&r!=""&&(a<0||c.charAt(0)==="."&&s%1!==0)&&(r=""),s=a,i+=r+c})),i};const iz=t=>{const e=t.toString();return 0<t&&t<1&&e.startsWith("0")?e.slice(1):-1<t&&t<0&&e[1]==="0"?e[0]+e.slice(2):e};ni.removeLeadingZero=iz;const zRe=t=>t.name==="script"&&t.children.length!==0||t.name==="a"&&Object.entries(t.attributes).some((([i,r])=>(i==="href"||i.endsWith(":href"))&&r!=null&&r.trimStart().startsWith("javascript:")))?!0:[...vm.animationEvent,...vm.documentEvent,...vm.documentElementEvent,...vm.globalEvent,...vm.graphicalEvent].some((n=>t.attributes[n]!=null));ni.hasScripts=zRe;const qRe=t=>new RegExp(nz).test(t);ni.includesUrlReference=qRe;const WRe=(t,e)=>{const n=[];if(BRe.has(t)){const i=e.matchAll(nz);for(const r of i)n.push(r[2])}if(t==="href"||t.endsWith(":href")){const i=FRe.exec(e);i!=null&&n.push(i[1])}if(t==="begin"){const i=QRe.exec(e);i!=null&&n.push(i[1])}return n.map((i=>decodeURI(i)))};ni.findReferences=WRe;const URe=(t,e)=>{const n=10**e;return Math.round(t*n)/n};ni.toFixed=URe;const ND=Nc,{detachNodeFromParent:VRe}=At,{hasScripts:HRe}=ni;z1.name="minifyStyles";z1.description="minifies styles and removes unused styles";z1.fn=(t,{usage:e,...n})=>{const i=new Map,r=[],s=new Set,a=new Set,o=new Set;let l=!0,c=!0,f=!0,u=!1;typeof e=="boolean"?(l=e,c=e,f=e):e&&(l=e.tags==null?!0:e.tags,c=e.ids==null?!0:e.ids,f=e.classes==null?!0:e.classes,u=e.force==null?!1:e.force);let h=!1;return{element:{enter:(m,g)=>{if(HRe(m)&&(h=!0),s.add(m.name),m.attributes.id!=null&&a.add(m.attributes.id),m.attributes.class!=null)for(const v of m.attributes.class.split(/\s+/))o.add(v);m.name==="style"&&m.children.length!==0?i.set(m,g):m.attributes.style!=null&&r.push(m)}},root:{exit:()=>{const m={};(!h||u)&&(l&&(m.tags=Array.from(s)),c&&(m.ids=Array.from(a)),f&&(m.classes=Array.from(o)));for(const[g,v]of i.entries())if(g.children[0].type==="text"||g.children[0].type==="cdata"){const w=g.children[0].value,O=ND.minify(w,{...n,usage:m}).css;if(O.length===0){VRe(g,v);continue}w.indexOf(">")>=0||w.indexOf("<")>=0?(g.children[0].type="cdata",g.children[0].value=O):(g.children[0].type="text",g.children[0].value=O)}for(const g of r){const v=g.attributes.style;g.attributes.style=ND.minifyBlock(v,{...n}).css}}}}};var q1={};const{visitSkip:ZRe}=At,{hasScripts:GRe,findReferences:XRe}=ni;q1.name="cleanupIds";q1.description="removes unused IDs and minifies used";const rz=["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"],LD=rz.length-1,YRe=(t,e)=>{for(const n of e)if(t.startsWith(n))return!0;return!1},KRe=t=>{if(t==null)return[0];t[t.length-1]+=1;for(let e=t.length-1;e>0;e--)t[e]>LD&&(t[e]=0,t[e-1]!==void 0&&t[e-1]++);return t[0]>LD&&(t[0]=0,t.unshift(0)),t},JRe=t=>t.map((e=>rz[e])).join("");q1.fn=(t,e)=>{const{remove:n=!0,minify:i=!0,preserve:r=[],preservePrefixes:s=[],force:a=!1}=e,o=new Set(Array.isArray(r)?r:r?[r]:[]),l=Array.isArray(s)?s:s?[s]:[],c=new Map,f=new Map;let u=!1;return{element:{enter:h=>{if(!a){if(h.name==="style"&&h.children.length!==0||GRe(h)){u=!0;return}if(h.name==="svg"){let m=!0;for(const g of h.children)if(g.type!=="element"||g.name!=="defs"){m=!1;break}if(m)return ZRe}}for(const[m,g]of Object.entries(h.attributes))if(m==="id"){const v=g;c.has(v)?delete h.attributes.id:c.set(v,h)}else{const v=XRe(m,g);for(const w of v){let O=f.get(w);O==null&&(O=[],f.set(w,O)),O.push({element:h,name:m})}}}},root:{exit:()=>{if(u)return;const h=g=>o.has(g)||YRe(g,l);let m=null;for(const[g,v]of f){const w=c.get(g);if(w!=null){if(i&&h(g)===!1){let O=null;do m=KRe(m),O=JRe(m);while(h(O)||f.has(O)&&c.get(O)==null);w.attributes.id=O;for(const{element:x,name:$}of v){const T=x.attributes[$];T.includes("#")?x.attributes[$]=T.replace(`#${encodeURI(g)}`,`#${O}`):x.attributes[$]=T.replace(`${g}.`,`${O}.`)}}c.delete(g)}}if(n)for(const[g,v]of c)h(g)===!1&&delete v.attributes.id}}}};var W1={};const{detachNodeFromParent:jD}=At,{elemsGroups:eDe}=An;W1.name="removeUselessDefs";W1.description="removes elements in <defs> without id";W1.fn=()=>({element:{enter:(t,e)=>{if(t.name==="defs"){const n=[];sz(t,n),n.length===0&&jD(t,e);for(const i of n)Object.defineProperty(i,"parentNode",{writable:!0,value:t});t.children=n}else eDe.nonRendering.has(t.name)&&t.attributes.id==null&&jD(t,e)}}});const sz=(t,e)=>{for(const n of t.children)n.type==="element"&&(n.attributes.id!=null||n.name==="style"?e.push(n):sz(n,e))};var U1={};const{removeLeadingZero:tDe}=ni;U1.name="cleanupNumericValues";U1.description="rounds numeric values to the fixed precision, removes default ‘px’ units";const nDe=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,ID={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};U1.fn=(t,e)=>{const{floatPrecision:n=3,leadingZero:i=!0,defaultPx:r=!0,convertToPx:s=!0}=e;return{element:{enter:a=>{if(a.attributes.viewBox!=null){const o=a.attributes.viewBox.split(/\s,?\s*|,\s*/g);a.attributes.viewBox=o.map((l=>{const c=Number(l);return Number.isNaN(c)?l:Number(c.toFixed(n))})).join(" ")}for(const[o,l]of Object.entries(a.attributes)){if(o==="version")continue;const c=l.match(nDe);if(c){let f=Number(Number(c[1]).toFixed(n)),h=c[3]||"";if(s&&h!==""&&h in ID){const g=Number((ID[h]*Number(c[1])).toFixed(n));g.toString().length<c[0].length&&(f=g,h="px")}let m;i?m=tDe(f):m=f.toString(),r&&h==="px"&&(h=""),a.attributes[o]=m+h}}}}}};var V1={};const bm=An;V1.name="convertColors";V1.description="converts colors: rgb() to #rrggbb and #rrggbb to #rgb";const eS="([+-]?(?:\\d*\\.\\d+|\\d+\\.?)%?)",BD="\\s*,\\s*",iDe=new RegExp("^rgb\\(\\s*"+eS+BD+eS+BD+eS+"\\s*\\)$"),rDe=/^#(([a-fA-F0-9])\2){3}$/,sDe=([t,e,n])=>"#"+((256+t<<8|e)<<8|n).toString(16).slice(1).toUpperCase();V1.fn=(t,e)=>{const{currentColor:n=!1,names2hex:i=!0,rgb2hex:r=!0,shorthex:s=!0,shortname:a=!0}=e;return{element:{enter:o=>{for(const[l,c]of Object.entries(o.attributes))if(bm.colorsProps.has(l)){let f=c;if(n){let u;typeof n=="string"?u=f===n:n instanceof RegExp?u=n.exec(f)!=null:u=f!=="none",u&&(f="currentColor")}if(i){const u=f.toLowerCase();bm.colorsNames[u]!=null&&(f=bm.colorsNames[u])}if(r){let u=f.match(iDe);if(u!=null){let h=u.slice(1,4).map((m=>{let g;return m.indexOf("%")>-1?g=Math.round(parseFloat(m)*2.55):g=Number(m),Math.max(0,Math.min(g,255))}));f=sDe(h)}}if(s){let u=f.match(rDe);u!=null&&(f="#"+u[0][1]+u[0][3]+u[0][5])}if(a){const u=f.toLowerCase();bm.colorsShortNames[u]!=null&&(f=bm.colorsShortNames[u])}o.attributes[l]=f}}}}};var H1={};const{visitSkip:aDe,detachNodeFromParent:FD}=At,{collectStylesheet:oDe,computeStyle:lDe}=ws,{elems:cDe,attrsGroups:fDe,elemsGroups:uDe,attrsGroupsDefaults:dDe,presentationNonInheritableGroupAttrs:hDe}=An;H1.name="removeUnknownsAndDefaults";H1.description="removes unknown elements content and attributes, removes attrs with default values";const C3=new Map,az=new Map,oz=new Map;for(const[t,e]of Object.entries(cDe)){const n=new Set;if(e.content)for(const s of e.content)n.add(s);if(e.contentGroups)for(const s of e.contentGroups){const a=uDe[s];if(a)for(const o of a)n.add(o)}const i=new Set;if(e.attrs)for(const s of e.attrs)i.add(s);const r=new Map;if(e.defaults)for(const[s,a]of Object.entries(e.defaults))r.set(s,a);for(const s of e.attrsGroups){const a=fDe[s];if(a)for(const l of a)i.add(l);const o=dDe[s];if(o)for(const[l,c]of Object.entries(o))r.set(l,c)}C3.set(t,n),az.set(t,i),oz.set(t,r)}H1.fn=(t,e)=>{const{unknownContent:n=!0,unknownAttrs:i=!0,defaultAttrs:r=!0,defaultMarkupDeclarations:s=!0,uselessOverrides:a=!0,keepDataAttrs:o=!0,keepAriaAttrs:l=!0,keepRoleAttr:c=!1}=e,f=oDe(t);return{instruction:{enter:u=>{s&&(u.value=u.value.replace(/\s*standalone\s*=\s*(["'])no\1/,""))}},element:{enter:(u,h)=>{if(u.name.includes(":"))return;if(u.name==="foreignObject")return aDe;if(n&&h.type==="element"){const w=C3.get(h.name);if(w==null||w.size===0){if(C3.get(u.name)==null){FD(u,h);return}}else if(w.has(u.name)===!1){FD(u,h);return}}const m=az.get(u.name),g=oz.get(u.name),v=h.type==="element"?lDe(f,h):null;for(const[w,O]of Object.entries(u.attributes))if(!(o&&w.startsWith("data-"))&&!(l&&w.startsWith("aria-"))&&!(c&&w==="role")&&w!=="xmlns"){if(w.includes(":")){const[x]=w.split(":");if(x!=="xml"&&x!=="xlink")continue}if(i&&m&&m.has(w)===!1&&delete u.attributes[w],r&&u.attributes.id==null&&g&&g.get(w)===O&&(v==null?void 0:v[w])==null&&delete u.attributes[w],a&&u.attributes.id==null){const x=v==null?void 0:v[w];hDe.has(w)===!1&&x!=null&&x.type==="static"&&x.value===O&&delete u.attributes[w]}}}}}};var Z1={};const{inheritableAttrs:pDe,attrsGroups:mDe,presentationNonInheritableGroupAttrs:gDe}=An;Z1.name="removeNonInheritableGroupAttrs";Z1.description="removes non-inheritable group’s presentational attributes";Z1.fn=()=>({element:{enter:t=>{if(t.name==="g")for(const e of Object.keys(t.attributes))mDe.presentation.has(e)&&!pDe.has(e)&&!gDe.has(e)&&delete t.attributes[e]}}});var G1={};const{visit:vDe,visitSkip:bDe,detachNodeFromParent:yDe}=At,{collectStylesheet:wDe,computeStyle:QD}=ws,{hasScripts:kDe}=ni,{elemsGroups:ODe}=An;G1.name="removeUselessStrokeAndFill";G1.description="removes useless stroke and fill attributes";G1.fn=(t,e)=>{const{stroke:n=!0,fill:i=!0,removeNone:r=!1}=e;let s=!1;if(vDe(t,{element:{enter:o=>{(o.name==="style"||kDe(o))&&(s=!0)}}}),s)return null;const a=wDe(t);return{element:{enter:(o,l)=>{if(o.attributes.id!=null)return bDe;if(!ODe.shape.has(o.name))return;const c=QD(a,o),f=c.stroke,u=c["stroke-opacity"],h=c["stroke-width"],m=c["marker-end"],g=c.fill,v=c["fill-opacity"],w=l.type==="element"?QD(a,l):null,O=w==null?null:w.stroke;if(n&&(f==null||f.type==="static"&&f.value=="none"||u!=null&&u.type==="static"&&u.value==="0"||h!=null&&h.type==="static"&&h.value==="0")&&(h!=null&&h.type==="static"&&h.value==="0"||m==null)){for(const x of Object.keys(o.attributes))x.startsWith("stroke")&&delete o.attributes[x];O!=null&&O.type==="static"&&O.value!=="none"&&(o.attributes.stroke="none")}if(i&&(g!=null&&g.type==="static"&&g.value==="none"||v!=null&&v.type==="static"&&v.value==="0")){for(const x of Object.keys(o.attributes))x.startsWith("fill-")&&delete o.attributes[x];(g==null||g.type==="static"&&g.value!=="none")&&(o.attributes.fill="none")}r&&(f==null||o.attributes.stroke==="none")&&(g!=null&&g.type==="static"&&g.value==="none"||o.attributes.fill==="none")&&yDe(o,l)}}}};var X1={};X1.name="removeViewBox";X1.description="removes viewBox attribute when possible";const xDe=new Set(["pattern","svg","symbol"]);X1.fn=()=>({element:{enter:(t,e)=>{if(xDe.has(t.name)&&t.attributes.viewBox!=null&&t.attributes.width!=null&&t.attributes.height!=null){if(t.name==="svg"&&e.type!=="root")return;const n=t.attributes.viewBox.split(/[ ,]+/g);n[0]==="0"&&n[1]==="0"&&t.attributes.width.replace(/px$/,"")===n[2]&&t.attributes.height.replace(/px$/,"")===n[3]&&delete t.attributes.viewBox}}}});var Y1={};const ym=Vt,{visit:SDe}=At;Y1.name="cleanupEnableBackground";Y1.description="remove or cleanup enable-background attribute when possible";const _De=/^new\s0\s0\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)\s([-+]?\d*\.?\d+([eE][-+]?\d+)?)$/;Y1.fn=t=>{let e=!1;return SDe(t,{element:{enter:n=>{n.name==="filter"&&(e=!0)}}}),{element:{enter:n=>{let i=null,r=null;if(n.attributes.style!=null&&(i=ym.parse(n.attributes.style,{context:"declarationList"}),i.type==="DeclarationList")){const a=[];ym.walk(i,((o,l)=>{o.type==="Declaration"&&o.property==="enable-background"&&(a.push(l),r=l)}));for(let o=0;o<a.length-1;o++)i.children.remove(a[o])}if(!e){delete n.attributes["enable-background"],(i==null?void 0:i.type)==="DeclarationList"&&(r&&i.children.remove(r),i.children.isEmpty?delete n.attributes.style:n.attributes.style=ym.generate(i));return}const s=n.attributes.width!=null&&n.attributes.height!=null;if((n.name==="svg"||n.name==="mask"||n.name==="pattern")&&s){const a=n.attributes["enable-background"],o=zD(a,n.name,n.attributes.width,n.attributes.height);if(o?n.attributes["enable-background"]=o:delete n.attributes["enable-background"],(i==null?void 0:i.type)==="DeclarationList"&&r){const l=ym.generate(r.data.value),c=zD(l,n.name,n.attributes.width,n.attributes.height);c?r.data.value={type:"Raw",value:c}:i.children.remove(r)}}(i==null?void 0:i.type)==="DeclarationList"&&(i.children.isEmpty?delete n.attributes.style:n.attributes.style=ym.generate(i))}}}};const zD=(t,e,n,i)=>{const r=_De.exec(t);return r!=null&&n===r[1]&&i===r[3]?e==="svg"?void 0:"new":t};var K1={},Sp={};const{removeLeadingZero:CDe,toFixed:$De}=ni,lz={M:2,m:2,Z:0,z:0,L:2,l:2,H:1,h:1,V:1,v:1,C:6,c:6,S:4,s:4,Q:4,q:4,T:2,t:2,A:7,a:7},PDe=t=>t in lz,TDe=t=>{const e=t.codePointAt(0);return e===32||e===9||e===13||e===10},ADe=t=>{const e=t.codePointAt(0);return e==null?!1:48<=e&&e<=57},tS=(t,e)=>{let n=e,i="",r="none";for(;n<t.length;n+=1){const a=t[n];if(a==="+"||a==="-"){if(r==="none"){r="sign",i+=a;continue}if(r==="e"){r="exponent_sign",i+=a;continue}}if(ADe(a)){if(r==="none"||r==="sign"||r==="whole"){r="whole",i+=a;continue}if(r==="decimal_point"||r==="decimal"){r="decimal",i+=a;continue}if(r==="e"||r==="exponent_sign"||r==="exponent"){r="exponent",i+=a;continue}}if(a==="."&&(r==="none"||r==="sign"||r==="whole")){r="decimal_point",i+=a;continue}if((a==="E"||a=="e")&&(r==="whole"||r==="decimal_point"||r==="decimal")){r="e",i+=a;continue}break}const s=Number.parseFloat(i);return Number.isNaN(s)?[e,null]:[n-1,s]},EDe=t=>{const e=[];let n=null,i=[],r=0,s=!1,a=!1;for(let o=0;o<t.length;o+=1){const l=t.charAt(o);if(TDe(l))continue;if(s&&l===","){if(a)break;a=!0;continue}if(PDe(l)){if(a)return e;if(n==null){if(l!=="M"&&l!=="m")return e}else if(i.length!==0)return e;n=l,i=[],r=lz[n],s=!1,r===0&&e.push({command:n,args:i});continue}if(n==null)return e;let c=o,f=null;if(n==="A"||n==="a"){const u=i.length;(u===0||u===1)&&l!=="+"&&l!=="-"&&([c,f]=tS(t,o)),(u===2||u===5||u===6)&&([c,f]=tS(t,o)),(u===3||u===4)&&(l==="0"&&(f=0),l==="1"&&(f=1))}else[c,f]=tS(t,o);if(f==null)return e;i.push(f),s=!0,a=!1,o=c,i.length===r&&(e.push({command:n,args:i}),n==="M"&&(n="L"),n==="m"&&(n="l"),i=[])}return e};Sp.parsePathData=EDe;const RDe=(t,e)=>(e!=null&&(t=$De(t,e)),{roundedStr:CDe(t),rounded:t}),Qv=(t,e,n,i)=>{let r="",s;for(let a=0;a<e.length;a++){const{roundedStr:o,rounded:l}=RDe(e[a],n);i&&(t==="A"||t==="a")&&(a%7===4||a%7===5)||a===0||l<0||!Number.isInteger(s)&&l!=0&&l<1&&l>-1?r+=o:r+=` ${o}`,s=l}return r},DDe=({pathData:t,precision:e,disableSpaceAfterFlags:n})=>{if(t.length===1){const{command:s,args:a}=t[0];return s+Qv(s,a,e,n)}let i="",r={...t[0]};t[1].command==="L"?r.command="M":t[1].command==="l"&&(r.command="m");for(let s=1;s<t.length;s++){const{command:a,args:o}=t[s];r.command===a&&r.command!=="M"&&r.command!=="m"||r.command==="M"&&a==="L"||r.command==="m"&&a==="l"?(r.args=[...r.args,...o],s===t.length-1&&(i+=r.command+Qv(r.command,r.args,e,n))):(i+=r.command+Qv(r.command,r.args,e,n),s===t.length-1?i+=a+Qv(a,o,e,n):r={command:a,args:o})}return i};Sp.stringifyPathData=DDe;const{elemsGroups:MDe}=An,{visit:NDe,visitSkip:qD,querySelector:LDe,detachNodeFromParent:wm}=At,{collectStylesheet:jDe,computeStyle:WD}=ws,{parsePathData:IDe}=Sp,{hasScripts:BDe,findReferences:FDe}=ni,QDe=MDe.nonRendering;K1.name="removeHiddenElems";K1.description="removes hidden elements (zero sized, with absent attributes)";K1.fn=(t,e)=>{const{isHidden:n=!0,displayNone:i=!0,opacity0:r=!0,circleR0:s=!0,ellipseRX0:a=!0,ellipseRY0:o=!0,rectWidth0:l=!0,rectHeight0:c=!0,patternWidth0:f=!0,patternHeight0:u=!0,imageWidth0:h=!0,imageHeight0:m=!0,pathEmptyD:g=!0,polylineEmptyPoints:v=!0,polygonEmptyPoints:w=!0}=e,O=jDe(t),x=new Map,$=new Set,T=new Map,S=new Set,R=new Map;let _=!1;function P(A,N){A.type==="element"&&A.attributes.id!=null&&N.type==="element"&&N.name==="defs"&&$.add(A.attributes.id),wm(A,N)}return NDe(t,{element:{enter:(A,N)=>{if(QDe.has(A.name))return A.attributes.id==null?(wm(A,N),qD):(x.set(A,N),qD);const M=WD(O,A);r&&M.opacity&&M.opacity.type==="static"&&M.opacity.value==="0"&&P(A,N)}}}),{element:{enter:(A,N)=>{if(A.name==="style"&&A.children.length!==0||BDe(A)){_=!0;return}if(A.name==="defs"&&T.set(A,N),A.name==="use")for(const Q of Object.keys(A.attributes)){if(Q!=="href"&&!Q.endsWith(":href"))continue;const z=A.attributes[Q].slice(1);let Y=R.get(z);Y||(Y=[],R.set(z,Y)),Y.push({node:A,parentNode:N})}const M=WD(O,A);if(n&&M.visibility&&M.visibility.type==="static"&&M.visibility.value==="hidden"&&LDe(A,"[visibility=visible]")==null){P(A,N);return}if(i&&M.display&&M.display.type==="static"&&M.display.value==="none"&&A.name!=="marker"){P(A,N);return}if(s&&A.name==="circle"&&A.children.length===0&&A.attributes.r==="0"){P(A,N);return}if(a&&A.name==="ellipse"&&A.children.length===0&&A.attributes.rx==="0"){P(A,N);return}if(o&&A.name==="ellipse"&&A.children.length===0&&A.attributes.ry==="0"){P(A,N);return}if(l&&A.name==="rect"&&A.children.length===0&&A.attributes.width==="0"){P(A,N);return}if(c&&l&&A.name==="rect"&&A.children.length===0&&A.attributes.height==="0"){P(A,N);return}if(f&&A.name==="pattern"&&A.attributes.width==="0"){P(A,N);return}if(u&&A.name==="pattern"&&A.attributes.height==="0"){P(A,N);return}if(h&&A.name==="image"&&A.attributes.width==="0"){P(A,N);return}if(m&&A.name==="image"&&A.attributes.height==="0"){P(A,N);return}if(g&&A.name==="path"){if(A.attributes.d==null){P(A,N);return}const Q=IDe(A.attributes.d);if(Q.length===0){P(A,N);return}if(Q.length===1&&M["marker-start"]==null&&M["marker-end"]==null){P(A,N);return}}if(v&&A.name==="polyline"&&A.attributes.points==null){P(A,N);return}if(w&&A.name==="polygon"&&A.attributes.points==null){P(A,N);return}for(const[Q,U]of Object.entries(A.attributes)){const z=FDe(Q,U);for(const Y of z)S.add(Y)}}},root:{exit:()=>{for(const A of $){const N=R.get(A);if(N)for(const{node:M,parentNode:Q}of N)wm(M,Q)}if(!_)for(const[A,N]of x.entries()){const M=A.attributes.id;S.has(M)||wm(A,N)}for(const[A,N]of T.entries())A.children.length===0&&wm(A,N)}}}};var J1={};const{detachNodeFromParent:nS}=At;J1.name="removeEmptyText";J1.description="removes empty <text> elements";J1.fn=(t,e)=>{const{text:n=!0,tspan:i=!0,tref:r=!0}=e;return{element:{enter:(s,a)=>{n&&s.name==="text"&&s.children.length===0&&nS(s,a),i&&s.name==="tspan"&&s.children.length===0&&nS(s,a),r&&s.name==="tref"&&s.attributes["xlink:href"]==null&&nS(s,a)}}}};var e0={};const{stringifyPathData:km}=Sp,{detachNodeFromParent:zDe}=At;e0.name="convertShapeToPath";e0.description="converts basic shapes to more compact path form";const qDe=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;e0.fn=(t,e)=>{const{convertArcs:n=!1,floatPrecision:i}=e;return{element:{enter:(r,s)=>{if(r.name==="rect"&&r.attributes.width!=null&&r.attributes.height!=null&&r.attributes.rx==null&&r.attributes.ry==null){const a=Number(r.attributes.x||"0"),o=Number(r.attributes.y||"0"),l=Number(r.attributes.width),c=Number(r.attributes.height);if(Number.isNaN(a-o+l-c))return;const f=[{command:"M",args:[a,o]},{command:"H",args:[a+l]},{command:"V",args:[o+c]},{command:"H",args:[a]},{command:"z",args:[]}];r.name="path",r.attributes.d=km({pathData:f,precision:i}),delete r.attributes.x,delete r.attributes.y,delete r.attributes.width,delete r.attributes.height}if(r.name==="line"){const a=Number(r.attributes.x1||"0"),o=Number(r.attributes.y1||"0"),l=Number(r.attributes.x2||"0"),c=Number(r.attributes.y2||"0");if(Number.isNaN(a-o+l-c))return;const f=[{command:"M",args:[a,o]},{command:"L",args:[l,c]}];r.name="path",r.attributes.d=km({pathData:f,precision:i}),delete r.attributes.x1,delete r.attributes.y1,delete r.attributes.x2,delete r.attributes.y2}if((r.name==="polyline"||r.name==="polygon")&&r.attributes.points!=null){const a=(r.attributes.points.match(qDe)||[]).map(Number);if(a.length<4){zDe(r,s);return}const o=[];for(let l=0;l<a.length;l+=2)o.push({command:l===0?"M":"L",args:a.slice(l,l+2)});r.name==="polygon"&&o.push({command:"z",args:[]}),r.name="path",r.attributes.d=km({pathData:o,precision:i}),delete r.attributes.points}if(r.name==="circle"&&n){const a=Number(r.attributes.cx||"0"),o=Number(r.attributes.cy||"0"),l=Number(r.attributes.r||"0");if(Number.isNaN(a-o+l))return;const c=[{command:"M",args:[a,o-l]},{command:"A",args:[l,l,0,1,0,a,o+l]},{command:"A",args:[l,l,0,1,0,a,o-l]},{command:"z",args:[]}];r.name="path",r.attributes.d=km({pathData:c,precision:i}),delete r.attributes.cx,delete r.attributes.cy,delete r.attributes.r}if(r.name==="ellipse"&&n){const a=Number(r.attributes.cx||"0"),o=Number(r.attributes.cy||"0"),l=Number(r.attributes.rx||"0"),c=Number(r.attributes.ry||"0");if(Number.isNaN(a-o+l-c))return;const f=[{command:"M",args:[a,o-c]},{command:"A",args:[l,c,0,1,0,a,o+c]},{command:"A",args:[l,c,0,1,0,a,o-c]},{command:"z",args:[]}];r.name="path",r.attributes.d=km({pathData:f,precision:i}),delete r.attributes.cx,delete r.attributes.cy,delete r.attributes.rx,delete r.attributes.ry}}}}};var t0={};t0.name="convertEllipseToCircle";t0.description="converts non-eccentric <ellipse>s to <circle>s";t0.fn=()=>({element:{enter:t=>{if(t.name==="ellipse"){const e=t.attributes.rx||"0",n=t.attributes.ry||"0";if(e===n||e==="auto"||n==="auto"){t.name="circle";const i=e==="auto"?n:e;delete t.attributes.rx,delete t.attributes.ry,t.attributes.r=i}}}}});var n0={};const{visit:WDe}=At,{inheritableAttrs:UDe,pathElems:VDe}=An;n0.name="moveElemsAttrsToGroup";n0.description="Move common attributes of group children to the group";n0.fn=t=>{let e=!1;return WDe(t,{element:{enter:n=>{n.name==="style"&&(e=!0)}}}),{element:{exit:n=>{if(n.name!=="g"||n.children.length<=1||e)return;const i=new Map;let r=!0,s=!0;for(const a of n.children)if(a.type==="element")if(VDe.has(a.name)||(s=!1),r){r=!1;for(const[o,l]of Object.entries(a.attributes))UDe.has(o)&&i.set(o,l)}else for(const[o,l]of i)a.attributes[o]!==l&&i.delete(o);(n.attributes["clip-path"]!=null||n.attributes.mask!=null)&&i.delete("transform"),s&&i.delete("transform");for(const[a,o]of i)a==="transform"?n.attributes.transform!=null?n.attributes.transform=`${n.attributes.transform} ${o}`:n.attributes.transform=o:n.attributes[a]=o;for(const a of n.children)if(a.type==="element")for(const[o]of i)delete a.attributes[o]}}}};var i0={};const{pathElems:HDe,referencesProps:ZDe}=An,{includesUrlReference:GDe}=ni;i0.name="moveGroupAttrsToElems";i0.description="moves some group attributes to the content elements";const XDe=[...HDe,"g","text"];i0.fn=()=>({element:{enter:t=>{if(t.name==="g"&&t.children.length!==0&&t.attributes.transform!=null&&Object.entries(t.attributes).some((([e,n])=>ZDe.has(e)&&GDe(n)))===!1&&t.children.every((e=>e.type==="element"&&XDe.includes(e.name)&&e.attributes.id==null))){for(const e of t.children){const n=t.attributes.transform;e.type==="element"&&(e.attributes.transform!=null?e.attributes.transform=`${n} ${e.attributes.transform}`:e.attributes.transform=n)}delete t.attributes.transform}}}});var r0={};const{inheritableAttrs:YDe,elemsGroups:cz}=An;r0.name="collapseGroups";r0.description="collapses useless groups";const fz=(t,e)=>{if(t.type==="element"){if(cz.animation.has(t.name)&&t.attributes.attributeName===e)return!0;for(const n of t.children)if(fz(n,e))return!0}return!1};r0.fn=()=>({element:{exit:(t,e)=>{if(!(e.type==="root"||e.name==="switch")&&!(t.name!=="g"||t.children.length===0)){if(Object.keys(t.attributes).length!==0&&t.children.length===1){const n=t.children[0];if(n.type==="element"&&n.attributes.id==null&&t.attributes.filter==null&&(t.attributes.class==null||n.attributes.class==null)&&(t.attributes["clip-path"]==null&&t.attributes.mask==null||n.name==="g"&&t.attributes.transform==null&&n.attributes.transform==null))for(const[i,r]of Object.entries(t.attributes)){if(fz(n,i))return;if(n.attributes[i]==null)n.attributes[i]=r;else if(i==="transform")n.attributes[i]=r+" "+n.attributes[i];else if(n.attributes[i]==="inherit")n.attributes[i]=r;else if(YDe.has(i)===!1&&n.attributes[i]!==r)return;delete t.attributes[i]}}if(Object.keys(t.attributes).length===0){for(const i of t.children)if(i.type==="element"&&cz.animation.has(i.name))return;const n=e.children.indexOf(t);e.children.splice(n,1,...t.children);for(const i of t.children)Object.defineProperty(i,"parentNode",{writable:!0,value:e})}}}}});var s0={},gu={};const{parsePathData:KDe,stringifyPathData:JDe}=Sp;var Ua;const eMe=t=>{if(t.pathJS)return t.pathJS;const e=[],n=KDe(t.attributes.d);for(const{command:i,args:r}of n)e.push({command:i,args:r});return e.length&&e[0].command=="m"&&(e[0].command="M"),t.pathJS=e,e};gu.path2js=eMe;const UD=t=>{const e=[];let n=[0,0],i=[0,0];for(let{command:r,args:s}of t)s=s.slice(),r==="m"&&(s[0]+=i[0],s[1]+=i[1],r="M"),r==="M"&&(i[0]=s[0],i[1]=s[1],n[0]=i[0],n[1]=i[1]),r==="h"&&(s[0]+=i[0],r="H"),r==="H"&&(i[0]=s[0]),r==="v"&&(s[0]+=i[1],r="V"),r==="V"&&(i[1]=s[0]),r==="l"&&(s[0]+=i[0],s[1]+=i[1],r="L"),r==="L"&&(i[0]=s[0],i[1]=s[1]),r==="c"&&(s[0]+=i[0],s[1]+=i[1],s[2]+=i[0],s[3]+=i[1],s[4]+=i[0],s[5]+=i[1],r="C"),r==="C"&&(i[0]=s[4],i[1]=s[5]),r==="s"&&(s[0]+=i[0],s[1]+=i[1],s[2]+=i[0],s[3]+=i[1],r="S"),r==="S"&&(i[0]=s[2],i[1]=s[3]),r==="q"&&(s[0]+=i[0],s[1]+=i[1],s[2]+=i[0],s[3]+=i[1],r="Q"),r==="Q"&&(i[0]=s[2],i[1]=s[3]),r==="t"&&(s[0]+=i[0],s[1]+=i[1],r="T"),r==="T"&&(i[0]=s[0],i[1]=s[1]),r==="a"&&(s[5]+=i[0],s[6]+=i[1],r="A"),r==="A"&&(i[0]=s[5],i[1]=s[6]),(r==="z"||r==="Z")&&(i[0]=n[0],i[1]=n[1],r="z"),e.push({command:r,args:s});return e};gu.js2path=function(t,e,n){t.pathJS=e;const i=[];for(const r of e){if(i.length!==0&&(r.command==="M"||r.command==="m")){const s=i[i.length-1];(s.command==="M"||s.command==="m")&&i.pop()}i.push({command:r.command,args:r.args})}t.attributes.d=JDe({pathData:i,precision:n.floatPrecision,disableSpaceAfterFlags:n.noSpaceAfterFlags})};function Zu(t,e){return t[0]=e[e.length-2],t[1]=e[e.length-1],t}gu.intersects=function(t,e){const n=VD(UD(t)),i=VD(UD(e));if(n.maxX<=i.minX||i.maxX<=n.minX||n.maxY<=i.minY||i.maxY<=n.minY||n.list.every((l=>i.list.every((c=>l.list[l.maxX][0]<=c.list[c.minX][0]||c.list[c.maxX][0]<=l.list[l.minX][0]||l.list[l.maxY][1]<=c.list[c.minY][1]||c.list[c.maxY][1]<=l.list[l.minY][1])))))return!1;const r=n.list.map(HD),s=i.list.map(HD);return r.some((function(l){return l.list.length<3?!1:s.some((function(c){if(c.list.length<3)return!1;for(var f=[a(l,c,[1,0])],u=zd(f[0]),h=1e4;;){if(h--==0)return console.error("Error: infinite loop while processing mergePaths plugin."),!0;if(f.push(a(l,c,u)),nc(u,f[f.length-1])<=0)return!1;if(tMe(f,u))return!0}}))}));function a(l,c,f){return Xb(o(l,f),o(c,zd(f)))}function o(l,c){for(var f=c[1]>=0?c[0]<0?l.maxY:l.maxX:c[0]<0?l.minX:l.minY,u=-1/0,h;(h=nc(l.list[f],c))>u;)u=h,f=++f%l.list.length;return l.list[(f||l.list.length)-1]}};function tMe(t,e){if(t.length==2){let n=t[1],i=t[0],r=zd(t[1]),s=Xb(i,n);nc(r,s)>0?Zu(e,iS(s,n)):(Zu(e,r),t.shift())}else{let n=t[2],i=t[1],r=t[0],s=Xb(i,n),a=Xb(r,n),o=zd(n),l=iS(s,a),c=iS(a,s);if(nc(l,o)>0)nc(s,o)>0?(Zu(e,l),t.shift()):(Zu(e,o),t.splice(0,2));else if(nc(c,o)>0)nc(a,o)>0?(Zu(e,c),t.splice(1,1)):(Zu(e,o),t.splice(0,2));else return!0}return!1}function zd(t){return[-t[0],-t[1]]}function Xb(t,e){return[t[0]-e[0],t[1]-e[1]]}function nc(t,e){return t[0]*e[0]+t[1]*e[1]}function iS(t,e){var n=[-t[1],t[0]];return nc(n,zd(e))<0?zd(n):n}function VD(t){const e={list:[],minX:0,minY:0,maxX:0,maxY:0},n=(s,a)=>{(!s.list.length||a[1]>s.list[s.maxY][1])&&(s.maxY=s.list.length,e.maxY=e.list.length?Math.max(a[1],e.maxY):a[1]),(!s.list.length||a[0]>s.list[s.maxX][0])&&(s.maxX=s.list.length,e.maxX=e.list.length?Math.max(a[0],e.maxX):a[0]),(!s.list.length||a[1]<s.list[s.minY][1])&&(s.minY=s.list.length,e.minY=e.list.length?Math.min(a[1],e.minY):a[1]),(!s.list.length||a[0]<s.list[s.minX][0])&&(s.minX=s.list.length,e.minX=e.list.length?Math.min(a[0],e.minX):a[0]),s.list.push(a)};for(let s=0;s<t.length;s+=1){const a=t[s];let o=e.list.length===0?{list:[],minX:0,minY:0,maxX:0,maxY:0}:e.list[e.list.length-1],l=s===0?null:t[s-1],c=o.list.length===0?null:o.list[o.list.length-1],f=a.args,u=c;const h=(m,g)=>m+(c==null?0:c[g%2]);switch(a.command){case"M":o={list:[],minX:0,minY:0,maxX:0,maxY:0},e.list.push(o);break;case"H":c!=null&&n(o,[f[0],c[1]]);break;case"V":c!=null&&n(o,[c[0],f[0]]);break;case"Q":n(o,f.slice(0,2)),Ua=[f[2]-f[0],f[3]-f[1]];break;case"T":c!=null&&l!=null&&(l.command=="Q"||l.command=="T")&&(u=[c[0]+Ua[0],c[1]+Ua[1]],n(o,u),Ua=[f[0]-u[0],f[1]-u[1]]);break;case"C":c!=null&&n(o,[.5*(c[0]+f[0]),.5*(c[1]+f[1])]),n(o,[.5*(f[0]+f[2]),.5*(f[1]+f[3])]),n(o,[.5*(f[2]+f[4]),.5*(f[3]+f[5])]),Ua=[f[4]-f[2],f[5]-f[3]];break;case"S":c!=null&&l!=null&&(l.command=="C"||l.command=="S")&&(n(o,[c[0]+.5*Ua[0],c[1]+.5*Ua[1]]),u=[c[0]+Ua[0],c[1]+Ua[1]]),u!=null&&n(o,[.5*(u[0]+f[0]),.5*(u[1]+f[1])]),n(o,[.5*(f[0]+f[2]),.5*(f[1]+f[3])]),Ua=[f[2]-f[0],f[3]-f[1]];break;case"A":if(c!=null)for(var i=uz.apply(0,c.concat(f)),r;(r=i.splice(0,6).map(h)).length;)c!=null&&n(o,[.5*(c[0]+r[0]),.5*(c[1]+r[1])]),n(o,[.5*(r[0]+r[2]),.5*(r[1]+r[3])]),n(o,[.5*(r[2]+r[4]),.5*(r[3]+r[5])]),i.length&&n(o,c=r.slice(-2));break}f.length>=2&&n(o,f.slice(-2))}return e}function HD(t){t.list.sort((function(c,f){return c[0]==f[0]?c[1]-f[1]:c[0]-f[0]}));var e=[],n=0,i=0;for(let c=0;c<t.list.length;c++){for(;e.length>=2&&ZD(e[e.length-2],e[e.length-1],t.list[c])<=0;)e.pop();t.list[c][1]<t.list[n][1]&&(n=c,i=e.length),e.push(t.list[c])}var r=[],s=t.list.length-1,a=0;for(let c=t.list.length;c--;){for(;r.length>=2&&ZD(r[r.length-2],r[r.length-1],t.list[c])<=0;)r.pop();t.list[c][1]>t.list[s][1]&&(s=c,a=r.length),r.push(t.list[c])}r.pop(),e.pop();const o=e.concat(r);return{list:o,minX:0,maxX:e.length,minY:i,maxY:(e.length+a)%o.length}}function ZD(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}const uz=(t,e,n,i,r,s,a,o,l,c)=>{const f=Math.PI*120/180,u=Math.PI/180*(+r||0);let h=[];const m=(D,te,q)=>D*Math.cos(q)-te*Math.sin(q),g=(D,te,q)=>D*Math.sin(q)+te*Math.cos(q);if(c)_=c[0],P=c[1],S=c[2],R=c[3];else{t=m(t,e,-u),e=g(t,e,-u),o=m(o,l,-u),l=g(o,l,-u);var v=(t-o)/2,w=(e-l)/2,O=v*v/(n*n)+w*w/(i*i);O>1&&(O=Math.sqrt(O),n=O*n,i=O*i);var x=n*n,$=i*i,T=(s==a?-1:1)*Math.sqrt(Math.abs((x*$-x*w*w-$*v*v)/(x*w*w+$*v*v))),S=T*n*w/i+(t+o)/2,R=T*-i*v/n+(e+l)/2,_=Math.asin(Number(((e-R)/i).toFixed(9))),P=Math.asin(Number(((l-R)/i).toFixed(9)));_=t<S?Math.PI-_:_,P=o<S?Math.PI-P:P,_<0&&(_=Math.PI*2+_),P<0&&(P=Math.PI*2+P),a&&_>P&&(_=_-Math.PI*2),!a&&P>_&&(P=P-Math.PI*2)}var A=P-_;if(Math.abs(A)>f){var N=P,M=o,Q=l;P=_+f*(a&&P>_?1:-1),o=S+n*Math.cos(P),l=R+i*Math.sin(P),h=uz(o,l,n,i,r,0,a,M,Q,[P,N,S,R])}A=P-_;var U=Math.cos(_),z=Math.sin(_),Y=Math.cos(P),ae=Math.sin(P),ne=Math.tan(A/4),he=4/3*n*ne,ve=4/3*i*ne,je=[-he*z,ve*U,o+he*ae-t,l-ve*Y-e,o-t,l-e];if(c)return je.concat(h);h=je.concat(h);for(var we=[],ge=0,B=h.length;ge<B;ge++)we[ge]=ge%2?g(h[ge-1],h[ge],u):m(h[ge],h[ge+1],u);return we};var dz={},_p={};const{toFixed:_f}=ni,nMe=new Set(["matrix","rotate","scale","skewX","skewY","translate"]),iMe=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,rMe=/[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;_p.transform2js=t=>{const e=[];let n=null;for(const i of t.split(iMe))if(i)if(nMe.has(i))n={name:i,data:[]},e.push(n);else{let r;for(;r=rMe.exec(i);)r=Number(r),n!=null&&n.data.push(r)}return n==null||n.data.length==0?[]:e};_p.transformsMultiply=t=>{const e=t.map((i=>i.name==="matrix"?i.data:sMe(i)));return{name:"matrix",data:e.length>0?e.reduce(hz):[]}};const Cr={rad:t=>t*Math.PI/180,deg:t=>t*180/Math.PI,cos:t=>Math.cos(Cr.rad(t)),acos:(t,e)=>_f(Cr.deg(Math.acos(t)),e),sin:t=>Math.sin(Cr.rad(t)),asin:(t,e)=>_f(Cr.deg(Math.asin(t)),e),tan:t=>Math.tan(Cr.rad(t)),atan:(t,e)=>_f(Cr.deg(Math.atan(t)),e)};_p.matrixToTransform=(t,e)=>{const n=e.floatPrecision,i=t.data,r=[];(i[4]||i[5])&&r.push({name:"translate",data:i.slice(4,i[5]?6:5)});let s=_f(Math.hypot(i[0],i[1]),e.transformPrecision),a=_f((i[0]*i[3]-i[1]*i[2])/s,e.transformPrecision);const o=i[0]*i[2]+i[1]*i[3],l=i[0]*i[1]+i[2]*i[3],c=l!==0||s===a;if(!i[1]&&i[2])r.push({name:"skewX",data:[Cr.atan(i[2]/a,n)]});else if(i[1]&&!i[2])r.push({name:"skewY",data:[Cr.atan(i[1]/i[0],n)]}),s=i[0],a=i[3];else if(!o||s===1&&a===1||!c){c||(s=Math.hypot(i[0],i[2]),a=Math.hypot(i[1],i[3]),_f(i[0],e.transformPrecision)<0&&(s=-s),(i[3]<0||Math.sign(i[1])===Math.sign(i[2])&&_f(i[3],e.transformPrecision)===0)&&(a=-a),r.push({name:"scale",data:[s,a]}));const f=Math.min(Math.max(-1,i[0]/s),1),u=[Cr.acos(f,n)*((c?1:a)*i[1]<0?-1:1)];if(u[0]&&r.push({name:"rotate",data:u}),l&&o&&r.push({name:"skewX",data:[Cr.atan(o/(s*s),n)]}),u[0]&&(i[4]||i[5])){r.shift();const h=1-i[0]/s,m=i[1]/(c?s:a),g=i[4]*(c?1:a),v=i[5]*(c?1:s),w=(h**2+m**2)*(c?1:s*a);u.push((h*g-m*v)/w,(h*v+m*g)/w)}}else if(i[1]||i[2])return[t];return(c&&(s!=1||a!=1)||!r.length)&&r.push({name:"scale",data:s==a?[s]:[s,a]}),r};const sMe=t=>{if(t.name==="matrix")return t.data;switch(t.name){case"translate":return[1,0,0,1,t.data[0],t.data[1]||0];case"scale":return[t.data[0],0,0,t.data[1]||t.data[0],0,0];case"rotate":var e=Cr.cos(t.data[0]),n=Cr.sin(t.data[0]),i=t.data[1]||0,r=t.data[2]||0;return[e,n,-n,e,(1-e)*i+n*r,(1-e)*r-n*i];case"skewX":return[1,0,Cr.tan(t.data[0]),1,0,0];case"skewY":return[1,Cr.tan(t.data[0]),0,1,0,0];default:throw Error(`Unknown transform ${t.name}`)}};_p.transformArc=(t,e,n)=>{const i=e[5]-t[0],r=e[6]-t[1];let s=e[0],a=e[1];const o=e[2]*Math.PI/180,l=Math.cos(o),c=Math.sin(o);if(s>0&&a>0){let v=Math.pow(i*l+r*c,2)/(4*s*s)+Math.pow(r*l-i*c,2)/(4*a*a);v>1&&(v=Math.sqrt(v),s*=v,a*=v)}const f=[s*l,s*c,-a*c,a*l,0,0],u=hz(n,f),h=u[2]*u[2]+u[3]*u[3],m=u[0]*u[0]+u[1]*u[1]+h,g=Math.hypot(u[0]-u[3],u[1]+u[2])*Math.hypot(u[0]+u[3],u[1]-u[2]);if(!g)e[0]=e[1]=Math.sqrt(m/2),e[2]=0;else{const v=(m+g)/2,w=(m-g)/2,O=Math.abs(v-h)>1e-6,x=(O?v:w)-h,$=u[0]*u[2]+u[1]*u[3],T=u[0]*x+u[2]*$,S=u[1]*x+u[3]*$;e[0]=Math.sqrt(v),e[1]=Math.sqrt(w),e[2]=((O?S<0:T>0)?-1:1)*Math.acos((O?T:S)/Math.hypot(T,S))*180/Math.PI}return n[0]<0!=n[3]<0&&(e[4]=1-e[4]),e};const hz=(t,e)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]],{collectStylesheet:aMe,computeStyle:oMe}=ws,{transformsMultiply:lMe,transform2js:cMe,transformArc:GD}=_p,{path2js:fMe}=gu,{removeLeadingZero:rS,includesUrlReference:uMe}=ni,{referencesProps:dMe,attrsGroupsDefaults:hMe}=An,sS=/[-+]?(\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g,pMe=(t,e)=>{const n=aMe(t);return{element:{enter:i=>{var h,m,g,v;if(i.attributes.d==null||i.attributes.id!=null||i.attributes.transform==null||i.attributes.transform===""||i.attributes.style!=null||Object.entries(i.attributes).some((([w,O])=>dMe.has(w)&&uMe(O))))return;const r=oMe(n,i),s=r.transform;if(s.type==="static"&&s.value!==i.attributes.transform)return;const a=lMe(cMe(i.attributes.transform)),o=((h=r.stroke)==null?void 0:h.type)==="static"?r.stroke.value:null,l=((m=r["stroke-width"])==null?void 0:m.type)==="static"?r["stroke-width"].value:null,c=e.transformPrecision;if(((g=r.stroke)==null?void 0:g.type)==="dynamic"||((v=r["stroke-width"])==null?void 0:v.type)==="dynamic")return;const f=Number(Math.sqrt(a.data[0]*a.data[0]+a.data[1]*a.data[1]).toFixed(c));if(o&&o!="none"){if(!e.applyTransformsStroked||(a.data[0]!==a.data[3]||a.data[1]!==-a.data[2])&&(a.data[0]!==-a.data[3]||a.data[1]!==a.data[2]))return;f!==1&&i.attributes["vector-effect"]!=="non-scaling-stroke"&&(i.attributes["stroke-width"]=(l||hMe.presentation["stroke-width"]).trim().replace(sS,(w=>rS(Number(w)*f))),i.attributes["stroke-dashoffset"]!=null&&(i.attributes["stroke-dashoffset"]=i.attributes["stroke-dashoffset"].trim().replace(sS,(w=>rS(Number(w)*f)))),i.attributes["stroke-dasharray"]!=null&&(i.attributes["stroke-dasharray"]=i.attributes["stroke-dasharray"].trim().replace(sS,(w=>rS(Number(w)*f)))))}const u=fMe(i);mMe(u,a.data),delete i.attributes.transform}}}};dz.applyTransforms=pMe;const ca=(t,e,n)=>{const i=t[0]*e+t[2]*n+t[4],r=t[1]*e+t[3]*n+t[5];return[i,r]},fa=(t,e,n)=>{const i=t[0]*e+t[2]*n,r=t[1]*e+t[3]*n;return[i,r]},mMe=(t,e)=>{const n=[0,0],i=[0,0];for(const r of t){let{command:s,args:a}=r;if(s==="M"){i[0]=a[0],i[1]=a[1],n[0]=i[0],n[1]=i[1];const[o,l]=ca(e,a[0],a[1]);a[0]=o,a[1]=l}if(s==="m"){i[0]+=a[0],i[1]+=a[1],n[0]=i[0],n[1]=i[1];const[o,l]=fa(e,a[0],a[1]);a[0]=o,a[1]=l}if(s==="H"&&(s="L",a=[a[0],i[1]]),s==="h"&&(s="l",a=[a[0],0]),s==="V"&&(s="L",a=[i[0],a[0]]),s==="v"&&(s="l",a=[0,a[0]]),s==="L"){i[0]=a[0],i[1]=a[1];const[o,l]=ca(e,a[0],a[1]);a[0]=o,a[1]=l}if(s==="l"){i[0]+=a[0],i[1]+=a[1];const[o,l]=fa(e,a[0],a[1]);a[0]=o,a[1]=l}if(s==="C"){i[0]=a[4],i[1]=a[5];const[o,l]=ca(e,a[0],a[1]),[c,f]=ca(e,a[2],a[3]),[u,h]=ca(e,a[4],a[5]);a[0]=o,a[1]=l,a[2]=c,a[3]=f,a[4]=u,a[5]=h}if(s==="c"){i[0]+=a[4],i[1]+=a[5];const[o,l]=fa(e,a[0],a[1]),[c,f]=fa(e,a[2],a[3]),[u,h]=fa(e,a[4],a[5]);a[0]=o,a[1]=l,a[2]=c,a[3]=f,a[4]=u,a[5]=h}if(s==="S"){i[0]=a[2],i[1]=a[3];const[o,l]=ca(e,a[0],a[1]),[c,f]=ca(e,a[2],a[3]);a[0]=o,a[1]=l,a[2]=c,a[3]=f}if(s==="s"){i[0]+=a[2],i[1]+=a[3];const[o,l]=fa(e,a[0],a[1]),[c,f]=fa(e,a[2],a[3]);a[0]=o,a[1]=l,a[2]=c,a[3]=f}if(s==="Q"){i[0]=a[2],i[1]=a[3];const[o,l]=ca(e,a[0],a[1]),[c,f]=ca(e,a[2],a[3]);a[0]=o,a[1]=l,a[2]=c,a[3]=f}if(s==="q"){i[0]+=a[2],i[1]+=a[3];const[o,l]=fa(e,a[0],a[1]),[c,f]=fa(e,a[2],a[3]);a[0]=o,a[1]=l,a[2]=c,a[3]=f}if(s==="T"){i[0]=a[0],i[1]=a[1];const[o,l]=ca(e,a[0],a[1]);a[0]=o,a[1]=l}if(s==="t"){i[0]+=a[0],i[1]+=a[1];const[o,l]=fa(e,a[0],a[1]);a[0]=o,a[1]=l}if(s==="A"){if(GD(i,a,e),i[0]=a[5],i[1]=a[6],Math.abs(a[2])>80){const c=a[0],f=a[2];a[0]=a[1],a[1]=c,a[2]=f+(f>0?-90:90)}const[o,l]=ca(e,a[5],a[6]);a[5]=o,a[6]=l}if(s==="a"){if(GD([0,0],a,e),i[0]+=a[5],i[1]+=a[6],Math.abs(a[2])>80){const c=a[0],f=a[2];a[0]=a[1],a[1]=c,a[2]=f+(f>0?-90:90)}const[o,l]=fa(e,a[5],a[6]);a[5]=o,a[6]=l}(s==="z"||s==="Z")&&(i[0]=n[0],i[1]=n[1]),r.command=s,r.args=a}},{collectStylesheet:gMe,computeStyle:vMe}=ws,{visit:bMe}=At,{pathElems:yMe}=An,{path2js:wMe,js2path:kMe}=gu,{applyTransforms:OMe}=dz,{cleanupOutData:zg,toFixed:Yb}=ni;s0.name="convertPathData";s0.description="optimizes path data: writes in shorter form, applies transformations";let sl,ma,Rn,BP,FP;s0.fn=(t,e)=>{const{applyTransforms:n=!0,applyTransformsStroked:i=!0,makeArcs:r={threshold:2.5,tolerance:.5},straightCurves:s=!0,convertToQ:a=!0,lineShorthands:o=!0,convertToZ:l=!0,curveSmoothShorthands:c=!0,floatPrecision:f=3,transformPrecision:u=5,smartArcRounding:h=!0,removeUseless:m=!0,collapseRepeated:g=!0,utilizeAbsolute:v=!0,leadingZero:w=!0,negativeExtraSpace:O=!0,noSpaceAfterFlags:x=!1,forceAbsolutePath:$=!1}=e,T={applyTransforms:n,applyTransformsStroked:i,makeArcs:r,straightCurves:s,convertToQ:a,lineShorthands:o,convertToZ:l,curveSmoothShorthands:c,floatPrecision:f,transformPrecision:u,smartArcRounding:h,removeUseless:m,collapseRepeated:g,utilizeAbsolute:v,leadingZero:w,negativeExtraSpace:O,noSpaceAfterFlags:x,forceAbsolutePath:$};n&&bMe(t,OMe(t,{transformPrecision:u,applyTransformsStroked:i}));const S=gMe(t);return{element:{enter:R=>{var P,A;if(yMe.has(R.name)&&R.attributes.d!=null){const N=vMe(S,R);ma=f,Rn=ma!==!1?+Math.pow(.1,ma).toFixed(ma):.01,sl=ma&&ma>0&&ma<20?CMe:$Me,r&&(BP=r.threshold,FP=r.tolerance);const M=N["marker-mid"]!=null,Q=N.stroke&&(N.stroke.type==="dynamic"||N.stroke.value!=="none"),U=N["stroke-linecap"]&&(N["stroke-linecap"].type==="dynamic"||N["stroke-linecap"].value!=="butt"),z=Q&&U,Y=Q?((P=N["stroke-linecap"])==null?void 0:P.type)==="static"&&N["stroke-linecap"].value==="round"&&((A=N["stroke-linejoin"])==null?void 0:A.type)==="static"&&N["stroke-linejoin"].value==="round":!0;var _=wMe(R);_.length&&(xMe(_),_=SMe(_,T,{isSafeToUseZ:Y,maybeHasStrokeAndLinecap:z,hasMarkerMid:M}),v&&(_=_Me(_,T)),kMe(R,_,T))}}}}};const xMe=t=>{let e=[0,0],n=[0,0],i=[0,0];for(let r=0;r<t.length;r+=1){const s=t[r];let{command:a,args:o}=s;a==="m"&&(n[0]+=o[0],n[1]+=o[1],e[0]=n[0],e[1]=n[1]),a==="M"&&(r!==0&&(a="m"),o[0]-=n[0],o[1]-=n[1],n[0]+=o[0],n[1]+=o[1],e[0]=n[0],e[1]=n[1]),a==="l"&&(n[0]+=o[0],n[1]+=o[1]),a==="L"&&(a="l",o[0]-=n[0],o[1]-=n[1],n[0]+=o[0],n[1]+=o[1]),a==="h"&&(n[0]+=o[0]),a==="H"&&(a="h",o[0]-=n[0],n[0]+=o[0]),a==="v"&&(n[1]+=o[0]),a==="V"&&(a="v",o[0]-=n[1],n[1]+=o[0]),a==="c"&&(n[0]+=o[4],n[1]+=o[5]),a==="C"&&(a="c",o[0]-=n[0],o[1]-=n[1],o[2]-=n[0],o[3]-=n[1],o[4]-=n[0],o[5]-=n[1],n[0]+=o[4],n[1]+=o[5]),a==="s"&&(n[0]+=o[2],n[1]+=o[3]),a==="S"&&(a="s",o[0]-=n[0],o[1]-=n[1],o[2]-=n[0],o[3]-=n[1],n[0]+=o[2],n[1]+=o[3]),a==="q"&&(n[0]+=o[2],n[1]+=o[3]),a==="Q"&&(a="q",o[0]-=n[0],o[1]-=n[1],o[2]-=n[0],o[3]-=n[1],n[0]+=o[2],n[1]+=o[3]),a==="t"&&(n[0]+=o[0],n[1]+=o[1]),a==="T"&&(a="t",o[0]-=n[0],o[1]-=n[1],n[0]+=o[0],n[1]+=o[1]),a==="a"&&(n[0]+=o[5],n[1]+=o[6]),a==="A"&&(a="a",o[5]-=n[0],o[6]-=n[1],n[0]+=o[5],n[1]+=o[6]),(a==="Z"||a==="z")&&(n[0]=e[0],n[1]=e[1]),s.command=a,s.args=o,s.base=i,s.coords=[n[0],n[1]],i=s.coords}return t};function SMe(t,e,{isSafeToUseZ:n,maybeHasStrokeAndLinecap:i,hasMarkerMid:r}){const s=TMe.bind(null,e),a=[0,0],o=[0,0];let l={},c;return t=t.filter((function(f,u,h){const m=c;c=void 0;let g=f.command,v=f.args,w=h[u+1];if(g!=="Z"&&g!=="z"){var O=v,x;if(g==="s"){O=[0,0].concat(v);const we=l.args,ge=we.length;O[0]=we[ge-2]-we[ge-4],O[1]=we[ge-1]-we[ge-3]}if(e.makeArcs&&(g=="c"||g=="s")&&aS(O)&&(x=PMe(O))){var $=sl([x.radius])[0],T=lS(O,x),S=O[5]*O[0]-O[4]*O[1]>0?1:0,R={command:"a",args:[$,$,0,0,S,O[4],O[5]],coords:f.coords.slice(),base:f.base},_=[R],P=[x.center[0]-O[4],x.center[1]-O[5]],A={center:P,radius:x.radius},N=[f],M=0,Q="",U;if(l.command=="c"&&aS(l.args)&&KD(l.args,x)||l.command=="a"&&l.sdata&&KD(l.sdata,x)){N.unshift(l),R.base=l.base,R.args[5]=R.coords[0]-R.base[0],R.args[6]=R.coords[1]-R.base[1];var z=l.command=="a"?l.sdata:l.args,Y=lS(z,{center:[z[4]+x.center[0],z[5]+x.center[1]],radius:x.radius});T+=Y,T>Math.PI&&(R.args[3]=1),M=1}for(var ae=u;(w=h[++ae])&&(w.command==="c"||w.command==="s");){var ne=w.args;if(w.command=="s"&&(U=Om({command:"s",args:w.args.slice()},h[ae-1].args),ne=U.args,U.args=ne.slice(0,2),Q=s([U])),aS(ne)&&mz(ne,A)){if(T+=lS(ne,A),T-2*Math.PI>.001)break;if(T>Math.PI&&(R.args[3]=1),N.push(w),2*Math.PI-T>.001)R.coords=w.coords,R.args[5]=R.coords[0]-R.base[0],R.args[6]=R.coords[1]-R.base[1];else{R.args[5]=2*(A.center[0]-ne[4]),R.args[6]=2*(A.center[1]-ne[5]),R.coords=[R.base[0]+R.args[5],R.base[1]+R.args[6]],R={command:"a",args:[$,$,0,0,S,w.coords[0]-R.coords[0],w.coords[1]-R.coords[1]],coords:w.coords,base:R.coords},_.push(R),ae++;break}P[0]-=ne[4],P[1]-=ne[5]}else break}if((s(_)+Q).length<s(N).length){if(h[ae]&&h[ae].command=="s"&&Om(h[ae],h[ae-1].args),M){var he=_.shift();sl(he.args),a[0]+=he.args[5]-l.args[l.args.length-2],a[1]+=he.args[6]-l.args[l.args.length-1],l.command="a",l.args=he.args,f.base=l.coords=he.coords}if(R=_.shift(),N.length==1?f.sdata=O.slice():N.length-1-M>0&&h.splice(u+1,N.length-1-M,..._),!R)return!1;g="a",v=R.args,f.coords=R.coords}}if(ma!==!1){if(g==="m"||g==="l"||g==="t"||g==="q"||g==="s"||g==="c")for(var ve=v.length;ve--;)v[ve]+=f.base[ve%2]-a[ve%2];else g=="h"?v[0]+=f.base[0]-a[0]:g=="v"?v[0]+=f.base[1]-a[1]:g=="a"&&(v[5]+=f.base[0]-a[0],v[6]+=f.base[1]-a[1]);sl(v),g=="h"?a[0]+=v[0]:g=="v"?a[1]+=v[0]:(a[0]+=v[v.length-2],a[1]+=v[v.length-1]),sl(a),(g==="M"||g==="m")&&(o[0]=a[0],o[1]=a[1])}const je=g==="a"?XD(v):void 0;if(e.smartArcRounding&&je!==void 0&&ma)for(let we=ma;we>=0;we--){const ge=Yb(v[0],we),B=XD([ge,ge,...v.slice(2)]);if(Math.abs(je-B)<Rn)v[0]=ge,v[1]=ge;else break}if(e.straightCurves&&(g==="c"&&oS(v)||g==="s"&&oS(O)?(w&&w.command=="s"&&Om(w,v),g="l",v=v.slice(-2)):g==="q"&&oS(v)?(w&&w.command=="t"&&Om(w,v),g="l",v=v.slice(-2)):(g==="t"&&l.command!=="q"&&l.command!=="t"||g==="a"&&(v[0]===0||v[1]===0||je!==void 0&&je<Rn))&&(g="l",v=v.slice(-2))),e.convertToQ&&g=="c"){const we=.75*(f.base[0]+v[0])-.25*f.base[0],ge=.75*(f.base[0]+v[2])-.25*(f.base[0]+v[4]);if(Math.abs(we-ge)<Rn*2){const B=.75*(f.base[1]+v[1])-.25*f.base[1],D=.75*(f.base[1]+v[3])-.25*(f.base[1]+v[5]);if(Math.abs(B-D)<Rn*2){const te=v.slice();te.splice(0,4,we+ge-f.base[0],B+D-f.base[1]),sl(te);const q=zg(v,e).length;zg(te,e).length<q&&(g="q",v=te,w&&w.command=="s"&&Om(w,v))}}}if(e.lineShorthands&&g==="l"&&(v[1]===0?(g="h",v.pop()):v[0]===0&&(g="v",v.shift())),e.collapseRepeated&&r===!1&&(g==="m"||g==="h"||g==="v")&&l.command&&g==l.command.toLowerCase()&&(g!="h"&&g!="v"||l.args[0]>=0==v[0]>=0))return l.args[0]+=v[0],g!="h"&&g!="v"&&(l.args[1]+=v[1]),l.coords=f.coords,h[u]=l,!1;if(e.curveSmoothShorthands&&l.command){if(g==="c")(l.command==="c"&&Math.abs(v[0]- -(l.args[2]-l.args[4]))<Rn&&Math.abs(v[1]- -(l.args[3]-l.args[5]))<Rn||l.command==="s"&&Math.abs(v[0]- -(l.args[0]-l.args[2]))<Rn&&Math.abs(v[1]- -(l.args[1]-l.args[3]))<Rn||l.command!=="c"&&l.command!=="s"&&Math.abs(v[0])<Rn&&Math.abs(v[1])<Rn)&&(g="s",v=v.slice(2));else if(g==="q"){if(l.command==="q"&&Math.abs(v[0]-(l.args[2]-l.args[0]))<Rn&&Math.abs(v[1]-(l.args[3]-l.args[1]))<Rn)g="t",v=v.slice(2);else if(l.command==="t"){const we=YD(m,f.base),ge=[v[0]+f.base[0],v[1]+f.base[1]];Math.abs(we[0]-ge[0])<Rn&&Math.abs(we[1]-ge[1])<Rn&&(g="t",v=v.slice(2))}}}if(e.removeUseless&&!i&&((g==="l"||g==="h"||g==="v"||g==="q"||g==="t"||g==="c"||g==="s")&&v.every((function(we){return we===0}))||g==="a"&&v[5]===0&&v[6]===0))return h[u]=l,!1;e.convertToZ&&(n||(w==null?void 0:w.command)==="Z"||(w==null?void 0:w.command)==="z")&&(g==="l"||g==="h"||g==="v")&&Math.abs(o[0]-f.coords[0])<Rn&&Math.abs(o[1]-f.coords[1])<Rn&&(g="z",v=[]),f.command=g,f.args=v}else if(a[0]=o[0],a[1]=o[1],l.command==="Z"||l.command==="z")return!1;return(g==="Z"||g==="z")&&e.removeUseless&&n&&Math.abs(f.base[0]-f.coords[0])<Rn/10&&Math.abs(f.base[1]-f.coords[1])<Rn/10?!1:(g==="q"?c=[v[0]+f.base[0],v[1]+f.base[1]]:g==="t"&&(m?c=YD(m,f.base):c=f.coords),l=f,!0)})),t}function _Me(t,e){var n=t[0];return t=t.filter((function(i,r){if(r==0)return!0;if(i.command==="Z"||i.command==="z")return n=i,!0;var s=i.command,a=i.args,o=a.slice(),l=a.slice();if(s==="m"||s==="l"||s==="t"||s==="q"||s==="s"||s==="c")for(var c=o.length;c--;)o[c]+=i.base[c%2];else s=="h"?o[0]+=i.base[0]:s=="v"?o[0]+=i.base[1]:s=="a"&&(o[5]+=i.base[0],o[6]+=i.base[1]);sl(o),sl(l);var f=zg(o,e),u=zg(l,e);return(e.forceAbsolutePath||f.length<u.length&&!(e.negativeExtraSpace&&s==n.command&&n.command.charCodeAt(0)>96&&f.length==u.length-1&&(a[0]<0||Math.floor(a[0])===0&&!Number.isInteger(a[0])&&n.args[n.args.length-1]%1)))&&(i.command=s.toUpperCase(),i.args=o),n=i,!0})),t}function aS(t){var e=pz([0,0,t[2],t[3],t[0],t[1],t[4],t[5]]);return e!=null&&t[2]<e[0]==e[0]<0&&t[3]<e[1]==e[1]<0&&t[4]<e[0]==e[0]<t[0]&&t[5]<e[1]==e[1]<t[1]}function pz(t){var e=t[1]-t[3],n=t[2]-t[0],i=t[0]*t[3]-t[2]*t[1],r=t[5]-t[7],s=t[6]-t[4],a=t[4]*t[7]-t[5]*t[6],o=e*s-r*n;if(o){var l=[(n*a-s*i)/o,(e*a-r*i)/-o];if(!isNaN(l[0])&&!isNaN(l[1])&&isFinite(l[0])&&isFinite(l[1]))return l}}function CMe(t){const e=ma||0;for(let n=t.length;n-- >0;){const i=Yb(t[n],e);if(i!==t[n]){const r=Yb(t[n],e-1);t[n]=Yb(Math.abs(r-t[n]),e+1)>=Rn?i:r}}return t}function $Me(t){for(var e=t.length;e-- >0;)t[e]=Math.round(t[e]);return t}function oS(t){var e=t.length-2,n=-t[e+1],i=t[e],r=1/(n*n+i*i);if(e<=1||!isFinite(r))return!1;for(;(e-=2)>=0;)if(Math.sqrt(Math.pow(n*t[e]+i*t[e+1],2)*r)>Rn)return!1;return!0}function XD(t){if(t[3]===1)return;const[e,n]=t;if(Math.abs(e-n)>Rn)return;const i=Math.sqrt(t[5]**2+t[6]**2);if(!(i>e*2))return e-Math.sqrt(e**2-.25*i**2)}function Om(t,e){switch(t.command){case"s":t.command="c";break;case"t":t.command="q";break}return t.args.unshift(e[e.length-2]-e[e.length-4],e[e.length-1]-e[e.length-3]),t}function $3(t,e){return Math.sqrt((t[0]-e[0])**2+(t[1]-e[1])**2)}function YD(t,e){return[2*e[0]-t[0],2*e[1]-t[1]]}function P3(t,e){var n=e*e,i=n*e,r=1-e,s=r*r;return[3*s*e*t[0]+3*r*n*t[2]+i*t[4],3*s*e*t[1]+3*r*n*t[3]+i*t[5]]}function PMe(t){var e=P3(t,.5),n=[e[0]/2,e[1]/2],i=[(e[0]+t[4])/2,(e[1]+t[5])/2],r=pz([n[0],n[1],n[0]+n[1],n[1]-n[0],i[0],i[1],i[0]+(i[1]-e[1]),i[1]-(i[0]-e[0])]),s=r&&$3([0,0],r),a=Math.min(BP*Rn,FP*s/100);if(r&&s<1e15&&[1/4,3/4].every((function(o){return Math.abs($3(P3(t,o),r)-s)<=a})))return{center:r,radius:s}}function mz(t,e){var n=Math.min(BP*Rn,FP*e.radius/100);return[0,1/4,1/2,3/4,1].every((function(i){return Math.abs($3(P3(t,i),e.center)-e.radius)<=n}))}function KD(t,e){return mz(t,{center:[e.center[0]+t[4],e.center[1]+t[5]],radius:e.radius})}function lS(t,e){var n=-e.center[0],i=-e.center[1],r=t[4]-e.center[0],s=t[5]-e.center[1];return Math.acos((n*r+i*s)/Math.sqrt((n*n+i*i)*(r*r+s*s)))}function TMe(t,e){return e.reduce((function(n,i){var r="";return i.args&&(r=zg(sl(i.args.slice()),t)),n+i.command+r}),"")}var a0={};const{cleanupOutData:AMe,toFixed:EMe}=ni,{transform2js:RMe,transformsMultiply:DMe,matrixToTransform:MMe}=_p;a0.name="convertTransform";a0.description="collapses multiple transformations and optimizes it";a0.fn=(t,e)=>{const{convertToShorts:n=!0,degPrecision:i,floatPrecision:r=3,transformPrecision:s=5,matrixToTransform:a=!0,shortTranslate:o=!0,shortScale:l=!0,shortRotate:c=!0,removeUseless:f=!0,collapseIntoOne:u=!0,leadingZero:h=!0,negativeExtraSpace:m=!1}=e,g={convertToShorts:n,degPrecision:i,floatPrecision:r,transformPrecision:s,matrixToTransform:a,shortTranslate:o,shortScale:l,shortRotate:c,removeUseless:f,collapseIntoOne:u,leadingZero:h,negativeExtraSpace:m};return{element:{enter:v=>{v.attributes.transform!=null&&cS(v,"transform",g),v.attributes.gradientTransform!=null&&cS(v,"gradientTransform",g),v.attributes.patternTransform!=null&&cS(v,"patternTransform",g)}}}};const cS=(t,e,n)=>{let i=RMe(t.attributes[e]);n=NMe(i,n),n.collapseIntoOne&&i.length>1&&(i=[DMe(i)]),n.convertToShorts?i=jMe(i,n):i.forEach((r=>QP(r,n))),n.removeUseless&&(i=IMe(i)),i.length?t.attributes[e]=T3(i,n):delete t.attributes[e]},NMe=(t,{...e})=>{const n=[];for(const r of t)r.name=="matrix"&&n.push(...r.data.slice(0,4));let i=e.transformPrecision;return n.length&&(e.transformPrecision=Math.min(e.transformPrecision,Math.max.apply(Math,n.map(LMe))||e.transformPrecision),i=Math.max.apply(Math,n.map((r=>r.toString().replace(/\D+/g,"").length)))),e.degPrecision==null&&(e.degPrecision=Math.max(0,Math.min(e.floatPrecision,i-2))),e},JD=(t,e)=>e.degPrecision!=null&&e.degPrecision>=1&&e.floatPrecision<20?qP(e.degPrecision,t):zP(t),fS=(t,e)=>e.floatPrecision>=1&&e.floatPrecision<20?qP(e.floatPrecision,t):zP(t),eM=(t,e)=>e.transformPrecision>=1&&e.floatPrecision<20?qP(e.transformPrecision,t):zP(t),LMe=t=>{const e=t.toString();return e.slice(e.indexOf(".")).length-1},jMe=(t,e)=>{var r;for(var n=0;n<t.length;n++){let s=t[n];if(e.matrixToTransform&&s.name==="matrix"){var i=MMe(s,e);T3(i,e).length<=T3([s],e).length&&t.splice(n,1,...i),s=t[n]}QP(s,e),e.shortTranslate&&s.name==="translate"&&s.data.length===2&&!s.data[1]&&s.data.pop(),e.shortScale&&s.name==="scale"&&s.data.length===2&&s.data[0]===s.data[1]&&s.data.pop(),e.shortRotate&&((r=t[n-2])==null?void 0:r.name)==="translate"&&t[n-1].name==="rotate"&&t[n].name==="translate"&&t[n-2].data[0]===-t[n].data[0]&&t[n-2].data[1]===-t[n].data[1]&&(t.splice(n-2,3,{name:"rotate",data:[t[n-1].data[0],t[n-2].data[0],t[n-2].data[1]]}),n-=2)}return t},IMe=t=>t.filter((e=>!(["translate","rotate","skewX","skewY"].indexOf(e.name)>-1&&(e.data.length==1||e.name=="rotate")&&!e.data[0]||e.name=="translate"&&!e.data[0]&&!e.data[1]||e.name=="scale"&&e.data[0]==1&&(e.data.length<2||e.data[1]==1)||e.name=="matrix"&&e.data[0]==1&&e.data[3]==1&&!(e.data[1]||e.data[2]||e.data[4]||e.data[5])))),T3=(t,e)=>t.map((i=>(QP(i,e),`${i.name}(${AMe(i.data,e)})`))).join(""),QP=(t,e)=>{switch(t.name){case"translate":t.data=fS(t.data,e);break;case"rotate":t.data=[...JD(t.data.slice(0,1),e),...fS(t.data.slice(1),e)];break;case"skewX":case"skewY":t.data=JD(t.data,e);break;case"scale":t.data=eM(t.data,e);break;case"matrix":t.data=[...eM(t.data.slice(0,4),e),...fS(t.data.slice(4),e)];break}return t},zP=t=>t.map(Math.round),qP=(t,e)=>{for(var n=e.length,i=+Math.pow(.1,t).toFixed(t);n--;)if(EMe(e[n],t)!==e[n]){var r=+e[n].toFixed(t-1);e[n]=+Math.abs(r-e[n]).toFixed(t+1)>=i?+e[n].toFixed(t):r}return e};var o0={};const{attrsGroups:BMe}=An;o0.name="removeEmptyAttrs";o0.description="removes empty attributes";o0.fn=()=>({element:{enter:t=>{for(const[e,n]of Object.entries(t.attributes))n===""&&!BMe.conditionalProcessing.has(e)&&delete t.attributes[e]}}});var l0={};const{detachNodeFromParent:FMe}=At,{elemsGroups:QMe}=An;l0.name="removeEmptyContainers";l0.description="removes empty container elements";l0.fn=()=>({element:{exit:(t,e)=>{t.name==="svg"||!QMe.container.has(t.name)||t.children.length!==0||t.name==="pattern"&&Object.keys(t.attributes).length!==0||t.name==="g"&&t.attributes.filter!=null||t.name==="mask"&&t.attributes.id!=null||e.type==="element"&&e.name==="switch"||FMe(t,e)}}});var c0={};const{collectStylesheet:zMe,computeStyle:qMe}=ws,{path2js:tM,js2path:WMe,intersects:UMe}=gu;c0.name="mergePaths";c0.description="merges multiple paths in one if possible";c0.fn=(t,e)=>{const{force:n=!1,floatPrecision:i,noSpaceAfterFlags:r=!1}=e,s=zMe(t);return{element:{enter:a=>{if(a.children.length<=1)return;const o=[];let l=a.children[0],c=null;const f=(u,h)=>{WMe(u,h,{floatPrecision:i,noSpaceAfterFlags:r}),c=null};for(let u=1;u<a.children.length;u++){const h=a.children[u];if(l.type!=="element"||l.name!=="path"||l.children.length!==0||l.attributes.d==null){c&&l.type==="element"&&f(l,c),l=h;continue}if(h.type!=="element"||h.name!=="path"||h.children.length!==0||h.attributes.d==null){c&&f(l,c),l=h;continue}const m=qMe(s,h);if(m["marker-start"]||m["marker-mid"]||m["marker-end"]){c&&f(l,c),l=h;continue}const g=Object.keys(h.attributes);if(g.length!==Object.keys(l.attributes).length){c&&f(l,c),l=h;continue}if(g.some((x=>x!=="d"&&l.type==="element"&&l.attributes[x]!==h.attributes[x]))){c&&f(l,c),l=h;continue}const w=c!=null,O=tM(h);if(c=c??tM(l),n||!UMe(c,O)){c.push(...O),o.push(h);continue}w&&f(l,c),l=h,c=null}c&&l.type==="element"&&f(l,c),a.children=a.children.filter((u=>!o.includes(u)))}}}};var f0={};f0.name="removeUnusedNS";f0.description="removes unused namespaces declaration";f0.fn=()=>{const t=new Set;return{element:{enter:(e,n)=>{if(e.name==="svg"&&n.type==="root"){for(const i of Object.keys(e.attributes))if(i.startsWith("xmlns:")){const r=i.slice(6);t.add(r)}}if(t.size!==0){if(e.name.includes(":")){const[i]=e.name.split(":");t.has(i)&&t.delete(i)}for(const i of Object.keys(e.attributes))if(i.includes(":")){const[r]=i.split(":");t.delete(r)}}},exit:(e,n)=>{if(e.name==="svg"&&n.type==="root")for(const i of t)delete e.attributes[`xmlns:${i}`]}}}};var u0={};u0.name="sortAttrs";u0.description="Sort element attributes for better compression";u0.fn=(t,e)=>{const{order:n=["id","width","height","x","x1","x2","y","y1","y2","cx","cy","r","fill","stroke","marker","d","points"],xmlnsOrder:i="front"}=e,r=a=>{if(i==="front"){if(a==="xmlns")return 3;if(a.startsWith("xmlns:"))return 2}return a.includes(":")?1:0},s=([a],[o])=>{const l=r(a),f=r(o)-l;if(f!==0)return f;const[u]=a.split("-"),[h]=o.split("-");if(u!==h){const m=n.includes(u)?1:0,g=n.includes(h)?1:0;if(m===1&&g===1)return n.indexOf(u)-n.indexOf(h);const v=g-m;if(v!==0)return v}return a<o?-1:1};return{element:{enter:a=>{const o=Object.entries(a.attributes);o.sort(s);const l={};for(const[c,f]of o)l[c]=f;a.attributes=l}}}};var d0={};d0.name="sortDefsChildren";d0.description="Sorts children of <defs> to improve compression";d0.fn=()=>({element:{enter:t=>{if(t.name==="defs"){const e=new Map;for(const n of t.children)if(n.type==="element"){const i=e.get(n.name);i==null?e.set(n.name,1):e.set(n.name,i+1)}t.children.sort(((n,i)=>{if(n.type!=="element"||i.type!=="element")return 0;const r=e.get(n.name),s=e.get(i.name);if(r!=null&&s!=null){const o=s-r;if(o!==0)return o}const a=i.name.length-n.name.length;return a!==0?a:n.name!==i.name?n.name>i.name?-1:1:0}))}}}});var h0={};const{detachNodeFromParent:VMe}=At;h0.name="removeTitle";h0.description="removes <title>";h0.fn=()=>({element:{enter:(t,e)=>{t.name==="title"&&VMe(t,e)}}});var p0={};const{detachNodeFromParent:HMe}=At;p0.name="removeDesc";p0.description="removes <desc>";const ZMe=/^(Created with|Created using)/;p0.fn=(t,e)=>{const{removeAny:n=!1}=e;return{element:{enter:(i,r)=>{i.name==="desc"&&(n||i.children.length===0||i.children[0].type==="text"&&ZMe.test(i.children[0].value))&&HMe(i,r)}}}};const{createPreset:GMe}=mk,XMe=C1,YMe=$1,KMe=P1,JMe=T1,e7e=A1,t7e=E1,n7e=R1,i7e=D1,r7e=z1,s7e=q1,a7e=W1,o7e=U1,l7e=V1,c7e=H1,f7e=Z1,u7e=G1,d7e=X1,h7e=Y1,p7e=K1,m7e=J1,g7e=e0,v7e=t0,b7e=n0,y7e=i0,w7e=r0,k7e=s0,O7e=a0,x7e=o0,S7e=l0,_7e=c0,C7e=f0,$7e=u0,P7e=d0,T7e=h0,A7e=p0,E7e=GMe({name:"preset-default",plugins:[XMe,YMe,KMe,JMe,e7e,t7e,n7e,i7e,r7e,s7e,a7e,o7e,l7e,c7e,f7e,u7e,d7e,h7e,p7e,m7e,g7e,v7e,b7e,y7e,w7e,k7e,O7e,x7e,S7e,_7e,C7e,$7e,P7e,T7e,A7e]});var R7e=E7e,Jk={};Jk.name="addAttributesToSVGElement";Jk.description="adds attributes to an outer <svg> element";var D7e=`Error in plugin "addAttributesToSVGElement": absent parameters.
|
||
It should have a list of "attributes" or one "attribute".
|
||
Config example:
|
||
|
||
plugins: [
|
||
{
|
||
name: 'addAttributesToSVGElement',
|
||
params: {
|
||
attribute: "mySvg"
|
||
}
|
||
}
|
||
]
|
||
|
||
plugins: [
|
||
{
|
||
name: 'addAttributesToSVGElement',
|
||
params: {
|
||
attributes: ["mySvg", "size-big"]
|
||
}
|
||
}
|
||
]
|
||
|
||
plugins: [
|
||
{
|
||
name: 'addAttributesToSVGElement',
|
||
params: {
|
||
attributes: [
|
||
{
|
||
focusable: false
|
||
},
|
||
{
|
||
'data-image': icon
|
||
}
|
||
]
|
||
}
|
||
}
|
||
]
|
||
`;Jk.fn=(t,e)=>{if(!Array.isArray(e.attributes)&&!e.attribute)return console.error(D7e),null;const n=e.attributes||[e.attribute];return{element:{enter:(i,r)=>{if(i.name==="svg"&&r.type==="root"){for(const s of n)if(typeof s=="string"&&i.attributes[s]==null&&(i.attributes[s]=void 0),typeof s=="object")for(const a of Object.keys(s))i.attributes[a]==null&&(i.attributes[a]=s[a])}}}}};var eO={};eO.name="addClassesToSVGElement";eO.description="adds classnames to an outer <svg> element";var M7e=`Error in plugin "addClassesToSVGElement": absent parameters.
|
||
It should have a list of classes in "classNames" or one "className".
|
||
Config example:
|
||
|
||
plugins: [
|
||
{
|
||
name: "addClassesToSVGElement",
|
||
params: {
|
||
className: "mySvg"
|
||
}
|
||
}
|
||
]
|
||
|
||
plugins: [
|
||
{
|
||
name: "addClassesToSVGElement",
|
||
params: {
|
||
classNames: ["mySvg", "size-big"]
|
||
}
|
||
}
|
||
]
|
||
`;eO.fn=(t,e)=>{if(!(Array.isArray(e.classNames)&&e.classNames.some(String))&&!e.className)return console.error(M7e),null;const n=e.classNames||[e.className];return{element:{enter:(i,r)=>{if(i.name==="svg"&&r.type==="root"){const s=new Set(i.attributes.class==null?null:i.attributes.class.split(" "));for(const a of n)a!=null&&s.add(a);i.attributes.class=Array.from(s).join(" ")}}}}};var tO={};const{removeLeadingZero:N7e}=ni;tO.name="cleanupListOfValues";tO.description="rounds list of values to the fixed precision";const L7e=/^([-+]?\d*\.?\d+([eE][-+]?\d+)?)(px|pt|pc|mm|cm|m|in|ft|em|ex|%)?$/,j7e=/\s+,?\s*|,\s*/,nM={cm:96/2.54,mm:96/25.4,in:96,pt:4/3,pc:16,px:1};tO.fn=(t,e)=>{const{floatPrecision:n=3,leadingZero:i=!0,defaultPx:r=!0,convertToPx:s=!0}=e,a=o=>{const l=[];for(const c of o.split(j7e)){const f=c.match(L7e),u=c.match(/new/);if(f){let h=Number(Number(f[1]).toFixed(n)),g=f[3]||"";if(s&&g&&g in nM){const w=Number((nM[g]*Number(f[1])).toFixed(n));w.toString().length<f[0].length&&(h=w,g="px")}let v;i?v=N7e(h):v=h.toString(),r&&g==="px"&&(g=""),l.push(v+g)}else u?l.push("new"):c&&l.push(c)}return l.join(" ")};return{element:{enter:o=>{o.attributes.points!=null&&(o.attributes.points=a(o.attributes.points)),o.attributes["enable-background"]!=null&&(o.attributes["enable-background"]=a(o.attributes["enable-background"])),o.attributes.viewBox!=null&&(o.attributes.viewBox=a(o.attributes.viewBox)),o.attributes["stroke-dasharray"]!=null&&(o.attributes["stroke-dasharray"]=a(o.attributes["stroke-dasharray"])),o.attributes.dx!=null&&(o.attributes.dx=a(o.attributes.dx)),o.attributes.dy!=null&&(o.attributes.dy=a(o.attributes.dy)),o.attributes.x!=null&&(o.attributes.x=a(o.attributes.x)),o.attributes.y!=null&&(o.attributes.y=a(o.attributes.y))}}}};var nO={};const{attrsGroupsDefaults:I7e,colorsProps:iM}=An,{detachNodeFromParent:rM,querySelectorAll:sM,querySelector:B7e}=At,{computeStyle:F7e,collectStylesheet:Q7e}=ws;nO.name="convertOneStopGradients";nO.description="converts one-stop (single color) gradients to a plain color";nO.fn=t=>{const e=Q7e(t),n=new Set,i=new Map,r=new Map;let s=0;return{element:{enter:(a,o)=>{if(a.attributes["xlink:href"]!=null&&s++,a.name==="defs"){i.set(a,o);return}if(a.name!=="linearGradient"&&a.name!=="radialGradient")return;const l=a.children.filter((x=>x.type==="element"&&x.name==="stop")),c=a.attributes["xlink:href"]||a.attributes.href;let f=l.length===0&&c!=null&&c.startsWith("#")?B7e(t,c):a;if(f==null||f.type!=="element"){r.set(a,o);return}const u=f.children.filter((x=>x.type==="element"&&x.name==="stop"));if(u.length!==1||u[0].type!=="element")return;o.type==="element"&&o.name==="defs"&&n.add(o),r.set(a,o);let h;const m=F7e(e,u[0])["stop-color"];m!=null&&m.type==="static"&&(h=m.value);const g=`url(#${a.attributes.id})`,v=[...iM].map((x=>`[${x}="${g}"]`)).join(","),w=sM(t,v);for(const x of w)if(x.type==="element")for(const $ of iM)x.attributes[$]===g&&(h!=null?x.attributes[$]=h:delete x.attributes[$]);const O=sM(t,`[style*=${g}]`);for(const x of O)x.type==="element"&&(x.attributes.style=x.attributes.style.replace(g,h||I7e.presentation["stop-color"]))},exit:a=>{if(a.name==="svg"){for(const[o,l]of r.entries())o.attributes["xlink:href"]!=null&&s--,rM(o,l);s===0&&delete a.attributes["xmlns:xlink"];for(const[o,l]of i.entries())n.has(o)&&o.children.length===0&&rM(o,l)}}}}};var iO={};const{attrsGroups:z7e}=An;iO.name="convertStyleToAttrs";iO.description="converts style to attributes";const m0=(...t)=>"(?:"+t.join("|")+")",q7e=z7e.presentation,Cp="\\\\(?:[0-9a-f]{1,6}\\s?|\\r\\n|.)",W7e="\\s*("+m0("[^:;\\\\]",Cp)+"*?)\\s*",rO="'(?:[^'\\n\\r\\\\]|"+Cp+")*?(?:'|$)",sO='"(?:[^"\\n\\r\\\\]|'+Cp+')*?(?:"|$)',U7e=new RegExp("^"+m0(rO,sO)+"$"),V7e="\\("+m0(`[^'"()\\\\]+`,Cp,rO,sO)+"*?\\)",H7e="\\s*("+m0(`[^!'"();\\\\]+?`,Cp,rO,sO,V7e,"[^;]*?")+"*?)",Z7e="\\s*(?:;\\s*|$)",G7e="(\\s*!important(?![-(\\w]))?",aM=new RegExp(W7e+":"+H7e+G7e+Z7e,"ig"),X7e=new RegExp(m0(Cp,rO,sO,"/\\*[^]*?\\*/"),"ig");iO.fn=(t,e)=>{const{keepImportant:n=!1}=e;return{element:{enter:i=>{if(i.attributes.style!=null){let s=[];const a={},o=i.attributes.style.replace(X7e,(l=>l[0]=="/"?"":l[0]=="\\"&&/[-g-z]/i.test(l[1])?l[1]:l));aM.lastIndex=0;for(var r;r=aM.exec(o);)(!n||!r[3])&&s.push([r[1],r[2]]);s.length&&(s=s.filter((function(l){if(l[0]){var c=l[0].toLowerCase(),f=l[1];if(U7e.test(f)&&(f=f.slice(1,-1)),q7e.has(c))return a[c]=f,!1}return!0})),Object.assign(i.attributes,a),s.length?i.attributes.style=s.map((l=>l.join(":"))).join(";"):delete i.attributes.style)}}}}};var aO={};const uS=Vt,{referencesProps:Y7e}=An;aO.name="prefixIds";aO.description="prefix IDs";const K7e=t=>{const e=/[/\\]?([^/\\]+)$/.exec(t);return e?e[1]:""},J7e=t=>t.replace(/[. ]/g,"_"),e8e=t=>t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t,Xm=(t,e)=>{const n=t(e);return e.startsWith(n)?e:n+e},dS=(t,e)=>e.startsWith("#")?"#"+Xm(t,e.slice(1)):null,t8e=(t,e,n,i,r,s)=>{if(typeof i=="function"){let a=s.get(t);return a!=null||(a=i(e,n)+r,s.set(t,a)),a}return typeof i=="string"?i+r:i===!1?"":n.path!=null&&n.path.length>0?J7e(K7e(n.path))+r:"prefix"+r};aO.fn=(t,e,n)=>{const{delim:i="__",prefix:r,prefixIds:s=!0,prefixClassNames:a=!0}=e,o=new Map;return{element:{enter:l=>{const c=f=>t8e(f,l,n,r,i,o);if(l.name==="style"){if(l.children.length===0)return;for(const f of l.children){if(f.type!=="text"&&f.type!=="cdata")continue;const u=f.value;let h=null;try{h=uS.parse(u,{parseValue:!0,parseCustomProperty:!1})}catch{return}uS.walk(h,(m=>{if(s&&m.type==="IdSelector"||a&&m.type==="ClassSelector"){m.name=Xm(c,m.name);return}if(m.type==="Url"&&m.value.length>0){const g=dS(c,e8e(m.value));g!=null&&(m.value=g)}})),f.value=uS.generate(h);return}}s&&l.attributes.id!=null&&l.attributes.id.length!==0&&(l.attributes.id=Xm(c,l.attributes.id)),a&&l.attributes.class!=null&&l.attributes.class.length!==0&&(l.attributes.class=l.attributes.class.split(/\s+/).map((f=>Xm(c,f))).join(" "));for(const f of["href","xlink:href"])if(l.attributes[f]!=null&&l.attributes[f].length!==0){const u=dS(c,l.attributes[f]);u!=null&&(l.attributes[f]=u)}for(const f of Y7e)l.attributes[f]!=null&&l.attributes[f].length!==0&&(l.attributes[f]=l.attributes[f].replace(/\burl\((["'])?(#.+?)\1\)/gi,((u,h,m)=>{const g=dS(c,m);return g==null?u:`url(${g})`})));for(const f of["begin","end"])if(l.attributes[f]!=null&&l.attributes[f].length!==0){const u=l.attributes[f].split(/\s*;\s+/).map((h=>{if(h.endsWith(".end")||h.endsWith(".start")){const[m,g]=h.split(".");return`${Xm(c,m)}.${g}`}return h}));l.attributes[f]=u.join("; ")}}}}};var oO={};const{querySelectorAll:n8e}=At;oO.name="removeAttributesBySelector";oO.description="removes attributes of elements that match a css selector";oO.fn=(t,e)=>{const n=Array.isArray(e.selectors)?e.selectors:[e];for(const{selector:i,attributes:r}of n){const s=n8e(t,i);for(const a of s)if(a.type==="element")if(Array.isArray(r))for(const o of r)delete a.attributes[o];else delete a.attributes[r]}return{}};var lO={};lO.name="removeAttrs";lO.description="removes specified attributes";const i8e=":",r8e=`Warning: The plugin "removeAttrs" requires the "attrs" parameter.
|
||
It should have a pattern to remove, otherwise the plugin is a noop.
|
||
Config example:
|
||
|
||
plugins: [
|
||
{
|
||
name: "removeAttrs",
|
||
params: {
|
||
attrs: "(fill|stroke)"
|
||
}
|
||
}
|
||
]
|
||
`;lO.fn=(t,e)=>{if(typeof e.attrs>"u")return console.warn(r8e),null;const n=typeof e.elemSeparator=="string"?e.elemSeparator:i8e,i=typeof e.preserveCurrentColor=="boolean"?e.preserveCurrentColor:!1,r=Array.isArray(e.attrs)?e.attrs:[e.attrs];return{element:{enter:s=>{for(let a of r){a.includes(n)?a.split(n).length<3&&(a=[a,".*"].join(n)):a=[".*",a,".*"].join(n);const o=a.split(n).map((l=>(l==="*"&&(l=".*"),new RegExp(["^",l,"$"].join(""),"i"))));if(o[0].test(s.name))for(const[l,c]of Object.entries(s.attributes)){const f=i&&l=="fill"&&c=="currentColor",u=i&&l=="stroke"&&c=="currentColor";!f&&!u&&o[1].test(l)&&o[2].test(c)&&delete s.attributes[l]}}}}}};var cO={};cO.name="removeDimensions";cO.description="removes width and height in presence of viewBox (opposite to removeViewBox, disable it first)";cO.fn=()=>({element:{enter:t=>{if(t.name==="svg"){if(t.attributes.viewBox!=null)delete t.attributes.width,delete t.attributes.height;else if(t.attributes.width!=null&&t.attributes.height!=null&&Number.isNaN(Number(t.attributes.width))===!1&&Number.isNaN(Number(t.attributes.height))===!1){const e=Number(t.attributes.width),n=Number(t.attributes.height);t.attributes.viewBox=`0 0 ${e} ${n}`,delete t.attributes.width,delete t.attributes.height}}}}});var fO={};const{detachNodeFromParent:oM}=At;fO.name="removeElementsByAttr";fO.description="removes arbitrary elements by ID or className (disabled by default)";fO.fn=(t,e)=>{const n=e.id==null?[]:Array.isArray(e.id)?e.id:[e.id],i=e.class==null?[]:Array.isArray(e.class)?e.class:[e.class];return{element:{enter:(r,s)=>{if(r.attributes.id!=null&&n.length!==0&&n.includes(r.attributes.id)&&oM(r,s),r.attributes.class&&i.length!==0){const a=r.attributes.class.split(" ");for(const o of i)if(a.includes(o)){oM(r,s);break}}}}}};var uO={};const{visitSkip:s8e,detachNodeFromParent:a8e}=At,{parsePathData:o8e}=Sp,{intersects:l8e}=gu;uO.name="removeOffCanvasPaths";uO.description="removes elements that are drawn outside of the viewbox (disabled by default)";uO.fn=()=>{let t=null;return{element:{enter:(e,n)=>{if(e.name==="svg"&&n.type==="root"){let i="";e.attributes.viewBox!=null?i=e.attributes.viewBox:e.attributes.height!=null&&e.attributes.width!=null&&(i=`0 0 ${e.attributes.width} ${e.attributes.height}`),i=i.replace(/[,+]|px/g," ").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"");const r=/^(-?\d*\.?\d+) (-?\d*\.?\d+) (\d*\.?\d+) (\d*\.?\d+)$/.exec(i);if(r==null)return;const s=Number.parseFloat(r[1]),a=Number.parseFloat(r[2]),o=Number.parseFloat(r[3]),l=Number.parseFloat(r[4]);t={left:s,top:a,right:s+o,bottom:a+l,width:o,height:l}}if(e.attributes.transform!=null)return s8e;if(e.name==="path"&&e.attributes.d!=null&&t!=null){const i=o8e(e.attributes.d);let r=!1;for(const f of i)if(f.command==="M"){const[u,h]=f.args;u>=t.left&&u<=t.right&&h>=t.top&&h<=t.bottom&&(r=!0)}if(r)return;i.length===2&&i.push({command:"z",args:[]});const{left:s,top:a,width:o,height:l}=t;l8e([{command:"M",args:[s,a]},{command:"h",args:[o]},{command:"v",args:[l]},{command:"H",args:[s]},{command:"z",args:[]}],i)===!1&&a8e(e,n)}}}}};var dO={};const{detachNodeFromParent:c8e}=At;dO.name="removeRasterImages";dO.description="removes raster images (disabled by default)";dO.fn=()=>({element:{enter:(t,e)=>{t.name==="image"&&t.attributes["xlink:href"]!=null&&/(\.|image\/)(jpe?g|png|gif)/.test(t.attributes["xlink:href"])&&c8e(t,e)}}});var hO={};const{detachNodeFromParent:f8e}=At,{attrsGroups:xm}=An;hO.name="removeScriptElement";hO.description="removes scripts (disabled by default)";const u8e=[...xm.animationEvent,...xm.documentEvent,...xm.documentElementEvent,...xm.globalEvent,...xm.graphicalEvent];hO.fn=()=>({element:{enter:(t,e)=>{if(t.name==="script"){f8e(t,e);return}for(const n of u8e)t.attributes[n]!=null&&delete t.attributes[n]},exit:(t,e)=>{if(t.name==="a"){for(const n of Object.keys(t.attributes))if(n==="href"||n.endsWith(":href")){if(t.attributes[n]==null||!t.attributes[n].trimStart().startsWith("javascript:"))continue;const i=e.children.indexOf(t);e.children.splice(i,1,...t.children);for(const r of t.children)Object.defineProperty(r,"parentNode",{writable:!0,value:e})}}}}});var pO={};const{detachNodeFromParent:d8e}=At;pO.name="removeStyleElement";pO.description="removes <style> element (disabled by default)";pO.fn=()=>({element:{enter:(t,e)=>{t.name==="style"&&d8e(t,e)}}});var mO={};const{elems:h8e}=An;mO.name="removeXlink";mO.description="remove xlink namespace and replaces attributes with the SVG 2 equivalent where applicable";const lM="http://www.w3.org/1999/xlink",p8e={new:"_blank",replace:"_self"},m8e=new Set(["cursor","filter","font-face-uri","glyphRef","tref"]),hS=(t,e,n)=>e.map((i=>`${i}:${n}`)).filter((i=>t.attributes[i]!=null));mO.fn=(t,e)=>{const{includeLegacy:n}=e,i=[],r=[],s=[];return{element:{enter:a=>{var u,h;for(const[m,g]of Object.entries(a.attributes))if(m.startsWith("xmlns:")){const v=m.split(":",2)[1];if(g===lM){i.push(v);continue}i.includes(v)&&r.push(v)}if(r.some((m=>i.includes(m))))return;const o=hS(a,i,"show");let l=a.attributes.target!=null;for(let m=o.length-1;m>=0;m--){const g=o[m],v=a.attributes[g],w=p8e[v];if(l||w==null){delete a.attributes[g];continue}w!==((h=(u=h8e[a.name])==null?void 0:u.defaults)==null?void 0:h.target)&&(a.attributes.target=w),delete a.attributes[g],l=!0}const c=hS(a,i,"title");for(let m=c.length-1;m>=0;m--){const g=c[m],v=a.attributes[g];if(a.children.filter((x=>x.type==="element"&&x.name==="title")).length>0){delete a.attributes[g];continue}const O={type:"element",name:"title",attributes:{},children:[{type:"text",value:v}]};Object.defineProperty(O,"parentNode",{writable:!0,value:a}),a.children.unshift(O),delete a.attributes[g]}const f=hS(a,i,"href");if(f.length>0&&m8e.has(a.name)&&!n){f.map((m=>m.split(":",1)[0])).forEach((m=>s.push(m)));return}for(let m=f.length-1;m>=0;m--){const g=f[m],v=a.attributes[g];if(a.attributes.href!=null){delete a.attributes[g];continue}a.attributes.href=v,delete a.attributes[g]}},exit:a=>{for(const[o,l]of Object.entries(a.attributes)){const[c,f]=o.split(":",2);if(i.includes(c)&&!r.includes(c)&&!s.includes(c)&&!n){delete a.attributes[o];continue}if(o.startsWith("xmlns:")&&!s.includes(f)){if(l===lM){const u=i.indexOf(f);i.splice(u,1),delete a.attributes[o];continue}if(r.includes(c)){const u=r.indexOf(f);r.splice(u,1)}}}}}}};var gO={};gO.name="removeXMLNS";gO.description="removes xmlns attribute (for inline svg, disabled by default)";gO.fn=()=>({element:{enter:t=>{t.name==="svg"&&delete t.attributes.xmlns}}});var vO={};const{collectStylesheet:g8e}=ws,{detachNodeFromParent:cM,querySelectorAll:v8e}=At;vO.name="reusePaths";vO.description="Finds <path> elements with the same d, fill, and stroke, and converts them to <use> elements referencing a single <path> def.";vO.fn=t=>{const e=g8e(t),n=new Map;let i;const r=new Set;return{element:{enter:(s,a)=>{if(s.name==="path"&&s.attributes.d!=null){const o=s.attributes.d,l=s.attributes.fill||"",c=s.attributes.stroke||"",f=o+";s:"+c+";f:"+l;let u=n.get(f);u==null&&(u=[],n.set(f,u)),u.push(s)}if(i==null&&s.name==="defs"&&a.type==="element"&&a.name==="svg"&&(i=s),s.name==="use")for(const o of["href","xlink:href"]){const l=s.attributes[o];l!=null&&l.startsWith("#")&&l.length>1&&r.add(l.slice(1))}},exit:(s,a)=>{if(s.name==="svg"&&a.type==="root"){let o=i;o==null&&(o={type:"element",name:"defs",attributes:{},children:[]},Object.defineProperty(o,"parentNode",{writable:!0,value:s}));let l=0;for(const c of n.values())if(c.length>1){const f={type:"element",name:"path",attributes:{},children:[]};for(const h of["fill","stroke","d"])c[0].attributes[h]!=null&&(f.attributes[h]=c[0].attributes[h]);const u=c[0].attributes.id;u==null||r.has(u)||e.rules.some((h=>h.selector===`#${u}`))?f.attributes.id="reuse-"+l++:(f.attributes.id=u,delete c[0].attributes.id),Object.defineProperty(f,"parentNode",{writable:!0,value:o}),o.children.push(f);for(const h of c){if(delete h.attributes.d,delete h.attributes.stroke,delete h.attributes.fill,o.children.includes(h)&&h.children.length===0){if(Object.keys(h.attributes).length===0){cM(h,o);continue}if(Object.keys(h.attributes).length===1&&h.attributes.id!=null){cM(h,o);const m=`[xlink\\:href=#${h.attributes.id}], [href=#${h.attributes.id}]`;for(const g of v8e(s,m))if(g.type==="element")for(const v of["href","xlink:href"])g.attributes[v]!=null&&(g.attributes[v]="#"+f.attributes.id);continue}}h.name="use",h.attributes["xlink:href"]="#"+f.attributes.id}}o.children.length!==0&&(s.attributes["xmlns:xlink"]==null&&(s.attributes["xmlns:xlink"]="http://www.w3.org/1999/xlink"),i==null&&s.children.unshift(o))}}}}};Yj.builtin=[R7e,Jk,eO,E1,Y1,q1,tO,U1,r0,V1,t0,nO,s0,e0,iO,a0,R1,D1,c0,z1,n0,i0,aO,oO,lO,P1,p0,cO,C1,A1,fO,o0,l0,J1,K1,T1,Z1,uO,dO,hO,pO,h0,H1,f0,W1,G1,X1,mO,gO,$1,vO,u0,d0];const{parseSvg:b8e}=Hj,{stringifySvg:y8e}=Gj,{builtin:w8e}=Yj,{invokePlugins:k8e}=mk,{encodeSVGDatauri:O8e}=ni,A3={};for(const t of w8e)A3[t.name]=t;const x8e=t=>{if(typeof t=="string"){const e=A3[t];if(e==null)throw Error(`Unknown builtin plugin "${t}" specified.`);return{name:t,params:{},fn:e.fn}}if(typeof t=="object"&&t!=null){if(t.name==null)throw Error("Plugin name should be specified");let e=t.fn;if(e==null){const n=A3[t.name];if(n==null)throw Error(`Unknown builtin plugin "${t.name}" specified.`);e=n.fn}return{name:t.name,params:t.params,fn:e}}return null},S8e=(t,e)=>{if(e==null&&(e={}),typeof e!="object")throw Error("Config should be an object");const n=e.multipass?10:1;let i=Number.POSITIVE_INFINITY,r="";const s={};e.path!=null&&(s.path=e.path);for(let a=0;a<n;a+=1){s.multipassCount=a;const o=b8e(t,e.path),l=e.plugins||["preset-default"];if(!Array.isArray(l))throw Error("malformed config, `plugins` property must be an array.\nSee more info here: https://github.com/svg/svgo#configuration");const c=l.filter((u=>u!=null)).map(x8e);c.length<l.length&&console.warn("Warning: plugins list includes null or undefined elements, these will be ignored.");const f={};if(e.floatPrecision!=null&&(f.floatPrecision=e.floatPrecision),k8e(o,s,c,null,f),r=y8e(o,e.js2svg),r.length<i)t=r,i=r.length;else break}return e.datauri&&(r=O8e(r,e.datauri)),{data:r}};var _8e=S8e;const C8e=()=>{const{state:t}=bs(),e={floatPrecision:t.settings.svg.floatPrecision,js2svg:{indent:2,pretty:t.settings.svg.prettify},multipass:!0,path:t.settings.svg.path,plugins:t.settings.svg.svgoPlugins};return{processWithExportConfig:async i=>{const{jpeg:r,png:s,webp:a}=t.settings;switch(t.fileType){case"jpeg":return await Promise.all(i.map(async o=>({id:o.id,name:o.name,payload:await Si.convertToDataUrl(o.presentationSvg,r.size,"image/jpeg",r.quality)}))).catch(o=>(fl.error("Failed to convert SVG to PNG:",o.message),[]));case"png":return await Promise.all(i.map(async o=>({id:o.id,name:o.name,payload:await Si.convertToDataUrl(o.presentationSvg,s.size,"image/png")}))).catch(o=>(fl.error("Failed to convert SVG to PNG:",o.message),[]));case"svg":return i.map(o=>{const{data:l}=_8e(o.svg,e);return{id:o.id,name:o.name,payload:l}});case"webp":return await Promise.all(i.map(async o=>({id:o.id,name:o.name,payload:await Si.convertToDataUrl(o.presentationSvg,a.size,"image/webp",a.quality)}))).catch(o=>(fl.error("Failed to convert SVG to PNG:",o.message),[]));default:return[]}}}},$8e=()=>{const[t,e]=k.useState(!1),{dispatch:n,state:i}=en(),{state:r}=bs(),{processWithExportConfig:s}=C8e(),a=async()=>{e(!0);const{collectionId:c,data:f,selected:u}=i,h=await s(u),m=await ye.getPageData(c),g=f.map(v=>{const w=h.find(O=>O.id===v.id);return w&&(v.svg=w.payload,v.stampLastEdited()),v});m.data=oi.createStorageSvgs(g),await ye.setPageData(c,m),n({payload:g,type:"set-data"}),n({type:"process-data"}),setTimeout(()=>{e(!1)},400)},o=async()=>{e(!0);let c=await s(i.selected);switch(r.fileType){case"jpeg":case"png":case"webp":{await Si.downloadImageContent(c,r);break}case"sprite":{c=i.selected.map(f=>({id:f.id,name:f.name,payload:f.svg})),await Si.downloadSpriteZip(c,r);break}case"svg":{await Si.downloadSvgContent(c,r);break}}e(!1)},l=r.fileType==="sprite"?j("export_download_sprite"):j("export_export");return b.jsxs("footer",{className:"flex shrink-0 flex-col gap-2 border-t border-gray-200 px-4 py-6 dark:border-gray-700",children:[r.fileType==="svg"&&b.jsx(_t,{className:"justify-center",loading:t,onClick:a,variant:"secondary",children:j("optimize")}),b.jsx(_t,{className:"justify-center",loading:t,onClick:o,children:l})]})},P8e=()=>{const{state:t}=en();return b.jsx(Wt,{enter:"transition-all duration-500",enterFrom:"opacity-0 w-[0]",enterTo:"opacity-100 w-[18rem]",leave:"transition-all duration-500",leaveFrom:"opacity-100 w-[18rem]",leaveTo:"opacity-0 w-[0]",show:t.selected.length>0,children:b.jsx("aside",{className:Tt("surface h-[calc(100dvh-theme(space.16))] shrink-0 overflow-y-auto border-l","transition-width border-gray-200 duration-500 ease-in dark:border-gray-800","w-80"),children:b.jsx("div",{className:"flex h-full flex-col",children:b.jsxs(Fn.Group,{children:[b.jsxs(Fn.List,{className:"flex h-12 shrink-0 items-end",children:[b.jsx(Fn.Tab,{children:j("export_export")}),b.jsx(Fn.Tab,{children:"Edit"})]}),b.jsxs(Fn.Panels,{className:"min-h-0 flex-1",children:[b.jsxs(Fn.Panel,{className:"flex h-full flex-col",children:[b.jsx($ue,{}),b.jsx($8e,{})]}),b.jsx(Fn.Panel,{className:"flex h-full flex-col",children:b.jsx(Pue,{})})]})]})})})})},T8e=()=>b.jsx("div",{className:"flex min-h-screen flex-col",children:b.jsx("div",{className:"grid flex-1 grid-cols-2 content-start gap-4 bg-gray-100 dark:bg-gray-900 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6",children:Array.from({length:20}).map((t,e)=>b.jsx("span",{className:"h-32 animate-pulse rounded-2xl bg-white dark:border-gray-700 dark:bg-gray-800"},e))})}),A8e=()=>{const{state:t}=Ki(),{state:e}=en(),n=k.useMemo(()=>{const r=["white","#fff","#ffffff"];return e.processedData.some(({presentationSvg:s})=>r.some(a=>s.includes(a)))},[e.processedData]);if(k.useMemo(()=>n&&!t.onboarding.viewedCardColor&&!0,[n,t.onboarding.viewedCardColor]))return b.jsxs(lk,{open:!0,children:[b.jsx(ck,{asChild:!0,children:b.jsx("span",{className:"absolute inset-x-0"})}),b.jsx(fk,{children:b.jsxs(uk,{className:Tt("radix-side-top:animate-slide-down-fade","radix-side-right:animate-slide-left-fade","radix-side-bottom:animate-slide-up-fade","radix-side-left:animate-slide-right-fade","inline-flex items-center rounded-lg px-2 py-2","bg-gray-800 text-xs shadow-md dark:bg-white","max-w-[16rem] text-center text-white dark:text-gray-800"),side:"bottom",sideOffset:20,children:[j("onboarding_card_color"),b.jsx(dk,{className:"fill-current text-gray-800 dark:text-gray-200"})]})})]})},E8e=()=>{const{dispatch:t,state:e}=Ki(),{dispatch:n,state:i}=en(),r=k.useRef(null),s=()=>{var l;(l=r.current)==null||l.click()},a=l=>{n({payload:l.target.value,type:"set-canvas-color"}),ye.setStorageData("view",{...i.view,canvas:l.target.value})},o=k.useCallback(()=>{if(!e.onboarding.viewedCardColor){const l=hk.merge(e,{onboarding:{viewedCardColor:!0}});t({payload:l,type:"set-user"}),ye.setStorageData("user",l)}},[t,e]);return b.jsx($c,{content:j("topbar_canvas_tooltip"),children:b.jsxs(xc,{className:"relative",onClick:s,onFocus:o,size:"lg",variant:"ghost",children:[b.jsx(A8e,{}),b.jsx("input",{className:"sr-only",onChange:a,ref:r,type:"color",value:i.view.canvas}),b.jsx(sse,{"aria-hidden":"true",className:"h-5 w-5"}),b.jsx("span",{className:"sr-only",children:j("topbar_canvas")})]})})},R8e=()=>{const{state:t}=en(),{dispatch:e,state:n}=Ir(),i=k.useMemo(()=>{var s;return(s=n.collections.find(a=>a.id===t.collectionId))==null?void 0:s.name},[t.collectionId,n.collections]);function r(s){const a=s.target.textContent??j("topbar_collection");if(a!==i){const o=n.collections.map(l=>l.id===t.collectionId?{...l,name:a}:l);e({payload:o,type:"set-collections"}),ye.setStorageData("collections",o)}s.currentTarget.scrollLeft=0}return b.jsx(Wt,{appear:!0,className:"-ml-2 flex min-w-0 flex-1 rounded-md",enter:"transition-all ease-linear duration-500",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",show:!!i,children:b.jsx("h1",{className:"focus min-w-0 overflow-hidden overflow-ellipsis whitespace-nowrap rounded-md px-2 py-1 text-lg font-semibold hover:bg-gray-100 focus:text-clip dark:hover:bg-gray-800",contentEditable:"plaintext-only",onBlur:r,onKeyDown:D8e,suppressContentEditableWarning:!0,children:i})})};function D8e(t){t.key==="Enter"&&t.currentTarget.blur()}const M8e=[{label:"16px",value:16},{label:"20px",value:20},{label:"24px",value:24},{label:"40px",value:40},{label:"48px",value:48},{label:"64px",value:64},{label:"96px",value:96},{label:"128px",value:128},{label:"192px",value:192},{label:"256px",value:256}],N8e=()=>{const{dispatch:t,state:e}=en();function n(i){const r={...e.view,size:Number(i.target.value)};t({payload:r,type:"set-view"}),ye.setStorageData("view",r)}return b.jsxs(b.Fragment,{children:[b.jsx("label",{className:"hidden",htmlFor:"size",children:j("topbar_size")}),b.jsx("select",{className:Tt("focus h-8 rounded-md border-0 bg-transparent text-center text-sm font-semibold","cursor-pointer bg-none px-1.5 py-0 hover:bg-gray-100 dark:hover:bg-gray-800","focus:ring-0"),id:"size",onChange:n,value:e.view.size,children:M8e.map(i=>b.jsx("option",{value:i.value,children:i.label},i.value))})]})},L8e=[{label:j("topbar_sort_none"),value:"none"},{label:j("topbar_sort_alphabetical_asc"),value:"alphabetical-asc"},{label:j("topbar_sort_alphabetical_desc"),value:"alphabetical-desc"},{label:j("topbar_sort_size_asc"),value:"file-asc"},{label:j("topbar_sort_size_desc"),value:"file-desc"},{label:j("topbar_sort_last_asc"),value:"last-asc"},{label:j("topbar_sort_last_desc"),value:"last-desc"}],j8e=()=>{const{dispatch:t,state:e}=en();function n(i){const r=i.currentTarget.dataset.value;ye.setStorageData("view",{...e.view,sort:r}),t({payload:{...e.view,sort:r},type:"set-view"}),t({type:"process-data"})}return b.jsxs(Ci,{as:"div",className:"relative z-20 inline-block text-left",children:[b.jsxs(Ci.Button,{className:Tt(R$,hL.ghost,pL.md),children:[j("topbar_sort"),b.jsx(Gw,{"aria-hidden":!0,className:"h-3 w-3"})]}),b.jsx(Wt,{as:k.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:b.jsx(Ci.Items,{className:Tt("absolute right-0 z-10 mt-2 w-48 origin-top-left rounded-md","bg-white shadow-2xl ring-1 ring-black dark:bg-gray-800 dark:ring-white","focus ring-opacity-5 dark:ring-opacity-5"),children:b.jsx("div",{className:"py-1",children:L8e.map(i=>b.jsx(Ci.Item,{children:({active:r})=>b.jsx("span",{className:Tt(e.view.sort===i.value&&"font-semibold",r&&"bg-gray-100 dark:bg-gray-700","block cursor-pointer px-4 py-2 text-sm"),"data-value":i.value,onClick:n,children:i.label})},i.value))})})})]})},I8e=()=>{const{colorMode:t,toggleColorMode:e}=hae();return b.jsx($c,{content:j("topbar_color_tooltip"),children:b.jsxs(xc,{onClick:e,size:"lg",variant:"ghost",children:[t==="dark"?b.jsx(ise,{"aria-hidden":"true",className:"h-5 w-5"}):b.jsx(dse,{"aria-hidden":"true",className:"h-5 w-5"}),b.jsx("span",{className:"sr-only",children:j("topbar_color")})]})})},B8e=()=>{const{state:t}=Ki();if(k.useMemo(()=>!t.features.viewedNameFeature&&t.onboarding.viewedCardColor&&new Date(t.installDate)<new Date("2025-04-02"),[t]))return b.jsxs(lk,{open:!0,children:[b.jsx(ck,{asChild:!0,children:b.jsx("span",{className:"absolute inset-x-0"})}),b.jsx(fk,{children:b.jsxs(uk,{className:Tt("radix-side-top:animate-slide-down-fade","radix-side-right:animate-slide-left-fade","radix-side-bottom:animate-slide-up-fade","radix-side-left:animate-slide-right-fade","inline-flex items-center rounded-lg px-2 py-2","bg-gray-800 text-xs shadow-md dark:bg-white","max-w-[16rem] text-center text-white dark:text-gray-800"),side:"bottom",sideOffset:20,children:[j("view_show_feature_notice"),b.jsx(dk,{className:"fill-current text-gray-800 dark:text-gray-200"})]})})]})},F8e=[{label:j("view_always_show_size"),value:"show-size"},{label:j("view_show_name"),value:"show-name"},{label:j("topbar_hide_cors"),value:"hide-cors"}],Q8e=()=>{const{dispatch:t,state:e}=en(),{dispatch:n,state:i}=Ki();function r(o){const{checked:l,name:c}=o.currentTarget,f={...e.view.filters,[c]:l};ye.setStorageData("view",{...e.view,filters:f}),t({payload:{...e.view,filters:f},type:"set-view"}),t({type:"process-data"})}function s(){if(!i.features.viewedNameFeature){const o={...i,features:{...i.features,viewedNameFeature:!0}};n({payload:o,type:"set-user"}),ye.setStorageData("user",o)}}const a=e.data.filter(o=>o.corsRestricted).length;return b.jsx(xf.Group,{className:"-mx-4 flex items-center divide-x divide-gray-200",children:b.jsxs(xf,{className:"relative inline-block px-4 text-left",children:[b.jsxs(xf.Button,{className:Tt(R$,hL.ghost,pL.md),onClick:s,children:[j("topbar_view"),b.jsx(B8e,{}),b.jsx(Gw,{"aria-hidden":!0,className:"h-3 w-3"})]}),b.jsx(Wt,{as:k.Fragment,...m4.popover,children:b.jsx(xf.Panel,{className:Tt("absolute right-0 z-50 mt-2 origin-top-left rounded-md p-5","bg-white shadow-2xl ring-1 ring-black dark:bg-gray-800 dark:ring-white","flex flex-col gap-y-3 ring-opacity-5 focus:outline-none dark:ring-opacity-5"),children:F8e.map(o=>b.jsxs("div",{className:"flex items-center",children:[b.jsx("input",{checked:e.view.filters[o.value],className:"checkbox",id:o.value,name:o.value,onChange:r,type:"checkbox"}),b.jsxs("label",{className:"text ml-3 cursor-pointer whitespace-nowrap pr-4 text-sm font-medium",htmlFor:o.value,children:[o.label,o.value==="hide-cors"&&b.jsx($ne,{className:"ml-2",text:`${a}`})]})]},o.value))})})]})})},z8e=()=>{const[t,e]=k.useState(!1),{state:n}=en(),{exportCurrentCollectionDataAsZip:i}=ij(),r=n.data.length>1;function s(){e(!0)}function a(){i(n.collectionId)}return b.jsxs("section",{className:"top-bar",children:[b.jsx(UL,{}),b.jsx("div",{"aria-hidden":!0,className:"mr-2 flex h-6 min-w-px bg-gray-200 dark:bg-gray-700 lg:hidden"}),b.jsx(R8e,{}),b.jsxs("div",{className:"ml-auto hidden shrink-0 items-center gap-x-3 sm:flex lg:gap-x-4",children:[b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx(E8e,{}),b.jsx(I8e,{})]}),b.jsx("div",{"aria-hidden":!0,className:"h-6 w-px bg-gray-200 dark:bg-gray-700"}),b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx(N8e,{}),b.jsx(Q8e,{}),b.jsx(j8e,{})]}),b.jsx("div",{"aria-hidden":!0,className:"h-6 w-px bg-gray-200 dark:bg-gray-700"}),b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsxs(_t,{onClick:s,variant:"secondary",children:[b.jsx("span",{className:"hidden md:inline-block",children:j("topbar_upload")}),b.jsx(Xw,{className:"h-4 w-4"})]}),b.jsx(Wt,{as:"span",enter:"transition-all duration-500",enterFrom:"opacity-0 scale-60",enterTo:"opacity-100 scale-100",leave:"transition-all duration-300",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-50",show:r,children:b.jsxs(_t,{onClick:a,variant:"primary",children:[b.jsx("span",{className:"hidden md:inline-block",children:j("download_all")}),b.jsx(nle,{className:"h-4 w-4"})]})})]})]}),b.jsx(cj,{open:t,setOpen:e})]})},q8e=()=>{const{collectionId:t,data:e,plugins:n,user:i,view:r}=Zw(),{dispatch:s}=en(),{dispatch:a}=bs(),{dispatch:o}=Ki();return Cae(),k.useEffect(()=>{s({payload:t,type:"set-collection-id"}),s({payload:r,type:"set-view"}),a({payload:n,type:"set-svgo-plugins"}),o({payload:i,type:"set-user"})},[t,s,r,a,n,i,o]),b.jsxs(k.Fragment,{children:[b.jsx(z8e,{}),b.jsxs("div",{className:"flex",children:[b.jsxs("main",{className:"flex-1",children:[b.jsx(due,{}),b.jsx("div",{className:"text h-[calc(100dvh-theme(space.28))] overflow-y-auto bg-gray-100 p-6 transition-all duration-300 dark:bg-gray-900",children:b.jsx(tt.Suspense,{fallback:b.jsx(T8e,{}),children:b.jsx(jL,{resolve:e,children:l=>l.length===0||l===void 0?b.jsx(ele,{}):b.jsx(iue,{data:l})})})})]}),b.jsx(P8e,{})]})]})};async function W8e({params:t}){const e=t.id,n=await ye.getPageData(e),i=await ye.getStorageData("plugins"),r=await ye.getStorageData("view"),s=await ye.getStorageData("user");return xL({collectionId:t.id,data:rj.process(n),plugins:i,user:s,view:r})}function Mt(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}var gz={},vz=k.createContext(gz),U8e=(t,e)=>X({},t,e),V8e=()=>k.useContext(vz),WP=k.createContext(()=>{});WP.displayName="JVR.DispatchShowTools";function H8e(){return k.useReducer(U8e,gz)}function bz(){return k.useContext(WP)}var yz=t=>{var{initial:e,dispatch:n,children:i}=t;return b.jsx(vz.Provider,{value:e,children:b.jsx(WP.Provider,{value:n,children:i})})};yz.displayName="JVR.ShowTools";var wz={},kz=k.createContext(wz),Z8e=(t,e)=>X({},t,e),bO=()=>k.useContext(kz),UP=k.createContext(()=>{});UP.displayName="JVR.DispatchExpands";function G8e(){return k.useReducer(Z8e,wz)}function X8e(){return k.useContext(UP)}var Oz=t=>{var{initial:e,dispatch:n,children:i}=t;return b.jsx(kz.Provider,{value:e,children:b.jsx(UP.Provider,{value:n,children:i})})};Oz.displayName="JVR.Expands";var xz={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Sz=k.createContext(xz),Y8e=(t,e)=>X({},t,e),yn=()=>k.useContext(Sz),VP=k.createContext(()=>{});VP.displayName="JVR.DispatchTypes";function K8e(){return k.useReducer(Y8e,xz)}function J8e(){return k.useContext(VP)}function _z(t){var{initial:e,dispatch:n,children:i}=t;return b.jsx(Sz.Provider,{value:e,children:b.jsx(VP.Provider,{value:n,children:i})})}_z.displayName="JVR.Types";var eNe=["style"];function Cz(t){var{style:e}=t,n=Mt(t,eNe),i=X({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return b.jsx("svg",X({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:i},n,{children:b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Cz.displayName="JVR.TriangleArrow";var $z={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:b.jsx(Cz,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},Pz=k.createContext($z),tNe=(t,e)=>X({},t,e),zr=()=>k.useContext(Pz),HP=k.createContext(()=>{});HP.displayName="JVR.DispatchSymbols";function nNe(){return k.useReducer(tNe,$z)}function iNe(){return k.useContext(HP)}var Tz=t=>{var{initial:e,dispatch:n,children:i}=t;return b.jsx(Pz.Provider,{value:e,children:b.jsx(HP.Provider,{value:n,children:i})})};Tz.displayName="JVR.Symbols";var Az={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Ez=k.createContext(Az),rNe=(t,e)=>X({},t,e),ea=()=>k.useContext(Ez),ZP=k.createContext(()=>{});ZP.displayName="JVR.DispatchSection";function sNe(){return k.useReducer(rNe,Az)}function aNe(){return k.useContext(ZP)}var Rz=t=>{var{initial:e,dispatch:n,children:i}=t;return b.jsx(Ez.Provider,{value:e,children:b.jsx(ZP.Provider,{value:n,children:i})})};Rz.displayName="JVR.Section";var Dz={objectSortKeys:!1,indentWidth:15},GP=k.createContext(Dz);GP.displayName="JVR.Context";var Mz=k.createContext(()=>{});Mz.displayName="JVR.DispatchContext";function oNe(t,e){return X({},t,e)}var vu=()=>k.useContext(GP),Nz=t=>{var{children:e,initialState:n,initialTypes:i}=t,[r,s]=k.useReducer(oNe,Object.assign({},Dz,n)),[a,o]=H8e(),[l,c]=G8e(),[f,u]=K8e(),[h,m]=nNe(),[g,v]=sNe();return k.useEffect(()=>s(X({},n)),[n]),b.jsx(GP.Provider,{value:r,children:b.jsx(Mz.Provider,{value:s,children:b.jsx(yz,{initial:a,dispatch:o,children:b.jsx(Oz,{initial:l,dispatch:c,children:b.jsx(_z,{initial:X({},f,i),dispatch:u,children:b.jsx(Tz,{initial:h,dispatch:m,children:b.jsx(Rz,{initial:g,dispatch:v,children:e})})})})})})})};Nz.displayName="JVR.Provider";function lNe(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var cNe=["isNumber","value","parentValue","keyName","keys"],fNe=["as","render"],uNe=["as","render"],dNe=["as","render"],hNe=["as","style","render"],pNe=["as","render"],mNe=["as","render"],gNe=["as","render"],vNe=["as","render"],E3=t=>{var{Quote:e={}}=zr(),{isNumber:n,value:i,parentValue:r,keyName:s,keys:a}=t,o=Mt(t,cNe);if(n)return null;var{as:l,render:c}=e,f=Mt(e,fNe),u=l||"span",h=X({},o,f),m={value:i,parentValue:r,keyName:s,keys:a||(s?[s]:[])},g=c&&typeof c=="function"&&c(h,m);return g||b.jsx(u,X({},h))};E3.displayName="JVR.Quote";var qg=t=>{var{ValueQuote:e={}}=zr(),n=X({},(lNe(t),t)),{as:i,render:r}=e,s=Mt(e,uNe),a=i||"span",o=X({},n,s),l=r&&typeof r=="function"&&r(o,{});return l||b.jsx(a,X({},o))};qg.displayName="JVR.ValueQuote";var Lz=t=>{var{value:e,parentValue:n,keyName:i,keys:r}=t,{Colon:s={}}=zr(),{as:a,render:o}=s,l=Mt(s,dNe),c=a||"span",f=o&&typeof o=="function"&&o(l,{value:e,parentValue:n,keyName:i,keys:r||(i?[i]:[])});return f||b.jsx(c,X({},l))};Lz.displayName="JVR.Colon";var jz=t=>{var{Arrow:e={}}=zr(),n=bO(),{expandKey:i,style:r,value:s,parentValue:a,keyName:o,keys:l}=t,c=!!n[i],{as:f,style:u,render:h}=e,m=Mt(e,hNe),g=f||"span",v=h&&typeof h=="function",w=X({},m,{"data-expanded":c,style:X({},u,r)}),O={value:s,parentValue:a,keyName:o,keys:l||(o?[o]:[])},x=v&&h(w,O);return x||b.jsx(g,X({},m,{style:X({},u,r)}))};jz.displayName="JVR.Arrow";var Iz=t=>{var{isBrackets:e,value:n,parentValue:i,keyName:r,keys:s}=t,{BracketsLeft:a={},BraceLeft:o={}}=zr(),l={value:n,parentValue:i,keyName:r,keys:s||(r?[r]:[])};if(e){var{as:c,render:f}=a,u=Mt(a,pNe),h=c||"span",m=f&&typeof f=="function"&&f(u,l);return m||b.jsx(h,X({},u))}var{as:g,render:v}=o,w=Mt(o,mNe),O=g||"span",x=v&&typeof v=="function"&&v(w,l);return x||b.jsx(O,X({},w))};Iz.displayName="JVR.BracketsOpen";var XP=t=>{var{isBrackets:e,isVisiable:n,value:i,parentValue:r,keyName:s,keys:a}=t,o={value:i,parentValue:r,keyName:s,keys:a||(s?[s]:[])};if(!n)return null;var{BracketsRight:l={},BraceRight:c={}}=zr();if(e){var{as:f,render:u}=l,h=Mt(l,gNe),m=f||"span",g=u&&typeof u=="function"&&u(h,o);return g||b.jsx(m,X({},h))}var{as:v,render:w}=c,O=Mt(c,vNe),x=v||"span",$=w&&typeof w=="function"&&w(O,o);return $||b.jsx(x,X({},O))};XP.displayName="JVR.BracketsClose";var Bz=t=>{var e,{value:n,expandKey:i,level:r,keys:s=[]}=t,a=bO(),o=Array.isArray(n),{collapsed:l,shouldExpandNodeInitially:c}=vu(),f=n instanceof Set,u=typeof l=="boolean"?l:typeof l=="number"?r>l:!1,h=(e=a[i])!=null?e:u,m=Object.keys(n).length;if(a[i]===void 0&&c&&c(h,{value:n,keys:s,level:r})||h||m===0)return null;var g={paddingLeft:4};return b.jsx("div",{style:g,children:b.jsx(XP,{isBrackets:o||f,isVisiable:!0})})};Bz.displayName="JVR.NestedClose";var bNe=["as","render"],yNe=["as","render"],wNe=["as","render"],kNe=["as","render"],ONe=["as","render"],xNe=["as","render"],SNe=["as","render"],_Ne=["as","render"],CNe=["as","render"],$Ne=["as","render"],PNe=["as","render"],TNe=["as","render"],ANe=["as","render"],R3=t=>{if(t===void 0)return"0n";if(typeof t=="string")try{t=BigInt(t)}catch{return"0n"}return t?t.toString()+"n":"0n"},Fz=t=>{var{value:e,keyName:n}=t,{Set:i={},displayDataTypes:r}=yn(),s=e instanceof Set;if(!s||!r)return null;var{as:a,render:o}=i,l=Mt(i,bNe),c=o&&typeof o=="function",f=c&&o(l,{type:"type",value:e,keyName:n});if(f)return f;var u=a||"span";return b.jsx(u,X({},l))};Fz.displayName="JVR.SetComp";var Qz=t=>{var{value:e,keyName:n}=t,{Map:i={},displayDataTypes:r}=yn(),s=e instanceof Map;if(!s||!r)return null;var{as:a,render:o}=i,l=Mt(i,yNe),c=o&&typeof o=="function",f=c&&o(l,{type:"type",value:e,keyName:n});if(f)return f;var u=a||"span";return b.jsx(u,X({},l))};Qz.displayName="JVR.MapComp";var La={opacity:.75,paddingRight:4},zz=t=>{var{children:e="",keyName:n}=t,{Str:i={},displayDataTypes:r}=yn(),{shortenTextAfterLength:s=30,stringEllipsis:a="..."}=vu(),{as:o,render:l}=i,c=Mt(i,wNe),f=e,[u,h]=k.useState(s&&f.length>s);k.useEffect(()=>h(s&&f.length>s),[s]);var m=o||"span",g=X({},La,i.style||{});s>0&&(c.style=X({},c.style,{cursor:f.length<=s?"initial":"pointer"}),f.length>s&&(c.onClick=()=>{h(!u)}));var v=u?""+f.slice(0,s)+a:f,w=l&&typeof l=="function",O=w&&l(X({},c,{style:g}),{type:"type",value:e,keyName:n}),x=u?"w-rjv-value w-rjv-value-short":"w-rjv-value",$=w&&l(X({},c,{children:v,className:x}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(O||b.jsx(m,X({},c,{style:g}))),$||b.jsxs(k.Fragment,{children:[b.jsx(qg,{}),b.jsx(m,X({},c,{className:x,children:v})),b.jsx(qg,{})]})]})};zz.displayName="JVR.TypeString";var qz=t=>{var{children:e,keyName:n}=t,{True:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,kNe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h||b.jsx(l,X({},o,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};qz.displayName="JVR.TypeTrue";var Wz=t=>{var{children:e,keyName:n}=t,{False:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,ONe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h||b.jsx(l,X({},o,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Wz.displayName="JVR.TypeFalse";var Uz=t=>{var{children:e,keyName:n}=t,{Float:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,xNe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h||b.jsx(l,X({},o,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Uz.displayName="JVR.TypeFloat";var Vz=t=>{var{children:e,keyName:n}=t,{Int:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,SNe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h||b.jsx(l,X({},o,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Vz.displayName="JVR.TypeInt";var Hz=t=>{var{children:e,keyName:n}=t,{Bigint:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,_Ne),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h||b.jsx(l,X({},o,{className:"w-rjv-value",children:R3(e==null?void 0:e.toString())}))]})};Hz.displayName="JVR.TypeFloat";var Zz=t=>{var{children:e,keyName:n}=t,{Url:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,CNe),l=s||"span",c=X({},La,i.style),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h||b.jsxs("a",X({href:e==null?void 0:e.href,target:"_blank"},o,{className:"w-rjv-value",children:[b.jsx(qg,{}),e==null?void 0:e.href,b.jsx(qg,{})]}))]})};Zz.displayName="JVR.TypeUrl";var Gz=t=>{var{children:e,keyName:n}=t,{Date:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,$Ne),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=e instanceof Date?e.toLocaleString():e,m=f&&a(X({},o,{children:h,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),m||b.jsx(l,X({},o,{className:"w-rjv-value",children:h}))]})};Gz.displayName="JVR.TypeDate";var Xz=t=>{var{children:e,keyName:n}=t,{Undefined:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,PNe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h]})};Xz.displayName="JVR.TypeUndefined";var Yz=t=>{var{children:e,keyName:n}=t,{Null:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,TNe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h]})};Yz.displayName="JVR.TypeNull";var Kz=t=>{var{children:e,keyName:n}=t,{Nan:i={},displayDataTypes:r}=yn(),{as:s,render:a}=i,o=Mt(i,ANe),l=s||"span",c=X({},La,i.style||{}),f=a&&typeof a=="function",u=f&&a(X({},o,{style:c}),{type:"type",value:e,keyName:n}),h=f&&a(X({},o,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:n});return b.jsxs(k.Fragment,{children:[r&&(u||b.jsx(l,X({},o,{style:c}))),h]})};Kz.displayName="JVR.TypeNan";var ENe=t=>Number(t)===t&&t%1!==0||isNaN(t),Jz=t=>{var{value:e,keyName:n}=t,i={keyName:n};return e instanceof URL?b.jsx(Zz,X({},i,{children:e})):typeof e=="string"?b.jsx(zz,X({},i,{children:e})):e===!0?b.jsx(qz,X({},i,{children:e})):e===!1?b.jsx(Wz,X({},i,{children:e})):e===null?b.jsx(Yz,X({},i,{children:e})):e===void 0?b.jsx(Xz,X({},i,{children:e})):e instanceof Date?b.jsx(Gz,X({},i,{children:e})):typeof e=="number"&&isNaN(e)?b.jsx(Kz,X({},i,{children:e})):typeof e=="number"&&ENe(e)?b.jsx(Uz,X({},i,{children:e})):typeof e=="bigint"?b.jsx(Hz,X({},i,{children:e})):typeof e=="number"?b.jsx(Vz,X({},i,{children:e})):null};Jz.displayName="JVR.Value";function jc(t,e,n){var i=iNe(),r=[t.className,e.className].filter(Boolean).join(" "),s=X({},t,e,{className:r,style:X({},t.style,e.style),children:e.children||t.children});k.useEffect(()=>i({[n]:s}),[e])}function ks(t,e,n){var i=J8e(),r=[t.className,e.className].filter(Boolean).join(" "),s=X({},t,e,{className:r,style:X({},t.style,e.style),children:e.children||t.children});k.useEffect(()=>i({[n]:s}),[e])}function $p(t,e,n){var i=aNe(),r=[t.className,e.className].filter(Boolean).join(" "),s=X({},t,e,{className:r,style:X({},t.style,e.style),children:e.children||t.children});k.useEffect(()=>i({[n]:s}),[e])}var RNe=["as","render"],eq=t=>{var{KeyName:e={}}=ea();return $p(e,t,"KeyName"),null};eq.displayName="JVR.KeyName";var tq=t=>{var{children:e,value:n,parentValue:i,keyName:r,keys:s}=t,a=typeof e=="number",o={color:a?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:l={}}=ea(),{as:c,render:f}=l,u=Mt(l,RNe);u.style=X({},u.style,o);var h=c||"span",m=f&&typeof f=="function"&&f(X({},u,{children:e}),{value:n,parentValue:i,keyName:r,keys:s||(r?[r]:[])});return m||b.jsx(h,X({},u,{children:e}))};tq.displayName="JVR.KeyNameComp";var DNe=["children","value","parentValue","keyName","keys"],MNe=["as","render","children"],nq=t=>{var{Row:e={}}=ea();return $p(e,t,"Row"),null};nq.displayName="JVR.Row";var iq=t=>{var{children:e,value:n,parentValue:i,keyName:r,keys:s}=t,a=Mt(t,DNe),{Row:o={}}=ea(),{as:l,render:c}=o,f=Mt(o,MNe),u=l||"div",h=c&&typeof c=="function"&&c(X({},a,f,{children:e}),{value:n,keyName:r,parentValue:i,keys:s});return h||b.jsx(u,X({},a,f,{children:e}))};iq.displayName="JVR.RowComp";function NNe(t){var e=k.useRef();return k.useEffect(()=>{e.current=t}),e.current}function LNe(t){var{value:e,highlightUpdates:n,highlightContainer:i}=t,r=NNe(e),s=k.useMemo(()=>{if(!n||r===void 0)return!1;if(typeof e!=typeof r)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(r)?!1:e!==r;if(Array.isArray(e)!==Array.isArray(r))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==r)return!0},[n,e]);k.useEffect(()=>{i&&i.current&&s&&"animate"in i.current&&i.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[s,e,i])}var jNe=["keyName","value","parentValue","expandKey","keys"],INe=["as","render"],YP=t=>{var{keyName:e,value:n,parentValue:i,expandKey:r,keys:s}=t,a=Mt(t,jNe),{onCopied:o,enableClipboard:l}=vu(),c=V8e(),f=c[r],[u,h]=k.useState(!1),{Copied:m={}}=ea();if(l===!1||!f)return null;var g=S=>{S.stopPropagation();var R="";typeof n=="number"&&n===1/0?R="Infinity":typeof n=="number"&&isNaN(n)?R="NaN":typeof n=="bigint"?R=R3(n):n instanceof Date?R=n.toLocaleString():R=JSON.stringify(n,(P,A)=>typeof A=="bigint"?R3(A):A,2),o&&o(R,n),h(!0);var _=navigator.clipboard||{writeText(P){return new Promise((A,N)=>{var M=document.createElement("textarea");M.style.position="absolute",M.style.opacity="0",M.style.left="-99999999px",M.value=P,document.body.appendChild(M),M.select(),document.execCommand("copy")?A():N(),M.remove()})}};_.writeText(R).then(()=>{var P=setTimeout(()=>{h(!1),clearTimeout(P)},3e3)}).catch(P=>{})},v={style:{display:"inline-flex"},fill:u?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:g},{render:w}=m,O=Mt(m,INe),x=X({},O,a,v,{style:X({},O.style,a.style,v.style)}),$=w&&typeof w=="function",T=$&&w(X({},x,{"data-copied":u}),{value:n,keyName:e,keys:s,parentValue:i});return T||(u?b.jsx("svg",X({viewBox:"0 0 32 36"},x,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):b.jsx("svg",X({viewBox:"0 0 32 36"},x,{children:b.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};YP.displayName="JVR.Copied";function rq(){var t=k.useRef(null);return t.current===null&&(t.current="custom-id-"+Math.random().toString(36).substr(2,9)),t.current}var sq=t=>{var e,{value:n,expandKey:i="",level:r,keys:s=[]}=t,a=bO(),{objectSortKeys:o,indentWidth:l,collapsed:c,shouldExpandNodeInitially:f}=vu(),u=Array.isArray(n),h=typeof c=="boolean"?c:typeof c=="number"?r>c:!1,m=(e=a[i])!=null?e:h;if(a[i]===void 0&&f&&f(m,{value:n,keys:s,level:r})||m)return null;var g=u?Object.entries(n).map(w=>[Number(w[0]),w[1]]):Object.entries(n);o&&(g=o===!0?g.sort((w,O)=>{var[x]=w,[$]=O;return typeof x=="string"&&typeof $=="string"?x.localeCompare($):0}):g.sort((w,O)=>{var[x,$]=w,[T,S]=O;return typeof x=="string"&&typeof T=="string"?o(x,T,$,S):0}));var v={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:l,marginLeft:6};return b.jsx("div",{className:"w-rjv-wrap",style:v,children:g.map((w,O)=>{var[x,$]=w;return b.jsx(aq,{parentValue:n,keyName:x,keys:[...s,x],value:$,level:r},O)})})};sq.displayName="JVR.KeyValues";var KP=t=>{var{keyName:e,parentValue:n,keys:i,value:r}=t,{highlightUpdates:s}=vu(),a=typeof e=="number",o=k.useRef(null);LNe({value:r,highlightUpdates:s,highlightContainer:o});var l={keyName:e,value:r,keys:i,parentValue:n};return b.jsxs(k.Fragment,{children:[b.jsxs("span",{ref:o,children:[b.jsx(E3,X({isNumber:a,"data-placement":"left"},l)),b.jsx(tq,X({},l,{children:e})),b.jsx(E3,X({isNumber:a,"data-placement":"right"},l))]}),b.jsx(Lz,X({},l))]})};KP.displayName="JVR.KayName";var aq=t=>{var{keyName:e,value:n,parentValue:i,level:r=0,keys:s=[]}=t,a=bz(),o=rq(),l=Array.isArray(n),c=n instanceof Set,f=n instanceof Map,u=n instanceof Date,h=n instanceof URL,m=n&&typeof n=="object"&&!l&&!c&&!f&&!u&&!h,g=m||l||c||f;if(g){var v=c?Array.from(n):f?Object.fromEntries(n):n;return b.jsx(JP,{keyName:e,value:v,parentValue:i,initialValue:n,keys:s,level:r+1})}var w={onMouseEnter:()=>a({[o]:!0}),onMouseLeave:()=>a({[o]:!1})};return b.jsxs(iq,X({className:"w-rjv-line",value:n,keyName:e,keys:s,parentValue:i},w,{children:[b.jsx(KP,{keyName:e,value:n,keys:s,parentValue:i}),b.jsx(Jz,{keyName:e,value:n}),b.jsx(YP,{keyName:e,value:n,keys:s,parentValue:i,expandKey:o})]}))};aq.displayName="JVR.KeyValuesItem";var BNe=["value","keyName"],FNe=["as","render"],oq=t=>{var{CountInfoExtra:e={}}=ea();return $p(e,t,"CountInfoExtra"),null};oq.displayName="JVR.CountInfoExtra";var lq=t=>{var{value:e={},keyName:n}=t,i=Mt(t,BNe),{CountInfoExtra:r={}}=ea(),{as:s,render:a}=r,o=Mt(r,FNe);if(!a&&!o.children)return null;var l=s||"span",c=a&&typeof a=="function",f=X({},o,i),u=c&&a(f,{value:e,keyName:n});return u||b.jsx(l,X({},f))};lq.displayName="JVR.CountInfoExtraComps";var QNe=["value","keyName"],zNe=["as","render"],cq=t=>{var{CountInfo:e={}}=ea();return $p(e,t,"CountInfo"),null};cq.displayName="JVR.CountInfo";var fq=t=>{var{value:e={},keyName:n}=t,i=Mt(t,QNe),{displayObjectSize:r}=vu(),{CountInfo:s={}}=ea();if(!r)return null;var{as:a,render:o}=s,l=Mt(s,zNe),c=a||"span";l.style=X({},l.style,t.style);var f=Object.keys(e).length;l.children||(l.children=f+" item"+(f===1?"":"s"));var u=X({},l,i),h=o&&typeof o=="function",m=h&&o(X({},u,{"data-length":f}),{value:e,keyName:n});return m||b.jsx(c,X({},u))};fq.displayName="JVR.CountInfoComp";var qNe=["as","render"],uq=t=>{var{Ellipsis:e={}}=ea();return $p(e,t,"Ellipsis"),null};uq.displayName="JVR.Ellipsis";var dq=t=>{var{isExpanded:e,value:n,keyName:i}=t,{Ellipsis:r={}}=ea(),{as:s,render:a}=r,o=Mt(r,qNe),l=s||"span",c=a&&typeof a=="function"&&a(X({},o,{"data-expanded":e}),{value:n,keyName:i});return c||(!e||typeof n=="object"&&Object.keys(n).length==0?null:b.jsx(l,X({},o)))};dq.displayName="JVR.EllipsisComp";var hq=t=>{var e,{keyName:n,expandKey:i,keys:r=[],initialValue:s,value:a,parentValue:o,level:l}=t,c=bO(),f=X8e(),{onExpand:u,collapsed:h,shouldExpandNodeInitially:m}=vu(),g=Array.isArray(a),v=a instanceof Set,w=typeof h=="boolean"?h:typeof h=="number"?l>h:!1,O=typeof a=="object",x=(e=c[i])!=null?e:w,$=m&&m(x,{value:a,keys:r,level:l});c[i]===void 0&&$!==void 0&&(x=$);var T=()=>{var M={expand:!x,value:a,keyid:i,keyName:n};u&&u(M),f({[i]:M.expand})},S={display:"inline-flex",alignItems:"center"},R={transform:"rotate("+(x?"-90":"0")+"deg)",transition:"all 0.3s"},_=Object.keys(a).length,P=_!==0&&(g||v||O),A={style:S};P&&(A.onClick=T);var N={keyName:n,value:a,keys:r,parentValue:o};return b.jsxs("span",X({},A,{children:[P&&b.jsx(jz,X({style:R,expandKey:i},N)),(n||typeof n=="number")&&b.jsx(KP,X({},N)),b.jsx(Fz,{value:s,keyName:n}),b.jsx(Qz,{value:s,keyName:n}),b.jsx(Iz,X({isBrackets:g||v},N)),b.jsx(dq,{keyName:n,value:a,isExpanded:x}),b.jsx(XP,X({isVisiable:x||!P,isBrackets:g||v},N)),b.jsx(fq,{value:a,keyName:n}),b.jsx(lq,{value:a,keyName:n}),b.jsx(YP,{keyName:n,value:a,expandKey:i,parentValue:o,keys:r})]}))};hq.displayName="JVR.NestedOpen";var WNe=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],JP=k.forwardRef((t,e)=>{var{className:n="",parentValue:i,level:r=1,value:s,initialValue:a,keys:o,keyName:l}=t,c=Mt(t,WNe),f=bz(),u=rq(),h=[n,"w-rjv-inner"].filter(Boolean).join(" "),m={onMouseEnter:()=>f({[u]:!0}),onMouseLeave:()=>f({[u]:!1})};return b.jsxs("div",X({className:h,ref:e},c,m,{children:[b.jsx(hq,{expandKey:u,value:s,level:r,keys:o,parentValue:i,keyName:l,initialValue:a}),b.jsx(sq,{expandKey:u,value:s,level:r,keys:o,parentValue:i,keyName:l}),b.jsx(Bz,{expandKey:u,value:s,level:r,keys:o})]}))});JP.displayName="JVR.Container";var pq=t=>{var{BraceLeft:e={}}=zr();return jc(e,t,"BraceLeft"),null};pq.displayName="JVR.BraceLeft";var mq=t=>{var{BraceRight:e={}}=zr();return jc(e,t,"BraceRight"),null};mq.displayName="JVR.BraceRight";var gq=t=>{var{BracketsLeft:e={}}=zr();return jc(e,t,"BracketsLeft"),null};gq.displayName="JVR.BracketsLeft";var vq=t=>{var{BracketsRight:e={}}=zr();return jc(e,t,"BracketsRight"),null};vq.displayName="JVR.BracketsRight";var bq=t=>{var{Arrow:e={}}=zr();return jc(e,t,"Arrow"),null};bq.displayName="JVR.Arrow";var yq=t=>{var{Colon:e={}}=zr();return jc(e,t,"Colon"),null};yq.displayName="JVR.Colon";var wq=t=>{var{Quote:e={}}=zr();return jc(e,t,"Quote"),null};wq.displayName="JVR.Quote";var kq=t=>{var{ValueQuote:e={}}=zr();return jc(e,t,"ValueQuote"),null};kq.displayName="JVR.ValueQuote";var Oq=t=>{var{Bigint:e={}}=yn();return ks(e,t,"Bigint"),null};Oq.displayName="JVR.Bigint";var xq=t=>{var{Date:e={}}=yn();return ks(e,t,"Date"),null};xq.displayName="JVR.Date";var Sq=t=>{var{False:e={}}=yn();return ks(e,t,"False"),null};Sq.displayName="JVR.False";var _q=t=>{var{Float:e={}}=yn();return ks(e,t,"Float"),null};_q.displayName="JVR.Float";var Cq=t=>{var{Int:e={}}=yn();return ks(e,t,"Int"),null};Cq.displayName="JVR.Int";var $q=t=>{var{Map:e={}}=yn();return ks(e,t,"Map"),null};$q.displayName="JVR.Map";var Pq=t=>{var{Nan:e={}}=yn();return ks(e,t,"Nan"),null};Pq.displayName="JVR.Nan";var Tq=t=>{var{Null:e={}}=yn();return ks(e,t,"Null"),null};Tq.displayName="JVR.Null";var Aq=t=>{var{Set:e={}}=yn();return ks(e,t,"Set"),null};Aq.displayName="JVR.Set";var Eq=t=>{var{Str:e={}}=yn();return ks(e,t,"Str"),null};Eq.displayName="JVR.StringText";var Rq=t=>{var{True:e={}}=yn();return ks(e,t,"True"),null};Rq.displayName="JVR.True";var Dq=t=>{var{Undefined:e={}}=yn();return ks(e,t,"Undefined"),null};Dq.displayName="JVR.Undefined";var Mq=t=>{var{Url:e={}}=yn();return ks(e,t,"Url"),null};Mq.displayName="JVR.Url";var Nq=t=>{var{Copied:e={}}=ea();return $p(e,t,"Copied"),null};Nq.displayName="JVR.Copied";var UNe=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","stringEllipsis","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Jt=k.forwardRef((t,e)=>{var{className:n="",style:i,value:r,children:s,collapsed:a,shouldExpandNodeInitially:o,indentWidth:l=15,displayObjectSize:c=!0,shortenTextAfterLength:f=30,stringEllipsis:u,highlightUpdates:h=!0,enableClipboard:m=!0,displayDataTypes:g=!0,objectSortKeys:v=!1,onExpand:w,onCopied:O}=t,x=Mt(t,UNe),$=X({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},i),T=["w-json-view-container","w-rjv",n].filter(Boolean).join(" ");return b.jsxs(Nz,{initialState:{value:r,objectSortKeys:v,indentWidth:l,shouldExpandNodeInitially:o,displayObjectSize:c,collapsed:a,enableClipboard:m,shortenTextAfterLength:f,stringEllipsis:u,highlightUpdates:h,onCopied:O,onExpand:w},initialTypes:{displayDataTypes:g},children:[b.jsx(JP,X({value:r},x,{ref:e,className:T,style:$})),s]})});Jt.Bigint=Oq;Jt.Date=xq;Jt.False=Sq;Jt.Float=_q;Jt.Int=Cq;Jt.Map=$q;Jt.Nan=Pq;Jt.Null=Tq;Jt.Set=Aq;Jt.String=Eq;Jt.True=Rq;Jt.Undefined=Dq;Jt.Url=Mq;Jt.ValueQuote=kq;Jt.Arrow=bq;Jt.Colon=yq;Jt.Quote=wq;Jt.Ellipsis=uq;Jt.BraceLeft=pq;Jt.BraceRight=mq;Jt.BracketsLeft=gq;Jt.BracketsRight=vq;Jt.Copied=Nq;Jt.CountInfo=cq;Jt.CountInfoExtra=oq;Jt.KeyName=eq;Jt.Row=nq;Jt.displayName="JVR.JsonView";var VNe={"--w-rjv-font-family":"monospace","--w-rjv-color":"#88c0d0","--w-rjv-key-string":"#88c0d0","--w-rjv-background-color":"#2e3440","--w-rjv-line-color":"#4c566a","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#c7c7c74d","--w-rjv-update-color":"#88c0cf75","--w-rjv-copied-color":"#119cc0","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8fbcbb","--w-rjv-colon-color":"#6d9fac","--w-rjv-brackets-color":"#8fbcbb","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a3be8c","--w-rjv-type-int-color":"#b48ead","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#b48ead","--w-rjv-type-boolean-color":"#d08770","--w-rjv-type-date-color":"#41a2c2","--w-rjv-type-url-color":"#5e81ac","--w-rjv-type-null-color":"#5e81ac","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const HNe=()=>{const[t,e]=k.useState({}),[n,i]=k.useState(!1);function r(){i(!1)}function s(){ye.getStorageData("debug-data").then(a=>{const o=Md.merge({},a);e(o),i(!0)}).catch(fl.error)}return b.jsxs("li",{children:[b.jsxs("button",{className:"collection-item",onClick:s,children:[b.jsx(qL,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 "}),"Debug Data"]}),b.jsxs(Ut,{fullScreen:!0,open:n,setOpen:i,children:[b.jsx(Ut.Header,{children:"Debug Data"}),b.jsx(Ut.Main,{children:b.jsx(Jt,{collapsed:1,displayDataTypes:!1,enableClipboard:!1,style:VNe,value:t,children:b.jsx(Jt.Quote,{render:()=>b.jsx("span",{})})})}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{onClick:r,size:"lg",children:"Done"}),b.jsx(_t,{onClick:r,size:"lg",variant:"secondary",children:"Cancel"})]})]})]})},ZNe=()=>{const[t,e]=k.useState(!1),n=H$("feedback"),i=a=>{a.preventDefault();const o=new FormData(a.target),l=o.get("feedback-email"),c=o.get("feedback-textarea"),f=`Email: ${l}
|
||
Feedback: ${c}`;n(f),r()};function r(){e(!1)}function s(){e(!0)}return b.jsxs("li",{children:[b.jsxs("button",{className:"collection-item",onClick:s,children:[b.jsx(Jre,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 "}),j("sidebar_feedback")]}),b.jsx(Ut,{onClose:r,open:t,setOpen:e,children:b.jsxs("form",{onSubmit:i,children:[b.jsx(Ut.Header,{children:j("sidebar_feedback")}),b.jsxs(Ut.Main,{children:[b.jsxs("label",{className:"label",htmlFor:"feedback-email",children:[j("feedback_email")," ",b.jsx("span",{className:"text-xs text-gray-500",children:j("feedback_email_optional")})]}),b.jsx("div",{className:"mb-2 text-xs text-gray-600 dark:text-gray-400",children:j("feedback_email_optional_description")}),b.jsx("input",{className:"input mb-4",id:"feedback-email",name:"feedback-email",type:"email"}),b.jsx("label",{className:"label",htmlFor:"feedback-textarea",children:j("feedback_feedback")}),b.jsx("textarea",{className:"input h-32",id:"feedback-textarea",name:"feedback-textarea",required:!0})]}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{size:"lg",type:"submit",children:j("feedback_primary_action")}),b.jsx(_t,{onClick:r,size:"lg",type:"button",variant:"secondary",children:j("feedback_secondary_action")})]})]})})]})},GNe=()=>{const{reset:t}=sj();return b.jsx("li",{children:b.jsxs("button",{className:"collection-item",onClick:t,children:[b.jsx($re,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 "}),j("sidebar_reset")]})})},XNe=()=>{function t(){const e=yL.isFirefox?Ad.firefoxWebstore:Ad.chromeWebstore;window.open(e,"_blank")}return b.jsx("li",{children:b.jsxs("button",{className:"collection-item group",onClick:t,children:[b.jsx(ose,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 "}),j("sidebar_review"),b.jsx(QL,{"aria-hidden":"true",className:"h-0 w-0 shrink-0 transition-all duration-150 group-hover:h-4 group-hover:w-4"})]})})},YNe=()=>b.jsx("li",{className:"pt-8",children:b.jsxs(FL,{className:"collection-item",to:"settings",children:[b.jsx(Fre,{"aria-hidden":"true",className:"h-4 w-4 shrink-0 "}),j("sidebar_settings")]})}),KNe=[{Component:YNe,id:"settings",shouldRender:!0},{Component:ZNe,id:"feedback",shouldRender:!Lm},{Component:XNe,id:"review",shouldRender:!Lm},{Component:GNe,id:"reset",shouldRender:Lm},{Component:HNe,id:"json",shouldRender:Lm}],JNe=()=>b.jsxs("footer",{children:[b.jsx("h2",{className:"sr-only",id:"settings-heading",children:"User Settings"}),b.jsx("ul",{"aria-labelledby":"settings-heading",children:KNe.filter(({shouldRender:t})=>t).map(({Component:t,id:e})=>b.jsx(t,{},e))})]}),eLe=t=>{const e=ah(),{dispatch:n,state:i}=Ir();return async function(r){r.preventDefault();const a=new FormData(r.currentTarget).get("name"),o=xl(),f={data:(await Si.handleUpload(t)).map(oi.createStorageSvg),host:"",href:"",origin:""},h=[{href:"",id:o,name:a,origin:""},...i.collections];await ye.setPageData(o,f),await ye.setStorageData("collections",h),n({payload:h,type:"set-collections"}),e(`/dashboard/collection/${o}`),globalThis.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape"}))}},tLe=({open:t,setOpen:e})=>{const[n,i]=k.useState([]),r=eLe(n),{getInputProps:s,getRootProps:a,isDragActive:o}=g1({accept:{"image/svg+xml":[".svg"]},maxSize:10*1024*1024,multiple:!0,onDropAccepted:c=>{i(f=>[...f,...c])}});function l(){e(!1),setTimeout(()=>i([]),300)}return b.jsxs(Ut,{onClose:l,open:t,setOpen:e,children:[b.jsx(Ut.Header,{children:j("sidebar_create_new")}),b.jsxs("form",{onSubmit:r,children:[b.jsxs(Ut.Main,{children:[b.jsx("label",{className:"label",htmlFor:"name",children:j("sidebar_name")}),b.jsx("input",{className:"input",id:"name",name:"name",required:!0,type:"text"}),b.jsxs("div",{...a(),className:Tt("relative mt-4 min-h-[220px] rounded-lg border-2 border-dashed border-gray-500/25","focus cursor-pointer transition-colors hover:bg-gray-50 dark:hover:bg-gray-900/50",o&&"ring-2 ring-red-600/50 dark:ring-red-500/50"),children:[b.jsxs(Wt,{as:"div",className:"absolute inset-0 flex flex-col items-center justify-center",enter:"transition-all duration-300 ease-in-out",enterFrom:"opacity-0 scale-90",enterTo:"opacity-100 scale-100",leave:"transition-all duration-300 ease-in-out",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-70",show:n.length===0,unmount:!1,children:[b.jsx(Q$,{"aria-hidden":"true",className:"text-muted mx-auto mb-3 h-12 w-12"}),b.jsxs("div",{className:"text flex text-sm leading-6",children:[b.jsx("span",{className:"font-semibold text-red-600 dark:text-red-500",children:j("sidebar_upload_files")}),b.jsx("input",{className:"sr-only",...s()}),b.jsx("p",{className:"pl-1",children:j("sidebar_drag_files")})]}),b.jsx("p",{className:"text-xs leading-5",children:j("sidebar_file_limit")})]}),b.jsxs(Wt,{as:"div",className:"absolute inset-0 flex flex-col items-center justify-center",enter:"transition-all duration-300 ease-in-out delay-150",enterFrom:"opacity-0 scale-90",enterTo:"opacity-100 scale-100",leave:"transition-all duration-300 ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:n.length>0,children:[b.jsx(WL,{"aria-hidden":"true",className:"text-muted mx-auto mb-3 h-12 w-12"}),b.jsxs("span",{className:"text text-sm font-medium leading-5",children:[n.length," ",j("sidebar_item"),n.length>1&&"s"," ",j("sidebar_uploaded")]})]})]})]}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{size:"lg",type:"submit",children:j("sidebar_create_collection")}),b.jsx(_t,{onClick:l,size:"lg",type:"button",variant:"secondary",children:j("sidebar_cancel")})]})]})]})},nLe=()=>{const[t,e]=k.useState(!1);return b.jsxs("div",{"aria-labelledby":"collections-heading",children:[b.jsxs("button",{className:"collection-item w-full",onClick:()=>e(!0),children:[b.jsx(Xw,{"aria-hidden":"true",className:"h-4 w-4"}),j("sidebar_new_collection")]}),b.jsx(tLe,{open:t,setOpen:e}),b.jsx("hr",{className:"mb-5 mt-2 border-gray-200 dark:border-gray-800"})]})};function iLe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return k.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const yO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Pp(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function e5(t){return"nodeType"in t}function qr(t){var e,n;return t?Pp(t)?t:e5(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function t5(t){const{Document:e}=qr(t);return t instanceof e}function g0(t){return Pp(t)?!1:t instanceof qr(t).HTMLElement}function Lq(t){return t instanceof qr(t).SVGElement}function Tp(t){return t?Pp(t)?t.document:e5(t)?t5(t)?t:g0(t)||Lq(t)?t.ownerDocument:document:document:document}const Po=yO?k.useLayoutEffect:k.useEffect;function n5(t){const e=k.useRef(t);return Po(()=>{e.current=t}),k.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function rLe(){const t=k.useRef(null),e=k.useCallback((i,r)=>{t.current=setInterval(i,r)},[]),n=k.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function Wg(t,e){e===void 0&&(e=[t]);const n=k.useRef(t);return Po(()=>{n.current!==t&&(n.current=t)},e),n}function v0(t,e){const n=k.useRef();return k.useMemo(()=>{const i=t(n.current);return n.current=i,i},[...e])}function ew(t){const e=n5(t),n=k.useRef(null),i=k.useCallback(r=>{r!==n.current&&(e==null||e(r,n.current)),n.current=r},[]);return[n,i]}function D3(t){const e=k.useRef();return k.useEffect(()=>{e.current=t},[t]),e.current}let pS={};function b0(t,e){return k.useMemo(()=>{if(e)return e;const n=pS[t]==null?0:pS[t]+1;return pS[t]=n,t+"-"+n},[t,e])}function jq(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.reduce((s,a)=>{const o=Object.entries(a);for(const[l,c]of o){const f=s[l];f!=null&&(s[l]=f+t*c)}return s},{...e})}}const wd=jq(1),tw=jq(-1);function sLe(t){return"clientX"in t&&"clientY"in t}function i5(t){if(!t)return!1;const{KeyboardEvent:e}=qr(t.target);return e&&t instanceof e}function aLe(t){if(!t)return!1;const{TouchEvent:e}=qr(t.target);return e&&t instanceof e}function M3(t){if(aLe(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return sLe(t)?{x:t.clientX,y:t.clientY}:null}const Ug=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[Ug.Translate.toString(t),Ug.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:i}=t;return e+" "+n+"ms "+i}}}),fM="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function oLe(t){return t.matches(fM)?t:t.querySelector(fM)}const lLe={display:"none"};function cLe(t){let{id:e,value:n}=t;return tt.createElement("div",{id:e,style:lLe},n)}function fLe(t){let{id:e,announcement:n,ariaLiveType:i="assertive"}=t;const r={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 tt.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},n)}function uLe(){const[t,e]=k.useState("");return{announce:k.useCallback(i=>{i!=null&&e(i)},[]),announcement:t}}const Iq=k.createContext(null);function dLe(t){const e=k.useContext(Iq);k.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function hLe(){const[t]=k.useState(()=>new Set),e=k.useCallback(i=>(t.add(i),()=>t.delete(i)),[t]);return[k.useCallback(i=>{let{type:r,event:s}=i;t.forEach(a=>{var o;return(o=a[r])==null?void 0:o.call(a,s)})},[t]),e]}const pLe={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.
|
||
`},mLe={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function gLe(t){let{announcements:e=mLe,container:n,hiddenTextDescribedById:i,screenReaderInstructions:r=pLe}=t;const{announce:s,announcement:a}=uLe(),o=b0("DndLiveRegion"),[l,c]=k.useState(!1);if(k.useEffect(()=>{c(!0)},[]),dLe(k.useMemo(()=>({onDragStart(u){let{active:h}=u;s(e.onDragStart({active:h}))},onDragMove(u){let{active:h,over:m}=u;e.onDragMove&&s(e.onDragMove({active:h,over:m}))},onDragOver(u){let{active:h,over:m}=u;s(e.onDragOver({active:h,over:m}))},onDragEnd(u){let{active:h,over:m}=u;s(e.onDragEnd({active:h,over:m}))},onDragCancel(u){let{active:h,over:m}=u;s(e.onDragCancel({active:h,over:m}))}}),[s,e])),!l)return null;const f=tt.createElement(tt.Fragment,null,tt.createElement(cLe,{id:i,value:r.draggable}),tt.createElement(fLe,{id:o,announcement:a}));return n?ll.createPortal(f,n):f}var vi;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(vi||(vi={}));function nw(){}const Ra=Object.freeze({x:0,y:0});function vLe(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function bLe(t,e){let{data:{value:n}}=t,{data:{value:i}}=e;return n-i}function yLe(t,e){let{data:{value:n}}=t,{data:{value:i}}=e;return i-n}function wLe(t,e){if(!t||t.length===0)return null;const[n]=t;return n[e]}function uM(t,e,n){return e===void 0&&(e=t.left),n===void 0&&(n=t.top),{x:e+t.width*.5,y:n+t.height*.5}}const kLe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:i}=t;const r=uM(e,e.left,e.top),s=[];for(const a of i){const{id:o}=a,l=n.get(o);if(l){const c=vLe(uM(l),r);s.push({id:o,data:{droppableContainer:a,value:c}})}}return s.sort(bLe)};function OLe(t,e){const n=Math.max(e.top,t.top),i=Math.max(e.left,t.left),r=Math.min(e.left+e.width,t.left+t.width),s=Math.min(e.top+e.height,t.top+t.height),a=r-i,o=s-n;if(i<r&&n<s){const l=e.width*e.height,c=t.width*t.height,f=a*o,u=f/(l+c-f);return Number(u.toFixed(4))}return 0}const xLe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:i}=t;const r=[];for(const s of i){const{id:a}=s,o=n.get(a);if(o){const l=OLe(o,e);l>0&&r.push({id:a,data:{droppableContainer:s,value:l}})}}return r.sort(yLe)};function SLe(t,e,n){return{...t,scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1}}function Bq(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:Ra}function _Le(t){return function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),s=1;s<i;s++)r[s-1]=arguments[s];return r.reduce((a,o)=>({...a,top:a.top+t*o.y,bottom:a.bottom+t*o.y,left:a.left+t*o.x,right:a.right+t*o.x}),{...n})}}const CLe=_Le(1);function $Le(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function PLe(t,e,n){const i=$Le(e);if(!i)return t;const{scaleX:r,scaleY:s,x:a,y:o}=i,l=t.left-a-(1-r)*parseFloat(n),c=t.top-o-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),f=r?t.width/r:t.width,u=s?t.height/s:t.height;return{width:f,height:u,top:c,right:l+f,bottom:c+u,left:l}}const TLe={ignoreTransform:!1};function Ap(t,e){e===void 0&&(e=TLe);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:c,transformOrigin:f}=qr(t).getComputedStyle(t);c&&(n=PLe(n,c,f))}const{top:i,left:r,width:s,height:a,bottom:o,right:l}=n;return{top:i,left:r,width:s,height:a,bottom:o,right:l}}function dM(t){return Ap(t,{ignoreTransform:!0})}function ALe(t){const e=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}function ELe(t,e){return e===void 0&&(e=qr(t).getComputedStyle(t)),e.position==="fixed"}function RLe(t,e){e===void 0&&(e=qr(t).getComputedStyle(t));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const s=e[r];return typeof s=="string"?n.test(s):!1})}function r5(t,e){const n=[];function i(r){if(e!=null&&n.length>=e||!r)return n;if(t5(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!g0(r)||Lq(r)||n.includes(r))return n;const s=qr(t).getComputedStyle(r);return r!==t&&RLe(r,s)&&n.push(r),ELe(r,s)?n:i(r.parentNode)}return t?i(t):n}function Fq(t){const[e]=r5(t,1);return e??null}function mS(t){return!yO||!t?null:Pp(t)?t:e5(t)?t5(t)||t===Tp(t).scrollingElement?window:g0(t)?t:null:null}function Qq(t){return Pp(t)?t.scrollX:t.scrollLeft}function zq(t){return Pp(t)?t.scrollY:t.scrollTop}function N3(t){return{x:Qq(t),y:zq(t)}}var xi;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(xi||(xi={}));function qq(t){return!yO||!t?!1:t===document.scrollingElement}function Wq(t){const e={x:0,y:0},n=qq(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},i={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},r=t.scrollTop<=e.y,s=t.scrollLeft<=e.x,a=t.scrollTop>=i.y,o=t.scrollLeft>=i.x;return{isTop:r,isLeft:s,isBottom:a,isRight:o,maxScroll:i,minScroll:e}}const DLe={x:.2,y:.2};function MLe(t,e,n,i,r){let{top:s,left:a,right:o,bottom:l}=n;i===void 0&&(i=10),r===void 0&&(r=DLe);const{isTop:c,isBottom:f,isLeft:u,isRight:h}=Wq(t),m={x:0,y:0},g={x:0,y:0},v={height:e.height*r.y,width:e.width*r.x};return!c&&s<=e.top+v.height?(m.y=xi.Backward,g.y=i*Math.abs((e.top+v.height-s)/v.height)):!f&&l>=e.bottom-v.height&&(m.y=xi.Forward,g.y=i*Math.abs((e.bottom-v.height-l)/v.height)),!h&&o>=e.right-v.width?(m.x=xi.Forward,g.x=i*Math.abs((e.right-v.width-o)/v.width)):!u&&a<=e.left+v.width&&(m.x=xi.Backward,g.x=i*Math.abs((e.left+v.width-a)/v.width)),{direction:m,speed:g}}function NLe(t){if(t===document.scrollingElement){const{innerWidth:s,innerHeight:a}=window;return{top:0,left:0,right:s,bottom:a,width:s,height:a}}const{top:e,left:n,right:i,bottom:r}=t.getBoundingClientRect();return{top:e,left:n,right:i,bottom:r,width:t.clientWidth,height:t.clientHeight}}function Uq(t){return t.reduce((e,n)=>wd(e,N3(n)),Ra)}function LLe(t){return t.reduce((e,n)=>e+Qq(n),0)}function jLe(t){return t.reduce((e,n)=>e+zq(n),0)}function ILe(t,e){if(e===void 0&&(e=Ap),!t)return;const{top:n,left:i,bottom:r,right:s}=e(t);Fq(t)&&(r<=0||s<=0||n>=window.innerHeight||i>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const BLe=[["x",["left","right"],LLe],["y",["top","bottom"],jLe]];class s5{constructor(e,n){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 i=r5(n),r=Uq(i);this.rect={...e},this.width=e.width,this.height=e.height;for(const[s,a,o]of BLe)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=o(i),f=r[s]-c;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class vg{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=e}add(e,n,i){var r;(r=this.target)==null||r.addEventListener(e,n,i),this.listeners.push([e,n,i])}}function FLe(t){const{EventTarget:e}=qr(t);return t instanceof e?t:Tp(t)}function gS(t,e){const n=Math.abs(t.x),i=Math.abs(t.y);return typeof e=="number"?Math.sqrt(n**2+i**2)>e:"x"in e&&"y"in e?n>e.x&&i>e.y:"x"in e?n>e.x:"y"in e?i>e.y:!1}var Vs;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(Vs||(Vs={}));function hM(t){t.preventDefault()}function QLe(t){t.stopPropagation()}var Zt;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Zt||(Zt={}));const Vq={start:[Zt.Space,Zt.Enter],cancel:[Zt.Esc],end:[Zt.Space,Zt.Enter,Zt.Tab]},zLe=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case Zt.Right:return{...n,x:n.x+25};case Zt.Left:return{...n,x:n.x-25};case Zt.Down:return{...n,y:n.y+25};case Zt.Up:return{...n,y:n.y-25}}};class Hq{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new vg(Tp(n)),this.windowListeners=new vg(qr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Vs.Resize,this.handleCancel),this.windowListeners.add(Vs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Vs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:n}=this.props,i=e.node.current;i&&ILe(i),n(Ra)}handleKeyDown(e){if(i5(e)){const{active:n,context:i,options:r}=this.props,{keyboardCodes:s=Vq,coordinateGetter:a=zLe,scrollBehavior:o="smooth"}=r,{code:l}=e;if(s.end.includes(l)){this.handleEnd(e);return}if(s.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:c}=i.current,f=c?{x:c.left,y:c.top}:Ra;this.referenceCoordinates||(this.referenceCoordinates=f);const u=a(e,{active:n,context:i.current,currentCoordinates:f});if(u){const h=tw(u,f),m={x:0,y:0},{scrollableAncestors:g}=i.current;for(const v of g){const w=e.code,{isTop:O,isRight:x,isLeft:$,isBottom:T,maxScroll:S,minScroll:R}=Wq(v),_=NLe(v),P={x:Math.min(w===Zt.Right?_.right-_.width/2:_.right,Math.max(w===Zt.Right?_.left:_.left+_.width/2,u.x)),y:Math.min(w===Zt.Down?_.bottom-_.height/2:_.bottom,Math.max(w===Zt.Down?_.top:_.top+_.height/2,u.y))},A=w===Zt.Right&&!x||w===Zt.Left&&!$,N=w===Zt.Down&&!T||w===Zt.Up&&!O;if(A&&P.x!==u.x){const M=v.scrollLeft+h.x,Q=w===Zt.Right&&M<=S.x||w===Zt.Left&&M>=R.x;if(Q&&!h.y){v.scrollTo({left:M,behavior:o});return}Q?m.x=v.scrollLeft-M:m.x=w===Zt.Right?v.scrollLeft-S.x:v.scrollLeft-R.x,m.x&&v.scrollBy({left:-m.x,behavior:o});break}else if(N&&P.y!==u.y){const M=v.scrollTop+h.y,Q=w===Zt.Down&&M<=S.y||w===Zt.Up&&M>=R.y;if(Q&&!h.x){v.scrollTo({top:M,behavior:o});return}Q?m.y=v.scrollTop-M:m.y=w===Zt.Down?v.scrollTop-S.y:v.scrollTop-R.y,m.y&&v.scrollBy({top:-m.y,behavior:o});break}}this.handleMove(e,wd(tw(u,this.referenceCoordinates),m))}}}handleMove(e,n){const{onMove:i}=this.props;e.preventDefault(),i(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Hq.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:i=Vq,onActivation:r}=e,{active:s}=n;const{code:a}=t.nativeEvent;if(i.start.includes(a)){const o=s.activatorNode.current;return o&&t.target!==o?!1:(t.preventDefault(),r==null||r({event:t.nativeEvent}),!0)}return!1}}];function pM(t){return!!(t&&"distance"in t)}function mM(t){return!!(t&&"delay"in t)}class a5{constructor(e,n,i){var r;i===void 0&&(i=FLe(e.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=e,this.events=n;const{event:s}=e,{target:a}=s;this.props=e,this.events=n,this.document=Tp(a),this.documentListeners=new vg(this.document),this.listeners=new vg(i),this.windowListeners=new vg(qr(a)),this.initialCoordinates=(r=M3(s))!=null?r:Ra,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:e,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Vs.Resize,this.handleCancel),this.windowListeners.add(Vs.DragStart,hM),this.windowListeners.add(Vs.VisibilityChange,this.handleCancel),this.windowListeners.add(Vs.ContextMenu,hM),this.documentListeners.add(Vs.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(mM(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(pM(n)){this.handlePending(n);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(e,n){const{active:i,onPending:r}=this.props;r(i,e,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(Vs.Click,QLe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Vs.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:i,initialCoordinates:r,props:s}=this,{onMove:a,options:{activationConstraint:o}}=s;if(!r)return;const l=(n=M3(e))!=null?n:Ra,c=tw(r,l);if(!i&&o){if(pM(o)){if(o.tolerance!=null&&gS(c,o.tolerance))return this.handleCancel();if(gS(c,o.distance))return this.handleStart()}if(mM(o)&&gS(c,o.tolerance))return this.handleCancel();this.handlePending(o,c);return}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){const{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===Zt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const qLe={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Zq extends a5{constructor(e){const{event:n}=e,i=Tp(n.target);super(e,qLe,i)}}Zq.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:i}=e;return!n.isPrimary||n.button!==0?!1:(i==null||i({event:n}),!0)}}];const WLe={move:{name:"mousemove"},end:{name:"mouseup"}};var L3;(function(t){t[t.RightClick=2]="RightClick"})(L3||(L3={}));class ULe extends a5{constructor(e){super(e,WLe,Tp(e.event.target))}}ULe.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:i}=e;return n.button===L3.RightClick?!1:(i==null||i({event:n}),!0)}}];const vS={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class VLe extends a5{constructor(e){super(e,vS)}static setup(){return window.addEventListener(vS.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(vS.move.name,e)};function e(){}}}VLe.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:i}=e;const{touches:r}=n;return r.length>1?!1:(i==null||i({event:n}),!0)}}];var bg;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(bg||(bg={}));var iw;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(iw||(iw={}));function HLe(t){let{acceleration:e,activator:n=bg.Pointer,canScroll:i,draggingRect:r,enabled:s,interval:a=5,order:o=iw.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:f,delta:u,threshold:h}=t;const m=GLe({delta:u,disabled:!s}),[g,v]=rLe(),w=k.useRef({x:0,y:0}),O=k.useRef({x:0,y:0}),x=k.useMemo(()=>{switch(n){case bg.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case bg.DraggableRect:return r}},[n,r,l]),$=k.useRef(null),T=k.useCallback(()=>{const R=$.current;if(!R)return;const _=w.current.x*O.current.x,P=w.current.y*O.current.y;R.scrollBy(_,P)},[]),S=k.useMemo(()=>o===iw.TreeOrder?[...c].reverse():c,[o,c]);k.useEffect(()=>{if(!s||!c.length||!x){v();return}for(const R of S){if((i==null?void 0:i(R))===!1)continue;const _=c.indexOf(R),P=f[_];if(!P)continue;const{direction:A,speed:N}=MLe(R,P,x,e,h);for(const M of["x","y"])m[M][A[M]]||(N[M]=0,A[M]=0);if(N.x>0||N.y>0){v(),$.current=R,g(T,a),w.current=N,O.current=A;return}}w.current={x:0,y:0},O.current={x:0,y:0},v()},[e,T,i,v,s,a,JSON.stringify(x),JSON.stringify(m),g,c,S,f,JSON.stringify(h)])}const ZLe={x:{[xi.Backward]:!1,[xi.Forward]:!1},y:{[xi.Backward]:!1,[xi.Forward]:!1}};function GLe(t){let{delta:e,disabled:n}=t;const i=D3(e);return v0(r=>{if(n||!i||!r)return ZLe;const s={x:Math.sign(e.x-i.x),y:Math.sign(e.y-i.y)};return{x:{[xi.Backward]:r.x[xi.Backward]||s.x===-1,[xi.Forward]:r.x[xi.Forward]||s.x===1},y:{[xi.Backward]:r.y[xi.Backward]||s.y===-1,[xi.Forward]:r.y[xi.Forward]||s.y===1}}},[n,e,i])}function XLe(t,e){const n=e!=null?t.get(e):void 0,i=n?n.node.current:null;return v0(r=>{var s;return e==null?null:(s=i??r)!=null?s:null},[i,e])}function YLe(t,e){return k.useMemo(()=>t.reduce((n,i)=>{const{sensor:r}=i,s=r.activators.map(a=>({eventName:a.eventName,handler:e(a.handler,i)}));return[...n,...s]},[]),[t,e])}var Vg;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Vg||(Vg={}));var j3;(function(t){t.Optimized="optimized"})(j3||(j3={}));const gM=new Map;function KLe(t,e){let{dragging:n,dependencies:i,config:r}=e;const[s,a]=k.useState(null),{frequency:o,measure:l,strategy:c}=r,f=k.useRef(t),u=w(),h=Wg(u),m=k.useCallback(function(O){O===void 0&&(O=[]),!h.current&&a(x=>x===null?O:x.concat(O.filter($=>!x.includes($))))},[h]),g=k.useRef(null),v=v0(O=>{if(u&&!n)return gM;if(!O||O===gM||f.current!==t||s!=null){const x=new Map;for(let $ of t){if(!$)continue;if(s&&s.length>0&&!s.includes($.id)&&$.rect.current){x.set($.id,$.rect.current);continue}const T=$.node.current,S=T?new s5(l(T),T):null;$.rect.current=S,S&&x.set($.id,S)}return x}return O},[t,s,n,u,l]);return k.useEffect(()=>{f.current=t},[t]),k.useEffect(()=>{u||m()},[n,u]),k.useEffect(()=>{s&&s.length>0&&a(null)},[JSON.stringify(s)]),k.useEffect(()=>{u||typeof o!="number"||g.current!==null||(g.current=setTimeout(()=>{m(),g.current=null},o))},[o,u,m,...i]),{droppableRects:v,measureDroppableContainers:m,measuringScheduled:s!=null};function w(){switch(c){case Vg.Always:return!1;case Vg.BeforeDragging:return n;default:return!n}}}function Gq(t,e){return v0(n=>t?n||(typeof e=="function"?e(t):t):null,[e,t])}function JLe(t,e){return Gq(t,e)}function eje(t){let{callback:e,disabled:n}=t;const i=n5(e),r=k.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(i)},[i,n]);return k.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function wO(t){let{callback:e,disabled:n}=t;const i=n5(e),r=k.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(i)},[n]);return k.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function tje(t){return new s5(Ap(t),t)}function vM(t,e,n){e===void 0&&(e=tje);const[i,r]=k.useState(null);function s(){r(l=>{if(!t)return null;if(t.isConnected===!1){var c;return(c=l??n)!=null?c:null}const f=e(t);return JSON.stringify(l)===JSON.stringify(f)?l:f})}const a=eje({callback(l){if(t)for(const c of l){const{type:f,target:u}=c;if(f==="childList"&&u instanceof HTMLElement&&u.contains(t)){s();break}}}}),o=wO({callback:s});return Po(()=>{s(),t?(o==null||o.observe(t),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[t]),i}function nje(t){const e=Gq(t);return Bq(t,e)}const bM=[];function ije(t){const e=k.useRef(t),n=v0(i=>t?i&&i!==bM&&t&&e.current&&t.parentNode===e.current.parentNode?i:r5(t):bM,[t]);return k.useEffect(()=>{e.current=t},[t]),n}function rje(t){const[e,n]=k.useState(null),i=k.useRef(t),r=k.useCallback(s=>{const a=mS(s.target);a&&n(o=>o?(o.set(a,N3(a)),new Map(o)):null)},[]);return k.useEffect(()=>{const s=i.current;if(t!==s){a(s);const o=t.map(l=>{const c=mS(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,N3(c)]):null}).filter(l=>l!=null);n(o.length?new Map(o):null),i.current=t}return()=>{a(t),a(s)};function a(o){o.forEach(l=>{const c=mS(l);c==null||c.removeEventListener("scroll",r)})}},[r,t]),k.useMemo(()=>t.length?e?Array.from(e.values()).reduce((s,a)=>wd(s,a),Ra):Uq(t):Ra,[t,e])}function yM(t,e){e===void 0&&(e=[]);const n=k.useRef(null);return k.useEffect(()=>{n.current=null},e),k.useEffect(()=>{const i=t!==Ra;i&&!n.current&&(n.current=t),!i&&n.current&&(n.current=null)},[t]),n.current?tw(t,n.current):Ra}function sje(t){k.useEffect(()=>{if(!yO)return;const e=t.map(n=>{let{sensor:i}=n;return i.setup==null?void 0:i.setup()});return()=>{for(const n of e)n==null||n()}},t.map(e=>{let{sensor:n}=e;return n}))}function aje(t,e){return k.useMemo(()=>t.reduce((n,i)=>{let{eventName:r,handler:s}=i;return n[r]=a=>{s(a,e)},n},{}),[t,e])}function Xq(t){return k.useMemo(()=>t?ALe(t):null,[t])}const wM=[];function oje(t,e){e===void 0&&(e=Ap);const[n]=t,i=Xq(n?qr(n):null),[r,s]=k.useState(wM);function a(){s(()=>t.length?t.map(l=>qq(l)?i:new s5(e(l),l)):wM)}const o=wO({callback:a});return Po(()=>{o==null||o.disconnect(),a(),t.forEach(l=>o==null?void 0:o.observe(l))},[t]),r}function lje(t){if(!t)return null;if(t.children.length>1)return t;const e=t.children[0];return g0(e)?e:t}function cje(t){let{measure:e}=t;const[n,i]=k.useState(null),r=k.useCallback(c=>{for(const{target:f}of c)if(g0(f)){i(u=>{const h=e(f);return u?{...u,width:h.width,height:h.height}:h});break}},[e]),s=wO({callback:r}),a=k.useCallback(c=>{const f=lje(c);s==null||s.disconnect(),f&&(s==null||s.observe(f)),i(f?e(f):null)},[e,s]),[o,l]=ew(a);return k.useMemo(()=>({nodeRef:o,rect:n,setRef:l}),[n,o,l])}const fje=[{sensor:Zq,options:{}},{sensor:Hq,options:{}}],uje={current:{}},Kb={draggable:{measure:dM},droppable:{measure:dM,strategy:Vg.WhileDragging,frequency:j3.Optimized},dragOverlay:{measure:Ap}};class yg extends Map{get(e){var n;return e!=null&&(n=super.get(e))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:n}=e;return!n})}getNodeFor(e){var n,i;return(n=(i=this.get(e))==null?void 0:i.node.current)!=null?n:void 0}}const dje={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new yg,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nw},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Kb,measureDroppableContainers:nw,windowRect:null,measuringScheduled:!1},hje={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nw,draggableNodes:new Map,over:null,measureDroppableContainers:nw},kO=k.createContext(hje),Yq=k.createContext(dje);function pje(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yg}}}function mje(t,e){switch(e.type){case vi.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case vi.DragMove:return t.draggable.active==null?t:{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case vi.DragEnd:case vi.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case vi.RegisterDroppable:{const{element:n}=e,{id:i}=n,r=new yg(t.droppable.containers);return r.set(i,n),{...t,droppable:{...t.droppable,containers:r}}}case vi.SetDroppableDisabled:{const{id:n,key:i,disabled:r}=e,s=t.droppable.containers.get(n);if(!s||i!==s.key)return t;const a=new yg(t.droppable.containers);return a.set(n,{...s,disabled:r}),{...t,droppable:{...t.droppable,containers:a}}}case vi.UnregisterDroppable:{const{id:n,key:i}=e,r=t.droppable.containers.get(n);if(!r||i!==r.key)return t;const s=new yg(t.droppable.containers);return s.delete(n),{...t,droppable:{...t.droppable,containers:s}}}default:return t}}function gje(t){let{disabled:e}=t;const{active:n,activatorEvent:i,draggableNodes:r}=k.useContext(kO),s=D3(i),a=D3(n==null?void 0:n.id);return k.useEffect(()=>{if(!e&&!i&&s&&a!=null){if(!i5(s)||document.activeElement===s.target)return;const o=r.get(a);if(!o)return;const{activatorNode:l,node:c}=o;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const f of[l.current,c.current]){if(!f)continue;const u=oLe(f);if(u){u.focus();break}}})}},[i,e,r,a,s]),null}function vje(t,e){let{transform:n,...i}=e;return t!=null&&t.length?t.reduce((r,s)=>s({transform:r,...i}),n):n}function bje(t){return k.useMemo(()=>({draggable:{...Kb.draggable,...t==null?void 0:t.draggable},droppable:{...Kb.droppable,...t==null?void 0:t.droppable},dragOverlay:{...Kb.dragOverlay,...t==null?void 0:t.dragOverlay}}),[t==null?void 0:t.draggable,t==null?void 0:t.droppable,t==null?void 0:t.dragOverlay])}function yje(t){let{activeNode:e,measure:n,initialRect:i,config:r=!0}=t;const s=k.useRef(!1),{x:a,y:o}=typeof r=="boolean"?{x:r,y:r}:r;Po(()=>{if(!a&&!o||!e){s.current=!1;return}if(s.current||!i)return;const c=e==null?void 0:e.node.current;if(!c||c.isConnected===!1)return;const f=n(c),u=Bq(f,i);if(a||(u.x=0),o||(u.y=0),s.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const h=Fq(c);h&&h.scrollBy({top:u.y,left:u.x})}},[e,a,o,i,n])}const Kq=k.createContext({...Ra,scaleX:1,scaleY:1});var Gl;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Gl||(Gl={}));const wje=k.memo(function(e){var n,i,r,s;let{id:a,accessibility:o,autoScroll:l=!0,children:c,sensors:f=fje,collisionDetection:u=xLe,measuring:h,modifiers:m,...g}=e;const v=k.useReducer(mje,void 0,pje),[w,O]=v,[x,$]=hLe(),[T,S]=k.useState(Gl.Uninitialized),R=T===Gl.Initialized,{draggable:{active:_,nodes:P,translate:A},droppable:{containers:N}}=w,M=_!=null?P.get(_):null,Q=k.useRef({initial:null,translated:null}),U=k.useMemo(()=>{var Un;return _!=null?{id:_,data:(Un=M==null?void 0:M.data)!=null?Un:uje,rect:Q}:null},[_,M]),z=k.useRef(null),[Y,ae]=k.useState(null),[ne,he]=k.useState(null),ve=Wg(g,Object.values(g)),je=b0("DndDescribedBy",a),we=k.useMemo(()=>N.getEnabled(),[N]),ge=bje(h),{droppableRects:B,measureDroppableContainers:D,measuringScheduled:te}=KLe(we,{dragging:R,dependencies:[A.x,A.y],config:ge.droppable}),q=XLe(P,_),lt=k.useMemo(()=>ne?M3(ne):null,[ne]),yt=Fc(),mt=JLe(q,ge.draggable.measure);yje({activeNode:_!=null?P.get(_):null,config:yt.layoutShiftCompensation,initialRect:mt,measure:ge.draggable.measure});const Ke=vM(q,ge.draggable.measure,mt),Gt=vM(q?q.parentElement:null),dt=k.useRef({activatorEvent:null,active:null,activeNode:q,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),dn=N.getNodeFor((n=dt.current.over)==null?void 0:n.id),Ot=cje({measure:ge.dragOverlay.measure}),wn=(i=Ot.nodeRef.current)!=null?i:q,kn=R?(r=Ot.rect)!=null?r:Ke:null,an=!!(Ot.nodeRef.current&&Ot.rect),qi=nje(an?null:Ke),vr=Xq(wn?qr(wn):null),jn=ije(R?dn??q:null),On=oje(jn),yi=vje(m,{transform:{x:A.x-qi.x,y:A.y-qi.y,scaleX:1,scaleY:1},activatorEvent:ne,active:U,activeNodeRect:Ke,containerNodeRect:Gt,draggingNodeRect:kn,over:dt.current.over,overlayNodeRect:Ot.rect,scrollableAncestors:jn,scrollableAncestorRects:On,windowRect:vr}),er=lt?wd(lt,A):null,xe=rje(jn),qe=yM(xe),Ft=yM(xe,[Ke]),Et=wd(yi,qe),Xt=kn?CLe(kn,yi):null,ii=U&&Xt?u({active:U,collisionRect:Xt,droppableRects:B,droppableContainers:we,pointerCoordinates:er}):null,tr=wLe(ii,"id"),[xn,Wr]=k.useState(null),Os=an?yi:wd(yi,Ft),Ur=SLe(Os,(s=xn==null?void 0:xn.rect)!=null?s:null,Ke),Vr=k.useRef(null),Hr=k.useCallback((Un,wi)=>{let{sensor:Ti,options:V}=wi;if(z.current==null)return;const G=P.get(z.current);if(!G)return;const se=Un.nativeEvent,pe=new Ti({active:z.current,activeNode:G,event:se,options:V,context:dt,onAbort(ze){if(!P.get(ze))return;const{onDragAbort:$e}=ve.current,Ue={id:ze};$e==null||$e(Ue),x({type:"onDragAbort",event:Ue})},onPending(ze,Ie,$e,Ue){if(!P.get(ze))return;const{onDragPending:Sn}=ve.current,nn={id:ze,constraint:Ie,initialCoordinates:$e,offset:Ue};Sn==null||Sn(nn),x({type:"onDragPending",event:nn})},onStart(ze){const Ie=z.current;if(Ie==null)return;const $e=P.get(Ie);if(!$e)return;const{onDragStart:Ue}=ve.current,He={activatorEvent:se,active:{id:Ie,data:$e.data,rect:Q}};ll.unstable_batchedUpdates(()=>{Ue==null||Ue(He),S(Gl.Initializing),O({type:vi.DragStart,initialCoordinates:ze,active:Ie}),x({type:"onDragStart",event:He}),ae(Vr.current),he(se)})},onMove(ze){O({type:vi.DragMove,coordinates:ze})},onEnd:Te(vi.DragEnd),onCancel:Te(vi.DragCancel)});Vr.current=pe;function Te(ze){return async function(){const{active:$e,collisions:Ue,over:He,scrollAdjustedTranslate:Sn}=dt.current;let nn=null;if($e&&Sn){const{cancelDrop:Ve}=ve.current;nn={activatorEvent:se,active:$e,collisions:Ue,delta:Sn,over:He},ze===vi.DragEnd&&typeof Ve=="function"&&await Promise.resolve(Ve(nn))&&(ze=vi.DragCancel)}z.current=null,ll.unstable_batchedUpdates(()=>{O({type:ze}),S(Gl.Uninitialized),Wr(null),ae(null),he(null),Vr.current=null;const Ve=ze===vi.DragEnd?"onDragEnd":"onDragCancel";if(nn){const Yt=ve.current[Ve];Yt==null||Yt(nn),x({type:Ve,event:nn})}})}}},[P]),br=k.useCallback((Un,wi)=>(Ti,V)=>{const G=Ti.nativeEvent,se=P.get(V);if(z.current!==null||!se||G.dndKit||G.defaultPrevented)return;const pe={active:se};Un(Ti,wi.options,pe)===!0&&(G.dndKit={capturedBy:wi.sensor},z.current=V,Hr(Ti,wi))},[P,Hr]),ia=YLe(f,br);sje(f),Po(()=>{Ke&&T===Gl.Initializing&&S(Gl.Initialized)},[Ke,T]),k.useEffect(()=>{const{onDragMove:Un}=ve.current,{active:wi,activatorEvent:Ti,collisions:V,over:G}=dt.current;if(!wi||!Ti)return;const se={active:wi,activatorEvent:Ti,collisions:V,delta:{x:Et.x,y:Et.y},over:G};ll.unstable_batchedUpdates(()=>{Un==null||Un(se),x({type:"onDragMove",event:se})})},[Et.x,Et.y]),k.useEffect(()=>{const{active:Un,activatorEvent:wi,collisions:Ti,droppableContainers:V,scrollAdjustedTranslate:G}=dt.current;if(!Un||z.current==null||!wi||!G)return;const{onDragOver:se}=ve.current,pe=V.get(tr),Te=pe&&pe.rect.current?{id:pe.id,rect:pe.rect.current,data:pe.data,disabled:pe.disabled}:null,ze={active:Un,activatorEvent:wi,collisions:Ti,delta:{x:G.x,y:G.y},over:Te};ll.unstable_batchedUpdates(()=>{Wr(Te),se==null||se(ze),x({type:"onDragOver",event:ze})})},[tr]),Po(()=>{dt.current={activatorEvent:ne,active:U,activeNode:q,collisionRect:Xt,collisions:ii,droppableRects:B,draggableNodes:P,draggingNode:wn,draggingNodeRect:kn,droppableContainers:N,over:xn,scrollableAncestors:jn,scrollAdjustedTranslate:Et},Q.current={initial:kn,translated:Xt}},[U,q,ii,Xt,P,wn,kn,B,N,xn,jn,Et]),HLe({...yt,delta:A,draggingRect:Xt,pointerCoordinates:er,scrollableAncestors:jn,scrollableAncestorRects:On});const jo=k.useMemo(()=>({active:U,activeNode:q,activeNodeRect:Ke,activatorEvent:ne,collisions:ii,containerNodeRect:Gt,dragOverlay:Ot,draggableNodes:P,droppableContainers:N,droppableRects:B,over:xn,measureDroppableContainers:D,scrollableAncestors:jn,scrollableAncestorRects:On,measuringConfiguration:ge,measuringScheduled:te,windowRect:vr}),[U,q,Ke,ne,ii,Gt,Ot,P,N,B,xn,D,jn,On,ge,te,vr]),jp=k.useMemo(()=>({activatorEvent:ne,activators:ia,active:U,activeNodeRect:Ke,ariaDescribedById:{draggable:je},dispatch:O,draggableNodes:P,over:xn,measureDroppableContainers:D}),[ne,ia,U,Ke,O,je,P,xn,D]);return tt.createElement(Iq.Provider,{value:$},tt.createElement(kO.Provider,{value:jp},tt.createElement(Yq.Provider,{value:jo},tt.createElement(Kq.Provider,{value:Ur},c)),tt.createElement(gje,{disabled:(o==null?void 0:o.restoreFocus)===!1})),tt.createElement(gLe,{...o,hiddenTextDescribedById:je}));function Fc(){const Un=(Y==null?void 0:Y.autoScrollEnabled)===!1,wi=typeof l=="object"?l.enabled===!1:l===!1,Ti=R&&!Un&&!wi;return typeof l=="object"?{...l,enabled:Ti}:{enabled:Ti}}}),kje=k.createContext(null),kM="button",Oje="Draggable";function xje(t){let{id:e,data:n,disabled:i=!1,attributes:r}=t;const s=b0(Oje),{activators:a,activatorEvent:o,active:l,activeNodeRect:c,ariaDescribedById:f,draggableNodes:u,over:h}=k.useContext(kO),{role:m=kM,roleDescription:g="draggable",tabIndex:v=0}=r??{},w=(l==null?void 0:l.id)===e,O=k.useContext(w?Kq:kje),[x,$]=ew(),[T,S]=ew(),R=aje(a,e),_=Wg(n);Po(()=>(u.set(e,{id:e,key:s,node:x,activatorNode:T,data:_}),()=>{const A=u.get(e);A&&A.key===s&&u.delete(e)}),[u,e]);const P=k.useMemo(()=>({role:m,tabIndex:v,"aria-disabled":i,"aria-pressed":w&&m===kM?!0:void 0,"aria-roledescription":g,"aria-describedby":f.draggable}),[i,m,v,w,g,f.draggable]);return{active:l,activatorEvent:o,activeNodeRect:c,attributes:P,isDragging:w,listeners:i?void 0:R,node:x,over:h,setNodeRef:$,setActivatorNodeRef:S,transform:O}}function Sje(){return k.useContext(Yq)}const _je="Droppable",Cje={timeout:25};function $je(t){let{data:e,disabled:n=!1,id:i,resizeObserverConfig:r}=t;const s=b0(_je),{active:a,dispatch:o,over:l,measureDroppableContainers:c}=k.useContext(kO),f=k.useRef({disabled:n}),u=k.useRef(!1),h=k.useRef(null),m=k.useRef(null),{disabled:g,updateMeasurementsFor:v,timeout:w}={...Cje,...r},O=Wg(v??i),x=k.useCallback(()=>{if(!u.current){u.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(O.current)?O.current:[O.current]),m.current=null},w)},[w]),$=wO({callback:x,disabled:g||!a}),T=k.useCallback((P,A)=>{$&&(A&&($.unobserve(A),u.current=!1),P&&$.observe(P))},[$]),[S,R]=ew(T),_=Wg(e);return k.useEffect(()=>{!$||!S.current||($.disconnect(),u.current=!1,$.observe(S.current))},[S,$]),k.useEffect(()=>(o({type:vi.RegisterDroppable,element:{id:i,key:s,disabled:n,node:S,rect:h,data:_}}),()=>o({type:vi.UnregisterDroppable,key:s,id:i})),[i]),k.useEffect(()=>{n!==f.current.disabled&&(o({type:vi.SetDroppableDisabled,id:i,key:s,disabled:n}),f.current.disabled=n)},[i,s,n,o]),{active:a,rect:h,isOver:(l==null?void 0:l.id)===i,node:S,over:l,setNodeRef:R}}function o5(t,e,n){const i=t.slice();return i.splice(n<0?i.length+n:n,0,i.splice(e,1)[0]),i}function Pje(t,e){return t.reduce((n,i,r)=>{const s=e.get(i);return s&&(n[r]=s),n},Array(t.length))}function zv(t){return t!==null&&t>=0}function Tje(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Aje(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const Jq=t=>{let{rects:e,activeIndex:n,overIndex:i,index:r}=t;const s=o5(e,i,n),a=e[r],o=s[r];return!o||!a?null:{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}},qv={scaleX:1,scaleY:1},Eje=t=>{var e;let{activeIndex:n,activeNodeRect:i,index:r,rects:s,overIndex:a}=t;const o=(e=s[n])!=null?e:i;if(!o)return null;if(r===n){const c=s[a];return c?{x:0,y:n<a?c.top+c.height-(o.top+o.height):c.top-o.top,...qv}:null}const l=Rje(s,r,n);return r>n&&r<=a?{x:0,y:-o.height-l,...qv}:r<n&&r>=a?{x:0,y:o.height+l,...qv}:{x:0,y:0,...qv}};function Rje(t,e,n){const i=t[e],r=t[e-1],s=t[e+1];return i?n<e?r?i.top-(r.top+r.height):s?s.top-(i.top+i.height):0:s?s.top-(i.top+i.height):r?i.top-(r.top+r.height):0:0}const eW="Sortable",tW=tt.createContext({activeIndex:-1,containerId:eW,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Jq,disabled:{draggable:!1,droppable:!1}});function Dje(t){let{children:e,id:n,items:i,strategy:r=Jq,disabled:s=!1}=t;const{active:a,dragOverlay:o,droppableRects:l,over:c,measureDroppableContainers:f}=Sje(),u=b0(eW,n),h=o.rect!==null,m=k.useMemo(()=>i.map(R=>typeof R=="object"&&"id"in R?R.id:R),[i]),g=a!=null,v=a?m.indexOf(a.id):-1,w=c?m.indexOf(c.id):-1,O=k.useRef(m),x=!Tje(m,O.current),$=w!==-1&&v===-1||x,T=Aje(s);Po(()=>{x&&g&&f(m)},[x,m,g,f]),k.useEffect(()=>{O.current=m},[m]);const S=k.useMemo(()=>({activeIndex:v,containerId:u,disabled:T,disableTransforms:$,items:m,overIndex:w,useDragOverlay:h,sortedRects:Pje(m,l),strategy:r}),[v,u,T.draggable,T.droppable,$,m,w,l,h,r]);return tt.createElement(tW.Provider,{value:S},e)}const Mje=t=>{let{id:e,items:n,activeIndex:i,overIndex:r}=t;return o5(n,i,r).indexOf(e)},Nje=t=>{let{containerId:e,isSorting:n,wasDragging:i,index:r,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:c}=t;return!c||!i||o!==s&&r===a?!1:n?!0:a!==r&&e===l},Lje={duration:200,easing:"ease"},nW="transform",jje=Ug.Transition.toString({property:nW,duration:0,easing:"linear"}),Ije={roleDescription:"sortable"};function Bje(t){let{disabled:e,index:n,node:i,rect:r}=t;const[s,a]=k.useState(null),o=k.useRef(n);return Po(()=>{if(!e&&n!==o.current&&i.current){const l=r.current;if(l){const c=Ap(i.current,{ignoreTransform:!0}),f={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(f.x||f.y)&&a(f)}}n!==o.current&&(o.current=n)},[e,n,i,r]),k.useEffect(()=>{s&&a(null)},[s]),s}function Fje(t){let{animateLayoutChanges:e=Nje,attributes:n,disabled:i,data:r,getNewIndex:s=Mje,id:a,strategy:o,resizeObserverConfig:l,transition:c=Lje}=t;const{items:f,containerId:u,activeIndex:h,disabled:m,disableTransforms:g,sortedRects:v,overIndex:w,useDragOverlay:O,strategy:x}=k.useContext(tW),$=Qje(i,m),T=f.indexOf(a),S=k.useMemo(()=>({sortable:{containerId:u,index:T,items:f},...r}),[u,r,T,f]),R=k.useMemo(()=>f.slice(f.indexOf(a)),[f,a]),{rect:_,node:P,isOver:A,setNodeRef:N}=$je({id:a,data:S,disabled:$.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...l}}),{active:M,activatorEvent:Q,activeNodeRect:U,attributes:z,setNodeRef:Y,listeners:ae,isDragging:ne,over:he,setActivatorNodeRef:ve,transform:je}=xje({id:a,data:S,attributes:{...Ije,...n},disabled:$.draggable}),we=iLe(N,Y),ge=!!M,B=ge&&!g&&zv(h)&&zv(w),D=!O&&ne,te=D&&B?je:null,lt=B?te??(o??x)({rects:v,activeNodeRect:U,activeIndex:h,overIndex:w,index:T}):null,yt=zv(h)&&zv(w)?s({id:a,items:f,activeIndex:h,overIndex:w}):T,mt=M==null?void 0:M.id,Ke=k.useRef({activeId:mt,items:f,newIndex:yt,containerId:u}),Gt=f!==Ke.current.items,dt=e({active:M,containerId:u,isDragging:ne,isSorting:ge,id:a,index:T,items:f,newIndex:Ke.current.newIndex,previousItems:Ke.current.items,previousContainerId:Ke.current.containerId,transition:c,wasDragging:Ke.current.activeId!=null}),dn=Bje({disabled:!dt,index:T,node:P,rect:_});return k.useEffect(()=>{ge&&Ke.current.newIndex!==yt&&(Ke.current.newIndex=yt),u!==Ke.current.containerId&&(Ke.current.containerId=u),f!==Ke.current.items&&(Ke.current.items=f)},[ge,yt,u,f]),k.useEffect(()=>{if(mt===Ke.current.activeId)return;if(mt!=null&&Ke.current.activeId==null){Ke.current.activeId=mt;return}const wn=setTimeout(()=>{Ke.current.activeId=mt},50);return()=>clearTimeout(wn)},[mt]),{active:M,activeIndex:h,attributes:z,data:S,rect:_,index:T,newIndex:yt,items:f,isOver:A,isSorting:ge,isDragging:ne,listeners:ae,node:P,overIndex:w,over:he,setNodeRef:we,setActivatorNodeRef:ve,setDroppableNodeRef:N,setDraggableNodeRef:Y,transform:dn??lt,transition:Ot()};function Ot(){if(dn||Gt&&Ke.current.newIndex===T)return jje;if(!(D&&!i5(Q)||!c)&&(ge||dt))return Ug.Transition.toString({...c,property:nW})}}function Qje(t,e){var n,i;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(n=t==null?void 0:t.draggable)!=null?n:e.draggable,droppable:(i=t==null?void 0:t.droppable)!=null?i:e.droppable}}Zt.Down,Zt.Right,Zt.Up,Zt.Left;const zje=JSON.parse('[{"id":"people","emojis":["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{"id":"nature","emojis":["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{"id":"foods","emojis":["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{"id":"activity","emojis":["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{"id":"places","emojis":["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{"id":"objects","emojis":["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{"id":"symbols","emojis":["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{"id":"flags","emojis":["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}]'),qje=JSON.parse(`{"100":{"id":"100","name":"Hundred Points","keywords":["100","score","perfect","numbers","century","exam","quiz","test","pass"],"skins":[{"unified":"1f4af","native":"💯"}],"version":1},"1234":{"id":"1234","name":"Input Numbers","keywords":["1234","blue","square","1","2","3","4"],"skins":[{"unified":"1f522","native":"🔢"}],"version":1},"grinning":{"id":"grinning","name":"Grinning Face","emoticons":[":D"],"keywords":["smile","happy","joy",":D","grin"],"skins":[{"unified":"1f600","native":"😀"}],"version":1},"smiley":{"id":"smiley","name":"Grinning Face with Big Eyes","emoticons":[":)","=)","=-)"],"keywords":["smiley","happy","joy","haha",":D",":)","smile","funny"],"skins":[{"unified":"1f603","native":"😃"}],"version":1},"smile":{"id":"smile","name":"Grinning Face with Smiling Eyes","emoticons":[":)","C:","c:",":D",":-D"],"keywords":["smile","happy","joy","funny","haha","laugh","like",":D",":)"],"skins":[{"unified":"1f604","native":"😄"}],"version":1},"grin":{"id":"grin","name":"Beaming Face with Smiling Eyes","keywords":["grin","happy","smile","joy","kawaii"],"skins":[{"unified":"1f601","native":"😁"}],"version":1},"laughing":{"id":"laughing","name":"Grinning Squinting Face","emoticons":[":>",":->"],"keywords":["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],"skins":[{"unified":"1f606","native":"😆"}],"version":1},"sweat_smile":{"id":"sweat_smile","name":"Grinning Face with Sweat","keywords":["smile","hot","happy","laugh","relief"],"skins":[{"unified":"1f605","native":"😅"}],"version":1},"rolling_on_the_floor_laughing":{"id":"rolling_on_the_floor_laughing","name":"Rolling on the Floor Laughing","keywords":["face","lol","haha","rofl"],"skins":[{"unified":"1f923","native":"🤣"}],"version":3},"joy":{"id":"joy","name":"Face with Tears of Joy","keywords":["cry","weep","happy","happytears","haha"],"skins":[{"unified":"1f602","native":"😂"}],"version":1},"slightly_smiling_face":{"id":"slightly_smiling_face","name":"Slightly Smiling Face","emoticons":[":)","(:",":-)"],"keywords":["smile"],"skins":[{"unified":"1f642","native":"🙂"}],"version":1},"upside_down_face":{"id":"upside_down_face","name":"Upside-Down Face","keywords":["upside","down","flipped","silly","smile"],"skins":[{"unified":"1f643","native":"🙃"}],"version":1},"melting_face":{"id":"melting_face","name":"Melting Face","keywords":["hot","heat"],"skins":[{"unified":"1fae0","native":"🫠"}],"version":14},"wink":{"id":"wink","name":"Winking Face","emoticons":[";)",";-)"],"keywords":["wink","happy","mischievous","secret",";)","smile","eye"],"skins":[{"unified":"1f609","native":"😉"}],"version":1},"blush":{"id":"blush","name":"Smiling Face with Smiling Eyes","emoticons":[":)"],"keywords":["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],"skins":[{"unified":"1f60a","native":"😊"}],"version":1},"innocent":{"id":"innocent","name":"Smiling Face with Halo","keywords":["innocent","angel","heaven"],"skins":[{"unified":"1f607","native":"😇"}],"version":1},"smiling_face_with_3_hearts":{"id":"smiling_face_with_3_hearts","name":"Smiling Face with Hearts","keywords":["3","love","like","affection","valentines","infatuation","crush","adore"],"skins":[{"unified":"1f970","native":"🥰"}],"version":11},"heart_eyes":{"id":"heart_eyes","name":"Smiling Face with Heart-Eyes","keywords":["heart","eyes","love","like","affection","valentines","infatuation","crush"],"skins":[{"unified":"1f60d","native":"😍"}],"version":1},"star-struck":{"id":"star-struck","name":"Star-Struck","keywords":["star","struck","grinning","face","with","eyes","smile","starry"],"skins":[{"unified":"1f929","native":"🤩"}],"version":5},"kissing_heart":{"id":"kissing_heart","name":"Face Blowing a Kiss","emoticons":[":*",":-*"],"keywords":["kissing","heart","love","like","affection","valentines","infatuation"],"skins":[{"unified":"1f618","native":"😘"}],"version":1},"kissing":{"id":"kissing","name":"Kissing Face","keywords":["love","like","3","valentines","infatuation","kiss"],"skins":[{"unified":"1f617","native":"😗"}],"version":1},"relaxed":{"id":"relaxed","name":"Smiling Face","keywords":["relaxed","blush","massage","happiness"],"skins":[{"unified":"263a-fe0f","native":"☺️"}],"version":1},"kissing_closed_eyes":{"id":"kissing_closed_eyes","name":"Kissing Face with Closed Eyes","keywords":["love","like","affection","valentines","infatuation","kiss"],"skins":[{"unified":"1f61a","native":"😚"}],"version":1},"kissing_smiling_eyes":{"id":"kissing_smiling_eyes","name":"Kissing Face with Smiling Eyes","keywords":["affection","valentines","infatuation","kiss"],"skins":[{"unified":"1f619","native":"😙"}],"version":1},"smiling_face_with_tear":{"id":"smiling_face_with_tear","name":"Smiling Face with Tear","keywords":["sad","cry","pretend"],"skins":[{"unified":"1f972","native":"🥲"}],"version":13},"yum":{"id":"yum","name":"Face Savoring Food","keywords":["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],"skins":[{"unified":"1f60b","native":"😋"}],"version":1},"stuck_out_tongue":{"id":"stuck_out_tongue","name":"Face with Tongue","emoticons":[":p",":-p",":P",":-P",":b",":-b"],"keywords":["stuck","out","prank","childish","playful","mischievous","smile"],"skins":[{"unified":"1f61b","native":"😛"}],"version":1},"stuck_out_tongue_winking_eye":{"id":"stuck_out_tongue_winking_eye","name":"Winking Face with Tongue","emoticons":[";p",";-p",";b",";-b",";P",";-P"],"keywords":["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],"skins":[{"unified":"1f61c","native":"😜"}],"version":1},"zany_face":{"id":"zany_face","name":"Zany Face","keywords":["grinning","with","one","large","and","small","eye","goofy","crazy"],"skins":[{"unified":"1f92a","native":"🤪"}],"version":5},"stuck_out_tongue_closed_eyes":{"id":"stuck_out_tongue_closed_eyes","name":"Squinting Face with Tongue","keywords":["stuck","out","closed","eyes","prank","playful","mischievous","smile"],"skins":[{"unified":"1f61d","native":"😝"}],"version":1},"money_mouth_face":{"id":"money_mouth_face","name":"Money-Mouth Face","keywords":["money","mouth","rich","dollar"],"skins":[{"unified":"1f911","native":"🤑"}],"version":1},"hugging_face":{"id":"hugging_face","name":"Hugging Face","keywords":["smile","hug"],"skins":[{"unified":"1f917","native":"🤗"}],"version":1},"face_with_hand_over_mouth":{"id":"face_with_hand_over_mouth","name":"Face with Hand over Mouth","keywords":["smiling","eyes","and","covering","whoops","shock","surprise"],"skins":[{"unified":"1f92d","native":"🤭"}],"version":5},"face_with_open_eyes_and_hand_over_mouth":{"id":"face_with_open_eyes_and_hand_over_mouth","name":"Face with Open Eyes and Hand over Mouth","keywords":["silence","secret","shock","surprise"],"skins":[{"unified":"1fae2","native":"🫢"}],"version":14},"face_with_peeking_eye":{"id":"face_with_peeking_eye","name":"Face with Peeking Eye","keywords":["scared","frightening","embarrassing","shy"],"skins":[{"unified":"1fae3","native":"🫣"}],"version":14},"shushing_face":{"id":"shushing_face","name":"Shushing Face","keywords":["with","finger","covering","closed","lips","quiet","shhh"],"skins":[{"unified":"1f92b","native":"🤫"}],"version":5},"thinking_face":{"id":"thinking_face","name":"Thinking Face","keywords":["hmmm","think","consider"],"skins":[{"unified":"1f914","native":"🤔"}],"version":1},"saluting_face":{"id":"saluting_face","name":"Saluting Face","keywords":["respect","salute"],"skins":[{"unified":"1fae1","native":"🫡"}],"version":14},"zipper_mouth_face":{"id":"zipper_mouth_face","name":"Zipper-Mouth Face","keywords":["zipper","mouth","sealed","secret"],"skins":[{"unified":"1f910","native":"🤐"}],"version":1},"face_with_raised_eyebrow":{"id":"face_with_raised_eyebrow","name":"Face with Raised Eyebrow","keywords":["one","distrust","scepticism","disapproval","disbelief","surprise"],"skins":[{"unified":"1f928","native":"🤨"}],"version":5},"neutral_face":{"id":"neutral_face","name":"Neutral Face","emoticons":[":|",":-|"],"keywords":["indifference","meh",":",""],"skins":[{"unified":"1f610","native":"😐"}],"version":1},"expressionless":{"id":"expressionless","name":"Expressionless Face","emoticons":["-_-"],"keywords":["indifferent","-","","meh","deadpan"],"skins":[{"unified":"1f611","native":"😑"}],"version":1},"no_mouth":{"id":"no_mouth","name":"Face Without Mouth","keywords":["no","hellokitty"],"skins":[{"unified":"1f636","native":"😶"}],"version":1},"dotted_line_face":{"id":"dotted_line_face","name":"Dotted Line Face","keywords":["invisible","lonely","isolation","depression"],"skins":[{"unified":"1fae5","native":"🫥"}],"version":14},"face_in_clouds":{"id":"face_in_clouds","name":"Face in Clouds","keywords":["shower","steam","dream"],"skins":[{"unified":"1f636-200d-1f32b-fe0f","native":"😶🌫️"}],"version":13.1},"smirk":{"id":"smirk","name":"Smirking Face","keywords":["smirk","smile","mean","prank","smug","sarcasm"],"skins":[{"unified":"1f60f","native":"😏"}],"version":1},"unamused":{"id":"unamused","name":"Unamused Face","emoticons":[":("],"keywords":["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],"skins":[{"unified":"1f612","native":"😒"}],"version":1},"face_with_rolling_eyes":{"id":"face_with_rolling_eyes","name":"Face with Rolling Eyes","keywords":["eyeroll","frustrated"],"skins":[{"unified":"1f644","native":"🙄"}],"version":1},"grimacing":{"id":"grimacing","name":"Grimacing Face","keywords":["grimace","teeth"],"skins":[{"unified":"1f62c","native":"😬"}],"version":1},"face_exhaling":{"id":"face_exhaling","name":"Face Exhaling","keywords":["relieve","relief","tired","sigh"],"skins":[{"unified":"1f62e-200d-1f4a8","native":"😮💨"}],"version":13.1},"lying_face":{"id":"lying_face","name":"Lying Face","keywords":["lie","pinocchio"],"skins":[{"unified":"1f925","native":"🤥"}],"version":3},"shaking_face":{"id":"shaking_face","name":"Shaking Face","keywords":["dizzy","shock","blurry","earthquake"],"skins":[{"unified":"1fae8","native":"🫨"}],"version":15},"relieved":{"id":"relieved","name":"Relieved Face","keywords":["relaxed","phew","massage","happiness"],"skins":[{"unified":"1f60c","native":"😌"}],"version":1},"pensive":{"id":"pensive","name":"Pensive Face","keywords":["sad","depressed","upset"],"skins":[{"unified":"1f614","native":"😔"}],"version":1},"sleepy":{"id":"sleepy","name":"Sleepy Face","keywords":["tired","rest","nap"],"skins":[{"unified":"1f62a","native":"😪"}],"version":1},"drooling_face":{"id":"drooling_face","name":"Drooling Face","keywords":[],"skins":[{"unified":"1f924","native":"🤤"}],"version":3},"sleeping":{"id":"sleeping","name":"Sleeping Face","keywords":["tired","sleepy","night","zzz"],"skins":[{"unified":"1f634","native":"😴"}],"version":1},"mask":{"id":"mask","name":"Face with Medical Mask","keywords":["sick","ill","disease","covid"],"skins":[{"unified":"1f637","native":"😷"}],"version":1},"face_with_thermometer":{"id":"face_with_thermometer","name":"Face with Thermometer","keywords":["sick","temperature","cold","fever","covid"],"skins":[{"unified":"1f912","native":"🤒"}],"version":1},"face_with_head_bandage":{"id":"face_with_head_bandage","name":"Face with Head-Bandage","keywords":["head","bandage","injured","clumsy","hurt"],"skins":[{"unified":"1f915","native":"🤕"}],"version":1},"nauseated_face":{"id":"nauseated_face","name":"Nauseated Face","keywords":["vomit","gross","green","sick","throw","up","ill"],"skins":[{"unified":"1f922","native":"🤢"}],"version":3},"face_vomiting":{"id":"face_vomiting","name":"Face Vomiting","keywords":["with","open","mouth","sick"],"skins":[{"unified":"1f92e","native":"🤮"}],"version":5},"sneezing_face":{"id":"sneezing_face","name":"Sneezing Face","keywords":["gesundheit","sneeze","sick","allergy"],"skins":[{"unified":"1f927","native":"🤧"}],"version":3},"hot_face":{"id":"hot_face","name":"Hot Face","keywords":["feverish","heat","red","sweating"],"skins":[{"unified":"1f975","native":"🥵"}],"version":11},"cold_face":{"id":"cold_face","name":"Cold Face","keywords":["blue","freezing","frozen","frostbite","icicles"],"skins":[{"unified":"1f976","native":"🥶"}],"version":11},"woozy_face":{"id":"woozy_face","name":"Woozy Face","keywords":["dizzy","intoxicated","tipsy","wavy"],"skins":[{"unified":"1f974","native":"🥴"}],"version":11},"dizzy_face":{"id":"dizzy_face","name":"Dizzy Face","keywords":["spent","unconscious","xox"],"skins":[{"unified":"1f635","native":"😵"}],"version":1},"face_with_spiral_eyes":{"id":"face_with_spiral_eyes","name":"Face with Spiral Eyes","keywords":["sick","ill","confused","nauseous","nausea"],"skins":[{"unified":"1f635-200d-1f4ab","native":"😵💫"}],"version":13.1},"exploding_head":{"id":"exploding_head","name":"Exploding Head","keywords":["shocked","face","with","mind","blown"],"skins":[{"unified":"1f92f","native":"🤯"}],"version":5},"face_with_cowboy_hat":{"id":"face_with_cowboy_hat","name":"Cowboy Hat Face","keywords":["with","cowgirl"],"skins":[{"unified":"1f920","native":"🤠"}],"version":3},"partying_face":{"id":"partying_face","name":"Partying Face","keywords":["celebration","woohoo"],"skins":[{"unified":"1f973","native":"🥳"}],"version":11},"disguised_face":{"id":"disguised_face","name":"Disguised Face","keywords":["pretent","brows","glasses","moustache"],"skins":[{"unified":"1f978","native":"🥸"}],"version":13},"sunglasses":{"id":"sunglasses","name":"Smiling Face with Sunglasses","emoticons":["8)"],"keywords":["cool","smile","summer","beach","sunglass"],"skins":[{"unified":"1f60e","native":"😎"}],"version":1},"nerd_face":{"id":"nerd_face","name":"Nerd Face","keywords":["nerdy","geek","dork"],"skins":[{"unified":"1f913","native":"🤓"}],"version":1},"face_with_monocle":{"id":"face_with_monocle","name":"Face with Monocle","keywords":["stuffy","wealthy"],"skins":[{"unified":"1f9d0","native":"🧐"}],"version":5},"confused":{"id":"confused","name":"Confused Face","emoticons":[":\\\\",":-\\\\",":/",":-/"],"keywords":["indifference","huh","weird","hmmm",":/"],"skins":[{"unified":"1f615","native":"😕"}],"version":1},"face_with_diagonal_mouth":{"id":"face_with_diagonal_mouth","name":"Face with Diagonal Mouth","keywords":["skeptic","confuse","frustrated","indifferent"],"skins":[{"unified":"1fae4","native":"🫤"}],"version":14},"worried":{"id":"worried","name":"Worried Face","keywords":["concern","nervous",":("],"skins":[{"unified":"1f61f","native":"😟"}],"version":1},"slightly_frowning_face":{"id":"slightly_frowning_face","name":"Slightly Frowning Face","keywords":["disappointed","sad","upset"],"skins":[{"unified":"1f641","native":"🙁"}],"version":1},"white_frowning_face":{"id":"white_frowning_face","name":"Frowning Face","keywords":["white","sad","upset","frown"],"skins":[{"unified":"2639-fe0f","native":"☹️"}],"version":1},"open_mouth":{"id":"open_mouth","name":"Face with Open Mouth","emoticons":[":o",":-o",":O",":-O"],"keywords":["surprise","impressed","wow","whoa",":O"],"skins":[{"unified":"1f62e","native":"😮"}],"version":1},"hushed":{"id":"hushed","name":"Hushed Face","keywords":["woo","shh"],"skins":[{"unified":"1f62f","native":"😯"}],"version":1},"astonished":{"id":"astonished","name":"Astonished Face","keywords":["xox","surprised","poisoned"],"skins":[{"unified":"1f632","native":"😲"}],"version":1},"flushed":{"id":"flushed","name":"Flushed Face","keywords":["blush","shy","flattered"],"skins":[{"unified":"1f633","native":"😳"}],"version":1},"pleading_face":{"id":"pleading_face","name":"Pleading Face","keywords":["begging","mercy","cry","tears","sad","grievance"],"skins":[{"unified":"1f97a","native":"🥺"}],"version":11},"face_holding_back_tears":{"id":"face_holding_back_tears","name":"Face Holding Back Tears","keywords":["touched","gratitude","cry"],"skins":[{"unified":"1f979","native":"🥹"}],"version":14},"frowning":{"id":"frowning","name":"Frowning Face with Open Mouth","keywords":["aw","what"],"skins":[{"unified":"1f626","native":"😦"}],"version":1},"anguished":{"id":"anguished","name":"Anguished Face","emoticons":["D:"],"keywords":["stunned","nervous"],"skins":[{"unified":"1f627","native":"😧"}],"version":1},"fearful":{"id":"fearful","name":"Fearful Face","keywords":["scared","terrified","nervous"],"skins":[{"unified":"1f628","native":"😨"}],"version":1},"cold_sweat":{"id":"cold_sweat","name":"Anxious Face with Sweat","keywords":["cold","nervous"],"skins":[{"unified":"1f630","native":"😰"}],"version":1},"disappointed_relieved":{"id":"disappointed_relieved","name":"Sad but Relieved Face","keywords":["disappointed","phew","sweat","nervous"],"skins":[{"unified":"1f625","native":"😥"}],"version":1},"cry":{"id":"cry","name":"Crying Face","emoticons":[":'("],"keywords":["cry","tears","sad","depressed","upset",":'("],"skins":[{"unified":"1f622","native":"😢"}],"version":1},"sob":{"id":"sob","name":"Loudly Crying Face","emoticons":[":'("],"keywords":["sob","cry","tears","sad","upset","depressed"],"skins":[{"unified":"1f62d","native":"😭"}],"version":1},"scream":{"id":"scream","name":"Face Screaming in Fear","keywords":["scream","munch","scared","omg"],"skins":[{"unified":"1f631","native":"😱"}],"version":1},"confounded":{"id":"confounded","name":"Confounded Face","keywords":["confused","sick","unwell","oops",":S"],"skins":[{"unified":"1f616","native":"😖"}],"version":1},"persevere":{"id":"persevere","name":"Persevering Face","keywords":["persevere","sick","no","upset","oops"],"skins":[{"unified":"1f623","native":"😣"}],"version":1},"disappointed":{"id":"disappointed","name":"Disappointed Face","emoticons":["):",":(",":-("],"keywords":["sad","upset","depressed",":("],"skins":[{"unified":"1f61e","native":"😞"}],"version":1},"sweat":{"id":"sweat","name":"Face with Cold Sweat","keywords":["downcast","hot","sad","tired","exercise"],"skins":[{"unified":"1f613","native":"😓"}],"version":1},"weary":{"id":"weary","name":"Weary Face","keywords":["tired","sleepy","sad","frustrated","upset"],"skins":[{"unified":"1f629","native":"😩"}],"version":1},"tired_face":{"id":"tired_face","name":"Tired Face","keywords":["sick","whine","upset","frustrated"],"skins":[{"unified":"1f62b","native":"😫"}],"version":1},"yawning_face":{"id":"yawning_face","name":"Yawning Face","keywords":["tired","sleepy"],"skins":[{"unified":"1f971","native":"🥱"}],"version":12},"triumph":{"id":"triumph","name":"Face with Look of Triumph","keywords":["steam","from","nose","gas","phew","proud","pride"],"skins":[{"unified":"1f624","native":"😤"}],"version":1},"rage":{"id":"rage","name":"Pouting Face","keywords":["rage","angry","mad","hate","despise"],"skins":[{"unified":"1f621","native":"😡"}],"version":1},"angry":{"id":"angry","name":"Angry Face","emoticons":[">:(",">:-("],"keywords":["mad","annoyed","frustrated"],"skins":[{"unified":"1f620","native":"😠"}],"version":1},"face_with_symbols_on_mouth":{"id":"face_with_symbols_on_mouth","name":"Face with Symbols on Mouth","keywords":["serious","covering","swearing","cursing","cussing","profanity","expletive"],"skins":[{"unified":"1f92c","native":"🤬"}],"version":5},"smiling_imp":{"id":"smiling_imp","name":"Smiling Face with Horns","keywords":["imp","devil"],"skins":[{"unified":"1f608","native":"😈"}],"version":1},"imp":{"id":"imp","name":"Imp","keywords":["angry","face","with","horns","devil"],"skins":[{"unified":"1f47f","native":"👿"}],"version":1},"skull":{"id":"skull","name":"Skull","keywords":["dead","skeleton","creepy","death"],"skins":[{"unified":"1f480","native":"💀"}],"version":1},"skull_and_crossbones":{"id":"skull_and_crossbones","name":"Skull and Crossbones","keywords":["poison","danger","deadly","scary","death","pirate","evil"],"skins":[{"unified":"2620-fe0f","native":"☠️"}],"version":1},"hankey":{"id":"hankey","name":"Pile of Poo","keywords":["hankey","poop","shit","shitface","fail","turd"],"skins":[{"unified":"1f4a9","native":"💩"}],"version":1},"clown_face":{"id":"clown_face","name":"Clown Face","keywords":[],"skins":[{"unified":"1f921","native":"🤡"}],"version":3},"japanese_ogre":{"id":"japanese_ogre","name":"Ogre","keywords":["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],"skins":[{"unified":"1f479","native":"👹"}],"version":1},"japanese_goblin":{"id":"japanese_goblin","name":"Goblin","keywords":["japanese","red","evil","mask","monster","scary","creepy"],"skins":[{"unified":"1f47a","native":"👺"}],"version":1},"ghost":{"id":"ghost","name":"Ghost","keywords":["halloween","spooky","scary"],"skins":[{"unified":"1f47b","native":"👻"}],"version":1},"alien":{"id":"alien","name":"Alien","keywords":["UFO","paul","weird","outer","space"],"skins":[{"unified":"1f47d","native":"👽"}],"version":1},"space_invader":{"id":"space_invader","name":"Alien Monster","keywords":["space","invader","game","arcade","play"],"skins":[{"unified":"1f47e","native":"👾"}],"version":1},"robot_face":{"id":"robot_face","name":"Robot","keywords":["face","computer","machine","bot"],"skins":[{"unified":"1f916","native":"🤖"}],"version":1},"smiley_cat":{"id":"smiley_cat","name":"Grinning Cat","keywords":["smiley","animal","cats","happy","smile"],"skins":[{"unified":"1f63a","native":"😺"}],"version":1},"smile_cat":{"id":"smile_cat","name":"Grinning Cat with Smiling Eyes","keywords":["smile","animal","cats"],"skins":[{"unified":"1f638","native":"😸"}],"version":1},"joy_cat":{"id":"joy_cat","name":"Cat with Tears of Joy","keywords":["animal","cats","haha","happy"],"skins":[{"unified":"1f639","native":"😹"}],"version":1},"heart_eyes_cat":{"id":"heart_eyes_cat","name":"Smiling Cat with Heart-Eyes","keywords":["heart","eyes","animal","love","like","affection","cats","valentines"],"skins":[{"unified":"1f63b","native":"😻"}],"version":1},"smirk_cat":{"id":"smirk_cat","name":"Cat with Wry Smile","keywords":["smirk","animal","cats"],"skins":[{"unified":"1f63c","native":"😼"}],"version":1},"kissing_cat":{"id":"kissing_cat","name":"Kissing Cat","keywords":["animal","cats","kiss"],"skins":[{"unified":"1f63d","native":"😽"}],"version":1},"scream_cat":{"id":"scream_cat","name":"Weary Cat","keywords":["scream","animal","cats","munch","scared"],"skins":[{"unified":"1f640","native":"🙀"}],"version":1},"crying_cat_face":{"id":"crying_cat_face","name":"Crying Cat","keywords":["face","animal","tears","weep","sad","cats","upset","cry"],"skins":[{"unified":"1f63f","native":"😿"}],"version":1},"pouting_cat":{"id":"pouting_cat","name":"Pouting Cat","keywords":["animal","cats"],"skins":[{"unified":"1f63e","native":"😾"}],"version":1},"see_no_evil":{"id":"see_no_evil","name":"See-No-Evil Monkey","keywords":["see","no","evil","animal","nature","haha"],"skins":[{"unified":"1f648","native":"🙈"}],"version":1},"hear_no_evil":{"id":"hear_no_evil","name":"Hear-No-Evil Monkey","keywords":["hear","no","evil","animal","nature"],"skins":[{"unified":"1f649","native":"🙉"}],"version":1},"speak_no_evil":{"id":"speak_no_evil","name":"Speak-No-Evil Monkey","keywords":["speak","no","evil","animal","nature","omg"],"skins":[{"unified":"1f64a","native":"🙊"}],"version":1},"love_letter":{"id":"love_letter","name":"Love Letter","keywords":["email","like","affection","envelope","valentines"],"skins":[{"unified":"1f48c","native":"💌"}],"version":1},"cupid":{"id":"cupid","name":"Heart with Arrow","keywords":["cupid","love","like","affection","valentines"],"skins":[{"unified":"1f498","native":"💘"}],"version":1},"gift_heart":{"id":"gift_heart","name":"Heart with Ribbon","keywords":["gift","love","valentines"],"skins":[{"unified":"1f49d","native":"💝"}],"version":1},"sparkling_heart":{"id":"sparkling_heart","name":"Sparkling Heart","keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f496","native":"💖"}],"version":1},"heartpulse":{"id":"heartpulse","name":"Growing Heart","keywords":["heartpulse","like","love","affection","valentines","pink"],"skins":[{"unified":"1f497","native":"💗"}],"version":1},"heartbeat":{"id":"heartbeat","name":"Beating Heart","keywords":["heartbeat","love","like","affection","valentines","pink"],"skins":[{"unified":"1f493","native":"💓"}],"version":1},"revolving_hearts":{"id":"revolving_hearts","name":"Revolving Hearts","keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f49e","native":"💞"}],"version":1},"two_hearts":{"id":"two_hearts","name":"Two Hearts","keywords":["love","like","affection","valentines","heart"],"skins":[{"unified":"1f495","native":"💕"}],"version":1},"heart_decoration":{"id":"heart_decoration","name":"Heart Decoration","keywords":["purple","square","love","like"],"skins":[{"unified":"1f49f","native":"💟"}],"version":1},"heavy_heart_exclamation_mark_ornament":{"id":"heavy_heart_exclamation_mark_ornament","name":"Heart Exclamation","keywords":["heavy","mark","ornament","decoration","love"],"skins":[{"unified":"2763-fe0f","native":"❣️"}],"version":1},"broken_heart":{"id":"broken_heart","name":"Broken Heart","emoticons":["</3"],"keywords":["sad","sorry","break","heartbreak"],"skins":[{"unified":"1f494","native":"💔"}],"version":1},"heart_on_fire":{"id":"heart_on_fire","name":"Heart on Fire","keywords":["passionate","enthusiastic"],"skins":[{"unified":"2764-fe0f-200d-1f525","native":"❤️🔥"}],"version":13.1},"mending_heart":{"id":"mending_heart","name":"Mending Heart","keywords":["broken","bandage","wounded"],"skins":[{"unified":"2764-fe0f-200d-1fa79","native":"❤️🩹"}],"version":13.1},"heart":{"id":"heart","name":"Red Heart","emoticons":["<3"],"keywords":["love","like","valentines"],"skins":[{"unified":"2764-fe0f","native":"❤️"}],"version":1},"pink_heart":{"id":"pink_heart","name":"Pink Heart","keywords":["valentines"],"skins":[{"unified":"1fa77","native":"🩷"}],"version":15},"orange_heart":{"id":"orange_heart","name":"Orange Heart","keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f9e1","native":"🧡"}],"version":5},"yellow_heart":{"id":"yellow_heart","name":"Yellow Heart","emoticons":["<3"],"keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f49b","native":"💛"}],"version":1},"green_heart":{"id":"green_heart","name":"Green Heart","emoticons":["<3"],"keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f49a","native":"💚"}],"version":1},"blue_heart":{"id":"blue_heart","name":"Blue Heart","emoticons":["<3"],"keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f499","native":"💙"}],"version":1},"light_blue_heart":{"id":"light_blue_heart","name":"Light Blue Heart","keywords":["ice","baby"],"skins":[{"unified":"1fa75","native":"🩵"}],"version":15},"purple_heart":{"id":"purple_heart","name":"Purple Heart","emoticons":["<3"],"keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f49c","native":"💜"}],"version":1},"brown_heart":{"id":"brown_heart","name":"Brown Heart","keywords":["coffee"],"skins":[{"unified":"1f90e","native":"🤎"}],"version":12},"black_heart":{"id":"black_heart","name":"Black Heart","keywords":["evil"],"skins":[{"unified":"1f5a4","native":"🖤"}],"version":3},"grey_heart":{"id":"grey_heart","name":"Grey Heart","keywords":["silver","monochrome"],"skins":[{"unified":"1fa76","native":"🩶"}],"version":15},"white_heart":{"id":"white_heart","name":"White Heart","keywords":["pure"],"skins":[{"unified":"1f90d","native":"🤍"}],"version":12},"kiss":{"id":"kiss","name":"Kiss Mark","keywords":["face","lips","love","like","affection","valentines"],"skins":[{"unified":"1f48b","native":"💋"}],"version":1},"anger":{"id":"anger","name":"Anger Symbol","keywords":["angry","mad"],"skins":[{"unified":"1f4a2","native":"💢"}],"version":1},"boom":{"id":"boom","name":"Collision","keywords":["boom","bomb","explode","explosion","blown"],"skins":[{"unified":"1f4a5","native":"💥"}],"version":1},"dizzy":{"id":"dizzy","name":"Dizzy","keywords":["star","sparkle","shoot","magic"],"skins":[{"unified":"1f4ab","native":"💫"}],"version":1},"sweat_drops":{"id":"sweat_drops","name":"Sweat Droplets","keywords":["drops","water","drip","oops"],"skins":[{"unified":"1f4a6","native":"💦"}],"version":1},"dash":{"id":"dash","name":"Dash Symbol","keywords":["dashing","away","wind","air","fast","shoo","fart","smoke","puff"],"skins":[{"unified":"1f4a8","native":"💨"}],"version":1},"hole":{"id":"hole","name":"Hole","keywords":["embarrassing"],"skins":[{"unified":"1f573-fe0f","native":"🕳️"}],"version":1},"speech_balloon":{"id":"speech_balloon","name":"Speech Balloon","keywords":["bubble","words","message","talk","chatting"],"skins":[{"unified":"1f4ac","native":"💬"}],"version":1},"eye-in-speech-bubble":{"id":"eye-in-speech-bubble","name":"Eye in Speech Bubble","keywords":["in-speech-bubble","info"],"skins":[{"unified":"1f441-fe0f-200d-1f5e8-fe0f","native":"👁️🗨️"}],"version":2},"left_speech_bubble":{"id":"left_speech_bubble","name":"Left Speech Bubble","keywords":["words","message","talk","chatting"],"skins":[{"unified":"1f5e8-fe0f","native":"🗨️"}],"version":2},"right_anger_bubble":{"id":"right_anger_bubble","name":"Right Anger Bubble","keywords":["caption","speech","thinking","mad"],"skins":[{"unified":"1f5ef-fe0f","native":"🗯️"}],"version":1},"thought_balloon":{"id":"thought_balloon","name":"Thought Balloon","keywords":["bubble","cloud","speech","thinking","dream"],"skins":[{"unified":"1f4ad","native":"💭"}],"version":1},"zzz":{"id":"zzz","name":"Zzz","keywords":["sleepy","tired","dream"],"skins":[{"unified":"1f4a4","native":"💤"}],"version":1},"wave":{"id":"wave","name":"Waving Hand","keywords":["wave","hands","gesture","goodbye","solong","farewell","hello","hi","palm"],"skins":[{"unified":"1f44b","native":"👋"},{"unified":"1f44b-1f3fb","native":"👋🏻"},{"unified":"1f44b-1f3fc","native":"👋🏼"},{"unified":"1f44b-1f3fd","native":"👋🏽"},{"unified":"1f44b-1f3fe","native":"👋🏾"},{"unified":"1f44b-1f3ff","native":"👋🏿"}],"version":1},"raised_back_of_hand":{"id":"raised_back_of_hand","name":"Raised Back of Hand","keywords":["fingers","backhand"],"skins":[{"unified":"1f91a","native":"🤚"},{"unified":"1f91a-1f3fb","native":"🤚🏻"},{"unified":"1f91a-1f3fc","native":"🤚🏼"},{"unified":"1f91a-1f3fd","native":"🤚🏽"},{"unified":"1f91a-1f3fe","native":"🤚🏾"},{"unified":"1f91a-1f3ff","native":"🤚🏿"}],"version":3},"raised_hand_with_fingers_splayed":{"id":"raised_hand_with_fingers_splayed","name":"Hand with Fingers Splayed","keywords":["raised","palm"],"skins":[{"unified":"1f590-fe0f","native":"🖐️"},{"unified":"1f590-1f3fb","native":"🖐🏻"},{"unified":"1f590-1f3fc","native":"🖐🏼"},{"unified":"1f590-1f3fd","native":"🖐🏽"},{"unified":"1f590-1f3fe","native":"🖐🏾"},{"unified":"1f590-1f3ff","native":"🖐🏿"}],"version":1},"hand":{"id":"hand","name":"Raised Hand","keywords":["fingers","stop","highfive","high","five","palm","ban"],"skins":[{"unified":"270b","native":"✋"},{"unified":"270b-1f3fb","native":"✋🏻"},{"unified":"270b-1f3fc","native":"✋🏼"},{"unified":"270b-1f3fd","native":"✋🏽"},{"unified":"270b-1f3fe","native":"✋🏾"},{"unified":"270b-1f3ff","native":"✋🏿"}],"version":1},"spock-hand":{"id":"spock-hand","name":"Vulcan Salute","keywords":["spock","hand","fingers","star","trek"],"skins":[{"unified":"1f596","native":"🖖"},{"unified":"1f596-1f3fb","native":"🖖🏻"},{"unified":"1f596-1f3fc","native":"🖖🏼"},{"unified":"1f596-1f3fd","native":"🖖🏽"},{"unified":"1f596-1f3fe","native":"🖖🏾"},{"unified":"1f596-1f3ff","native":"🖖🏿"}],"version":1},"rightwards_hand":{"id":"rightwards_hand","name":"Rightwards Hand","keywords":["palm","offer"],"skins":[{"unified":"1faf1","native":"🫱"},{"unified":"1faf1-1f3fb","native":"🫱🏻"},{"unified":"1faf1-1f3fc","native":"🫱🏼"},{"unified":"1faf1-1f3fd","native":"🫱🏽"},{"unified":"1faf1-1f3fe","native":"🫱🏾"},{"unified":"1faf1-1f3ff","native":"🫱🏿"}],"version":14},"leftwards_hand":{"id":"leftwards_hand","name":"Leftwards Hand","keywords":["palm","offer"],"skins":[{"unified":"1faf2","native":"🫲"},{"unified":"1faf2-1f3fb","native":"🫲🏻"},{"unified":"1faf2-1f3fc","native":"🫲🏼"},{"unified":"1faf2-1f3fd","native":"🫲🏽"},{"unified":"1faf2-1f3fe","native":"🫲🏾"},{"unified":"1faf2-1f3ff","native":"🫲🏿"}],"version":14},"palm_down_hand":{"id":"palm_down_hand","name":"Palm Down Hand","keywords":["drop"],"skins":[{"unified":"1faf3","native":"🫳"},{"unified":"1faf3-1f3fb","native":"🫳🏻"},{"unified":"1faf3-1f3fc","native":"🫳🏼"},{"unified":"1faf3-1f3fd","native":"🫳🏽"},{"unified":"1faf3-1f3fe","native":"🫳🏾"},{"unified":"1faf3-1f3ff","native":"🫳🏿"}],"version":14},"palm_up_hand":{"id":"palm_up_hand","name":"Palm Up Hand","keywords":["lift","offer","demand"],"skins":[{"unified":"1faf4","native":"🫴"},{"unified":"1faf4-1f3fb","native":"🫴🏻"},{"unified":"1faf4-1f3fc","native":"🫴🏼"},{"unified":"1faf4-1f3fd","native":"🫴🏽"},{"unified":"1faf4-1f3fe","native":"🫴🏾"},{"unified":"1faf4-1f3ff","native":"🫴🏿"}],"version":14},"leftwards_pushing_hand":{"id":"leftwards_pushing_hand","name":"Leftwards Pushing Hand","keywords":["highfive","high","five","pressing","stop"],"skins":[{"unified":"1faf7","native":"🫷"},{"unified":"1faf7-1f3fb","native":"🫷🏻"},{"unified":"1faf7-1f3fc","native":"🫷🏼"},{"unified":"1faf7-1f3fd","native":"🫷🏽"},{"unified":"1faf7-1f3fe","native":"🫷🏾"},{"unified":"1faf7-1f3ff","native":"🫷🏿"}],"version":15},"rightwards_pushing_hand":{"id":"rightwards_pushing_hand","name":"Rightwards Pushing Hand","keywords":["highfive","high","five","pressing","stop"],"skins":[{"unified":"1faf8","native":"🫸"},{"unified":"1faf8-1f3fb","native":"🫸🏻"},{"unified":"1faf8-1f3fc","native":"🫸🏼"},{"unified":"1faf8-1f3fd","native":"🫸🏽"},{"unified":"1faf8-1f3fe","native":"🫸🏾"},{"unified":"1faf8-1f3ff","native":"🫸🏿"}],"version":15},"ok_hand":{"id":"ok_hand","name":"Ok Hand","keywords":["fingers","limbs","perfect","okay"],"skins":[{"unified":"1f44c","native":"👌"},{"unified":"1f44c-1f3fb","native":"👌🏻"},{"unified":"1f44c-1f3fc","native":"👌🏼"},{"unified":"1f44c-1f3fd","native":"👌🏽"},{"unified":"1f44c-1f3fe","native":"👌🏾"},{"unified":"1f44c-1f3ff","native":"👌🏿"}],"version":1},"pinched_fingers":{"id":"pinched_fingers","name":"Pinched Fingers","keywords":["size","tiny","small"],"skins":[{"unified":"1f90c","native":"🤌"},{"unified":"1f90c-1f3fb","native":"🤌🏻"},{"unified":"1f90c-1f3fc","native":"🤌🏼"},{"unified":"1f90c-1f3fd","native":"🤌🏽"},{"unified":"1f90c-1f3fe","native":"🤌🏾"},{"unified":"1f90c-1f3ff","native":"🤌🏿"}],"version":13},"pinching_hand":{"id":"pinching_hand","name":"Pinching Hand","keywords":["tiny","small","size"],"skins":[{"unified":"1f90f","native":"🤏"},{"unified":"1f90f-1f3fb","native":"🤏🏻"},{"unified":"1f90f-1f3fc","native":"🤏🏼"},{"unified":"1f90f-1f3fd","native":"🤏🏽"},{"unified":"1f90f-1f3fe","native":"🤏🏾"},{"unified":"1f90f-1f3ff","native":"🤏🏿"}],"version":12},"v":{"id":"v","name":"Victory Hand","keywords":["v","fingers","ohyeah","peace","two"],"skins":[{"unified":"270c-fe0f","native":"✌️"},{"unified":"270c-1f3fb","native":"✌🏻"},{"unified":"270c-1f3fc","native":"✌🏼"},{"unified":"270c-1f3fd","native":"✌🏽"},{"unified":"270c-1f3fe","native":"✌🏾"},{"unified":"270c-1f3ff","native":"✌🏿"}],"version":1},"crossed_fingers":{"id":"crossed_fingers","name":"Crossed Fingers","keywords":["hand","with","index","and","middle","good","lucky"],"skins":[{"unified":"1f91e","native":"🤞"},{"unified":"1f91e-1f3fb","native":"🤞🏻"},{"unified":"1f91e-1f3fc","native":"🤞🏼"},{"unified":"1f91e-1f3fd","native":"🤞🏽"},{"unified":"1f91e-1f3fe","native":"🤞🏾"},{"unified":"1f91e-1f3ff","native":"🤞🏿"}],"version":3},"hand_with_index_finger_and_thumb_crossed":{"id":"hand_with_index_finger_and_thumb_crossed","name":"Hand with Index Finger and Thumb Crossed","keywords":["heart","love","money","expensive"],"skins":[{"unified":"1faf0","native":"🫰"},{"unified":"1faf0-1f3fb","native":"🫰🏻"},{"unified":"1faf0-1f3fc","native":"🫰🏼"},{"unified":"1faf0-1f3fd","native":"🫰🏽"},{"unified":"1faf0-1f3fe","native":"🫰🏾"},{"unified":"1faf0-1f3ff","native":"🫰🏿"}],"version":14},"i_love_you_hand_sign":{"id":"i_love_you_hand_sign","name":"Love-You Gesture","keywords":["i","love","you","hand","sign","fingers"],"skins":[{"unified":"1f91f","native":"🤟"},{"unified":"1f91f-1f3fb","native":"🤟🏻"},{"unified":"1f91f-1f3fc","native":"🤟🏼"},{"unified":"1f91f-1f3fd","native":"🤟🏽"},{"unified":"1f91f-1f3fe","native":"🤟🏾"},{"unified":"1f91f-1f3ff","native":"🤟🏿"}],"version":5},"the_horns":{"id":"the_horns","name":"Sign of the Horns","keywords":["hand","fingers","evil","eye","rock","on"],"skins":[{"unified":"1f918","native":"🤘"},{"unified":"1f918-1f3fb","native":"🤘🏻"},{"unified":"1f918-1f3fc","native":"🤘🏼"},{"unified":"1f918-1f3fd","native":"🤘🏽"},{"unified":"1f918-1f3fe","native":"🤘🏾"},{"unified":"1f918-1f3ff","native":"🤘🏿"}],"version":1},"call_me_hand":{"id":"call_me_hand","name":"Call Me Hand","keywords":["hands","gesture","shaka"],"skins":[{"unified":"1f919","native":"🤙"},{"unified":"1f919-1f3fb","native":"🤙🏻"},{"unified":"1f919-1f3fc","native":"🤙🏼"},{"unified":"1f919-1f3fd","native":"🤙🏽"},{"unified":"1f919-1f3fe","native":"🤙🏾"},{"unified":"1f919-1f3ff","native":"🤙🏿"}],"version":3},"point_left":{"id":"point_left","name":"Backhand Index Pointing Left","keywords":["point","direction","fingers","hand"],"skins":[{"unified":"1f448","native":"👈"},{"unified":"1f448-1f3fb","native":"👈🏻"},{"unified":"1f448-1f3fc","native":"👈🏼"},{"unified":"1f448-1f3fd","native":"👈🏽"},{"unified":"1f448-1f3fe","native":"👈🏾"},{"unified":"1f448-1f3ff","native":"👈🏿"}],"version":1},"point_right":{"id":"point_right","name":"Backhand Index Pointing Right","keywords":["point","fingers","hand","direction"],"skins":[{"unified":"1f449","native":"👉"},{"unified":"1f449-1f3fb","native":"👉🏻"},{"unified":"1f449-1f3fc","native":"👉🏼"},{"unified":"1f449-1f3fd","native":"👉🏽"},{"unified":"1f449-1f3fe","native":"👉🏾"},{"unified":"1f449-1f3ff","native":"👉🏿"}],"version":1},"point_up_2":{"id":"point_up_2","name":"Backhand Index Pointing Up","keywords":["point","2","fingers","hand","direction"],"skins":[{"unified":"1f446","native":"👆"},{"unified":"1f446-1f3fb","native":"👆🏻"},{"unified":"1f446-1f3fc","native":"👆🏼"},{"unified":"1f446-1f3fd","native":"👆🏽"},{"unified":"1f446-1f3fe","native":"👆🏾"},{"unified":"1f446-1f3ff","native":"👆🏿"}],"version":1},"middle_finger":{"id":"middle_finger","name":"Middle Finger","keywords":["reversed","hand","with","extended","fingers","rude","flipping"],"skins":[{"unified":"1f595","native":"🖕"},{"unified":"1f595-1f3fb","native":"🖕🏻"},{"unified":"1f595-1f3fc","native":"🖕🏼"},{"unified":"1f595-1f3fd","native":"🖕🏽"},{"unified":"1f595-1f3fe","native":"🖕🏾"},{"unified":"1f595-1f3ff","native":"🖕🏿"}],"version":1},"point_down":{"id":"point_down","name":"Backhand Index Pointing Down","keywords":["point","fingers","hand","direction"],"skins":[{"unified":"1f447","native":"👇"},{"unified":"1f447-1f3fb","native":"👇🏻"},{"unified":"1f447-1f3fc","native":"👇🏼"},{"unified":"1f447-1f3fd","native":"👇🏽"},{"unified":"1f447-1f3fe","native":"👇🏾"},{"unified":"1f447-1f3ff","native":"👇🏿"}],"version":1},"point_up":{"id":"point_up","name":"Index Pointing Up","keywords":["point","hand","fingers","direction"],"skins":[{"unified":"261d-fe0f","native":"☝️"},{"unified":"261d-1f3fb","native":"☝🏻"},{"unified":"261d-1f3fc","native":"☝🏼"},{"unified":"261d-1f3fd","native":"☝🏽"},{"unified":"261d-1f3fe","native":"☝🏾"},{"unified":"261d-1f3ff","native":"☝🏿"}],"version":1},"index_pointing_at_the_viewer":{"id":"index_pointing_at_the_viewer","name":"Index Pointing at the Viewer","keywords":["you","recruit"],"skins":[{"unified":"1faf5","native":"🫵"},{"unified":"1faf5-1f3fb","native":"🫵🏻"},{"unified":"1faf5-1f3fc","native":"🫵🏼"},{"unified":"1faf5-1f3fd","native":"🫵🏽"},{"unified":"1faf5-1f3fe","native":"🫵🏾"},{"unified":"1faf5-1f3ff","native":"🫵🏿"}],"version":14},"+1":{"id":"+1","name":"Thumbs Up","keywords":["+1","thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],"skins":[{"unified":"1f44d","native":"👍"},{"unified":"1f44d-1f3fb","native":"👍🏻"},{"unified":"1f44d-1f3fc","native":"👍🏼"},{"unified":"1f44d-1f3fd","native":"👍🏽"},{"unified":"1f44d-1f3fe","native":"👍🏾"},{"unified":"1f44d-1f3ff","native":"👍🏿"}],"version":1},"-1":{"id":"-1","name":"Thumbs Down","keywords":["-1","thumbsdown","no","dislike","hand"],"skins":[{"unified":"1f44e","native":"👎"},{"unified":"1f44e-1f3fb","native":"👎🏻"},{"unified":"1f44e-1f3fc","native":"👎🏼"},{"unified":"1f44e-1f3fd","native":"👎🏽"},{"unified":"1f44e-1f3fe","native":"👎🏾"},{"unified":"1f44e-1f3ff","native":"👎🏿"}],"version":1},"fist":{"id":"fist","name":"Raised Fist","keywords":["fingers","hand","grasp"],"skins":[{"unified":"270a","native":"✊"},{"unified":"270a-1f3fb","native":"✊🏻"},{"unified":"270a-1f3fc","native":"✊🏼"},{"unified":"270a-1f3fd","native":"✊🏽"},{"unified":"270a-1f3fe","native":"✊🏾"},{"unified":"270a-1f3ff","native":"✊🏿"}],"version":1},"facepunch":{"id":"facepunch","name":"Oncoming Fist","keywords":["facepunch","punch","angry","violence","hit","attack","hand"],"skins":[{"unified":"1f44a","native":"👊"},{"unified":"1f44a-1f3fb","native":"👊🏻"},{"unified":"1f44a-1f3fc","native":"👊🏼"},{"unified":"1f44a-1f3fd","native":"👊🏽"},{"unified":"1f44a-1f3fe","native":"👊🏾"},{"unified":"1f44a-1f3ff","native":"👊🏿"}],"version":1},"left-facing_fist":{"id":"left-facing_fist","name":"Left-Facing Fist","keywords":["left","facing","hand","fistbump"],"skins":[{"unified":"1f91b","native":"🤛"},{"unified":"1f91b-1f3fb","native":"🤛🏻"},{"unified":"1f91b-1f3fc","native":"🤛🏼"},{"unified":"1f91b-1f3fd","native":"🤛🏽"},{"unified":"1f91b-1f3fe","native":"🤛🏾"},{"unified":"1f91b-1f3ff","native":"🤛🏿"}],"version":3},"right-facing_fist":{"id":"right-facing_fist","name":"Right-Facing Fist","keywords":["right","facing","hand","fistbump"],"skins":[{"unified":"1f91c","native":"🤜"},{"unified":"1f91c-1f3fb","native":"🤜🏻"},{"unified":"1f91c-1f3fc","native":"🤜🏼"},{"unified":"1f91c-1f3fd","native":"🤜🏽"},{"unified":"1f91c-1f3fe","native":"🤜🏾"},{"unified":"1f91c-1f3ff","native":"🤜🏿"}],"version":3},"clap":{"id":"clap","name":"Clapping Hands","keywords":["clap","praise","applause","congrats","yay"],"skins":[{"unified":"1f44f","native":"👏"},{"unified":"1f44f-1f3fb","native":"👏🏻"},{"unified":"1f44f-1f3fc","native":"👏🏼"},{"unified":"1f44f-1f3fd","native":"👏🏽"},{"unified":"1f44f-1f3fe","native":"👏🏾"},{"unified":"1f44f-1f3ff","native":"👏🏿"}],"version":1},"raised_hands":{"id":"raised_hands","name":"Raising Hands","keywords":["raised","gesture","hooray","yea","celebration"],"skins":[{"unified":"1f64c","native":"🙌"},{"unified":"1f64c-1f3fb","native":"🙌🏻"},{"unified":"1f64c-1f3fc","native":"🙌🏼"},{"unified":"1f64c-1f3fd","native":"🙌🏽"},{"unified":"1f64c-1f3fe","native":"🙌🏾"},{"unified":"1f64c-1f3ff","native":"🙌🏿"}],"version":1},"heart_hands":{"id":"heart_hands","name":"Heart Hands","keywords":["love","appreciation","support"],"skins":[{"unified":"1faf6","native":"🫶"},{"unified":"1faf6-1f3fb","native":"🫶🏻"},{"unified":"1faf6-1f3fc","native":"🫶🏼"},{"unified":"1faf6-1f3fd","native":"🫶🏽"},{"unified":"1faf6-1f3fe","native":"🫶🏾"},{"unified":"1faf6-1f3ff","native":"🫶🏿"}],"version":14},"open_hands":{"id":"open_hands","name":"Open Hands","keywords":["fingers","butterfly"],"skins":[{"unified":"1f450","native":"👐"},{"unified":"1f450-1f3fb","native":"👐🏻"},{"unified":"1f450-1f3fc","native":"👐🏼"},{"unified":"1f450-1f3fd","native":"👐🏽"},{"unified":"1f450-1f3fe","native":"👐🏾"},{"unified":"1f450-1f3ff","native":"👐🏿"}],"version":1},"palms_up_together":{"id":"palms_up_together","name":"Palms Up Together","keywords":["hands","gesture","cupped","prayer"],"skins":[{"unified":"1f932","native":"🤲"},{"unified":"1f932-1f3fb","native":"🤲🏻"},{"unified":"1f932-1f3fc","native":"🤲🏼"},{"unified":"1f932-1f3fd","native":"🤲🏽"},{"unified":"1f932-1f3fe","native":"🤲🏾"},{"unified":"1f932-1f3ff","native":"🤲🏿"}],"version":5},"handshake":{"id":"handshake","name":"Handshake","keywords":["agreement","shake"],"skins":[{"unified":"1f91d","native":"🤝"},{"unified":"1f91d-1f3fb","native":"🤝🏻"},{"unified":"1f91d-1f3fc","native":"🤝🏼"},{"unified":"1f91d-1f3fd","native":"🤝🏽"},{"unified":"1f91d-1f3fe","native":"🤝🏾"},{"unified":"1f91d-1f3ff","native":"🤝🏿"}],"version":3},"pray":{"id":"pray","name":"Folded Hands","keywords":["pray","please","hope","wish","namaste","highfive","high","five","thank","you","thanks","appreciate"],"skins":[{"unified":"1f64f","native":"🙏"},{"unified":"1f64f-1f3fb","native":"🙏🏻"},{"unified":"1f64f-1f3fc","native":"🙏🏼"},{"unified":"1f64f-1f3fd","native":"🙏🏽"},{"unified":"1f64f-1f3fe","native":"🙏🏾"},{"unified":"1f64f-1f3ff","native":"🙏🏿"}],"version":1},"writing_hand":{"id":"writing_hand","name":"Writing Hand","keywords":["lower","left","ballpoint","pen","stationery","write","compose"],"skins":[{"unified":"270d-fe0f","native":"✍️"},{"unified":"270d-1f3fb","native":"✍🏻"},{"unified":"270d-1f3fc","native":"✍🏼"},{"unified":"270d-1f3fd","native":"✍🏽"},{"unified":"270d-1f3fe","native":"✍🏾"},{"unified":"270d-1f3ff","native":"✍🏿"}],"version":1},"nail_care":{"id":"nail_care","name":"Nail Polish","keywords":["care","beauty","manicure","finger","fashion"],"skins":[{"unified":"1f485","native":"💅"},{"unified":"1f485-1f3fb","native":"💅🏻"},{"unified":"1f485-1f3fc","native":"💅🏼"},{"unified":"1f485-1f3fd","native":"💅🏽"},{"unified":"1f485-1f3fe","native":"💅🏾"},{"unified":"1f485-1f3ff","native":"💅🏿"}],"version":1},"selfie":{"id":"selfie","name":"Selfie","keywords":["camera","phone"],"skins":[{"unified":"1f933","native":"🤳"},{"unified":"1f933-1f3fb","native":"🤳🏻"},{"unified":"1f933-1f3fc","native":"🤳🏼"},{"unified":"1f933-1f3fd","native":"🤳🏽"},{"unified":"1f933-1f3fe","native":"🤳🏾"},{"unified":"1f933-1f3ff","native":"🤳🏿"}],"version":3},"muscle":{"id":"muscle","name":"Flexed Biceps","keywords":["muscle","arm","flex","hand","summer","strong"],"skins":[{"unified":"1f4aa","native":"💪"},{"unified":"1f4aa-1f3fb","native":"💪🏻"},{"unified":"1f4aa-1f3fc","native":"💪🏼"},{"unified":"1f4aa-1f3fd","native":"💪🏽"},{"unified":"1f4aa-1f3fe","native":"💪🏾"},{"unified":"1f4aa-1f3ff","native":"💪🏿"}],"version":1},"mechanical_arm":{"id":"mechanical_arm","name":"Mechanical Arm","keywords":["accessibility"],"skins":[{"unified":"1f9be","native":"🦾"}],"version":12},"mechanical_leg":{"id":"mechanical_leg","name":"Mechanical Leg","keywords":["accessibility"],"skins":[{"unified":"1f9bf","native":"🦿"}],"version":12},"leg":{"id":"leg","name":"Leg","keywords":["kick","limb"],"skins":[{"unified":"1f9b5","native":"🦵"},{"unified":"1f9b5-1f3fb","native":"🦵🏻"},{"unified":"1f9b5-1f3fc","native":"🦵🏼"},{"unified":"1f9b5-1f3fd","native":"🦵🏽"},{"unified":"1f9b5-1f3fe","native":"🦵🏾"},{"unified":"1f9b5-1f3ff","native":"🦵🏿"}],"version":11},"foot":{"id":"foot","name":"Foot","keywords":["kick","stomp"],"skins":[{"unified":"1f9b6","native":"🦶"},{"unified":"1f9b6-1f3fb","native":"🦶🏻"},{"unified":"1f9b6-1f3fc","native":"🦶🏼"},{"unified":"1f9b6-1f3fd","native":"🦶🏽"},{"unified":"1f9b6-1f3fe","native":"🦶🏾"},{"unified":"1f9b6-1f3ff","native":"🦶🏿"}],"version":11},"ear":{"id":"ear","name":"Ear","keywords":["face","hear","sound","listen"],"skins":[{"unified":"1f442","native":"👂"},{"unified":"1f442-1f3fb","native":"👂🏻"},{"unified":"1f442-1f3fc","native":"👂🏼"},{"unified":"1f442-1f3fd","native":"👂🏽"},{"unified":"1f442-1f3fe","native":"👂🏾"},{"unified":"1f442-1f3ff","native":"👂🏿"}],"version":1},"ear_with_hearing_aid":{"id":"ear_with_hearing_aid","name":"Ear with Hearing Aid","keywords":["accessibility"],"skins":[{"unified":"1f9bb","native":"🦻"},{"unified":"1f9bb-1f3fb","native":"🦻🏻"},{"unified":"1f9bb-1f3fc","native":"🦻🏼"},{"unified":"1f9bb-1f3fd","native":"🦻🏽"},{"unified":"1f9bb-1f3fe","native":"🦻🏾"},{"unified":"1f9bb-1f3ff","native":"🦻🏿"}],"version":12},"nose":{"id":"nose","name":"Nose","keywords":["smell","sniff"],"skins":[{"unified":"1f443","native":"👃"},{"unified":"1f443-1f3fb","native":"👃🏻"},{"unified":"1f443-1f3fc","native":"👃🏼"},{"unified":"1f443-1f3fd","native":"👃🏽"},{"unified":"1f443-1f3fe","native":"👃🏾"},{"unified":"1f443-1f3ff","native":"👃🏿"}],"version":1},"brain":{"id":"brain","name":"Brain","keywords":["smart","intelligent"],"skins":[{"unified":"1f9e0","native":"🧠"}],"version":5},"anatomical_heart":{"id":"anatomical_heart","name":"Anatomical Heart","keywords":["health","heartbeat"],"skins":[{"unified":"1fac0","native":"🫀"}],"version":13},"lungs":{"id":"lungs","name":"Lungs","keywords":["breathe"],"skins":[{"unified":"1fac1","native":"🫁"}],"version":13},"tooth":{"id":"tooth","name":"Tooth","keywords":["teeth","dentist"],"skins":[{"unified":"1f9b7","native":"🦷"}],"version":11},"bone":{"id":"bone","name":"Bone","keywords":["skeleton"],"skins":[{"unified":"1f9b4","native":"🦴"}],"version":11},"eyes":{"id":"eyes","name":"Eyes","keywords":["look","watch","stalk","peek","see"],"skins":[{"unified":"1f440","native":"👀"}],"version":1},"eye":{"id":"eye","name":"Eye","keywords":["face","look","see","watch","stare"],"skins":[{"unified":"1f441-fe0f","native":"👁️"}],"version":1},"tongue":{"id":"tongue","name":"Tongue","keywords":["mouth","playful"],"skins":[{"unified":"1f445","native":"👅"}],"version":1},"lips":{"id":"lips","name":"Mouth","keywords":["lips","kiss"],"skins":[{"unified":"1f444","native":"👄"}],"version":1},"biting_lip":{"id":"biting_lip","name":"Biting Lip","keywords":["flirt","sexy","pain","worry"],"skins":[{"unified":"1fae6","native":"🫦"}],"version":14},"baby":{"id":"baby","name":"Baby","keywords":["child","boy","girl","toddler"],"skins":[{"unified":"1f476","native":"👶"},{"unified":"1f476-1f3fb","native":"👶🏻"},{"unified":"1f476-1f3fc","native":"👶🏼"},{"unified":"1f476-1f3fd","native":"👶🏽"},{"unified":"1f476-1f3fe","native":"👶🏾"},{"unified":"1f476-1f3ff","native":"👶🏿"}],"version":1},"child":{"id":"child","name":"Child","keywords":["gender","neutral","young"],"skins":[{"unified":"1f9d2","native":"🧒"},{"unified":"1f9d2-1f3fb","native":"🧒🏻"},{"unified":"1f9d2-1f3fc","native":"🧒🏼"},{"unified":"1f9d2-1f3fd","native":"🧒🏽"},{"unified":"1f9d2-1f3fe","native":"🧒🏾"},{"unified":"1f9d2-1f3ff","native":"🧒🏿"}],"version":5},"boy":{"id":"boy","name":"Boy","keywords":["man","male","guy","teenager"],"skins":[{"unified":"1f466","native":"👦"},{"unified":"1f466-1f3fb","native":"👦🏻"},{"unified":"1f466-1f3fc","native":"👦🏼"},{"unified":"1f466-1f3fd","native":"👦🏽"},{"unified":"1f466-1f3fe","native":"👦🏾"},{"unified":"1f466-1f3ff","native":"👦🏿"}],"version":1},"girl":{"id":"girl","name":"Girl","keywords":["female","woman","teenager"],"skins":[{"unified":"1f467","native":"👧"},{"unified":"1f467-1f3fb","native":"👧🏻"},{"unified":"1f467-1f3fc","native":"👧🏼"},{"unified":"1f467-1f3fd","native":"👧🏽"},{"unified":"1f467-1f3fe","native":"👧🏾"},{"unified":"1f467-1f3ff","native":"👧🏿"}],"version":1},"adult":{"id":"adult","name":"Adult","keywords":["person","gender","neutral"],"skins":[{"unified":"1f9d1","native":"🧑"},{"unified":"1f9d1-1f3fb","native":"🧑🏻"},{"unified":"1f9d1-1f3fc","native":"🧑🏼"},{"unified":"1f9d1-1f3fd","native":"🧑🏽"},{"unified":"1f9d1-1f3fe","native":"🧑🏾"},{"unified":"1f9d1-1f3ff","native":"🧑🏿"}],"version":5},"person_with_blond_hair":{"id":"person_with_blond_hair","name":"Person Blond Hair","keywords":["with","hairstyle"],"skins":[{"unified":"1f471","native":"👱"},{"unified":"1f471-1f3fb","native":"👱🏻"},{"unified":"1f471-1f3fc","native":"👱🏼"},{"unified":"1f471-1f3fd","native":"👱🏽"},{"unified":"1f471-1f3fe","native":"👱🏾"},{"unified":"1f471-1f3ff","native":"👱🏿"}],"version":1},"man":{"id":"man","name":"Man","keywords":["mustache","father","dad","guy","classy","sir","moustache"],"skins":[{"unified":"1f468","native":"👨"},{"unified":"1f468-1f3fb","native":"👨🏻"},{"unified":"1f468-1f3fc","native":"👨🏼"},{"unified":"1f468-1f3fd","native":"👨🏽"},{"unified":"1f468-1f3fe","native":"👨🏾"},{"unified":"1f468-1f3ff","native":"👨🏿"}],"version":1},"bearded_person":{"id":"bearded_person","name":"Person Beard","keywords":["bearded","man","bewhiskered"],"skins":[{"unified":"1f9d4","native":"🧔"},{"unified":"1f9d4-1f3fb","native":"🧔🏻"},{"unified":"1f9d4-1f3fc","native":"🧔🏼"},{"unified":"1f9d4-1f3fd","native":"🧔🏽"},{"unified":"1f9d4-1f3fe","native":"🧔🏾"},{"unified":"1f9d4-1f3ff","native":"🧔🏿"}],"version":5},"man_with_beard":{"id":"man_with_beard","name":"Man: Beard","keywords":["man","with","facial","hair"],"skins":[{"unified":"1f9d4-200d-2642-fe0f","native":"🧔♂️"},{"unified":"1f9d4-1f3fb-200d-2642-fe0f","native":"🧔🏻♂️"},{"unified":"1f9d4-1f3fc-200d-2642-fe0f","native":"🧔🏼♂️"},{"unified":"1f9d4-1f3fd-200d-2642-fe0f","native":"🧔🏽♂️"},{"unified":"1f9d4-1f3fe-200d-2642-fe0f","native":"🧔🏾♂️"},{"unified":"1f9d4-1f3ff-200d-2642-fe0f","native":"🧔🏿♂️"}],"version":13.1},"woman_with_beard":{"id":"woman_with_beard","name":"Woman: Beard","keywords":["woman","with","facial","hair"],"skins":[{"unified":"1f9d4-200d-2640-fe0f","native":"🧔♀️"},{"unified":"1f9d4-1f3fb-200d-2640-fe0f","native":"🧔🏻♀️"},{"unified":"1f9d4-1f3fc-200d-2640-fe0f","native":"🧔🏼♀️"},{"unified":"1f9d4-1f3fd-200d-2640-fe0f","native":"🧔🏽♀️"},{"unified":"1f9d4-1f3fe-200d-2640-fe0f","native":"🧔🏾♀️"},{"unified":"1f9d4-1f3ff-200d-2640-fe0f","native":"🧔🏿♀️"}],"version":13.1},"red_haired_man":{"id":"red_haired_man","name":"Man: Red Hair","keywords":["haired","man","hairstyle"],"skins":[{"unified":"1f468-200d-1f9b0","native":"👨🦰"},{"unified":"1f468-1f3fb-200d-1f9b0","native":"👨🏻🦰"},{"unified":"1f468-1f3fc-200d-1f9b0","native":"👨🏼🦰"},{"unified":"1f468-1f3fd-200d-1f9b0","native":"👨🏽🦰"},{"unified":"1f468-1f3fe-200d-1f9b0","native":"👨🏾🦰"},{"unified":"1f468-1f3ff-200d-1f9b0","native":"👨🏿🦰"}],"version":11},"curly_haired_man":{"id":"curly_haired_man","name":"Man: Curly Hair","keywords":["haired","man","hairstyle"],"skins":[{"unified":"1f468-200d-1f9b1","native":"👨🦱"},{"unified":"1f468-1f3fb-200d-1f9b1","native":"👨🏻🦱"},{"unified":"1f468-1f3fc-200d-1f9b1","native":"👨🏼🦱"},{"unified":"1f468-1f3fd-200d-1f9b1","native":"👨🏽🦱"},{"unified":"1f468-1f3fe-200d-1f9b1","native":"👨🏾🦱"},{"unified":"1f468-1f3ff-200d-1f9b1","native":"👨🏿🦱"}],"version":11},"white_haired_man":{"id":"white_haired_man","name":"Man: White Hair","keywords":["haired","man","old","elder"],"skins":[{"unified":"1f468-200d-1f9b3","native":"👨🦳"},{"unified":"1f468-1f3fb-200d-1f9b3","native":"👨🏻🦳"},{"unified":"1f468-1f3fc-200d-1f9b3","native":"👨🏼🦳"},{"unified":"1f468-1f3fd-200d-1f9b3","native":"👨🏽🦳"},{"unified":"1f468-1f3fe-200d-1f9b3","native":"👨🏾🦳"},{"unified":"1f468-1f3ff-200d-1f9b3","native":"👨🏿🦳"}],"version":11},"bald_man":{"id":"bald_man","name":"Man: Bald","keywords":["man","hairless"],"skins":[{"unified":"1f468-200d-1f9b2","native":"👨🦲"},{"unified":"1f468-1f3fb-200d-1f9b2","native":"👨🏻🦲"},{"unified":"1f468-1f3fc-200d-1f9b2","native":"👨🏼🦲"},{"unified":"1f468-1f3fd-200d-1f9b2","native":"👨🏽🦲"},{"unified":"1f468-1f3fe-200d-1f9b2","native":"👨🏾🦲"},{"unified":"1f468-1f3ff-200d-1f9b2","native":"👨🏿🦲"}],"version":11},"woman":{"id":"woman","name":"Woman","keywords":["female","girls","lady"],"skins":[{"unified":"1f469","native":"👩"},{"unified":"1f469-1f3fb","native":"👩🏻"},{"unified":"1f469-1f3fc","native":"👩🏼"},{"unified":"1f469-1f3fd","native":"👩🏽"},{"unified":"1f469-1f3fe","native":"👩🏾"},{"unified":"1f469-1f3ff","native":"👩🏿"}],"version":1},"red_haired_woman":{"id":"red_haired_woman","name":"Woman: Red Hair","keywords":["haired","woman","hairstyle"],"skins":[{"unified":"1f469-200d-1f9b0","native":"👩🦰"},{"unified":"1f469-1f3fb-200d-1f9b0","native":"👩🏻🦰"},{"unified":"1f469-1f3fc-200d-1f9b0","native":"👩🏼🦰"},{"unified":"1f469-1f3fd-200d-1f9b0","native":"👩🏽🦰"},{"unified":"1f469-1f3fe-200d-1f9b0","native":"👩🏾🦰"},{"unified":"1f469-1f3ff-200d-1f9b0","native":"👩🏿🦰"}],"version":11},"red_haired_person":{"id":"red_haired_person","name":"Person: Red Hair","keywords":["haired","person","hairstyle"],"skins":[{"unified":"1f9d1-200d-1f9b0","native":"🧑🦰"},{"unified":"1f9d1-1f3fb-200d-1f9b0","native":"🧑🏻🦰"},{"unified":"1f9d1-1f3fc-200d-1f9b0","native":"🧑🏼🦰"},{"unified":"1f9d1-1f3fd-200d-1f9b0","native":"🧑🏽🦰"},{"unified":"1f9d1-1f3fe-200d-1f9b0","native":"🧑🏾🦰"},{"unified":"1f9d1-1f3ff-200d-1f9b0","native":"🧑🏿🦰"}],"version":12.1},"curly_haired_woman":{"id":"curly_haired_woman","name":"Woman: Curly Hair","keywords":["haired","woman","hairstyle"],"skins":[{"unified":"1f469-200d-1f9b1","native":"👩🦱"},{"unified":"1f469-1f3fb-200d-1f9b1","native":"👩🏻🦱"},{"unified":"1f469-1f3fc-200d-1f9b1","native":"👩🏼🦱"},{"unified":"1f469-1f3fd-200d-1f9b1","native":"👩🏽🦱"},{"unified":"1f469-1f3fe-200d-1f9b1","native":"👩🏾🦱"},{"unified":"1f469-1f3ff-200d-1f9b1","native":"👩🏿🦱"}],"version":11},"curly_haired_person":{"id":"curly_haired_person","name":"Person: Curly Hair","keywords":["haired","person","hairstyle"],"skins":[{"unified":"1f9d1-200d-1f9b1","native":"🧑🦱"},{"unified":"1f9d1-1f3fb-200d-1f9b1","native":"🧑🏻🦱"},{"unified":"1f9d1-1f3fc-200d-1f9b1","native":"🧑🏼🦱"},{"unified":"1f9d1-1f3fd-200d-1f9b1","native":"🧑🏽🦱"},{"unified":"1f9d1-1f3fe-200d-1f9b1","native":"🧑🏾🦱"},{"unified":"1f9d1-1f3ff-200d-1f9b1","native":"🧑🏿🦱"}],"version":12.1},"white_haired_woman":{"id":"white_haired_woman","name":"Woman: White Hair","keywords":["haired","woman","old","elder"],"skins":[{"unified":"1f469-200d-1f9b3","native":"👩🦳"},{"unified":"1f469-1f3fb-200d-1f9b3","native":"👩🏻🦳"},{"unified":"1f469-1f3fc-200d-1f9b3","native":"👩🏼🦳"},{"unified":"1f469-1f3fd-200d-1f9b3","native":"👩🏽🦳"},{"unified":"1f469-1f3fe-200d-1f9b3","native":"👩🏾🦳"},{"unified":"1f469-1f3ff-200d-1f9b3","native":"👩🏿🦳"}],"version":11},"white_haired_person":{"id":"white_haired_person","name":"Person: White Hair","keywords":["haired","person","elder","old"],"skins":[{"unified":"1f9d1-200d-1f9b3","native":"🧑🦳"},{"unified":"1f9d1-1f3fb-200d-1f9b3","native":"🧑🏻🦳"},{"unified":"1f9d1-1f3fc-200d-1f9b3","native":"🧑🏼🦳"},{"unified":"1f9d1-1f3fd-200d-1f9b3","native":"🧑🏽🦳"},{"unified":"1f9d1-1f3fe-200d-1f9b3","native":"🧑🏾🦳"},{"unified":"1f9d1-1f3ff-200d-1f9b3","native":"🧑🏿🦳"}],"version":12.1},"bald_woman":{"id":"bald_woman","name":"Woman: Bald","keywords":["woman","hairless"],"skins":[{"unified":"1f469-200d-1f9b2","native":"👩🦲"},{"unified":"1f469-1f3fb-200d-1f9b2","native":"👩🏻🦲"},{"unified":"1f469-1f3fc-200d-1f9b2","native":"👩🏼🦲"},{"unified":"1f469-1f3fd-200d-1f9b2","native":"👩🏽🦲"},{"unified":"1f469-1f3fe-200d-1f9b2","native":"👩🏾🦲"},{"unified":"1f469-1f3ff-200d-1f9b2","native":"👩🏿🦲"}],"version":11},"bald_person":{"id":"bald_person","name":"Person: Bald","keywords":["person","hairless"],"skins":[{"unified":"1f9d1-200d-1f9b2","native":"🧑🦲"},{"unified":"1f9d1-1f3fb-200d-1f9b2","native":"🧑🏻🦲"},{"unified":"1f9d1-1f3fc-200d-1f9b2","native":"🧑🏼🦲"},{"unified":"1f9d1-1f3fd-200d-1f9b2","native":"🧑🏽🦲"},{"unified":"1f9d1-1f3fe-200d-1f9b2","native":"🧑🏾🦲"},{"unified":"1f9d1-1f3ff-200d-1f9b2","native":"🧑🏿🦲"}],"version":12.1},"blond-haired-woman":{"id":"blond-haired-woman","name":"Woman: Blond Hair","keywords":["haired-woman","woman","female","girl","blonde","person"],"skins":[{"unified":"1f471-200d-2640-fe0f","native":"👱♀️"},{"unified":"1f471-1f3fb-200d-2640-fe0f","native":"👱🏻♀️"},{"unified":"1f471-1f3fc-200d-2640-fe0f","native":"👱🏼♀️"},{"unified":"1f471-1f3fd-200d-2640-fe0f","native":"👱🏽♀️"},{"unified":"1f471-1f3fe-200d-2640-fe0f","native":"👱🏾♀️"},{"unified":"1f471-1f3ff-200d-2640-fe0f","native":"👱🏿♀️"}],"version":4},"blond-haired-man":{"id":"blond-haired-man","name":"Man: Blond Hair","keywords":["haired-man","man","male","boy","blonde","guy","person"],"skins":[{"unified":"1f471-200d-2642-fe0f","native":"👱♂️"},{"unified":"1f471-1f3fb-200d-2642-fe0f","native":"👱🏻♂️"},{"unified":"1f471-1f3fc-200d-2642-fe0f","native":"👱🏼♂️"},{"unified":"1f471-1f3fd-200d-2642-fe0f","native":"👱🏽♂️"},{"unified":"1f471-1f3fe-200d-2642-fe0f","native":"👱🏾♂️"},{"unified":"1f471-1f3ff-200d-2642-fe0f","native":"👱🏿♂️"}],"version":4},"older_adult":{"id":"older_adult","name":"Older Adult","keywords":["person","human","elder","senior","gender","neutral"],"skins":[{"unified":"1f9d3","native":"🧓"},{"unified":"1f9d3-1f3fb","native":"🧓🏻"},{"unified":"1f9d3-1f3fc","native":"🧓🏼"},{"unified":"1f9d3-1f3fd","native":"🧓🏽"},{"unified":"1f9d3-1f3fe","native":"🧓🏾"},{"unified":"1f9d3-1f3ff","native":"🧓🏿"}],"version":5},"older_man":{"id":"older_man","name":"Old Man","keywords":["older","human","male","men","elder","senior"],"skins":[{"unified":"1f474","native":"👴"},{"unified":"1f474-1f3fb","native":"👴🏻"},{"unified":"1f474-1f3fc","native":"👴🏼"},{"unified":"1f474-1f3fd","native":"👴🏽"},{"unified":"1f474-1f3fe","native":"👴🏾"},{"unified":"1f474-1f3ff","native":"👴🏿"}],"version":1},"older_woman":{"id":"older_woman","name":"Old Woman","keywords":["older","human","female","women","lady","elder","senior"],"skins":[{"unified":"1f475","native":"👵"},{"unified":"1f475-1f3fb","native":"👵🏻"},{"unified":"1f475-1f3fc","native":"👵🏼"},{"unified":"1f475-1f3fd","native":"👵🏽"},{"unified":"1f475-1f3fe","native":"👵🏾"},{"unified":"1f475-1f3ff","native":"👵🏿"}],"version":1},"person_frowning":{"id":"person_frowning","name":"Person Frowning","keywords":["worried"],"skins":[{"unified":"1f64d","native":"🙍"},{"unified":"1f64d-1f3fb","native":"🙍🏻"},{"unified":"1f64d-1f3fc","native":"🙍🏼"},{"unified":"1f64d-1f3fd","native":"🙍🏽"},{"unified":"1f64d-1f3fe","native":"🙍🏾"},{"unified":"1f64d-1f3ff","native":"🙍🏿"}],"version":1},"man-frowning":{"id":"man-frowning","name":"Man Frowning","keywords":["male","boy","sad","depressed","discouraged","unhappy"],"skins":[{"unified":"1f64d-200d-2642-fe0f","native":"🙍♂️"},{"unified":"1f64d-1f3fb-200d-2642-fe0f","native":"🙍🏻♂️"},{"unified":"1f64d-1f3fc-200d-2642-fe0f","native":"🙍🏼♂️"},{"unified":"1f64d-1f3fd-200d-2642-fe0f","native":"🙍🏽♂️"},{"unified":"1f64d-1f3fe-200d-2642-fe0f","native":"🙍🏾♂️"},{"unified":"1f64d-1f3ff-200d-2642-fe0f","native":"🙍🏿♂️"}],"version":4},"woman-frowning":{"id":"woman-frowning","name":"Woman Frowning","keywords":["female","girl","sad","depressed","discouraged","unhappy"],"skins":[{"unified":"1f64d-200d-2640-fe0f","native":"🙍♀️"},{"unified":"1f64d-1f3fb-200d-2640-fe0f","native":"🙍🏻♀️"},{"unified":"1f64d-1f3fc-200d-2640-fe0f","native":"🙍🏼♀️"},{"unified":"1f64d-1f3fd-200d-2640-fe0f","native":"🙍🏽♀️"},{"unified":"1f64d-1f3fe-200d-2640-fe0f","native":"🙍🏾♀️"},{"unified":"1f64d-1f3ff-200d-2640-fe0f","native":"🙍🏿♀️"}],"version":4},"person_with_pouting_face":{"id":"person_with_pouting_face","name":"Person Pouting","keywords":["with","face","upset"],"skins":[{"unified":"1f64e","native":"🙎"},{"unified":"1f64e-1f3fb","native":"🙎🏻"},{"unified":"1f64e-1f3fc","native":"🙎🏼"},{"unified":"1f64e-1f3fd","native":"🙎🏽"},{"unified":"1f64e-1f3fe","native":"🙎🏾"},{"unified":"1f64e-1f3ff","native":"🙎🏿"}],"version":1},"man-pouting":{"id":"man-pouting","name":"Man Pouting","keywords":["male","boy"],"skins":[{"unified":"1f64e-200d-2642-fe0f","native":"🙎♂️"},{"unified":"1f64e-1f3fb-200d-2642-fe0f","native":"🙎🏻♂️"},{"unified":"1f64e-1f3fc-200d-2642-fe0f","native":"🙎🏼♂️"},{"unified":"1f64e-1f3fd-200d-2642-fe0f","native":"🙎🏽♂️"},{"unified":"1f64e-1f3fe-200d-2642-fe0f","native":"🙎🏾♂️"},{"unified":"1f64e-1f3ff-200d-2642-fe0f","native":"🙎🏿♂️"}],"version":4},"woman-pouting":{"id":"woman-pouting","name":"Woman Pouting","keywords":["female","girl"],"skins":[{"unified":"1f64e-200d-2640-fe0f","native":"🙎♀️"},{"unified":"1f64e-1f3fb-200d-2640-fe0f","native":"🙎🏻♀️"},{"unified":"1f64e-1f3fc-200d-2640-fe0f","native":"🙎🏼♀️"},{"unified":"1f64e-1f3fd-200d-2640-fe0f","native":"🙎🏽♀️"},{"unified":"1f64e-1f3fe-200d-2640-fe0f","native":"🙎🏾♀️"},{"unified":"1f64e-1f3ff-200d-2640-fe0f","native":"🙎🏿♀️"}],"version":4},"no_good":{"id":"no_good","name":"Person Gesturing No","keywords":["good","decline"],"skins":[{"unified":"1f645","native":"🙅"},{"unified":"1f645-1f3fb","native":"🙅🏻"},{"unified":"1f645-1f3fc","native":"🙅🏼"},{"unified":"1f645-1f3fd","native":"🙅🏽"},{"unified":"1f645-1f3fe","native":"🙅🏾"},{"unified":"1f645-1f3ff","native":"🙅🏿"}],"version":1},"man-gesturing-no":{"id":"man-gesturing-no","name":"Man Gesturing No","keywords":["gesturing-no","male","boy","nope"],"skins":[{"unified":"1f645-200d-2642-fe0f","native":"🙅♂️"},{"unified":"1f645-1f3fb-200d-2642-fe0f","native":"🙅🏻♂️"},{"unified":"1f645-1f3fc-200d-2642-fe0f","native":"🙅🏼♂️"},{"unified":"1f645-1f3fd-200d-2642-fe0f","native":"🙅🏽♂️"},{"unified":"1f645-1f3fe-200d-2642-fe0f","native":"🙅🏾♂️"},{"unified":"1f645-1f3ff-200d-2642-fe0f","native":"🙅🏿♂️"}],"version":4},"woman-gesturing-no":{"id":"woman-gesturing-no","name":"Woman Gesturing No","keywords":["gesturing-no","female","girl","nope"],"skins":[{"unified":"1f645-200d-2640-fe0f","native":"🙅♀️"},{"unified":"1f645-1f3fb-200d-2640-fe0f","native":"🙅🏻♀️"},{"unified":"1f645-1f3fc-200d-2640-fe0f","native":"🙅🏼♀️"},{"unified":"1f645-1f3fd-200d-2640-fe0f","native":"🙅🏽♀️"},{"unified":"1f645-1f3fe-200d-2640-fe0f","native":"🙅🏾♀️"},{"unified":"1f645-1f3ff-200d-2640-fe0f","native":"🙅🏿♀️"}],"version":4},"ok_woman":{"id":"ok_woman","name":"Person Gesturing Ok","keywords":["woman","agree"],"skins":[{"unified":"1f646","native":"🙆"},{"unified":"1f646-1f3fb","native":"🙆🏻"},{"unified":"1f646-1f3fc","native":"🙆🏼"},{"unified":"1f646-1f3fd","native":"🙆🏽"},{"unified":"1f646-1f3fe","native":"🙆🏾"},{"unified":"1f646-1f3ff","native":"🙆🏿"}],"version":1},"man-gesturing-ok":{"id":"man-gesturing-ok","name":"Man Gesturing Ok","keywords":["gesturing-ok","men","boy","male","blue","human"],"skins":[{"unified":"1f646-200d-2642-fe0f","native":"🙆♂️"},{"unified":"1f646-1f3fb-200d-2642-fe0f","native":"🙆🏻♂️"},{"unified":"1f646-1f3fc-200d-2642-fe0f","native":"🙆🏼♂️"},{"unified":"1f646-1f3fd-200d-2642-fe0f","native":"🙆🏽♂️"},{"unified":"1f646-1f3fe-200d-2642-fe0f","native":"🙆🏾♂️"},{"unified":"1f646-1f3ff-200d-2642-fe0f","native":"🙆🏿♂️"}],"version":4},"woman-gesturing-ok":{"id":"woman-gesturing-ok","name":"Woman Gesturing Ok","keywords":["gesturing-ok","women","girl","female","pink","human"],"skins":[{"unified":"1f646-200d-2640-fe0f","native":"🙆♀️"},{"unified":"1f646-1f3fb-200d-2640-fe0f","native":"🙆🏻♀️"},{"unified":"1f646-1f3fc-200d-2640-fe0f","native":"🙆🏼♀️"},{"unified":"1f646-1f3fd-200d-2640-fe0f","native":"🙆🏽♀️"},{"unified":"1f646-1f3fe-200d-2640-fe0f","native":"🙆🏾♀️"},{"unified":"1f646-1f3ff-200d-2640-fe0f","native":"🙆🏿♀️"}],"version":4},"information_desk_person":{"id":"information_desk_person","name":"Person Tipping Hand","keywords":["information","desk"],"skins":[{"unified":"1f481","native":"💁"},{"unified":"1f481-1f3fb","native":"💁🏻"},{"unified":"1f481-1f3fc","native":"💁🏼"},{"unified":"1f481-1f3fd","native":"💁🏽"},{"unified":"1f481-1f3fe","native":"💁🏾"},{"unified":"1f481-1f3ff","native":"💁🏿"}],"version":1},"man-tipping-hand":{"id":"man-tipping-hand","name":"Man Tipping Hand","keywords":["tipping-hand","male","boy","human","information"],"skins":[{"unified":"1f481-200d-2642-fe0f","native":"💁♂️"},{"unified":"1f481-1f3fb-200d-2642-fe0f","native":"💁🏻♂️"},{"unified":"1f481-1f3fc-200d-2642-fe0f","native":"💁🏼♂️"},{"unified":"1f481-1f3fd-200d-2642-fe0f","native":"💁🏽♂️"},{"unified":"1f481-1f3fe-200d-2642-fe0f","native":"💁🏾♂️"},{"unified":"1f481-1f3ff-200d-2642-fe0f","native":"💁🏿♂️"}],"version":4},"woman-tipping-hand":{"id":"woman-tipping-hand","name":"Woman Tipping Hand","keywords":["tipping-hand","female","girl","human","information"],"skins":[{"unified":"1f481-200d-2640-fe0f","native":"💁♀️"},{"unified":"1f481-1f3fb-200d-2640-fe0f","native":"💁🏻♀️"},{"unified":"1f481-1f3fc-200d-2640-fe0f","native":"💁🏼♀️"},{"unified":"1f481-1f3fd-200d-2640-fe0f","native":"💁🏽♀️"},{"unified":"1f481-1f3fe-200d-2640-fe0f","native":"💁🏾♀️"},{"unified":"1f481-1f3ff-200d-2640-fe0f","native":"💁🏿♀️"}],"version":4},"raising_hand":{"id":"raising_hand","name":"Person Raising Hand","keywords":["question"],"skins":[{"unified":"1f64b","native":"🙋"},{"unified":"1f64b-1f3fb","native":"🙋🏻"},{"unified":"1f64b-1f3fc","native":"🙋🏼"},{"unified":"1f64b-1f3fd","native":"🙋🏽"},{"unified":"1f64b-1f3fe","native":"🙋🏾"},{"unified":"1f64b-1f3ff","native":"🙋🏿"}],"version":1},"man-raising-hand":{"id":"man-raising-hand","name":"Man Raising Hand","keywords":["raising-hand","male","boy"],"skins":[{"unified":"1f64b-200d-2642-fe0f","native":"🙋♂️"},{"unified":"1f64b-1f3fb-200d-2642-fe0f","native":"🙋🏻♂️"},{"unified":"1f64b-1f3fc-200d-2642-fe0f","native":"🙋🏼♂️"},{"unified":"1f64b-1f3fd-200d-2642-fe0f","native":"🙋🏽♂️"},{"unified":"1f64b-1f3fe-200d-2642-fe0f","native":"🙋🏾♂️"},{"unified":"1f64b-1f3ff-200d-2642-fe0f","native":"🙋🏿♂️"}],"version":4},"woman-raising-hand":{"id":"woman-raising-hand","name":"Woman Raising Hand","keywords":["raising-hand","female","girl"],"skins":[{"unified":"1f64b-200d-2640-fe0f","native":"🙋♀️"},{"unified":"1f64b-1f3fb-200d-2640-fe0f","native":"🙋🏻♀️"},{"unified":"1f64b-1f3fc-200d-2640-fe0f","native":"🙋🏼♀️"},{"unified":"1f64b-1f3fd-200d-2640-fe0f","native":"🙋🏽♀️"},{"unified":"1f64b-1f3fe-200d-2640-fe0f","native":"🙋🏾♀️"},{"unified":"1f64b-1f3ff-200d-2640-fe0f","native":"🙋🏿♀️"}],"version":4},"deaf_person":{"id":"deaf_person","name":"Deaf Person","keywords":["accessibility"],"skins":[{"unified":"1f9cf","native":"🧏"},{"unified":"1f9cf-1f3fb","native":"🧏🏻"},{"unified":"1f9cf-1f3fc","native":"🧏🏼"},{"unified":"1f9cf-1f3fd","native":"🧏🏽"},{"unified":"1f9cf-1f3fe","native":"🧏🏾"},{"unified":"1f9cf-1f3ff","native":"🧏🏿"}],"version":12},"deaf_man":{"id":"deaf_man","name":"Deaf Man","keywords":["accessibility"],"skins":[{"unified":"1f9cf-200d-2642-fe0f","native":"🧏♂️"},{"unified":"1f9cf-1f3fb-200d-2642-fe0f","native":"🧏🏻♂️"},{"unified":"1f9cf-1f3fc-200d-2642-fe0f","native":"🧏🏼♂️"},{"unified":"1f9cf-1f3fd-200d-2642-fe0f","native":"🧏🏽♂️"},{"unified":"1f9cf-1f3fe-200d-2642-fe0f","native":"🧏🏾♂️"},{"unified":"1f9cf-1f3ff-200d-2642-fe0f","native":"🧏🏿♂️"}],"version":12},"deaf_woman":{"id":"deaf_woman","name":"Deaf Woman","keywords":["accessibility"],"skins":[{"unified":"1f9cf-200d-2640-fe0f","native":"🧏♀️"},{"unified":"1f9cf-1f3fb-200d-2640-fe0f","native":"🧏🏻♀️"},{"unified":"1f9cf-1f3fc-200d-2640-fe0f","native":"🧏🏼♀️"},{"unified":"1f9cf-1f3fd-200d-2640-fe0f","native":"🧏🏽♀️"},{"unified":"1f9cf-1f3fe-200d-2640-fe0f","native":"🧏🏾♀️"},{"unified":"1f9cf-1f3ff-200d-2640-fe0f","native":"🧏🏿♀️"}],"version":12},"bow":{"id":"bow","name":"Person Bowing","keywords":["bow","respectiful"],"skins":[{"unified":"1f647","native":"🙇"},{"unified":"1f647-1f3fb","native":"🙇🏻"},{"unified":"1f647-1f3fc","native":"🙇🏼"},{"unified":"1f647-1f3fd","native":"🙇🏽"},{"unified":"1f647-1f3fe","native":"🙇🏾"},{"unified":"1f647-1f3ff","native":"🙇🏿"}],"version":1},"man-bowing":{"id":"man-bowing","name":"Man Bowing","keywords":["male","boy"],"skins":[{"unified":"1f647-200d-2642-fe0f","native":"🙇♂️"},{"unified":"1f647-1f3fb-200d-2642-fe0f","native":"🙇🏻♂️"},{"unified":"1f647-1f3fc-200d-2642-fe0f","native":"🙇🏼♂️"},{"unified":"1f647-1f3fd-200d-2642-fe0f","native":"🙇🏽♂️"},{"unified":"1f647-1f3fe-200d-2642-fe0f","native":"🙇🏾♂️"},{"unified":"1f647-1f3ff-200d-2642-fe0f","native":"🙇🏿♂️"}],"version":4},"woman-bowing":{"id":"woman-bowing","name":"Woman Bowing","keywords":["female","girl"],"skins":[{"unified":"1f647-200d-2640-fe0f","native":"🙇♀️"},{"unified":"1f647-1f3fb-200d-2640-fe0f","native":"🙇🏻♀️"},{"unified":"1f647-1f3fc-200d-2640-fe0f","native":"🙇🏼♀️"},{"unified":"1f647-1f3fd-200d-2640-fe0f","native":"🙇🏽♀️"},{"unified":"1f647-1f3fe-200d-2640-fe0f","native":"🙇🏾♀️"},{"unified":"1f647-1f3ff-200d-2640-fe0f","native":"🙇🏿♀️"}],"version":4},"face_palm":{"id":"face_palm","name":"Face Palm","keywords":["person","facepalming","disappointed"],"skins":[{"unified":"1f926","native":"🤦"},{"unified":"1f926-1f3fb","native":"🤦🏻"},{"unified":"1f926-1f3fc","native":"🤦🏼"},{"unified":"1f926-1f3fd","native":"🤦🏽"},{"unified":"1f926-1f3fe","native":"🤦🏾"},{"unified":"1f926-1f3ff","native":"🤦🏿"}],"version":3},"man-facepalming":{"id":"man-facepalming","name":"Man Facepalming","keywords":["male","boy","disbelief"],"skins":[{"unified":"1f926-200d-2642-fe0f","native":"🤦♂️"},{"unified":"1f926-1f3fb-200d-2642-fe0f","native":"🤦🏻♂️"},{"unified":"1f926-1f3fc-200d-2642-fe0f","native":"🤦🏼♂️"},{"unified":"1f926-1f3fd-200d-2642-fe0f","native":"🤦🏽♂️"},{"unified":"1f926-1f3fe-200d-2642-fe0f","native":"🤦🏾♂️"},{"unified":"1f926-1f3ff-200d-2642-fe0f","native":"🤦🏿♂️"}],"version":4},"woman-facepalming":{"id":"woman-facepalming","name":"Woman Facepalming","keywords":["female","girl","disbelief"],"skins":[{"unified":"1f926-200d-2640-fe0f","native":"🤦♀️"},{"unified":"1f926-1f3fb-200d-2640-fe0f","native":"🤦🏻♀️"},{"unified":"1f926-1f3fc-200d-2640-fe0f","native":"🤦🏼♀️"},{"unified":"1f926-1f3fd-200d-2640-fe0f","native":"🤦🏽♀️"},{"unified":"1f926-1f3fe-200d-2640-fe0f","native":"🤦🏾♀️"},{"unified":"1f926-1f3ff-200d-2640-fe0f","native":"🤦🏿♀️"}],"version":4},"shrug":{"id":"shrug","name":"Shrug","keywords":["person","shrugging","regardless"],"skins":[{"unified":"1f937","native":"🤷"},{"unified":"1f937-1f3fb","native":"🤷🏻"},{"unified":"1f937-1f3fc","native":"🤷🏼"},{"unified":"1f937-1f3fd","native":"🤷🏽"},{"unified":"1f937-1f3fe","native":"🤷🏾"},{"unified":"1f937-1f3ff","native":"🤷🏿"}],"version":3},"man-shrugging":{"id":"man-shrugging","name":"Man Shrugging","keywords":["male","boy","confused","indifferent","doubt"],"skins":[{"unified":"1f937-200d-2642-fe0f","native":"🤷♂️"},{"unified":"1f937-1f3fb-200d-2642-fe0f","native":"🤷🏻♂️"},{"unified":"1f937-1f3fc-200d-2642-fe0f","native":"🤷🏼♂️"},{"unified":"1f937-1f3fd-200d-2642-fe0f","native":"🤷🏽♂️"},{"unified":"1f937-1f3fe-200d-2642-fe0f","native":"🤷🏾♂️"},{"unified":"1f937-1f3ff-200d-2642-fe0f","native":"🤷🏿♂️"}],"version":4},"woman-shrugging":{"id":"woman-shrugging","name":"Woman Shrugging","keywords":["female","girl","confused","indifferent","doubt"],"skins":[{"unified":"1f937-200d-2640-fe0f","native":"🤷♀️"},{"unified":"1f937-1f3fb-200d-2640-fe0f","native":"🤷🏻♀️"},{"unified":"1f937-1f3fc-200d-2640-fe0f","native":"🤷🏼♀️"},{"unified":"1f937-1f3fd-200d-2640-fe0f","native":"🤷🏽♀️"},{"unified":"1f937-1f3fe-200d-2640-fe0f","native":"🤷🏾♀️"},{"unified":"1f937-1f3ff-200d-2640-fe0f","native":"🤷🏿♀️"}],"version":4},"health_worker":{"id":"health_worker","name":"Health Worker","keywords":["hospital"],"skins":[{"unified":"1f9d1-200d-2695-fe0f","native":"🧑⚕️"},{"unified":"1f9d1-1f3fb-200d-2695-fe0f","native":"🧑🏻⚕️"},{"unified":"1f9d1-1f3fc-200d-2695-fe0f","native":"🧑🏼⚕️"},{"unified":"1f9d1-1f3fd-200d-2695-fe0f","native":"🧑🏽⚕️"},{"unified":"1f9d1-1f3fe-200d-2695-fe0f","native":"🧑🏾⚕️"},{"unified":"1f9d1-1f3ff-200d-2695-fe0f","native":"🧑🏿⚕️"}],"version":12.1},"male-doctor":{"id":"male-doctor","name":"Man Health Worker","keywords":["male","doctor","nurse","therapist","healthcare","human"],"skins":[{"unified":"1f468-200d-2695-fe0f","native":"👨⚕️"},{"unified":"1f468-1f3fb-200d-2695-fe0f","native":"👨🏻⚕️"},{"unified":"1f468-1f3fc-200d-2695-fe0f","native":"👨🏼⚕️"},{"unified":"1f468-1f3fd-200d-2695-fe0f","native":"👨🏽⚕️"},{"unified":"1f468-1f3fe-200d-2695-fe0f","native":"👨🏾⚕️"},{"unified":"1f468-1f3ff-200d-2695-fe0f","native":"👨🏿⚕️"}],"version":4},"female-doctor":{"id":"female-doctor","name":"Woman Health Worker","keywords":["female","doctor","nurse","therapist","healthcare","human"],"skins":[{"unified":"1f469-200d-2695-fe0f","native":"👩⚕️"},{"unified":"1f469-1f3fb-200d-2695-fe0f","native":"👩🏻⚕️"},{"unified":"1f469-1f3fc-200d-2695-fe0f","native":"👩🏼⚕️"},{"unified":"1f469-1f3fd-200d-2695-fe0f","native":"👩🏽⚕️"},{"unified":"1f469-1f3fe-200d-2695-fe0f","native":"👩🏾⚕️"},{"unified":"1f469-1f3ff-200d-2695-fe0f","native":"👩🏿⚕️"}],"version":4},"student":{"id":"student","name":"Student","keywords":["learn"],"skins":[{"unified":"1f9d1-200d-1f393","native":"🧑🎓"},{"unified":"1f9d1-1f3fb-200d-1f393","native":"🧑🏻🎓"},{"unified":"1f9d1-1f3fc-200d-1f393","native":"🧑🏼🎓"},{"unified":"1f9d1-1f3fd-200d-1f393","native":"🧑🏽🎓"},{"unified":"1f9d1-1f3fe-200d-1f393","native":"🧑🏾🎓"},{"unified":"1f9d1-1f3ff-200d-1f393","native":"🧑🏿🎓"}],"version":12.1},"male-student":{"id":"male-student","name":"Man Student","keywords":["male","graduate","human"],"skins":[{"unified":"1f468-200d-1f393","native":"👨🎓"},{"unified":"1f468-1f3fb-200d-1f393","native":"👨🏻🎓"},{"unified":"1f468-1f3fc-200d-1f393","native":"👨🏼🎓"},{"unified":"1f468-1f3fd-200d-1f393","native":"👨🏽🎓"},{"unified":"1f468-1f3fe-200d-1f393","native":"👨🏾🎓"},{"unified":"1f468-1f3ff-200d-1f393","native":"👨🏿🎓"}],"version":4},"female-student":{"id":"female-student","name":"Woman Student","keywords":["female","graduate","human"],"skins":[{"unified":"1f469-200d-1f393","native":"👩🎓"},{"unified":"1f469-1f3fb-200d-1f393","native":"👩🏻🎓"},{"unified":"1f469-1f3fc-200d-1f393","native":"👩🏼🎓"},{"unified":"1f469-1f3fd-200d-1f393","native":"👩🏽🎓"},{"unified":"1f469-1f3fe-200d-1f393","native":"👩🏾🎓"},{"unified":"1f469-1f3ff-200d-1f393","native":"👩🏿🎓"}],"version":4},"teacher":{"id":"teacher","name":"Teacher","keywords":["professor"],"skins":[{"unified":"1f9d1-200d-1f3eb","native":"🧑🏫"},{"unified":"1f9d1-1f3fb-200d-1f3eb","native":"🧑🏻🏫"},{"unified":"1f9d1-1f3fc-200d-1f3eb","native":"🧑🏼🏫"},{"unified":"1f9d1-1f3fd-200d-1f3eb","native":"🧑🏽🏫"},{"unified":"1f9d1-1f3fe-200d-1f3eb","native":"🧑🏾🏫"},{"unified":"1f9d1-1f3ff-200d-1f3eb","native":"🧑🏿🏫"}],"version":12.1},"male-teacher":{"id":"male-teacher","name":"Man Teacher","keywords":["male","instructor","professor","human"],"skins":[{"unified":"1f468-200d-1f3eb","native":"👨🏫"},{"unified":"1f468-1f3fb-200d-1f3eb","native":"👨🏻🏫"},{"unified":"1f468-1f3fc-200d-1f3eb","native":"👨🏼🏫"},{"unified":"1f468-1f3fd-200d-1f3eb","native":"👨🏽🏫"},{"unified":"1f468-1f3fe-200d-1f3eb","native":"👨🏾🏫"},{"unified":"1f468-1f3ff-200d-1f3eb","native":"👨🏿🏫"}],"version":4},"female-teacher":{"id":"female-teacher","name":"Woman Teacher","keywords":["female","instructor","professor","human"],"skins":[{"unified":"1f469-200d-1f3eb","native":"👩🏫"},{"unified":"1f469-1f3fb-200d-1f3eb","native":"👩🏻🏫"},{"unified":"1f469-1f3fc-200d-1f3eb","native":"👩🏼🏫"},{"unified":"1f469-1f3fd-200d-1f3eb","native":"👩🏽🏫"},{"unified":"1f469-1f3fe-200d-1f3eb","native":"👩🏾🏫"},{"unified":"1f469-1f3ff-200d-1f3eb","native":"👩🏿🏫"}],"version":4},"judge":{"id":"judge","name":"Judge","keywords":["law"],"skins":[{"unified":"1f9d1-200d-2696-fe0f","native":"🧑⚖️"},{"unified":"1f9d1-1f3fb-200d-2696-fe0f","native":"🧑🏻⚖️"},{"unified":"1f9d1-1f3fc-200d-2696-fe0f","native":"🧑🏼⚖️"},{"unified":"1f9d1-1f3fd-200d-2696-fe0f","native":"🧑🏽⚖️"},{"unified":"1f9d1-1f3fe-200d-2696-fe0f","native":"🧑🏾⚖️"},{"unified":"1f9d1-1f3ff-200d-2696-fe0f","native":"🧑🏿⚖️"}],"version":12.1},"male-judge":{"id":"male-judge","name":"Man Judge","keywords":["male","justice","court","human"],"skins":[{"unified":"1f468-200d-2696-fe0f","native":"👨⚖️"},{"unified":"1f468-1f3fb-200d-2696-fe0f","native":"👨🏻⚖️"},{"unified":"1f468-1f3fc-200d-2696-fe0f","native":"👨🏼⚖️"},{"unified":"1f468-1f3fd-200d-2696-fe0f","native":"👨🏽⚖️"},{"unified":"1f468-1f3fe-200d-2696-fe0f","native":"👨🏾⚖️"},{"unified":"1f468-1f3ff-200d-2696-fe0f","native":"👨🏿⚖️"}],"version":4},"female-judge":{"id":"female-judge","name":"Woman Judge","keywords":["female","justice","court","human"],"skins":[{"unified":"1f469-200d-2696-fe0f","native":"👩⚖️"},{"unified":"1f469-1f3fb-200d-2696-fe0f","native":"👩🏻⚖️"},{"unified":"1f469-1f3fc-200d-2696-fe0f","native":"👩🏼⚖️"},{"unified":"1f469-1f3fd-200d-2696-fe0f","native":"👩🏽⚖️"},{"unified":"1f469-1f3fe-200d-2696-fe0f","native":"👩🏾⚖️"},{"unified":"1f469-1f3ff-200d-2696-fe0f","native":"👩🏿⚖️"}],"version":4},"farmer":{"id":"farmer","name":"Farmer","keywords":["crops"],"skins":[{"unified":"1f9d1-200d-1f33e","native":"🧑🌾"},{"unified":"1f9d1-1f3fb-200d-1f33e","native":"🧑🏻🌾"},{"unified":"1f9d1-1f3fc-200d-1f33e","native":"🧑🏼🌾"},{"unified":"1f9d1-1f3fd-200d-1f33e","native":"🧑🏽🌾"},{"unified":"1f9d1-1f3fe-200d-1f33e","native":"🧑🏾🌾"},{"unified":"1f9d1-1f3ff-200d-1f33e","native":"🧑🏿🌾"}],"version":12.1},"male-farmer":{"id":"male-farmer","name":"Man Farmer","keywords":["male","rancher","gardener","human"],"skins":[{"unified":"1f468-200d-1f33e","native":"👨🌾"},{"unified":"1f468-1f3fb-200d-1f33e","native":"👨🏻🌾"},{"unified":"1f468-1f3fc-200d-1f33e","native":"👨🏼🌾"},{"unified":"1f468-1f3fd-200d-1f33e","native":"👨🏽🌾"},{"unified":"1f468-1f3fe-200d-1f33e","native":"👨🏾🌾"},{"unified":"1f468-1f3ff-200d-1f33e","native":"👨🏿🌾"}],"version":4},"female-farmer":{"id":"female-farmer","name":"Woman Farmer","keywords":["female","rancher","gardener","human"],"skins":[{"unified":"1f469-200d-1f33e","native":"👩🌾"},{"unified":"1f469-1f3fb-200d-1f33e","native":"👩🏻🌾"},{"unified":"1f469-1f3fc-200d-1f33e","native":"👩🏼🌾"},{"unified":"1f469-1f3fd-200d-1f33e","native":"👩🏽🌾"},{"unified":"1f469-1f3fe-200d-1f33e","native":"👩🏾🌾"},{"unified":"1f469-1f3ff-200d-1f33e","native":"👩🏿🌾"}],"version":4},"cook":{"id":"cook","name":"Cook","keywords":["food","kitchen","culinary"],"skins":[{"unified":"1f9d1-200d-1f373","native":"🧑🍳"},{"unified":"1f9d1-1f3fb-200d-1f373","native":"🧑🏻🍳"},{"unified":"1f9d1-1f3fc-200d-1f373","native":"🧑🏼🍳"},{"unified":"1f9d1-1f3fd-200d-1f373","native":"🧑🏽🍳"},{"unified":"1f9d1-1f3fe-200d-1f373","native":"🧑🏾🍳"},{"unified":"1f9d1-1f3ff-200d-1f373","native":"🧑🏿🍳"}],"version":12.1},"male-cook":{"id":"male-cook","name":"Man Cook","keywords":["male","chef","human"],"skins":[{"unified":"1f468-200d-1f373","native":"👨🍳"},{"unified":"1f468-1f3fb-200d-1f373","native":"👨🏻🍳"},{"unified":"1f468-1f3fc-200d-1f373","native":"👨🏼🍳"},{"unified":"1f468-1f3fd-200d-1f373","native":"👨🏽🍳"},{"unified":"1f468-1f3fe-200d-1f373","native":"👨🏾🍳"},{"unified":"1f468-1f3ff-200d-1f373","native":"👨🏿🍳"}],"version":4},"female-cook":{"id":"female-cook","name":"Woman Cook","keywords":["female","chef","human"],"skins":[{"unified":"1f469-200d-1f373","native":"👩🍳"},{"unified":"1f469-1f3fb-200d-1f373","native":"👩🏻🍳"},{"unified":"1f469-1f3fc-200d-1f373","native":"👩🏼🍳"},{"unified":"1f469-1f3fd-200d-1f373","native":"👩🏽🍳"},{"unified":"1f469-1f3fe-200d-1f373","native":"👩🏾🍳"},{"unified":"1f469-1f3ff-200d-1f373","native":"👩🏿🍳"}],"version":4},"mechanic":{"id":"mechanic","name":"Mechanic","keywords":["worker","technician"],"skins":[{"unified":"1f9d1-200d-1f527","native":"🧑🔧"},{"unified":"1f9d1-1f3fb-200d-1f527","native":"🧑🏻🔧"},{"unified":"1f9d1-1f3fc-200d-1f527","native":"🧑🏼🔧"},{"unified":"1f9d1-1f3fd-200d-1f527","native":"🧑🏽🔧"},{"unified":"1f9d1-1f3fe-200d-1f527","native":"🧑🏾🔧"},{"unified":"1f9d1-1f3ff-200d-1f527","native":"🧑🏿🔧"}],"version":12.1},"male-mechanic":{"id":"male-mechanic","name":"Man Mechanic","keywords":["male","plumber","human","wrench"],"skins":[{"unified":"1f468-200d-1f527","native":"👨🔧"},{"unified":"1f468-1f3fb-200d-1f527","native":"👨🏻🔧"},{"unified":"1f468-1f3fc-200d-1f527","native":"👨🏼🔧"},{"unified":"1f468-1f3fd-200d-1f527","native":"👨🏽🔧"},{"unified":"1f468-1f3fe-200d-1f527","native":"👨🏾🔧"},{"unified":"1f468-1f3ff-200d-1f527","native":"👨🏿🔧"}],"version":4},"female-mechanic":{"id":"female-mechanic","name":"Woman Mechanic","keywords":["female","plumber","human","wrench"],"skins":[{"unified":"1f469-200d-1f527","native":"👩🔧"},{"unified":"1f469-1f3fb-200d-1f527","native":"👩🏻🔧"},{"unified":"1f469-1f3fc-200d-1f527","native":"👩🏼🔧"},{"unified":"1f469-1f3fd-200d-1f527","native":"👩🏽🔧"},{"unified":"1f469-1f3fe-200d-1f527","native":"👩🏾🔧"},{"unified":"1f469-1f3ff-200d-1f527","native":"👩🏿🔧"}],"version":4},"factory_worker":{"id":"factory_worker","name":"Factory Worker","keywords":["labor"],"skins":[{"unified":"1f9d1-200d-1f3ed","native":"🧑🏭"},{"unified":"1f9d1-1f3fb-200d-1f3ed","native":"🧑🏻🏭"},{"unified":"1f9d1-1f3fc-200d-1f3ed","native":"🧑🏼🏭"},{"unified":"1f9d1-1f3fd-200d-1f3ed","native":"🧑🏽🏭"},{"unified":"1f9d1-1f3fe-200d-1f3ed","native":"🧑🏾🏭"},{"unified":"1f9d1-1f3ff-200d-1f3ed","native":"🧑🏿🏭"}],"version":12.1},"male-factory-worker":{"id":"male-factory-worker","name":"Man Factory Worker","keywords":["male","factory-worker","assembly","industrial","human"],"skins":[{"unified":"1f468-200d-1f3ed","native":"👨🏭"},{"unified":"1f468-1f3fb-200d-1f3ed","native":"👨🏻🏭"},{"unified":"1f468-1f3fc-200d-1f3ed","native":"👨🏼🏭"},{"unified":"1f468-1f3fd-200d-1f3ed","native":"👨🏽🏭"},{"unified":"1f468-1f3fe-200d-1f3ed","native":"👨🏾🏭"},{"unified":"1f468-1f3ff-200d-1f3ed","native":"👨🏿🏭"}],"version":4},"female-factory-worker":{"id":"female-factory-worker","name":"Woman Factory Worker","keywords":["female","factory-worker","assembly","industrial","human"],"skins":[{"unified":"1f469-200d-1f3ed","native":"👩🏭"},{"unified":"1f469-1f3fb-200d-1f3ed","native":"👩🏻🏭"},{"unified":"1f469-1f3fc-200d-1f3ed","native":"👩🏼🏭"},{"unified":"1f469-1f3fd-200d-1f3ed","native":"👩🏽🏭"},{"unified":"1f469-1f3fe-200d-1f3ed","native":"👩🏾🏭"},{"unified":"1f469-1f3ff-200d-1f3ed","native":"👩🏿🏭"}],"version":4},"office_worker":{"id":"office_worker","name":"Office Worker","keywords":["business"],"skins":[{"unified":"1f9d1-200d-1f4bc","native":"🧑💼"},{"unified":"1f9d1-1f3fb-200d-1f4bc","native":"🧑🏻💼"},{"unified":"1f9d1-1f3fc-200d-1f4bc","native":"🧑🏼💼"},{"unified":"1f9d1-1f3fd-200d-1f4bc","native":"🧑🏽💼"},{"unified":"1f9d1-1f3fe-200d-1f4bc","native":"🧑🏾💼"},{"unified":"1f9d1-1f3ff-200d-1f4bc","native":"🧑🏿💼"}],"version":12.1},"male-office-worker":{"id":"male-office-worker","name":"Man Office Worker","keywords":["male","office-worker","business","manager","human"],"skins":[{"unified":"1f468-200d-1f4bc","native":"👨💼"},{"unified":"1f468-1f3fb-200d-1f4bc","native":"👨🏻💼"},{"unified":"1f468-1f3fc-200d-1f4bc","native":"👨🏼💼"},{"unified":"1f468-1f3fd-200d-1f4bc","native":"👨🏽💼"},{"unified":"1f468-1f3fe-200d-1f4bc","native":"👨🏾💼"},{"unified":"1f468-1f3ff-200d-1f4bc","native":"👨🏿💼"}],"version":4},"female-office-worker":{"id":"female-office-worker","name":"Woman Office Worker","keywords":["female","office-worker","business","manager","human"],"skins":[{"unified":"1f469-200d-1f4bc","native":"👩💼"},{"unified":"1f469-1f3fb-200d-1f4bc","native":"👩🏻💼"},{"unified":"1f469-1f3fc-200d-1f4bc","native":"👩🏼💼"},{"unified":"1f469-1f3fd-200d-1f4bc","native":"👩🏽💼"},{"unified":"1f469-1f3fe-200d-1f4bc","native":"👩🏾💼"},{"unified":"1f469-1f3ff-200d-1f4bc","native":"👩🏿💼"}],"version":4},"scientist":{"id":"scientist","name":"Scientist","keywords":["chemistry"],"skins":[{"unified":"1f9d1-200d-1f52c","native":"🧑🔬"},{"unified":"1f9d1-1f3fb-200d-1f52c","native":"🧑🏻🔬"},{"unified":"1f9d1-1f3fc-200d-1f52c","native":"🧑🏼🔬"},{"unified":"1f9d1-1f3fd-200d-1f52c","native":"🧑🏽🔬"},{"unified":"1f9d1-1f3fe-200d-1f52c","native":"🧑🏾🔬"},{"unified":"1f9d1-1f3ff-200d-1f52c","native":"🧑🏿🔬"}],"version":12.1},"male-scientist":{"id":"male-scientist","name":"Man Scientist","keywords":["male","biologist","chemist","engineer","physicist","human"],"skins":[{"unified":"1f468-200d-1f52c","native":"👨🔬"},{"unified":"1f468-1f3fb-200d-1f52c","native":"👨🏻🔬"},{"unified":"1f468-1f3fc-200d-1f52c","native":"👨🏼🔬"},{"unified":"1f468-1f3fd-200d-1f52c","native":"👨🏽🔬"},{"unified":"1f468-1f3fe-200d-1f52c","native":"👨🏾🔬"},{"unified":"1f468-1f3ff-200d-1f52c","native":"👨🏿🔬"}],"version":4},"female-scientist":{"id":"female-scientist","name":"Woman Scientist","keywords":["female","biologist","chemist","engineer","physicist","human"],"skins":[{"unified":"1f469-200d-1f52c","native":"👩🔬"},{"unified":"1f469-1f3fb-200d-1f52c","native":"👩🏻🔬"},{"unified":"1f469-1f3fc-200d-1f52c","native":"👩🏼🔬"},{"unified":"1f469-1f3fd-200d-1f52c","native":"👩🏽🔬"},{"unified":"1f469-1f3fe-200d-1f52c","native":"👩🏾🔬"},{"unified":"1f469-1f3ff-200d-1f52c","native":"👩🏿🔬"}],"version":4},"technologist":{"id":"technologist","name":"Technologist","keywords":["computer"],"skins":[{"unified":"1f9d1-200d-1f4bb","native":"🧑💻"},{"unified":"1f9d1-1f3fb-200d-1f4bb","native":"🧑🏻💻"},{"unified":"1f9d1-1f3fc-200d-1f4bb","native":"🧑🏼💻"},{"unified":"1f9d1-1f3fd-200d-1f4bb","native":"🧑🏽💻"},{"unified":"1f9d1-1f3fe-200d-1f4bb","native":"🧑🏾💻"},{"unified":"1f9d1-1f3ff-200d-1f4bb","native":"🧑🏿💻"}],"version":12.1},"male-technologist":{"id":"male-technologist","name":"Man Technologist","keywords":["male","coder","developer","engineer","programmer","software","human","laptop","computer"],"skins":[{"unified":"1f468-200d-1f4bb","native":"👨💻"},{"unified":"1f468-1f3fb-200d-1f4bb","native":"👨🏻💻"},{"unified":"1f468-1f3fc-200d-1f4bb","native":"👨🏼💻"},{"unified":"1f468-1f3fd-200d-1f4bb","native":"👨🏽💻"},{"unified":"1f468-1f3fe-200d-1f4bb","native":"👨🏾💻"},{"unified":"1f468-1f3ff-200d-1f4bb","native":"👨🏿💻"}],"version":4},"female-technologist":{"id":"female-technologist","name":"Woman Technologist","keywords":["female","coder","developer","engineer","programmer","software","human","laptop","computer"],"skins":[{"unified":"1f469-200d-1f4bb","native":"👩💻"},{"unified":"1f469-1f3fb-200d-1f4bb","native":"👩🏻💻"},{"unified":"1f469-1f3fc-200d-1f4bb","native":"👩🏼💻"},{"unified":"1f469-1f3fd-200d-1f4bb","native":"👩🏽💻"},{"unified":"1f469-1f3fe-200d-1f4bb","native":"👩🏾💻"},{"unified":"1f469-1f3ff-200d-1f4bb","native":"👩🏿💻"}],"version":4},"singer":{"id":"singer","name":"Singer","keywords":["song","artist","performer"],"skins":[{"unified":"1f9d1-200d-1f3a4","native":"🧑🎤"},{"unified":"1f9d1-1f3fb-200d-1f3a4","native":"🧑🏻🎤"},{"unified":"1f9d1-1f3fc-200d-1f3a4","native":"🧑🏼🎤"},{"unified":"1f9d1-1f3fd-200d-1f3a4","native":"🧑🏽🎤"},{"unified":"1f9d1-1f3fe-200d-1f3a4","native":"🧑🏾🎤"},{"unified":"1f9d1-1f3ff-200d-1f3a4","native":"🧑🏿🎤"}],"version":12.1},"male-singer":{"id":"male-singer","name":"Man Singer","keywords":["male","rockstar","entertainer","human"],"skins":[{"unified":"1f468-200d-1f3a4","native":"👨🎤"},{"unified":"1f468-1f3fb-200d-1f3a4","native":"👨🏻🎤"},{"unified":"1f468-1f3fc-200d-1f3a4","native":"👨🏼🎤"},{"unified":"1f468-1f3fd-200d-1f3a4","native":"👨🏽🎤"},{"unified":"1f468-1f3fe-200d-1f3a4","native":"👨🏾🎤"},{"unified":"1f468-1f3ff-200d-1f3a4","native":"👨🏿🎤"}],"version":4},"female-singer":{"id":"female-singer","name":"Woman Singer","keywords":["female","rockstar","entertainer","human"],"skins":[{"unified":"1f469-200d-1f3a4","native":"👩🎤"},{"unified":"1f469-1f3fb-200d-1f3a4","native":"👩🏻🎤"},{"unified":"1f469-1f3fc-200d-1f3a4","native":"👩🏼🎤"},{"unified":"1f469-1f3fd-200d-1f3a4","native":"👩🏽🎤"},{"unified":"1f469-1f3fe-200d-1f3a4","native":"👩🏾🎤"},{"unified":"1f469-1f3ff-200d-1f3a4","native":"👩🏿🎤"}],"version":4},"artist":{"id":"artist","name":"Artist","keywords":["painting","draw","creativity"],"skins":[{"unified":"1f9d1-200d-1f3a8","native":"🧑🎨"},{"unified":"1f9d1-1f3fb-200d-1f3a8","native":"🧑🏻🎨"},{"unified":"1f9d1-1f3fc-200d-1f3a8","native":"🧑🏼🎨"},{"unified":"1f9d1-1f3fd-200d-1f3a8","native":"🧑🏽🎨"},{"unified":"1f9d1-1f3fe-200d-1f3a8","native":"🧑🏾🎨"},{"unified":"1f9d1-1f3ff-200d-1f3a8","native":"🧑🏿🎨"}],"version":12.1},"male-artist":{"id":"male-artist","name":"Man Artist","keywords":["male","painter","human"],"skins":[{"unified":"1f468-200d-1f3a8","native":"👨🎨"},{"unified":"1f468-1f3fb-200d-1f3a8","native":"👨🏻🎨"},{"unified":"1f468-1f3fc-200d-1f3a8","native":"👨🏼🎨"},{"unified":"1f468-1f3fd-200d-1f3a8","native":"👨🏽🎨"},{"unified":"1f468-1f3fe-200d-1f3a8","native":"👨🏾🎨"},{"unified":"1f468-1f3ff-200d-1f3a8","native":"👨🏿🎨"}],"version":4},"female-artist":{"id":"female-artist","name":"Woman Artist","keywords":["female","painter","human"],"skins":[{"unified":"1f469-200d-1f3a8","native":"👩🎨"},{"unified":"1f469-1f3fb-200d-1f3a8","native":"👩🏻🎨"},{"unified":"1f469-1f3fc-200d-1f3a8","native":"👩🏼🎨"},{"unified":"1f469-1f3fd-200d-1f3a8","native":"👩🏽🎨"},{"unified":"1f469-1f3fe-200d-1f3a8","native":"👩🏾🎨"},{"unified":"1f469-1f3ff-200d-1f3a8","native":"👩🏿🎨"}],"version":4},"pilot":{"id":"pilot","name":"Pilot","keywords":["fly","plane","airplane"],"skins":[{"unified":"1f9d1-200d-2708-fe0f","native":"🧑✈️"},{"unified":"1f9d1-1f3fb-200d-2708-fe0f","native":"🧑🏻✈️"},{"unified":"1f9d1-1f3fc-200d-2708-fe0f","native":"🧑🏼✈️"},{"unified":"1f9d1-1f3fd-200d-2708-fe0f","native":"🧑🏽✈️"},{"unified":"1f9d1-1f3fe-200d-2708-fe0f","native":"🧑🏾✈️"},{"unified":"1f9d1-1f3ff-200d-2708-fe0f","native":"🧑🏿✈️"}],"version":12.1},"male-pilot":{"id":"male-pilot","name":"Man Pilot","keywords":["male","aviator","plane","human"],"skins":[{"unified":"1f468-200d-2708-fe0f","native":"👨✈️"},{"unified":"1f468-1f3fb-200d-2708-fe0f","native":"👨🏻✈️"},{"unified":"1f468-1f3fc-200d-2708-fe0f","native":"👨🏼✈️"},{"unified":"1f468-1f3fd-200d-2708-fe0f","native":"👨🏽✈️"},{"unified":"1f468-1f3fe-200d-2708-fe0f","native":"👨🏾✈️"},{"unified":"1f468-1f3ff-200d-2708-fe0f","native":"👨🏿✈️"}],"version":4},"female-pilot":{"id":"female-pilot","name":"Woman Pilot","keywords":["female","aviator","plane","human"],"skins":[{"unified":"1f469-200d-2708-fe0f","native":"👩✈️"},{"unified":"1f469-1f3fb-200d-2708-fe0f","native":"👩🏻✈️"},{"unified":"1f469-1f3fc-200d-2708-fe0f","native":"👩🏼✈️"},{"unified":"1f469-1f3fd-200d-2708-fe0f","native":"👩🏽✈️"},{"unified":"1f469-1f3fe-200d-2708-fe0f","native":"👩🏾✈️"},{"unified":"1f469-1f3ff-200d-2708-fe0f","native":"👩🏿✈️"}],"version":4},"astronaut":{"id":"astronaut","name":"Astronaut","keywords":["outerspace"],"skins":[{"unified":"1f9d1-200d-1f680","native":"🧑🚀"},{"unified":"1f9d1-1f3fb-200d-1f680","native":"🧑🏻🚀"},{"unified":"1f9d1-1f3fc-200d-1f680","native":"🧑🏼🚀"},{"unified":"1f9d1-1f3fd-200d-1f680","native":"🧑🏽🚀"},{"unified":"1f9d1-1f3fe-200d-1f680","native":"🧑🏾🚀"},{"unified":"1f9d1-1f3ff-200d-1f680","native":"🧑🏿🚀"}],"version":12.1},"male-astronaut":{"id":"male-astronaut","name":"Man Astronaut","keywords":["male","space","rocket","human"],"skins":[{"unified":"1f468-200d-1f680","native":"👨🚀"},{"unified":"1f468-1f3fb-200d-1f680","native":"👨🏻🚀"},{"unified":"1f468-1f3fc-200d-1f680","native":"👨🏼🚀"},{"unified":"1f468-1f3fd-200d-1f680","native":"👨🏽🚀"},{"unified":"1f468-1f3fe-200d-1f680","native":"👨🏾🚀"},{"unified":"1f468-1f3ff-200d-1f680","native":"👨🏿🚀"}],"version":4},"female-astronaut":{"id":"female-astronaut","name":"Woman Astronaut","keywords":["female","space","rocket","human"],"skins":[{"unified":"1f469-200d-1f680","native":"👩🚀"},{"unified":"1f469-1f3fb-200d-1f680","native":"👩🏻🚀"},{"unified":"1f469-1f3fc-200d-1f680","native":"👩🏼🚀"},{"unified":"1f469-1f3fd-200d-1f680","native":"👩🏽🚀"},{"unified":"1f469-1f3fe-200d-1f680","native":"👩🏾🚀"},{"unified":"1f469-1f3ff-200d-1f680","native":"👩🏿🚀"}],"version":4},"firefighter":{"id":"firefighter","name":"Firefighter","keywords":["fire"],"skins":[{"unified":"1f9d1-200d-1f692","native":"🧑🚒"},{"unified":"1f9d1-1f3fb-200d-1f692","native":"🧑🏻🚒"},{"unified":"1f9d1-1f3fc-200d-1f692","native":"🧑🏼🚒"},{"unified":"1f9d1-1f3fd-200d-1f692","native":"🧑🏽🚒"},{"unified":"1f9d1-1f3fe-200d-1f692","native":"🧑🏾🚒"},{"unified":"1f9d1-1f3ff-200d-1f692","native":"🧑🏿🚒"}],"version":12.1},"male-firefighter":{"id":"male-firefighter","name":"Man Firefighter","keywords":["male","fireman","human"],"skins":[{"unified":"1f468-200d-1f692","native":"👨🚒"},{"unified":"1f468-1f3fb-200d-1f692","native":"👨🏻🚒"},{"unified":"1f468-1f3fc-200d-1f692","native":"👨🏼🚒"},{"unified":"1f468-1f3fd-200d-1f692","native":"👨🏽🚒"},{"unified":"1f468-1f3fe-200d-1f692","native":"👨🏾🚒"},{"unified":"1f468-1f3ff-200d-1f692","native":"👨🏿🚒"}],"version":4},"female-firefighter":{"id":"female-firefighter","name":"Woman Firefighter","keywords":["female","fireman","human"],"skins":[{"unified":"1f469-200d-1f692","native":"👩🚒"},{"unified":"1f469-1f3fb-200d-1f692","native":"👩🏻🚒"},{"unified":"1f469-1f3fc-200d-1f692","native":"👩🏼🚒"},{"unified":"1f469-1f3fd-200d-1f692","native":"👩🏽🚒"},{"unified":"1f469-1f3fe-200d-1f692","native":"👩🏾🚒"},{"unified":"1f469-1f3ff-200d-1f692","native":"👩🏿🚒"}],"version":4},"cop":{"id":"cop","name":"Police Officer","keywords":["cop"],"skins":[{"unified":"1f46e","native":"👮"},{"unified":"1f46e-1f3fb","native":"👮🏻"},{"unified":"1f46e-1f3fc","native":"👮🏼"},{"unified":"1f46e-1f3fd","native":"👮🏽"},{"unified":"1f46e-1f3fe","native":"👮🏾"},{"unified":"1f46e-1f3ff","native":"👮🏿"}],"version":1},"male-police-officer":{"id":"male-police-officer","name":"Man Police Officer","keywords":["male","police-officer","law","legal","enforcement","arrest","911"],"skins":[{"unified":"1f46e-200d-2642-fe0f","native":"👮♂️"},{"unified":"1f46e-1f3fb-200d-2642-fe0f","native":"👮🏻♂️"},{"unified":"1f46e-1f3fc-200d-2642-fe0f","native":"👮🏼♂️"},{"unified":"1f46e-1f3fd-200d-2642-fe0f","native":"👮🏽♂️"},{"unified":"1f46e-1f3fe-200d-2642-fe0f","native":"👮🏾♂️"},{"unified":"1f46e-1f3ff-200d-2642-fe0f","native":"👮🏿♂️"}],"version":4},"female-police-officer":{"id":"female-police-officer","name":"Woman Police Officer","keywords":["female","police-officer","law","legal","enforcement","arrest","911"],"skins":[{"unified":"1f46e-200d-2640-fe0f","native":"👮♀️"},{"unified":"1f46e-1f3fb-200d-2640-fe0f","native":"👮🏻♀️"},{"unified":"1f46e-1f3fc-200d-2640-fe0f","native":"👮🏼♀️"},{"unified":"1f46e-1f3fd-200d-2640-fe0f","native":"👮🏽♀️"},{"unified":"1f46e-1f3fe-200d-2640-fe0f","native":"👮🏾♀️"},{"unified":"1f46e-1f3ff-200d-2640-fe0f","native":"👮🏿♀️"}],"version":4},"sleuth_or_spy":{"id":"sleuth_or_spy","name":"Detective","keywords":["sleuth","or","spy","human"],"skins":[{"unified":"1f575-fe0f","native":"🕵️"},{"unified":"1f575-1f3fb","native":"🕵🏻"},{"unified":"1f575-1f3fc","native":"🕵🏼"},{"unified":"1f575-1f3fd","native":"🕵🏽"},{"unified":"1f575-1f3fe","native":"🕵🏾"},{"unified":"1f575-1f3ff","native":"🕵🏿"}],"version":1},"male-detective":{"id":"male-detective","name":"Man Detective","keywords":["male","crime"],"skins":[{"unified":"1f575-fe0f-200d-2642-fe0f","native":"🕵️♂️"},{"unified":"1f575-1f3fb-200d-2642-fe0f","native":"🕵🏻♂️"},{"unified":"1f575-1f3fc-200d-2642-fe0f","native":"🕵🏼♂️"},{"unified":"1f575-1f3fd-200d-2642-fe0f","native":"🕵🏽♂️"},{"unified":"1f575-1f3fe-200d-2642-fe0f","native":"🕵🏾♂️"},{"unified":"1f575-1f3ff-200d-2642-fe0f","native":"🕵🏿♂️"}],"version":4},"female-detective":{"id":"female-detective","name":"Woman Detective","keywords":["female","human","spy"],"skins":[{"unified":"1f575-fe0f-200d-2640-fe0f","native":"🕵️♀️"},{"unified":"1f575-1f3fb-200d-2640-fe0f","native":"🕵🏻♀️"},{"unified":"1f575-1f3fc-200d-2640-fe0f","native":"🕵🏼♀️"},{"unified":"1f575-1f3fd-200d-2640-fe0f","native":"🕵🏽♀️"},{"unified":"1f575-1f3fe-200d-2640-fe0f","native":"🕵🏾♀️"},{"unified":"1f575-1f3ff-200d-2640-fe0f","native":"🕵🏿♀️"}],"version":4},"guardsman":{"id":"guardsman","name":"Guard","keywords":["guardsman","protect"],"skins":[{"unified":"1f482","native":"💂"},{"unified":"1f482-1f3fb","native":"💂🏻"},{"unified":"1f482-1f3fc","native":"💂🏼"},{"unified":"1f482-1f3fd","native":"💂🏽"},{"unified":"1f482-1f3fe","native":"💂🏾"},{"unified":"1f482-1f3ff","native":"💂🏿"}],"version":1},"male-guard":{"id":"male-guard","name":"Man Guard","keywords":["male","uk","gb","british","guy","royal"],"skins":[{"unified":"1f482-200d-2642-fe0f","native":"💂♂️"},{"unified":"1f482-1f3fb-200d-2642-fe0f","native":"💂🏻♂️"},{"unified":"1f482-1f3fc-200d-2642-fe0f","native":"💂🏼♂️"},{"unified":"1f482-1f3fd-200d-2642-fe0f","native":"💂🏽♂️"},{"unified":"1f482-1f3fe-200d-2642-fe0f","native":"💂🏾♂️"},{"unified":"1f482-1f3ff-200d-2642-fe0f","native":"💂🏿♂️"}],"version":4},"female-guard":{"id":"female-guard","name":"Woman Guard","keywords":["female","uk","gb","british","royal"],"skins":[{"unified":"1f482-200d-2640-fe0f","native":"💂♀️"},{"unified":"1f482-1f3fb-200d-2640-fe0f","native":"💂🏻♀️"},{"unified":"1f482-1f3fc-200d-2640-fe0f","native":"💂🏼♀️"},{"unified":"1f482-1f3fd-200d-2640-fe0f","native":"💂🏽♀️"},{"unified":"1f482-1f3fe-200d-2640-fe0f","native":"💂🏾♀️"},{"unified":"1f482-1f3ff-200d-2640-fe0f","native":"💂🏿♀️"}],"version":4},"ninja":{"id":"ninja","name":"Ninja","keywords":["ninjutsu","skills","japanese"],"skins":[{"unified":"1f977","native":"🥷"},{"unified":"1f977-1f3fb","native":"🥷🏻"},{"unified":"1f977-1f3fc","native":"🥷🏼"},{"unified":"1f977-1f3fd","native":"🥷🏽"},{"unified":"1f977-1f3fe","native":"🥷🏾"},{"unified":"1f977-1f3ff","native":"🥷🏿"}],"version":13},"construction_worker":{"id":"construction_worker","name":"Construction Worker","keywords":["labor","build"],"skins":[{"unified":"1f477","native":"👷"},{"unified":"1f477-1f3fb","native":"👷🏻"},{"unified":"1f477-1f3fc","native":"👷🏼"},{"unified":"1f477-1f3fd","native":"👷🏽"},{"unified":"1f477-1f3fe","native":"👷🏾"},{"unified":"1f477-1f3ff","native":"👷🏿"}],"version":1},"male-construction-worker":{"id":"male-construction-worker","name":"Man Construction Worker","keywords":["male","construction-worker","human","wip","guy","build","labor"],"skins":[{"unified":"1f477-200d-2642-fe0f","native":"👷♂️"},{"unified":"1f477-1f3fb-200d-2642-fe0f","native":"👷🏻♂️"},{"unified":"1f477-1f3fc-200d-2642-fe0f","native":"👷🏼♂️"},{"unified":"1f477-1f3fd-200d-2642-fe0f","native":"👷🏽♂️"},{"unified":"1f477-1f3fe-200d-2642-fe0f","native":"👷🏾♂️"},{"unified":"1f477-1f3ff-200d-2642-fe0f","native":"👷🏿♂️"}],"version":4},"female-construction-worker":{"id":"female-construction-worker","name":"Woman Construction Worker","keywords":["female","construction-worker","human","wip","build","labor"],"skins":[{"unified":"1f477-200d-2640-fe0f","native":"👷♀️"},{"unified":"1f477-1f3fb-200d-2640-fe0f","native":"👷🏻♀️"},{"unified":"1f477-1f3fc-200d-2640-fe0f","native":"👷🏼♀️"},{"unified":"1f477-1f3fd-200d-2640-fe0f","native":"👷🏽♀️"},{"unified":"1f477-1f3fe-200d-2640-fe0f","native":"👷🏾♀️"},{"unified":"1f477-1f3ff-200d-2640-fe0f","native":"👷🏿♀️"}],"version":4},"person_with_crown":{"id":"person_with_crown","name":"Person with Crown","keywords":["royalty","power"],"skins":[{"unified":"1fac5","native":"🫅"},{"unified":"1fac5-1f3fb","native":"🫅🏻"},{"unified":"1fac5-1f3fc","native":"🫅🏼"},{"unified":"1fac5-1f3fd","native":"🫅🏽"},{"unified":"1fac5-1f3fe","native":"🫅🏾"},{"unified":"1fac5-1f3ff","native":"🫅🏿"}],"version":14},"prince":{"id":"prince","name":"Prince","keywords":["boy","man","male","crown","royal","king"],"skins":[{"unified":"1f934","native":"🤴"},{"unified":"1f934-1f3fb","native":"🤴🏻"},{"unified":"1f934-1f3fc","native":"🤴🏼"},{"unified":"1f934-1f3fd","native":"🤴🏽"},{"unified":"1f934-1f3fe","native":"🤴🏾"},{"unified":"1f934-1f3ff","native":"🤴🏿"}],"version":3},"princess":{"id":"princess","name":"Princess","keywords":["girl","woman","female","blond","crown","royal","queen"],"skins":[{"unified":"1f478","native":"👸"},{"unified":"1f478-1f3fb","native":"👸🏻"},{"unified":"1f478-1f3fc","native":"👸🏼"},{"unified":"1f478-1f3fd","native":"👸🏽"},{"unified":"1f478-1f3fe","native":"👸🏾"},{"unified":"1f478-1f3ff","native":"👸🏿"}],"version":1},"man_with_turban":{"id":"man_with_turban","name":"Man with Turban","keywords":["person","wearing","headdress"],"skins":[{"unified":"1f473","native":"👳"},{"unified":"1f473-1f3fb","native":"👳🏻"},{"unified":"1f473-1f3fc","native":"👳🏼"},{"unified":"1f473-1f3fd","native":"👳🏽"},{"unified":"1f473-1f3fe","native":"👳🏾"},{"unified":"1f473-1f3ff","native":"👳🏿"}],"version":1},"man-wearing-turban":{"id":"man-wearing-turban","name":"Man Wearing Turban","keywords":["wearing-turban","male","indian","hinduism","arabs"],"skins":[{"unified":"1f473-200d-2642-fe0f","native":"👳♂️"},{"unified":"1f473-1f3fb-200d-2642-fe0f","native":"👳🏻♂️"},{"unified":"1f473-1f3fc-200d-2642-fe0f","native":"👳🏼♂️"},{"unified":"1f473-1f3fd-200d-2642-fe0f","native":"👳🏽♂️"},{"unified":"1f473-1f3fe-200d-2642-fe0f","native":"👳🏾♂️"},{"unified":"1f473-1f3ff-200d-2642-fe0f","native":"👳🏿♂️"}],"version":4},"woman-wearing-turban":{"id":"woman-wearing-turban","name":"Woman Wearing Turban","keywords":["wearing-turban","female","indian","hinduism","arabs"],"skins":[{"unified":"1f473-200d-2640-fe0f","native":"👳♀️"},{"unified":"1f473-1f3fb-200d-2640-fe0f","native":"👳🏻♀️"},{"unified":"1f473-1f3fc-200d-2640-fe0f","native":"👳🏼♀️"},{"unified":"1f473-1f3fd-200d-2640-fe0f","native":"👳🏽♀️"},{"unified":"1f473-1f3fe-200d-2640-fe0f","native":"👳🏾♀️"},{"unified":"1f473-1f3ff-200d-2640-fe0f","native":"👳🏿♀️"}],"version":4},"man_with_gua_pi_mao":{"id":"man_with_gua_pi_mao","name":"Man with Gua Pi Mao","keywords":["skullcap","male","boy","chinese"],"skins":[{"unified":"1f472","native":"👲"},{"unified":"1f472-1f3fb","native":"👲🏻"},{"unified":"1f472-1f3fc","native":"👲🏼"},{"unified":"1f472-1f3fd","native":"👲🏽"},{"unified":"1f472-1f3fe","native":"👲🏾"},{"unified":"1f472-1f3ff","native":"👲🏿"}],"version":1},"person_with_headscarf":{"id":"person_with_headscarf","name":"Woman with Headscarf","keywords":["person","female","hijab","mantilla","tichel"],"skins":[{"unified":"1f9d5","native":"🧕"},{"unified":"1f9d5-1f3fb","native":"🧕🏻"},{"unified":"1f9d5-1f3fc","native":"🧕🏼"},{"unified":"1f9d5-1f3fd","native":"🧕🏽"},{"unified":"1f9d5-1f3fe","native":"🧕🏾"},{"unified":"1f9d5-1f3ff","native":"🧕🏿"}],"version":5},"person_in_tuxedo":{"id":"person_in_tuxedo","name":"Man in Tuxedo","keywords":["person","couple","marriage","wedding","groom"],"skins":[{"unified":"1f935","native":"🤵"},{"unified":"1f935-1f3fb","native":"🤵🏻"},{"unified":"1f935-1f3fc","native":"🤵🏼"},{"unified":"1f935-1f3fd","native":"🤵🏽"},{"unified":"1f935-1f3fe","native":"🤵🏾"},{"unified":"1f935-1f3ff","native":"🤵🏿"}],"version":3},"man_in_tuxedo":{"id":"man_in_tuxedo","name":"Man in Tuxedo","keywords":["formal","fashion"],"skins":[{"unified":"1f935-200d-2642-fe0f","native":"🤵♂️"},{"unified":"1f935-1f3fb-200d-2642-fe0f","native":"🤵🏻♂️"},{"unified":"1f935-1f3fc-200d-2642-fe0f","native":"🤵🏼♂️"},{"unified":"1f935-1f3fd-200d-2642-fe0f","native":"🤵🏽♂️"},{"unified":"1f935-1f3fe-200d-2642-fe0f","native":"🤵🏾♂️"},{"unified":"1f935-1f3ff-200d-2642-fe0f","native":"🤵🏿♂️"}],"version":13},"woman_in_tuxedo":{"id":"woman_in_tuxedo","name":"Woman in Tuxedo","keywords":["formal","fashion"],"skins":[{"unified":"1f935-200d-2640-fe0f","native":"🤵♀️"},{"unified":"1f935-1f3fb-200d-2640-fe0f","native":"🤵🏻♀️"},{"unified":"1f935-1f3fc-200d-2640-fe0f","native":"🤵🏼♀️"},{"unified":"1f935-1f3fd-200d-2640-fe0f","native":"🤵🏽♀️"},{"unified":"1f935-1f3fe-200d-2640-fe0f","native":"🤵🏾♀️"},{"unified":"1f935-1f3ff-200d-2640-fe0f","native":"🤵🏿♀️"}],"version":13},"bride_with_veil":{"id":"bride_with_veil","name":"Bride with Veil","keywords":["couple","marriage","wedding","woman"],"skins":[{"unified":"1f470","native":"👰"},{"unified":"1f470-1f3fb","native":"👰🏻"},{"unified":"1f470-1f3fc","native":"👰🏼"},{"unified":"1f470-1f3fd","native":"👰🏽"},{"unified":"1f470-1f3fe","native":"👰🏾"},{"unified":"1f470-1f3ff","native":"👰🏿"}],"version":1},"man_with_veil":{"id":"man_with_veil","name":"Man with Veil","keywords":["wedding","marriage"],"skins":[{"unified":"1f470-200d-2642-fe0f","native":"👰♂️"},{"unified":"1f470-1f3fb-200d-2642-fe0f","native":"👰🏻♂️"},{"unified":"1f470-1f3fc-200d-2642-fe0f","native":"👰🏼♂️"},{"unified":"1f470-1f3fd-200d-2642-fe0f","native":"👰🏽♂️"},{"unified":"1f470-1f3fe-200d-2642-fe0f","native":"👰🏾♂️"},{"unified":"1f470-1f3ff-200d-2642-fe0f","native":"👰🏿♂️"}],"version":13},"woman_with_veil":{"id":"woman_with_veil","name":"Woman with Veil","keywords":["wedding","marriage"],"skins":[{"unified":"1f470-200d-2640-fe0f","native":"👰♀️"},{"unified":"1f470-1f3fb-200d-2640-fe0f","native":"👰🏻♀️"},{"unified":"1f470-1f3fc-200d-2640-fe0f","native":"👰🏼♀️"},{"unified":"1f470-1f3fd-200d-2640-fe0f","native":"👰🏽♀️"},{"unified":"1f470-1f3fe-200d-2640-fe0f","native":"👰🏾♀️"},{"unified":"1f470-1f3ff-200d-2640-fe0f","native":"👰🏿♀️"}],"version":13},"pregnant_woman":{"id":"pregnant_woman","name":"Pregnant Woman","keywords":["baby"],"skins":[{"unified":"1f930","native":"🤰"},{"unified":"1f930-1f3fb","native":"🤰🏻"},{"unified":"1f930-1f3fc","native":"🤰🏼"},{"unified":"1f930-1f3fd","native":"🤰🏽"},{"unified":"1f930-1f3fe","native":"🤰🏾"},{"unified":"1f930-1f3ff","native":"🤰🏿"}],"version":3},"pregnant_man":{"id":"pregnant_man","name":"Pregnant Man","keywords":["baby","belly"],"skins":[{"unified":"1fac3","native":"🫃"},{"unified":"1fac3-1f3fb","native":"🫃🏻"},{"unified":"1fac3-1f3fc","native":"🫃🏼"},{"unified":"1fac3-1f3fd","native":"🫃🏽"},{"unified":"1fac3-1f3fe","native":"🫃🏾"},{"unified":"1fac3-1f3ff","native":"🫃🏿"}],"version":14},"pregnant_person":{"id":"pregnant_person","name":"Pregnant Person","keywords":["baby","belly"],"skins":[{"unified":"1fac4","native":"🫄"},{"unified":"1fac4-1f3fb","native":"🫄🏻"},{"unified":"1fac4-1f3fc","native":"🫄🏼"},{"unified":"1fac4-1f3fd","native":"🫄🏽"},{"unified":"1fac4-1f3fe","native":"🫄🏾"},{"unified":"1fac4-1f3ff","native":"🫄🏿"}],"version":14},"breast-feeding":{"id":"breast-feeding","name":"Breast-Feeding","keywords":["breast","feeding","nursing","baby"],"skins":[{"unified":"1f931","native":"🤱"},{"unified":"1f931-1f3fb","native":"🤱🏻"},{"unified":"1f931-1f3fc","native":"🤱🏼"},{"unified":"1f931-1f3fd","native":"🤱🏽"},{"unified":"1f931-1f3fe","native":"🤱🏾"},{"unified":"1f931-1f3ff","native":"🤱🏿"}],"version":5},"woman_feeding_baby":{"id":"woman_feeding_baby","name":"Woman Feeding Baby","keywords":["birth","food"],"skins":[{"unified":"1f469-200d-1f37c","native":"👩🍼"},{"unified":"1f469-1f3fb-200d-1f37c","native":"👩🏻🍼"},{"unified":"1f469-1f3fc-200d-1f37c","native":"👩🏼🍼"},{"unified":"1f469-1f3fd-200d-1f37c","native":"👩🏽🍼"},{"unified":"1f469-1f3fe-200d-1f37c","native":"👩🏾🍼"},{"unified":"1f469-1f3ff-200d-1f37c","native":"👩🏿🍼"}],"version":13},"man_feeding_baby":{"id":"man_feeding_baby","name":"Man Feeding Baby","keywords":["birth","food"],"skins":[{"unified":"1f468-200d-1f37c","native":"👨🍼"},{"unified":"1f468-1f3fb-200d-1f37c","native":"👨🏻🍼"},{"unified":"1f468-1f3fc-200d-1f37c","native":"👨🏼🍼"},{"unified":"1f468-1f3fd-200d-1f37c","native":"👨🏽🍼"},{"unified":"1f468-1f3fe-200d-1f37c","native":"👨🏾🍼"},{"unified":"1f468-1f3ff-200d-1f37c","native":"👨🏿🍼"}],"version":13},"person_feeding_baby":{"id":"person_feeding_baby","name":"Person Feeding Baby","keywords":["birth","food"],"skins":[{"unified":"1f9d1-200d-1f37c","native":"🧑🍼"},{"unified":"1f9d1-1f3fb-200d-1f37c","native":"🧑🏻🍼"},{"unified":"1f9d1-1f3fc-200d-1f37c","native":"🧑🏼🍼"},{"unified":"1f9d1-1f3fd-200d-1f37c","native":"🧑🏽🍼"},{"unified":"1f9d1-1f3fe-200d-1f37c","native":"🧑🏾🍼"},{"unified":"1f9d1-1f3ff-200d-1f37c","native":"🧑🏿🍼"}],"version":13},"angel":{"id":"angel","name":"Baby Angel","keywords":["heaven","wings","halo"],"skins":[{"unified":"1f47c","native":"👼"},{"unified":"1f47c-1f3fb","native":"👼🏻"},{"unified":"1f47c-1f3fc","native":"👼🏼"},{"unified":"1f47c-1f3fd","native":"👼🏽"},{"unified":"1f47c-1f3fe","native":"👼🏾"},{"unified":"1f47c-1f3ff","native":"👼🏿"}],"version":1},"santa":{"id":"santa","name":"Santa Claus","keywords":["festival","man","male","xmas","father","christmas"],"skins":[{"unified":"1f385","native":"🎅"},{"unified":"1f385-1f3fb","native":"🎅🏻"},{"unified":"1f385-1f3fc","native":"🎅🏼"},{"unified":"1f385-1f3fd","native":"🎅🏽"},{"unified":"1f385-1f3fe","native":"🎅🏾"},{"unified":"1f385-1f3ff","native":"🎅🏿"}],"version":1},"mrs_claus":{"id":"mrs_claus","name":"Mrs. Claus","keywords":["mrs","mother","christmas","woman","female","xmas"],"skins":[{"unified":"1f936","native":"🤶"},{"unified":"1f936-1f3fb","native":"🤶🏻"},{"unified":"1f936-1f3fc","native":"🤶🏼"},{"unified":"1f936-1f3fd","native":"🤶🏽"},{"unified":"1f936-1f3fe","native":"🤶🏾"},{"unified":"1f936-1f3ff","native":"🤶🏿"}],"version":3},"mx_claus":{"id":"mx_claus","name":"Mx Claus","keywords":["christmas"],"skins":[{"unified":"1f9d1-200d-1f384","native":"🧑🎄"},{"unified":"1f9d1-1f3fb-200d-1f384","native":"🧑🏻🎄"},{"unified":"1f9d1-1f3fc-200d-1f384","native":"🧑🏼🎄"},{"unified":"1f9d1-1f3fd-200d-1f384","native":"🧑🏽🎄"},{"unified":"1f9d1-1f3fe-200d-1f384","native":"🧑🏾🎄"},{"unified":"1f9d1-1f3ff-200d-1f384","native":"🧑🏿🎄"}],"version":13},"superhero":{"id":"superhero","name":"Superhero","keywords":["marvel"],"skins":[{"unified":"1f9b8","native":"🦸"},{"unified":"1f9b8-1f3fb","native":"🦸🏻"},{"unified":"1f9b8-1f3fc","native":"🦸🏼"},{"unified":"1f9b8-1f3fd","native":"🦸🏽"},{"unified":"1f9b8-1f3fe","native":"🦸🏾"},{"unified":"1f9b8-1f3ff","native":"🦸🏿"}],"version":11},"male_superhero":{"id":"male_superhero","name":"Man Superhero","keywords":["male","good","hero","superpowers"],"skins":[{"unified":"1f9b8-200d-2642-fe0f","native":"🦸♂️"},{"unified":"1f9b8-1f3fb-200d-2642-fe0f","native":"🦸🏻♂️"},{"unified":"1f9b8-1f3fc-200d-2642-fe0f","native":"🦸🏼♂️"},{"unified":"1f9b8-1f3fd-200d-2642-fe0f","native":"🦸🏽♂️"},{"unified":"1f9b8-1f3fe-200d-2642-fe0f","native":"🦸🏾♂️"},{"unified":"1f9b8-1f3ff-200d-2642-fe0f","native":"🦸🏿♂️"}],"version":11},"female_superhero":{"id":"female_superhero","name":"Woman Superhero","keywords":["female","good","heroine","superpowers"],"skins":[{"unified":"1f9b8-200d-2640-fe0f","native":"🦸♀️"},{"unified":"1f9b8-1f3fb-200d-2640-fe0f","native":"🦸🏻♀️"},{"unified":"1f9b8-1f3fc-200d-2640-fe0f","native":"🦸🏼♀️"},{"unified":"1f9b8-1f3fd-200d-2640-fe0f","native":"🦸🏽♀️"},{"unified":"1f9b8-1f3fe-200d-2640-fe0f","native":"🦸🏾♀️"},{"unified":"1f9b8-1f3ff-200d-2640-fe0f","native":"🦸🏿♀️"}],"version":11},"supervillain":{"id":"supervillain","name":"Supervillain","keywords":["marvel"],"skins":[{"unified":"1f9b9","native":"🦹"},{"unified":"1f9b9-1f3fb","native":"🦹🏻"},{"unified":"1f9b9-1f3fc","native":"🦹🏼"},{"unified":"1f9b9-1f3fd","native":"🦹🏽"},{"unified":"1f9b9-1f3fe","native":"🦹🏾"},{"unified":"1f9b9-1f3ff","native":"🦹🏿"}],"version":11},"male_supervillain":{"id":"male_supervillain","name":"Man Supervillain","keywords":["male","evil","bad","criminal","hero","superpowers"],"skins":[{"unified":"1f9b9-200d-2642-fe0f","native":"🦹♂️"},{"unified":"1f9b9-1f3fb-200d-2642-fe0f","native":"🦹🏻♂️"},{"unified":"1f9b9-1f3fc-200d-2642-fe0f","native":"🦹🏼♂️"},{"unified":"1f9b9-1f3fd-200d-2642-fe0f","native":"🦹🏽♂️"},{"unified":"1f9b9-1f3fe-200d-2642-fe0f","native":"🦹🏾♂️"},{"unified":"1f9b9-1f3ff-200d-2642-fe0f","native":"🦹🏿♂️"}],"version":11},"female_supervillain":{"id":"female_supervillain","name":"Woman Supervillain","keywords":["female","evil","bad","criminal","heroine","superpowers"],"skins":[{"unified":"1f9b9-200d-2640-fe0f","native":"🦹♀️"},{"unified":"1f9b9-1f3fb-200d-2640-fe0f","native":"🦹🏻♀️"},{"unified":"1f9b9-1f3fc-200d-2640-fe0f","native":"🦹🏼♀️"},{"unified":"1f9b9-1f3fd-200d-2640-fe0f","native":"🦹🏽♀️"},{"unified":"1f9b9-1f3fe-200d-2640-fe0f","native":"🦹🏾♀️"},{"unified":"1f9b9-1f3ff-200d-2640-fe0f","native":"🦹🏿♀️"}],"version":11},"mage":{"id":"mage","name":"Mage","keywords":["magic"],"skins":[{"unified":"1f9d9","native":"🧙"},{"unified":"1f9d9-1f3fb","native":"🧙🏻"},{"unified":"1f9d9-1f3fc","native":"🧙🏼"},{"unified":"1f9d9-1f3fd","native":"🧙🏽"},{"unified":"1f9d9-1f3fe","native":"🧙🏾"},{"unified":"1f9d9-1f3ff","native":"🧙🏿"}],"version":5},"male_mage":{"id":"male_mage","name":"Man Mage","keywords":["male","sorcerer"],"skins":[{"unified":"1f9d9-200d-2642-fe0f","native":"🧙♂️"},{"unified":"1f9d9-1f3fb-200d-2642-fe0f","native":"🧙🏻♂️"},{"unified":"1f9d9-1f3fc-200d-2642-fe0f","native":"🧙🏼♂️"},{"unified":"1f9d9-1f3fd-200d-2642-fe0f","native":"🧙🏽♂️"},{"unified":"1f9d9-1f3fe-200d-2642-fe0f","native":"🧙🏾♂️"},{"unified":"1f9d9-1f3ff-200d-2642-fe0f","native":"🧙🏿♂️"}],"version":5},"female_mage":{"id":"female_mage","name":"Woman Mage","keywords":["female","witch"],"skins":[{"unified":"1f9d9-200d-2640-fe0f","native":"🧙♀️"},{"unified":"1f9d9-1f3fb-200d-2640-fe0f","native":"🧙🏻♀️"},{"unified":"1f9d9-1f3fc-200d-2640-fe0f","native":"🧙🏼♀️"},{"unified":"1f9d9-1f3fd-200d-2640-fe0f","native":"🧙🏽♀️"},{"unified":"1f9d9-1f3fe-200d-2640-fe0f","native":"🧙🏾♀️"},{"unified":"1f9d9-1f3ff-200d-2640-fe0f","native":"🧙🏿♀️"}],"version":5},"fairy":{"id":"fairy","name":"Fairy","keywords":["wings","magical"],"skins":[{"unified":"1f9da","native":"🧚"},{"unified":"1f9da-1f3fb","native":"🧚🏻"},{"unified":"1f9da-1f3fc","native":"🧚🏼"},{"unified":"1f9da-1f3fd","native":"🧚🏽"},{"unified":"1f9da-1f3fe","native":"🧚🏾"},{"unified":"1f9da-1f3ff","native":"🧚🏿"}],"version":5},"male_fairy":{"id":"male_fairy","name":"Man Fairy","keywords":["male"],"skins":[{"unified":"1f9da-200d-2642-fe0f","native":"🧚♂️"},{"unified":"1f9da-1f3fb-200d-2642-fe0f","native":"🧚🏻♂️"},{"unified":"1f9da-1f3fc-200d-2642-fe0f","native":"🧚🏼♂️"},{"unified":"1f9da-1f3fd-200d-2642-fe0f","native":"🧚🏽♂️"},{"unified":"1f9da-1f3fe-200d-2642-fe0f","native":"🧚🏾♂️"},{"unified":"1f9da-1f3ff-200d-2642-fe0f","native":"🧚🏿♂️"}],"version":5},"female_fairy":{"id":"female_fairy","name":"Woman Fairy","keywords":["female"],"skins":[{"unified":"1f9da-200d-2640-fe0f","native":"🧚♀️"},{"unified":"1f9da-1f3fb-200d-2640-fe0f","native":"🧚🏻♀️"},{"unified":"1f9da-1f3fc-200d-2640-fe0f","native":"🧚🏼♀️"},{"unified":"1f9da-1f3fd-200d-2640-fe0f","native":"🧚🏽♀️"},{"unified":"1f9da-1f3fe-200d-2640-fe0f","native":"🧚🏾♀️"},{"unified":"1f9da-1f3ff-200d-2640-fe0f","native":"🧚🏿♀️"}],"version":5},"vampire":{"id":"vampire","name":"Vampire","keywords":["blood","twilight"],"skins":[{"unified":"1f9db","native":"🧛"},{"unified":"1f9db-1f3fb","native":"🧛🏻"},{"unified":"1f9db-1f3fc","native":"🧛🏼"},{"unified":"1f9db-1f3fd","native":"🧛🏽"},{"unified":"1f9db-1f3fe","native":"🧛🏾"},{"unified":"1f9db-1f3ff","native":"🧛🏿"}],"version":5},"male_vampire":{"id":"male_vampire","name":"Man Vampire","keywords":["male","dracula"],"skins":[{"unified":"1f9db-200d-2642-fe0f","native":"🧛♂️"},{"unified":"1f9db-1f3fb-200d-2642-fe0f","native":"🧛🏻♂️"},{"unified":"1f9db-1f3fc-200d-2642-fe0f","native":"🧛🏼♂️"},{"unified":"1f9db-1f3fd-200d-2642-fe0f","native":"🧛🏽♂️"},{"unified":"1f9db-1f3fe-200d-2642-fe0f","native":"🧛🏾♂️"},{"unified":"1f9db-1f3ff-200d-2642-fe0f","native":"🧛🏿♂️"}],"version":5},"female_vampire":{"id":"female_vampire","name":"Woman Vampire","keywords":["female"],"skins":[{"unified":"1f9db-200d-2640-fe0f","native":"🧛♀️"},{"unified":"1f9db-1f3fb-200d-2640-fe0f","native":"🧛🏻♀️"},{"unified":"1f9db-1f3fc-200d-2640-fe0f","native":"🧛🏼♀️"},{"unified":"1f9db-1f3fd-200d-2640-fe0f","native":"🧛🏽♀️"},{"unified":"1f9db-1f3fe-200d-2640-fe0f","native":"🧛🏾♀️"},{"unified":"1f9db-1f3ff-200d-2640-fe0f","native":"🧛🏿♀️"}],"version":5},"merperson":{"id":"merperson","name":"Merperson","keywords":["sea"],"skins":[{"unified":"1f9dc","native":"🧜"},{"unified":"1f9dc-1f3fb","native":"🧜🏻"},{"unified":"1f9dc-1f3fc","native":"🧜🏼"},{"unified":"1f9dc-1f3fd","native":"🧜🏽"},{"unified":"1f9dc-1f3fe","native":"🧜🏾"},{"unified":"1f9dc-1f3ff","native":"🧜🏿"}],"version":5},"merman":{"id":"merman","name":"Merman","keywords":["man","male","triton"],"skins":[{"unified":"1f9dc-200d-2642-fe0f","native":"🧜♂️"},{"unified":"1f9dc-1f3fb-200d-2642-fe0f","native":"🧜🏻♂️"},{"unified":"1f9dc-1f3fc-200d-2642-fe0f","native":"🧜🏼♂️"},{"unified":"1f9dc-1f3fd-200d-2642-fe0f","native":"🧜🏽♂️"},{"unified":"1f9dc-1f3fe-200d-2642-fe0f","native":"🧜🏾♂️"},{"unified":"1f9dc-1f3ff-200d-2642-fe0f","native":"🧜🏿♂️"}],"version":5},"mermaid":{"id":"mermaid","name":"Mermaid","keywords":["woman","female","merwoman","ariel"],"skins":[{"unified":"1f9dc-200d-2640-fe0f","native":"🧜♀️"},{"unified":"1f9dc-1f3fb-200d-2640-fe0f","native":"🧜🏻♀️"},{"unified":"1f9dc-1f3fc-200d-2640-fe0f","native":"🧜🏼♀️"},{"unified":"1f9dc-1f3fd-200d-2640-fe0f","native":"🧜🏽♀️"},{"unified":"1f9dc-1f3fe-200d-2640-fe0f","native":"🧜🏾♀️"},{"unified":"1f9dc-1f3ff-200d-2640-fe0f","native":"🧜🏿♀️"}],"version":5},"elf":{"id":"elf","name":"Elf","keywords":["magical"],"skins":[{"unified":"1f9dd","native":"🧝"},{"unified":"1f9dd-1f3fb","native":"🧝🏻"},{"unified":"1f9dd-1f3fc","native":"🧝🏼"},{"unified":"1f9dd-1f3fd","native":"🧝🏽"},{"unified":"1f9dd-1f3fe","native":"🧝🏾"},{"unified":"1f9dd-1f3ff","native":"🧝🏿"}],"version":5},"male_elf":{"id":"male_elf","name":"Man Elf","keywords":["male"],"skins":[{"unified":"1f9dd-200d-2642-fe0f","native":"🧝♂️"},{"unified":"1f9dd-1f3fb-200d-2642-fe0f","native":"🧝🏻♂️"},{"unified":"1f9dd-1f3fc-200d-2642-fe0f","native":"🧝🏼♂️"},{"unified":"1f9dd-1f3fd-200d-2642-fe0f","native":"🧝🏽♂️"},{"unified":"1f9dd-1f3fe-200d-2642-fe0f","native":"🧝🏾♂️"},{"unified":"1f9dd-1f3ff-200d-2642-fe0f","native":"🧝🏿♂️"}],"version":5},"female_elf":{"id":"female_elf","name":"Woman Elf","keywords":["female"],"skins":[{"unified":"1f9dd-200d-2640-fe0f","native":"🧝♀️"},{"unified":"1f9dd-1f3fb-200d-2640-fe0f","native":"🧝🏻♀️"},{"unified":"1f9dd-1f3fc-200d-2640-fe0f","native":"🧝🏼♀️"},{"unified":"1f9dd-1f3fd-200d-2640-fe0f","native":"🧝🏽♀️"},{"unified":"1f9dd-1f3fe-200d-2640-fe0f","native":"🧝🏾♀️"},{"unified":"1f9dd-1f3ff-200d-2640-fe0f","native":"🧝🏿♀️"}],"version":5},"genie":{"id":"genie","name":"Genie","keywords":["magical","wishes"],"skins":[{"unified":"1f9de","native":"🧞"}],"version":5},"male_genie":{"id":"male_genie","name":"Man Genie","keywords":["male"],"skins":[{"unified":"1f9de-200d-2642-fe0f","native":"🧞♂️"}],"version":5},"female_genie":{"id":"female_genie","name":"Woman Genie","keywords":["female"],"skins":[{"unified":"1f9de-200d-2640-fe0f","native":"🧞♀️"}],"version":5},"zombie":{"id":"zombie","name":"Zombie","keywords":["dead"],"skins":[{"unified":"1f9df","native":"🧟"}],"version":5},"male_zombie":{"id":"male_zombie","name":"Man Zombie","keywords":["male","dracula","undead","walking","dead"],"skins":[{"unified":"1f9df-200d-2642-fe0f","native":"🧟♂️"}],"version":5},"female_zombie":{"id":"female_zombie","name":"Woman Zombie","keywords":["female","undead","walking","dead"],"skins":[{"unified":"1f9df-200d-2640-fe0f","native":"🧟♀️"}],"version":5},"troll":{"id":"troll","name":"Troll","keywords":["mystical","monster"],"skins":[{"unified":"1f9cc","native":"🧌"}],"version":14},"massage":{"id":"massage","name":"Face Massage","keywords":["person","getting","relax"],"skins":[{"unified":"1f486","native":"💆"},{"unified":"1f486-1f3fb","native":"💆🏻"},{"unified":"1f486-1f3fc","native":"💆🏼"},{"unified":"1f486-1f3fd","native":"💆🏽"},{"unified":"1f486-1f3fe","native":"💆🏾"},{"unified":"1f486-1f3ff","native":"💆🏿"}],"version":1},"man-getting-massage":{"id":"man-getting-massage","name":"Man Getting Massage","keywords":["getting-massage","male","boy","head"],"skins":[{"unified":"1f486-200d-2642-fe0f","native":"💆♂️"},{"unified":"1f486-1f3fb-200d-2642-fe0f","native":"💆🏻♂️"},{"unified":"1f486-1f3fc-200d-2642-fe0f","native":"💆🏼♂️"},{"unified":"1f486-1f3fd-200d-2642-fe0f","native":"💆🏽♂️"},{"unified":"1f486-1f3fe-200d-2642-fe0f","native":"💆🏾♂️"},{"unified":"1f486-1f3ff-200d-2642-fe0f","native":"💆🏿♂️"}],"version":4},"woman-getting-massage":{"id":"woman-getting-massage","name":"Woman Getting Massage","keywords":["getting-massage","female","girl","head"],"skins":[{"unified":"1f486-200d-2640-fe0f","native":"💆♀️"},{"unified":"1f486-1f3fb-200d-2640-fe0f","native":"💆🏻♀️"},{"unified":"1f486-1f3fc-200d-2640-fe0f","native":"💆🏼♀️"},{"unified":"1f486-1f3fd-200d-2640-fe0f","native":"💆🏽♀️"},{"unified":"1f486-1f3fe-200d-2640-fe0f","native":"💆🏾♀️"},{"unified":"1f486-1f3ff-200d-2640-fe0f","native":"💆🏿♀️"}],"version":4},"haircut":{"id":"haircut","name":"Haircut","keywords":["person","getting","hairstyle"],"skins":[{"unified":"1f487","native":"💇"},{"unified":"1f487-1f3fb","native":"💇🏻"},{"unified":"1f487-1f3fc","native":"💇🏼"},{"unified":"1f487-1f3fd","native":"💇🏽"},{"unified":"1f487-1f3fe","native":"💇🏾"},{"unified":"1f487-1f3ff","native":"💇🏿"}],"version":1},"man-getting-haircut":{"id":"man-getting-haircut","name":"Man Getting Haircut","keywords":["getting-haircut","male","boy"],"skins":[{"unified":"1f487-200d-2642-fe0f","native":"💇♂️"},{"unified":"1f487-1f3fb-200d-2642-fe0f","native":"💇🏻♂️"},{"unified":"1f487-1f3fc-200d-2642-fe0f","native":"💇🏼♂️"},{"unified":"1f487-1f3fd-200d-2642-fe0f","native":"💇🏽♂️"},{"unified":"1f487-1f3fe-200d-2642-fe0f","native":"💇🏾♂️"},{"unified":"1f487-1f3ff-200d-2642-fe0f","native":"💇🏿♂️"}],"version":4},"woman-getting-haircut":{"id":"woman-getting-haircut","name":"Woman Getting Haircut","keywords":["getting-haircut","female","girl"],"skins":[{"unified":"1f487-200d-2640-fe0f","native":"💇♀️"},{"unified":"1f487-1f3fb-200d-2640-fe0f","native":"💇🏻♀️"},{"unified":"1f487-1f3fc-200d-2640-fe0f","native":"💇🏼♀️"},{"unified":"1f487-1f3fd-200d-2640-fe0f","native":"💇🏽♀️"},{"unified":"1f487-1f3fe-200d-2640-fe0f","native":"💇🏾♀️"},{"unified":"1f487-1f3ff-200d-2640-fe0f","native":"💇🏿♀️"}],"version":4},"walking":{"id":"walking","name":"Pedestrian","keywords":["walking","person","move"],"skins":[{"unified":"1f6b6","native":"🚶"},{"unified":"1f6b6-1f3fb","native":"🚶🏻"},{"unified":"1f6b6-1f3fc","native":"🚶🏼"},{"unified":"1f6b6-1f3fd","native":"🚶🏽"},{"unified":"1f6b6-1f3fe","native":"🚶🏾"},{"unified":"1f6b6-1f3ff","native":"🚶🏿"}],"version":1},"man-walking":{"id":"man-walking","name":"Man Walking","keywords":["human","feet","steps"],"skins":[{"unified":"1f6b6-200d-2642-fe0f","native":"🚶♂️"},{"unified":"1f6b6-1f3fb-200d-2642-fe0f","native":"🚶🏻♂️"},{"unified":"1f6b6-1f3fc-200d-2642-fe0f","native":"🚶🏼♂️"},{"unified":"1f6b6-1f3fd-200d-2642-fe0f","native":"🚶🏽♂️"},{"unified":"1f6b6-1f3fe-200d-2642-fe0f","native":"🚶🏾♂️"},{"unified":"1f6b6-1f3ff-200d-2642-fe0f","native":"🚶🏿♂️"}],"version":4},"woman-walking":{"id":"woman-walking","name":"Woman Walking","keywords":["human","feet","steps","female"],"skins":[{"unified":"1f6b6-200d-2640-fe0f","native":"🚶♀️"},{"unified":"1f6b6-1f3fb-200d-2640-fe0f","native":"🚶🏻♀️"},{"unified":"1f6b6-1f3fc-200d-2640-fe0f","native":"🚶🏼♀️"},{"unified":"1f6b6-1f3fd-200d-2640-fe0f","native":"🚶🏽♀️"},{"unified":"1f6b6-1f3fe-200d-2640-fe0f","native":"🚶🏾♀️"},{"unified":"1f6b6-1f3ff-200d-2640-fe0f","native":"🚶🏿♀️"}],"version":4},"standing_person":{"id":"standing_person","name":"Standing Person","keywords":["still"],"skins":[{"unified":"1f9cd","native":"🧍"},{"unified":"1f9cd-1f3fb","native":"🧍🏻"},{"unified":"1f9cd-1f3fc","native":"🧍🏼"},{"unified":"1f9cd-1f3fd","native":"🧍🏽"},{"unified":"1f9cd-1f3fe","native":"🧍🏾"},{"unified":"1f9cd-1f3ff","native":"🧍🏿"}],"version":12},"man_standing":{"id":"man_standing","name":"Man Standing","keywords":["still"],"skins":[{"unified":"1f9cd-200d-2642-fe0f","native":"🧍♂️"},{"unified":"1f9cd-1f3fb-200d-2642-fe0f","native":"🧍🏻♂️"},{"unified":"1f9cd-1f3fc-200d-2642-fe0f","native":"🧍🏼♂️"},{"unified":"1f9cd-1f3fd-200d-2642-fe0f","native":"🧍🏽♂️"},{"unified":"1f9cd-1f3fe-200d-2642-fe0f","native":"🧍🏾♂️"},{"unified":"1f9cd-1f3ff-200d-2642-fe0f","native":"🧍🏿♂️"}],"version":12},"woman_standing":{"id":"woman_standing","name":"Woman Standing","keywords":["still"],"skins":[{"unified":"1f9cd-200d-2640-fe0f","native":"🧍♀️"},{"unified":"1f9cd-1f3fb-200d-2640-fe0f","native":"🧍🏻♀️"},{"unified":"1f9cd-1f3fc-200d-2640-fe0f","native":"🧍🏼♀️"},{"unified":"1f9cd-1f3fd-200d-2640-fe0f","native":"🧍🏽♀️"},{"unified":"1f9cd-1f3fe-200d-2640-fe0f","native":"🧍🏾♀️"},{"unified":"1f9cd-1f3ff-200d-2640-fe0f","native":"🧍🏿♀️"}],"version":12},"kneeling_person":{"id":"kneeling_person","name":"Kneeling Person","keywords":["pray","respectful"],"skins":[{"unified":"1f9ce","native":"🧎"},{"unified":"1f9ce-1f3fb","native":"🧎🏻"},{"unified":"1f9ce-1f3fc","native":"🧎🏼"},{"unified":"1f9ce-1f3fd","native":"🧎🏽"},{"unified":"1f9ce-1f3fe","native":"🧎🏾"},{"unified":"1f9ce-1f3ff","native":"🧎🏿"}],"version":12},"man_kneeling":{"id":"man_kneeling","name":"Man Kneeling","keywords":["pray","respectful"],"skins":[{"unified":"1f9ce-200d-2642-fe0f","native":"🧎♂️"},{"unified":"1f9ce-1f3fb-200d-2642-fe0f","native":"🧎🏻♂️"},{"unified":"1f9ce-1f3fc-200d-2642-fe0f","native":"🧎🏼♂️"},{"unified":"1f9ce-1f3fd-200d-2642-fe0f","native":"🧎🏽♂️"},{"unified":"1f9ce-1f3fe-200d-2642-fe0f","native":"🧎🏾♂️"},{"unified":"1f9ce-1f3ff-200d-2642-fe0f","native":"🧎🏿♂️"}],"version":12},"woman_kneeling":{"id":"woman_kneeling","name":"Woman Kneeling","keywords":["respectful","pray"],"skins":[{"unified":"1f9ce-200d-2640-fe0f","native":"🧎♀️"},{"unified":"1f9ce-1f3fb-200d-2640-fe0f","native":"🧎🏻♀️"},{"unified":"1f9ce-1f3fc-200d-2640-fe0f","native":"🧎🏼♀️"},{"unified":"1f9ce-1f3fd-200d-2640-fe0f","native":"🧎🏽♀️"},{"unified":"1f9ce-1f3fe-200d-2640-fe0f","native":"🧎🏾♀️"},{"unified":"1f9ce-1f3ff-200d-2640-fe0f","native":"🧎🏿♀️"}],"version":12},"person_with_probing_cane":{"id":"person_with_probing_cane","name":"Person with White Cane","keywords":["probing","blind"],"skins":[{"unified":"1f9d1-200d-1f9af","native":"🧑🦯"},{"unified":"1f9d1-1f3fb-200d-1f9af","native":"🧑🏻🦯"},{"unified":"1f9d1-1f3fc-200d-1f9af","native":"🧑🏼🦯"},{"unified":"1f9d1-1f3fd-200d-1f9af","native":"🧑🏽🦯"},{"unified":"1f9d1-1f3fe-200d-1f9af","native":"🧑🏾🦯"},{"unified":"1f9d1-1f3ff-200d-1f9af","native":"🧑🏿🦯"}],"version":12.1},"man_with_probing_cane":{"id":"man_with_probing_cane","name":"Man with White Cane","keywords":["probing","blind"],"skins":[{"unified":"1f468-200d-1f9af","native":"👨🦯"},{"unified":"1f468-1f3fb-200d-1f9af","native":"👨🏻🦯"},{"unified":"1f468-1f3fc-200d-1f9af","native":"👨🏼🦯"},{"unified":"1f468-1f3fd-200d-1f9af","native":"👨🏽🦯"},{"unified":"1f468-1f3fe-200d-1f9af","native":"👨🏾🦯"},{"unified":"1f468-1f3ff-200d-1f9af","native":"👨🏿🦯"}],"version":12},"woman_with_probing_cane":{"id":"woman_with_probing_cane","name":"Woman with White Cane","keywords":["probing","blind"],"skins":[{"unified":"1f469-200d-1f9af","native":"👩🦯"},{"unified":"1f469-1f3fb-200d-1f9af","native":"👩🏻🦯"},{"unified":"1f469-1f3fc-200d-1f9af","native":"👩🏼🦯"},{"unified":"1f469-1f3fd-200d-1f9af","native":"👩🏽🦯"},{"unified":"1f469-1f3fe-200d-1f9af","native":"👩🏾🦯"},{"unified":"1f469-1f3ff-200d-1f9af","native":"👩🏿🦯"}],"version":12},"person_in_motorized_wheelchair":{"id":"person_in_motorized_wheelchair","name":"Person in Motorized Wheelchair","keywords":["disability","accessibility"],"skins":[{"unified":"1f9d1-200d-1f9bc","native":"🧑🦼"},{"unified":"1f9d1-1f3fb-200d-1f9bc","native":"🧑🏻🦼"},{"unified":"1f9d1-1f3fc-200d-1f9bc","native":"🧑🏼🦼"},{"unified":"1f9d1-1f3fd-200d-1f9bc","native":"🧑🏽🦼"},{"unified":"1f9d1-1f3fe-200d-1f9bc","native":"🧑🏾🦼"},{"unified":"1f9d1-1f3ff-200d-1f9bc","native":"🧑🏿🦼"}],"version":12.1},"man_in_motorized_wheelchair":{"id":"man_in_motorized_wheelchair","name":"Man in Motorized Wheelchair","keywords":["disability","accessibility"],"skins":[{"unified":"1f468-200d-1f9bc","native":"👨🦼"},{"unified":"1f468-1f3fb-200d-1f9bc","native":"👨🏻🦼"},{"unified":"1f468-1f3fc-200d-1f9bc","native":"👨🏼🦼"},{"unified":"1f468-1f3fd-200d-1f9bc","native":"👨🏽🦼"},{"unified":"1f468-1f3fe-200d-1f9bc","native":"👨🏾🦼"},{"unified":"1f468-1f3ff-200d-1f9bc","native":"👨🏿🦼"}],"version":12},"woman_in_motorized_wheelchair":{"id":"woman_in_motorized_wheelchair","name":"Woman in Motorized Wheelchair","keywords":["disability","accessibility"],"skins":[{"unified":"1f469-200d-1f9bc","native":"👩🦼"},{"unified":"1f469-1f3fb-200d-1f9bc","native":"👩🏻🦼"},{"unified":"1f469-1f3fc-200d-1f9bc","native":"👩🏼🦼"},{"unified":"1f469-1f3fd-200d-1f9bc","native":"👩🏽🦼"},{"unified":"1f469-1f3fe-200d-1f9bc","native":"👩🏾🦼"},{"unified":"1f469-1f3ff-200d-1f9bc","native":"👩🏿🦼"}],"version":12},"person_in_manual_wheelchair":{"id":"person_in_manual_wheelchair","name":"Person in Manual Wheelchair","keywords":["disability","accessibility"],"skins":[{"unified":"1f9d1-200d-1f9bd","native":"🧑🦽"},{"unified":"1f9d1-1f3fb-200d-1f9bd","native":"🧑🏻🦽"},{"unified":"1f9d1-1f3fc-200d-1f9bd","native":"🧑🏼🦽"},{"unified":"1f9d1-1f3fd-200d-1f9bd","native":"🧑🏽🦽"},{"unified":"1f9d1-1f3fe-200d-1f9bd","native":"🧑🏾🦽"},{"unified":"1f9d1-1f3ff-200d-1f9bd","native":"🧑🏿🦽"}],"version":12.1},"man_in_manual_wheelchair":{"id":"man_in_manual_wheelchair","name":"Man in Manual Wheelchair","keywords":["disability","accessibility"],"skins":[{"unified":"1f468-200d-1f9bd","native":"👨🦽"},{"unified":"1f468-1f3fb-200d-1f9bd","native":"👨🏻🦽"},{"unified":"1f468-1f3fc-200d-1f9bd","native":"👨🏼🦽"},{"unified":"1f468-1f3fd-200d-1f9bd","native":"👨🏽🦽"},{"unified":"1f468-1f3fe-200d-1f9bd","native":"👨🏾🦽"},{"unified":"1f468-1f3ff-200d-1f9bd","native":"👨🏿🦽"}],"version":12},"woman_in_manual_wheelchair":{"id":"woman_in_manual_wheelchair","name":"Woman in Manual Wheelchair","keywords":["disability","accessibility"],"skins":[{"unified":"1f469-200d-1f9bd","native":"👩🦽"},{"unified":"1f469-1f3fb-200d-1f9bd","native":"👩🏻🦽"},{"unified":"1f469-1f3fc-200d-1f9bd","native":"👩🏼🦽"},{"unified":"1f469-1f3fd-200d-1f9bd","native":"👩🏽🦽"},{"unified":"1f469-1f3fe-200d-1f9bd","native":"👩🏾🦽"},{"unified":"1f469-1f3ff-200d-1f9bd","native":"👩🏿🦽"}],"version":12},"runner":{"id":"runner","name":"Runner","keywords":["running","person","move"],"skins":[{"unified":"1f3c3","native":"🏃"},{"unified":"1f3c3-1f3fb","native":"🏃🏻"},{"unified":"1f3c3-1f3fc","native":"🏃🏼"},{"unified":"1f3c3-1f3fd","native":"🏃🏽"},{"unified":"1f3c3-1f3fe","native":"🏃🏾"},{"unified":"1f3c3-1f3ff","native":"🏃🏿"}],"version":1},"man-running":{"id":"man-running","name":"Man Running","keywords":["walking","exercise","race"],"skins":[{"unified":"1f3c3-200d-2642-fe0f","native":"🏃♂️"},{"unified":"1f3c3-1f3fb-200d-2642-fe0f","native":"🏃🏻♂️"},{"unified":"1f3c3-1f3fc-200d-2642-fe0f","native":"🏃🏼♂️"},{"unified":"1f3c3-1f3fd-200d-2642-fe0f","native":"🏃🏽♂️"},{"unified":"1f3c3-1f3fe-200d-2642-fe0f","native":"🏃🏾♂️"},{"unified":"1f3c3-1f3ff-200d-2642-fe0f","native":"🏃🏿♂️"}],"version":4},"woman-running":{"id":"woman-running","name":"Woman Running","keywords":["walking","exercise","race","female"],"skins":[{"unified":"1f3c3-200d-2640-fe0f","native":"🏃♀️"},{"unified":"1f3c3-1f3fb-200d-2640-fe0f","native":"🏃🏻♀️"},{"unified":"1f3c3-1f3fc-200d-2640-fe0f","native":"🏃🏼♀️"},{"unified":"1f3c3-1f3fd-200d-2640-fe0f","native":"🏃🏽♀️"},{"unified":"1f3c3-1f3fe-200d-2640-fe0f","native":"🏃🏾♀️"},{"unified":"1f3c3-1f3ff-200d-2640-fe0f","native":"🏃🏿♀️"}],"version":4},"dancer":{"id":"dancer","name":"Dancer","keywords":["woman","dancing","female","girl","fun"],"skins":[{"unified":"1f483","native":"💃"},{"unified":"1f483-1f3fb","native":"💃🏻"},{"unified":"1f483-1f3fc","native":"💃🏼"},{"unified":"1f483-1f3fd","native":"💃🏽"},{"unified":"1f483-1f3fe","native":"💃🏾"},{"unified":"1f483-1f3ff","native":"💃🏿"}],"version":1},"man_dancing":{"id":"man_dancing","name":"Man Dancing","keywords":["male","boy","fun","dancer"],"skins":[{"unified":"1f57a","native":"🕺"},{"unified":"1f57a-1f3fb","native":"🕺🏻"},{"unified":"1f57a-1f3fc","native":"🕺🏼"},{"unified":"1f57a-1f3fd","native":"🕺🏽"},{"unified":"1f57a-1f3fe","native":"🕺🏾"},{"unified":"1f57a-1f3ff","native":"🕺🏿"}],"version":3},"man_in_business_suit_levitating":{"id":"man_in_business_suit_levitating","name":"Person in Suit Levitating","keywords":["man","business","levitate","hover","jump"],"skins":[{"unified":"1f574-fe0f","native":"🕴️"},{"unified":"1f574-1f3fb","native":"🕴🏻"},{"unified":"1f574-1f3fc","native":"🕴🏼"},{"unified":"1f574-1f3fd","native":"🕴🏽"},{"unified":"1f574-1f3fe","native":"🕴🏾"},{"unified":"1f574-1f3ff","native":"🕴🏿"}],"version":1},"dancers":{"id":"dancers","name":"Woman with Bunny Ears","keywords":["dancers","people","perform","costume"],"skins":[{"unified":"1f46f","native":"👯"}],"version":1},"men-with-bunny-ears-partying":{"id":"men-with-bunny-ears-partying","name":"Men with Bunny Ears","keywords":["with-bunny-ears-partying","man","male","boys"],"skins":[{"unified":"1f46f-200d-2642-fe0f","native":"👯♂️"}],"version":4},"women-with-bunny-ears-partying":{"id":"women-with-bunny-ears-partying","name":"Women with Bunny Ears","keywords":["with-bunny-ears-partying","woman","female","girls"],"skins":[{"unified":"1f46f-200d-2640-fe0f","native":"👯♀️"}],"version":4},"person_in_steamy_room":{"id":"person_in_steamy_room","name":"Person in Steamy Room","keywords":["relax","spa"],"skins":[{"unified":"1f9d6","native":"🧖"},{"unified":"1f9d6-1f3fb","native":"🧖🏻"},{"unified":"1f9d6-1f3fc","native":"🧖🏼"},{"unified":"1f9d6-1f3fd","native":"🧖🏽"},{"unified":"1f9d6-1f3fe","native":"🧖🏾"},{"unified":"1f9d6-1f3ff","native":"🧖🏿"}],"version":5},"man_in_steamy_room":{"id":"man_in_steamy_room","name":"Man in Steamy Room","keywords":["male","spa","steamroom","sauna"],"skins":[{"unified":"1f9d6-200d-2642-fe0f","native":"🧖♂️"},{"unified":"1f9d6-1f3fb-200d-2642-fe0f","native":"🧖🏻♂️"},{"unified":"1f9d6-1f3fc-200d-2642-fe0f","native":"🧖🏼♂️"},{"unified":"1f9d6-1f3fd-200d-2642-fe0f","native":"🧖🏽♂️"},{"unified":"1f9d6-1f3fe-200d-2642-fe0f","native":"🧖🏾♂️"},{"unified":"1f9d6-1f3ff-200d-2642-fe0f","native":"🧖🏿♂️"}],"version":5},"woman_in_steamy_room":{"id":"woman_in_steamy_room","name":"Woman in Steamy Room","keywords":["female","spa","steamroom","sauna"],"skins":[{"unified":"1f9d6-200d-2640-fe0f","native":"🧖♀️"},{"unified":"1f9d6-1f3fb-200d-2640-fe0f","native":"🧖🏻♀️"},{"unified":"1f9d6-1f3fc-200d-2640-fe0f","native":"🧖🏼♀️"},{"unified":"1f9d6-1f3fd-200d-2640-fe0f","native":"🧖🏽♀️"},{"unified":"1f9d6-1f3fe-200d-2640-fe0f","native":"🧖🏾♀️"},{"unified":"1f9d6-1f3ff-200d-2640-fe0f","native":"🧖🏿♀️"}],"version":5},"person_climbing":{"id":"person_climbing","name":"Person Climbing","keywords":["sport"],"skins":[{"unified":"1f9d7","native":"🧗"},{"unified":"1f9d7-1f3fb","native":"🧗🏻"},{"unified":"1f9d7-1f3fc","native":"🧗🏼"},{"unified":"1f9d7-1f3fd","native":"🧗🏽"},{"unified":"1f9d7-1f3fe","native":"🧗🏾"},{"unified":"1f9d7-1f3ff","native":"🧗🏿"}],"version":5},"man_climbing":{"id":"man_climbing","name":"Man Climbing","keywords":["sports","hobby","male","rock"],"skins":[{"unified":"1f9d7-200d-2642-fe0f","native":"🧗♂️"},{"unified":"1f9d7-1f3fb-200d-2642-fe0f","native":"🧗🏻♂️"},{"unified":"1f9d7-1f3fc-200d-2642-fe0f","native":"🧗🏼♂️"},{"unified":"1f9d7-1f3fd-200d-2642-fe0f","native":"🧗🏽♂️"},{"unified":"1f9d7-1f3fe-200d-2642-fe0f","native":"🧗🏾♂️"},{"unified":"1f9d7-1f3ff-200d-2642-fe0f","native":"🧗🏿♂️"}],"version":5},"woman_climbing":{"id":"woman_climbing","name":"Woman Climbing","keywords":["sports","hobby","female","rock"],"skins":[{"unified":"1f9d7-200d-2640-fe0f","native":"🧗♀️"},{"unified":"1f9d7-1f3fb-200d-2640-fe0f","native":"🧗🏻♀️"},{"unified":"1f9d7-1f3fc-200d-2640-fe0f","native":"🧗🏼♀️"},{"unified":"1f9d7-1f3fd-200d-2640-fe0f","native":"🧗🏽♀️"},{"unified":"1f9d7-1f3fe-200d-2640-fe0f","native":"🧗🏾♀️"},{"unified":"1f9d7-1f3ff-200d-2640-fe0f","native":"🧗🏿♀️"}],"version":5},"fencer":{"id":"fencer","name":"Fencer","keywords":["person","fencing","sports","sword"],"skins":[{"unified":"1f93a","native":"🤺"}],"version":3},"horse_racing":{"id":"horse_racing","name":"Horse Racing","keywords":["animal","betting","competition","gambling","luck"],"skins":[{"unified":"1f3c7","native":"🏇"},{"unified":"1f3c7-1f3fb","native":"🏇🏻"},{"unified":"1f3c7-1f3fc","native":"🏇🏼"},{"unified":"1f3c7-1f3fd","native":"🏇🏽"},{"unified":"1f3c7-1f3fe","native":"🏇🏾"},{"unified":"1f3c7-1f3ff","native":"🏇🏿"}],"version":1},"skier":{"id":"skier","name":"Skier","keywords":["sports","winter","snow"],"skins":[{"unified":"26f7-fe0f","native":"⛷️"}],"version":1},"snowboarder":{"id":"snowboarder","name":"Snowboarder","keywords":["sports","winter"],"skins":[{"unified":"1f3c2","native":"🏂"},{"unified":"1f3c2-1f3fb","native":"🏂🏻"},{"unified":"1f3c2-1f3fc","native":"🏂🏼"},{"unified":"1f3c2-1f3fd","native":"🏂🏽"},{"unified":"1f3c2-1f3fe","native":"🏂🏾"},{"unified":"1f3c2-1f3ff","native":"🏂🏿"}],"version":1},"golfer":{"id":"golfer","name":"Person Golfing","keywords":["golfer","sports","business"],"skins":[{"unified":"1f3cc-fe0f","native":"🏌️"},{"unified":"1f3cc-1f3fb","native":"🏌🏻"},{"unified":"1f3cc-1f3fc","native":"🏌🏼"},{"unified":"1f3cc-1f3fd","native":"🏌🏽"},{"unified":"1f3cc-1f3fe","native":"🏌🏾"},{"unified":"1f3cc-1f3ff","native":"🏌🏿"}],"version":1},"man-golfing":{"id":"man-golfing","name":"Man Golfing","keywords":["sport"],"skins":[{"unified":"1f3cc-fe0f-200d-2642-fe0f","native":"🏌️♂️"},{"unified":"1f3cc-1f3fb-200d-2642-fe0f","native":"🏌🏻♂️"},{"unified":"1f3cc-1f3fc-200d-2642-fe0f","native":"🏌🏼♂️"},{"unified":"1f3cc-1f3fd-200d-2642-fe0f","native":"🏌🏽♂️"},{"unified":"1f3cc-1f3fe-200d-2642-fe0f","native":"🏌🏾♂️"},{"unified":"1f3cc-1f3ff-200d-2642-fe0f","native":"🏌🏿♂️"}],"version":4},"woman-golfing":{"id":"woman-golfing","name":"Woman Golfing","keywords":["sports","business","female"],"skins":[{"unified":"1f3cc-fe0f-200d-2640-fe0f","native":"🏌️♀️"},{"unified":"1f3cc-1f3fb-200d-2640-fe0f","native":"🏌🏻♀️"},{"unified":"1f3cc-1f3fc-200d-2640-fe0f","native":"🏌🏼♀️"},{"unified":"1f3cc-1f3fd-200d-2640-fe0f","native":"🏌🏽♀️"},{"unified":"1f3cc-1f3fe-200d-2640-fe0f","native":"🏌🏾♀️"},{"unified":"1f3cc-1f3ff-200d-2640-fe0f","native":"🏌🏿♀️"}],"version":4},"surfer":{"id":"surfer","name":"Surfer","keywords":["person","surfing","sport","sea"],"skins":[{"unified":"1f3c4","native":"🏄"},{"unified":"1f3c4-1f3fb","native":"🏄🏻"},{"unified":"1f3c4-1f3fc","native":"🏄🏼"},{"unified":"1f3c4-1f3fd","native":"🏄🏽"},{"unified":"1f3c4-1f3fe","native":"🏄🏾"},{"unified":"1f3c4-1f3ff","native":"🏄🏿"}],"version":1},"man-surfing":{"id":"man-surfing","name":"Man Surfing","keywords":["sports","ocean","sea","summer","beach"],"skins":[{"unified":"1f3c4-200d-2642-fe0f","native":"🏄♂️"},{"unified":"1f3c4-1f3fb-200d-2642-fe0f","native":"🏄🏻♂️"},{"unified":"1f3c4-1f3fc-200d-2642-fe0f","native":"🏄🏼♂️"},{"unified":"1f3c4-1f3fd-200d-2642-fe0f","native":"🏄🏽♂️"},{"unified":"1f3c4-1f3fe-200d-2642-fe0f","native":"🏄🏾♂️"},{"unified":"1f3c4-1f3ff-200d-2642-fe0f","native":"🏄🏿♂️"}],"version":4},"woman-surfing":{"id":"woman-surfing","name":"Woman Surfing","keywords":["sports","ocean","sea","summer","beach","female"],"skins":[{"unified":"1f3c4-200d-2640-fe0f","native":"🏄♀️"},{"unified":"1f3c4-1f3fb-200d-2640-fe0f","native":"🏄🏻♀️"},{"unified":"1f3c4-1f3fc-200d-2640-fe0f","native":"🏄🏼♀️"},{"unified":"1f3c4-1f3fd-200d-2640-fe0f","native":"🏄🏽♀️"},{"unified":"1f3c4-1f3fe-200d-2640-fe0f","native":"🏄🏾♀️"},{"unified":"1f3c4-1f3ff-200d-2640-fe0f","native":"🏄🏿♀️"}],"version":4},"rowboat":{"id":"rowboat","name":"Rowboat","keywords":["person","rowing","boat","sport","move"],"skins":[{"unified":"1f6a3","native":"🚣"},{"unified":"1f6a3-1f3fb","native":"🚣🏻"},{"unified":"1f6a3-1f3fc","native":"🚣🏼"},{"unified":"1f6a3-1f3fd","native":"🚣🏽"},{"unified":"1f6a3-1f3fe","native":"🚣🏾"},{"unified":"1f6a3-1f3ff","native":"🚣🏿"}],"version":1},"man-rowing-boat":{"id":"man-rowing-boat","name":"Man Rowing Boat","keywords":["rowing-boat","sports","hobby","water","ship"],"skins":[{"unified":"1f6a3-200d-2642-fe0f","native":"🚣♂️"},{"unified":"1f6a3-1f3fb-200d-2642-fe0f","native":"🚣🏻♂️"},{"unified":"1f6a3-1f3fc-200d-2642-fe0f","native":"🚣🏼♂️"},{"unified":"1f6a3-1f3fd-200d-2642-fe0f","native":"🚣🏽♂️"},{"unified":"1f6a3-1f3fe-200d-2642-fe0f","native":"🚣🏾♂️"},{"unified":"1f6a3-1f3ff-200d-2642-fe0f","native":"🚣🏿♂️"}],"version":4},"woman-rowing-boat":{"id":"woman-rowing-boat","name":"Woman Rowing Boat","keywords":["rowing-boat","sports","hobby","water","ship","female"],"skins":[{"unified":"1f6a3-200d-2640-fe0f","native":"🚣♀️"},{"unified":"1f6a3-1f3fb-200d-2640-fe0f","native":"🚣🏻♀️"},{"unified":"1f6a3-1f3fc-200d-2640-fe0f","native":"🚣🏼♀️"},{"unified":"1f6a3-1f3fd-200d-2640-fe0f","native":"🚣🏽♀️"},{"unified":"1f6a3-1f3fe-200d-2640-fe0f","native":"🚣🏾♀️"},{"unified":"1f6a3-1f3ff-200d-2640-fe0f","native":"🚣🏿♀️"}],"version":4},"swimmer":{"id":"swimmer","name":"Swimmer","keywords":["person","swimming","sport","pool"],"skins":[{"unified":"1f3ca","native":"🏊"},{"unified":"1f3ca-1f3fb","native":"🏊🏻"},{"unified":"1f3ca-1f3fc","native":"🏊🏼"},{"unified":"1f3ca-1f3fd","native":"🏊🏽"},{"unified":"1f3ca-1f3fe","native":"🏊🏾"},{"unified":"1f3ca-1f3ff","native":"🏊🏿"}],"version":1},"man-swimming":{"id":"man-swimming","name":"Man Swimming","keywords":["sports","exercise","human","athlete","water","summer"],"skins":[{"unified":"1f3ca-200d-2642-fe0f","native":"🏊♂️"},{"unified":"1f3ca-1f3fb-200d-2642-fe0f","native":"🏊🏻♂️"},{"unified":"1f3ca-1f3fc-200d-2642-fe0f","native":"🏊🏼♂️"},{"unified":"1f3ca-1f3fd-200d-2642-fe0f","native":"🏊🏽♂️"},{"unified":"1f3ca-1f3fe-200d-2642-fe0f","native":"🏊🏾♂️"},{"unified":"1f3ca-1f3ff-200d-2642-fe0f","native":"🏊🏿♂️"}],"version":4},"woman-swimming":{"id":"woman-swimming","name":"Woman Swimming","keywords":["sports","exercise","human","athlete","water","summer","female"],"skins":[{"unified":"1f3ca-200d-2640-fe0f","native":"🏊♀️"},{"unified":"1f3ca-1f3fb-200d-2640-fe0f","native":"🏊🏻♀️"},{"unified":"1f3ca-1f3fc-200d-2640-fe0f","native":"🏊🏼♀️"},{"unified":"1f3ca-1f3fd-200d-2640-fe0f","native":"🏊🏽♀️"},{"unified":"1f3ca-1f3fe-200d-2640-fe0f","native":"🏊🏾♀️"},{"unified":"1f3ca-1f3ff-200d-2640-fe0f","native":"🏊🏿♀️"}],"version":4},"person_with_ball":{"id":"person_with_ball","name":"Person Bouncing Ball","keywords":["with","sports","human"],"skins":[{"unified":"26f9-fe0f","native":"⛹️"},{"unified":"26f9-1f3fb","native":"⛹🏻"},{"unified":"26f9-1f3fc","native":"⛹🏼"},{"unified":"26f9-1f3fd","native":"⛹🏽"},{"unified":"26f9-1f3fe","native":"⛹🏾"},{"unified":"26f9-1f3ff","native":"⛹🏿"}],"version":1},"man-bouncing-ball":{"id":"man-bouncing-ball","name":"Man Bouncing Ball","keywords":["bouncing-ball","sport"],"skins":[{"unified":"26f9-fe0f-200d-2642-fe0f","native":"⛹️♂️"},{"unified":"26f9-1f3fb-200d-2642-fe0f","native":"⛹🏻♂️"},{"unified":"26f9-1f3fc-200d-2642-fe0f","native":"⛹🏼♂️"},{"unified":"26f9-1f3fd-200d-2642-fe0f","native":"⛹🏽♂️"},{"unified":"26f9-1f3fe-200d-2642-fe0f","native":"⛹🏾♂️"},{"unified":"26f9-1f3ff-200d-2642-fe0f","native":"⛹🏿♂️"}],"version":4},"woman-bouncing-ball":{"id":"woman-bouncing-ball","name":"Woman Bouncing Ball","keywords":["bouncing-ball","sports","human","female"],"skins":[{"unified":"26f9-fe0f-200d-2640-fe0f","native":"⛹️♀️"},{"unified":"26f9-1f3fb-200d-2640-fe0f","native":"⛹🏻♀️"},{"unified":"26f9-1f3fc-200d-2640-fe0f","native":"⛹🏼♀️"},{"unified":"26f9-1f3fd-200d-2640-fe0f","native":"⛹🏽♀️"},{"unified":"26f9-1f3fe-200d-2640-fe0f","native":"⛹🏾♀️"},{"unified":"26f9-1f3ff-200d-2640-fe0f","native":"⛹🏿♀️"}],"version":4},"weight_lifter":{"id":"weight_lifter","name":"Person Lifting Weights","keywords":["weight","lifter","sports","training","exercise"],"skins":[{"unified":"1f3cb-fe0f","native":"🏋️"},{"unified":"1f3cb-1f3fb","native":"🏋🏻"},{"unified":"1f3cb-1f3fc","native":"🏋🏼"},{"unified":"1f3cb-1f3fd","native":"🏋🏽"},{"unified":"1f3cb-1f3fe","native":"🏋🏾"},{"unified":"1f3cb-1f3ff","native":"🏋🏿"}],"version":1},"man-lifting-weights":{"id":"man-lifting-weights","name":"Man Lifting Weights","keywords":["lifting-weights","sport"],"skins":[{"unified":"1f3cb-fe0f-200d-2642-fe0f","native":"🏋️♂️"},{"unified":"1f3cb-1f3fb-200d-2642-fe0f","native":"🏋🏻♂️"},{"unified":"1f3cb-1f3fc-200d-2642-fe0f","native":"🏋🏼♂️"},{"unified":"1f3cb-1f3fd-200d-2642-fe0f","native":"🏋🏽♂️"},{"unified":"1f3cb-1f3fe-200d-2642-fe0f","native":"🏋🏾♂️"},{"unified":"1f3cb-1f3ff-200d-2642-fe0f","native":"🏋🏿♂️"}],"version":4},"woman-lifting-weights":{"id":"woman-lifting-weights","name":"Woman Lifting Weights","keywords":["lifting-weights","sports","training","exercise","female"],"skins":[{"unified":"1f3cb-fe0f-200d-2640-fe0f","native":"🏋️♀️"},{"unified":"1f3cb-1f3fb-200d-2640-fe0f","native":"🏋🏻♀️"},{"unified":"1f3cb-1f3fc-200d-2640-fe0f","native":"🏋🏼♀️"},{"unified":"1f3cb-1f3fd-200d-2640-fe0f","native":"🏋🏽♀️"},{"unified":"1f3cb-1f3fe-200d-2640-fe0f","native":"🏋🏾♀️"},{"unified":"1f3cb-1f3ff-200d-2640-fe0f","native":"🏋🏿♀️"}],"version":4},"bicyclist":{"id":"bicyclist","name":"Bicyclist","keywords":["person","biking","sport","move"],"skins":[{"unified":"1f6b4","native":"🚴"},{"unified":"1f6b4-1f3fb","native":"🚴🏻"},{"unified":"1f6b4-1f3fc","native":"🚴🏼"},{"unified":"1f6b4-1f3fd","native":"🚴🏽"},{"unified":"1f6b4-1f3fe","native":"🚴🏾"},{"unified":"1f6b4-1f3ff","native":"🚴🏿"}],"version":1},"man-biking":{"id":"man-biking","name":"Man Biking","keywords":["sports","bike","exercise","hipster"],"skins":[{"unified":"1f6b4-200d-2642-fe0f","native":"🚴♂️"},{"unified":"1f6b4-1f3fb-200d-2642-fe0f","native":"🚴🏻♂️"},{"unified":"1f6b4-1f3fc-200d-2642-fe0f","native":"🚴🏼♂️"},{"unified":"1f6b4-1f3fd-200d-2642-fe0f","native":"🚴🏽♂️"},{"unified":"1f6b4-1f3fe-200d-2642-fe0f","native":"🚴🏾♂️"},{"unified":"1f6b4-1f3ff-200d-2642-fe0f","native":"🚴🏿♂️"}],"version":4},"woman-biking":{"id":"woman-biking","name":"Woman Biking","keywords":["sports","bike","exercise","hipster","female"],"skins":[{"unified":"1f6b4-200d-2640-fe0f","native":"🚴♀️"},{"unified":"1f6b4-1f3fb-200d-2640-fe0f","native":"🚴🏻♀️"},{"unified":"1f6b4-1f3fc-200d-2640-fe0f","native":"🚴🏼♀️"},{"unified":"1f6b4-1f3fd-200d-2640-fe0f","native":"🚴🏽♀️"},{"unified":"1f6b4-1f3fe-200d-2640-fe0f","native":"🚴🏾♀️"},{"unified":"1f6b4-1f3ff-200d-2640-fe0f","native":"🚴🏿♀️"}],"version":4},"mountain_bicyclist":{"id":"mountain_bicyclist","name":"Mountain Bicyclist","keywords":["person","biking","sport","move"],"skins":[{"unified":"1f6b5","native":"🚵"},{"unified":"1f6b5-1f3fb","native":"🚵🏻"},{"unified":"1f6b5-1f3fc","native":"🚵🏼"},{"unified":"1f6b5-1f3fd","native":"🚵🏽"},{"unified":"1f6b5-1f3fe","native":"🚵🏾"},{"unified":"1f6b5-1f3ff","native":"🚵🏿"}],"version":1},"man-mountain-biking":{"id":"man-mountain-biking","name":"Man Mountain Biking","keywords":["mountain-biking","transportation","sports","human","race","bike"],"skins":[{"unified":"1f6b5-200d-2642-fe0f","native":"🚵♂️"},{"unified":"1f6b5-1f3fb-200d-2642-fe0f","native":"🚵🏻♂️"},{"unified":"1f6b5-1f3fc-200d-2642-fe0f","native":"🚵🏼♂️"},{"unified":"1f6b5-1f3fd-200d-2642-fe0f","native":"🚵🏽♂️"},{"unified":"1f6b5-1f3fe-200d-2642-fe0f","native":"🚵🏾♂️"},{"unified":"1f6b5-1f3ff-200d-2642-fe0f","native":"🚵🏿♂️"}],"version":4},"woman-mountain-biking":{"id":"woman-mountain-biking","name":"Woman Mountain Biking","keywords":["mountain-biking","transportation","sports","human","race","bike","female"],"skins":[{"unified":"1f6b5-200d-2640-fe0f","native":"🚵♀️"},{"unified":"1f6b5-1f3fb-200d-2640-fe0f","native":"🚵🏻♀️"},{"unified":"1f6b5-1f3fc-200d-2640-fe0f","native":"🚵🏼♀️"},{"unified":"1f6b5-1f3fd-200d-2640-fe0f","native":"🚵🏽♀️"},{"unified":"1f6b5-1f3fe-200d-2640-fe0f","native":"🚵🏾♀️"},{"unified":"1f6b5-1f3ff-200d-2640-fe0f","native":"🚵🏿♀️"}],"version":4},"person_doing_cartwheel":{"id":"person_doing_cartwheel","name":"Person Cartwheeling","keywords":["doing","cartwheel","sport","gymnastic"],"skins":[{"unified":"1f938","native":"🤸"},{"unified":"1f938-1f3fb","native":"🤸🏻"},{"unified":"1f938-1f3fc","native":"🤸🏼"},{"unified":"1f938-1f3fd","native":"🤸🏽"},{"unified":"1f938-1f3fe","native":"🤸🏾"},{"unified":"1f938-1f3ff","native":"🤸🏿"}],"version":3},"man-cartwheeling":{"id":"man-cartwheeling","name":"Man Cartwheeling","keywords":["gymnastics"],"skins":[{"unified":"1f938-200d-2642-fe0f","native":"🤸♂️"},{"unified":"1f938-1f3fb-200d-2642-fe0f","native":"🤸🏻♂️"},{"unified":"1f938-1f3fc-200d-2642-fe0f","native":"🤸🏼♂️"},{"unified":"1f938-1f3fd-200d-2642-fe0f","native":"🤸🏽♂️"},{"unified":"1f938-1f3fe-200d-2642-fe0f","native":"🤸🏾♂️"},{"unified":"1f938-1f3ff-200d-2642-fe0f","native":"🤸🏿♂️"}],"version":4},"woman-cartwheeling":{"id":"woman-cartwheeling","name":"Woman Cartwheeling","keywords":["gymnastics"],"skins":[{"unified":"1f938-200d-2640-fe0f","native":"🤸♀️"},{"unified":"1f938-1f3fb-200d-2640-fe0f","native":"🤸🏻♀️"},{"unified":"1f938-1f3fc-200d-2640-fe0f","native":"🤸🏼♀️"},{"unified":"1f938-1f3fd-200d-2640-fe0f","native":"🤸🏽♀️"},{"unified":"1f938-1f3fe-200d-2640-fe0f","native":"🤸🏾♀️"},{"unified":"1f938-1f3ff-200d-2640-fe0f","native":"🤸🏿♀️"}],"version":4},"wrestlers":{"id":"wrestlers","name":"Wrestlers","keywords":["people","wrestling","sport"],"skins":[{"unified":"1f93c","native":"🤼"}],"version":3},"man-wrestling":{"id":"man-wrestling","name":"Men Wrestling","keywords":["man","sports","wrestlers"],"skins":[{"unified":"1f93c-200d-2642-fe0f","native":"🤼♂️"}],"version":4},"woman-wrestling":{"id":"woman-wrestling","name":"Women Wrestling","keywords":["woman","sports","wrestlers"],"skins":[{"unified":"1f93c-200d-2640-fe0f","native":"🤼♀️"}],"version":4},"water_polo":{"id":"water_polo","name":"Water Polo","keywords":["person","playing","sport"],"skins":[{"unified":"1f93d","native":"🤽"},{"unified":"1f93d-1f3fb","native":"🤽🏻"},{"unified":"1f93d-1f3fc","native":"🤽🏼"},{"unified":"1f93d-1f3fd","native":"🤽🏽"},{"unified":"1f93d-1f3fe","native":"🤽🏾"},{"unified":"1f93d-1f3ff","native":"🤽🏿"}],"version":3},"man-playing-water-polo":{"id":"man-playing-water-polo","name":"Man Playing Water Polo","keywords":["playing-water-polo","sports","pool"],"skins":[{"unified":"1f93d-200d-2642-fe0f","native":"🤽♂️"},{"unified":"1f93d-1f3fb-200d-2642-fe0f","native":"🤽🏻♂️"},{"unified":"1f93d-1f3fc-200d-2642-fe0f","native":"🤽🏼♂️"},{"unified":"1f93d-1f3fd-200d-2642-fe0f","native":"🤽🏽♂️"},{"unified":"1f93d-1f3fe-200d-2642-fe0f","native":"🤽🏾♂️"},{"unified":"1f93d-1f3ff-200d-2642-fe0f","native":"🤽🏿♂️"}],"version":4},"woman-playing-water-polo":{"id":"woman-playing-water-polo","name":"Woman Playing Water Polo","keywords":["playing-water-polo","sports","pool"],"skins":[{"unified":"1f93d-200d-2640-fe0f","native":"🤽♀️"},{"unified":"1f93d-1f3fb-200d-2640-fe0f","native":"🤽🏻♀️"},{"unified":"1f93d-1f3fc-200d-2640-fe0f","native":"🤽🏼♀️"},{"unified":"1f93d-1f3fd-200d-2640-fe0f","native":"🤽🏽♀️"},{"unified":"1f93d-1f3fe-200d-2640-fe0f","native":"🤽🏾♀️"},{"unified":"1f93d-1f3ff-200d-2640-fe0f","native":"🤽🏿♀️"}],"version":4},"handball":{"id":"handball","name":"Handball","keywords":["person","playing","sport"],"skins":[{"unified":"1f93e","native":"🤾"},{"unified":"1f93e-1f3fb","native":"🤾🏻"},{"unified":"1f93e-1f3fc","native":"🤾🏼"},{"unified":"1f93e-1f3fd","native":"🤾🏽"},{"unified":"1f93e-1f3fe","native":"🤾🏾"},{"unified":"1f93e-1f3ff","native":"🤾🏿"}],"version":3},"man-playing-handball":{"id":"man-playing-handball","name":"Man Playing Handball","keywords":["playing-handball","sports"],"skins":[{"unified":"1f93e-200d-2642-fe0f","native":"🤾♂️"},{"unified":"1f93e-1f3fb-200d-2642-fe0f","native":"🤾🏻♂️"},{"unified":"1f93e-1f3fc-200d-2642-fe0f","native":"🤾🏼♂️"},{"unified":"1f93e-1f3fd-200d-2642-fe0f","native":"🤾🏽♂️"},{"unified":"1f93e-1f3fe-200d-2642-fe0f","native":"🤾🏾♂️"},{"unified":"1f93e-1f3ff-200d-2642-fe0f","native":"🤾🏿♂️"}],"version":4},"woman-playing-handball":{"id":"woman-playing-handball","name":"Woman Playing Handball","keywords":["playing-handball","sports"],"skins":[{"unified":"1f93e-200d-2640-fe0f","native":"🤾♀️"},{"unified":"1f93e-1f3fb-200d-2640-fe0f","native":"🤾🏻♀️"},{"unified":"1f93e-1f3fc-200d-2640-fe0f","native":"🤾🏼♀️"},{"unified":"1f93e-1f3fd-200d-2640-fe0f","native":"🤾🏽♀️"},{"unified":"1f93e-1f3fe-200d-2640-fe0f","native":"🤾🏾♀️"},{"unified":"1f93e-1f3ff-200d-2640-fe0f","native":"🤾🏿♀️"}],"version":4},"juggling":{"id":"juggling","name":"Juggling","keywords":["person","performance","balance"],"skins":[{"unified":"1f939","native":"🤹"},{"unified":"1f939-1f3fb","native":"🤹🏻"},{"unified":"1f939-1f3fc","native":"🤹🏼"},{"unified":"1f939-1f3fd","native":"🤹🏽"},{"unified":"1f939-1f3fe","native":"🤹🏾"},{"unified":"1f939-1f3ff","native":"🤹🏿"}],"version":3},"man-juggling":{"id":"man-juggling","name":"Man Juggling","keywords":["juggle","balance","skill","multitask"],"skins":[{"unified":"1f939-200d-2642-fe0f","native":"🤹♂️"},{"unified":"1f939-1f3fb-200d-2642-fe0f","native":"🤹🏻♂️"},{"unified":"1f939-1f3fc-200d-2642-fe0f","native":"🤹🏼♂️"},{"unified":"1f939-1f3fd-200d-2642-fe0f","native":"🤹🏽♂️"},{"unified":"1f939-1f3fe-200d-2642-fe0f","native":"🤹🏾♂️"},{"unified":"1f939-1f3ff-200d-2642-fe0f","native":"🤹🏿♂️"}],"version":4},"woman-juggling":{"id":"woman-juggling","name":"Woman Juggling","keywords":["juggle","balance","skill","multitask"],"skins":[{"unified":"1f939-200d-2640-fe0f","native":"🤹♀️"},{"unified":"1f939-1f3fb-200d-2640-fe0f","native":"🤹🏻♀️"},{"unified":"1f939-1f3fc-200d-2640-fe0f","native":"🤹🏼♀️"},{"unified":"1f939-1f3fd-200d-2640-fe0f","native":"🤹🏽♀️"},{"unified":"1f939-1f3fe-200d-2640-fe0f","native":"🤹🏾♀️"},{"unified":"1f939-1f3ff-200d-2640-fe0f","native":"🤹🏿♀️"}],"version":4},"person_in_lotus_position":{"id":"person_in_lotus_position","name":"Person in Lotus Position","keywords":["meditate"],"skins":[{"unified":"1f9d8","native":"🧘"},{"unified":"1f9d8-1f3fb","native":"🧘🏻"},{"unified":"1f9d8-1f3fc","native":"🧘🏼"},{"unified":"1f9d8-1f3fd","native":"🧘🏽"},{"unified":"1f9d8-1f3fe","native":"🧘🏾"},{"unified":"1f9d8-1f3ff","native":"🧘🏿"}],"version":5},"man_in_lotus_position":{"id":"man_in_lotus_position","name":"Man in Lotus Position","keywords":["male","meditation","yoga","serenity","zen","mindfulness"],"skins":[{"unified":"1f9d8-200d-2642-fe0f","native":"🧘♂️"},{"unified":"1f9d8-1f3fb-200d-2642-fe0f","native":"🧘🏻♂️"},{"unified":"1f9d8-1f3fc-200d-2642-fe0f","native":"🧘🏼♂️"},{"unified":"1f9d8-1f3fd-200d-2642-fe0f","native":"🧘🏽♂️"},{"unified":"1f9d8-1f3fe-200d-2642-fe0f","native":"🧘🏾♂️"},{"unified":"1f9d8-1f3ff-200d-2642-fe0f","native":"🧘🏿♂️"}],"version":5},"woman_in_lotus_position":{"id":"woman_in_lotus_position","name":"Woman in Lotus Position","keywords":["female","meditation","yoga","serenity","zen","mindfulness"],"skins":[{"unified":"1f9d8-200d-2640-fe0f","native":"🧘♀️"},{"unified":"1f9d8-1f3fb-200d-2640-fe0f","native":"🧘🏻♀️"},{"unified":"1f9d8-1f3fc-200d-2640-fe0f","native":"🧘🏼♀️"},{"unified":"1f9d8-1f3fd-200d-2640-fe0f","native":"🧘🏽♀️"},{"unified":"1f9d8-1f3fe-200d-2640-fe0f","native":"🧘🏾♀️"},{"unified":"1f9d8-1f3ff-200d-2640-fe0f","native":"🧘🏿♀️"}],"version":5},"bath":{"id":"bath","name":"Bath","keywords":["person","taking","clean","shower","bathroom"],"skins":[{"unified":"1f6c0","native":"🛀"},{"unified":"1f6c0-1f3fb","native":"🛀🏻"},{"unified":"1f6c0-1f3fc","native":"🛀🏼"},{"unified":"1f6c0-1f3fd","native":"🛀🏽"},{"unified":"1f6c0-1f3fe","native":"🛀🏾"},{"unified":"1f6c0-1f3ff","native":"🛀🏿"}],"version":1},"sleeping_accommodation":{"id":"sleeping_accommodation","name":"Person in Bed","keywords":["sleeping","accommodation","rest"],"skins":[{"unified":"1f6cc","native":"🛌"},{"unified":"1f6cc-1f3fb","native":"🛌🏻"},{"unified":"1f6cc-1f3fc","native":"🛌🏼"},{"unified":"1f6cc-1f3fd","native":"🛌🏽"},{"unified":"1f6cc-1f3fe","native":"🛌🏾"},{"unified":"1f6cc-1f3ff","native":"🛌🏿"}],"version":1},"people_holding_hands":{"id":"people_holding_hands","name":"People Holding Hands","keywords":["friendship"],"skins":[{"unified":"1f9d1-200d-1f91d-200d-1f9d1","native":"🧑🤝🧑"},{"unified":"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb","native":"🧑🏻🤝🧑🏻"},{"unified":"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc","native":"🧑🏼🤝🧑🏼"},{"unified":"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd","native":"🧑🏽🤝🧑🏽"},{"unified":"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe","native":"🧑🏾🤝🧑🏾"},{"unified":"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff","native":"🧑🏿🤝🧑🏿"}],"version":12},"two_women_holding_hands":{"id":"two_women_holding_hands","name":"Women Holding Hands","keywords":["two","pair","friendship","couple","love","like","female","people","human"],"skins":[{"unified":"1f46d","native":"👭"},{"unified":"1f46d-1f3fb","native":"👭🏻"},{"unified":"1f46d-1f3fc","native":"👭🏼"},{"unified":"1f46d-1f3fd","native":"👭🏽"},{"unified":"1f46d-1f3fe","native":"👭🏾"},{"unified":"1f46d-1f3ff","native":"👭🏿"}],"version":1},"man_and_woman_holding_hands":{"id":"man_and_woman_holding_hands","name":"Man and Woman Holding Hands","keywords":["couple","pair","people","human","love","date","dating","like","affection","valentines","marriage"],"skins":[{"unified":"1f46b","native":"👫"},{"unified":"1f46b-1f3fb","native":"👫🏻"},{"unified":"1f46b-1f3fc","native":"👫🏼"},{"unified":"1f46b-1f3fd","native":"👫🏽"},{"unified":"1f46b-1f3fe","native":"👫🏾"},{"unified":"1f46b-1f3ff","native":"👫🏿"}],"version":1},"two_men_holding_hands":{"id":"two_men_holding_hands","name":"Men Holding Hands","keywords":["two","pair","couple","love","like","bromance","friendship","people","human"],"skins":[{"unified":"1f46c","native":"👬"},{"unified":"1f46c-1f3fb","native":"👬🏻"},{"unified":"1f46c-1f3fc","native":"👬🏼"},{"unified":"1f46c-1f3fd","native":"👬🏽"},{"unified":"1f46c-1f3fe","native":"👬🏾"},{"unified":"1f46c-1f3ff","native":"👬🏿"}],"version":1},"couplekiss":{"id":"couplekiss","name":"Kiss","keywords":["couplekiss","pair","valentines","love","like","dating","marriage"],"skins":[{"unified":"1f48f","native":"💏"},{"unified":"1f48f-1f3fb","native":"💏🏻"},{"unified":"1f48f-1f3fc","native":"💏🏼"},{"unified":"1f48f-1f3fd","native":"💏🏽"},{"unified":"1f48f-1f3fe","native":"💏🏾"},{"unified":"1f48f-1f3ff","native":"💏🏿"}],"version":1},"woman-kiss-man":{"id":"woman-kiss-man","name":"Kiss: Woman, Man","keywords":["woman","kiss-man","kiss","love"],"skins":[{"unified":"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468","native":"👩❤️💋👨"},{"unified":"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","native":"👩🏻❤️💋👨🏻"},{"unified":"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","native":"👩🏼❤️💋👨🏼"},{"unified":"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","native":"👩🏽❤️💋👨🏽"},{"unified":"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","native":"👩🏾❤️💋👨🏾"},{"unified":"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","native":"👩🏿❤️💋👨🏿"}],"version":2},"man-kiss-man":{"id":"man-kiss-man","name":"Kiss: Man, Man","keywords":["kiss-man","kiss","pair","valentines","love","like","dating","marriage"],"skins":[{"unified":"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","native":"👨❤️💋👨"},{"unified":"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","native":"👨🏻❤️💋👨🏻"},{"unified":"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","native":"👨🏼❤️💋👨🏼"},{"unified":"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","native":"👨🏽❤️💋👨🏽"},{"unified":"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","native":"👨🏾❤️💋👨🏾"},{"unified":"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","native":"👨🏿❤️💋👨🏿"}],"version":2},"woman-kiss-woman":{"id":"woman-kiss-woman","name":"Kiss: Woman, Woman","keywords":["kiss-woman","kiss","pair","valentines","love","like","dating","marriage"],"skins":[{"unified":"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","native":"👩❤️💋👩"},{"unified":"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","native":"👩🏻❤️💋👩🏻"},{"unified":"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","native":"👩🏼❤️💋👩🏼"},{"unified":"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","native":"👩🏽❤️💋👩🏽"},{"unified":"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","native":"👩🏾❤️💋👩🏾"},{"unified":"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","native":"👩🏿❤️💋👩🏿"}],"version":2},"couple_with_heart":{"id":"couple_with_heart","name":"Couple with Heart","keywords":["pair","love","like","affection","human","dating","valentines","marriage"],"skins":[{"unified":"1f491","native":"💑"},{"unified":"1f491-1f3fb","native":"💑🏻"},{"unified":"1f491-1f3fc","native":"💑🏼"},{"unified":"1f491-1f3fd","native":"💑🏽"},{"unified":"1f491-1f3fe","native":"💑🏾"},{"unified":"1f491-1f3ff","native":"💑🏿"}],"version":1},"woman-heart-man":{"id":"woman-heart-man","name":"Couple with Heart: Woman, Man","keywords":["woman","heart-man","heart","love"],"skins":[{"unified":"1f469-200d-2764-fe0f-200d-1f468","native":"👩❤️👨"},{"unified":"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","native":"👩🏻❤️👨🏻"},{"unified":"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","native":"👩🏼❤️👨🏼"},{"unified":"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","native":"👩🏽❤️👨🏽"},{"unified":"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","native":"👩🏾❤️👨🏾"},{"unified":"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff","native":"👩🏿❤️👨🏿"}],"version":2},"man-heart-man":{"id":"man-heart-man","name":"Couple with Heart: Man, Man","keywords":["heart-man","heart","pair","love","like","affection","human","dating","valentines","marriage"],"skins":[{"unified":"1f468-200d-2764-fe0f-200d-1f468","native":"👨❤️👨"},{"unified":"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","native":"👨🏻❤️👨🏻"},{"unified":"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","native":"👨🏼❤️👨🏼"},{"unified":"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","native":"👨🏽❤️👨🏽"},{"unified":"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","native":"👨🏾❤️👨🏾"},{"unified":"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff","native":"👨🏿❤️👨🏿"}],"version":2},"woman-heart-woman":{"id":"woman-heart-woman","name":"Couple with Heart: Woman, Woman","keywords":["heart-woman","heart","pair","love","like","affection","human","dating","valentines","marriage"],"skins":[{"unified":"1f469-200d-2764-fe0f-200d-1f469","native":"👩❤️👩"},{"unified":"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb","native":"👩🏻❤️👩🏻"},{"unified":"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc","native":"👩🏼❤️👩🏼"},{"unified":"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd","native":"👩🏽❤️👩🏽"},{"unified":"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe","native":"👩🏾❤️👩🏾"},{"unified":"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff","native":"👩🏿❤️👩🏿"}],"version":2},"family":{"id":"family","name":"Family","keywords":["home","parents","child","mom","dad","father","mother","people","human"],"skins":[{"unified":"1f46a","native":"👪"}],"version":1},"man-woman-boy":{"id":"man-woman-boy","name":"Family: Man, Woman, Boy","keywords":["man","woman-boy","family","woman","love"],"skins":[{"unified":"1f468-200d-1f469-200d-1f466","native":"👨👩👦"}],"version":2},"man-woman-girl":{"id":"man-woman-girl","name":"Family: Man, Woman, Girl","keywords":["man","woman-girl","family","woman","home","parents","people","human","child"],"skins":[{"unified":"1f468-200d-1f469-200d-1f467","native":"👨👩👧"}],"version":2},"man-woman-girl-boy":{"id":"man-woman-girl-boy","name":"Family: Man, Woman, Girl, Boy","keywords":["man","woman-girl-boy","family","woman","girl","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f469-200d-1f467-200d-1f466","native":"👨👩👧👦"}],"version":2},"man-woman-boy-boy":{"id":"man-woman-boy-boy","name":"Family: Man, Woman, Boy, Boy","keywords":["man","woman-boy-boy","family","woman","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f469-200d-1f466-200d-1f466","native":"👨👩👦👦"}],"version":2},"man-woman-girl-girl":{"id":"man-woman-girl-girl","name":"Family: Man, Woman, Girl, Girl","keywords":["man","woman-girl-girl","family","woman","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f469-200d-1f467-200d-1f467","native":"👨👩👧👧"}],"version":2},"man-man-boy":{"id":"man-man-boy","name":"Family: Man, Man, Boy","keywords":["man","man-boy","family","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f468-200d-1f466","native":"👨👨👦"}],"version":2},"man-man-girl":{"id":"man-man-girl","name":"Family: Man, Man, Girl","keywords":["man","man-girl","family","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f468-200d-1f467","native":"👨👨👧"}],"version":2},"man-man-girl-boy":{"id":"man-man-girl-boy","name":"Family: Man, Man, Girl, Boy","keywords":["man","man-girl-boy","family","girl","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f468-200d-1f467-200d-1f466","native":"👨👨👧👦"}],"version":2},"man-man-boy-boy":{"id":"man-man-boy-boy","name":"Family: Man, Man, Boy, Boy","keywords":["man","man-boy-boy","family","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f468-200d-1f466-200d-1f466","native":"👨👨👦👦"}],"version":2},"man-man-girl-girl":{"id":"man-man-girl-girl","name":"Family: Man, Man, Girl, Girl","keywords":["man","man-girl-girl","family","home","parents","people","human","children"],"skins":[{"unified":"1f468-200d-1f468-200d-1f467-200d-1f467","native":"👨👨👧👧"}],"version":2},"woman-woman-boy":{"id":"woman-woman-boy","name":"Family: Woman, Woman, Boy","keywords":["woman","woman-boy","family","home","parents","people","human","children"],"skins":[{"unified":"1f469-200d-1f469-200d-1f466","native":"👩👩👦"}],"version":2},"woman-woman-girl":{"id":"woman-woman-girl","name":"Family: Woman, Woman, Girl","keywords":["woman","woman-girl","family","home","parents","people","human","children"],"skins":[{"unified":"1f469-200d-1f469-200d-1f467","native":"👩👩👧"}],"version":2},"woman-woman-girl-boy":{"id":"woman-woman-girl-boy","name":"Family: Woman, Woman, Girl, Boy","keywords":["woman","woman-girl-boy","family","girl","home","parents","people","human","children"],"skins":[{"unified":"1f469-200d-1f469-200d-1f467-200d-1f466","native":"👩👩👧👦"}],"version":2},"woman-woman-boy-boy":{"id":"woman-woman-boy-boy","name":"Family: Woman, Woman, Boy, Boy","keywords":["woman","woman-boy-boy","family","home","parents","people","human","children"],"skins":[{"unified":"1f469-200d-1f469-200d-1f466-200d-1f466","native":"👩👩👦👦"}],"version":2},"woman-woman-girl-girl":{"id":"woman-woman-girl-girl","name":"Family: Woman, Woman, Girl, Girl","keywords":["woman","woman-girl-girl","family","home","parents","people","human","children"],"skins":[{"unified":"1f469-200d-1f469-200d-1f467-200d-1f467","native":"👩👩👧👧"}],"version":2},"man-boy":{"id":"man-boy","name":"Family: Man, Boy","keywords":["man","family","home","parent","people","human","child"],"skins":[{"unified":"1f468-200d-1f466","native":"👨👦"}],"version":4},"man-boy-boy":{"id":"man-boy-boy","name":"Family: Man, Boy, Boy","keywords":["man","boy-boy","family","home","parent","people","human","children"],"skins":[{"unified":"1f468-200d-1f466-200d-1f466","native":"👨👦👦"}],"version":4},"man-girl":{"id":"man-girl","name":"Family: Man, Girl","keywords":["man","family","home","parent","people","human","child"],"skins":[{"unified":"1f468-200d-1f467","native":"👨👧"}],"version":4},"man-girl-boy":{"id":"man-girl-boy","name":"Family: Man, Girl, Boy","keywords":["man","girl-boy","family","girl","home","parent","people","human","children"],"skins":[{"unified":"1f468-200d-1f467-200d-1f466","native":"👨👧👦"}],"version":4},"man-girl-girl":{"id":"man-girl-girl","name":"Family: Man, Girl, Girl","keywords":["man","girl-girl","family","home","parent","people","human","children"],"skins":[{"unified":"1f468-200d-1f467-200d-1f467","native":"👨👧👧"}],"version":4},"woman-boy":{"id":"woman-boy","name":"Family: Woman, Boy","keywords":["woman","family","home","parent","people","human","child"],"skins":[{"unified":"1f469-200d-1f466","native":"👩👦"}],"version":4},"woman-boy-boy":{"id":"woman-boy-boy","name":"Family: Woman, Boy, Boy","keywords":["woman","boy-boy","family","home","parent","people","human","children"],"skins":[{"unified":"1f469-200d-1f466-200d-1f466","native":"👩👦👦"}],"version":4},"woman-girl":{"id":"woman-girl","name":"Family: Woman, Girl","keywords":["woman","family","home","parent","people","human","child"],"skins":[{"unified":"1f469-200d-1f467","native":"👩👧"}],"version":4},"woman-girl-boy":{"id":"woman-girl-boy","name":"Family: Woman, Girl, Boy","keywords":["woman","girl-boy","family","girl","home","parent","people","human","children"],"skins":[{"unified":"1f469-200d-1f467-200d-1f466","native":"👩👧👦"}],"version":4},"woman-girl-girl":{"id":"woman-girl-girl","name":"Family: Woman, Girl, Girl","keywords":["woman","girl-girl","family","home","parent","people","human","children"],"skins":[{"unified":"1f469-200d-1f467-200d-1f467","native":"👩👧👧"}],"version":4},"speaking_head_in_silhouette":{"id":"speaking_head_in_silhouette","name":"Speaking Head","keywords":["in","silhouette","user","person","human","sing","say","talk"],"skins":[{"unified":"1f5e3-fe0f","native":"🗣️"}],"version":1},"bust_in_silhouette":{"id":"bust_in_silhouette","name":"Bust in Silhouette","keywords":["user","person","human"],"skins":[{"unified":"1f464","native":"👤"}],"version":1},"busts_in_silhouette":{"id":"busts_in_silhouette","name":"Busts in Silhouette","keywords":["user","person","human","group","team"],"skins":[{"unified":"1f465","native":"👥"}],"version":1},"people_hugging":{"id":"people_hugging","name":"People Hugging","keywords":["care"],"skins":[{"unified":"1fac2","native":"🫂"}],"version":13},"footprints":{"id":"footprints","name":"Footprints","keywords":["feet","tracking","walking","beach"],"skins":[{"unified":"1f463","native":"👣"}],"version":1},"monkey_face":{"id":"monkey_face","name":"Monkey Face","emoticons":[":o)"],"keywords":["animal","nature","circus"],"skins":[{"unified":"1f435","native":"🐵"}],"version":1},"monkey":{"id":"monkey","name":"Monkey","keywords":["animal","nature","banana","circus"],"skins":[{"unified":"1f412","native":"🐒"}],"version":1},"gorilla":{"id":"gorilla","name":"Gorilla","keywords":["animal","nature","circus"],"skins":[{"unified":"1f98d","native":"🦍"}],"version":3},"orangutan":{"id":"orangutan","name":"Orangutan","keywords":["animal"],"skins":[{"unified":"1f9a7","native":"🦧"}],"version":12},"dog":{"id":"dog","name":"Dog Face","keywords":["animal","friend","nature","woof","puppy","pet","faithful"],"skins":[{"unified":"1f436","native":"🐶"}],"version":1},"dog2":{"id":"dog2","name":"Dog","keywords":["dog2","animal","nature","friend","doge","pet","faithful"],"skins":[{"unified":"1f415","native":"🐕"}],"version":1},"guide_dog":{"id":"guide_dog","name":"Guide Dog","keywords":["animal","blind"],"skins":[{"unified":"1f9ae","native":"🦮"}],"version":12},"service_dog":{"id":"service_dog","name":"Service Dog","keywords":["blind","animal"],"skins":[{"unified":"1f415-200d-1f9ba","native":"🐕🦺"}],"version":12},"poodle":{"id":"poodle","name":"Poodle","keywords":["dog","animal","101","nature","pet"],"skins":[{"unified":"1f429","native":"🐩"}],"version":1},"wolf":{"id":"wolf","name":"Wolf","keywords":["animal","nature","wild"],"skins":[{"unified":"1f43a","native":"🐺"}],"version":1},"fox_face":{"id":"fox_face","name":"Fox","keywords":["face","animal","nature"],"skins":[{"unified":"1f98a","native":"🦊"}],"version":3},"raccoon":{"id":"raccoon","name":"Raccoon","keywords":["animal","nature"],"skins":[{"unified":"1f99d","native":"🦝"}],"version":11},"cat":{"id":"cat","name":"Cat Face","keywords":["animal","meow","nature","pet","kitten"],"skins":[{"unified":"1f431","native":"🐱"}],"version":1},"cat2":{"id":"cat2","name":"Cat","keywords":["cat2","animal","meow","pet","cats"],"skins":[{"unified":"1f408","native":"🐈"}],"version":1},"black_cat":{"id":"black_cat","name":"Black Cat","keywords":["superstition","luck"],"skins":[{"unified":"1f408-200d-2b1b","native":"🐈⬛"}],"version":13},"lion_face":{"id":"lion_face","name":"Lion","keywords":["face","animal","nature"],"skins":[{"unified":"1f981","native":"🦁"}],"version":1},"tiger":{"id":"tiger","name":"Tiger Face","keywords":["animal","cat","danger","wild","nature","roar"],"skins":[{"unified":"1f42f","native":"🐯"}],"version":1},"tiger2":{"id":"tiger2","name":"Tiger","keywords":["tiger2","animal","nature","roar"],"skins":[{"unified":"1f405","native":"🐅"}],"version":1},"leopard":{"id":"leopard","name":"Leopard","keywords":["animal","nature"],"skins":[{"unified":"1f406","native":"🐆"}],"version":1},"horse":{"id":"horse","name":"Horse Face","keywords":["animal","brown","nature"],"skins":[{"unified":"1f434","native":"🐴"}],"version":1},"moose":{"id":"moose","name":"Moose","keywords":["shrek","canada","sweden","sven","cool"],"skins":[{"unified":"1face","native":"🫎"}],"version":15},"donkey":{"id":"donkey","name":"Donkey","keywords":["eeyore","mule"],"skins":[{"unified":"1facf","native":"🫏"}],"version":15},"racehorse":{"id":"racehorse","name":"Horse","keywords":["racehorse","animal","gamble","luck"],"skins":[{"unified":"1f40e","native":"🐎"}],"version":1},"unicorn_face":{"id":"unicorn_face","name":"Unicorn","keywords":["face","animal","nature","mystical"],"skins":[{"unified":"1f984","native":"🦄"}],"version":1},"zebra_face":{"id":"zebra_face","name":"Zebra","keywords":["face","animal","nature","stripes","safari"],"skins":[{"unified":"1f993","native":"🦓"}],"version":5},"deer":{"id":"deer","name":"Deer","keywords":["animal","nature","horns","venison"],"skins":[{"unified":"1f98c","native":"🦌"}],"version":3},"bison":{"id":"bison","name":"Bison","keywords":["ox"],"skins":[{"unified":"1f9ac","native":"🦬"}],"version":13},"cow":{"id":"cow","name":"Cow Face","keywords":["beef","ox","animal","nature","moo","milk"],"skins":[{"unified":"1f42e","native":"🐮"}],"version":1},"ox":{"id":"ox","name":"Ox","keywords":["animal","cow","beef"],"skins":[{"unified":"1f402","native":"🐂"}],"version":1},"water_buffalo":{"id":"water_buffalo","name":"Water Buffalo","keywords":["animal","nature","ox","cow"],"skins":[{"unified":"1f403","native":"🐃"}],"version":1},"cow2":{"id":"cow2","name":"Cow","keywords":["cow2","beef","ox","animal","nature","moo","milk"],"skins":[{"unified":"1f404","native":"🐄"}],"version":1},"pig":{"id":"pig","name":"Pig Face","keywords":["animal","oink","nature"],"skins":[{"unified":"1f437","native":"🐷"}],"version":1},"pig2":{"id":"pig2","name":"Pig","keywords":["pig2","animal","nature"],"skins":[{"unified":"1f416","native":"🐖"}],"version":1},"boar":{"id":"boar","name":"Boar","keywords":["animal","nature"],"skins":[{"unified":"1f417","native":"🐗"}],"version":1},"pig_nose":{"id":"pig_nose","name":"Pig Nose","keywords":["animal","oink"],"skins":[{"unified":"1f43d","native":"🐽"}],"version":1},"ram":{"id":"ram","name":"Ram","keywords":["animal","sheep","nature"],"skins":[{"unified":"1f40f","native":"🐏"}],"version":1},"sheep":{"id":"sheep","name":"Ewe","keywords":["sheep","animal","nature","wool","shipit"],"skins":[{"unified":"1f411","native":"🐑"}],"version":1},"goat":{"id":"goat","name":"Goat","keywords":["animal","nature"],"skins":[{"unified":"1f410","native":"🐐"}],"version":1},"dromedary_camel":{"id":"dromedary_camel","name":"Camel","keywords":["dromedary","animal","hot","desert","hump"],"skins":[{"unified":"1f42a","native":"🐪"}],"version":1},"camel":{"id":"camel","name":"Bactrian Camel","keywords":["two","hump","animal","nature","hot","desert"],"skins":[{"unified":"1f42b","native":"🐫"}],"version":1},"llama":{"id":"llama","name":"Llama","keywords":["animal","nature","alpaca"],"skins":[{"unified":"1f999","native":"🦙"}],"version":11},"giraffe_face":{"id":"giraffe_face","name":"Giraffe","keywords":["face","animal","nature","spots","safari"],"skins":[{"unified":"1f992","native":"🦒"}],"version":5},"elephant":{"id":"elephant","name":"Elephant","keywords":["animal","nature","nose","th","circus"],"skins":[{"unified":"1f418","native":"🐘"}],"version":1},"mammoth":{"id":"mammoth","name":"Mammoth","keywords":["elephant","tusks"],"skins":[{"unified":"1f9a3","native":"🦣"}],"version":13},"rhinoceros":{"id":"rhinoceros","name":"Rhinoceros","keywords":["animal","nature","horn"],"skins":[{"unified":"1f98f","native":"🦏"}],"version":3},"hippopotamus":{"id":"hippopotamus","name":"Hippopotamus","keywords":["animal","nature"],"skins":[{"unified":"1f99b","native":"🦛"}],"version":11},"mouse":{"id":"mouse","name":"Mouse Face","keywords":["animal","nature","cheese","wedge","rodent"],"skins":[{"unified":"1f42d","native":"🐭"}],"version":1},"mouse2":{"id":"mouse2","name":"Mouse","keywords":["mouse2","animal","nature","rodent"],"skins":[{"unified":"1f401","native":"🐁"}],"version":1},"rat":{"id":"rat","name":"Rat","keywords":["animal","mouse","rodent"],"skins":[{"unified":"1f400","native":"🐀"}],"version":1},"hamster":{"id":"hamster","name":"Hamster","keywords":["animal","nature"],"skins":[{"unified":"1f439","native":"🐹"}],"version":1},"rabbit":{"id":"rabbit","name":"Rabbit Face","keywords":["animal","nature","pet","spring","magic","bunny"],"skins":[{"unified":"1f430","native":"🐰"}],"version":1},"rabbit2":{"id":"rabbit2","name":"Rabbit","keywords":["rabbit2","animal","nature","pet","magic","spring"],"skins":[{"unified":"1f407","native":"🐇"}],"version":1},"chipmunk":{"id":"chipmunk","name":"Chipmunk","keywords":["animal","nature","rodent","squirrel"],"skins":[{"unified":"1f43f-fe0f","native":"🐿️"}],"version":1},"beaver":{"id":"beaver","name":"Beaver","keywords":["animal","rodent"],"skins":[{"unified":"1f9ab","native":"🦫"}],"version":13},"hedgehog":{"id":"hedgehog","name":"Hedgehog","keywords":["animal","nature","spiny"],"skins":[{"unified":"1f994","native":"🦔"}],"version":5},"bat":{"id":"bat","name":"Bat","keywords":["animal","nature","blind","vampire"],"skins":[{"unified":"1f987","native":"🦇"}],"version":3},"bear":{"id":"bear","name":"Bear","keywords":["animal","nature","wild"],"skins":[{"unified":"1f43b","native":"🐻"}],"version":1},"polar_bear":{"id":"polar_bear","name":"Polar Bear","keywords":["animal","arctic"],"skins":[{"unified":"1f43b-200d-2744-fe0f","native":"🐻❄️"}],"version":13},"koala":{"id":"koala","name":"Koala","keywords":["animal","nature"],"skins":[{"unified":"1f428","native":"🐨"}],"version":1},"panda_face":{"id":"panda_face","name":"Panda","keywords":["face","animal","nature"],"skins":[{"unified":"1f43c","native":"🐼"}],"version":1},"sloth":{"id":"sloth","name":"Sloth","keywords":["animal"],"skins":[{"unified":"1f9a5","native":"🦥"}],"version":12},"otter":{"id":"otter","name":"Otter","keywords":["animal"],"skins":[{"unified":"1f9a6","native":"🦦"}],"version":12},"skunk":{"id":"skunk","name":"Skunk","keywords":["animal"],"skins":[{"unified":"1f9a8","native":"🦨"}],"version":12},"kangaroo":{"id":"kangaroo","name":"Kangaroo","keywords":["animal","nature","australia","joey","hop","marsupial"],"skins":[{"unified":"1f998","native":"🦘"}],"version":11},"badger":{"id":"badger","name":"Badger","keywords":["animal","nature","honey"],"skins":[{"unified":"1f9a1","native":"🦡"}],"version":11},"feet":{"id":"feet","name":"Paw Prints","keywords":["feet","animal","tracking","footprints","dog","cat","pet"],"skins":[{"unified":"1f43e","native":"🐾"}],"version":1},"turkey":{"id":"turkey","name":"Turkey","keywords":["animal","bird"],"skins":[{"unified":"1f983","native":"🦃"}],"version":1},"chicken":{"id":"chicken","name":"Chicken","keywords":["animal","cluck","nature","bird"],"skins":[{"unified":"1f414","native":"🐔"}],"version":1},"rooster":{"id":"rooster","name":"Rooster","keywords":["animal","nature","chicken"],"skins":[{"unified":"1f413","native":"🐓"}],"version":1},"hatching_chick":{"id":"hatching_chick","name":"Hatching Chick","keywords":["animal","chicken","egg","born","baby","bird"],"skins":[{"unified":"1f423","native":"🐣"}],"version":1},"baby_chick":{"id":"baby_chick","name":"Baby Chick","keywords":["animal","chicken","bird"],"skins":[{"unified":"1f424","native":"🐤"}],"version":1},"hatched_chick":{"id":"hatched_chick","name":"Front-Facing Baby Chick","keywords":["hatched","front","facing","animal","chicken","bird"],"skins":[{"unified":"1f425","native":"🐥"}],"version":1},"bird":{"id":"bird","name":"Bird","keywords":["animal","nature","fly","tweet","spring"],"skins":[{"unified":"1f426","native":"🐦"}],"version":1},"penguin":{"id":"penguin","name":"Penguin","keywords":["animal","nature"],"skins":[{"unified":"1f427","native":"🐧"}],"version":1},"dove_of_peace":{"id":"dove_of_peace","name":"Dove","keywords":["of","peace","animal","bird"],"skins":[{"unified":"1f54a-fe0f","native":"🕊️"}],"version":1},"eagle":{"id":"eagle","name":"Eagle","keywords":["animal","nature","bird"],"skins":[{"unified":"1f985","native":"🦅"}],"version":3},"duck":{"id":"duck","name":"Duck","keywords":["animal","nature","bird","mallard"],"skins":[{"unified":"1f986","native":"🦆"}],"version":3},"swan":{"id":"swan","name":"Swan","keywords":["animal","nature","bird"],"skins":[{"unified":"1f9a2","native":"🦢"}],"version":11},"owl":{"id":"owl","name":"Owl","keywords":["animal","nature","bird","hoot"],"skins":[{"unified":"1f989","native":"🦉"}],"version":3},"dodo":{"id":"dodo","name":"Dodo","keywords":["animal","bird"],"skins":[{"unified":"1f9a4","native":"🦤"}],"version":13},"feather":{"id":"feather","name":"Feather","keywords":["bird","fly"],"skins":[{"unified":"1fab6","native":"🪶"}],"version":13},"flamingo":{"id":"flamingo","name":"Flamingo","keywords":["animal"],"skins":[{"unified":"1f9a9","native":"🦩"}],"version":12},"peacock":{"id":"peacock","name":"Peacock","keywords":["animal","nature","peahen","bird"],"skins":[{"unified":"1f99a","native":"🦚"}],"version":11},"parrot":{"id":"parrot","name":"Parrot","keywords":["animal","nature","bird","pirate","talk"],"skins":[{"unified":"1f99c","native":"🦜"}],"version":11},"wing":{"id":"wing","name":"Wing","keywords":["angel","birds","flying"],"skins":[{"unified":"1fabd","native":"🪽"}],"version":15},"black_bird":{"id":"black_bird","name":"Black Bird","keywords":["crow"],"skins":[{"unified":"1f426-200d-2b1b","native":"🐦⬛"}],"version":15},"goose":{"id":"goose","name":"Goose","keywords":["silly","jemima","goosebumps"],"skins":[{"unified":"1fabf","native":"🪿"}],"version":15},"frog":{"id":"frog","name":"Frog","keywords":["animal","nature","croak","toad"],"skins":[{"unified":"1f438","native":"🐸"}],"version":1},"crocodile":{"id":"crocodile","name":"Crocodile","keywords":["animal","nature","reptile","lizard","alligator"],"skins":[{"unified":"1f40a","native":"🐊"}],"version":1},"turtle":{"id":"turtle","name":"Turtle","keywords":["animal","slow","nature","tortoise"],"skins":[{"unified":"1f422","native":"🐢"}],"version":1},"lizard":{"id":"lizard","name":"Lizard","keywords":["animal","nature","reptile"],"skins":[{"unified":"1f98e","native":"🦎"}],"version":3},"snake":{"id":"snake","name":"Snake","keywords":["animal","evil","nature","hiss","python"],"skins":[{"unified":"1f40d","native":"🐍"}],"version":1},"dragon_face":{"id":"dragon_face","name":"Dragon Face","keywords":["animal","myth","nature","chinese","green"],"skins":[{"unified":"1f432","native":"🐲"}],"version":1},"dragon":{"id":"dragon","name":"Dragon","keywords":["animal","myth","nature","chinese","green"],"skins":[{"unified":"1f409","native":"🐉"}],"version":1},"sauropod":{"id":"sauropod","name":"Sauropod","keywords":["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],"skins":[{"unified":"1f995","native":"🦕"}],"version":5},"t-rex":{"id":"t-rex","name":"T-Rex","keywords":["t","rex","animal","nature","dinosaur","tyrannosaurus","extinct"],"skins":[{"unified":"1f996","native":"🦖"}],"version":5},"whale":{"id":"whale","name":"Spouting Whale","keywords":["animal","nature","sea","ocean"],"skins":[{"unified":"1f433","native":"🐳"}],"version":1},"whale2":{"id":"whale2","name":"Whale","keywords":["whale2","animal","nature","sea","ocean"],"skins":[{"unified":"1f40b","native":"🐋"}],"version":1},"dolphin":{"id":"dolphin","name":"Dolphin","keywords":["flipper","animal","nature","fish","sea","ocean","fins","beach"],"skins":[{"unified":"1f42c","native":"🐬"}],"version":1},"seal":{"id":"seal","name":"Seal","keywords":["animal","creature","sea"],"skins":[{"unified":"1f9ad","native":"🦭"}],"version":13},"fish":{"id":"fish","name":"Fish","keywords":["animal","food","nature"],"skins":[{"unified":"1f41f","native":"🐟"}],"version":1},"tropical_fish":{"id":"tropical_fish","name":"Tropical Fish","keywords":["animal","swim","ocean","beach","nemo"],"skins":[{"unified":"1f420","native":"🐠"}],"version":1},"blowfish":{"id":"blowfish","name":"Blowfish","keywords":["animal","nature","food","sea","ocean"],"skins":[{"unified":"1f421","native":"🐡"}],"version":1},"shark":{"id":"shark","name":"Shark","keywords":["animal","nature","fish","sea","ocean","jaws","fins","beach"],"skins":[{"unified":"1f988","native":"🦈"}],"version":3},"octopus":{"id":"octopus","name":"Octopus","keywords":["animal","creature","ocean","sea","nature","beach"],"skins":[{"unified":"1f419","native":"🐙"}],"version":1},"shell":{"id":"shell","name":"Spiral Shell","keywords":["nature","sea","beach"],"skins":[{"unified":"1f41a","native":"🐚"}],"version":1},"coral":{"id":"coral","name":"Coral","keywords":["ocean","sea","reef"],"skins":[{"unified":"1fab8","native":"🪸"}],"version":14},"jellyfish":{"id":"jellyfish","name":"Jellyfish","keywords":["sting","tentacles"],"skins":[{"unified":"1fabc","native":"🪼"}],"version":15},"snail":{"id":"snail","name":"Snail","keywords":["slow","animal","shell"],"skins":[{"unified":"1f40c","native":"🐌"}],"version":1},"butterfly":{"id":"butterfly","name":"Butterfly","keywords":["animal","insect","nature","caterpillar"],"skins":[{"unified":"1f98b","native":"🦋"}],"version":3},"bug":{"id":"bug","name":"Bug","keywords":["animal","insect","nature","worm"],"skins":[{"unified":"1f41b","native":"🐛"}],"version":1},"ant":{"id":"ant","name":"Ant","keywords":["animal","insect","nature","bug"],"skins":[{"unified":"1f41c","native":"🐜"}],"version":1},"bee":{"id":"bee","name":"Honeybee","keywords":["bee","animal","insect","nature","bug","spring","honey"],"skins":[{"unified":"1f41d","native":"🐝"}],"version":1},"beetle":{"id":"beetle","name":"Beetle","keywords":["insect"],"skins":[{"unified":"1fab2","native":"🪲"}],"version":13},"ladybug":{"id":"ladybug","name":"Lady Beetle","keywords":["ladybug","animal","insect","nature"],"skins":[{"unified":"1f41e","native":"🐞"}],"version":1},"cricket":{"id":"cricket","name":"Cricket","keywords":["animal","chirp"],"skins":[{"unified":"1f997","native":"🦗"}],"version":5},"cockroach":{"id":"cockroach","name":"Cockroach","keywords":["insect","pests"],"skins":[{"unified":"1fab3","native":"🪳"}],"version":13},"spider":{"id":"spider","name":"Spider","keywords":["animal","arachnid"],"skins":[{"unified":"1f577-fe0f","native":"🕷️"}],"version":1},"spider_web":{"id":"spider_web","name":"Spider Web","keywords":["animal","insect","arachnid","silk"],"skins":[{"unified":"1f578-fe0f","native":"🕸️"}],"version":1},"scorpion":{"id":"scorpion","name":"Scorpion","keywords":["animal","arachnid"],"skins":[{"unified":"1f982","native":"🦂"}],"version":1},"mosquito":{"id":"mosquito","name":"Mosquito","keywords":["animal","nature","insect","malaria"],"skins":[{"unified":"1f99f","native":"🦟"}],"version":11},"fly":{"id":"fly","name":"Fly","keywords":["insect"],"skins":[{"unified":"1fab0","native":"🪰"}],"version":13},"worm":{"id":"worm","name":"Worm","keywords":["animal"],"skins":[{"unified":"1fab1","native":"🪱"}],"version":13},"microbe":{"id":"microbe","name":"Microbe","keywords":["amoeba","bacteria","germs","virus","covid"],"skins":[{"unified":"1f9a0","native":"🦠"}],"version":11},"bouquet":{"id":"bouquet","name":"Bouquet","keywords":["flowers","nature","spring"],"skins":[{"unified":"1f490","native":"💐"}],"version":1},"cherry_blossom":{"id":"cherry_blossom","name":"Cherry Blossom","keywords":["nature","plant","spring","flower"],"skins":[{"unified":"1f338","native":"🌸"}],"version":1},"white_flower":{"id":"white_flower","name":"White Flower","keywords":["japanese","spring"],"skins":[{"unified":"1f4ae","native":"💮"}],"version":1},"lotus":{"id":"lotus","name":"Lotus","keywords":["flower","calm","meditation"],"skins":[{"unified":"1fab7","native":"🪷"}],"version":14},"rosette":{"id":"rosette","name":"Rosette","keywords":["flower","decoration","military"],"skins":[{"unified":"1f3f5-fe0f","native":"🏵️"}],"version":1},"rose":{"id":"rose","name":"Rose","keywords":["flowers","valentines","love","spring"],"skins":[{"unified":"1f339","native":"🌹"}],"version":1},"wilted_flower":{"id":"wilted_flower","name":"Wilted Flower","keywords":["plant","nature","rose"],"skins":[{"unified":"1f940","native":"🥀"}],"version":3},"hibiscus":{"id":"hibiscus","name":"Hibiscus","keywords":["plant","vegetable","flowers","beach"],"skins":[{"unified":"1f33a","native":"🌺"}],"version":1},"sunflower":{"id":"sunflower","name":"Sunflower","keywords":["nature","plant","fall"],"skins":[{"unified":"1f33b","native":"🌻"}],"version":1},"blossom":{"id":"blossom","name":"Blossom","keywords":["nature","flowers","yellow"],"skins":[{"unified":"1f33c","native":"🌼"}],"version":1},"tulip":{"id":"tulip","name":"Tulip","keywords":["flowers","plant","nature","summer","spring"],"skins":[{"unified":"1f337","native":"🌷"}],"version":1},"hyacinth":{"id":"hyacinth","name":"Hyacinth","keywords":["flower","lavender"],"skins":[{"unified":"1fabb","native":"🪻"}],"version":15},"seedling":{"id":"seedling","name":"Seedling","keywords":["plant","nature","grass","lawn","spring"],"skins":[{"unified":"1f331","native":"🌱"}],"version":1},"potted_plant":{"id":"potted_plant","name":"Potted Plant","keywords":["greenery","house"],"skins":[{"unified":"1fab4","native":"🪴"}],"version":13},"evergreen_tree":{"id":"evergreen_tree","name":"Evergreen Tree","keywords":["plant","nature"],"skins":[{"unified":"1f332","native":"🌲"}],"version":1},"deciduous_tree":{"id":"deciduous_tree","name":"Deciduous Tree","keywords":["plant","nature"],"skins":[{"unified":"1f333","native":"🌳"}],"version":1},"palm_tree":{"id":"palm_tree","name":"Palm Tree","keywords":["plant","vegetable","nature","summer","beach","mojito","tropical"],"skins":[{"unified":"1f334","native":"🌴"}],"version":1},"cactus":{"id":"cactus","name":"Cactus","keywords":["vegetable","plant","nature"],"skins":[{"unified":"1f335","native":"🌵"}],"version":1},"ear_of_rice":{"id":"ear_of_rice","name":"Ear of Rice","keywords":["sheaf","nature","plant"],"skins":[{"unified":"1f33e","native":"🌾"}],"version":1},"herb":{"id":"herb","name":"Herb","keywords":["vegetable","plant","medicine","weed","grass","lawn"],"skins":[{"unified":"1f33f","native":"🌿"}],"version":1},"shamrock":{"id":"shamrock","name":"Shamrock","keywords":["vegetable","plant","nature","irish","clover"],"skins":[{"unified":"2618-fe0f","native":"☘️"}],"version":1},"four_leaf_clover":{"id":"four_leaf_clover","name":"Four Leaf Clover","keywords":["vegetable","plant","nature","lucky","irish"],"skins":[{"unified":"1f340","native":"🍀"}],"version":1},"maple_leaf":{"id":"maple_leaf","name":"Maple Leaf","keywords":["nature","plant","vegetable","ca","fall"],"skins":[{"unified":"1f341","native":"🍁"}],"version":1},"fallen_leaf":{"id":"fallen_leaf","name":"Fallen Leaf","keywords":["nature","plant","vegetable","leaves"],"skins":[{"unified":"1f342","native":"🍂"}],"version":1},"leaves":{"id":"leaves","name":"Leaf Fluttering in Wind","keywords":["leaves","nature","plant","tree","vegetable","grass","lawn","spring"],"skins":[{"unified":"1f343","native":"🍃"}],"version":1},"empty_nest":{"id":"empty_nest","name":"Empty Nest","keywords":["bird"],"skins":[{"unified":"1fab9","native":"🪹"}],"version":14},"nest_with_eggs":{"id":"nest_with_eggs","name":"Nest with Eggs","keywords":["bird"],"skins":[{"unified":"1faba","native":"🪺"}],"version":14},"mushroom":{"id":"mushroom","name":"Mushroom","keywords":["plant","vegetable"],"skins":[{"unified":"1f344","native":"🍄"}],"version":1},"grapes":{"id":"grapes","name":"Grapes","keywords":["fruit","food","wine"],"skins":[{"unified":"1f347","native":"🍇"}],"version":1},"melon":{"id":"melon","name":"Melon","keywords":["fruit","nature","food"],"skins":[{"unified":"1f348","native":"🍈"}],"version":1},"watermelon":{"id":"watermelon","name":"Watermelon","keywords":["fruit","food","picnic","summer"],"skins":[{"unified":"1f349","native":"🍉"}],"version":1},"tangerine":{"id":"tangerine","name":"Tangerine","keywords":["food","fruit","nature","orange"],"skins":[{"unified":"1f34a","native":"🍊"}],"version":1},"lemon":{"id":"lemon","name":"Lemon","keywords":["fruit","nature"],"skins":[{"unified":"1f34b","native":"🍋"}],"version":1},"banana":{"id":"banana","name":"Banana","keywords":["fruit","food","monkey"],"skins":[{"unified":"1f34c","native":"🍌"}],"version":1},"pineapple":{"id":"pineapple","name":"Pineapple","keywords":["fruit","nature","food"],"skins":[{"unified":"1f34d","native":"🍍"}],"version":1},"mango":{"id":"mango","name":"Mango","keywords":["fruit","food","tropical"],"skins":[{"unified":"1f96d","native":"🥭"}],"version":11},"apple":{"id":"apple","name":"Red Apple","keywords":["fruit","mac","school"],"skins":[{"unified":"1f34e","native":"🍎"}],"version":1},"green_apple":{"id":"green_apple","name":"Green Apple","keywords":["fruit","nature"],"skins":[{"unified":"1f34f","native":"🍏"}],"version":1},"pear":{"id":"pear","name":"Pear","keywords":["fruit","nature","food"],"skins":[{"unified":"1f350","native":"🍐"}],"version":1},"peach":{"id":"peach","name":"Peach","keywords":["fruit","nature","food"],"skins":[{"unified":"1f351","native":"🍑"}],"version":1},"cherries":{"id":"cherries","name":"Cherries","keywords":["food","fruit"],"skins":[{"unified":"1f352","native":"🍒"}],"version":1},"strawberry":{"id":"strawberry","name":"Strawberry","keywords":["fruit","food","nature"],"skins":[{"unified":"1f353","native":"🍓"}],"version":1},"blueberries":{"id":"blueberries","name":"Blueberries","keywords":["fruit"],"skins":[{"unified":"1fad0","native":"🫐"}],"version":13},"kiwifruit":{"id":"kiwifruit","name":"Kiwifruit","keywords":["kiwi","fruit","food"],"skins":[{"unified":"1f95d","native":"🥝"}],"version":3},"tomato":{"id":"tomato","name":"Tomato","keywords":["fruit","vegetable","nature","food"],"skins":[{"unified":"1f345","native":"🍅"}],"version":1},"olive":{"id":"olive","name":"Olive","keywords":["fruit"],"skins":[{"unified":"1fad2","native":"🫒"}],"version":13},"coconut":{"id":"coconut","name":"Coconut","keywords":["fruit","nature","food","palm"],"skins":[{"unified":"1f965","native":"🥥"}],"version":5},"avocado":{"id":"avocado","name":"Avocado","keywords":["fruit","food"],"skins":[{"unified":"1f951","native":"🥑"}],"version":3},"eggplant":{"id":"eggplant","name":"Eggplant","keywords":["vegetable","nature","food","aubergine"],"skins":[{"unified":"1f346","native":"🍆"}],"version":1},"potato":{"id":"potato","name":"Potato","keywords":["food","tuber","vegatable","starch"],"skins":[{"unified":"1f954","native":"🥔"}],"version":3},"carrot":{"id":"carrot","name":"Carrot","keywords":["vegetable","food","orange"],"skins":[{"unified":"1f955","native":"🥕"}],"version":3},"corn":{"id":"corn","name":"Ear of Corn","keywords":["food","vegetable","plant"],"skins":[{"unified":"1f33d","native":"🌽"}],"version":1},"hot_pepper":{"id":"hot_pepper","name":"Hot Pepper","keywords":["food","spicy","chilli","chili"],"skins":[{"unified":"1f336-fe0f","native":"🌶️"}],"version":1},"bell_pepper":{"id":"bell_pepper","name":"Bell Pepper","keywords":["fruit","plant"],"skins":[{"unified":"1fad1","native":"🫑"}],"version":13},"cucumber":{"id":"cucumber","name":"Cucumber","keywords":["fruit","food","pickle"],"skins":[{"unified":"1f952","native":"🥒"}],"version":3},"leafy_green":{"id":"leafy_green","name":"Leafy Green","keywords":["food","vegetable","plant","bok","choy","cabbage","kale","lettuce"],"skins":[{"unified":"1f96c","native":"🥬"}],"version":11},"broccoli":{"id":"broccoli","name":"Broccoli","keywords":["fruit","food","vegetable"],"skins":[{"unified":"1f966","native":"🥦"}],"version":5},"garlic":{"id":"garlic","name":"Garlic","keywords":["food","spice","cook"],"skins":[{"unified":"1f9c4","native":"🧄"}],"version":12},"onion":{"id":"onion","name":"Onion","keywords":["cook","food","spice"],"skins":[{"unified":"1f9c5","native":"🧅"}],"version":12},"peanuts":{"id":"peanuts","name":"Peanuts","keywords":["food","nut"],"skins":[{"unified":"1f95c","native":"🥜"}],"version":3},"beans":{"id":"beans","name":"Beans","keywords":["food"],"skins":[{"unified":"1fad8","native":"🫘"}],"version":14},"chestnut":{"id":"chestnut","name":"Chestnut","keywords":["food","squirrel"],"skins":[{"unified":"1f330","native":"🌰"}],"version":1},"ginger_root":{"id":"ginger_root","name":"Ginger Root","keywords":["spice","yellow","cooking","gingerbread"],"skins":[{"unified":"1fada","native":"🫚"}],"version":15},"pea_pod":{"id":"pea_pod","name":"Pea Pod","keywords":["cozy","green"],"skins":[{"unified":"1fadb","native":"🫛"}],"version":15},"bread":{"id":"bread","name":"Bread","keywords":["food","wheat","breakfast","toast"],"skins":[{"unified":"1f35e","native":"🍞"}],"version":1},"croissant":{"id":"croissant","name":"Croissant","keywords":["food","bread","french"],"skins":[{"unified":"1f950","native":"🥐"}],"version":3},"baguette_bread":{"id":"baguette_bread","name":"Baguette Bread","keywords":["food","french","france","bakery"],"skins":[{"unified":"1f956","native":"🥖"}],"version":3},"flatbread":{"id":"flatbread","name":"Flatbread","keywords":["flour","food","bakery"],"skins":[{"unified":"1fad3","native":"🫓"}],"version":13},"pretzel":{"id":"pretzel","name":"Pretzel","keywords":["food","bread","twisted","germany","bakery"],"skins":[{"unified":"1f968","native":"🥨"}],"version":5},"bagel":{"id":"bagel","name":"Bagel","keywords":["food","bread","bakery","schmear","jewish"],"skins":[{"unified":"1f96f","native":"🥯"}],"version":11},"pancakes":{"id":"pancakes","name":"Pancakes","keywords":["food","breakfast","flapjacks","hotcakes","brunch"],"skins":[{"unified":"1f95e","native":"🥞"}],"version":3},"waffle":{"id":"waffle","name":"Waffle","keywords":["food","breakfast","brunch"],"skins":[{"unified":"1f9c7","native":"🧇"}],"version":12},"cheese_wedge":{"id":"cheese_wedge","name":"Cheese Wedge","keywords":["food","chadder","swiss"],"skins":[{"unified":"1f9c0","native":"🧀"}],"version":1},"meat_on_bone":{"id":"meat_on_bone","name":"Meat on Bone","keywords":["good","food","drumstick"],"skins":[{"unified":"1f356","native":"🍖"}],"version":1},"poultry_leg":{"id":"poultry_leg","name":"Poultry Leg","keywords":["food","meat","drumstick","bird","chicken","turkey"],"skins":[{"unified":"1f357","native":"🍗"}],"version":1},"cut_of_meat":{"id":"cut_of_meat","name":"Cut of Meat","keywords":["food","cow","chop","lambchop","porkchop"],"skins":[{"unified":"1f969","native":"🥩"}],"version":5},"bacon":{"id":"bacon","name":"Bacon","keywords":["food","breakfast","pork","pig","meat","brunch"],"skins":[{"unified":"1f953","native":"🥓"}],"version":3},"hamburger":{"id":"hamburger","name":"Hamburger","keywords":["meat","fast","food","beef","cheeseburger","mcdonalds","burger","king"],"skins":[{"unified":"1f354","native":"🍔"}],"version":1},"fries":{"id":"fries","name":"French Fries","keywords":["chips","snack","fast","food","potato"],"skins":[{"unified":"1f35f","native":"🍟"}],"version":1},"pizza":{"id":"pizza","name":"Pizza","keywords":["food","party","italy"],"skins":[{"unified":"1f355","native":"🍕"}],"version":1},"hotdog":{"id":"hotdog","name":"Hot Dog","keywords":["hotdog","food","frankfurter","america"],"skins":[{"unified":"1f32d","native":"🌭"}],"version":1},"sandwich":{"id":"sandwich","name":"Sandwich","keywords":["food","lunch","bread","toast","bakery"],"skins":[{"unified":"1f96a","native":"🥪"}],"version":5},"taco":{"id":"taco","name":"Taco","keywords":["food","mexican"],"skins":[{"unified":"1f32e","native":"🌮"}],"version":1},"burrito":{"id":"burrito","name":"Burrito","keywords":["food","mexican"],"skins":[{"unified":"1f32f","native":"🌯"}],"version":1},"tamale":{"id":"tamale","name":"Tamale","keywords":["food","masa"],"skins":[{"unified":"1fad4","native":"🫔"}],"version":13},"stuffed_flatbread":{"id":"stuffed_flatbread","name":"Stuffed Flatbread","keywords":["food","gyro","mediterranean"],"skins":[{"unified":"1f959","native":"🥙"}],"version":3},"falafel":{"id":"falafel","name":"Falafel","keywords":["food","mediterranean"],"skins":[{"unified":"1f9c6","native":"🧆"}],"version":12},"egg":{"id":"egg","name":"Egg","keywords":["food","chicken","breakfast"],"skins":[{"unified":"1f95a","native":"🥚"}],"version":3},"fried_egg":{"id":"fried_egg","name":"Cooking","keywords":["fried","egg","food","breakfast","kitchen","skillet"],"skins":[{"unified":"1f373","native":"🍳"}],"version":1},"shallow_pan_of_food":{"id":"shallow_pan_of_food","name":"Shallow Pan of Food","keywords":["cooking","casserole","paella","skillet"],"skins":[{"unified":"1f958","native":"🥘"}],"version":3},"stew":{"id":"stew","name":"Pot of Food","keywords":["stew","meat","soup","hot"],"skins":[{"unified":"1f372","native":"🍲"}],"version":1},"fondue":{"id":"fondue","name":"Fondue","keywords":["cheese","pot","food"],"skins":[{"unified":"1fad5","native":"🫕"}],"version":13},"bowl_with_spoon":{"id":"bowl_with_spoon","name":"Bowl with Spoon","keywords":["food","breakfast","cereal","oatmeal","porridge"],"skins":[{"unified":"1f963","native":"🥣"}],"version":5},"green_salad":{"id":"green_salad","name":"Green Salad","keywords":["food","healthy","lettuce","vegetable"],"skins":[{"unified":"1f957","native":"🥗"}],"version":3},"popcorn":{"id":"popcorn","name":"Popcorn","keywords":["food","movie","theater","films","snack","drama"],"skins":[{"unified":"1f37f","native":"🍿"}],"version":1},"butter":{"id":"butter","name":"Butter","keywords":["food","cook"],"skins":[{"unified":"1f9c8","native":"🧈"}],"version":12},"salt":{"id":"salt","name":"Salt","keywords":["condiment","shaker"],"skins":[{"unified":"1f9c2","native":"🧂"}],"version":11},"canned_food":{"id":"canned_food","name":"Canned Food","keywords":["soup","tomatoes"],"skins":[{"unified":"1f96b","native":"🥫"}],"version":5},"bento":{"id":"bento","name":"Bento Box","keywords":["food","japanese","lunch"],"skins":[{"unified":"1f371","native":"🍱"}],"version":1},"rice_cracker":{"id":"rice_cracker","name":"Rice Cracker","keywords":["food","japanese","snack"],"skins":[{"unified":"1f358","native":"🍘"}],"version":1},"rice_ball":{"id":"rice_ball","name":"Rice Ball","keywords":["food","japanese"],"skins":[{"unified":"1f359","native":"🍙"}],"version":1},"rice":{"id":"rice","name":"Cooked Rice","keywords":["food","asian"],"skins":[{"unified":"1f35a","native":"🍚"}],"version":1},"curry":{"id":"curry","name":"Curry Rice","keywords":["food","spicy","hot","indian"],"skins":[{"unified":"1f35b","native":"🍛"}],"version":1},"ramen":{"id":"ramen","name":"Steaming Bowl","keywords":["ramen","food","japanese","noodle","chopsticks"],"skins":[{"unified":"1f35c","native":"🍜"}],"version":1},"spaghetti":{"id":"spaghetti","name":"Spaghetti","keywords":["food","italian","pasta","noodle"],"skins":[{"unified":"1f35d","native":"🍝"}],"version":1},"sweet_potato":{"id":"sweet_potato","name":"Roasted Sweet Potato","keywords":["food","nature","plant"],"skins":[{"unified":"1f360","native":"🍠"}],"version":1},"oden":{"id":"oden","name":"Oden","keywords":["food","japanese"],"skins":[{"unified":"1f362","native":"🍢"}],"version":1},"sushi":{"id":"sushi","name":"Sushi","keywords":["food","fish","japanese","rice"],"skins":[{"unified":"1f363","native":"🍣"}],"version":1},"fried_shrimp":{"id":"fried_shrimp","name":"Fried Shrimp","keywords":["food","animal","appetizer","summer"],"skins":[{"unified":"1f364","native":"🍤"}],"version":1},"fish_cake":{"id":"fish_cake","name":"Fish Cake with Swirl","keywords":["food","japan","sea","beach","narutomaki","pink","kamaboko","surimi","ramen"],"skins":[{"unified":"1f365","native":"🍥"}],"version":1},"moon_cake":{"id":"moon_cake","name":"Moon Cake","keywords":["food","autumn","dessert"],"skins":[{"unified":"1f96e","native":"🥮"}],"version":11},"dango":{"id":"dango","name":"Dango","keywords":["food","dessert","sweet","japanese","barbecue","meat"],"skins":[{"unified":"1f361","native":"🍡"}],"version":1},"dumpling":{"id":"dumpling","name":"Dumpling","keywords":["food","empanada","pierogi","potsticker","gyoza"],"skins":[{"unified":"1f95f","native":"🥟"}],"version":5},"fortune_cookie":{"id":"fortune_cookie","name":"Fortune Cookie","keywords":["food","prophecy","dessert"],"skins":[{"unified":"1f960","native":"🥠"}],"version":5},"takeout_box":{"id":"takeout_box","name":"Takeout Box","keywords":["food","leftovers"],"skins":[{"unified":"1f961","native":"🥡"}],"version":5},"crab":{"id":"crab","name":"Crab","keywords":["animal","crustacean"],"skins":[{"unified":"1f980","native":"🦀"}],"version":1},"lobster":{"id":"lobster","name":"Lobster","keywords":["animal","nature","bisque","claws","seafood"],"skins":[{"unified":"1f99e","native":"🦞"}],"version":11},"shrimp":{"id":"shrimp","name":"Shrimp","keywords":["animal","ocean","nature","seafood"],"skins":[{"unified":"1f990","native":"🦐"}],"version":3},"squid":{"id":"squid","name":"Squid","keywords":["animal","nature","ocean","sea"],"skins":[{"unified":"1f991","native":"🦑"}],"version":3},"oyster":{"id":"oyster","name":"Oyster","keywords":["food"],"skins":[{"unified":"1f9aa","native":"🦪"}],"version":12},"icecream":{"id":"icecream","name":"Soft Ice Cream","keywords":["icecream","food","hot","dessert","summer"],"skins":[{"unified":"1f366","native":"🍦"}],"version":1},"shaved_ice":{"id":"shaved_ice","name":"Shaved Ice","keywords":["hot","dessert","summer"],"skins":[{"unified":"1f367","native":"🍧"}],"version":1},"ice_cream":{"id":"ice_cream","name":"Ice Cream","keywords":["food","hot","dessert"],"skins":[{"unified":"1f368","native":"🍨"}],"version":1},"doughnut":{"id":"doughnut","name":"Doughnut","keywords":["food","dessert","snack","sweet","donut"],"skins":[{"unified":"1f369","native":"🍩"}],"version":1},"cookie":{"id":"cookie","name":"Cookie","keywords":["food","snack","oreo","chocolate","sweet","dessert"],"skins":[{"unified":"1f36a","native":"🍪"}],"version":1},"birthday":{"id":"birthday","name":"Birthday Cake","keywords":["food","dessert"],"skins":[{"unified":"1f382","native":"🎂"}],"version":1},"cake":{"id":"cake","name":"Shortcake","keywords":["cake","food","dessert"],"skins":[{"unified":"1f370","native":"🍰"}],"version":1},"cupcake":{"id":"cupcake","name":"Cupcake","keywords":["food","dessert","bakery","sweet"],"skins":[{"unified":"1f9c1","native":"🧁"}],"version":11},"pie":{"id":"pie","name":"Pie","keywords":["food","dessert","pastry"],"skins":[{"unified":"1f967","native":"🥧"}],"version":5},"chocolate_bar":{"id":"chocolate_bar","name":"Chocolate Bar","keywords":["food","snack","dessert","sweet"],"skins":[{"unified":"1f36b","native":"🍫"}],"version":1},"candy":{"id":"candy","name":"Candy","keywords":["snack","dessert","sweet","lolly"],"skins":[{"unified":"1f36c","native":"🍬"}],"version":1},"lollipop":{"id":"lollipop","name":"Lollipop","keywords":["food","snack","candy","sweet"],"skins":[{"unified":"1f36d","native":"🍭"}],"version":1},"custard":{"id":"custard","name":"Custard","keywords":["dessert","food"],"skins":[{"unified":"1f36e","native":"🍮"}],"version":1},"honey_pot":{"id":"honey_pot","name":"Honey Pot","keywords":["bees","sweet","kitchen"],"skins":[{"unified":"1f36f","native":"🍯"}],"version":1},"baby_bottle":{"id":"baby_bottle","name":"Baby Bottle","keywords":["food","container","milk"],"skins":[{"unified":"1f37c","native":"🍼"}],"version":1},"glass_of_milk":{"id":"glass_of_milk","name":"Glass of Milk","keywords":["beverage","drink","cow"],"skins":[{"unified":"1f95b","native":"🥛"}],"version":3},"coffee":{"id":"coffee","name":"Hot Beverage","keywords":["coffee","caffeine","latte","espresso","mug"],"skins":[{"unified":"2615","native":"☕"}],"version":1},"teapot":{"id":"teapot","name":"Teapot","keywords":["drink","hot"],"skins":[{"unified":"1fad6","native":"🫖"}],"version":13},"tea":{"id":"tea","name":"Teacup Without Handle","keywords":["tea","drink","bowl","breakfast","green","british"],"skins":[{"unified":"1f375","native":"🍵"}],"version":1},"sake":{"id":"sake","name":"Sake","keywords":["wine","drink","drunk","beverage","japanese","alcohol","booze"],"skins":[{"unified":"1f376","native":"🍶"}],"version":1},"champagne":{"id":"champagne","name":"Bottle with Popping Cork","keywords":["champagne","drink","wine","celebration"],"skins":[{"unified":"1f37e","native":"🍾"}],"version":1},"wine_glass":{"id":"wine_glass","name":"Wine Glass","keywords":["drink","beverage","drunk","alcohol","booze"],"skins":[{"unified":"1f377","native":"🍷"}],"version":1},"cocktail":{"id":"cocktail","name":"Cocktail Glass","keywords":["drink","drunk","alcohol","beverage","booze","mojito"],"skins":[{"unified":"1f378","native":"🍸"}],"version":1},"tropical_drink":{"id":"tropical_drink","name":"Tropical Drink","keywords":["beverage","cocktail","summer","beach","alcohol","booze","mojito"],"skins":[{"unified":"1f379","native":"🍹"}],"version":1},"beer":{"id":"beer","name":"Beer Mug","keywords":["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"skins":[{"unified":"1f37a","native":"🍺"}],"version":1},"beers":{"id":"beers","name":"Clinking Beer Mugs","keywords":["beers","relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],"skins":[{"unified":"1f37b","native":"🍻"}],"version":1},"clinking_glasses":{"id":"clinking_glasses","name":"Clinking Glasses","keywords":["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],"skins":[{"unified":"1f942","native":"🥂"}],"version":3},"tumbler_glass":{"id":"tumbler_glass","name":"Tumbler Glass","keywords":["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","shot"],"skins":[{"unified":"1f943","native":"🥃"}],"version":3},"pouring_liquid":{"id":"pouring_liquid","name":"Pouring Liquid","keywords":["cup","water"],"skins":[{"unified":"1fad7","native":"🫗"}],"version":14},"cup_with_straw":{"id":"cup_with_straw","name":"Cup with Straw","keywords":["drink","soda"],"skins":[{"unified":"1f964","native":"🥤"}],"version":5},"bubble_tea":{"id":"bubble_tea","name":"Bubble Tea","keywords":["taiwan","boba","milk","straw"],"skins":[{"unified":"1f9cb","native":"🧋"}],"version":13},"beverage_box":{"id":"beverage_box","name":"Beverage Box","keywords":["drink"],"skins":[{"unified":"1f9c3","native":"🧃"}],"version":12},"mate_drink":{"id":"mate_drink","name":"Mate","keywords":["drink","tea","beverage"],"skins":[{"unified":"1f9c9","native":"🧉"}],"version":12},"ice_cube":{"id":"ice_cube","name":"Ice","keywords":["cube","water","cold"],"skins":[{"unified":"1f9ca","native":"🧊"}],"version":12},"chopsticks":{"id":"chopsticks","name":"Chopsticks","keywords":["food"],"skins":[{"unified":"1f962","native":"🥢"}],"version":5},"knife_fork_plate":{"id":"knife_fork_plate","name":"Fork and Knife with Plate","keywords":["food","eat","meal","lunch","dinner","restaurant"],"skins":[{"unified":"1f37d-fe0f","native":"🍽️"}],"version":1},"fork_and_knife":{"id":"fork_and_knife","name":"Fork and Knife","keywords":["cutlery","kitchen"],"skins":[{"unified":"1f374","native":"🍴"}],"version":1},"spoon":{"id":"spoon","name":"Spoon","keywords":["cutlery","kitchen","tableware"],"skins":[{"unified":"1f944","native":"🥄"}],"version":3},"hocho":{"id":"hocho","name":"Hocho","keywords":["knife","kitchen","blade","cutlery","weapon"],"skins":[{"unified":"1f52a","native":"🔪"}],"version":1},"jar":{"id":"jar","name":"Jar","keywords":["container","sauce"],"skins":[{"unified":"1fad9","native":"🫙"}],"version":14},"amphora":{"id":"amphora","name":"Amphora","keywords":["vase","jar"],"skins":[{"unified":"1f3fa","native":"🏺"}],"version":1},"earth_africa":{"id":"earth_africa","name":"Earth Globe Europe-Africa","keywords":["africa","showing","europe","world","international"],"skins":[{"unified":"1f30d","native":"🌍"}],"version":1},"earth_americas":{"id":"earth_americas","name":"Earth Globe Americas","keywords":["showing","world","USA","international"],"skins":[{"unified":"1f30e","native":"🌎"}],"version":1},"earth_asia":{"id":"earth_asia","name":"Earth Globe Asia-Australia","keywords":["asia","showing","australia","world","east","international"],"skins":[{"unified":"1f30f","native":"🌏"}],"version":1},"globe_with_meridians":{"id":"globe_with_meridians","name":"Globe with Meridians","keywords":["earth","international","world","internet","interweb","i18n"],"skins":[{"unified":"1f310","native":"🌐"}],"version":1},"world_map":{"id":"world_map","name":"World Map","keywords":["location","direction"],"skins":[{"unified":"1f5fa-fe0f","native":"🗺️"}],"version":1},"japan":{"id":"japan","name":"Map of Japan","keywords":["nation","country","japanese","asia"],"skins":[{"unified":"1f5fe","native":"🗾"}],"version":1},"compass":{"id":"compass","name":"Compass","keywords":["magnetic","navigation","orienteering"],"skins":[{"unified":"1f9ed","native":"🧭"}],"version":11},"snow_capped_mountain":{"id":"snow_capped_mountain","name":"Snow-Capped Mountain","keywords":["snow","capped","photo","nature","environment","winter","cold"],"skins":[{"unified":"1f3d4-fe0f","native":"🏔️"}],"version":1},"mountain":{"id":"mountain","name":"Mountain","keywords":["photo","nature","environment"],"skins":[{"unified":"26f0-fe0f","native":"⛰️"}],"version":1},"volcano":{"id":"volcano","name":"Volcano","keywords":["photo","nature","disaster"],"skins":[{"unified":"1f30b","native":"🌋"}],"version":1},"mount_fuji":{"id":"mount_fuji","name":"Mount Fuji","keywords":["photo","mountain","nature","japanese"],"skins":[{"unified":"1f5fb","native":"🗻"}],"version":1},"camping":{"id":"camping","name":"Camping","keywords":["photo","outdoors","tent"],"skins":[{"unified":"1f3d5-fe0f","native":"🏕️"}],"version":1},"beach_with_umbrella":{"id":"beach_with_umbrella","name":"Beach with Umbrella","keywords":["weather","summer","sunny","sand","mojito"],"skins":[{"unified":"1f3d6-fe0f","native":"🏖️"}],"version":1},"desert":{"id":"desert","name":"Desert","keywords":["photo","warm","saharah"],"skins":[{"unified":"1f3dc-fe0f","native":"🏜️"}],"version":1},"desert_island":{"id":"desert_island","name":"Desert Island","keywords":["photo","tropical","mojito"],"skins":[{"unified":"1f3dd-fe0f","native":"🏝️"}],"version":1},"national_park":{"id":"national_park","name":"National Park","keywords":["photo","environment","nature"],"skins":[{"unified":"1f3de-fe0f","native":"🏞️"}],"version":1},"stadium":{"id":"stadium","name":"Stadium","keywords":["photo","place","sports","concert","venue"],"skins":[{"unified":"1f3df-fe0f","native":"🏟️"}],"version":1},"classical_building":{"id":"classical_building","name":"Classical Building","keywords":["art","culture","history"],"skins":[{"unified":"1f3db-fe0f","native":"🏛️"}],"version":1},"building_construction":{"id":"building_construction","name":"Building Construction","keywords":["wip","working","progress"],"skins":[{"unified":"1f3d7-fe0f","native":"🏗️"}],"version":1},"bricks":{"id":"bricks","name":"Brick","keywords":["bricks"],"skins":[{"unified":"1f9f1","native":"🧱"}],"version":11},"rock":{"id":"rock","name":"Rock","keywords":["stone"],"skins":[{"unified":"1faa8","native":"🪨"}],"version":13},"wood":{"id":"wood","name":"Wood","keywords":["nature","timber","trunk"],"skins":[{"unified":"1fab5","native":"🪵"}],"version":13},"hut":{"id":"hut","name":"Hut","keywords":["house","structure"],"skins":[{"unified":"1f6d6","native":"🛖"}],"version":13},"house_buildings":{"id":"house_buildings","name":"Houses","keywords":["house","buildings","photo"],"skins":[{"unified":"1f3d8-fe0f","native":"🏘️"}],"version":1},"derelict_house_building":{"id":"derelict_house_building","name":"Derelict House","keywords":["building","abandon","evict","broken"],"skins":[{"unified":"1f3da-fe0f","native":"🏚️"}],"version":1},"house":{"id":"house","name":"House","keywords":["building","home"],"skins":[{"unified":"1f3e0","native":"🏠"}],"version":1},"house_with_garden":{"id":"house_with_garden","name":"House with Garden","keywords":["home","plant","nature"],"skins":[{"unified":"1f3e1","native":"🏡"}],"version":1},"office":{"id":"office","name":"Office Building","keywords":["bureau","work"],"skins":[{"unified":"1f3e2","native":"🏢"}],"version":1},"post_office":{"id":"post_office","name":"Japanese Post Office","keywords":["building","envelope","communication"],"skins":[{"unified":"1f3e3","native":"🏣"}],"version":1},"european_post_office":{"id":"european_post_office","name":"Post Office","keywords":["european","building","email"],"skins":[{"unified":"1f3e4","native":"🏤"}],"version":1},"hospital":{"id":"hospital","name":"Hospital","keywords":["building","health","surgery","doctor"],"skins":[{"unified":"1f3e5","native":"🏥"}],"version":1},"bank":{"id":"bank","name":"Bank","keywords":["building","money","sales","cash","business","enterprise"],"skins":[{"unified":"1f3e6","native":"🏦"}],"version":1},"hotel":{"id":"hotel","name":"Hotel","keywords":["building","accomodation","checkin"],"skins":[{"unified":"1f3e8","native":"🏨"}],"version":1},"love_hotel":{"id":"love_hotel","name":"Love Hotel","keywords":["like","affection","dating"],"skins":[{"unified":"1f3e9","native":"🏩"}],"version":1},"convenience_store":{"id":"convenience_store","name":"Convenience Store","keywords":["building","shopping","groceries"],"skins":[{"unified":"1f3ea","native":"🏪"}],"version":1},"school":{"id":"school","name":"School","keywords":["building","student","education","learn","teach"],"skins":[{"unified":"1f3eb","native":"🏫"}],"version":1},"department_store":{"id":"department_store","name":"Department Store","keywords":["building","shopping","mall"],"skins":[{"unified":"1f3ec","native":"🏬"}],"version":1},"factory":{"id":"factory","name":"Factory","keywords":["building","industry","pollution","smoke"],"skins":[{"unified":"1f3ed","native":"🏭"}],"version":1},"japanese_castle":{"id":"japanese_castle","name":"Japanese Castle","keywords":["photo","building"],"skins":[{"unified":"1f3ef","native":"🏯"}],"version":1},"european_castle":{"id":"european_castle","name":"Castle","keywords":["european","building","royalty","history"],"skins":[{"unified":"1f3f0","native":"🏰"}],"version":1},"wedding":{"id":"wedding","name":"Wedding","keywords":["love","like","affection","couple","marriage","bride","groom"],"skins":[{"unified":"1f492","native":"💒"}],"version":1},"tokyo_tower":{"id":"tokyo_tower","name":"Tokyo Tower","keywords":["photo","japanese"],"skins":[{"unified":"1f5fc","native":"🗼"}],"version":1},"statue_of_liberty":{"id":"statue_of_liberty","name":"Statue of Liberty","keywords":["american","newyork"],"skins":[{"unified":"1f5fd","native":"🗽"}],"version":1},"church":{"id":"church","name":"Church","keywords":["building","religion","christ"],"skins":[{"unified":"26ea","native":"⛪"}],"version":1},"mosque":{"id":"mosque","name":"Mosque","keywords":["islam","worship","minaret"],"skins":[{"unified":"1f54c","native":"🕌"}],"version":1},"hindu_temple":{"id":"hindu_temple","name":"Hindu Temple","keywords":["religion"],"skins":[{"unified":"1f6d5","native":"🛕"}],"version":12},"synagogue":{"id":"synagogue","name":"Synagogue","keywords":["judaism","worship","temple","jewish"],"skins":[{"unified":"1f54d","native":"🕍"}],"version":1},"shinto_shrine":{"id":"shinto_shrine","name":"Shinto Shrine","keywords":["temple","japan","kyoto"],"skins":[{"unified":"26e9-fe0f","native":"⛩️"}],"version":1},"kaaba":{"id":"kaaba","name":"Kaaba","keywords":["mecca","mosque","islam"],"skins":[{"unified":"1f54b","native":"🕋"}],"version":1},"fountain":{"id":"fountain","name":"Fountain","keywords":["photo","summer","water","fresh"],"skins":[{"unified":"26f2","native":"⛲"}],"version":1},"tent":{"id":"tent","name":"Tent","keywords":["photo","camping","outdoors"],"skins":[{"unified":"26fa","native":"⛺"}],"version":1},"foggy":{"id":"foggy","name":"Foggy","keywords":["photo","mountain"],"skins":[{"unified":"1f301","native":"🌁"}],"version":1},"night_with_stars":{"id":"night_with_stars","name":"Night with Stars","keywords":["evening","city","downtown"],"skins":[{"unified":"1f303","native":"🌃"}],"version":1},"cityscape":{"id":"cityscape","name":"Cityscape","keywords":["photo","night","life","urban"],"skins":[{"unified":"1f3d9-fe0f","native":"🏙️"}],"version":1},"sunrise_over_mountains":{"id":"sunrise_over_mountains","name":"Sunrise over Mountains","keywords":["view","vacation","photo"],"skins":[{"unified":"1f304","native":"🌄"}],"version":1},"sunrise":{"id":"sunrise","name":"Sunrise","keywords":["morning","view","vacation","photo"],"skins":[{"unified":"1f305","native":"🌅"}],"version":1},"city_sunset":{"id":"city_sunset","name":"Cityscape at Dusk","keywords":["city","sunset","photo","evening","sky","buildings"],"skins":[{"unified":"1f306","native":"🌆"}],"version":1},"city_sunrise":{"id":"city_sunrise","name":"Sunset","keywords":["city","sunrise","photo","good","morning","dawn"],"skins":[{"unified":"1f307","native":"🌇"}],"version":1},"bridge_at_night":{"id":"bridge_at_night","name":"Bridge at Night","keywords":["photo","sanfrancisco"],"skins":[{"unified":"1f309","native":"🌉"}],"version":1},"hotsprings":{"id":"hotsprings","name":"Hot Springs","keywords":["hotsprings","bath","warm","relax"],"skins":[{"unified":"2668-fe0f","native":"♨️"}],"version":1},"carousel_horse":{"id":"carousel_horse","name":"Carousel Horse","keywords":["photo","carnival"],"skins":[{"unified":"1f3a0","native":"🎠"}],"version":1},"playground_slide":{"id":"playground_slide","name":"Playground Slide","keywords":["fun","park"],"skins":[{"unified":"1f6dd","native":"🛝"}],"version":14},"ferris_wheel":{"id":"ferris_wheel","name":"Ferris Wheel","keywords":["photo","carnival","londoneye"],"skins":[{"unified":"1f3a1","native":"🎡"}],"version":1},"roller_coaster":{"id":"roller_coaster","name":"Roller Coaster","keywords":["carnival","playground","photo","fun"],"skins":[{"unified":"1f3a2","native":"🎢"}],"version":1},"barber":{"id":"barber","name":"Barber Pole","keywords":["hair","salon","style"],"skins":[{"unified":"1f488","native":"💈"}],"version":1},"circus_tent":{"id":"circus_tent","name":"Circus Tent","keywords":["festival","carnival","party"],"skins":[{"unified":"1f3aa","native":"🎪"}],"version":1},"steam_locomotive":{"id":"steam_locomotive","name":"Locomotive","keywords":["steam","transportation","vehicle","train"],"skins":[{"unified":"1f682","native":"🚂"}],"version":1},"railway_car":{"id":"railway_car","name":"Railway Car","keywords":["transportation","vehicle"],"skins":[{"unified":"1f683","native":"🚃"}],"version":1},"bullettrain_side":{"id":"bullettrain_side","name":"High-Speed Train","keywords":["bullettrain","side","high","speed","transportation","vehicle"],"skins":[{"unified":"1f684","native":"🚄"}],"version":1},"bullettrain_front":{"id":"bullettrain_front","name":"Bullet Train","keywords":["bullettrain","front","transportation","vehicle","speed","fast","public","travel"],"skins":[{"unified":"1f685","native":"🚅"}],"version":1},"train2":{"id":"train2","name":"Train","keywords":["train2","transportation","vehicle"],"skins":[{"unified":"1f686","native":"🚆"}],"version":1},"metro":{"id":"metro","name":"Metro","keywords":["transportation","blue","square","mrt","underground","tube"],"skins":[{"unified":"1f687","native":"🚇"}],"version":1},"light_rail":{"id":"light_rail","name":"Light Rail","keywords":["transportation","vehicle"],"skins":[{"unified":"1f688","native":"🚈"}],"version":1},"station":{"id":"station","name":"Station","keywords":["transportation","vehicle","public"],"skins":[{"unified":"1f689","native":"🚉"}],"version":1},"tram":{"id":"tram","name":"Tram","keywords":["transportation","vehicle"],"skins":[{"unified":"1f68a","native":"🚊"}],"version":1},"monorail":{"id":"monorail","name":"Monorail","keywords":["transportation","vehicle"],"skins":[{"unified":"1f69d","native":"🚝"}],"version":1},"mountain_railway":{"id":"mountain_railway","name":"Mountain Railway","keywords":["transportation","vehicle"],"skins":[{"unified":"1f69e","native":"🚞"}],"version":1},"train":{"id":"train","name":"Tram Car","keywords":["train","transportation","vehicle","carriage","public","travel"],"skins":[{"unified":"1f68b","native":"🚋"}],"version":1},"bus":{"id":"bus","name":"Bus","keywords":["car","vehicle","transportation"],"skins":[{"unified":"1f68c","native":"🚌"}],"version":1},"oncoming_bus":{"id":"oncoming_bus","name":"Oncoming Bus","keywords":["vehicle","transportation"],"skins":[{"unified":"1f68d","native":"🚍"}],"version":1},"trolleybus":{"id":"trolleybus","name":"Trolleybus","keywords":["bart","transportation","vehicle"],"skins":[{"unified":"1f68e","native":"🚎"}],"version":1},"minibus":{"id":"minibus","name":"Minibus","keywords":["vehicle","car","transportation"],"skins":[{"unified":"1f690","native":"🚐"}],"version":1},"ambulance":{"id":"ambulance","name":"Ambulance","keywords":["health","911","hospital"],"skins":[{"unified":"1f691","native":"🚑"}],"version":1},"fire_engine":{"id":"fire_engine","name":"Fire Engine","keywords":["transportation","cars","vehicle"],"skins":[{"unified":"1f692","native":"🚒"}],"version":1},"police_car":{"id":"police_car","name":"Police Car","keywords":["vehicle","cars","transportation","law","legal","enforcement"],"skins":[{"unified":"1f693","native":"🚓"}],"version":1},"oncoming_police_car":{"id":"oncoming_police_car","name":"Oncoming Police Car","keywords":["vehicle","law","legal","enforcement","911"],"skins":[{"unified":"1f694","native":"🚔"}],"version":1},"taxi":{"id":"taxi","name":"Taxi","keywords":["uber","vehicle","cars","transportation"],"skins":[{"unified":"1f695","native":"🚕"}],"version":1},"oncoming_taxi":{"id":"oncoming_taxi","name":"Oncoming Taxi","keywords":["vehicle","cars","uber"],"skins":[{"unified":"1f696","native":"🚖"}],"version":1},"car":{"id":"car","name":"Automobile","keywords":["car","red","transportation","vehicle"],"skins":[{"unified":"1f697","native":"🚗"}],"version":1},"oncoming_automobile":{"id":"oncoming_automobile","name":"Oncoming Automobile","keywords":["car","vehicle","transportation"],"skins":[{"unified":"1f698","native":"🚘"}],"version":1},"blue_car":{"id":"blue_car","name":"Recreational Vehicle","keywords":["blue","car","sport","utility","transportation"],"skins":[{"unified":"1f699","native":"🚙"}],"version":1},"pickup_truck":{"id":"pickup_truck","name":"Pickup Truck","keywords":["car","transportation"],"skins":[{"unified":"1f6fb","native":"🛻"}],"version":13},"truck":{"id":"truck","name":"Delivery Truck","keywords":["cars","transportation"],"skins":[{"unified":"1f69a","native":"🚚"}],"version":1},"articulated_lorry":{"id":"articulated_lorry","name":"Articulated Lorry","keywords":["vehicle","cars","transportation","express"],"skins":[{"unified":"1f69b","native":"🚛"}],"version":1},"tractor":{"id":"tractor","name":"Tractor","keywords":["vehicle","car","farming","agriculture"],"skins":[{"unified":"1f69c","native":"🚜"}],"version":1},"racing_car":{"id":"racing_car","name":"Racing Car","keywords":["sports","race","fast","formula","f1"],"skins":[{"unified":"1f3ce-fe0f","native":"🏎️"}],"version":1},"racing_motorcycle":{"id":"racing_motorcycle","name":"Motorcycle","keywords":["racing","race","sports","fast"],"skins":[{"unified":"1f3cd-fe0f","native":"🏍️"}],"version":1},"motor_scooter":{"id":"motor_scooter","name":"Motor Scooter","keywords":["vehicle","vespa","sasha"],"skins":[{"unified":"1f6f5","native":"🛵"}],"version":3},"manual_wheelchair":{"id":"manual_wheelchair","name":"Manual Wheelchair","keywords":["accessibility"],"skins":[{"unified":"1f9bd","native":"🦽"}],"version":12},"motorized_wheelchair":{"id":"motorized_wheelchair","name":"Motorized Wheelchair","keywords":["accessibility"],"skins":[{"unified":"1f9bc","native":"🦼"}],"version":12},"auto_rickshaw":{"id":"auto_rickshaw","name":"Auto Rickshaw","keywords":["move","transportation"],"skins":[{"unified":"1f6fa","native":"🛺"}],"version":12},"bike":{"id":"bike","name":"Bicycle","keywords":["bike","sports","exercise","hipster"],"skins":[{"unified":"1f6b2","native":"🚲"}],"version":1},"scooter":{"id":"scooter","name":"Scooter","keywords":["kick","vehicle","razor"],"skins":[{"unified":"1f6f4","native":"🛴"}],"version":3},"skateboard":{"id":"skateboard","name":"Skateboard","keywords":["board"],"skins":[{"unified":"1f6f9","native":"🛹"}],"version":11},"roller_skate":{"id":"roller_skate","name":"Roller Skate","keywords":["footwear","sports"],"skins":[{"unified":"1f6fc","native":"🛼"}],"version":13},"busstop":{"id":"busstop","name":"Bus Stop","keywords":["busstop","transportation","wait"],"skins":[{"unified":"1f68f","native":"🚏"}],"version":1},"motorway":{"id":"motorway","name":"Motorway","keywords":["road","cupertino","interstate","highway"],"skins":[{"unified":"1f6e3-fe0f","native":"🛣️"}],"version":1},"railway_track":{"id":"railway_track","name":"Railway Track","keywords":["train","transportation"],"skins":[{"unified":"1f6e4-fe0f","native":"🛤️"}],"version":1},"oil_drum":{"id":"oil_drum","name":"Oil Drum","keywords":["barrell"],"skins":[{"unified":"1f6e2-fe0f","native":"🛢️"}],"version":1},"fuelpump":{"id":"fuelpump","name":"Fuel Pump","keywords":["fuelpump","gas","station","petroleum"],"skins":[{"unified":"26fd","native":"⛽"}],"version":1},"wheel":{"id":"wheel","name":"Wheel","keywords":["car","transport"],"skins":[{"unified":"1f6de","native":"🛞"}],"version":14},"rotating_light":{"id":"rotating_light","name":"Police Car Light","keywords":["rotating","ambulance","911","emergency","alert","error","pinged","law","legal"],"skins":[{"unified":"1f6a8","native":"🚨"}],"version":1},"traffic_light":{"id":"traffic_light","name":"Horizontal Traffic Light","keywords":["transportation","signal"],"skins":[{"unified":"1f6a5","native":"🚥"}],"version":1},"vertical_traffic_light":{"id":"vertical_traffic_light","name":"Vertical Traffic Light","keywords":["transportation","driving"],"skins":[{"unified":"1f6a6","native":"🚦"}],"version":1},"octagonal_sign":{"id":"octagonal_sign","name":"Stop Sign","keywords":["octagonal"],"skins":[{"unified":"1f6d1","native":"🛑"}],"version":3},"construction":{"id":"construction","name":"Construction","keywords":["wip","progress","caution","warning"],"skins":[{"unified":"1f6a7","native":"🚧"}],"version":1},"anchor":{"id":"anchor","name":"Anchor","keywords":["ship","ferry","sea","boat"],"skins":[{"unified":"2693","native":"⚓"}],"version":1},"ring_buoy":{"id":"ring_buoy","name":"Ring Buoy","keywords":["life","saver","preserver"],"skins":[{"unified":"1f6df","native":"🛟"}],"version":14},"boat":{"id":"boat","name":"Sailboat","keywords":["boat","ship","summer","transportation","water","sailing"],"skins":[{"unified":"26f5","native":"⛵"}],"version":1},"canoe":{"id":"canoe","name":"Canoe","keywords":["boat","paddle","water","ship"],"skins":[{"unified":"1f6f6","native":"🛶"}],"version":3},"speedboat":{"id":"speedboat","name":"Speedboat","keywords":["ship","transportation","vehicle","summer"],"skins":[{"unified":"1f6a4","native":"🚤"}],"version":1},"passenger_ship":{"id":"passenger_ship","name":"Passenger Ship","keywords":["yacht","cruise","ferry"],"skins":[{"unified":"1f6f3-fe0f","native":"🛳️"}],"version":1},"ferry":{"id":"ferry","name":"Ferry","keywords":["boat","ship","yacht"],"skins":[{"unified":"26f4-fe0f","native":"⛴️"}],"version":1},"motor_boat":{"id":"motor_boat","name":"Motor Boat","keywords":["ship"],"skins":[{"unified":"1f6e5-fe0f","native":"🛥️"}],"version":1},"ship":{"id":"ship","name":"Ship","keywords":["transportation","titanic","deploy"],"skins":[{"unified":"1f6a2","native":"🚢"}],"version":1},"airplane":{"id":"airplane","name":"Airplane","keywords":["vehicle","transportation","flight","fly"],"skins":[{"unified":"2708-fe0f","native":"✈️"}],"version":1},"small_airplane":{"id":"small_airplane","name":"Small Airplane","keywords":["flight","transportation","fly","vehicle"],"skins":[{"unified":"1f6e9-fe0f","native":"🛩️"}],"version":1},"airplane_departure":{"id":"airplane_departure","name":"Airplane Departure","keywords":["airport","flight","landing"],"skins":[{"unified":"1f6eb","native":"🛫"}],"version":1},"airplane_arriving":{"id":"airplane_arriving","name":"Airplane Arrival","keywords":["arriving","airport","flight","boarding"],"skins":[{"unified":"1f6ec","native":"🛬"}],"version":1},"parachute":{"id":"parachute","name":"Parachute","keywords":["fly","glide"],"skins":[{"unified":"1fa82","native":"🪂"}],"version":12},"seat":{"id":"seat","name":"Seat","keywords":["sit","airplane","transport","bus","flight","fly"],"skins":[{"unified":"1f4ba","native":"💺"}],"version":1},"helicopter":{"id":"helicopter","name":"Helicopter","keywords":["transportation","vehicle","fly"],"skins":[{"unified":"1f681","native":"🚁"}],"version":1},"suspension_railway":{"id":"suspension_railway","name":"Suspension Railway","keywords":["vehicle","transportation"],"skins":[{"unified":"1f69f","native":"🚟"}],"version":1},"mountain_cableway":{"id":"mountain_cableway","name":"Mountain Cableway","keywords":["transportation","vehicle","ski"],"skins":[{"unified":"1f6a0","native":"🚠"}],"version":1},"aerial_tramway":{"id":"aerial_tramway","name":"Aerial Tramway","keywords":["transportation","vehicle","ski"],"skins":[{"unified":"1f6a1","native":"🚡"}],"version":1},"satellite":{"id":"satellite","name":"Satellite","keywords":["communication","gps","orbit","spaceflight","NASA","ISS"],"skins":[{"unified":"1f6f0-fe0f","native":"🛰️"}],"version":1},"rocket":{"id":"rocket","name":"Rocket","keywords":["launch","ship","staffmode","NASA","outer","space","fly"],"skins":[{"unified":"1f680","native":"🚀"}],"version":1},"flying_saucer":{"id":"flying_saucer","name":"Flying Saucer","keywords":["transportation","vehicle","ufo"],"skins":[{"unified":"1f6f8","native":"🛸"}],"version":5},"bellhop_bell":{"id":"bellhop_bell","name":"Bellhop Bell","keywords":["service"],"skins":[{"unified":"1f6ce-fe0f","native":"🛎️"}],"version":1},"luggage":{"id":"luggage","name":"Luggage","keywords":["packing","travel"],"skins":[{"unified":"1f9f3","native":"🧳"}],"version":11},"hourglass":{"id":"hourglass","name":"Hourglass","keywords":["done","time","clock","oldschool","limit","exam","quiz","test"],"skins":[{"unified":"231b","native":"⌛"}],"version":1},"hourglass_flowing_sand":{"id":"hourglass_flowing_sand","name":"Hourglass Not Done","keywords":["flowing","sand","oldschool","time","countdown"],"skins":[{"unified":"23f3","native":"⏳"}],"version":1},"watch":{"id":"watch","name":"Watch","keywords":["time","accessories"],"skins":[{"unified":"231a","native":"⌚"}],"version":1},"alarm_clock":{"id":"alarm_clock","name":"Alarm Clock","keywords":["time","wake"],"skins":[{"unified":"23f0","native":"⏰"}],"version":1},"stopwatch":{"id":"stopwatch","name":"Stopwatch","keywords":["time","deadline"],"skins":[{"unified":"23f1-fe0f","native":"⏱️"}],"version":1},"timer_clock":{"id":"timer_clock","name":"Timer Clock","keywords":["alarm"],"skins":[{"unified":"23f2-fe0f","native":"⏲️"}],"version":1},"mantelpiece_clock":{"id":"mantelpiece_clock","name":"Mantelpiece Clock","keywords":["time"],"skins":[{"unified":"1f570-fe0f","native":"🕰️"}],"version":1},"clock12":{"id":"clock12","name":"Twelve O’clock","keywords":["clock12","o","clock","12","00:00","0000","12:00","1200","time","noon","midnight","midday","late","early","schedule"],"skins":[{"unified":"1f55b","native":"🕛"}],"version":1},"clock1230":{"id":"clock1230","name":"Twelve-Thirty","keywords":["clock1230","twelve","thirty","00:30","0030","12:30","1230","time","late","early","schedule"],"skins":[{"unified":"1f567","native":"🕧"}],"version":1},"clock1":{"id":"clock1","name":"One O’clock","keywords":["clock1","o","clock","1","1:00","100","13:00","1300","time","late","early","schedule"],"skins":[{"unified":"1f550","native":"🕐"}],"version":1},"clock130":{"id":"clock130","name":"One-Thirty","keywords":["clock130","one","thirty","1:30","130","13:30","1330","time","late","early","schedule"],"skins":[{"unified":"1f55c","native":"🕜"}],"version":1},"clock2":{"id":"clock2","name":"Two O’clock","keywords":["clock2","o","clock","2","2:00","200","14:00","1400","time","late","early","schedule"],"skins":[{"unified":"1f551","native":"🕑"}],"version":1},"clock230":{"id":"clock230","name":"Two-Thirty","keywords":["clock230","two","thirty","2:30","230","14:30","1430","time","late","early","schedule"],"skins":[{"unified":"1f55d","native":"🕝"}],"version":1},"clock3":{"id":"clock3","name":"Three O’clock","keywords":["clock3","o","clock","3","3:00","300","15:00","1500","time","late","early","schedule"],"skins":[{"unified":"1f552","native":"🕒"}],"version":1},"clock330":{"id":"clock330","name":"Three-Thirty","keywords":["clock330","three","thirty","3:30","330","15:30","1530","time","late","early","schedule"],"skins":[{"unified":"1f55e","native":"🕞"}],"version":1},"clock4":{"id":"clock4","name":"Four O’clock","keywords":["clock4","o","clock","4","4:00","400","16:00","1600","time","late","early","schedule"],"skins":[{"unified":"1f553","native":"🕓"}],"version":1},"clock430":{"id":"clock430","name":"Four-Thirty","keywords":["clock430","four","thirty","4:30","430","16:30","1630","time","late","early","schedule"],"skins":[{"unified":"1f55f","native":"🕟"}],"version":1},"clock5":{"id":"clock5","name":"Five O’clock","keywords":["clock5","o","clock","5","5:00","500","17:00","1700","time","late","early","schedule"],"skins":[{"unified":"1f554","native":"🕔"}],"version":1},"clock530":{"id":"clock530","name":"Five-Thirty","keywords":["clock530","five","thirty","5:30","530","17:30","1730","time","late","early","schedule"],"skins":[{"unified":"1f560","native":"🕠"}],"version":1},"clock6":{"id":"clock6","name":"Six O’clock","keywords":["clock6","o","clock","6","6:00","600","18:00","1800","time","late","early","schedule","dawn","dusk"],"skins":[{"unified":"1f555","native":"🕕"}],"version":1},"clock630":{"id":"clock630","name":"Six-Thirty","keywords":["clock630","six","thirty","6:30","630","18:30","1830","time","late","early","schedule"],"skins":[{"unified":"1f561","native":"🕡"}],"version":1},"clock7":{"id":"clock7","name":"Seven O’clock","keywords":["clock7","o","clock","7","7:00","700","19:00","1900","time","late","early","schedule"],"skins":[{"unified":"1f556","native":"🕖"}],"version":1},"clock730":{"id":"clock730","name":"Seven-Thirty","keywords":["clock730","seven","thirty","7:30","730","19:30","1930","time","late","early","schedule"],"skins":[{"unified":"1f562","native":"🕢"}],"version":1},"clock8":{"id":"clock8","name":"Eight O’clock","keywords":["clock8","o","clock","8","8:00","800","20:00","2000","time","late","early","schedule"],"skins":[{"unified":"1f557","native":"🕗"}],"version":1},"clock830":{"id":"clock830","name":"Eight-Thirty","keywords":["clock830","eight","thirty","8:30","830","20:30","2030","time","late","early","schedule"],"skins":[{"unified":"1f563","native":"🕣"}],"version":1},"clock9":{"id":"clock9","name":"Nine O’clock","keywords":["clock9","o","clock","9","9:00","900","21:00","2100","time","late","early","schedule"],"skins":[{"unified":"1f558","native":"🕘"}],"version":1},"clock930":{"id":"clock930","name":"Nine-Thirty","keywords":["clock930","nine","thirty","9:30","930","21:30","2130","time","late","early","schedule"],"skins":[{"unified":"1f564","native":"🕤"}],"version":1},"clock10":{"id":"clock10","name":"Ten O’clock","keywords":["clock10","o","clock","10","10:00","1000","22:00","2200","time","late","early","schedule"],"skins":[{"unified":"1f559","native":"🕙"}],"version":1},"clock1030":{"id":"clock1030","name":"Ten-Thirty","keywords":["clock1030","ten","thirty","10:30","1030","22:30","2230","time","late","early","schedule"],"skins":[{"unified":"1f565","native":"🕥"}],"version":1},"clock11":{"id":"clock11","name":"Eleven O’clock","keywords":["clock11","o","clock","11","11:00","1100","23:00","2300","time","late","early","schedule"],"skins":[{"unified":"1f55a","native":"🕚"}],"version":1},"clock1130":{"id":"clock1130","name":"Eleven-Thirty","keywords":["clock1130","eleven","thirty","11:30","1130","23:30","2330","time","late","early","schedule"],"skins":[{"unified":"1f566","native":"🕦"}],"version":1},"new_moon":{"id":"new_moon","name":"New Moon","keywords":["nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f311","native":"🌑"}],"version":1},"waxing_crescent_moon":{"id":"waxing_crescent_moon","name":"Waxing Crescent Moon","keywords":["nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f312","native":"🌒"}],"version":1},"first_quarter_moon":{"id":"first_quarter_moon","name":"First Quarter Moon","keywords":["nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f313","native":"🌓"}],"version":1},"moon":{"id":"moon","name":"Waxing Gibbous Moon","keywords":["nature","night","sky","gray","twilight","planet","space","evening","sleep"],"skins":[{"unified":"1f314","native":"🌔"}],"version":1},"full_moon":{"id":"full_moon","name":"Full Moon","keywords":["nature","yellow","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f315","native":"🌕"}],"version":1},"waning_gibbous_moon":{"id":"waning_gibbous_moon","name":"Waning Gibbous Moon","keywords":["nature","twilight","planet","space","night","evening","sleep","waxing"],"skins":[{"unified":"1f316","native":"🌖"}],"version":1},"last_quarter_moon":{"id":"last_quarter_moon","name":"Last Quarter Moon","keywords":["nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f317","native":"🌗"}],"version":1},"waning_crescent_moon":{"id":"waning_crescent_moon","name":"Waning Crescent Moon","keywords":["nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f318","native":"🌘"}],"version":1},"crescent_moon":{"id":"crescent_moon","name":"Crescent Moon","keywords":["night","sleep","sky","evening","magic"],"skins":[{"unified":"1f319","native":"🌙"}],"version":1},"new_moon_with_face":{"id":"new_moon_with_face","name":"New Moon Face","keywords":["with","nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f31a","native":"🌚"}],"version":1},"first_quarter_moon_with_face":{"id":"first_quarter_moon_with_face","name":"First Quarter Moon Face","keywords":["with","nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f31b","native":"🌛"}],"version":1},"last_quarter_moon_with_face":{"id":"last_quarter_moon_with_face","name":"Last Quarter Moon Face","keywords":["with","nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f31c","native":"🌜"}],"version":1},"thermometer":{"id":"thermometer","name":"Thermometer","keywords":["weather","temperature","hot","cold"],"skins":[{"unified":"1f321-fe0f","native":"🌡️"}],"version":1},"sunny":{"id":"sunny","name":"Sun","keywords":["sunny","weather","nature","brightness","summer","beach","spring"],"skins":[{"unified":"2600-fe0f","native":"☀️"}],"version":1},"full_moon_with_face":{"id":"full_moon_with_face","name":"Full Moon Face","keywords":["with","nature","twilight","planet","space","night","evening","sleep"],"skins":[{"unified":"1f31d","native":"🌝"}],"version":1},"sun_with_face":{"id":"sun_with_face","name":"Sun with Face","keywords":["nature","morning","sky"],"skins":[{"unified":"1f31e","native":"🌞"}],"version":1},"ringed_planet":{"id":"ringed_planet","name":"Ringed Planet","keywords":["outerspace"],"skins":[{"unified":"1fa90","native":"🪐"}],"version":12},"star":{"id":"star","name":"Star","keywords":["night","yellow"],"skins":[{"unified":"2b50","native":"⭐"}],"version":1},"star2":{"id":"star2","name":"Glowing Star","keywords":["star2","night","sparkle","awesome","good","magic"],"skins":[{"unified":"1f31f","native":"🌟"}],"version":1},"stars":{"id":"stars","name":"Shooting Star","keywords":["stars","night","photo"],"skins":[{"unified":"1f320","native":"🌠"}],"version":1},"milky_way":{"id":"milky_way","name":"Milky Way","keywords":["photo","space","stars"],"skins":[{"unified":"1f30c","native":"🌌"}],"version":1},"cloud":{"id":"cloud","name":"Cloud","keywords":["weather","sky"],"skins":[{"unified":"2601-fe0f","native":"☁️"}],"version":1},"partly_sunny":{"id":"partly_sunny","name":"Sun Behind Cloud","keywords":["partly","sunny","weather","nature","cloudy","morning","fall","spring"],"skins":[{"unified":"26c5","native":"⛅"}],"version":1},"thunder_cloud_and_rain":{"id":"thunder_cloud_and_rain","name":"Cloud with Lightning and Rain","keywords":["thunder","weather"],"skins":[{"unified":"26c8-fe0f","native":"⛈️"}],"version":1},"mostly_sunny":{"id":"mostly_sunny","name":"Sun Behind Small Cloud","keywords":["mostly","sunny","weather"],"skins":[{"unified":"1f324-fe0f","native":"🌤️"}],"version":1},"barely_sunny":{"id":"barely_sunny","name":"Sun Behind Large Cloud","keywords":["barely","sunny","weather"],"skins":[{"unified":"1f325-fe0f","native":"🌥️"}],"version":1},"partly_sunny_rain":{"id":"partly_sunny_rain","name":"Sun Behind Rain Cloud","keywords":["partly","sunny","weather"],"skins":[{"unified":"1f326-fe0f","native":"🌦️"}],"version":1},"rain_cloud":{"id":"rain_cloud","name":"Cloud with Rain","keywords":["weather"],"skins":[{"unified":"1f327-fe0f","native":"🌧️"}],"version":1},"snow_cloud":{"id":"snow_cloud","name":"Cloud with Snow","keywords":["weather"],"skins":[{"unified":"1f328-fe0f","native":"🌨️"}],"version":1},"lightning":{"id":"lightning","name":"Cloud with Lightning","keywords":["weather","thunder"],"skins":[{"unified":"1f329-fe0f","native":"🌩️"}],"version":1},"tornado":{"id":"tornado","name":"Tornado","keywords":["cloud","weather","cyclone","twister"],"skins":[{"unified":"1f32a-fe0f","native":"🌪️"}],"version":1},"fog":{"id":"fog","name":"Fog","keywords":["weather"],"skins":[{"unified":"1f32b-fe0f","native":"🌫️"}],"version":1},"wind_blowing_face":{"id":"wind_blowing_face","name":"Wind Face","keywords":["blowing","gust","air"],"skins":[{"unified":"1f32c-fe0f","native":"🌬️"}],"version":1},"cyclone":{"id":"cyclone","name":"Cyclone","keywords":["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],"skins":[{"unified":"1f300","native":"🌀"}],"version":1},"rainbow":{"id":"rainbow","name":"Rainbow","keywords":["nature","happy","unicorn","face","photo","sky","spring"],"skins":[{"unified":"1f308","native":"🌈"}],"version":1},"closed_umbrella":{"id":"closed_umbrella","name":"Closed Umbrella","keywords":["weather","rain","drizzle"],"skins":[{"unified":"1f302","native":"🌂"}],"version":1},"umbrella":{"id":"umbrella","name":"Umbrella","keywords":["weather","spring"],"skins":[{"unified":"2602-fe0f","native":"☂️"}],"version":1},"umbrella_with_rain_drops":{"id":"umbrella_with_rain_drops","name":"Umbrella with Rain Drops","keywords":["rainy","weather","spring"],"skins":[{"unified":"2614","native":"☔"}],"version":1},"umbrella_on_ground":{"id":"umbrella_on_ground","name":"Umbrella on Ground","keywords":["weather","summer"],"skins":[{"unified":"26f1-fe0f","native":"⛱️"}],"version":1},"zap":{"id":"zap","name":"High Voltage","keywords":["zap","thunder","weather","lightning","bolt","fast"],"skins":[{"unified":"26a1","native":"⚡"}],"version":1},"snowflake":{"id":"snowflake","name":"Snowflake","keywords":["winter","season","cold","weather","christmas","xmas"],"skins":[{"unified":"2744-fe0f","native":"❄️"}],"version":1},"snowman":{"id":"snowman","name":"Snowman","keywords":["winter","season","cold","weather","christmas","xmas","frozen"],"skins":[{"unified":"2603-fe0f","native":"☃️"}],"version":1},"snowman_without_snow":{"id":"snowman_without_snow","name":"Snowman Without Snow","keywords":["winter","season","cold","weather","christmas","xmas","frozen"],"skins":[{"unified":"26c4","native":"⛄"}],"version":1},"comet":{"id":"comet","name":"Comet","keywords":["space"],"skins":[{"unified":"2604-fe0f","native":"☄️"}],"version":1},"fire":{"id":"fire","name":"Fire","keywords":["hot","cook","flame"],"skins":[{"unified":"1f525","native":"🔥"}],"version":1},"droplet":{"id":"droplet","name":"Droplet","keywords":["water","drip","faucet","spring"],"skins":[{"unified":"1f4a7","native":"💧"}],"version":1},"ocean":{"id":"ocean","name":"Water Wave","keywords":["ocean","sea","nature","tsunami","disaster"],"skins":[{"unified":"1f30a","native":"🌊"}],"version":1},"jack_o_lantern":{"id":"jack_o_lantern","name":"Jack-O-Lantern","keywords":["jack","o","lantern","halloween","light","pumpkin","creepy","fall"],"skins":[{"unified":"1f383","native":"🎃"}],"version":1},"christmas_tree":{"id":"christmas_tree","name":"Christmas Tree","keywords":["festival","vacation","december","xmas","celebration"],"skins":[{"unified":"1f384","native":"🎄"}],"version":1},"fireworks":{"id":"fireworks","name":"Fireworks","keywords":["photo","festival","carnival","congratulations"],"skins":[{"unified":"1f386","native":"🎆"}],"version":1},"sparkler":{"id":"sparkler","name":"Sparkler","keywords":["stars","night","shine"],"skins":[{"unified":"1f387","native":"🎇"}],"version":1},"firecracker":{"id":"firecracker","name":"Firecracker","keywords":["dynamite","boom","explode","explosion","explosive"],"skins":[{"unified":"1f9e8","native":"🧨"}],"version":11},"sparkles":{"id":"sparkles","name":"Sparkles","keywords":["stars","shine","shiny","cool","awesome","good","magic"],"skins":[{"unified":"2728","native":"✨"}],"version":1},"balloon":{"id":"balloon","name":"Balloon","keywords":["party","celebration","birthday","circus"],"skins":[{"unified":"1f388","native":"🎈"}],"version":1},"tada":{"id":"tada","name":"Party Popper","keywords":["tada","congratulations","birthday","magic","circus","celebration"],"skins":[{"unified":"1f389","native":"🎉"}],"version":1},"confetti_ball":{"id":"confetti_ball","name":"Confetti Ball","keywords":["festival","party","birthday","circus"],"skins":[{"unified":"1f38a","native":"🎊"}],"version":1},"tanabata_tree":{"id":"tanabata_tree","name":"Tanabata Tree","keywords":["plant","nature","branch","summer","bamboo","wish","star","festival","tanzaku"],"skins":[{"unified":"1f38b","native":"🎋"}],"version":1},"bamboo":{"id":"bamboo","name":"Pine Decoration","keywords":["bamboo","japanese","plant","nature","vegetable","panda","new","years"],"skins":[{"unified":"1f38d","native":"🎍"}],"version":1},"dolls":{"id":"dolls","name":"Japanese Dolls","keywords":["toy","kimono"],"skins":[{"unified":"1f38e","native":"🎎"}],"version":1},"flags":{"id":"flags","name":"Carp Streamer","keywords":["flags","fish","japanese","koinobori","banner"],"skins":[{"unified":"1f38f","native":"🎏"}],"version":1},"wind_chime":{"id":"wind_chime","name":"Wind Chime","keywords":["nature","ding","spring","bell"],"skins":[{"unified":"1f390","native":"🎐"}],"version":1},"rice_scene":{"id":"rice_scene","name":"Moon Viewing Ceremony","keywords":["rice","scene","photo","japan","asia","tsukimi"],"skins":[{"unified":"1f391","native":"🎑"}],"version":1},"red_envelope":{"id":"red_envelope","name":"Red Envelope","keywords":["gift"],"skins":[{"unified":"1f9e7","native":"🧧"}],"version":11},"ribbon":{"id":"ribbon","name":"Ribbon","keywords":["decoration","pink","girl","bowtie"],"skins":[{"unified":"1f380","native":"🎀"}],"version":1},"gift":{"id":"gift","name":"Wrapped Gift","keywords":["present","birthday","christmas","xmas"],"skins":[{"unified":"1f381","native":"🎁"}],"version":1},"reminder_ribbon":{"id":"reminder_ribbon","name":"Reminder Ribbon","keywords":["sports","cause","support","awareness"],"skins":[{"unified":"1f397-fe0f","native":"🎗️"}],"version":1},"admission_tickets":{"id":"admission_tickets","name":"Admission Tickets","keywords":["sports","concert","entrance"],"skins":[{"unified":"1f39f-fe0f","native":"🎟️"}],"version":1},"ticket":{"id":"ticket","name":"Ticket","keywords":["event","concert","pass"],"skins":[{"unified":"1f3ab","native":"🎫"}],"version":1},"medal":{"id":"medal","name":"Military Medal","keywords":["award","winning","army"],"skins":[{"unified":"1f396-fe0f","native":"🎖️"}],"version":1},"trophy":{"id":"trophy","name":"Trophy","keywords":["win","award","contest","place","ftw","ceremony"],"skins":[{"unified":"1f3c6","native":"🏆"}],"version":1},"sports_medal":{"id":"sports_medal","name":"Sports Medal","keywords":["award","winning"],"skins":[{"unified":"1f3c5","native":"🏅"}],"version":1},"first_place_medal":{"id":"first_place_medal","name":"1st Place Medal","keywords":["first","award","winning"],"skins":[{"unified":"1f947","native":"🥇"}],"version":3},"second_place_medal":{"id":"second_place_medal","name":"2nd Place Medal","keywords":["second","award"],"skins":[{"unified":"1f948","native":"🥈"}],"version":3},"third_place_medal":{"id":"third_place_medal","name":"3rd Place Medal","keywords":["third","award"],"skins":[{"unified":"1f949","native":"🥉"}],"version":3},"soccer":{"id":"soccer","name":"Soccer Ball","keywords":["sports","football"],"skins":[{"unified":"26bd","native":"⚽"}],"version":1},"baseball":{"id":"baseball","name":"Baseball","keywords":["sports","balls"],"skins":[{"unified":"26be","native":"⚾"}],"version":1},"softball":{"id":"softball","name":"Softball","keywords":["sports","balls"],"skins":[{"unified":"1f94e","native":"🥎"}],"version":11},"basketball":{"id":"basketball","name":"Basketball","keywords":["sports","balls","NBA"],"skins":[{"unified":"1f3c0","native":"🏀"}],"version":1},"volleyball":{"id":"volleyball","name":"Volleyball","keywords":["sports","balls"],"skins":[{"unified":"1f3d0","native":"🏐"}],"version":1},"football":{"id":"football","name":"American Football","keywords":["sports","balls","NFL"],"skins":[{"unified":"1f3c8","native":"🏈"}],"version":1},"rugby_football":{"id":"rugby_football","name":"Rugby Football","keywords":["sports","team"],"skins":[{"unified":"1f3c9","native":"🏉"}],"version":1},"tennis":{"id":"tennis","name":"Tennis","keywords":["sports","balls","green"],"skins":[{"unified":"1f3be","native":"🎾"}],"version":1},"flying_disc":{"id":"flying_disc","name":"Flying Disc","keywords":["sports","frisbee","ultimate"],"skins":[{"unified":"1f94f","native":"🥏"}],"version":11},"bowling":{"id":"bowling","name":"Bowling","keywords":["sports","fun","play"],"skins":[{"unified":"1f3b3","native":"🎳"}],"version":1},"cricket_bat_and_ball":{"id":"cricket_bat_and_ball","name":"Cricket Game","keywords":["bat","and","ball","sports"],"skins":[{"unified":"1f3cf","native":"🏏"}],"version":1},"field_hockey_stick_and_ball":{"id":"field_hockey_stick_and_ball","name":"Field Hockey","keywords":["stick","and","ball","sports"],"skins":[{"unified":"1f3d1","native":"🏑"}],"version":1},"ice_hockey_stick_and_puck":{"id":"ice_hockey_stick_and_puck","name":"Ice Hockey","keywords":["stick","and","puck","sports"],"skins":[{"unified":"1f3d2","native":"🏒"}],"version":1},"lacrosse":{"id":"lacrosse","name":"Lacrosse","keywords":["sports","ball","stick"],"skins":[{"unified":"1f94d","native":"🥍"}],"version":11},"table_tennis_paddle_and_ball":{"id":"table_tennis_paddle_and_ball","name":"Ping Pong","keywords":["table","tennis","paddle","and","ball","sports","pingpong"],"skins":[{"unified":"1f3d3","native":"🏓"}],"version":1},"badminton_racquet_and_shuttlecock":{"id":"badminton_racquet_and_shuttlecock","name":"Badminton","keywords":["racquet","and","shuttlecock","sports"],"skins":[{"unified":"1f3f8","native":"🏸"}],"version":1},"boxing_glove":{"id":"boxing_glove","name":"Boxing Glove","keywords":["sports","fighting"],"skins":[{"unified":"1f94a","native":"🥊"}],"version":3},"martial_arts_uniform":{"id":"martial_arts_uniform","name":"Martial Arts Uniform","keywords":["judo","karate","taekwondo"],"skins":[{"unified":"1f94b","native":"🥋"}],"version":3},"goal_net":{"id":"goal_net","name":"Goal Net","keywords":["sports"],"skins":[{"unified":"1f945","native":"🥅"}],"version":3},"golf":{"id":"golf","name":"Flag in Hole","keywords":["golf","sports","business","summer"],"skins":[{"unified":"26f3","native":"⛳"}],"version":1},"ice_skate":{"id":"ice_skate","name":"Ice Skate","keywords":["sports"],"skins":[{"unified":"26f8-fe0f","native":"⛸️"}],"version":1},"fishing_pole_and_fish":{"id":"fishing_pole_and_fish","name":"Fishing Pole","keywords":["and","fish","food","hobby","summer"],"skins":[{"unified":"1f3a3","native":"🎣"}],"version":1},"diving_mask":{"id":"diving_mask","name":"Diving Mask","keywords":["sport","ocean"],"skins":[{"unified":"1f93f","native":"🤿"}],"version":12},"running_shirt_with_sash":{"id":"running_shirt_with_sash","name":"Running Shirt","keywords":["with","sash","play","pageant"],"skins":[{"unified":"1f3bd","native":"🎽"}],"version":1},"ski":{"id":"ski","name":"Skis","keywords":["ski","sports","winter","cold","snow"],"skins":[{"unified":"1f3bf","native":"🎿"}],"version":1},"sled":{"id":"sled","name":"Sled","keywords":["sleigh","luge","toboggan"],"skins":[{"unified":"1f6f7","native":"🛷"}],"version":5},"curling_stone":{"id":"curling_stone","name":"Curling Stone","keywords":["sports"],"skins":[{"unified":"1f94c","native":"🥌"}],"version":5},"dart":{"id":"dart","name":"Bullseye","keywords":["dart","direct","hit","game","play","bar","target"],"skins":[{"unified":"1f3af","native":"🎯"}],"version":1},"yo-yo":{"id":"yo-yo","name":"Yo-Yo","keywords":["yo","toy"],"skins":[{"unified":"1fa80","native":"🪀"}],"version":12},"kite":{"id":"kite","name":"Kite","keywords":["wind","fly"],"skins":[{"unified":"1fa81","native":"🪁"}],"version":12},"gun":{"id":"gun","name":"Pistol","keywords":["gun","violence","weapon","revolver"],"skins":[{"unified":"1f52b","native":"🔫"}],"version":1},"8ball":{"id":"8ball","name":"Billiards","keywords":["8ball","pool","8","ball","hobby","game","luck","magic"],"skins":[{"unified":"1f3b1","native":"🎱"}],"version":1},"crystal_ball":{"id":"crystal_ball","name":"Crystal Ball","keywords":["disco","party","magic","circus","fortune","teller"],"skins":[{"unified":"1f52e","native":"🔮"}],"version":1},"magic_wand":{"id":"magic_wand","name":"Magic Wand","keywords":["supernature","power"],"skins":[{"unified":"1fa84","native":"🪄"}],"version":13},"video_game":{"id":"video_game","name":"Video Game","keywords":["play","console","PS4","controller"],"skins":[{"unified":"1f3ae","native":"🎮"}],"version":1},"joystick":{"id":"joystick","name":"Joystick","keywords":["game","play"],"skins":[{"unified":"1f579-fe0f","native":"🕹️"}],"version":1},"slot_machine":{"id":"slot_machine","name":"Slot Machine","keywords":["bet","gamble","vegas","fruit","luck","casino"],"skins":[{"unified":"1f3b0","native":"🎰"}],"version":1},"game_die":{"id":"game_die","name":"Game Die","keywords":["dice","random","tabletop","play","luck"],"skins":[{"unified":"1f3b2","native":"🎲"}],"version":1},"jigsaw":{"id":"jigsaw","name":"Puzzle Piece","keywords":["jigsaw","interlocking"],"skins":[{"unified":"1f9e9","native":"🧩"}],"version":11},"teddy_bear":{"id":"teddy_bear","name":"Teddy Bear","keywords":["plush","stuffed"],"skins":[{"unified":"1f9f8","native":"🧸"}],"version":11},"pinata":{"id":"pinata","name":"Pinata","keywords":["mexico","candy","celebration"],"skins":[{"unified":"1fa85","native":"🪅"}],"version":13},"mirror_ball":{"id":"mirror_ball","name":"Mirror Ball","keywords":["disco","dance","party"],"skins":[{"unified":"1faa9","native":"🪩"}],"version":14},"nesting_dolls":{"id":"nesting_dolls","name":"Nesting Dolls","keywords":["matryoshka","toy"],"skins":[{"unified":"1fa86","native":"🪆"}],"version":13},"spades":{"id":"spades","name":"Spade Suit","keywords":["spades","poker","cards","suits","magic"],"skins":[{"unified":"2660-fe0f","native":"♠️"}],"version":1},"hearts":{"id":"hearts","name":"Heart Suit","keywords":["hearts","poker","cards","magic","suits"],"skins":[{"unified":"2665-fe0f","native":"♥️"}],"version":1},"diamonds":{"id":"diamonds","name":"Diamond Suit","keywords":["diamonds","poker","cards","magic","suits"],"skins":[{"unified":"2666-fe0f","native":"♦️"}],"version":1},"clubs":{"id":"clubs","name":"Club Suit","keywords":["clubs","poker","cards","magic","suits"],"skins":[{"unified":"2663-fe0f","native":"♣️"}],"version":1},"chess_pawn":{"id":"chess_pawn","name":"Chess Pawn","keywords":["expendable"],"skins":[{"unified":"265f-fe0f","native":"♟️"}],"version":11},"black_joker":{"id":"black_joker","name":"Joker","keywords":["black","poker","cards","game","play","magic"],"skins":[{"unified":"1f0cf","native":"🃏"}],"version":1},"mahjong":{"id":"mahjong","name":"Mahjong Red Dragon","keywords":["game","play","chinese","kanji"],"skins":[{"unified":"1f004","native":"🀄"}],"version":1},"flower_playing_cards":{"id":"flower_playing_cards","name":"Flower Playing Cards","keywords":["game","sunset","red"],"skins":[{"unified":"1f3b4","native":"🎴"}],"version":1},"performing_arts":{"id":"performing_arts","name":"Performing Arts","keywords":["acting","theater","drama"],"skins":[{"unified":"1f3ad","native":"🎭"}],"version":1},"frame_with_picture":{"id":"frame_with_picture","name":"Framed Picture","keywords":["frame","with","photography"],"skins":[{"unified":"1f5bc-fe0f","native":"🖼️"}],"version":1},"art":{"id":"art","name":"Artist Palette","keywords":["art","design","paint","draw","colors"],"skins":[{"unified":"1f3a8","native":"🎨"}],"version":1},"thread":{"id":"thread","name":"Thread","keywords":["needle","sewing","spool","string"],"skins":[{"unified":"1f9f5","native":"🧵"}],"version":11},"sewing_needle":{"id":"sewing_needle","name":"Sewing Needle","keywords":["stitches"],"skins":[{"unified":"1faa1","native":"🪡"}],"version":13},"yarn":{"id":"yarn","name":"Yarn","keywords":["ball","crochet","knit"],"skins":[{"unified":"1f9f6","native":"🧶"}],"version":11},"knot":{"id":"knot","name":"Knot","keywords":["rope","scout"],"skins":[{"unified":"1faa2","native":"🪢"}],"version":13},"eyeglasses":{"id":"eyeglasses","name":"Glasses","keywords":["eyeglasses","fashion","accessories","eyesight","nerdy","dork","geek"],"skins":[{"unified":"1f453","native":"👓"}],"version":1},"dark_sunglasses":{"id":"dark_sunglasses","name":"Sunglasses","keywords":["dark","face","cool","accessories"],"skins":[{"unified":"1f576-fe0f","native":"🕶️"}],"version":1},"goggles":{"id":"goggles","name":"Goggles","keywords":["eyes","protection","safety"],"skins":[{"unified":"1f97d","native":"🥽"}],"version":11},"lab_coat":{"id":"lab_coat","name":"Lab Coat","keywords":["doctor","experiment","scientist","chemist"],"skins":[{"unified":"1f97c","native":"🥼"}],"version":11},"safety_vest":{"id":"safety_vest","name":"Safety Vest","keywords":["protection"],"skins":[{"unified":"1f9ba","native":"🦺"}],"version":12},"necktie":{"id":"necktie","name":"Necktie","keywords":["shirt","suitup","formal","fashion","cloth","business"],"skins":[{"unified":"1f454","native":"👔"}],"version":1},"shirt":{"id":"shirt","name":"T-Shirt","keywords":["shirt","tshirt","t","fashion","cloth","casual","tee"],"skins":[{"unified":"1f455","native":"👕"}],"version":1},"jeans":{"id":"jeans","name":"Jeans","keywords":["fashion","shopping"],"skins":[{"unified":"1f456","native":"👖"}],"version":1},"scarf":{"id":"scarf","name":"Scarf","keywords":["neck","winter","clothes"],"skins":[{"unified":"1f9e3","native":"🧣"}],"version":5},"gloves":{"id":"gloves","name":"Gloves","keywords":["hands","winter","clothes"],"skins":[{"unified":"1f9e4","native":"🧤"}],"version":5},"coat":{"id":"coat","name":"Coat","keywords":["jacket"],"skins":[{"unified":"1f9e5","native":"🧥"}],"version":5},"socks":{"id":"socks","name":"Socks","keywords":["stockings","clothes"],"skins":[{"unified":"1f9e6","native":"🧦"}],"version":5},"dress":{"id":"dress","name":"Dress","keywords":["clothes","fashion","shopping"],"skins":[{"unified":"1f457","native":"👗"}],"version":1},"kimono":{"id":"kimono","name":"Kimono","keywords":["dress","fashion","women","female","japanese"],"skins":[{"unified":"1f458","native":"👘"}],"version":1},"sari":{"id":"sari","name":"Sari","keywords":["dress"],"skins":[{"unified":"1f97b","native":"🥻"}],"version":12},"one-piece_swimsuit":{"id":"one-piece_swimsuit","name":"One-Piece Swimsuit","keywords":["one","piece","fashion"],"skins":[{"unified":"1fa71","native":"🩱"}],"version":12},"briefs":{"id":"briefs","name":"Briefs","keywords":["clothing"],"skins":[{"unified":"1fa72","native":"🩲"}],"version":12},"shorts":{"id":"shorts","name":"Shorts","keywords":["clothing"],"skins":[{"unified":"1fa73","native":"🩳"}],"version":12},"bikini":{"id":"bikini","name":"Bikini","keywords":["swimming","female","woman","girl","fashion","beach","summer"],"skins":[{"unified":"1f459","native":"👙"}],"version":1},"womans_clothes":{"id":"womans_clothes","name":"Womans Clothes","keywords":["woman","s","fashion","shopping","bags","female"],"skins":[{"unified":"1f45a","native":"👚"}],"version":1},"folding_hand_fan":{"id":"folding_hand_fan","name":"Folding Hand Fan","keywords":["flamenco","hot"],"skins":[{"unified":"1faad","native":"🪭"}],"version":15},"purse":{"id":"purse","name":"Purse","keywords":["fashion","accessories","money","sales","shopping"],"skins":[{"unified":"1f45b","native":"👛"}],"version":1},"handbag":{"id":"handbag","name":"Handbag","keywords":["fashion","accessory","accessories","shopping"],"skins":[{"unified":"1f45c","native":"👜"}],"version":1},"pouch":{"id":"pouch","name":"Pouch","keywords":["clutch","bag","accessories","shopping"],"skins":[{"unified":"1f45d","native":"👝"}],"version":1},"shopping_bags":{"id":"shopping_bags","name":"Shopping Bags","keywords":["mall","buy","purchase"],"skins":[{"unified":"1f6cd-fe0f","native":"🛍️"}],"version":1},"school_satchel":{"id":"school_satchel","name":"Backpack","keywords":["school","satchel","student","education","bag"],"skins":[{"unified":"1f392","native":"🎒"}],"version":1},"thong_sandal":{"id":"thong_sandal","name":"Thong Sandal","keywords":["footwear","summer"],"skins":[{"unified":"1fa74","native":"🩴"}],"version":13},"mans_shoe":{"id":"mans_shoe","name":"Mans Shoe","keywords":["man","s","fashion","male"],"skins":[{"unified":"1f45e","native":"👞"}],"version":1},"athletic_shoe":{"id":"athletic_shoe","name":"Running Shoe","keywords":["athletic","shoes","sports","sneakers"],"skins":[{"unified":"1f45f","native":"👟"}],"version":1},"hiking_boot":{"id":"hiking_boot","name":"Hiking Boot","keywords":["backpacking","camping"],"skins":[{"unified":"1f97e","native":"🥾"}],"version":11},"womans_flat_shoe":{"id":"womans_flat_shoe","name":"Flat Shoe","keywords":["womans","ballet","slip","on","slipper"],"skins":[{"unified":"1f97f","native":"🥿"}],"version":11},"high_heel":{"id":"high_heel","name":"High-Heeled Shoe","keywords":["high","heel","heeled","fashion","shoes","female","pumps","stiletto"],"skins":[{"unified":"1f460","native":"👠"}],"version":1},"sandal":{"id":"sandal","name":"Womans Sandal","keywords":["woman","s","shoes","fashion","flip","flops"],"skins":[{"unified":"1f461","native":"👡"}],"version":1},"ballet_shoes":{"id":"ballet_shoes","name":"Ballet Shoes","keywords":["dance"],"skins":[{"unified":"1fa70","native":"🩰"}],"version":12},"boot":{"id":"boot","name":"Womans Boots","keywords":["boot","woman","s","shoes","fashion"],"skins":[{"unified":"1f462","native":"👢"}],"version":1},"hair_pick":{"id":"hair_pick","name":"Hair Pick","keywords":["afro","comb"],"skins":[{"unified":"1faae","native":"🪮"}],"version":15},"crown":{"id":"crown","name":"Crown","keywords":["king","kod","leader","royalty","lord"],"skins":[{"unified":"1f451","native":"👑"}],"version":1},"womans_hat":{"id":"womans_hat","name":"Womans Hat","keywords":["woman","s","fashion","accessories","female","lady","spring"],"skins":[{"unified":"1f452","native":"👒"}],"version":1},"tophat":{"id":"tophat","name":"Top Hat","keywords":["tophat","magic","gentleman","classy","circus"],"skins":[{"unified":"1f3a9","native":"🎩"}],"version":1},"mortar_board":{"id":"mortar_board","name":"Graduation Cap","keywords":["mortar","board","school","college","degree","university","hat","legal","learn","education"],"skins":[{"unified":"1f393","native":"🎓"}],"version":1},"billed_cap":{"id":"billed_cap","name":"Billed Cap","keywords":["baseball"],"skins":[{"unified":"1f9e2","native":"🧢"}],"version":5},"military_helmet":{"id":"military_helmet","name":"Military Helmet","keywords":["army","protection"],"skins":[{"unified":"1fa96","native":"🪖"}],"version":13},"helmet_with_white_cross":{"id":"helmet_with_white_cross","name":"Rescue Worker’s Helmet","keywords":["with","white","cross","worker","s","construction","build"],"skins":[{"unified":"26d1-fe0f","native":"⛑️"}],"version":1},"prayer_beads":{"id":"prayer_beads","name":"Prayer Beads","keywords":["dhikr","religious"],"skins":[{"unified":"1f4ff","native":"📿"}],"version":1},"lipstick":{"id":"lipstick","name":"Lipstick","keywords":["female","girl","fashion","woman"],"skins":[{"unified":"1f484","native":"💄"}],"version":1},"ring":{"id":"ring","name":"Ring","keywords":["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],"skins":[{"unified":"1f48d","native":"💍"}],"version":1},"gem":{"id":"gem","name":"Gem Stone","keywords":["blue","ruby","diamond","jewelry"],"skins":[{"unified":"1f48e","native":"💎"}],"version":1},"mute":{"id":"mute","name":"Muted Speaker","keywords":["mute","sound","volume","silence","quiet"],"skins":[{"unified":"1f507","native":"🔇"}],"version":1},"speaker":{"id":"speaker","name":"Speaker","keywords":["low","volume","sound","silence","broadcast"],"skins":[{"unified":"1f508","native":"🔈"}],"version":1},"sound":{"id":"sound","name":"Speaker Medium Volume","keywords":["sound","broadcast"],"skins":[{"unified":"1f509","native":"🔉"}],"version":1},"loud_sound":{"id":"loud_sound","name":"Speaker High Volume","keywords":["loud","sound","noise","noisy","broadcast"],"skins":[{"unified":"1f50a","native":"🔊"}],"version":1},"loudspeaker":{"id":"loudspeaker","name":"Loudspeaker","keywords":["volume","sound"],"skins":[{"unified":"1f4e2","native":"📢"}],"version":1},"mega":{"id":"mega","name":"Megaphone","keywords":["mega","sound","speaker","volume"],"skins":[{"unified":"1f4e3","native":"📣"}],"version":1},"postal_horn":{"id":"postal_horn","name":"Postal Horn","keywords":["instrument","music"],"skins":[{"unified":"1f4ef","native":"📯"}],"version":1},"bell":{"id":"bell","name":"Bell","keywords":["sound","notification","christmas","xmas","chime"],"skins":[{"unified":"1f514","native":"🔔"}],"version":1},"no_bell":{"id":"no_bell","name":"Bell with Slash","keywords":["no","sound","volume","mute","quiet","silent"],"skins":[{"unified":"1f515","native":"🔕"}],"version":1},"musical_score":{"id":"musical_score","name":"Musical Score","keywords":["treble","clef","compose"],"skins":[{"unified":"1f3bc","native":"🎼"}],"version":1},"musical_note":{"id":"musical_note","name":"Musical Note","keywords":["score","tone","sound"],"skins":[{"unified":"1f3b5","native":"🎵"}],"version":1},"notes":{"id":"notes","name":"Musical Notes","keywords":["music","score"],"skins":[{"unified":"1f3b6","native":"🎶"}],"version":1},"studio_microphone":{"id":"studio_microphone","name":"Studio Microphone","keywords":["sing","recording","artist","talkshow"],"skins":[{"unified":"1f399-fe0f","native":"🎙️"}],"version":1},"level_slider":{"id":"level_slider","name":"Level Slider","keywords":["scale"],"skins":[{"unified":"1f39a-fe0f","native":"🎚️"}],"version":1},"control_knobs":{"id":"control_knobs","name":"Control Knobs","keywords":["dial"],"skins":[{"unified":"1f39b-fe0f","native":"🎛️"}],"version":1},"microphone":{"id":"microphone","name":"Microphone","keywords":["sound","music","PA","sing","talkshow"],"skins":[{"unified":"1f3a4","native":"🎤"}],"version":1},"headphones":{"id":"headphones","name":"Headphone","keywords":["headphones","music","score","gadgets"],"skins":[{"unified":"1f3a7","native":"🎧"}],"version":1},"radio":{"id":"radio","name":"Radio","keywords":["communication","music","podcast","program"],"skins":[{"unified":"1f4fb","native":"📻"}],"version":1},"saxophone":{"id":"saxophone","name":"Saxophone","keywords":["music","instrument","jazz","blues"],"skins":[{"unified":"1f3b7","native":"🎷"}],"version":1},"accordion":{"id":"accordion","name":"Accordion","keywords":["music"],"skins":[{"unified":"1fa97","native":"🪗"}],"version":13},"guitar":{"id":"guitar","name":"Guitar","keywords":["music","instrument"],"skins":[{"unified":"1f3b8","native":"🎸"}],"version":1},"musical_keyboard":{"id":"musical_keyboard","name":"Musical Keyboard","keywords":["piano","instrument","compose"],"skins":[{"unified":"1f3b9","native":"🎹"}],"version":1},"trumpet":{"id":"trumpet","name":"Trumpet","keywords":["music","brass"],"skins":[{"unified":"1f3ba","native":"🎺"}],"version":1},"violin":{"id":"violin","name":"Violin","keywords":["music","instrument","orchestra","symphony"],"skins":[{"unified":"1f3bb","native":"🎻"}],"version":1},"banjo":{"id":"banjo","name":"Banjo","keywords":["music","instructment"],"skins":[{"unified":"1fa95","native":"🪕"}],"version":12},"drum_with_drumsticks":{"id":"drum_with_drumsticks","name":"Drum","keywords":["with","drumsticks","music","instrument","snare"],"skins":[{"unified":"1f941","native":"🥁"}],"version":3},"long_drum":{"id":"long_drum","name":"Long Drum","keywords":["music"],"skins":[{"unified":"1fa98","native":"🪘"}],"version":13},"maracas":{"id":"maracas","name":"Maracas","keywords":["music","instrument","percussion"],"skins":[{"unified":"1fa87","native":"🪇"}],"version":15},"flute":{"id":"flute","name":"Flute","keywords":["bamboo","music","instrument","pied","piper"],"skins":[{"unified":"1fa88","native":"🪈"}],"version":15},"iphone":{"id":"iphone","name":"Mobile Phone","keywords":["iphone","technology","apple","gadgets","dial"],"skins":[{"unified":"1f4f1","native":"📱"}],"version":1},"calling":{"id":"calling","name":"Mobile Phone with Arrow","keywords":["calling","iphone","incoming"],"skins":[{"unified":"1f4f2","native":"📲"}],"version":1},"phone":{"id":"phone","name":"Telephone","keywords":["phone","technology","communication","dial"],"skins":[{"unified":"260e-fe0f","native":"☎️"}],"version":1},"telephone_receiver":{"id":"telephone_receiver","name":"Telephone Receiver","keywords":["technology","communication","dial"],"skins":[{"unified":"1f4de","native":"📞"}],"version":1},"pager":{"id":"pager","name":"Pager","keywords":["bbcall","oldschool","90s"],"skins":[{"unified":"1f4df","native":"📟"}],"version":1},"fax":{"id":"fax","name":"Fax Machine","keywords":["communication","technology"],"skins":[{"unified":"1f4e0","native":"📠"}],"version":1},"battery":{"id":"battery","name":"Battery","keywords":["power","energy","sustain"],"skins":[{"unified":"1f50b","native":"🔋"}],"version":1},"low_battery":{"id":"low_battery","name":"Low Battery","keywords":["drained","dead"],"skins":[{"unified":"1faab","native":"🪫"}],"version":14},"electric_plug":{"id":"electric_plug","name":"Electric Plug","keywords":["charger","power"],"skins":[{"unified":"1f50c","native":"🔌"}],"version":1},"computer":{"id":"computer","name":"Laptop","keywords":["computer","technology","screen","display","monitor"],"skins":[{"unified":"1f4bb","native":"💻"}],"version":1},"desktop_computer":{"id":"desktop_computer","name":"Desktop Computer","keywords":["technology","computing","screen"],"skins":[{"unified":"1f5a5-fe0f","native":"🖥️"}],"version":1},"printer":{"id":"printer","name":"Printer","keywords":["paper","ink"],"skins":[{"unified":"1f5a8-fe0f","native":"🖨️"}],"version":1},"keyboard":{"id":"keyboard","name":"Keyboard","keywords":["technology","computer","type","input","text"],"skins":[{"unified":"2328-fe0f","native":"⌨️"}],"version":1},"three_button_mouse":{"id":"three_button_mouse","name":"Computer Mouse","keywords":["three","button","click"],"skins":[{"unified":"1f5b1-fe0f","native":"🖱️"}],"version":1},"trackball":{"id":"trackball","name":"Trackball","keywords":["technology","trackpad"],"skins":[{"unified":"1f5b2-fe0f","native":"🖲️"}],"version":1},"minidisc":{"id":"minidisc","name":"Minidisc","keywords":["computer","disk","technology","record","data","90s"],"skins":[{"unified":"1f4bd","native":"💽"}],"version":1},"floppy_disk":{"id":"floppy_disk","name":"Floppy Disk","keywords":["oldschool","technology","save","90s","80s"],"skins":[{"unified":"1f4be","native":"💾"}],"version":1},"cd":{"id":"cd","name":"Optical Disc","keywords":["cd","disk","technology","dvd","90s"],"skins":[{"unified":"1f4bf","native":"💿"}],"version":1},"dvd":{"id":"dvd","name":"Dvd","keywords":["cd","disk","disc"],"skins":[{"unified":"1f4c0","native":"📀"}],"version":1},"abacus":{"id":"abacus","name":"Abacus","keywords":["calculation"],"skins":[{"unified":"1f9ee","native":"🧮"}],"version":11},"movie_camera":{"id":"movie_camera","name":"Movie Camera","keywords":["film","record"],"skins":[{"unified":"1f3a5","native":"🎥"}],"version":1},"film_frames":{"id":"film_frames","name":"Film Frames","keywords":["movie"],"skins":[{"unified":"1f39e-fe0f","native":"🎞️"}],"version":1},"film_projector":{"id":"film_projector","name":"Film Projector","keywords":["video","tape","record","movie"],"skins":[{"unified":"1f4fd-fe0f","native":"📽️"}],"version":1},"clapper":{"id":"clapper","name":"Clapper Board","keywords":["movie","film","record"],"skins":[{"unified":"1f3ac","native":"🎬"}],"version":1},"tv":{"id":"tv","name":"Television","keywords":["tv","technology","program","oldschool","show"],"skins":[{"unified":"1f4fa","native":"📺"}],"version":1},"camera":{"id":"camera","name":"Camera","keywords":["gadgets","photography"],"skins":[{"unified":"1f4f7","native":"📷"}],"version":1},"camera_with_flash":{"id":"camera_with_flash","name":"Camera with Flash","keywords":["photography","gadgets"],"skins":[{"unified":"1f4f8","native":"📸"}],"version":1},"video_camera":{"id":"video_camera","name":"Video Camera","keywords":["film","record"],"skins":[{"unified":"1f4f9","native":"📹"}],"version":1},"vhs":{"id":"vhs","name":"Videocassette","keywords":["vhs","record","video","oldschool","90s","80s"],"skins":[{"unified":"1f4fc","native":"📼"}],"version":1},"mag":{"id":"mag","name":"Magnifying Glass Tilted Left","keywords":["mag","search","zoom","find","detective"],"skins":[{"unified":"1f50d","native":"🔍"}],"version":1},"mag_right":{"id":"mag_right","name":"Magnifying Glass Tilted Right","keywords":["mag","search","zoom","find","detective"],"skins":[{"unified":"1f50e","native":"🔎"}],"version":1},"candle":{"id":"candle","name":"Candle","keywords":["fire","wax"],"skins":[{"unified":"1f56f-fe0f","native":"🕯️"}],"version":1},"bulb":{"id":"bulb","name":"Light Bulb","keywords":["electricity","idea"],"skins":[{"unified":"1f4a1","native":"💡"}],"version":1},"flashlight":{"id":"flashlight","name":"Flashlight","keywords":["dark","camping","sight","night"],"skins":[{"unified":"1f526","native":"🔦"}],"version":1},"izakaya_lantern":{"id":"izakaya_lantern","name":"Izakaya Lantern","keywords":["red","paper","light","halloween","spooky"],"skins":[{"unified":"1f3ee","native":"🏮"}],"version":1},"diya_lamp":{"id":"diya_lamp","name":"Diya Lamp","keywords":["lighting"],"skins":[{"unified":"1fa94","native":"🪔"}],"version":12},"notebook_with_decorative_cover":{"id":"notebook_with_decorative_cover","name":"Notebook with Decorative Cover","keywords":["classroom","notes","record","paper","study"],"skins":[{"unified":"1f4d4","native":"📔"}],"version":1},"closed_book":{"id":"closed_book","name":"Closed Book","keywords":["read","library","knowledge","textbook","learn"],"skins":[{"unified":"1f4d5","native":"📕"}],"version":1},"book":{"id":"book","name":"Open Book","keywords":["read","library","knowledge","literature","learn","study"],"skins":[{"unified":"1f4d6","native":"📖"}],"version":1},"green_book":{"id":"green_book","name":"Green Book","keywords":["read","library","knowledge","study"],"skins":[{"unified":"1f4d7","native":"📗"}],"version":1},"blue_book":{"id":"blue_book","name":"Blue Book","keywords":["read","library","knowledge","learn","study"],"skins":[{"unified":"1f4d8","native":"📘"}],"version":1},"orange_book":{"id":"orange_book","name":"Orange Book","keywords":["read","library","knowledge","textbook","study"],"skins":[{"unified":"1f4d9","native":"📙"}],"version":1},"books":{"id":"books","name":"Books","keywords":["literature","library","study"],"skins":[{"unified":"1f4da","native":"📚"}],"version":1},"notebook":{"id":"notebook","name":"Notebook","keywords":["stationery","record","notes","paper","study"],"skins":[{"unified":"1f4d3","native":"📓"}],"version":1},"ledger":{"id":"ledger","name":"Ledger","keywords":["notes","paper"],"skins":[{"unified":"1f4d2","native":"📒"}],"version":1},"page_with_curl":{"id":"page_with_curl","name":"Page with Curl","keywords":["documents","office","paper"],"skins":[{"unified":"1f4c3","native":"📃"}],"version":1},"scroll":{"id":"scroll","name":"Scroll","keywords":["documents","ancient","history","paper"],"skins":[{"unified":"1f4dc","native":"📜"}],"version":1},"page_facing_up":{"id":"page_facing_up","name":"Page Facing Up","keywords":["documents","office","paper","information"],"skins":[{"unified":"1f4c4","native":"📄"}],"version":1},"newspaper":{"id":"newspaper","name":"Newspaper","keywords":["press","headline"],"skins":[{"unified":"1f4f0","native":"📰"}],"version":1},"rolled_up_newspaper":{"id":"rolled_up_newspaper","name":"Rolled-Up Newspaper","keywords":["rolled","up","press","headline"],"skins":[{"unified":"1f5de-fe0f","native":"🗞️"}],"version":1},"bookmark_tabs":{"id":"bookmark_tabs","name":"Bookmark Tabs","keywords":["favorite","save","order","tidy"],"skins":[{"unified":"1f4d1","native":"📑"}],"version":1},"bookmark":{"id":"bookmark","name":"Bookmark","keywords":["favorite","label","save"],"skins":[{"unified":"1f516","native":"🔖"}],"version":1},"label":{"id":"label","name":"Label","keywords":["sale","tag"],"skins":[{"unified":"1f3f7-fe0f","native":"🏷️"}],"version":1},"moneybag":{"id":"moneybag","name":"Money Bag","keywords":["moneybag","dollar","payment","coins","sale"],"skins":[{"unified":"1f4b0","native":"💰"}],"version":1},"coin":{"id":"coin","name":"Coin","keywords":["money","currency"],"skins":[{"unified":"1fa99","native":"🪙"}],"version":13},"yen":{"id":"yen","name":"Yen Banknote","keywords":["money","sales","japanese","dollar","currency"],"skins":[{"unified":"1f4b4","native":"💴"}],"version":1},"dollar":{"id":"dollar","name":"Dollar Banknote","keywords":["money","sales","bill","currency"],"skins":[{"unified":"1f4b5","native":"💵"}],"version":1},"euro":{"id":"euro","name":"Euro Banknote","keywords":["money","sales","dollar","currency"],"skins":[{"unified":"1f4b6","native":"💶"}],"version":1},"pound":{"id":"pound","name":"Pound Banknote","keywords":["british","sterling","money","sales","bills","uk","england","currency"],"skins":[{"unified":"1f4b7","native":"💷"}],"version":1},"money_with_wings":{"id":"money_with_wings","name":"Money with Wings","keywords":["dollar","bills","payment","sale"],"skins":[{"unified":"1f4b8","native":"💸"}],"version":1},"credit_card":{"id":"credit_card","name":"Credit Card","keywords":["money","sales","dollar","bill","payment","shopping"],"skins":[{"unified":"1f4b3","native":"💳"}],"version":1},"receipt":{"id":"receipt","name":"Receipt","keywords":["accounting","expenses"],"skins":[{"unified":"1f9fe","native":"🧾"}],"version":11},"chart":{"id":"chart","name":"Chart Increasing with Yen","keywords":["green","square","graph","presentation","stats"],"skins":[{"unified":"1f4b9","native":"💹"}],"version":1},"email":{"id":"email","name":"Envelope","keywords":["email","letter","postal","inbox","communication"],"skins":[{"unified":"2709-fe0f","native":"✉️"}],"version":1},"e-mail":{"id":"e-mail","name":"E-Mail","keywords":["e","mail","communication","inbox"],"skins":[{"unified":"1f4e7","native":"📧"}],"version":1},"incoming_envelope":{"id":"incoming_envelope","name":"Incoming Envelope","keywords":["email","inbox"],"skins":[{"unified":"1f4e8","native":"📨"}],"version":1},"envelope_with_arrow":{"id":"envelope_with_arrow","name":"Envelope with Arrow","keywords":["email","communication"],"skins":[{"unified":"1f4e9","native":"📩"}],"version":1},"outbox_tray":{"id":"outbox_tray","name":"Outbox Tray","keywords":["inbox","email"],"skins":[{"unified":"1f4e4","native":"📤"}],"version":1},"inbox_tray":{"id":"inbox_tray","name":"Inbox Tray","keywords":["email","documents"],"skins":[{"unified":"1f4e5","native":"📥"}],"version":1},"package":{"id":"package","name":"Package","keywords":["mail","gift","cardboard","box","moving"],"skins":[{"unified":"1f4e6","native":"📦"}],"version":1},"mailbox":{"id":"mailbox","name":"Closed Mailbox with Raised Flag","keywords":["email","inbox","communication"],"skins":[{"unified":"1f4eb","native":"📫"}],"version":1},"mailbox_closed":{"id":"mailbox_closed","name":"Closed Mailbox with Lowered Flag","keywords":["email","communication","inbox"],"skins":[{"unified":"1f4ea","native":"📪"}],"version":1},"mailbox_with_mail":{"id":"mailbox_with_mail","name":"Open Mailbox with Raised Flag","keywords":["mail","email","inbox","communication"],"skins":[{"unified":"1f4ec","native":"📬"}],"version":1},"mailbox_with_no_mail":{"id":"mailbox_with_no_mail","name":"Open Mailbox with Lowered Flag","keywords":["no","mail","email","inbox"],"skins":[{"unified":"1f4ed","native":"📭"}],"version":1},"postbox":{"id":"postbox","name":"Postbox","keywords":["email","letter","envelope"],"skins":[{"unified":"1f4ee","native":"📮"}],"version":1},"ballot_box_with_ballot":{"id":"ballot_box_with_ballot","name":"Ballot Box with Ballot","keywords":["election","vote"],"skins":[{"unified":"1f5f3-fe0f","native":"🗳️"}],"version":1},"pencil2":{"id":"pencil2","name":"Pencil","keywords":["pencil2","stationery","write","paper","writing","school","study"],"skins":[{"unified":"270f-fe0f","native":"✏️"}],"version":1},"black_nib":{"id":"black_nib","name":"Black Nib","keywords":["pen","stationery","writing","write"],"skins":[{"unified":"2712-fe0f","native":"✒️"}],"version":1},"lower_left_fountain_pen":{"id":"lower_left_fountain_pen","name":"Fountain Pen","keywords":["lower","left","stationery","writing","write"],"skins":[{"unified":"1f58b-fe0f","native":"🖋️"}],"version":1},"lower_left_ballpoint_pen":{"id":"lower_left_ballpoint_pen","name":"Pen","keywords":["lower","left","ballpoint","stationery","writing","write"],"skins":[{"unified":"1f58a-fe0f","native":"🖊️"}],"version":1},"lower_left_paintbrush":{"id":"lower_left_paintbrush","name":"Paintbrush","keywords":["lower","left","drawing","creativity","art"],"skins":[{"unified":"1f58c-fe0f","native":"🖌️"}],"version":1},"lower_left_crayon":{"id":"lower_left_crayon","name":"Crayon","keywords":["lower","left","drawing","creativity"],"skins":[{"unified":"1f58d-fe0f","native":"🖍️"}],"version":1},"memo":{"id":"memo","name":"Memo","keywords":["pencil","write","documents","stationery","paper","writing","legal","exam","quiz","test","study","compose"],"skins":[{"unified":"1f4dd","native":"📝"}],"version":1},"briefcase":{"id":"briefcase","name":"Briefcase","keywords":["business","documents","work","law","legal","job","career"],"skins":[{"unified":"1f4bc","native":"💼"}],"version":1},"file_folder":{"id":"file_folder","name":"File Folder","keywords":["documents","business","office"],"skins":[{"unified":"1f4c1","native":"📁"}],"version":1},"open_file_folder":{"id":"open_file_folder","name":"Open File Folder","keywords":["documents","load"],"skins":[{"unified":"1f4c2","native":"📂"}],"version":1},"card_index_dividers":{"id":"card_index_dividers","name":"Card Index Dividers","keywords":["organizing","business","stationery"],"skins":[{"unified":"1f5c2-fe0f","native":"🗂️"}],"version":1},"date":{"id":"date","name":"Calendar","keywords":["date","schedule"],"skins":[{"unified":"1f4c5","native":"📅"}],"version":1},"calendar":{"id":"calendar","name":"Tear-off Calendar","keywords":["tear","off","schedule","date","planning"],"skins":[{"unified":"1f4c6","native":"📆"}],"version":1},"spiral_note_pad":{"id":"spiral_note_pad","name":"Spiral Notepad","keywords":["note","pad","memo","stationery"],"skins":[{"unified":"1f5d2-fe0f","native":"🗒️"}],"version":1},"spiral_calendar_pad":{"id":"spiral_calendar_pad","name":"Spiral Calendar","keywords":["pad","date","schedule","planning"],"skins":[{"unified":"1f5d3-fe0f","native":"🗓️"}],"version":1},"card_index":{"id":"card_index","name":"Card Index","keywords":["business","stationery"],"skins":[{"unified":"1f4c7","native":"📇"}],"version":1},"chart_with_upwards_trend":{"id":"chart_with_upwards_trend","name":"Chart Increasing","keywords":["with","upwards","trend","graph","presentation","stats","recovery","business","economics","money","sales","good","success"],"skins":[{"unified":"1f4c8","native":"📈"}],"version":1},"chart_with_downwards_trend":{"id":"chart_with_downwards_trend","name":"Chart Decreasing","keywords":["with","downwards","trend","graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],"skins":[{"unified":"1f4c9","native":"📉"}],"version":1},"bar_chart":{"id":"bar_chart","name":"Bar Chart","keywords":["graph","presentation","stats"],"skins":[{"unified":"1f4ca","native":"📊"}],"version":1},"clipboard":{"id":"clipboard","name":"Clipboard","keywords":["stationery","documents"],"skins":[{"unified":"1f4cb","native":"📋"}],"version":1},"pushpin":{"id":"pushpin","name":"Pushpin","keywords":["stationery","mark","here"],"skins":[{"unified":"1f4cc","native":"📌"}],"version":1},"round_pushpin":{"id":"round_pushpin","name":"Round Pushpin","keywords":["stationery","location","map","here"],"skins":[{"unified":"1f4cd","native":"📍"}],"version":1},"paperclip":{"id":"paperclip","name":"Paperclip","keywords":["documents","stationery"],"skins":[{"unified":"1f4ce","native":"📎"}],"version":1},"linked_paperclips":{"id":"linked_paperclips","name":"Linked Paperclips","keywords":["documents","stationery"],"skins":[{"unified":"1f587-fe0f","native":"🖇️"}],"version":1},"straight_ruler":{"id":"straight_ruler","name":"Straight Ruler","keywords":["stationery","calculate","length","math","school","drawing","architect","sketch"],"skins":[{"unified":"1f4cf","native":"📏"}],"version":1},"triangular_ruler":{"id":"triangular_ruler","name":"Triangular Ruler","keywords":["stationery","math","architect","sketch"],"skins":[{"unified":"1f4d0","native":"📐"}],"version":1},"scissors":{"id":"scissors","name":"Scissors","keywords":["stationery","cut"],"skins":[{"unified":"2702-fe0f","native":"✂️"}],"version":1},"card_file_box":{"id":"card_file_box","name":"Card File Box","keywords":["business","stationery"],"skins":[{"unified":"1f5c3-fe0f","native":"🗃️"}],"version":1},"file_cabinet":{"id":"file_cabinet","name":"File Cabinet","keywords":["filing","organizing"],"skins":[{"unified":"1f5c4-fe0f","native":"🗄️"}],"version":1},"wastebasket":{"id":"wastebasket","name":"Wastebasket","keywords":["bin","trash","rubbish","garbage","toss"],"skins":[{"unified":"1f5d1-fe0f","native":"🗑️"}],"version":1},"lock":{"id":"lock","name":"Lock","keywords":["locked","security","password","padlock"],"skins":[{"unified":"1f512","native":"🔒"}],"version":1},"unlock":{"id":"unlock","name":"Unlocked","keywords":["unlock","privacy","security"],"skins":[{"unified":"1f513","native":"🔓"}],"version":1},"lock_with_ink_pen":{"id":"lock_with_ink_pen","name":"Locked with Pen","keywords":["lock","ink","security","secret"],"skins":[{"unified":"1f50f","native":"🔏"}],"version":1},"closed_lock_with_key":{"id":"closed_lock_with_key","name":"Locked with Key","keywords":["closed","lock","security","privacy"],"skins":[{"unified":"1f510","native":"🔐"}],"version":1},"key":{"id":"key","name":"Key","keywords":["lock","door","password"],"skins":[{"unified":"1f511","native":"🔑"}],"version":1},"old_key":{"id":"old_key","name":"Old Key","keywords":["lock","door","password"],"skins":[{"unified":"1f5dd-fe0f","native":"🗝️"}],"version":1},"hammer":{"id":"hammer","name":"Hammer","keywords":["tools","build","create"],"skins":[{"unified":"1f528","native":"🔨"}],"version":1},"axe":{"id":"axe","name":"Axe","keywords":["tool","chop","cut"],"skins":[{"unified":"1fa93","native":"🪓"}],"version":12},"pick":{"id":"pick","name":"Pick","keywords":["tools","dig"],"skins":[{"unified":"26cf-fe0f","native":"⛏️"}],"version":1},"hammer_and_pick":{"id":"hammer_and_pick","name":"Hammer and Pick","keywords":["tools","build","create"],"skins":[{"unified":"2692-fe0f","native":"⚒️"}],"version":1},"hammer_and_wrench":{"id":"hammer_and_wrench","name":"Hammer and Wrench","keywords":["tools","build","create"],"skins":[{"unified":"1f6e0-fe0f","native":"🛠️"}],"version":1},"dagger_knife":{"id":"dagger_knife","name":"Dagger","keywords":["knife","weapon"],"skins":[{"unified":"1f5e1-fe0f","native":"🗡️"}],"version":1},"crossed_swords":{"id":"crossed_swords","name":"Crossed Swords","keywords":["weapon"],"skins":[{"unified":"2694-fe0f","native":"⚔️"}],"version":1},"bomb":{"id":"bomb","name":"Bomb","keywords":["boom","explode","explosion","terrorism"],"skins":[{"unified":"1f4a3","native":"💣"}],"version":1},"boomerang":{"id":"boomerang","name":"Boomerang","keywords":["weapon"],"skins":[{"unified":"1fa83","native":"🪃"}],"version":13},"bow_and_arrow":{"id":"bow_and_arrow","name":"Bow and Arrow","keywords":["sports"],"skins":[{"unified":"1f3f9","native":"🏹"}],"version":1},"shield":{"id":"shield","name":"Shield","keywords":["protection","security"],"skins":[{"unified":"1f6e1-fe0f","native":"🛡️"}],"version":1},"carpentry_saw":{"id":"carpentry_saw","name":"Carpentry Saw","keywords":["cut","chop"],"skins":[{"unified":"1fa9a","native":"🪚"}],"version":13},"wrench":{"id":"wrench","name":"Wrench","keywords":["tools","diy","ikea","fix","maintainer"],"skins":[{"unified":"1f527","native":"🔧"}],"version":1},"screwdriver":{"id":"screwdriver","name":"Screwdriver","keywords":["tools"],"skins":[{"unified":"1fa9b","native":"🪛"}],"version":13},"nut_and_bolt":{"id":"nut_and_bolt","name":"Nut and Bolt","keywords":["handy","tools","fix"],"skins":[{"unified":"1f529","native":"🔩"}],"version":1},"gear":{"id":"gear","name":"Gear","keywords":["cog"],"skins":[{"unified":"2699-fe0f","native":"⚙️"}],"version":1},"compression":{"id":"compression","name":"Clamp","keywords":["compression","tool"],"skins":[{"unified":"1f5dc-fe0f","native":"🗜️"}],"version":1},"scales":{"id":"scales","name":"Balance Scale","keywords":["scales","law","fairness","weight"],"skins":[{"unified":"2696-fe0f","native":"⚖️"}],"version":1},"probing_cane":{"id":"probing_cane","name":"White Cane","keywords":["probing","accessibility"],"skins":[{"unified":"1f9af","native":"🦯"}],"version":12},"link":{"id":"link","name":"Link","keywords":["rings","url"],"skins":[{"unified":"1f517","native":"🔗"}],"version":1},"chains":{"id":"chains","name":"Chains","keywords":["lock","arrest"],"skins":[{"unified":"26d3-fe0f","native":"⛓️"}],"version":1},"hook":{"id":"hook","name":"Hook","keywords":["tools"],"skins":[{"unified":"1fa9d","native":"🪝"}],"version":13},"toolbox":{"id":"toolbox","name":"Toolbox","keywords":["tools","diy","fix","maintainer","mechanic"],"skins":[{"unified":"1f9f0","native":"🧰"}],"version":11},"magnet":{"id":"magnet","name":"Magnet","keywords":["attraction","magnetic"],"skins":[{"unified":"1f9f2","native":"🧲"}],"version":11},"ladder":{"id":"ladder","name":"Ladder","keywords":["tools"],"skins":[{"unified":"1fa9c","native":"🪜"}],"version":13},"alembic":{"id":"alembic","name":"Alembic","keywords":["distilling","science","experiment","chemistry"],"skins":[{"unified":"2697-fe0f","native":"⚗️"}],"version":1},"test_tube":{"id":"test_tube","name":"Test Tube","keywords":["chemistry","experiment","lab","science"],"skins":[{"unified":"1f9ea","native":"🧪"}],"version":11},"petri_dish":{"id":"petri_dish","name":"Petri Dish","keywords":["bacteria","biology","culture","lab"],"skins":[{"unified":"1f9eb","native":"🧫"}],"version":11},"dna":{"id":"dna","name":"Dna","keywords":["biologist","genetics","life"],"skins":[{"unified":"1f9ec","native":"🧬"}],"version":11},"microscope":{"id":"microscope","name":"Microscope","keywords":["laboratory","experiment","zoomin","science","study"],"skins":[{"unified":"1f52c","native":"🔬"}],"version":1},"telescope":{"id":"telescope","name":"Telescope","keywords":["stars","space","zoom","science","astronomy"],"skins":[{"unified":"1f52d","native":"🔭"}],"version":1},"satellite_antenna":{"id":"satellite_antenna","name":"Satellite Antenna","keywords":["communication","future","radio","space"],"skins":[{"unified":"1f4e1","native":"📡"}],"version":1},"syringe":{"id":"syringe","name":"Syringe","keywords":["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],"skins":[{"unified":"1f489","native":"💉"}],"version":1},"drop_of_blood":{"id":"drop_of_blood","name":"Drop of Blood","keywords":["period","hurt","harm","wound"],"skins":[{"unified":"1fa78","native":"🩸"}],"version":12},"pill":{"id":"pill","name":"Pill","keywords":["health","medicine","doctor","pharmacy","drug"],"skins":[{"unified":"1f48a","native":"💊"}],"version":1},"adhesive_bandage":{"id":"adhesive_bandage","name":"Adhesive Bandage","keywords":["heal"],"skins":[{"unified":"1fa79","native":"🩹"}],"version":12},"crutch":{"id":"crutch","name":"Crutch","keywords":["accessibility","assist"],"skins":[{"unified":"1fa7c","native":"🩼"}],"version":14},"stethoscope":{"id":"stethoscope","name":"Stethoscope","keywords":["health"],"skins":[{"unified":"1fa7a","native":"🩺"}],"version":12},"x-ray":{"id":"x-ray","name":"X-Ray","keywords":["x","ray","skeleton","medicine"],"skins":[{"unified":"1fa7b","native":"🩻"}],"version":14},"door":{"id":"door","name":"Door","keywords":["house","entry","exit"],"skins":[{"unified":"1f6aa","native":"🚪"}],"version":1},"elevator":{"id":"elevator","name":"Elevator","keywords":["lift"],"skins":[{"unified":"1f6d7","native":"🛗"}],"version":13},"mirror":{"id":"mirror","name":"Mirror","keywords":["reflection"],"skins":[{"unified":"1fa9e","native":"🪞"}],"version":13},"window":{"id":"window","name":"Window","keywords":["scenery"],"skins":[{"unified":"1fa9f","native":"🪟"}],"version":13},"bed":{"id":"bed","name":"Bed","keywords":["sleep","rest"],"skins":[{"unified":"1f6cf-fe0f","native":"🛏️"}],"version":1},"couch_and_lamp":{"id":"couch_and_lamp","name":"Couch and Lamp","keywords":["read","chill"],"skins":[{"unified":"1f6cb-fe0f","native":"🛋️"}],"version":1},"chair":{"id":"chair","name":"Chair","keywords":["sit","furniture"],"skins":[{"unified":"1fa91","native":"🪑"}],"version":12},"toilet":{"id":"toilet","name":"Toilet","keywords":["restroom","wc","washroom","bathroom","potty"],"skins":[{"unified":"1f6bd","native":"🚽"}],"version":1},"plunger":{"id":"plunger","name":"Plunger","keywords":["toilet"],"skins":[{"unified":"1faa0","native":"🪠"}],"version":13},"shower":{"id":"shower","name":"Shower","keywords":["clean","water","bathroom"],"skins":[{"unified":"1f6bf","native":"🚿"}],"version":1},"bathtub":{"id":"bathtub","name":"Bathtub","keywords":["clean","shower","bathroom"],"skins":[{"unified":"1f6c1","native":"🛁"}],"version":1},"mouse_trap":{"id":"mouse_trap","name":"Mouse Trap","keywords":["cheese"],"skins":[{"unified":"1faa4","native":"🪤"}],"version":13},"razor":{"id":"razor","name":"Razor","keywords":["cut"],"skins":[{"unified":"1fa92","native":"🪒"}],"version":12},"lotion_bottle":{"id":"lotion_bottle","name":"Lotion Bottle","keywords":["moisturizer","sunscreen"],"skins":[{"unified":"1f9f4","native":"🧴"}],"version":11},"safety_pin":{"id":"safety_pin","name":"Safety Pin","keywords":["diaper"],"skins":[{"unified":"1f9f7","native":"🧷"}],"version":11},"broom":{"id":"broom","name":"Broom","keywords":["cleaning","sweeping","witch"],"skins":[{"unified":"1f9f9","native":"🧹"}],"version":11},"basket":{"id":"basket","name":"Basket","keywords":["laundry"],"skins":[{"unified":"1f9fa","native":"🧺"}],"version":11},"roll_of_paper":{"id":"roll_of_paper","name":"Roll of Paper","keywords":[],"skins":[{"unified":"1f9fb","native":"🧻"}],"version":11},"bucket":{"id":"bucket","name":"Bucket","keywords":["water","container"],"skins":[{"unified":"1faa3","native":"🪣"}],"version":13},"soap":{"id":"soap","name":"Soap","keywords":["bar","bathing","cleaning","lather"],"skins":[{"unified":"1f9fc","native":"🧼"}],"version":11},"bubbles":{"id":"bubbles","name":"Bubbles","keywords":["soap","fun","carbonation","sparkling"],"skins":[{"unified":"1fae7","native":"🫧"}],"version":14},"toothbrush":{"id":"toothbrush","name":"Toothbrush","keywords":["hygiene","dental"],"skins":[{"unified":"1faa5","native":"🪥"}],"version":13},"sponge":{"id":"sponge","name":"Sponge","keywords":["absorbing","cleaning","porous"],"skins":[{"unified":"1f9fd","native":"🧽"}],"version":11},"fire_extinguisher":{"id":"fire_extinguisher","name":"Fire Extinguisher","keywords":["quench"],"skins":[{"unified":"1f9ef","native":"🧯"}],"version":11},"shopping_trolley":{"id":"shopping_trolley","name":"Shopping Cart","keywords":["trolley"],"skins":[{"unified":"1f6d2","native":"🛒"}],"version":3},"smoking":{"id":"smoking","name":"Cigarette","keywords":["smoking","kills","tobacco","joint","smoke"],"skins":[{"unified":"1f6ac","native":"🚬"}],"version":1},"coffin":{"id":"coffin","name":"Coffin","keywords":["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],"skins":[{"unified":"26b0-fe0f","native":"⚰️"}],"version":1},"headstone":{"id":"headstone","name":"Headstone","keywords":["death","rip","grave"],"skins":[{"unified":"1faa6","native":"🪦"}],"version":13},"funeral_urn":{"id":"funeral_urn","name":"Funeral Urn","keywords":["dead","die","death","rip","ashes"],"skins":[{"unified":"26b1-fe0f","native":"⚱️"}],"version":1},"nazar_amulet":{"id":"nazar_amulet","name":"Nazar Amulet","keywords":["bead","charm"],"skins":[{"unified":"1f9ff","native":"🧿"}],"version":11},"hamsa":{"id":"hamsa","name":"Hamsa","keywords":["religion","protection"],"skins":[{"unified":"1faac","native":"🪬"}],"version":14},"moyai":{"id":"moyai","name":"Moai","keywords":["moyai","rock","easter","island"],"skins":[{"unified":"1f5ff","native":"🗿"}],"version":1},"placard":{"id":"placard","name":"Placard","keywords":["announcement"],"skins":[{"unified":"1faa7","native":"🪧"}],"version":13},"identification_card":{"id":"identification_card","name":"Identification Card","keywords":["document"],"skins":[{"unified":"1faaa","native":"🪪"}],"version":14},"atm":{"id":"atm","name":"Atm Sign","keywords":["money","sales","cash","blue","square","payment","bank"],"skins":[{"unified":"1f3e7","native":"🏧"}],"version":1},"put_litter_in_its_place":{"id":"put_litter_in_its_place","name":"Litter in Bin Sign","keywords":["put","its","place","blue","square","human","info"],"skins":[{"unified":"1f6ae","native":"🚮"}],"version":1},"potable_water":{"id":"potable_water","name":"Potable Water","keywords":["blue","square","liquid","restroom","cleaning","faucet"],"skins":[{"unified":"1f6b0","native":"🚰"}],"version":1},"wheelchair":{"id":"wheelchair","name":"Wheelchair Symbol","keywords":["blue","square","disabled","accessibility"],"skins":[{"unified":"267f","native":"♿"}],"version":1},"mens":{"id":"mens","name":"Men’s Room","keywords":["mens","men","s","toilet","restroom","wc","blue","square","gender","male"],"skins":[{"unified":"1f6b9","native":"🚹"}],"version":1},"womens":{"id":"womens","name":"Women’s Room","keywords":["womens","women","s","purple","square","woman","female","toilet","loo","restroom","gender"],"skins":[{"unified":"1f6ba","native":"🚺"}],"version":1},"restroom":{"id":"restroom","name":"Restroom","keywords":["blue","square","toilet","refresh","wc","gender"],"skins":[{"unified":"1f6bb","native":"🚻"}],"version":1},"baby_symbol":{"id":"baby_symbol","name":"Baby Symbol","keywords":["orange","square","child"],"skins":[{"unified":"1f6bc","native":"🚼"}],"version":1},"wc":{"id":"wc","name":"Water Closet","keywords":["wc","toilet","restroom","blue","square"],"skins":[{"unified":"1f6be","native":"🚾"}],"version":1},"passport_control":{"id":"passport_control","name":"Passport Control","keywords":["custom","blue","square"],"skins":[{"unified":"1f6c2","native":"🛂"}],"version":1},"customs":{"id":"customs","name":"Customs","keywords":["passport","border","blue","square"],"skins":[{"unified":"1f6c3","native":"🛃"}],"version":1},"baggage_claim":{"id":"baggage_claim","name":"Baggage Claim","keywords":["blue","square","airport","transport"],"skins":[{"unified":"1f6c4","native":"🛄"}],"version":1},"left_luggage":{"id":"left_luggage","name":"Left Luggage","keywords":["blue","square","travel"],"skins":[{"unified":"1f6c5","native":"🛅"}],"version":1},"warning":{"id":"warning","name":"Warning","keywords":["exclamation","wip","alert","error","problem","issue"],"skins":[{"unified":"26a0-fe0f","native":"⚠️"}],"version":1},"children_crossing":{"id":"children_crossing","name":"Children Crossing","keywords":["school","warning","danger","sign","driving","yellow","diamond"],"skins":[{"unified":"1f6b8","native":"🚸"}],"version":1},"no_entry":{"id":"no_entry","name":"No Entry","keywords":["limit","security","privacy","bad","denied","stop","circle"],"skins":[{"unified":"26d4","native":"⛔"}],"version":1},"no_entry_sign":{"id":"no_entry_sign","name":"Prohibited","keywords":["no","entry","sign","forbid","stop","limit","denied","disallow","circle"],"skins":[{"unified":"1f6ab","native":"🚫"}],"version":1},"no_bicycles":{"id":"no_bicycles","name":"No Bicycles","keywords":["cyclist","prohibited","circle"],"skins":[{"unified":"1f6b3","native":"🚳"}],"version":1},"no_smoking":{"id":"no_smoking","name":"No Smoking","keywords":["cigarette","blue","square","smell","smoke"],"skins":[{"unified":"1f6ad","native":"🚭"}],"version":1},"do_not_litter":{"id":"do_not_litter","name":"No Littering","keywords":["do","not","litter","trash","bin","garbage","circle"],"skins":[{"unified":"1f6af","native":"🚯"}],"version":1},"non-potable_water":{"id":"non-potable_water","name":"Non-Potable Water","keywords":["non","potable","drink","faucet","tap","circle"],"skins":[{"unified":"1f6b1","native":"🚱"}],"version":1},"no_pedestrians":{"id":"no_pedestrians","name":"No Pedestrians","keywords":["rules","crossing","walking","circle"],"skins":[{"unified":"1f6b7","native":"🚷"}],"version":1},"no_mobile_phones":{"id":"no_mobile_phones","name":"No Mobile Phones","keywords":["iphone","mute","circle"],"skins":[{"unified":"1f4f5","native":"📵"}],"version":1},"underage":{"id":"underage","name":"No One Under Eighteen","keywords":["underage","18","drink","pub","night","minor","circle"],"skins":[{"unified":"1f51e","native":"🔞"}],"version":1},"radioactive_sign":{"id":"radioactive_sign","name":"Radioactive","keywords":["sign","nuclear","danger"],"skins":[{"unified":"2622-fe0f","native":"☢️"}],"version":1},"biohazard_sign":{"id":"biohazard_sign","name":"Biohazard","keywords":["sign","danger"],"skins":[{"unified":"2623-fe0f","native":"☣️"}],"version":1},"arrow_up":{"id":"arrow_up","name":"Up Arrow","keywords":["blue","square","continue","top","direction"],"skins":[{"unified":"2b06-fe0f","native":"⬆️"}],"version":1},"arrow_upper_right":{"id":"arrow_upper_right","name":"Up-Right Arrow","keywords":["upper","right","up","blue","square","point","direction","diagonal","northeast"],"skins":[{"unified":"2197-fe0f","native":"↗️"}],"version":1},"arrow_right":{"id":"arrow_right","name":"Right Arrow","keywords":["blue","square","next"],"skins":[{"unified":"27a1-fe0f","native":"➡️"}],"version":1},"arrow_lower_right":{"id":"arrow_lower_right","name":"South East Arrow","keywords":["lower","right","down","blue","square","direction","diagonal","southeast"],"skins":[{"unified":"2198-fe0f","native":"↘️"}],"version":1},"arrow_down":{"id":"arrow_down","name":"Down Arrow","keywords":["blue","square","direction","bottom"],"skins":[{"unified":"2b07-fe0f","native":"⬇️"}],"version":1},"arrow_lower_left":{"id":"arrow_lower_left","name":"Down-Left Arrow","keywords":["lower","left","down","blue","square","direction","diagonal","southwest"],"skins":[{"unified":"2199-fe0f","native":"↙️"}],"version":1},"arrow_left":{"id":"arrow_left","name":"Left Arrow","keywords":["blue","square","previous","back"],"skins":[{"unified":"2b05-fe0f","native":"⬅️"}],"version":1},"arrow_upper_left":{"id":"arrow_upper_left","name":"Up-Left Arrow","keywords":["upper","left","up","blue","square","point","direction","diagonal","northwest"],"skins":[{"unified":"2196-fe0f","native":"↖️"}],"version":1},"arrow_up_down":{"id":"arrow_up_down","name":"Up Down Arrow","keywords":["blue","square","direction","way","vertical"],"skins":[{"unified":"2195-fe0f","native":"↕️"}],"version":1},"left_right_arrow":{"id":"left_right_arrow","name":"Left Right Arrow","keywords":["shape","direction","horizontal","sideways"],"skins":[{"unified":"2194-fe0f","native":"↔️"}],"version":1},"leftwards_arrow_with_hook":{"id":"leftwards_arrow_with_hook","name":"Right Arrow Curving Left","keywords":["leftwards","with","hook","back","return","blue","square","undo","enter"],"skins":[{"unified":"21a9-fe0f","native":"↩️"}],"version":1},"arrow_right_hook":{"id":"arrow_right_hook","name":"Left Arrow Curving Right","keywords":["hook","blue","square","return","rotate","direction"],"skins":[{"unified":"21aa-fe0f","native":"↪️"}],"version":1},"arrow_heading_up":{"id":"arrow_heading_up","name":"Right Arrow Curving Up","keywords":["heading","blue","square","direction","top"],"skins":[{"unified":"2934-fe0f","native":"⤴️"}],"version":1},"arrow_heading_down":{"id":"arrow_heading_down","name":"Right Arrow Curving Down","keywords":["heading","blue","square","direction","bottom"],"skins":[{"unified":"2935-fe0f","native":"⤵️"}],"version":1},"arrows_clockwise":{"id":"arrows_clockwise","name":"Clockwise Vertical Arrows","keywords":["sync","cycle","round","repeat"],"skins":[{"unified":"1f503","native":"🔃"}],"version":1},"arrows_counterclockwise":{"id":"arrows_counterclockwise","name":"Counterclockwise Arrows Button","keywords":["blue","square","sync","cycle"],"skins":[{"unified":"1f504","native":"🔄"}],"version":1},"back":{"id":"back","name":"Back Arrow","keywords":["words","return"],"skins":[{"unified":"1f519","native":"🔙"}],"version":1},"end":{"id":"end","name":"End Arrow","keywords":["words"],"skins":[{"unified":"1f51a","native":"🔚"}],"version":1},"on":{"id":"on","name":"On! Arrow","keywords":["on","words"],"skins":[{"unified":"1f51b","native":"🔛"}],"version":1},"soon":{"id":"soon","name":"Soon Arrow","keywords":["words"],"skins":[{"unified":"1f51c","native":"🔜"}],"version":1},"top":{"id":"top","name":"Top Arrow","keywords":["words","blue","square"],"skins":[{"unified":"1f51d","native":"🔝"}],"version":1},"place_of_worship":{"id":"place_of_worship","name":"Place of Worship","keywords":["religion","church","temple","prayer"],"skins":[{"unified":"1f6d0","native":"🛐"}],"version":1},"atom_symbol":{"id":"atom_symbol","name":"Atom Symbol","keywords":["science","physics","chemistry"],"skins":[{"unified":"269b-fe0f","native":"⚛️"}],"version":1},"om_symbol":{"id":"om_symbol","name":"Om","keywords":["symbol","hinduism","buddhism","sikhism","jainism"],"skins":[{"unified":"1f549-fe0f","native":"🕉️"}],"version":1},"star_of_david":{"id":"star_of_david","name":"Star of David","keywords":["judaism"],"skins":[{"unified":"2721-fe0f","native":"✡️"}],"version":1},"wheel_of_dharma":{"id":"wheel_of_dharma","name":"Wheel of Dharma","keywords":["hinduism","buddhism","sikhism","jainism"],"skins":[{"unified":"2638-fe0f","native":"☸️"}],"version":1},"yin_yang":{"id":"yin_yang","name":"Yin Yang","keywords":["balance"],"skins":[{"unified":"262f-fe0f","native":"☯️"}],"version":1},"latin_cross":{"id":"latin_cross","name":"Latin Cross","keywords":["christianity"],"skins":[{"unified":"271d-fe0f","native":"✝️"}],"version":1},"orthodox_cross":{"id":"orthodox_cross","name":"Orthodox Cross","keywords":["suppedaneum","religion"],"skins":[{"unified":"2626-fe0f","native":"☦️"}],"version":1},"star_and_crescent":{"id":"star_and_crescent","name":"Star and Crescent","keywords":["islam"],"skins":[{"unified":"262a-fe0f","native":"☪️"}],"version":1},"peace_symbol":{"id":"peace_symbol","name":"Peace Symbol","keywords":["hippie"],"skins":[{"unified":"262e-fe0f","native":"☮️"}],"version":1},"menorah_with_nine_branches":{"id":"menorah_with_nine_branches","name":"Menorah","keywords":["with","nine","branches","hanukkah","candles","jewish"],"skins":[{"unified":"1f54e","native":"🕎"}],"version":1},"six_pointed_star":{"id":"six_pointed_star","name":"Dotted Six-Pointed Star","keywords":["six","pointed","purple","square","religion","jewish","hexagram"],"skins":[{"unified":"1f52f","native":"🔯"}],"version":1},"khanda":{"id":"khanda","name":"Khanda","keywords":["Sikhism","religion"],"skins":[{"unified":"1faaf","native":"🪯"}],"version":15},"aries":{"id":"aries","name":"Aries","keywords":["sign","purple","square","zodiac","astrology"],"skins":[{"unified":"2648","native":"♈"}],"version":1},"taurus":{"id":"taurus","name":"Taurus","keywords":["purple","square","sign","zodiac","astrology"],"skins":[{"unified":"2649","native":"♉"}],"version":1},"gemini":{"id":"gemini","name":"Gemini","keywords":["sign","zodiac","purple","square","astrology"],"skins":[{"unified":"264a","native":"♊"}],"version":1},"cancer":{"id":"cancer","name":"Cancer","keywords":["sign","zodiac","purple","square","astrology"],"skins":[{"unified":"264b","native":"♋"}],"version":1},"leo":{"id":"leo","name":"Leo","keywords":["sign","purple","square","zodiac","astrology"],"skins":[{"unified":"264c","native":"♌"}],"version":1},"virgo":{"id":"virgo","name":"Virgo","keywords":["sign","zodiac","purple","square","astrology"],"skins":[{"unified":"264d","native":"♍"}],"version":1},"libra":{"id":"libra","name":"Libra","keywords":["sign","purple","square","zodiac","astrology"],"skins":[{"unified":"264e","native":"♎"}],"version":1},"scorpius":{"id":"scorpius","name":"Scorpio","keywords":["scorpius","sign","zodiac","purple","square","astrology"],"skins":[{"unified":"264f","native":"♏"}],"version":1},"sagittarius":{"id":"sagittarius","name":"Sagittarius","keywords":["sign","zodiac","purple","square","astrology"],"skins":[{"unified":"2650","native":"♐"}],"version":1},"capricorn":{"id":"capricorn","name":"Capricorn","keywords":["sign","zodiac","purple","square","astrology"],"skins":[{"unified":"2651","native":"♑"}],"version":1},"aquarius":{"id":"aquarius","name":"Aquarius","keywords":["sign","purple","square","zodiac","astrology"],"skins":[{"unified":"2652","native":"♒"}],"version":1},"pisces":{"id":"pisces","name":"Pisces","keywords":["purple","square","sign","zodiac","astrology"],"skins":[{"unified":"2653","native":"♓"}],"version":1},"ophiuchus":{"id":"ophiuchus","name":"Ophiuchus","keywords":["sign","purple","square","constellation","astrology"],"skins":[{"unified":"26ce","native":"⛎"}],"version":1},"twisted_rightwards_arrows":{"id":"twisted_rightwards_arrows","name":"Shuffle Tracks Button","keywords":["twisted","rightwards","arrows","blue","square","music","random"],"skins":[{"unified":"1f500","native":"🔀"}],"version":1},"repeat":{"id":"repeat","name":"Repeat Button","keywords":["loop","record"],"skins":[{"unified":"1f501","native":"🔁"}],"version":1},"repeat_one":{"id":"repeat_one","name":"Repeat Single Button","keywords":["one","blue","square","loop"],"skins":[{"unified":"1f502","native":"🔂"}],"version":1},"arrow_forward":{"id":"arrow_forward","name":"Play Button","keywords":["arrow","forward","blue","square","right","direction"],"skins":[{"unified":"25b6-fe0f","native":"▶️"}],"version":1},"fast_forward":{"id":"fast_forward","name":"Fast-Forward Button","keywords":["fast","forward","blue","square","play","speed","continue"],"skins":[{"unified":"23e9","native":"⏩"}],"version":1},"black_right_pointing_double_triangle_with_vertical_bar":{"id":"black_right_pointing_double_triangle_with_vertical_bar","name":"Next Track Button","keywords":["black","right","pointing","double","triangle","with","vertical","bar","forward","blue","square"],"skins":[{"unified":"23ed-fe0f","native":"⏭️"}],"version":1},"black_right_pointing_triangle_with_double_vertical_bar":{"id":"black_right_pointing_triangle_with_double_vertical_bar","name":"Play or Pause Button","keywords":["black","right","pointing","triangle","with","double","vertical","bar","blue","square"],"skins":[{"unified":"23ef-fe0f","native":"⏯️"}],"version":1},"arrow_backward":{"id":"arrow_backward","name":"Reverse Button","keywords":["arrow","backward","blue","square","left","direction"],"skins":[{"unified":"25c0-fe0f","native":"◀️"}],"version":1},"rewind":{"id":"rewind","name":"Fast Reverse Button","keywords":["rewind","play","blue","square"],"skins":[{"unified":"23ea","native":"⏪"}],"version":1},"black_left_pointing_double_triangle_with_vertical_bar":{"id":"black_left_pointing_double_triangle_with_vertical_bar","name":"Last Track Button","keywords":["black","left","pointing","double","triangle","with","vertical","bar","backward"],"skins":[{"unified":"23ee-fe0f","native":"⏮️"}],"version":1},"arrow_up_small":{"id":"arrow_up_small","name":"Upwards Button","keywords":["arrow","up","small","blue","square","triangle","direction","point","forward","top"],"skins":[{"unified":"1f53c","native":"🔼"}],"version":1},"arrow_double_up":{"id":"arrow_double_up","name":"Fast Up Button","keywords":["arrow","double","blue","square","direction","top"],"skins":[{"unified":"23eb","native":"⏫"}],"version":1},"arrow_down_small":{"id":"arrow_down_small","name":"Downwards Button","keywords":["arrow","down","small","blue","square","direction","bottom"],"skins":[{"unified":"1f53d","native":"🔽"}],"version":1},"arrow_double_down":{"id":"arrow_double_down","name":"Fast Down Button","keywords":["arrow","double","blue","square","direction","bottom"],"skins":[{"unified":"23ec","native":"⏬"}],"version":1},"double_vertical_bar":{"id":"double_vertical_bar","name":"Pause Button","keywords":["double","vertical","bar","blue","square"],"skins":[{"unified":"23f8-fe0f","native":"⏸️"}],"version":1},"black_square_for_stop":{"id":"black_square_for_stop","name":"Stop Button","keywords":["black","square","for","blue"],"skins":[{"unified":"23f9-fe0f","native":"⏹️"}],"version":1},"black_circle_for_record":{"id":"black_circle_for_record","name":"Record Button","keywords":["black","circle","for","blue","square"],"skins":[{"unified":"23fa-fe0f","native":"⏺️"}],"version":1},"eject":{"id":"eject","name":"Eject Button","keywords":["blue","square"],"skins":[{"unified":"23cf-fe0f","native":"⏏️"}],"version":1},"cinema":{"id":"cinema","name":"Cinema","keywords":["blue","square","record","film","movie","curtain","stage","theater"],"skins":[{"unified":"1f3a6","native":"🎦"}],"version":1},"low_brightness":{"id":"low_brightness","name":"Dim Button","keywords":["low","brightness","sun","afternoon","warm","summer"],"skins":[{"unified":"1f505","native":"🔅"}],"version":1},"high_brightness":{"id":"high_brightness","name":"Bright Button","keywords":["high","brightness","sun","light"],"skins":[{"unified":"1f506","native":"🔆"}],"version":1},"signal_strength":{"id":"signal_strength","name":"Antenna Bars","keywords":["signal","strength","blue","square","reception","phone","internet","connection","wifi","bluetooth"],"skins":[{"unified":"1f4f6","native":"📶"}],"version":1},"wireless":{"id":"wireless","name":"Wireless","keywords":["wifi","internet","contactless","signal"],"skins":[{"unified":"1f6dc","native":"🛜"}],"version":15},"vibration_mode":{"id":"vibration_mode","name":"Vibration Mode","keywords":["orange","square","phone"],"skins":[{"unified":"1f4f3","native":"📳"}],"version":1},"mobile_phone_off":{"id":"mobile_phone_off","name":"Mobile Phone off","keywords":["mute","orange","square","silence","quiet"],"skins":[{"unified":"1f4f4","native":"📴"}],"version":1},"female_sign":{"id":"female_sign","name":"Female Sign","keywords":["woman","women","lady","girl"],"skins":[{"unified":"2640-fe0f","native":"♀️"}],"version":4},"male_sign":{"id":"male_sign","name":"Male Sign","keywords":["man","boy","men"],"skins":[{"unified":"2642-fe0f","native":"♂️"}],"version":4},"transgender_symbol":{"id":"transgender_symbol","name":"Transgender Symbol","keywords":["lgbtq"],"skins":[{"unified":"26a7-fe0f","native":"⚧️"}],"version":13},"heavy_multiplication_x":{"id":"heavy_multiplication_x","name":"Multiply","keywords":["heavy","multiplication","x","sign","math","calculation"],"skins":[{"unified":"2716-fe0f","native":"✖️"}],"version":1},"heavy_plus_sign":{"id":"heavy_plus_sign","name":"Plus","keywords":["heavy","sign","math","calculation","addition","more","increase"],"skins":[{"unified":"2795","native":"➕"}],"version":1},"heavy_minus_sign":{"id":"heavy_minus_sign","name":"Minus","keywords":["heavy","sign","math","calculation","subtract","less"],"skins":[{"unified":"2796","native":"➖"}],"version":1},"heavy_division_sign":{"id":"heavy_division_sign","name":"Divide","keywords":["heavy","division","sign","math","calculation"],"skins":[{"unified":"2797","native":"➗"}],"version":1},"heavy_equals_sign":{"id":"heavy_equals_sign","name":"Heavy Equals Sign","keywords":["math"],"skins":[{"unified":"1f7f0","native":"🟰"}],"version":14},"infinity":{"id":"infinity","name":"Infinity","keywords":["forever"],"skins":[{"unified":"267e-fe0f","native":"♾️"}],"version":11},"bangbang":{"id":"bangbang","name":"Double Exclamation Mark","keywords":["bangbang","surprise"],"skins":[{"unified":"203c-fe0f","native":"‼️"}],"version":1},"interrobang":{"id":"interrobang","name":"Exclamation Question Mark","keywords":["interrobang","wat","punctuation","surprise"],"skins":[{"unified":"2049-fe0f","native":"⁉️"}],"version":1},"question":{"id":"question","name":"Red Question Mark","keywords":["doubt","confused"],"skins":[{"unified":"2753","native":"❓"}],"version":1},"grey_question":{"id":"grey_question","name":"White Question Mark","keywords":["grey","doubts","gray","huh","confused"],"skins":[{"unified":"2754","native":"❔"}],"version":1},"grey_exclamation":{"id":"grey_exclamation","name":"White Exclamation Mark","keywords":["grey","surprise","punctuation","gray","wow","warning"],"skins":[{"unified":"2755","native":"❕"}],"version":1},"exclamation":{"id":"exclamation","name":"Red Exclamation Mark","keywords":["heavy","danger","surprise","punctuation","wow","warning"],"skins":[{"unified":"2757","native":"❗"}],"version":1},"wavy_dash":{"id":"wavy_dash","name":"Wavy Dash","keywords":["draw","line","moustache","mustache","squiggle","scribble"],"skins":[{"unified":"3030-fe0f","native":"〰️"}],"version":1},"currency_exchange":{"id":"currency_exchange","name":"Currency Exchange","keywords":["money","sales","dollar","travel"],"skins":[{"unified":"1f4b1","native":"💱"}],"version":1},"heavy_dollar_sign":{"id":"heavy_dollar_sign","name":"Heavy Dollar Sign","keywords":["money","sales","payment","currency","buck"],"skins":[{"unified":"1f4b2","native":"💲"}],"version":1},"medical_symbol":{"id":"medical_symbol","name":"Medical Symbol","keywords":["staff","of","aesculapius","health","hospital"],"skins":[{"unified":"2695-fe0f","native":"⚕️"}],"version":4},"recycle":{"id":"recycle","name":"Recycling Symbol","keywords":["recycle","arrow","environment","garbage","trash"],"skins":[{"unified":"267b-fe0f","native":"♻️"}],"version":1},"fleur_de_lis":{"id":"fleur_de_lis","name":"Fleur-De-Lis","keywords":["fleur","de","lis","decorative","scout"],"skins":[{"unified":"269c-fe0f","native":"⚜️"}],"version":1},"trident":{"id":"trident","name":"Trident Emblem","keywords":["weapon","spear"],"skins":[{"unified":"1f531","native":"🔱"}],"version":1},"name_badge":{"id":"name_badge","name":"Name Badge","keywords":["fire","forbid"],"skins":[{"unified":"1f4db","native":"📛"}],"version":1},"beginner":{"id":"beginner","name":"Japanese Symbol for Beginner","keywords":["badge","shield"],"skins":[{"unified":"1f530","native":"🔰"}],"version":1},"o":{"id":"o","name":"Hollow Red Circle","keywords":["o","round"],"skins":[{"unified":"2b55","native":"⭕"}],"version":1},"white_check_mark":{"id":"white_check_mark","name":"Check Mark Button","keywords":["white","green","square","ok","agree","vote","election","answer","tick"],"skins":[{"unified":"2705","native":"✅"}],"version":1},"ballot_box_with_check":{"id":"ballot_box_with_check","name":"Check Box with Check","keywords":["ballot","ok","agree","confirm","black","square","vote","election","yes","tick"],"skins":[{"unified":"2611-fe0f","native":"☑️"}],"version":1},"heavy_check_mark":{"id":"heavy_check_mark","name":"Check Mark","keywords":["heavy","ok","nike","answer","yes","tick"],"skins":[{"unified":"2714-fe0f","native":"✔️"}],"version":1},"x":{"id":"x","name":"Cross Mark","keywords":["x","no","delete","remove","cancel","red"],"skins":[{"unified":"274c","native":"❌"}],"version":1},"negative_squared_cross_mark":{"id":"negative_squared_cross_mark","name":"Cross Mark Button","keywords":["negative","squared","x","green","square","no","deny"],"skins":[{"unified":"274e","native":"❎"}],"version":1},"curly_loop":{"id":"curly_loop","name":"Curly Loop","keywords":["scribble","draw","shape","squiggle"],"skins":[{"unified":"27b0","native":"➰"}],"version":1},"loop":{"id":"loop","name":"Double Curly Loop","keywords":["tape","cassette"],"skins":[{"unified":"27bf","native":"➿"}],"version":1},"part_alternation_mark":{"id":"part_alternation_mark","name":"Part Alternation Mark","keywords":["graph","presentation","stats","business","economics","bad"],"skins":[{"unified":"303d-fe0f","native":"〽️"}],"version":1},"eight_spoked_asterisk":{"id":"eight_spoked_asterisk","name":"Eight Spoked Asterisk","keywords":["star","sparkle","green","square"],"skins":[{"unified":"2733-fe0f","native":"✳️"}],"version":1},"eight_pointed_black_star":{"id":"eight_pointed_black_star","name":"Eight-Pointed Star","keywords":["eight","pointed","black","orange","square","shape","polygon"],"skins":[{"unified":"2734-fe0f","native":"✴️"}],"version":1},"sparkle":{"id":"sparkle","name":"Sparkle","keywords":["stars","green","square","awesome","good","fireworks"],"skins":[{"unified":"2747-fe0f","native":"❇️"}],"version":1},"copyright":{"id":"copyright","name":"Copyright","keywords":["ip","license","circle","law","legal"],"skins":[{"unified":"00a9-fe0f","native":"©️"}],"version":1},"registered":{"id":"registered","name":"Registered","keywords":["alphabet","circle"],"skins":[{"unified":"00ae-fe0f","native":"®️"}],"version":1},"tm":{"id":"tm","name":"Trade Mark","keywords":["tm","trademark","brand","law","legal"],"skins":[{"unified":"2122-fe0f","native":"™️"}],"version":1},"hash":{"id":"hash","name":"Hash Key","keywords":["keycap","","symbol","blue","square","twitter"],"skins":[{"unified":"0023-fe0f-20e3","native":"#️⃣"}],"version":1},"keycap_star":{"id":"keycap_star","name":"Keycap: *","keywords":["keycap","star",""],"skins":[{"unified":"002a-fe0f-20e3","native":"*️⃣"}],"version":2},"zero":{"id":"zero","name":"Keycap 0","keywords":["zero","numbers","blue","square","null"],"skins":[{"unified":"0030-fe0f-20e3","native":"0️⃣"}],"version":1},"one":{"id":"one","name":"Keycap 1","keywords":["one","blue","square","numbers"],"skins":[{"unified":"0031-fe0f-20e3","native":"1️⃣"}],"version":1},"two":{"id":"two","name":"Keycap 2","keywords":["two","numbers","prime","blue","square"],"skins":[{"unified":"0032-fe0f-20e3","native":"2️⃣"}],"version":1},"three":{"id":"three","name":"Keycap 3","keywords":["three","numbers","prime","blue","square"],"skins":[{"unified":"0033-fe0f-20e3","native":"3️⃣"}],"version":1},"four":{"id":"four","name":"Keycap 4","keywords":["four","numbers","blue","square"],"skins":[{"unified":"0034-fe0f-20e3","native":"4️⃣"}],"version":1},"five":{"id":"five","name":"Keycap 5","keywords":["five","numbers","blue","square","prime"],"skins":[{"unified":"0035-fe0f-20e3","native":"5️⃣"}],"version":1},"six":{"id":"six","name":"Keycap 6","keywords":["six","numbers","blue","square"],"skins":[{"unified":"0036-fe0f-20e3","native":"6️⃣"}],"version":1},"seven":{"id":"seven","name":"Keycap 7","keywords":["seven","numbers","blue","square","prime"],"skins":[{"unified":"0037-fe0f-20e3","native":"7️⃣"}],"version":1},"eight":{"id":"eight","name":"Keycap 8","keywords":["eight","blue","square","numbers"],"skins":[{"unified":"0038-fe0f-20e3","native":"8️⃣"}],"version":1},"nine":{"id":"nine","name":"Keycap 9","keywords":["nine","blue","square","numbers"],"skins":[{"unified":"0039-fe0f-20e3","native":"9️⃣"}],"version":1},"keycap_ten":{"id":"keycap_ten","name":"Keycap 10","keywords":["ten","numbers","blue","square"],"skins":[{"unified":"1f51f","native":"🔟"}],"version":1},"capital_abcd":{"id":"capital_abcd","name":"Input Latin Uppercase","keywords":["capital","abcd","alphabet","words","blue","square"],"skins":[{"unified":"1f520","native":"🔠"}],"version":1},"abcd":{"id":"abcd","name":"Input Latin Lowercase","keywords":["abcd","blue","square","alphabet"],"skins":[{"unified":"1f521","native":"🔡"}],"version":1},"symbols":{"id":"symbols","name":"Input Symbols","keywords":["blue","square","music","note","ampersand","percent","glyphs","characters"],"skins":[{"unified":"1f523","native":"🔣"}],"version":1},"abc":{"id":"abc","name":"Input Latin Letters","keywords":["abc","blue","square","alphabet"],"skins":[{"unified":"1f524","native":"🔤"}],"version":1},"a":{"id":"a","name":"A Button (blood Type)","keywords":["red","square","alphabet","letter"],"skins":[{"unified":"1f170-fe0f","native":"🅰️"}],"version":1},"ab":{"id":"ab","name":"Negative Squared Ab","keywords":["button","red","square","alphabet"],"skins":[{"unified":"1f18e","native":"🆎"}],"version":1},"b":{"id":"b","name":"B Button (blood Type)","keywords":["red","square","alphabet","letter"],"skins":[{"unified":"1f171-fe0f","native":"🅱️"}],"version":1},"cl":{"id":"cl","name":"Cl Button","keywords":["alphabet","words","red","square"],"skins":[{"unified":"1f191","native":"🆑"}],"version":1},"cool":{"id":"cool","name":"Cool Button","keywords":["words","blue","square"],"skins":[{"unified":"1f192","native":"🆒"}],"version":1},"free":{"id":"free","name":"Free Button","keywords":["blue","square","words"],"skins":[{"unified":"1f193","native":"🆓"}],"version":1},"information_source":{"id":"information_source","name":"Information","keywords":["source","blue","square","alphabet","letter"],"skins":[{"unified":"2139-fe0f","native":"ℹ️"}],"version":1},"id":{"id":"id","name":"Id Button","keywords":["purple","square","words"],"skins":[{"unified":"1f194","native":"🆔"}],"version":1},"m":{"id":"m","name":"Circled M","keywords":["alphabet","blue","circle","letter"],"skins":[{"unified":"24c2-fe0f","native":"Ⓜ️"}],"version":1},"new":{"id":"new","name":"New Button","keywords":["blue","square","words","start"],"skins":[{"unified":"1f195","native":"🆕"}],"version":1},"ng":{"id":"ng","name":"Ng Button","keywords":["blue","square","words","shape","icon"],"skins":[{"unified":"1f196","native":"🆖"}],"version":1},"o2":{"id":"o2","name":"O Button (blood Type)","keywords":["o2","alphabet","red","square","letter"],"skins":[{"unified":"1f17e-fe0f","native":"🅾️"}],"version":1},"ok":{"id":"ok","name":"Ok Button","keywords":["good","agree","yes","blue","square"],"skins":[{"unified":"1f197","native":"🆗"}],"version":1},"parking":{"id":"parking","name":"P Button","keywords":["parking","cars","blue","square","alphabet","letter"],"skins":[{"unified":"1f17f-fe0f","native":"🅿️"}],"version":1},"sos":{"id":"sos","name":"Sos Button","keywords":["help","red","square","words","emergency","911"],"skins":[{"unified":"1f198","native":"🆘"}],"version":1},"up":{"id":"up","name":"Up! Button","keywords":["up","blue","square","above","high"],"skins":[{"unified":"1f199","native":"🆙"}],"version":1},"vs":{"id":"vs","name":"Vs Button","keywords":["words","orange","square"],"skins":[{"unified":"1f19a","native":"🆚"}],"version":1},"koko":{"id":"koko","name":"Squared Katakana Koko","keywords":["japanese","here","button","blue","square","destination"],"skins":[{"unified":"1f201","native":"🈁"}],"version":1},"sa":{"id":"sa","name":"Squared Katakana Sa","keywords":["japanese","service","charge","button","blue","square"],"skins":[{"unified":"1f202-fe0f","native":"🈂️"}],"version":1},"u6708":{"id":"u6708","name":"Japanese “monthly Amount” Button","keywords":["u6708","monthly","amount","chinese","month","moon","orange","square","kanji"],"skins":[{"unified":"1f237-fe0f","native":"🈷️"}],"version":1},"u6709":{"id":"u6709","name":"Squared Cjk Unified Ideograph-6709","keywords":["u6709","japanese","not","free","of","charge","button","orange","square","chinese","have","kanji"],"skins":[{"unified":"1f236","native":"🈶"}],"version":1},"u6307":{"id":"u6307","name":"Japanese “reserved” Button","keywords":["u6307","reserved","chinese","point","green","square","kanji"],"skins":[{"unified":"1f22f","native":"🈯"}],"version":1},"ideograph_advantage":{"id":"ideograph_advantage","name":"Japanese “bargain” Button","keywords":["ideograph","advantage","bargain","chinese","kanji","obtain","get","circle"],"skins":[{"unified":"1f250","native":"🉐"}],"version":1},"u5272":{"id":"u5272","name":"Japanese “discount” Button","keywords":["u5272","discount","cut","divide","chinese","kanji","pink","square"],"skins":[{"unified":"1f239","native":"🈹"}],"version":1},"u7121":{"id":"u7121","name":"Japanese “free of Charge” Button","keywords":["u7121","free","charge","nothing","chinese","kanji","orange","square"],"skins":[{"unified":"1f21a","native":"🈚"}],"version":1},"u7981":{"id":"u7981","name":"Japanese “prohibited” Button","keywords":["u7981","prohibited","kanji","chinese","forbidden","limit","restricted","red","square"],"skins":[{"unified":"1f232","native":"🈲"}],"version":1},"accept":{"id":"accept","name":"Circled Ideograph Accept","keywords":["japanese","acceptable","button","ok","good","chinese","kanji","agree","yes","orange","circle"],"skins":[{"unified":"1f251","native":"🉑"}],"version":1},"u7533":{"id":"u7533","name":"Japanese “application” Button","keywords":["u7533","application","chinese","kanji","orange","square"],"skins":[{"unified":"1f238","native":"🈸"}],"version":1},"u5408":{"id":"u5408","name":"Japanese “passing Grade” Button","keywords":["u5408","passing","grade","chinese","join","kanji","red","square"],"skins":[{"unified":"1f234","native":"🈴"}],"version":1},"u7a7a":{"id":"u7a7a","name":"Japanese “vacancy” Button","keywords":["u7a7a","vacancy","kanji","chinese","empty","sky","blue","square"],"skins":[{"unified":"1f233","native":"🈳"}],"version":1},"congratulations":{"id":"congratulations","name":"Circled Ideograph Congratulation","keywords":["congratulations","japanese","button","chinese","kanji","red","circle"],"skins":[{"unified":"3297-fe0f","native":"㊗️"}],"version":1},"secret":{"id":"secret","name":"Circled Ideograph Secret","keywords":["japanese","button","privacy","chinese","sshh","kanji","red","circle"],"skins":[{"unified":"3299-fe0f","native":"㊙️"}],"version":1},"u55b6":{"id":"u55b6","name":"Squared Cjk Unified Ideograph-55b6","keywords":["u55b6","japanese","open","for","business","button","opening","hours","orange","square"],"skins":[{"unified":"1f23a","native":"🈺"}],"version":1},"u6e80":{"id":"u6e80","name":"Japanese “no Vacancy” Button","keywords":["u6e80","no","vacancy","full","chinese","red","square","kanji"],"skins":[{"unified":"1f235","native":"🈵"}],"version":1},"red_circle":{"id":"red_circle","name":"Red Circle","keywords":["shape","error","danger"],"skins":[{"unified":"1f534","native":"🔴"}],"version":1},"large_orange_circle":{"id":"large_orange_circle","name":"Orange Circle","keywords":["large","round"],"skins":[{"unified":"1f7e0","native":"🟠"}],"version":12},"large_yellow_circle":{"id":"large_yellow_circle","name":"Yellow Circle","keywords":["large","round"],"skins":[{"unified":"1f7e1","native":"🟡"}],"version":12},"large_green_circle":{"id":"large_green_circle","name":"Green Circle","keywords":["large","round"],"skins":[{"unified":"1f7e2","native":"🟢"}],"version":12},"large_blue_circle":{"id":"large_blue_circle","name":"Blue Circle","keywords":["large","shape","icon","button"],"skins":[{"unified":"1f535","native":"🔵"}],"version":1},"large_purple_circle":{"id":"large_purple_circle","name":"Purple Circle","keywords":["large","round"],"skins":[{"unified":"1f7e3","native":"🟣"}],"version":12},"large_brown_circle":{"id":"large_brown_circle","name":"Brown Circle","keywords":["large","round"],"skins":[{"unified":"1f7e4","native":"🟤"}],"version":12},"black_circle":{"id":"black_circle","name":"Black Circle","keywords":["shape","button","round"],"skins":[{"unified":"26ab","native":"⚫"}],"version":1},"white_circle":{"id":"white_circle","name":"White Circle","keywords":["shape","round"],"skins":[{"unified":"26aa","native":"⚪"}],"version":1},"large_red_square":{"id":"large_red_square","name":"Red Square","keywords":["large"],"skins":[{"unified":"1f7e5","native":"🟥"}],"version":12},"large_orange_square":{"id":"large_orange_square","name":"Orange Square","keywords":["large"],"skins":[{"unified":"1f7e7","native":"🟧"}],"version":12},"large_yellow_square":{"id":"large_yellow_square","name":"Yellow Square","keywords":["large"],"skins":[{"unified":"1f7e8","native":"🟨"}],"version":12},"large_green_square":{"id":"large_green_square","name":"Green Square","keywords":["large"],"skins":[{"unified":"1f7e9","native":"🟩"}],"version":12},"large_blue_square":{"id":"large_blue_square","name":"Blue Square","keywords":["large"],"skins":[{"unified":"1f7e6","native":"🟦"}],"version":12},"large_purple_square":{"id":"large_purple_square","name":"Purple Square","keywords":["large"],"skins":[{"unified":"1f7ea","native":"🟪"}],"version":12},"large_brown_square":{"id":"large_brown_square","name":"Brown Square","keywords":["large"],"skins":[{"unified":"1f7eb","native":"🟫"}],"version":12},"black_large_square":{"id":"black_large_square","name":"Black Large Square","keywords":["shape","icon","button"],"skins":[{"unified":"2b1b","native":"⬛"}],"version":1},"white_large_square":{"id":"white_large_square","name":"White Large Square","keywords":["shape","icon","stone","button"],"skins":[{"unified":"2b1c","native":"⬜"}],"version":1},"black_medium_square":{"id":"black_medium_square","name":"Black Medium Square","keywords":["shape","button","icon"],"skins":[{"unified":"25fc-fe0f","native":"◼️"}],"version":1},"white_medium_square":{"id":"white_medium_square","name":"White Medium Square","keywords":["shape","stone","icon"],"skins":[{"unified":"25fb-fe0f","native":"◻️"}],"version":1},"black_medium_small_square":{"id":"black_medium_small_square","name":"Black Medium Small Square","keywords":["icon","shape","button"],"skins":[{"unified":"25fe","native":"◾"}],"version":1},"white_medium_small_square":{"id":"white_medium_small_square","name":"White Medium Small Square","keywords":["shape","stone","icon","button"],"skins":[{"unified":"25fd","native":"◽"}],"version":1},"black_small_square":{"id":"black_small_square","name":"Black Small Square","keywords":["shape","icon"],"skins":[{"unified":"25aa-fe0f","native":"▪️"}],"version":1},"white_small_square":{"id":"white_small_square","name":"White Small Square","keywords":["shape","icon"],"skins":[{"unified":"25ab-fe0f","native":"▫️"}],"version":1},"large_orange_diamond":{"id":"large_orange_diamond","name":"Large Orange Diamond","keywords":["shape","jewel","gem"],"skins":[{"unified":"1f536","native":"🔶"}],"version":1},"large_blue_diamond":{"id":"large_blue_diamond","name":"Large Blue Diamond","keywords":["shape","jewel","gem"],"skins":[{"unified":"1f537","native":"🔷"}],"version":1},"small_orange_diamond":{"id":"small_orange_diamond","name":"Small Orange Diamond","keywords":["shape","jewel","gem"],"skins":[{"unified":"1f538","native":"🔸"}],"version":1},"small_blue_diamond":{"id":"small_blue_diamond","name":"Small Blue Diamond","keywords":["shape","jewel","gem"],"skins":[{"unified":"1f539","native":"🔹"}],"version":1},"small_red_triangle":{"id":"small_red_triangle","name":"Red Triangle Pointed Up","keywords":["small","shape","direction","top"],"skins":[{"unified":"1f53a","native":"🔺"}],"version":1},"small_red_triangle_down":{"id":"small_red_triangle_down","name":"Red Triangle Pointed Down","keywords":["small","shape","direction","bottom"],"skins":[{"unified":"1f53b","native":"🔻"}],"version":1},"diamond_shape_with_a_dot_inside":{"id":"diamond_shape_with_a_dot_inside","name":"Diamond with a Dot","keywords":["shape","inside","jewel","blue","gem","crystal","fancy"],"skins":[{"unified":"1f4a0","native":"💠"}],"version":1},"radio_button":{"id":"radio_button","name":"Radio Button","keywords":["input","old","music","circle"],"skins":[{"unified":"1f518","native":"🔘"}],"version":1},"white_square_button":{"id":"white_square_button","name":"White Square Button","keywords":["shape","input"],"skins":[{"unified":"1f533","native":"🔳"}],"version":1},"black_square_button":{"id":"black_square_button","name":"Black Square Button","keywords":["shape","input","frame"],"skins":[{"unified":"1f532","native":"🔲"}],"version":1},"checkered_flag":{"id":"checkered_flag","name":"Chequered Flag","keywords":["checkered","contest","finishline","race","gokart"],"skins":[{"unified":"1f3c1","native":"🏁"}],"version":1},"triangular_flag_on_post":{"id":"triangular_flag_on_post","name":"Triangular Flag","keywords":["on","post","mark","milestone","place"],"skins":[{"unified":"1f6a9","native":"🚩"}],"version":1},"crossed_flags":{"id":"crossed_flags","name":"Crossed Flags","keywords":["japanese","nation","country","border"],"skins":[{"unified":"1f38c","native":"🎌"}],"version":1},"waving_black_flag":{"id":"waving_black_flag","name":"Black Flag","keywords":["waving","pirate"],"skins":[{"unified":"1f3f4","native":"🏴"}],"version":1},"waving_white_flag":{"id":"waving_white_flag","name":"White Flag","keywords":["waving","losing","loser","lost","surrender","give","up","fail"],"skins":[{"unified":"1f3f3-fe0f","native":"🏳️"}],"version":1},"rainbow-flag":{"id":"rainbow-flag","name":"Rainbow Flag","keywords":["pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],"skins":[{"unified":"1f3f3-fe0f-200d-1f308","native":"🏳️🌈"}],"version":4},"transgender_flag":{"id":"transgender_flag","name":"Transgender Flag","keywords":["lgbtq"],"skins":[{"unified":"1f3f3-fe0f-200d-26a7-fe0f","native":"🏳️⚧️"}],"version":13},"pirate_flag":{"id":"pirate_flag","name":"Pirate Flag","keywords":["skull","crossbones","banner"],"skins":[{"unified":"1f3f4-200d-2620-fe0f","native":"🏴☠️"}],"version":11},"flag-ac":{"id":"flag-ac","name":"Ascension Island Flag","keywords":["ac"],"skins":[{"unified":"1f1e6-1f1e8","native":"🇦🇨"}],"version":2},"flag-ad":{"id":"flag-ad","name":"Andorra Flag","keywords":["ad","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1e9","native":"🇦🇩"}],"version":2},"flag-ae":{"id":"flag-ae","name":"United Arab Emirates Flag","keywords":["ae","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1ea","native":"🇦🇪"}],"version":2},"flag-af":{"id":"flag-af","name":"Afghanistan Flag","keywords":["af","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1eb","native":"🇦🇫"}],"version":2},"flag-ag":{"id":"flag-ag","name":"Antigua & Barbuda Flag","keywords":["ag","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1ec","native":"🇦🇬"}],"version":2},"flag-ai":{"id":"flag-ai","name":"Anguilla Flag","keywords":["ai","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1ee","native":"🇦🇮"}],"version":2},"flag-al":{"id":"flag-al","name":"Albania Flag","keywords":["al","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f1","native":"🇦🇱"}],"version":2},"flag-am":{"id":"flag-am","name":"Armenia Flag","keywords":["am","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f2","native":"🇦🇲"}],"version":2},"flag-ao":{"id":"flag-ao","name":"Angola Flag","keywords":["ao","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f4","native":"🇦🇴"}],"version":2},"flag-aq":{"id":"flag-aq","name":"Antarctica Flag","keywords":["aq","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f6","native":"🇦🇶"}],"version":2},"flag-ar":{"id":"flag-ar","name":"Argentina Flag","keywords":["ar","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f7","native":"🇦🇷"}],"version":2},"flag-as":{"id":"flag-as","name":"American Samoa Flag","keywords":["as","ws","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f8","native":"🇦🇸"}],"version":2},"flag-at":{"id":"flag-at","name":"Austria Flag","keywords":["at","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1f9","native":"🇦🇹"}],"version":2},"flag-au":{"id":"flag-au","name":"Australia Flag","keywords":["au","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1fa","native":"🇦🇺"}],"version":2},"flag-aw":{"id":"flag-aw","name":"Aruba Flag","keywords":["aw","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1fc","native":"🇦🇼"}],"version":2},"flag-ax":{"id":"flag-ax","name":"Åland Islands Flag","keywords":["ax","aland","Aland","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1fd","native":"🇦🇽"}],"version":2},"flag-az":{"id":"flag-az","name":"Azerbaijan Flag","keywords":["az","nation","country","banner"],"skins":[{"unified":"1f1e6-1f1ff","native":"🇦🇿"}],"version":2},"flag-ba":{"id":"flag-ba","name":"Bosnia & Herzegovina Flag","keywords":["ba","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1e6","native":"🇧🇦"}],"version":2},"flag-bb":{"id":"flag-bb","name":"Barbados Flag","keywords":["bb","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1e7","native":"🇧🇧"}],"version":2},"flag-bd":{"id":"flag-bd","name":"Bangladesh Flag","keywords":["bd","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1e9","native":"🇧🇩"}],"version":2},"flag-be":{"id":"flag-be","name":"Belgium Flag","keywords":["be","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1ea","native":"🇧🇪"}],"version":2},"flag-bf":{"id":"flag-bf","name":"Burkina Faso Flag","keywords":["bf","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1eb","native":"🇧🇫"}],"version":2},"flag-bg":{"id":"flag-bg","name":"Bulgaria Flag","keywords":["bg","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1ec","native":"🇧🇬"}],"version":2},"flag-bh":{"id":"flag-bh","name":"Bahrain Flag","keywords":["bh","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1ed","native":"🇧🇭"}],"version":2},"flag-bi":{"id":"flag-bi","name":"Burundi Flag","keywords":["bi","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1ee","native":"🇧🇮"}],"version":2},"flag-bj":{"id":"flag-bj","name":"Benin Flag","keywords":["bj","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1ef","native":"🇧🇯"}],"version":2},"flag-bl":{"id":"flag-bl","name":"St. Barthélemy Flag","keywords":["bl","st","barthelemy","saint","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f1","native":"🇧🇱"}],"version":2},"flag-bm":{"id":"flag-bm","name":"Bermuda Flag","keywords":["bm","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f2","native":"🇧🇲"}],"version":2},"flag-bn":{"id":"flag-bn","name":"Brunei Flag","keywords":["bn","darussalam","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f3","native":"🇧🇳"}],"version":2},"flag-bo":{"id":"flag-bo","name":"Bolivia Flag","keywords":["bo","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f4","native":"🇧🇴"}],"version":2},"flag-bq":{"id":"flag-bq","name":"Caribbean Netherlands Flag","keywords":["bq","bonaire","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f6","native":"🇧🇶"}],"version":2},"flag-br":{"id":"flag-br","name":"Brazil Flag","keywords":["br","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f7","native":"🇧🇷"}],"version":2},"flag-bs":{"id":"flag-bs","name":"Bahamas Flag","keywords":["bs","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f8","native":"🇧🇸"}],"version":2},"flag-bt":{"id":"flag-bt","name":"Bhutan Flag","keywords":["bt","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1f9","native":"🇧🇹"}],"version":2},"flag-bv":{"id":"flag-bv","name":"Bouvet Island Flag","keywords":["bv","norway"],"skins":[{"unified":"1f1e7-1f1fb","native":"🇧🇻"}],"version":2},"flag-bw":{"id":"flag-bw","name":"Botswana Flag","keywords":["bw","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1fc","native":"🇧🇼"}],"version":2},"flag-by":{"id":"flag-by","name":"Belarus Flag","keywords":["by","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1fe","native":"🇧🇾"}],"version":2},"flag-bz":{"id":"flag-bz","name":"Belize Flag","keywords":["bz","nation","country","banner"],"skins":[{"unified":"1f1e7-1f1ff","native":"🇧🇿"}],"version":2},"flag-ca":{"id":"flag-ca","name":"Canada Flag","keywords":["ca","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1e6","native":"🇨🇦"}],"version":2},"flag-cc":{"id":"flag-cc","name":"Cocos (keeling) Islands Flag","keywords":["cc","keeling","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1e8","native":"🇨🇨"}],"version":2},"flag-cd":{"id":"flag-cd","name":"Congo - Kinshasa Flag","keywords":["cd","democratic","republic","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1e9","native":"🇨🇩"}],"version":2},"flag-cf":{"id":"flag-cf","name":"Central African Republic Flag","keywords":["cf","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1eb","native":"🇨🇫"}],"version":2},"flag-cg":{"id":"flag-cg","name":"Congo - Brazzaville Flag","keywords":["cg","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1ec","native":"🇨🇬"}],"version":2},"flag-ch":{"id":"flag-ch","name":"Switzerland Flag","keywords":["ch","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1ed","native":"🇨🇭"}],"version":2},"flag-ci":{"id":"flag-ci","name":"Côte D’ivoire Flag","keywords":["ci","cote","d","ivoire","ivory","coast","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1ee","native":"🇨🇮"}],"version":2},"flag-ck":{"id":"flag-ck","name":"Cook Islands Flag","keywords":["ck","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1f0","native":"🇨🇰"}],"version":2},"flag-cl":{"id":"flag-cl","name":"Chile Flag","keywords":["cl","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1f1","native":"🇨🇱"}],"version":2},"flag-cm":{"id":"flag-cm","name":"Cameroon Flag","keywords":["cm","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1f2","native":"🇨🇲"}],"version":2},"cn":{"id":"cn","name":"China Flag","keywords":["cn","chinese","prc","country","nation","banner"],"skins":[{"unified":"1f1e8-1f1f3","native":"🇨🇳"}],"version":1},"flag-co":{"id":"flag-co","name":"Colombia Flag","keywords":["co","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1f4","native":"🇨🇴"}],"version":2},"flag-cp":{"id":"flag-cp","name":"Clipperton Island Flag","keywords":["cp"],"skins":[{"unified":"1f1e8-1f1f5","native":"🇨🇵"}],"version":2},"flag-cr":{"id":"flag-cr","name":"Costa Rica Flag","keywords":["cr","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1f7","native":"🇨🇷"}],"version":2},"flag-cu":{"id":"flag-cu","name":"Cuba Flag","keywords":["cu","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1fa","native":"🇨🇺"}],"version":2},"flag-cv":{"id":"flag-cv","name":"Cape Verde Flag","keywords":["cv","cabo","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1fb","native":"🇨🇻"}],"version":2},"flag-cw":{"id":"flag-cw","name":"Curaçao Flag","keywords":["cw","curacao","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1fc","native":"🇨🇼"}],"version":2},"flag-cx":{"id":"flag-cx","name":"Christmas Island Flag","keywords":["cx","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1fd","native":"🇨🇽"}],"version":2},"flag-cy":{"id":"flag-cy","name":"Cyprus Flag","keywords":["cy","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1fe","native":"🇨🇾"}],"version":2},"flag-cz":{"id":"flag-cz","name":"Czechia Flag","keywords":["cz","nation","country","banner"],"skins":[{"unified":"1f1e8-1f1ff","native":"🇨🇿"}],"version":2},"de":{"id":"de","name":"Germany Flag","keywords":["de","german","nation","country","banner"],"skins":[{"unified":"1f1e9-1f1ea","native":"🇩🇪"}],"version":1},"flag-dg":{"id":"flag-dg","name":"Diego Garcia Flag","keywords":["dg"],"skins":[{"unified":"1f1e9-1f1ec","native":"🇩🇬"}],"version":2},"flag-dj":{"id":"flag-dj","name":"Djibouti Flag","keywords":["dj","nation","country","banner"],"skins":[{"unified":"1f1e9-1f1ef","native":"🇩🇯"}],"version":2},"flag-dk":{"id":"flag-dk","name":"Denmark Flag","keywords":["dk","nation","country","banner"],"skins":[{"unified":"1f1e9-1f1f0","native":"🇩🇰"}],"version":2},"flag-dm":{"id":"flag-dm","name":"Dominica Flag","keywords":["dm","nation","country","banner"],"skins":[{"unified":"1f1e9-1f1f2","native":"🇩🇲"}],"version":2},"flag-do":{"id":"flag-do","name":"Dominican Republic Flag","keywords":["do","nation","country","banner"],"skins":[{"unified":"1f1e9-1f1f4","native":"🇩🇴"}],"version":2},"flag-dz":{"id":"flag-dz","name":"Algeria Flag","keywords":["dz","nation","country","banner"],"skins":[{"unified":"1f1e9-1f1ff","native":"🇩🇿"}],"version":2},"flag-ea":{"id":"flag-ea","name":"Ceuta & Melilla Flag","keywords":["ea"],"skins":[{"unified":"1f1ea-1f1e6","native":"🇪🇦"}],"version":2},"flag-ec":{"id":"flag-ec","name":"Ecuador Flag","keywords":["ec","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1e8","native":"🇪🇨"}],"version":2},"flag-ee":{"id":"flag-ee","name":"Estonia Flag","keywords":["ee","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1ea","native":"🇪🇪"}],"version":2},"flag-eg":{"id":"flag-eg","name":"Egypt Flag","keywords":["eg","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1ec","native":"🇪🇬"}],"version":2},"flag-eh":{"id":"flag-eh","name":"Western Sahara Flag","keywords":["eh","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1ed","native":"🇪🇭"}],"version":2},"flag-er":{"id":"flag-er","name":"Eritrea Flag","keywords":["er","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1f7","native":"🇪🇷"}],"version":2},"es":{"id":"es","name":"Spain Flag","keywords":["es","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1f8","native":"🇪🇸"}],"version":1},"flag-et":{"id":"flag-et","name":"Ethiopia Flag","keywords":["et","nation","country","banner"],"skins":[{"unified":"1f1ea-1f1f9","native":"🇪🇹"}],"version":2},"flag-eu":{"id":"flag-eu","name":"European Union Flag","keywords":["eu","banner"],"skins":[{"unified":"1f1ea-1f1fa","native":"🇪🇺"}],"version":2},"flag-fi":{"id":"flag-fi","name":"Finland Flag","keywords":["fi","nation","country","banner"],"skins":[{"unified":"1f1eb-1f1ee","native":"🇫🇮"}],"version":2},"flag-fj":{"id":"flag-fj","name":"Fiji Flag","keywords":["fj","nation","country","banner"],"skins":[{"unified":"1f1eb-1f1ef","native":"🇫🇯"}],"version":2},"flag-fk":{"id":"flag-fk","name":"Falkland Islands Flag","keywords":["fk","malvinas","nation","country","banner"],"skins":[{"unified":"1f1eb-1f1f0","native":"🇫🇰"}],"version":2},"flag-fm":{"id":"flag-fm","name":"Micronesia Flag","keywords":["fm","federated","states","nation","country","banner"],"skins":[{"unified":"1f1eb-1f1f2","native":"🇫🇲"}],"version":2},"flag-fo":{"id":"flag-fo","name":"Faroe Islands Flag","keywords":["fo","nation","country","banner"],"skins":[{"unified":"1f1eb-1f1f4","native":"🇫🇴"}],"version":2},"fr":{"id":"fr","name":"France Flag","keywords":["fr","banner","nation","french","country"],"skins":[{"unified":"1f1eb-1f1f7","native":"🇫🇷"}],"version":1},"flag-ga":{"id":"flag-ga","name":"Gabon Flag","keywords":["ga","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1e6","native":"🇬🇦"}],"version":2},"gb":{"id":"gb","name":"United Kingdom Flag","keywords":["gb","uk","great","britain","northern","ireland","nation","country","banner","british","UK","english","england","union","jack"],"skins":[{"unified":"1f1ec-1f1e7","native":"🇬🇧"}],"version":1},"flag-gd":{"id":"flag-gd","name":"Grenada Flag","keywords":["gd","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1e9","native":"🇬🇩"}],"version":2},"flag-ge":{"id":"flag-ge","name":"Georgia Flag","keywords":["ge","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1ea","native":"🇬🇪"}],"version":2},"flag-gf":{"id":"flag-gf","name":"French Guiana Flag","keywords":["gf","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1eb","native":"🇬🇫"}],"version":2},"flag-gg":{"id":"flag-gg","name":"Guernsey Flag","keywords":["gg","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1ec","native":"🇬🇬"}],"version":2},"flag-gh":{"id":"flag-gh","name":"Ghana Flag","keywords":["gh","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1ed","native":"🇬🇭"}],"version":2},"flag-gi":{"id":"flag-gi","name":"Gibraltar Flag","keywords":["gi","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1ee","native":"🇬🇮"}],"version":2},"flag-gl":{"id":"flag-gl","name":"Greenland Flag","keywords":["gl","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f1","native":"🇬🇱"}],"version":2},"flag-gm":{"id":"flag-gm","name":"Gambia Flag","keywords":["gm","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f2","native":"🇬🇲"}],"version":2},"flag-gn":{"id":"flag-gn","name":"Guinea Flag","keywords":["gn","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f3","native":"🇬🇳"}],"version":2},"flag-gp":{"id":"flag-gp","name":"Guadeloupe Flag","keywords":["gp","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f5","native":"🇬🇵"}],"version":2},"flag-gq":{"id":"flag-gq","name":"Equatorial Guinea Flag","keywords":["gq","gn","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f6","native":"🇬🇶"}],"version":2},"flag-gr":{"id":"flag-gr","name":"Greece Flag","keywords":["gr","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f7","native":"🇬🇷"}],"version":2},"flag-gs":{"id":"flag-gs","name":"South Georgia & South Sandwich Islands Flag","keywords":["gs","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f8","native":"🇬🇸"}],"version":2},"flag-gt":{"id":"flag-gt","name":"Guatemala Flag","keywords":["gt","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1f9","native":"🇬🇹"}],"version":2},"flag-gu":{"id":"flag-gu","name":"Guam Flag","keywords":["gu","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1fa","native":"🇬🇺"}],"version":2},"flag-gw":{"id":"flag-gw","name":"Guinea-Bissau Flag","keywords":["gw","guinea","bissau","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1fc","native":"🇬🇼"}],"version":2},"flag-gy":{"id":"flag-gy","name":"Guyana Flag","keywords":["gy","nation","country","banner"],"skins":[{"unified":"1f1ec-1f1fe","native":"🇬🇾"}],"version":2},"flag-hk":{"id":"flag-hk","name":"Hong Kong Sar China Flag","keywords":["hk","nation","country","banner"],"skins":[{"unified":"1f1ed-1f1f0","native":"🇭🇰"}],"version":2},"flag-hm":{"id":"flag-hm","name":"Heard & Mcdonald Islands Flag","keywords":["hm"],"skins":[{"unified":"1f1ed-1f1f2","native":"🇭🇲"}],"version":2},"flag-hn":{"id":"flag-hn","name":"Honduras Flag","keywords":["hn","nation","country","banner"],"skins":[{"unified":"1f1ed-1f1f3","native":"🇭🇳"}],"version":2},"flag-hr":{"id":"flag-hr","name":"Croatia Flag","keywords":["hr","nation","country","banner"],"skins":[{"unified":"1f1ed-1f1f7","native":"🇭🇷"}],"version":2},"flag-ht":{"id":"flag-ht","name":"Haiti Flag","keywords":["ht","nation","country","banner"],"skins":[{"unified":"1f1ed-1f1f9","native":"🇭🇹"}],"version":2},"flag-hu":{"id":"flag-hu","name":"Hungary Flag","keywords":["hu","nation","country","banner"],"skins":[{"unified":"1f1ed-1f1fa","native":"🇭🇺"}],"version":2},"flag-ic":{"id":"flag-ic","name":"Canary Islands Flag","keywords":["ic","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1e8","native":"🇮🇨"}],"version":2},"flag-id":{"id":"flag-id","name":"Indonesia Flag","keywords":["id","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1e9","native":"🇮🇩"}],"version":2},"flag-ie":{"id":"flag-ie","name":"Ireland Flag","keywords":["ie","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1ea","native":"🇮🇪"}],"version":2},"flag-il":{"id":"flag-il","name":"Israel Flag","keywords":["il","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f1","native":"🇮🇱"}],"version":2},"flag-im":{"id":"flag-im","name":"Isle of Man Flag","keywords":["im","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f2","native":"🇮🇲"}],"version":2},"flag-in":{"id":"flag-in","name":"India Flag","keywords":["in","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f3","native":"🇮🇳"}],"version":2},"flag-io":{"id":"flag-io","name":"British Indian Ocean Territory Flag","keywords":["io","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f4","native":"🇮🇴"}],"version":2},"flag-iq":{"id":"flag-iq","name":"Iraq Flag","keywords":["iq","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f6","native":"🇮🇶"}],"version":2},"flag-ir":{"id":"flag-ir","name":"Iran Flag","keywords":["ir","islamic","republic","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f7","native":"🇮🇷"}],"version":2},"flag-is":{"id":"flag-is","name":"Iceland Flag","keywords":["is","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f8","native":"🇮🇸"}],"version":2},"it":{"id":"it","name":"Italy Flag","keywords":["it","nation","country","banner"],"skins":[{"unified":"1f1ee-1f1f9","native":"🇮🇹"}],"version":1},"flag-je":{"id":"flag-je","name":"Jersey Flag","keywords":["je","nation","country","banner"],"skins":[{"unified":"1f1ef-1f1ea","native":"🇯🇪"}],"version":2},"flag-jm":{"id":"flag-jm","name":"Jamaica Flag","keywords":["jm","nation","country","banner"],"skins":[{"unified":"1f1ef-1f1f2","native":"🇯🇲"}],"version":2},"flag-jo":{"id":"flag-jo","name":"Jordan Flag","keywords":["jo","nation","country","banner"],"skins":[{"unified":"1f1ef-1f1f4","native":"🇯🇴"}],"version":2},"jp":{"id":"jp","name":"Japan Flag","keywords":["jp","japanese","nation","country","banner","ja"],"skins":[{"unified":"1f1ef-1f1f5","native":"🇯🇵"}],"version":1},"flag-ke":{"id":"flag-ke","name":"Kenya Flag","keywords":["ke","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1ea","native":"🇰🇪"}],"version":2},"flag-kg":{"id":"flag-kg","name":"Kyrgyzstan Flag","keywords":["kg","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1ec","native":"🇰🇬"}],"version":2},"flag-kh":{"id":"flag-kh","name":"Cambodia Flag","keywords":["kh","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1ed","native":"🇰🇭"}],"version":2},"flag-ki":{"id":"flag-ki","name":"Kiribati Flag","keywords":["ki","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1ee","native":"🇰🇮"}],"version":2},"flag-km":{"id":"flag-km","name":"Comoros Flag","keywords":["km","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1f2","native":"🇰🇲"}],"version":2},"flag-kn":{"id":"flag-kn","name":"St. Kitts & Nevis Flag","keywords":["kn","st","saint","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1f3","native":"🇰🇳"}],"version":2},"flag-kp":{"id":"flag-kp","name":"North Korea Flag","keywords":["kp","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1f5","native":"🇰🇵"}],"version":2},"kr":{"id":"kr","name":"South Korea Flag","keywords":["kr","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1f7","native":"🇰🇷"}],"version":1},"flag-kw":{"id":"flag-kw","name":"Kuwait Flag","keywords":["kw","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1fc","native":"🇰🇼"}],"version":2},"flag-ky":{"id":"flag-ky","name":"Cayman Islands Flag","keywords":["ky","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1fe","native":"🇰🇾"}],"version":2},"flag-kz":{"id":"flag-kz","name":"Kazakhstan Flag","keywords":["kz","nation","country","banner"],"skins":[{"unified":"1f1f0-1f1ff","native":"🇰🇿"}],"version":2},"flag-la":{"id":"flag-la","name":"Laos Flag","keywords":["la","lao","democratic","republic","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1e6","native":"🇱🇦"}],"version":2},"flag-lb":{"id":"flag-lb","name":"Lebanon Flag","keywords":["lb","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1e7","native":"🇱🇧"}],"version":2},"flag-lc":{"id":"flag-lc","name":"St. Lucia Flag","keywords":["lc","st","saint","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1e8","native":"🇱🇨"}],"version":2},"flag-li":{"id":"flag-li","name":"Liechtenstein Flag","keywords":["li","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1ee","native":"🇱🇮"}],"version":2},"flag-lk":{"id":"flag-lk","name":"Sri Lanka Flag","keywords":["lk","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1f0","native":"🇱🇰"}],"version":2},"flag-lr":{"id":"flag-lr","name":"Liberia Flag","keywords":["lr","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1f7","native":"🇱🇷"}],"version":2},"flag-ls":{"id":"flag-ls","name":"Lesotho Flag","keywords":["ls","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1f8","native":"🇱🇸"}],"version":2},"flag-lt":{"id":"flag-lt","name":"Lithuania Flag","keywords":["lt","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1f9","native":"🇱🇹"}],"version":2},"flag-lu":{"id":"flag-lu","name":"Luxembourg Flag","keywords":["lu","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1fa","native":"🇱🇺"}],"version":2},"flag-lv":{"id":"flag-lv","name":"Latvia Flag","keywords":["lv","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1fb","native":"🇱🇻"}],"version":2},"flag-ly":{"id":"flag-ly","name":"Libya Flag","keywords":["ly","nation","country","banner"],"skins":[{"unified":"1f1f1-1f1fe","native":"🇱🇾"}],"version":2},"flag-ma":{"id":"flag-ma","name":"Morocco Flag","keywords":["ma","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1e6","native":"🇲🇦"}],"version":2},"flag-mc":{"id":"flag-mc","name":"Monaco Flag","keywords":["mc","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1e8","native":"🇲🇨"}],"version":2},"flag-md":{"id":"flag-md","name":"Moldova Flag","keywords":["md","republic","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1e9","native":"🇲🇩"}],"version":2},"flag-me":{"id":"flag-me","name":"Montenegro Flag","keywords":["me","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1ea","native":"🇲🇪"}],"version":2},"flag-mf":{"id":"flag-mf","name":"St. Martin Flag","keywords":["mf","st"],"skins":[{"unified":"1f1f2-1f1eb","native":"🇲🇫"}],"version":2},"flag-mg":{"id":"flag-mg","name":"Madagascar Flag","keywords":["mg","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1ec","native":"🇲🇬"}],"version":2},"flag-mh":{"id":"flag-mh","name":"Marshall Islands Flag","keywords":["mh","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1ed","native":"🇲🇭"}],"version":2},"flag-mk":{"id":"flag-mk","name":"North Macedonia Flag","keywords":["mk","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f0","native":"🇲🇰"}],"version":2},"flag-ml":{"id":"flag-ml","name":"Mali Flag","keywords":["ml","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f1","native":"🇲🇱"}],"version":2},"flag-mm":{"id":"flag-mm","name":"Myanmar (burma) Flag","keywords":["mm","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f2","native":"🇲🇲"}],"version":2},"flag-mn":{"id":"flag-mn","name":"Mongolia Flag","keywords":["mn","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f3","native":"🇲🇳"}],"version":2},"flag-mo":{"id":"flag-mo","name":"Macao Sar China Flag","keywords":["mo","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f4","native":"🇲🇴"}],"version":2},"flag-mp":{"id":"flag-mp","name":"Northern Mariana Islands Flag","keywords":["mp","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f5","native":"🇲🇵"}],"version":2},"flag-mq":{"id":"flag-mq","name":"Martinique Flag","keywords":["mq","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f6","native":"🇲🇶"}],"version":2},"flag-mr":{"id":"flag-mr","name":"Mauritania Flag","keywords":["mr","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f7","native":"🇲🇷"}],"version":2},"flag-ms":{"id":"flag-ms","name":"Montserrat Flag","keywords":["ms","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f8","native":"🇲🇸"}],"version":2},"flag-mt":{"id":"flag-mt","name":"Malta Flag","keywords":["mt","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1f9","native":"🇲🇹"}],"version":2},"flag-mu":{"id":"flag-mu","name":"Mauritius Flag","keywords":["mu","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1fa","native":"🇲🇺"}],"version":2},"flag-mv":{"id":"flag-mv","name":"Maldives Flag","keywords":["mv","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1fb","native":"🇲🇻"}],"version":2},"flag-mw":{"id":"flag-mw","name":"Malawi Flag","keywords":["mw","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1fc","native":"🇲🇼"}],"version":2},"flag-mx":{"id":"flag-mx","name":"Mexico Flag","keywords":["mx","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1fd","native":"🇲🇽"}],"version":2},"flag-my":{"id":"flag-my","name":"Malaysia Flag","keywords":["my","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1fe","native":"🇲🇾"}],"version":2},"flag-mz":{"id":"flag-mz","name":"Mozambique Flag","keywords":["mz","nation","country","banner"],"skins":[{"unified":"1f1f2-1f1ff","native":"🇲🇿"}],"version":2},"flag-na":{"id":"flag-na","name":"Namibia Flag","keywords":["na","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1e6","native":"🇳🇦"}],"version":2},"flag-nc":{"id":"flag-nc","name":"New Caledonia Flag","keywords":["nc","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1e8","native":"🇳🇨"}],"version":2},"flag-ne":{"id":"flag-ne","name":"Niger Flag","keywords":["ne","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1ea","native":"🇳🇪"}],"version":2},"flag-nf":{"id":"flag-nf","name":"Norfolk Island Flag","keywords":["nf","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1eb","native":"🇳🇫"}],"version":2},"flag-ng":{"id":"flag-ng","name":"Nigeria Flag","keywords":["ng","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1ec","native":"🇳🇬"}],"version":2},"flag-ni":{"id":"flag-ni","name":"Nicaragua Flag","keywords":["ni","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1ee","native":"🇳🇮"}],"version":2},"flag-nl":{"id":"flag-nl","name":"Netherlands Flag","keywords":["nl","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1f1","native":"🇳🇱"}],"version":2},"flag-no":{"id":"flag-no","name":"Norway Flag","keywords":["no","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1f4","native":"🇳🇴"}],"version":2},"flag-np":{"id":"flag-np","name":"Nepal Flag","keywords":["np","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1f5","native":"🇳🇵"}],"version":2},"flag-nr":{"id":"flag-nr","name":"Nauru Flag","keywords":["nr","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1f7","native":"🇳🇷"}],"version":2},"flag-nu":{"id":"flag-nu","name":"Niue Flag","keywords":["nu","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1fa","native":"🇳🇺"}],"version":2},"flag-nz":{"id":"flag-nz","name":"New Zealand Flag","keywords":["nz","nation","country","banner"],"skins":[{"unified":"1f1f3-1f1ff","native":"🇳🇿"}],"version":2},"flag-om":{"id":"flag-om","name":"Oman Flag","keywords":["om","symbol","nation","country","banner"],"skins":[{"unified":"1f1f4-1f1f2","native":"🇴🇲"}],"version":2},"flag-pa":{"id":"flag-pa","name":"Panama Flag","keywords":["pa","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1e6","native":"🇵🇦"}],"version":2},"flag-pe":{"id":"flag-pe","name":"Peru Flag","keywords":["pe","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1ea","native":"🇵🇪"}],"version":2},"flag-pf":{"id":"flag-pf","name":"French Polynesia Flag","keywords":["pf","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1eb","native":"🇵🇫"}],"version":2},"flag-pg":{"id":"flag-pg","name":"Papua New Guinea Flag","keywords":["pg","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1ec","native":"🇵🇬"}],"version":2},"flag-ph":{"id":"flag-ph","name":"Philippines Flag","keywords":["ph","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1ed","native":"🇵🇭"}],"version":2},"flag-pk":{"id":"flag-pk","name":"Pakistan Flag","keywords":["pk","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f0","native":"🇵🇰"}],"version":2},"flag-pl":{"id":"flag-pl","name":"Poland Flag","keywords":["pl","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f1","native":"🇵🇱"}],"version":2},"flag-pm":{"id":"flag-pm","name":"St. Pierre & Miquelon Flag","keywords":["pm","st","saint","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f2","native":"🇵🇲"}],"version":2},"flag-pn":{"id":"flag-pn","name":"Pitcairn Islands Flag","keywords":["pn","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f3","native":"🇵🇳"}],"version":2},"flag-pr":{"id":"flag-pr","name":"Puerto Rico Flag","keywords":["pr","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f7","native":"🇵🇷"}],"version":2},"flag-ps":{"id":"flag-ps","name":"Palestinian Territories Flag","keywords":["ps","palestine","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f8","native":"🇵🇸"}],"version":2},"flag-pt":{"id":"flag-pt","name":"Portugal Flag","keywords":["pt","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1f9","native":"🇵🇹"}],"version":2},"flag-pw":{"id":"flag-pw","name":"Palau Flag","keywords":["pw","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1fc","native":"🇵🇼"}],"version":2},"flag-py":{"id":"flag-py","name":"Paraguay Flag","keywords":["py","nation","country","banner"],"skins":[{"unified":"1f1f5-1f1fe","native":"🇵🇾"}],"version":2},"flag-qa":{"id":"flag-qa","name":"Qatar Flag","keywords":["qa","nation","country","banner"],"skins":[{"unified":"1f1f6-1f1e6","native":"🇶🇦"}],"version":2},"flag-re":{"id":"flag-re","name":"Réunion Flag","keywords":["re","reunion","nation","country","banner"],"skins":[{"unified":"1f1f7-1f1ea","native":"🇷🇪"}],"version":2},"flag-ro":{"id":"flag-ro","name":"Romania Flag","keywords":["ro","nation","country","banner"],"skins":[{"unified":"1f1f7-1f1f4","native":"🇷🇴"}],"version":2},"flag-rs":{"id":"flag-rs","name":"Serbia Flag","keywords":["rs","nation","country","banner"],"skins":[{"unified":"1f1f7-1f1f8","native":"🇷🇸"}],"version":2},"ru":{"id":"ru","name":"Russia Flag","keywords":["ru","russian","federation","nation","country","banner"],"skins":[{"unified":"1f1f7-1f1fa","native":"🇷🇺"}],"version":1},"flag-rw":{"id":"flag-rw","name":"Rwanda Flag","keywords":["rw","nation","country","banner"],"skins":[{"unified":"1f1f7-1f1fc","native":"🇷🇼"}],"version":2},"flag-sa":{"id":"flag-sa","name":"Saudi Arabia Flag","keywords":["sa","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1e6","native":"🇸🇦"}],"version":2},"flag-sb":{"id":"flag-sb","name":"Solomon Islands Flag","keywords":["sb","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1e7","native":"🇸🇧"}],"version":2},"flag-sc":{"id":"flag-sc","name":"Seychelles Flag","keywords":["sc","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1e8","native":"🇸🇨"}],"version":2},"flag-sd":{"id":"flag-sd","name":"Sudan Flag","keywords":["sd","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1e9","native":"🇸🇩"}],"version":2},"flag-se":{"id":"flag-se","name":"Sweden Flag","keywords":["se","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1ea","native":"🇸🇪"}],"version":2},"flag-sg":{"id":"flag-sg","name":"Singapore Flag","keywords":["sg","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1ec","native":"🇸🇬"}],"version":2},"flag-sh":{"id":"flag-sh","name":"St. Helena Flag","keywords":["sh","st","saint","ascension","tristan","cunha","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1ed","native":"🇸🇭"}],"version":2},"flag-si":{"id":"flag-si","name":"Slovenia Flag","keywords":["si","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1ee","native":"🇸🇮"}],"version":2},"flag-sj":{"id":"flag-sj","name":"Svalbard & Jan Mayen Flag","keywords":["sj"],"skins":[{"unified":"1f1f8-1f1ef","native":"🇸🇯"}],"version":2},"flag-sk":{"id":"flag-sk","name":"Slovakia Flag","keywords":["sk","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f0","native":"🇸🇰"}],"version":2},"flag-sl":{"id":"flag-sl","name":"Sierra Leone Flag","keywords":["sl","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f1","native":"🇸🇱"}],"version":2},"flag-sm":{"id":"flag-sm","name":"San Marino Flag","keywords":["sm","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f2","native":"🇸🇲"}],"version":2},"flag-sn":{"id":"flag-sn","name":"Senegal Flag","keywords":["sn","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f3","native":"🇸🇳"}],"version":2},"flag-so":{"id":"flag-so","name":"Somalia Flag","keywords":["so","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f4","native":"🇸🇴"}],"version":2},"flag-sr":{"id":"flag-sr","name":"Suriname Flag","keywords":["sr","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f7","native":"🇸🇷"}],"version":2},"flag-ss":{"id":"flag-ss","name":"South Sudan Flag","keywords":["ss","sd","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f8","native":"🇸🇸"}],"version":2},"flag-st":{"id":"flag-st","name":"São Tomé & Príncipe Flag","keywords":["st","sao","tome","principe","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1f9","native":"🇸🇹"}],"version":2},"flag-sv":{"id":"flag-sv","name":"El Salvador Flag","keywords":["sv","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1fb","native":"🇸🇻"}],"version":2},"flag-sx":{"id":"flag-sx","name":"Sint Maarten Flag","keywords":["sx","dutch","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1fd","native":"🇸🇽"}],"version":2},"flag-sy":{"id":"flag-sy","name":"Syria Flag","keywords":["sy","syrian","arab","republic","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1fe","native":"🇸🇾"}],"version":2},"flag-sz":{"id":"flag-sz","name":"Eswatini Flag","keywords":["sz","nation","country","banner"],"skins":[{"unified":"1f1f8-1f1ff","native":"🇸🇿"}],"version":2},"flag-ta":{"id":"flag-ta","name":"Tristan Da Cunha Flag","keywords":["ta"],"skins":[{"unified":"1f1f9-1f1e6","native":"🇹🇦"}],"version":2},"flag-tc":{"id":"flag-tc","name":"Turks & Caicos Islands Flag","keywords":["tc","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1e8","native":"🇹🇨"}],"version":2},"flag-td":{"id":"flag-td","name":"Chad Flag","keywords":["td","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1e9","native":"🇹🇩"}],"version":2},"flag-tf":{"id":"flag-tf","name":"French Southern Territories Flag","keywords":["tf","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1eb","native":"🇹🇫"}],"version":2},"flag-tg":{"id":"flag-tg","name":"Togo Flag","keywords":["tg","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1ec","native":"🇹🇬"}],"version":2},"flag-th":{"id":"flag-th","name":"Thailand Flag","keywords":["th","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1ed","native":"🇹🇭"}],"version":2},"flag-tj":{"id":"flag-tj","name":"Tajikistan Flag","keywords":["tj","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1ef","native":"🇹🇯"}],"version":2},"flag-tk":{"id":"flag-tk","name":"Tokelau Flag","keywords":["tk","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f0","native":"🇹🇰"}],"version":2},"flag-tl":{"id":"flag-tl","name":"Timor-Leste Flag","keywords":["tl","timor","leste","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f1","native":"🇹🇱"}],"version":2},"flag-tm":{"id":"flag-tm","name":"Turkmenistan Flag","keywords":["tm","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f2","native":"🇹🇲"}],"version":2},"flag-tn":{"id":"flag-tn","name":"Tunisia Flag","keywords":["tn","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f3","native":"🇹🇳"}],"version":2},"flag-to":{"id":"flag-to","name":"Tonga Flag","keywords":["to","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f4","native":"🇹🇴"}],"version":2},"flag-tr":{"id":"flag-tr","name":"Turkey Flag","keywords":["tr","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f7","native":"🇹🇷"}],"version":2},"flag-tt":{"id":"flag-tt","name":"Trinidad & Tobago Flag","keywords":["tt","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1f9","native":"🇹🇹"}],"version":2},"flag-tv":{"id":"flag-tv","name":"Tuvalu Flag","keywords":["tv","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1fb","native":"🇹🇻"}],"version":2},"flag-tw":{"id":"flag-tw","name":"Taiwan Flag","keywords":["tw","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1fc","native":"🇹🇼"}],"version":2},"flag-tz":{"id":"flag-tz","name":"Tanzania Flag","keywords":["tz","united","republic","nation","country","banner"],"skins":[{"unified":"1f1f9-1f1ff","native":"🇹🇿"}],"version":2},"flag-ua":{"id":"flag-ua","name":"Ukraine Flag","keywords":["ua","nation","country","banner"],"skins":[{"unified":"1f1fa-1f1e6","native":"🇺🇦"}],"version":2},"flag-ug":{"id":"flag-ug","name":"Uganda Flag","keywords":["ug","nation","country","banner"],"skins":[{"unified":"1f1fa-1f1ec","native":"🇺🇬"}],"version":2},"flag-um":{"id":"flag-um","name":"U.s. Outlying Islands Flag","keywords":["um","u","s"],"skins":[{"unified":"1f1fa-1f1f2","native":"🇺🇲"}],"version":2},"flag-un":{"id":"flag-un","name":"United Nations Flag","keywords":["un","banner"],"skins":[{"unified":"1f1fa-1f1f3","native":"🇺🇳"}],"version":4},"us":{"id":"us","name":"United States Flag","keywords":["us","america","nation","country","banner"],"skins":[{"unified":"1f1fa-1f1f8","native":"🇺🇸"}],"version":1},"flag-uy":{"id":"flag-uy","name":"Uruguay Flag","keywords":["uy","nation","country","banner"],"skins":[{"unified":"1f1fa-1f1fe","native":"🇺🇾"}],"version":2},"flag-uz":{"id":"flag-uz","name":"Uzbekistan Flag","keywords":["uz","nation","country","banner"],"skins":[{"unified":"1f1fa-1f1ff","native":"🇺🇿"}],"version":2},"flag-va":{"id":"flag-va","name":"Vatican City Flag","keywords":["va","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1e6","native":"🇻🇦"}],"version":2},"flag-vc":{"id":"flag-vc","name":"St. Vincent & Grenadines Flag","keywords":["vc","st","saint","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1e8","native":"🇻🇨"}],"version":2},"flag-ve":{"id":"flag-ve","name":"Venezuela Flag","keywords":["ve","bolivarian","republic","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1ea","native":"🇻🇪"}],"version":2},"flag-vg":{"id":"flag-vg","name":"British Virgin Islands Flag","keywords":["vg","bvi","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1ec","native":"🇻🇬"}],"version":2},"flag-vi":{"id":"flag-vi","name":"U.s. Virgin Islands Flag","keywords":["vi","u","s","us","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1ee","native":"🇻🇮"}],"version":2},"flag-vn":{"id":"flag-vn","name":"Vietnam Flag","keywords":["vn","viet","nam","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1f3","native":"🇻🇳"}],"version":2},"flag-vu":{"id":"flag-vu","name":"Vanuatu Flag","keywords":["vu","nation","country","banner"],"skins":[{"unified":"1f1fb-1f1fa","native":"🇻🇺"}],"version":2},"flag-wf":{"id":"flag-wf","name":"Wallis & Futuna Flag","keywords":["wf","nation","country","banner"],"skins":[{"unified":"1f1fc-1f1eb","native":"🇼🇫"}],"version":2},"flag-ws":{"id":"flag-ws","name":"Samoa Flag","keywords":["ws","nation","country","banner"],"skins":[{"unified":"1f1fc-1f1f8","native":"🇼🇸"}],"version":2},"flag-xk":{"id":"flag-xk","name":"Kosovo Flag","keywords":["xk","nation","country","banner"],"skins":[{"unified":"1f1fd-1f1f0","native":"🇽🇰"}],"version":2},"flag-ye":{"id":"flag-ye","name":"Yemen Flag","keywords":["ye","nation","country","banner"],"skins":[{"unified":"1f1fe-1f1ea","native":"🇾🇪"}],"version":2},"flag-yt":{"id":"flag-yt","name":"Mayotte Flag","keywords":["yt","nation","country","banner"],"skins":[{"unified":"1f1fe-1f1f9","native":"🇾🇹"}],"version":2},"flag-za":{"id":"flag-za","name":"South Africa Flag","keywords":["za","nation","country","banner"],"skins":[{"unified":"1f1ff-1f1e6","native":"🇿🇦"}],"version":2},"flag-zm":{"id":"flag-zm","name":"Zambia Flag","keywords":["zm","nation","country","banner"],"skins":[{"unified":"1f1ff-1f1f2","native":"🇿🇲"}],"version":2},"flag-zw":{"id":"flag-zw","name":"Zimbabwe Flag","keywords":["zw","nation","country","banner"],"skins":[{"unified":"1f1ff-1f1fc","native":"🇿🇼"}],"version":2},"flag-england":{"id":"flag-england","name":"England Flag","keywords":["english"],"skins":[{"unified":"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f","native":"🏴"}],"version":5},"flag-scotland":{"id":"flag-scotland","name":"Scotland Flag","keywords":["scottish"],"skins":[{"unified":"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f","native":"🏴"}],"version":5},"flag-wales":{"id":"flag-wales","name":"Wales Flag","keywords":["welsh"],"skins":[{"unified":"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f","native":"🏴"}],"version":5}}`),Wje={satisfied:"laughing",grinning_face_with_star_eyes:"star-struck",grinning_face_with_one_large_and_one_small_eye:"zany_face",smiling_face_with_smiling_eyes_and_hand_covering_mouth:"face_with_hand_over_mouth",face_with_finger_covering_closed_lips:"shushing_face",face_with_one_eyebrow_raised:"face_with_raised_eyebrow",face_with_open_mouth_vomiting:"face_vomiting",shocked_face_with_exploding_head:"exploding_head",serious_face_with_symbols_covering_mouth:"face_with_symbols_on_mouth",poop:"hankey",shit:"hankey",collision:"boom",raised_hand:"hand",hand_with_index_and_middle_fingers_crossed:"crossed_fingers",sign_of_the_horns:"the_horns",reversed_hand_with_middle_finger_extended:"middle_finger",thumbsup:"+1",thumbsdown:"-1",punch:"facepunch",mother_christmas:"mrs_claus",running:"runner","man-with-bunny-ears-partying":"men-with-bunny-ears-partying","woman-with-bunny-ears-partying":"women-with-bunny-ears-partying",women_holding_hands:"two_women_holding_hands",woman_and_man_holding_hands:"man_and_woman_holding_hands",couple:"man_and_woman_holding_hands",men_holding_hands:"two_men_holding_hands",paw_prints:"feet",flipper:"dolphin",honeybee:"bee",lady_beetle:"ladybug",cooking:"fried_egg",knife:"hocho",red_car:"car",sailboat:"boat",waxing_gibbous_moon:"moon",sun_small_cloud:"mostly_sunny",sun_behind_cloud:"barely_sunny",sun_behind_rain_cloud:"partly_sunny_rain",lightning_cloud:"lightning",tornado_cloud:"tornado",tshirt:"shirt",shoe:"mans_shoe",telephone:"phone",lantern:"izakaya_lantern",open_book:"book",envelope:"email",pencil:"memo",heavy_exclamation_mark:"exclamation",staff_of_aesculapius:"medical_symbol","flag-cn":"cn","flag-de":"de","flag-es":"es","flag-fr":"fr",uk:"gb","flag-gb":"gb","flag-it":"it","flag-jp":"jp","flag-kr":"kr","flag-ru":"ru","flag-us":"us"},Uje={cols:61,rows:61},Vje={categories:zje,emojis:qje,aliases:Wje,sheet:Uje};function iW(t){return t&&t.__esModule?t.default:t}function Qs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OO,Xe,rW,wg,sW,OM,rw={},aW=[],Hje=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function dc(t,e){for(var n in e)t[n]=e[n];return t}function oW(t){var e=t.parentNode;e&&e.removeChild(t)}function I3(t,e,n){var i,r,s,a={};for(s in e)s=="key"?i=e[s]:s=="ref"?r=e[s]:a[s]=e[s];if(arguments.length>2&&(a.children=arguments.length>3?OO.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)a[s]===void 0&&(a[s]=t.defaultProps[s]);return Jb(t,a,i,r,null)}function Jb(t,e,n,i,r){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++rW};return r==null&&Xe.vnode!=null&&Xe.vnode(s),s}function el(){return{current:null}}function qd(t){return t.children}function Oo(t,e){this.props=t,this.context=e}function Wd(t,e){if(e==null)return t.__?Wd(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?Wd(t):null}function lW(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return lW(t)}}function xM(t){(!t.__d&&(t.__d=!0)&&wg.push(t)&&!sw.__r++||OM!==Xe.debounceRendering)&&((OM=Xe.debounceRendering)||sW)(sw)}function sw(){for(var t;sw.__r=wg.length;)t=wg.sort(function(e,n){return e.__v.__b-n.__v.__b}),wg=[],t.some(function(e){var n,i,r,s,a,o;e.__d&&(a=(s=(n=e).__v).__e,(o=n.__P)&&(i=[],(r=dc({},s)).__v=s.__v+1,l5(o,s,r,n.__n,o.ownerSVGElement!==void 0,s.__h!=null?[a]:null,i,a??Wd(s),s.__h),dW(i,s),s.__e!=a&&lW(s)))})}function cW(t,e,n,i,r,s,a,o,l,c){var f,u,h,m,g,v,w,O=i&&i.__k||aW,x=O.length;for(n.__k=[],f=0;f<e.length;f++)if((m=n.__k[f]=(m=e[f])==null||typeof m=="boolean"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?Jb(null,m,null,null,m):Array.isArray(m)?Jb(qd,{children:m},null,null,null):m.__b>0?Jb(m.type,m.props,m.key,null,m.__v):m)!=null){if(m.__=n,m.__b=n.__b+1,(h=O[f])===null||h&&m.key==h.key&&m.type===h.type)O[f]=void 0;else for(u=0;u<x;u++){if((h=O[u])&&m.key==h.key&&m.type===h.type){O[u]=void 0;break}h=null}l5(t,m,h=h||rw,r,s,a,o,l,c),g=m.__e,(u=m.ref)&&h.ref!=u&&(w||(w=[]),h.ref&&w.push(h.ref,null,m),w.push(u,m.__c||g,m)),g!=null?(v==null&&(v=g),typeof m.type=="function"&&m.__k===h.__k?m.__d=l=fW(m,l,t):l=uW(t,m,h,O,g,l),typeof n.type=="function"&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=Wd(h))}for(n.__e=v,f=x;f--;)O[f]!=null&&(typeof n.type=="function"&&O[f].__e!=null&&O[f].__e==n.__d&&(n.__d=Wd(i,f+1)),pW(O[f],O[f]));if(w)for(f=0;f<w.length;f++)hW(w[f],w[++f],w[++f])}function fW(t,e,n){for(var i,r=t.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=t,e=typeof i.type=="function"?fW(i,e,n):uW(n,i,i,r,i.__e,e));return e}function aw(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){aw(n,e)}):e.push(t)),e}function uW(t,e,n,i,r,s){var a,o,l;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||r!=s||r.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(r),a=null;else{for(o=s,l=0;(o=o.nextSibling)&&l<i.length;l+=2)if(o==r)break e;t.insertBefore(r,s),a=s}return a!==void 0?a:r.nextSibling}function Zje(t,e,n,i,r){var s;for(s in n)s==="children"||s==="key"||s in e||ow(t,s,null,n[s],i);for(s in e)r&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||ow(t,s,e[s],n[s],i)}function SM(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||Hje.test(e)?n:n+"px"}function ow(t,e,n,i,r){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||SM(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||SM(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?i||t.addEventListener(e,s?CM:_M,s):t.removeEventListener(e,s?CM:_M,s);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function _M(t){this.l[t.type+!1](Xe.event?Xe.event(t):t)}function CM(t){this.l[t.type+!0](Xe.event?Xe.event(t):t)}function l5(t,e,n,i,r,s,a,o,l){var c,f,u,h,m,g,v,w,O,x,$,T=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,o=e.__e=n.__e,e.__h=null,s=[o]),(c=Xe.__b)&&c(e);try{e:if(typeof T=="function"){if(w=e.props,O=(c=T.contextType)&&i[c.__c],x=c?O?O.props.value:c.__:i,n.__c?v=(f=e.__c=n.__c).__=f.__E:("prototype"in T&&T.prototype.render?e.__c=f=new T(w,x):(e.__c=f=new Oo(w,x),f.constructor=T,f.render=Xje),O&&O.sub(f),f.props=w,f.state||(f.state={}),f.context=x,f.__n=i,u=f.__d=!0,f.__h=[]),f.__s==null&&(f.__s=f.state),T.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=dc({},f.__s)),dc(f.__s,T.getDerivedStateFromProps(w,f.__s))),h=f.props,m=f.state,u)T.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(T.getDerivedStateFromProps==null&&w!==h&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(w,x),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(w,f.__s,x)===!1||e.__v===n.__v){f.props=w,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(S){S&&(S.__=e)}),f.__h.length&&a.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(w,f.__s,x),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(h,m,g)})}f.context=x,f.props=w,f.state=f.__s,(c=Xe.__r)&&c(e),f.__d=!1,f.__v=e,f.__P=t,c=f.render(f.props,f.state,f.context),f.state=f.__s,f.getChildContext!=null&&(i=dc(dc({},i),f.getChildContext())),u||f.getSnapshotBeforeUpdate==null||(g=f.getSnapshotBeforeUpdate(h,m)),$=c!=null&&c.type===qd&&c.key==null?c.props.children:c,cW(t,Array.isArray($)?$:[$],e,n,i,r,s,a,o,l),f.base=e.__e,e.__h=null,f.__h.length&&a.push(f),v&&(f.__E=f.__=null),f.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Gje(n.__e,e,n,i,r,s,a,l);(c=Xe.diffed)&&c(e)}catch(S){e.__v=null,(l||s!=null)&&(e.__e=o,e.__h=!!l,s[s.indexOf(o)]=null),Xe.__e(S,e,n)}}function dW(t,e){Xe.__c&&Xe.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(i){i.call(n)})}catch(i){Xe.__e(i,n.__v)}})}function Gje(t,e,n,i,r,s,a,o){var l,c,f,u=n.props,h=e.props,m=e.type,g=0;if(m==="svg"&&(r=!0),s!=null){for(;g<s.length;g++)if((l=s[g])&&"setAttribute"in l==!!m&&(m?l.localName===m:l.nodeType===3)){t=l,s[g]=null;break}}if(t==null){if(m===null)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),s=null,o=!1}if(m===null)u===h||o&&t.data===h||(t.data=h);else{if(s=s&&OO.call(t.childNodes),c=(u=n.props||rw).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!o){if(s!=null)for(u={},g=0;g<t.attributes.length;g++)u[t.attributes[g].name]=t.attributes[g].value;(f||c)&&(f&&(c&&f.__html==c.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(Zje(t,h,u,r,o),f)e.__k=[];else if(g=e.props.children,cW(t,Array.isArray(g)?g:[g],e,n,i,r&&m!=="foreignObject",s,a,s?s[0]:n.__k&&Wd(n,0),o),s!=null)for(g=s.length;g--;)s[g]!=null&&oW(s[g]);o||("value"in h&&(g=h.value)!==void 0&&(g!==u.value||g!==t.value||m==="progress"&&!g)&&ow(t,"value",g,u.value,!1),"checked"in h&&(g=h.checked)!==void 0&&g!==t.checked&&ow(t,"checked",g,u.checked,!1))}return t}function hW(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(i){Xe.__e(i,n)}}function pW(t,e,n){var i,r;if(Xe.unmount&&Xe.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||hW(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){Xe.__e(s,e)}i.base=i.__P=null}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&pW(i[r],e,typeof t.type!="function");n||t.__e==null||oW(t.__e),t.__e=t.__d=void 0}function Xje(t,e,n){return this.constructor(t,n)}function mW(t,e,n){var i,r,s;Xe.__&&Xe.__(t,e),r=(i=typeof n=="function")?null:n&&n.__k||e.__k,s=[],l5(e,t=(!i&&n||e).__k=I3(qd,null,[t]),r||rw,rw,e.ownerSVGElement!==void 0,!i&&n?[n]:r?null:e.firstChild?OO.call(e.childNodes):null,s,!i&&n?n:r?r.__e:e.firstChild,i),dW(s,t)}OO=aW.slice,Xe={__e:function(t,e){for(var n,i,r;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(t)),r=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t),r=n.__d),r)return n.__E=n}catch(s){t=s}throw t}},rW=0,Oo.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=dc({},this.state),typeof t=="function"&&(t=t(dc({},n),this.props)),t&&dc(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),xM(this))},Oo.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),xM(this))},Oo.prototype.render=qd,wg=[],sW=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sw.__r=0;var Yje=0;function ue(t,e,n,i,r){var s,a,o={};for(a in e)a=="ref"?s=e[a]:o[a]=e[a];var l={type:t,props:o,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Yje,__source:i,__self:r};if(typeof t=="function"&&(s=t.defaultProps))for(a in s)o[a]===void 0&&(o[a]=s[a]);return Xe.vnode&&Xe.vnode(l),l}function Kje(t,e){try{window.localStorage[`emoji-mart.${t}`]=JSON.stringify(e)}catch{}}function Jje(t){try{const e=window.localStorage[`emoji-mart.${t}`];if(e)return JSON.parse(e)}catch{}}var yc={set:Kje,get:Jje};const bS=new Map,eIe=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function tIe(){for(const{v:t,emoji:e}of eIe)if(gW(e))return t}function nIe(){return!gW("🇨🇦")}function gW(t){if(bS.has(t))return bS.get(t);const e=iIe(t);return bS.set(t,e),e}const iIe=(()=>{let t=null;try{navigator.userAgent.includes("jsdom")||(t=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!t)return()=>!1;const e=25,n=20,i=Math.floor(e/2);return t.font=i+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,r=>{t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(r,0,22),t.fillStyle="#0000FF",t.fillText(r,n,22);const s=t.getImageData(0,0,n,e).data,a=s.length;let o=0;for(;o<a&&!s[o+3];o+=4);if(o>=a)return!1;const l=n+o/4%n,c=Math.floor(o/4/n),f=t.getImageData(l,c,1,1).data;return!(s[o]!==f[0]||s[o+2]!==f[2]||t.measureText(r).width>=n)}})();var $M={latestVersion:tIe,noCountryFlags:nIe};const B3=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Mi=null;function rIe(t){Mi||(Mi=yc.get("frequently")||{});const e=t.id||t;e&&(Mi[e]||(Mi[e]=0),Mi[e]+=1,yc.set("last",e),yc.set("frequently",Mi))}function sIe({maxFrequentRows:t,perLine:e}){if(!t)return[];Mi||(Mi=yc.get("frequently"));let n=[];if(!Mi){Mi={};for(let s in B3.slice(0,e)){const a=B3[s];Mi[a]=e-s,n.push(a)}return n}const i=t*e,r=yc.get("last");for(let s in Mi)n.push(s);if(n.sort((s,a)=>{const o=Mi[a],l=Mi[s];return o==l?s.localeCompare(a):o-l}),n.length>i){const s=n.slice(i);n=n.slice(0,i);for(let a of s)a!=r&&delete Mi[a];r&&n.indexOf(r)==-1&&(delete Mi[n[n.length-1]],n.splice(-1,1,r)),yc.set("frequently",Mi)}return n}var vW={add:rIe,get:sIe,DEFAULTS:B3},bW={};bW=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var al={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Vi=null,$t=null;const yS={};async function PM(t){if(yS[t])return yS[t];const n=await(await fetch(t)).json();return yS[t]=n,n}let wS=null,yW=null,wW=!1;function xO(t,{caller:e}={}){return wS||(wS=new Promise(n=>{yW=n})),t?aIe(t):e&&!wW&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),wS}async function aIe(t){wW=!0;let{emojiVersion:e,set:n,locale:i}=t;if(e||(e=al.emojiVersion.value),n||(n=al.set.value),i||(i=al.locale.value),$t)$t.categories=$t.categories.filter(l=>!l.name);else{$t=(typeof t.data=="function"?await t.data():t.data)||await PM(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`),$t.emoticons={},$t.natives={},$t.categories.unshift({id:"frequent",emojis:[]});for(const l in $t.aliases){const c=$t.aliases[l],f=$t.emojis[c];f&&(f.aliases||(f.aliases=[]),f.aliases.push(l))}$t.originalCategories=$t.categories}if(Vi=(typeof t.i18n=="function"?await t.i18n():t.i18n)||(i=="en"?iW(bW):await PM(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),t.custom)for(let l in t.custom){l=parseInt(l);const c=t.custom[l],f=t.custom[l-1];if(!(!c.emojis||!c.emojis.length)){c.id||(c.id=`custom_${l+1}`),c.name||(c.name=Vi.categories.custom),f&&!c.icon&&(c.target=f.target||f),$t.categories.push(c);for(const u of c.emojis)$t.emojis[u.id]=u}}t.categories&&($t.categories=$t.originalCategories.filter(l=>t.categories.indexOf(l.id)!=-1).sort((l,c)=>{const f=t.categories.indexOf(l.id),u=t.categories.indexOf(c.id);return f-u}));let r=null,s=null;n=="native"&&(r=$M.latestVersion(),s=t.noCountryFlags||$M.noCountryFlags());let a=$t.categories.length,o=!1;for(;a--;){const l=$t.categories[a];if(l.id=="frequent"){let{maxFrequentRows:u,perLine:h}=t;u=u>=0?u:al.maxFrequentRows.value,h||(h=al.perLine.value),l.emojis=vW.get({maxFrequentRows:u,perLine:h})}if(!l.emojis||!l.emojis.length){$t.categories.splice(a,1);continue}const{categoryIcons:c}=t;if(c){const u=c[l.id];u&&!l.icon&&(l.icon=u)}let f=l.emojis.length;for(;f--;){const u=l.emojis[f],h=u.id?u:$t.emojis[u],m=()=>{l.emojis.splice(f,1)};if(!h||t.exceptEmojis&&t.exceptEmojis.includes(h.id)){m();continue}if(r&&h.version>r){m();continue}if(s&&l.id=="flags"&&!uIe.includes(h.id)){m();continue}if(!h.search){if(o=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([v,w])=>{if(v)return(Array.isArray(v)?v:[v]).map(O=>(w?O.split(/[-|_|\s]+/):[O]).map(x=>x.toLowerCase())).flat()}).flat().filter(v=>v&&v.trim()).join(","),h.emoticons)for(const v of h.emoticons)$t.emoticons[v]||($t.emoticons[v]=h.id);let g=0;for(const v of h.skins){if(!v)continue;g++;const{native:w}=v;w&&($t.natives[w]=h.id,h.search+=`,${w}`);const O=g==1?"":`:skin-tone-${g}:`;v.shortcodes=`:${h.id}:${O}`}}}}o&&kd.reset(),yW()}function kW(t,e,n){t||(t={});const i={};for(let r in e)i[r]=OW(r,t,e,n);return i}function OW(t,e,n,i){const r=n[t];let s=i&&i.getAttribute(t)||(e[t]!=null&&e[t]!=null?e[t]:null);return r&&(s!=null&&r.value&&typeof r.value!=typeof s&&(typeof r.value=="boolean"?s=s!="false":s=r.value.constructor(s)),r.transform&&s&&(s=r.transform(s)),(s==null||r.choices&&r.choices.indexOf(s)==-1)&&(s=r.value)),s}const oIe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let F3=null;function lIe(t){return t.id?t:$t.emojis[t]||$t.emojis[$t.aliases[t]]||$t.emojis[$t.natives[t]]}function cIe(){F3=null}async function fIe(t,{maxResults:e,caller:n}={}){if(!t||!t.trim().length)return null;e||(e=90),await xO(null,{caller:n||"SearchIndex.search"});const i=t.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((o,l,c)=>o.trim()&&c.indexOf(o)==l);if(!i.length)return;let r=F3||(F3=Object.values($t.emojis)),s,a;for(const o of i){if(!r.length)break;s=[],a={};for(const l of r){if(!l.search)continue;const c=l.search.indexOf(`,${o}`);c!=-1&&(s.push(l),a[l.id]||(a[l.id]=0),a[l.id]+=l.id==o?0:c+1)}r=s}return s.length<2||(s.sort((o,l)=>{const c=a[o.id],f=a[l.id];return c==f?o.id.localeCompare(l.id):c-f}),s.length>e&&(s=s.slice(0,e))),s}var kd={search:fIe,get:lIe,reset:cIe,SHORTCODES_REGEX:oIe};const uIe=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function dIe(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,i)=>n==e[i])}async function hIe(t=1){for(let e in[...Array(t).keys()])await new Promise(requestAnimationFrame)}function pIe(t,{skinIndex:e=0}={}){const n=t.skins[e]||(e=0,t.skins[e]),i={id:t.id,name:t.name,native:n.native,unified:n.unified,keywords:t.keywords,shortcodes:n.shortcodes||t.shortcodes};return t.skins.length>1&&(i.skin=e+1),n.src&&(i.src=n.src),t.aliases&&t.aliases.length&&(i.aliases=t.aliases),t.emoticons&&t.emoticons.length&&(i.emoticons=t.emoticons),i}const mIe={activity:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ue("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:ue("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ue("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ue("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ue("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),ue("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ue("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),ue("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:ue("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ue("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),ue("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:ue("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ue("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),ue("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ue("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),ue("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ue("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ue("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},gIe={loupe:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ue("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:ue("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ue("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var lw={categories:mIe,search:gIe};function Q3(t){let{id:e,skin:n,emoji:i}=t;if(t.shortcodes){const o=t.shortcodes.match(kd.SHORTCODES_REGEX);o&&(e=o[1],o[2]&&(n=o[2]))}if(i||(i=kd.get(e||t.native)),!i)return t.fallback;const r=i.skins[n-1]||i.skins[0],s=r.src||(t.set!="native"&&!t.spritesheet?typeof t.getImageURL=="function"?t.getImageURL(t.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/64/${r.unified}.png`:void 0),a=typeof t.getSpritesheetURL=="function"?t.getSpritesheetURL(t.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/sheets-256/64.png`;return ue("span",{class:"emoji-mart-emoji","data-emoji-set":t.set,children:s?ue("img",{style:{maxWidth:t.size||"1em",maxHeight:t.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:s}):t.set=="native"?ue("span",{style:{fontSize:t.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):ue("span",{style:{display:"block",width:t.size,height:t.size,backgroundImage:`url(${a})`,backgroundSize:`${100*$t.sheet.cols}% ${100*$t.sheet.rows}%`,backgroundPosition:`${100/($t.sheet.cols-1)*r.x}% ${100/($t.sheet.rows-1)*r.y}%`}})})}const vIe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class xW extends vIe{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let n in e)this.attributeChangedCallback(n,null,e[n])}attributeChangedCallback(e,n,i){if(!this.component)return;const r=OW(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let n=null;const i=e.parent||(n=e.ref&&e.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class bIe extends xW{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const n=document.createElement("style");n.textContent=e,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(e,{styles:n}={}){super(e),this.setShadow(),this.injectStyles(n)}}var SW={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:t=>/\D/.test(t)?t:`${t}px`},set:al.set,skin:al.skin};class _W extends xW{async connectedCallback(){const e=kW(this.props,SW,this);e.element=this,e.ref=n=>{this.component=n},await xO(),!this.disconnected&&mW(ue(Q3,{...e}),this)}constructor(e){super(e)}}Qs(_W,"Props",SW);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",_W);var TM,z3=[],AM=Xe.__b,EM=Xe.__r,RM=Xe.diffed,DM=Xe.__c,MM=Xe.unmount;function yIe(){var t;for(z3.sort(function(e,n){return e.__v.__b-n.__v.__b});t=z3.pop();)if(t.__P)try{t.__H.__h.forEach(ey),t.__H.__h.forEach(q3),t.__H.__h=[]}catch(e){t.__H.__h=[],Xe.__e(e,t.__v)}}Xe.__b=function(t){AM&&AM(t)},Xe.__r=function(t){EM&&EM(t);var e=t.__c.__H;e&&(e.__h.forEach(ey),e.__h.forEach(q3),e.__h=[])},Xe.diffed=function(t){RM&&RM(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(z3.push(e)!==1&&TM===Xe.requestAnimationFrame||((TM=Xe.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(s),NM&&cancelAnimationFrame(i),setTimeout(n)},s=setTimeout(r,100);NM&&(i=requestAnimationFrame(r))})(yIe))},Xe.__c=function(t,e){e.some(function(n){try{n.__h.forEach(ey),n.__h=n.__h.filter(function(i){return!i.__||q3(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Xe.__e(i,n.__v)}}),DM&&DM(t,e)},Xe.unmount=function(t){MM&&MM(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{ey(i)}catch(r){e=r}}),e&&Xe.__e(e,n.__v))};var NM=typeof requestAnimationFrame=="function";function ey(t){var e=t.__c;typeof e=="function"&&(t.__c=void 0,e())}function q3(t){t.__c=t.__()}function wIe(t,e){for(var n in e)t[n]=e[n];return t}function LM(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function cw(t){this.props=t}(cw.prototype=new Oo).isPureReactComponent=!0,cw.prototype.shouldComponentUpdate=function(t,e){return LM(this.props,t)||LM(this.state,e)};var jM=Xe.__b;Xe.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),jM&&jM(t)};var kIe=Xe.__e;Xe.__e=function(t,e,n){if(t.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}kIe(t,e,n)};var IM=Xe.unmount;function kS(){this.__u=0,this.t=null,this.__b=null}function CW(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function Wv(){this.u=null,this.o=null}Xe.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),IM&&IM(t)},(kS.prototype=new Oo).__c=function(t,e){var n=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=CW(i.__v),s=!1,a=function(){s||(s=!0,n.__R=null,r?r(o):o())};n.__R=a;var o=function(){if(!--i.__u){if(i.state.__e){var c=i.state.__e;i.__v.__k[0]=(function u(h,m,g){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(v){return u(v,m,g)}),h.__c&&h.__c.__P===m&&(h.__e&&g.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=g)),h})(c,c.__c.__P,c.__c.__O)}var f;for(i.setState({__e:i.__b=null});f=i.t.pop();)f.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),t.then(a,a)},kS.prototype.componentWillUnmount=function(){this.t=[]},kS.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=(function s(a,o,l){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),a.__c.__H=null),(a=wIe({},a)).__c!=null&&(a.__c.__P===l&&(a.__c.__P=o),a.__c=null),a.__k=a.__k&&a.__k.map(function(c){return s(c,o,l)})),a})(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__e&&I3(qd,null,t.fallback);return r&&(r.__h=null),[I3(qd,null,e.__e?null:t.children),r]};var BM=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};(Wv.prototype=new Oo).__e=function(t){var e=this,n=CW(e.__v),i=e.o.get(t);return i[0]++,function(r){var s=function(){e.props.revealOrder?(i.push(r),BM(e,t,i)):r()};n?n(s):s()}},Wv.prototype.render=function(t){this.u=null,this.o=new Map;var e=aw(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Wv.prototype.componentDidUpdate=Wv.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){BM(t,n,e)})};var OIe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,xIe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,SIe=typeof document<"u",_Ie=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Oo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Oo.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var FM=Xe.event;function CIe(){}function $Ie(){return this.cancelBubble}function PIe(){return this.defaultPrevented}Xe.event=function(t){return FM&&(t=FM(t)),t.persist=CIe,t.isPropagationStopped=$Ie,t.isDefaultPrevented=PIe,t.nativeEvent=t};var QM={configurable:!0,get:function(){return this.class}},zM=Xe.vnode;Xe.vnode=function(t){var e=t.type,n=t.props,i=n;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var s in i={},n){var a=n[s];SIe&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&a==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!_Ie(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(s)?s=s.toLowerCase():r&&xIe.test(s)?s=s.replace(/[A-Z0-9]/,"-$&").toLowerCase():a===null&&(a=void 0),i[s]=a)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=aw(n.children).forEach(function(o){o.props.selected=i.value.indexOf(o.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=aw(n.children).forEach(function(o){o.props.selected=i.multiple?i.defaultValue.indexOf(o.props.value)!=-1:i.defaultValue==o.props.value})),t.props=i,n.class!=n.className&&(QM.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",QM))}t.$$typeof=OIe,zM&&zM(t)};var qM=Xe.__r;Xe.__r=function(t){qM&&qM(t),t.__c};const TIe={light:"outline",dark:"solid"};class AIe extends cw{renderIcon(e){const{icon:n}=e;if(n){if(n.svg)return ue("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return ue("img",{src:n.src})}const i=lw.categories[e.id]||lw.categories.custom,r=this.props.icons=="auto"?TIe[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return ue("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:ue("div",{class:"flex relative",children:[this.categories.map((n,i)=>{const r=n.name||Vi.categories[n.id],s=!this.props.unfocused&&n.id==this.state.categoryId;return s&&(e=i),ue("button",{"aria-label":r,"aria-selected":s||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:a=>a.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),ue("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=$t.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class EIe extends cw{shouldComponentUpdate(e){for(let n in e)if(n!="children"&&e[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const Uv={rowsPerRender:10};class RIe extends Oo{getInitialState(e=this.props){return{skin:yc.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Vi.rtl?"rtl":"ltr",this.refs={menu:el(),navigation:el(),scroll:el(),search:el(),searchInput:el(),skinToneButton:el(),skinToneRadio:el()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const n in e)this.nextState[n]=e[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await xO(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const n of this.observers)e.includes(n)||n.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=$t;this.refs.categories=new Map;const n=$t.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,s)=>{const a=[];a.__categoryId=s.id,a.__index=r.length,this.grid.push(a);const o=this.grid.length-1,l=o%Uv.rowsPerRender?{}:el();return l.index=o,l.posinset=this.grid.setsize+1,r.push(l),a};for(let r of e){const s=[];let a=i(s,r);for(let o of r.emojis)a.length==this.getPerLine()&&(a=i(s,r)),this.grid.setsize+=1,a.push(o);this.refs.categories.set(r.id,{root:el(),rows:s})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:n,emojiButtonSize:i}=e,r=()=>{const{width:a}=n.getBoundingClientRect();return Math.floor(a/i)},s=new ResizeObserver(()=>{this.unobserve({except:s}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return s.observe(n),this.observers.push(s),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,n]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][n];if(r)return kd.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const n=new Map,i=a=>{a!=e.state.categoryId&&e.setState({categoryId:a})},r={root:this.refs.scroll.current,threshold:[0,1]},s=new IntersectionObserver(a=>{for(const l of a){const c=l.target.dataset.id;n.set(c,l.intersectionRatio)}const o=[...n];for(const[l,c]of o)if(c){i(l);break}},r);for(const{root:a}of this.refs.categories.values())s.observe(a.current);this.observers.push(s)}observeRows(){const e={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const s=parseInt(r.target.dataset.index);r.isIntersecting?e[s]=!0:delete e[s]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Uv.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Uv.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:n,left:i,right:r,up:s,down:a}){const o=this.state.searchResults||this.grid;if(!o.length)return;let[l,c]=this.state.pos;const f=(()=>{if(l==0&&c==0&&!e.repeat&&(i||s))return null;if(l==-1)return!e.repeat&&(r||a)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let u=o[l];const h=i?-1:1;if(c+=h,!u[c]){if(l+=h,u=o[l],!u)return l=i?0:o.length-1,c=i?0:o[l].length-1,[l,c];c=i?u.length-1:0}return[l,c]}if(s||a){l+=s?-1:1;const u=o[l];return u?(u[c]||(c=u.length-1),[l,c]):(l=s?0:o.length-1,c=s?0:o[l].length-1,[l,c])}})();if(f)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:f,keyboard:!0},()=>{this.scrollTo({row:f[0]})})}scrollTo({categoryId:e,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,s=r.getBoundingClientRect();let a=0;if(n>=0&&(e=i[n].__categoryId),e&&(a=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(s.top-r.scrollTop)+1),n>=0)if(!n)a=0;else{const o=i[n].__index,l=a+o*this.props.emojiButtonSize,c=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(l<r.scrollTop)a=l;else if(c>r.scrollTop+s.height)a=c-s.height;else return}this.ignoreMouse(),r.scrollTop=a}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=pIe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&vW.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),yc.set("skin",e)}renderNav(){return ue(AIe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return ue("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[ue("div",{class:"flex flex-middle flex-grow",children:[ue("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:ue(Q3,{emoji:e,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),ue("div",{class:`margin-${this.dir[0]}`,children:e||n?ue("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[ue("div",{class:"preview-title ellipsis",children:e?e.name:Vi.search_no_results_1}),ue("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Vi.search_no_results_2})]}):ue("div",{class:"preview-placeholder color-c",children:Vi.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:n,posinset:i,grid:r}){const s=this.props.emojiButtonSize,a=this.state.tempSkin||this.state.skin,l=(e.skins[a-1]||e.skins[0]).native,c=dIe(this.state.pos,n),f=n.concat(e.id).join("");return ue(EIe,{selected:c,skin:a,size:s,children:ue("button",{"aria-label":l,"aria-selected":c||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:u=>this.handleEmojiClick({e:u,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[ue("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),ue(Q3,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:a,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},f)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return ue("div",{children:[ue("div",{class:"spacer"}),ue("div",{class:"flex flex-middle",children:[ue("div",{class:"search relative flex-grow",children:[ue("input",{type:"search",ref:this.refs.searchInput,placeholder:Vi.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),ue("span",{class:"icon loupe flex",children:lw.search.loupe}),this.state.searchResults&&ue("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:lw.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?ue("div",{class:"category",ref:this.refs.search,children:[ue("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Vi.categories.search}),ue("div",{children:e.length?e.map((n,i)=>ue("div",{class:"flex",children:n.map((r,s)=>this.renderEmojiButton(r,{pos:[i,s],posinset:i*this.props.perLine+s+1,grid:e}))})):ue("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&ue("a",{onClick:this.props.onAddCustomEmoji,children:Vi.add_custom})})})]}):null}renderCategories(){const{categories:e}=$t,n=!!this.state.searchResults,i=this.getPerLine();return ue("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:e.map(r=>{const{root:s,rows:a}=this.refs.categories.get(r.id);return ue("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:s,children:[ue("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Vi.categories[r.id]}),ue("div",{class:"relative",style:{height:a.length*this.props.emojiButtonSize},children:a.map((o,l)=>{const c=o.index-o.index%Uv.rowsPerRender,f=this.state.visibleRows[c],u="current"in o?o:void 0;if(!f&&!u)return null;const h=l*i,m=h+i,g=r.emojis.slice(h,m);return g.length<i&&g.push(...new Array(i-g.length)),ue("div",{"data-index":o.index,ref:u,class:"flex row",style:{top:l*this.props.emojiButtonSize},children:f&&g.map((v,w)=>{if(!v)return ue("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const O=kd.get(v);return this.renderEmojiButton(O,{pos:[o.index,w],posinset:o.posinset+w,grid:this.grid})})},o.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:ue("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:ue("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Vi.skins.choose,title:Vi.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:ue("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),n=e?e.name:"";return ue("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),ue("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Vi.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(s=>{const a=s+1,o=this.state.skin==a;return ue("div",{children:[ue("input",{type:"radio",name:"skin-tone",value:a,"aria-label":Vi.skins[a],ref:o?this.refs.skinToneRadio:null,defaultChecked:o,onChange:()=>this.handleSkinMouseOver(a),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(a))}}),ue("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(a),onMouseEnter:()=>this.handleSkinMouseOver(a),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[ue("span",{class:`skin-tone skin-tone-${a}`}),ue("span",{class:"margin-small-lr",children:Vi.skins[a]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return ue("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&ue("div",{class:"padding-lr",children:this.renderSearch()}),ue("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:ue("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),Qs(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Qs(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),Qs(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),Qs(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),Qs(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Qs(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await kd.search(i),s=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},s);const a=n.selectionStart==n.value.length?[0,0]:[-1,-1],o=[];o.setsize=r.length;let l=null;for(let c of r)(!o.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=o.length,o.push(l)),l.push(c);this.ignoreMouse(),this.setState({searchResults:o,pos:a},s)}),Qs(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Qs(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),Qs(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),Qs(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await hIe(2);const s=this.refs.menu.current;s&&(s.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class c5 extends bIe{async connectedCallback(){const e=kW(this.props,al,this);e.element=this,e.ref=n=>{this.component=n},await xO(e),!this.disconnected&&mW(ue(RIe,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:iW($W)})}}Qs(c5,"Props",al);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",c5);var $W={};$W=`:host {
|
||
width: min-content;
|
||
height: 435px;
|
||
min-height: 230px;
|
||
border-radius: var(--border-radius);
|
||
box-shadow: var(--shadow);
|
||
--border-radius: 10px;
|
||
--category-icon-size: 18px;
|
||
--font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
|
||
--font-size: 15px;
|
||
--preview-placeholder-size: 21px;
|
||
--preview-title-size: 1.1em;
|
||
--preview-subtitle-size: .9em;
|
||
--shadow-color: 0deg 0% 0%;
|
||
--shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14);
|
||
display: flex;
|
||
}
|
||
|
||
[data-theme="light"] {
|
||
--em-rgb-color: var(--rgb-color, 34, 36, 39);
|
||
--em-rgb-accent: var(--rgb-accent, 34, 102, 237);
|
||
--em-rgb-background: var(--rgb-background, 255, 255, 255);
|
||
--em-rgb-input: var(--rgb-input, 255, 255, 255);
|
||
--em-color-border: var(--color-border, rgba(0, 0, 0, .05));
|
||
--em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));
|
||
}
|
||
|
||
[data-theme="dark"] {
|
||
--em-rgb-color: var(--rgb-color, 222, 222, 221);
|
||
--em-rgb-accent: var(--rgb-accent, 58, 130, 247);
|
||
--em-rgb-background: var(--rgb-background, 21, 22, 23);
|
||
--em-rgb-input: var(--rgb-input, 0, 0, 0);
|
||
--em-color-border: var(--color-border, rgba(255, 255, 255, .1));
|
||
--em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));
|
||
}
|
||
|
||
#root {
|
||
--color-a: rgb(var(--em-rgb-color));
|
||
--color-b: rgba(var(--em-rgb-color), .65);
|
||
--color-c: rgba(var(--em-rgb-color), .45);
|
||
--padding: 12px;
|
||
--padding-small: calc(var(--padding) / 2);
|
||
--sidebar-width: 16px;
|
||
--duration: 225ms;
|
||
--duration-fast: 125ms;
|
||
--duration-instant: 50ms;
|
||
--easing: cubic-bezier(.4, 0, .2, 1);
|
||
width: 100%;
|
||
text-align: left;
|
||
border-radius: var(--border-radius);
|
||
background-color: rgb(var(--em-rgb-background));
|
||
position: relative;
|
||
}
|
||
|
||
@media (prefers-reduced-motion) {
|
||
#root {
|
||
--duration: 0;
|
||
--duration-fast: 0;
|
||
--duration-instant: 0;
|
||
}
|
||
}
|
||
|
||
#root[data-menu] button {
|
||
cursor: auto;
|
||
}
|
||
|
||
#root[data-menu] .menu button {
|
||
cursor: pointer;
|
||
}
|
||
|
||
:host, #root, input, button {
|
||
color: rgb(var(--em-rgb-color));
|
||
font-family: var(--font-family);
|
||
font-size: var(--font-size);
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
line-height: normal;
|
||
}
|
||
|
||
*, :before, :after {
|
||
box-sizing: border-box;
|
||
min-width: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.relative {
|
||
position: relative;
|
||
}
|
||
|
||
.flex {
|
||
display: flex;
|
||
}
|
||
|
||
.flex-auto {
|
||
flex: none;
|
||
}
|
||
|
||
.flex-center {
|
||
justify-content: center;
|
||
}
|
||
|
||
.flex-column {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.flex-grow {
|
||
flex: auto;
|
||
}
|
||
|
||
.flex-middle {
|
||
align-items: center;
|
||
}
|
||
|
||
.flex-wrap {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.padding {
|
||
padding: var(--padding);
|
||
}
|
||
|
||
.padding-t {
|
||
padding-top: var(--padding);
|
||
}
|
||
|
||
.padding-lr {
|
||
padding-left: var(--padding);
|
||
padding-right: var(--padding);
|
||
}
|
||
|
||
.padding-r {
|
||
padding-right: var(--padding);
|
||
}
|
||
|
||
.padding-small {
|
||
padding: var(--padding-small);
|
||
}
|
||
|
||
.padding-small-b {
|
||
padding-bottom: var(--padding-small);
|
||
}
|
||
|
||
.padding-small-lr {
|
||
padding-left: var(--padding-small);
|
||
padding-right: var(--padding-small);
|
||
}
|
||
|
||
.margin {
|
||
margin: var(--padding);
|
||
}
|
||
|
||
.margin-r {
|
||
margin-right: var(--padding);
|
||
}
|
||
|
||
.margin-l {
|
||
margin-left: var(--padding);
|
||
}
|
||
|
||
.margin-small-l {
|
||
margin-left: var(--padding-small);
|
||
}
|
||
|
||
.margin-small-lr {
|
||
margin-left: var(--padding-small);
|
||
margin-right: var(--padding-small);
|
||
}
|
||
|
||
.align-l {
|
||
text-align: left;
|
||
}
|
||
|
||
.align-r {
|
||
text-align: right;
|
||
}
|
||
|
||
.color-a {
|
||
color: var(--color-a);
|
||
}
|
||
|
||
.color-b {
|
||
color: var(--color-b);
|
||
}
|
||
|
||
.color-c {
|
||
color: var(--color-c);
|
||
}
|
||
|
||
.ellipsis {
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
width: auto;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.sr-only {
|
||
width: 1px;
|
||
height: 1px;
|
||
position: absolute;
|
||
top: auto;
|
||
left: -10000px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
a {
|
||
cursor: pointer;
|
||
color: rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.spacer {
|
||
height: 10px;
|
||
}
|
||
|
||
[dir="rtl"] .scroll {
|
||
padding-left: 0;
|
||
padding-right: var(--padding);
|
||
}
|
||
|
||
.scroll {
|
||
padding-right: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar {
|
||
width: var(--sidebar-width);
|
||
height: var(--sidebar-width);
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-track {
|
||
border: 0;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-button {
|
||
width: 0;
|
||
height: 0;
|
||
display: none;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-corner {
|
||
background-color: rgba(0, 0, 0, 0);
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-thumb {
|
||
min-height: 20%;
|
||
min-height: 65px;
|
||
border: 4px solid rgb(var(--em-rgb-background));
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-thumb:hover {
|
||
background-color: var(--em-color-border-over) !important;
|
||
}
|
||
|
||
.scroll:hover::-webkit-scrollbar-thumb {
|
||
background-color: var(--em-color-border);
|
||
}
|
||
|
||
.sticky {
|
||
z-index: 1;
|
||
background-color: rgba(var(--em-rgb-background), .9);
|
||
-webkit-backdrop-filter: blur(4px);
|
||
backdrop-filter: blur(4px);
|
||
font-weight: 500;
|
||
position: sticky;
|
||
top: -1px;
|
||
}
|
||
|
||
[dir="rtl"] .search input[type="search"] {
|
||
padding: 10px 2.2em 10px 2em;
|
||
}
|
||
|
||
[dir="rtl"] .search .loupe {
|
||
left: auto;
|
||
right: .7em;
|
||
}
|
||
|
||
[dir="rtl"] .search .delete {
|
||
left: .7em;
|
||
right: auto;
|
||
}
|
||
|
||
.search {
|
||
z-index: 2;
|
||
position: relative;
|
||
}
|
||
|
||
.search input, .search button {
|
||
font-size: calc(var(--font-size) - 1px);
|
||
}
|
||
|
||
.search input[type="search"] {
|
||
width: 100%;
|
||
background-color: var(--em-color-border);
|
||
transition-duration: var(--duration);
|
||
transition-property: background-color, box-shadow;
|
||
transition-timing-function: var(--easing);
|
||
border: 0;
|
||
border-radius: 10px;
|
||
outline: 0;
|
||
padding: 10px 2em 10px 2.2em;
|
||
display: block;
|
||
}
|
||
|
||
.search input[type="search"]::-ms-input-placeholder {
|
||
color: inherit;
|
||
opacity: .6;
|
||
}
|
||
|
||
.search input[type="search"]::placeholder {
|
||
color: inherit;
|
||
opacity: .6;
|
||
}
|
||
|
||
.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration {
|
||
-webkit-appearance: none;
|
||
-ms-appearance: none;
|
||
appearance: none;
|
||
}
|
||
|
||
.search input[type="search"]:focus {
|
||
background-color: rgb(var(--em-rgb-input));
|
||
box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);
|
||
}
|
||
|
||
.search .icon {
|
||
z-index: 1;
|
||
color: rgba(var(--em-rgb-color), .7);
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
}
|
||
|
||
.search .loupe {
|
||
pointer-events: none;
|
||
left: .7em;
|
||
}
|
||
|
||
.search .delete {
|
||
right: .7em;
|
||
}
|
||
|
||
svg {
|
||
fill: currentColor;
|
||
width: 1em;
|
||
height: 1em;
|
||
}
|
||
|
||
button {
|
||
-webkit-appearance: none;
|
||
-ms-appearance: none;
|
||
appearance: none;
|
||
cursor: pointer;
|
||
color: currentColor;
|
||
background-color: rgba(0, 0, 0, 0);
|
||
border: 0;
|
||
}
|
||
|
||
#nav {
|
||
z-index: 2;
|
||
padding-top: 12px;
|
||
padding-bottom: 12px;
|
||
padding-right: var(--sidebar-width);
|
||
position: relative;
|
||
}
|
||
|
||
#nav button {
|
||
color: var(--color-b);
|
||
transition: color var(--duration) var(--easing);
|
||
}
|
||
|
||
#nav button:hover {
|
||
color: var(--color-a);
|
||
}
|
||
|
||
#nav svg, #nav img {
|
||
width: var(--category-icon-size);
|
||
height: var(--category-icon-size);
|
||
}
|
||
|
||
#nav[dir="rtl"] .bar {
|
||
left: auto;
|
||
right: 0;
|
||
}
|
||
|
||
#nav .bar {
|
||
width: 100%;
|
||
height: 3px;
|
||
background-color: rgb(var(--em-rgb-accent));
|
||
transition: transform var(--duration) var(--easing);
|
||
border-radius: 3px 3px 0 0;
|
||
position: absolute;
|
||
bottom: -12px;
|
||
left: 0;
|
||
}
|
||
|
||
#nav button[aria-selected] {
|
||
color: rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
#preview {
|
||
z-index: 2;
|
||
padding: calc(var(--padding) + 4px) var(--padding);
|
||
padding-right: var(--sidebar-width);
|
||
position: relative;
|
||
}
|
||
|
||
#preview .preview-placeholder {
|
||
font-size: var(--preview-placeholder-size);
|
||
}
|
||
|
||
#preview .preview-title {
|
||
font-size: var(--preview-title-size);
|
||
}
|
||
|
||
#preview .preview-subtitle {
|
||
font-size: var(--preview-subtitle-size);
|
||
}
|
||
|
||
#nav:before, #preview:before {
|
||
content: "";
|
||
height: 2px;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
#nav[data-position="top"]:before, #preview[data-position="top"]:before {
|
||
background: linear-gradient(to bottom, var(--em-color-border), transparent);
|
||
top: 100%;
|
||
}
|
||
|
||
#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before {
|
||
background: linear-gradient(to top, var(--em-color-border), transparent);
|
||
bottom: 100%;
|
||
}
|
||
|
||
.category:last-child {
|
||
min-height: calc(100% + 1px);
|
||
}
|
||
|
||
.category button {
|
||
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
|
||
position: relative;
|
||
}
|
||
|
||
.category button > * {
|
||
position: relative;
|
||
}
|
||
|
||
.category button .background {
|
||
opacity: 0;
|
||
background-color: var(--em-color-border);
|
||
transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.category button:hover .background {
|
||
transition-duration: var(--duration-instant);
|
||
transition-delay: 0s;
|
||
}
|
||
|
||
.category button[aria-selected] .background {
|
||
opacity: 1;
|
||
}
|
||
|
||
.category button[data-keyboard] .background {
|
||
transition: none;
|
||
}
|
||
|
||
.row {
|
||
width: 100%;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
}
|
||
|
||
.skin-tone-button {
|
||
border: 1px solid rgba(0, 0, 0, 0);
|
||
border-radius: 100%;
|
||
}
|
||
|
||
.skin-tone-button:hover {
|
||
border-color: var(--em-color-border);
|
||
}
|
||
|
||
.skin-tone-button:active .skin-tone {
|
||
transform: scale(.85) !important;
|
||
}
|
||
|
||
.skin-tone-button .skin-tone {
|
||
transition: transform var(--duration) var(--easing);
|
||
}
|
||
|
||
.skin-tone-button[aria-selected] {
|
||
background-color: var(--em-color-border);
|
||
border-top-color: rgba(0, 0, 0, .05);
|
||
border-bottom-color: rgba(0, 0, 0, 0);
|
||
border-left-width: 0;
|
||
border-right-width: 0;
|
||
}
|
||
|
||
.skin-tone-button[aria-selected] .skin-tone {
|
||
transform: scale(.9);
|
||
}
|
||
|
||
.menu {
|
||
z-index: 2;
|
||
white-space: nowrap;
|
||
border: 1px solid var(--em-color-border);
|
||
background-color: rgba(var(--em-rgb-background), .9);
|
||
-webkit-backdrop-filter: blur(4px);
|
||
backdrop-filter: blur(4px);
|
||
transition-property: opacity, transform;
|
||
transition-duration: var(--duration);
|
||
transition-timing-function: var(--easing);
|
||
border-radius: 10px;
|
||
padding: 4px;
|
||
position: absolute;
|
||
box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);
|
||
}
|
||
|
||
.menu.hidden {
|
||
opacity: 0;
|
||
}
|
||
|
||
.menu[data-position="bottom"] {
|
||
transform-origin: 100% 100%;
|
||
}
|
||
|
||
.menu[data-position="bottom"].hidden {
|
||
transform: scale(.9)rotate(-3deg)translateY(5%);
|
||
}
|
||
|
||
.menu[data-position="top"] {
|
||
transform-origin: 100% 0;
|
||
}
|
||
|
||
.menu[data-position="top"].hidden {
|
||
transform: scale(.9)rotate(3deg)translateY(-5%);
|
||
}
|
||
|
||
.menu input[type="radio"] {
|
||
clip: rect(0 0 0 0);
|
||
width: 1px;
|
||
height: 1px;
|
||
border: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
position: absolute;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.menu input[type="radio"]:checked + .option {
|
||
box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
.option {
|
||
width: 100%;
|
||
border-radius: 6px;
|
||
padding: 4px 6px;
|
||
}
|
||
|
||
.option:hover {
|
||
color: #fff;
|
||
background-color: rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
.skin-tone {
|
||
width: 16px;
|
||
height: 16px;
|
||
border-radius: 100%;
|
||
display: inline-block;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.skin-tone:after {
|
||
content: "";
|
||
mix-blend-mode: overlay;
|
||
background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));
|
||
border: 1px solid rgba(0, 0, 0, .8);
|
||
border-radius: 100%;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;
|
||
}
|
||
|
||
.skin-tone-1 {
|
||
background-color: #ffc93a;
|
||
}
|
||
|
||
.skin-tone-2 {
|
||
background-color: #ffdab7;
|
||
}
|
||
|
||
.skin-tone-3 {
|
||
background-color: #e7b98f;
|
||
}
|
||
|
||
.skin-tone-4 {
|
||
background-color: #c88c61;
|
||
}
|
||
|
||
.skin-tone-5 {
|
||
background-color: #a46134;
|
||
}
|
||
|
||
.skin-tone-6 {
|
||
background-color: #5d4437;
|
||
}
|
||
|
||
[data-index] {
|
||
justify-content: space-between;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone:after {
|
||
box-shadow: none;
|
||
border-color: rgba(0, 0, 0, .5);
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-1 {
|
||
background-color: #fade72;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-2 {
|
||
background-color: #f3dfd0;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-3 {
|
||
background-color: #eed3a8;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-4 {
|
||
background-color: #cfad8d;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-5 {
|
||
background-color: #a8805d;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-6 {
|
||
background-color: #765542;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone:after {
|
||
box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-1 {
|
||
background-color: #f5c748;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-2 {
|
||
background-color: #f1d5aa;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-3 {
|
||
background-color: #d4b48d;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-4 {
|
||
background-color: #aa876b;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-5 {
|
||
background-color: #916544;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-6 {
|
||
background-color: #61493f;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone:after {
|
||
border-color: rgba(0, 0, 0, .4);
|
||
box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-1 {
|
||
background-color: #f5c748;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-2 {
|
||
background-color: #f1d5aa;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-3 {
|
||
background-color: #d4b48d;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-4 {
|
||
background-color: #aa876b;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-5 {
|
||
background-color: #916544;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-6 {
|
||
background-color: #61493f;
|
||
}
|
||
|
||
`;function DIe(t){const e=k.useRef(null),n=k.useRef(null);return n.current&&n.current.update(t),k.useEffect(()=>(n.current=new c5({...t,ref:e}),()=>{n.current=null}),[]),tt.createElement("div",{ref:e})}const MIe=({collection:t})=>{const{dispatch:e,state:n}=Ir(),{emoji:i,name:r,origin:s}=t,a=k.useCallback(({native:l})=>{const c={...t,emoji:l},f=n.collections.map(u=>u.id===t.id?c:u);e({payload:c,type:"set-collection-icon"}),ye.setStorageData("collections",f)},[t,n.collections,e]),o=k.useMemo(()=>i||(s.includes("localhost")||s.includes("127.0.0.1")?"🏡":s?b.jsx("img",{alt:r,className:"h-4 w-4 rounded-sm",src:`https://s2.googleusercontent.com/s2/favicons?domain=${s}`}):"📁"),[i,r,s]);return b.jsxs(xf,{className:"relative flex",children:[b.jsx(xf.Button,{className:"rounded-md p-1 hover:bg-gray-200 dark:hover:bg-gray-600",children:b.jsx("div",{className:"flex h-4 w-4 flex-shrink-0 items-center justify-center rounded-md text-base",children:o})}),b.jsx(xf.Panel,{className:"fixed z-20 mt-6",children:({close:l})=>b.jsx(DIe,{data:Vje,onEmojiSelect:c=>{a(c),l()},perLine:7})})]})},NIe=()=>({href:"",id:xl(),name:j("sidebar_new_collection"),origin:""});function LIe(t){const e=ah(),{pathname:n}=zf(),{dispatch:i,state:r}=Ir();return function(){const s=n.includes(t.id),a=r.collections.filter(({id:o})=>o!==t.id);if(a.length===0){const o=NIe();a.push(o),ye.setPageData(o.id,nj)}if(i({payload:a,type:"set-collections"}),chrome.storage.local.remove(t.id),ye.setStorageData("collections",a),s)return e(`collection/${a[0].id}`)}}const jIe=({collection:t})=>{const[e,n]=k.useState(!1),{state:i}=Ki(),r=LIe(t),s=()=>{n(!1)},a=o=>{if(o.preventDefault(),i.settings.warnOnRemoveCollection)return n(!0);r()};return b.jsxs(b.Fragment,{children:[b.jsx("button",{className:"z-10 flex h-5 w-5 items-center justify-center rounded-md opacity-0 transition-opacity duration-300 group-hover:opacity-100 hover:bg-gray-200 dark:hover:bg-gray-900",onClick:a,children:b.jsx(E$,{className:"h-4"})}),b.jsxs(Ut,{open:e,setOpen:n,children:[b.jsxs(Ut.Header,{children:[j("you_sure"),' "',t.name,'"?']}),b.jsx(Ut.Main,{children:j("undone")}),b.jsxs(Ut.Footer,{children:[b.jsx(_t,{onClick:r,size:"lg",children:j("remove")}),b.jsx(_t,{onClick:s,size:"lg",variant:"secondary",children:j("cancel")})]})]})]})},IIe=({collection:t})=>{const{dispatch:e}=Ir();function n(){e({payload:!1,type:"set-open"})}return b.jsxs(FL,{className:({isActive:i})=>Tt(i&&"bg-gray-100 dark:bg-gray-700","collection-item group"),onClick:n,to:`collection/${t.id}`,children:[b.jsx(MIe,{collection:t}),b.jsx("span",{className:"flex-1 overflow-hidden overflow-ellipsis whitespace-nowrap",children:t.name}),b.jsx(jIe,{collection:t})]})},BIe=({children:t,collection:e})=>{const{state:n}=Ki(),{attributes:i,listeners:r,setActivatorNodeRef:s,setNodeRef:a,transform:o,transition:l}=Fje({id:e.id}),c={transform:Ug.Transform.toString(o),transition:l};return b.jsx("li",{ref:a,style:c,...i,className:"group",children:b.jsxs("div",{className:"flex items-center",children:[!n.settings.sortCollections&&b.jsx("div",{...r,className:"w-0 opacity-0 transition-all duration-300 group-hover:w-3 group-hover:opacity-100",ref:s,children:b.jsx(Mre,{className:"h-3"})}),t]})})},FIe=()=>{const{dispatch:t,state:e}=Ir(),n=k.useCallback(({active:i,over:r})=>{if(!r||i.id===r.id)return;const s=e.collections.findIndex(l=>l.id===i.id),a=e.collections.findIndex(l=>l.id===r.id),o=o5(e.collections,s,a);t({payload:o,type:"set-collections"}),ye.setStorageData("collections",o)},[t,e.collections]);return b.jsx(wje,{collisionDetection:kLe,onDragEnd:n,children:b.jsx("ul",{className:"flex flex-col gap-1.5",role:"list",children:b.jsx(Dje,{items:e.collections.map(({id:i})=>i),strategy:Eje,children:e.collections.map(i=>b.jsx(BIe,{collection:i,children:b.jsx(IIe,{collection:i})},i.id))})})})},WM=()=>{var e;const{state:t}=Ir();return b.jsxs("div",{className:"surface flex grow flex-col gap-y-4 overflow-y-auto border-r border-gray-200 px-6 pb-5 dark:border-gray-800",children:[b.jsx("div",{className:"mt-2 flex h-16 shrink-0 items-center",children:b.jsx(F$,{to:`collection/${(e=t.collections[0])==null?void 0:e.id}`,children:b.jsx(mL,{className:"h-8 w-auto"})})}),b.jsx("nav",{"aria-label":"Main Navigation",className:"flex flex-1 flex-col",children:b.jsxs("div",{className:"-mx-2 flex flex-1 flex-col gap-1.5",children:[b.jsx("h2",{className:"sr-only",id:"collections-heading",children:"Collections"}),b.jsx(nLe,{}),b.jsx(FIe,{}),b.jsx("span",{className:"flex-1"}),b.jsx(JNe,{})]})})]})},QIe=()=>{const t=Zw(),{dispatch:e,state:n}=Ir();k.useEffect(()=>{e({payload:t,type:"init"})},[t,e]);function i(){e({payload:!1,type:"set-open"})}return b.jsxs(b.Fragment,{children:[b.jsx(Wt.Root,{as:k.Fragment,show:n.isOpen,children:b.jsxs(RA,{as:"div",className:"relative z-20 lg:hidden",onClose:i,children:[b.jsx(Wt.Child,{as:k.Fragment,enter:"transition-opacity ease-linear duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-linear duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.jsx("div",{className:"fixed inset-0 bg-gray-900/80"})}),b.jsx("div",{className:"fixed inset-0 flex",children:b.jsx(Wt.Child,{as:k.Fragment,enter:"transition ease-in-out duration-300 transform",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transition ease-in-out duration-300 transform",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full",children:b.jsxs(RA.Panel,{className:"relative mr-16 flex w-full max-w-xs flex-1",children:[b.jsx(Wt.Child,{as:k.Fragment,enter:"ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.jsx("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5",children:b.jsxs("button",{className:"-m-2.5 p-2.5",onClick:i,type:"button",children:[b.jsx("span",{className:"sr-only",children:j("sidebar_close")}),b.jsx(E$,{"aria-hidden":"true",className:"h-6 w-6 text-white"})]})})}),b.jsx(WM,{})]})})})]})}),b.jsx("div",{className:"z-10 hidden lg:fixed lg:inset-y-0 lg:flex lg:w-72 lg:flex-col",children:b.jsx(WM,{})})]})},zIe=()=>b.jsxs(_j,{children:[b.jsx(Uj,{delayDuration:100,children:b.jsx(Pne,{children:b.jsx(Tne,{children:b.jsx(Ane,{children:b.jsx(gL,{children:b.jsxs(Ene,{children:[b.jsx(QIe,{}),b.jsx("div",{className:"relative h-screen min-h-screen overflow-hidden transition-all lg:pl-72",children:b.jsx(Gie,{})})]})})})})})}),b.jsx(Cj,{className:"toast-viewport"})]});async function qIe(){return{collections:await ye.getStorageData("collections")??[]}}const PW=1024;let WIe=0,OS=class{constructor(e,n){this.from=e,this.to=n}},Tn=class{constructor(e={}){this.id=WIe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=bl.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}};Tn.closedBy=new Tn({deserialize:t=>t.split(" ")});Tn.openedBy=new Tn({deserialize:t=>t.split(" ")});Tn.group=new Tn({deserialize:t=>t.split(" ")});Tn.isolate=new Tn({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});Tn.contextHash=new Tn({perNode:!0});Tn.lookAhead=new Tn({perNode:!0});Tn.mounted=new Tn({perNode:!0});let fw=class{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[Tn.mounted.id]}};const UIe=Object.create(null);let bl=class TW{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):UIe,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new TW(e.name||"",n,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Tn.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(Tn.group),s=-1;s<(r?r.length:0);s++){let a=n[s<0?i.name:r[s]];if(a)return a}}}};bl.none=new bl("",Object.create(null),0,8);class f5{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let i of this.types){let r=null;for(let s of e){let a=s(i);a&&(r||(r=Object.assign({},i.props)),r[a[0].id]=a[1])}n.push(r?new bl(i.name,r,i.id,i.flags):i)}return new f5(n)}}const Vv=new WeakMap,UM=new WeakMap;var _i;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(_i||(_i={}));let Pa=class W3{constructor(e,n,i,r,s){if(this.type=e,this.children=n,this.positions=i,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[a,o]of s)this.props[typeof a=="number"?a:a.id]=o}}toString(){let e=fw.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let i of this.children){let r=i.toString();r&&(n&&(n+=","),n+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new V3(this.topNode,e)}cursorAt(e,n=0,i=0){let r=Vv.get(this)||this.topNode,s=new V3(r);return s.moveTo(e,n),Vv.set(this,s._tree),s}get topNode(){return new To(this,0,0,null)}resolve(e,n=0){let i=Hg(Vv.get(this)||this.topNode,e,n,!1);return Vv.set(this,i),i}resolveInner(e,n=0){let i=Hg(UM.get(this)||this.topNode,e,n,!0);return UM.set(this,i),i}resolveStack(e,n=0){return GIe(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:s=this.length}=e,a=e.mode||0,o=(a&_i.IncludeAnonymous)>0;for(let l=this.cursor(a|_i.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=r&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&i&&(o||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:d5(bl.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new W3(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new W3(bl.none,n,i,r)))}static build(e){return XIe(e)}};Pa.empty=new Pa(bl.none,[],[],0);let VIe=class AW{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new AW(this.buffer,this.index)}},Ud=class EW{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return bl.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],i=this.buffer[e+3],r=this.set.types[n],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,i==e)return s;let a=[];for(;e<i;)a.push(this.childString(e)),e=this.buffer[e+3];return s+"("+a.join(",")+")"}findChild(e,n,i,r,s){let{buffer:a}=this,o=-1;for(let l=e;l!=n&&!(RW(s,r,a[l+1],a[l+2])&&(o=l,i>0));l=a[l+3]);return o}slice(e,n,i){let r=this.buffer,s=new Uint16Array(n-e),a=0;for(let o=e,l=0;o<n;){s[l++]=r[o++],s[l++]=r[o++]-i;let c=s[l++]=r[o++]-i;s[l++]=r[o++]-e,a=Math.max(a,c)}return new EW(s,a,this.set)}};function RW(t,e,n,i){switch(t){case-2:return n<e;case-1:return i>=e&&n<e;case 0:return n<e&&i>e;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function Hg(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let a=!i&&t instanceof To&&t.index<0?null:t.parent;if(!a)return t;t=a}let s=i?0:_i.IgnoreOverlays;if(i)for(let a=t,o=a.parent;o;a=o,o=a.parent)a instanceof To&&a.index<0&&((r=o.enter(e,n,s))===null||r===void 0?void 0:r.from)!=a.from&&(t=o);for(;;){let a=t.enter(e,n,s);if(!a)return t;t=a}}let DW=class{cursor(e=0){return new V3(this,e)}getChild(e,n=null,i=null){let r=VM(this,e,n,i);return r.length?r[0]:null}getChildren(e,n=null,i=null){return VM(this,e,n,i)}resolve(e,n=0){return Hg(this,e,n,!1)}resolveInner(e,n=0){return Hg(this,e,n,!0)}matchContext(e){return U3(this,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),i=this;for(;n;){let r=n.lastChild;if(!r||r.to!=n.to)break;r.type.isError&&r.from==r.to?(i=n,n=r.prevSibling):n=r}return i}get node(){return this}get next(){return this.parent}},To=class ty extends DW{constructor(e,n,i,r){super(),this._tree=e,this.from=n,this.index=i,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,i,r,s=0){for(let a=this;;){for(let{children:o,positions:l}=a._tree,c=n>0?o.length:-1;e!=c;e+=n){let f=o[e],u=l[e]+a.from;if(RW(r,i,u,u+f.length)){if(f instanceof Ud){if(s&_i.ExcludeBuffers)continue;let h=f.findChild(0,f.buffer.length,n,i-u,r);if(h>-1)return new Zg(new HIe(a,f,e,u),null,h)}else if(s&_i.IncludeAnonymous||!f.type.isAnonymous||u5(f)){let h;if(!(s&_i.IgnoreMounts)&&(h=fw.get(f))&&!h.overlay)return new ty(h.tree,u,e,a);let m=new ty(f,u,e,a);return s&_i.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(n<0?f.children.length-1:0,n,i,r)}}}if(s&_i.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+n:e=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let r;if(!(i&_i.IgnoreOverlays)&&(r=fw.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:a,to:o}of r.overlay)if((n>0?a<=s:a<s)&&(n<0?o>=s:o>s))return new ty(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function VM(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(n!=null){for(let a=!1;!a;)if(a=r.type.is(n),!r.nextSibling())return s}for(;;){if(i!=null&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return i==null?s:[]}}function U3(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}let HIe=class{constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}},Zg=class Ym extends DW{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return s<0?null:new Ym(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&_i.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new Ym(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Ym(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Ym(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];if(s>r){let a=i.buffer[this.index+1];e.push(i.slice(r,s,a)),n.push(0)}return new Pa(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function MW(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;s<t.length;s++){let a=t[s];(a.from>n.from||a.to<n.to)&&(n=a,e=s)}let i=n instanceof To&&n.index<0?null:n.parent,r=t.slice();return i?r[e]=i:r.splice(e,1),new ZIe(r,n)}let ZIe=class{constructor(e,n){this.heads=e,this.node=n}get next(){return MW(this.heads)}};function GIe(t,e,n){let i=t.resolveInner(e,n),r=null;for(let s=i instanceof To?i:i.context.parent;s;s=s.parent)if(s.index<0){let a=s.parent;(r||(r=[i])).push(a.resolve(e,n)),s=a}else{let a=fw.get(s.tree);if(a&&a.overlay&&a.overlay[0].from<=e&&a.overlay[a.overlay.length-1].to>=e){let o=new To(a.tree,a.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(Hg(o,e,n,!1))}}return r?MW(r):i}let V3=class{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof To)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=n||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof To?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&_i.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&_i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(n.findChild(r,this.index,-1,0,4))}else{let r=n.buffer[this.index+3];if(r<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:i}=r)}else({index:n,_parent:i}=this._tree);for(;i;{index:n,_parent:i}=i)if(n>-1)for(let s=n+e,a=e<0?-1:i._tree.children.length;s!=a;s+=e){let o=i._tree.children[s];if(this.mode&_i.IncludeAnonymous||o instanceof Ud||!o.type.isAnonymous||u5(o))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,i=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;n=a,i=s+1;break e}r=this.stack[--s]}for(let r=i;r<this.stack.length;r++)n=new Zg(this.buffer,n,this.stack[r]);return this.bufferNode=new Zg(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let i=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(r=!0)}for(;r&&n&&n(this),r=this.type.isAnonymous,!this.nextSibling();){if(!i)return;this.parent(),i--,r=!0}}}matchContext(e){if(!this.buffer)return U3(this.node,e);let{buffer:n}=this.buffer,{types:i}=n.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return U3(this.node,e,r);let a=i[n.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}};function u5(t){return t.children.some(e=>e instanceof Ud||!e.type.isAnonymous||u5(e))}function XIe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=PW,reused:s=[],minRepeatType:a=i.types.length}=t,o=Array.isArray(n)?new VIe(n,n.length):n,l=i.types,c=0,f=0;function u(S,R,_,P,A,N){let{id:M,start:Q,end:U,size:z}=o,Y=f;for(;z<0;)if(o.next(),z==-1){let je=s[M];_.push(je),P.push(Q-S);return}else if(z==-3){c=M;return}else if(z==-4){f=M;return}else throw new RangeError(`Unrecognized record size: ${z}`);let ae=l[M],ne,he,ve=Q-S;if(U-Q<=r&&(he=w(o.pos-R,A))){let je=new Uint16Array(he.size-he.skip),we=o.pos-he.size,ge=je.length;for(;o.pos>we;)ge=O(he.start,je,ge);ne=new Ud(je,U-he.start,i),ve=he.start-S}else{let je=o.pos-z;o.next();let we=[],ge=[],B=M>=a?M:-1,D=0,te=U;for(;o.pos>je;)B>=0&&o.id==B&&o.size>=0?(o.end<=te-r&&(g(we,ge,Q,D,o.end,te,B,Y),D=we.length,te=o.end),o.next()):N>2500?h(Q,je,we,ge):u(Q,je,we,ge,B,N+1);if(B>=0&&D>0&&D<we.length&&g(we,ge,Q,D,Q,te,B,Y),we.reverse(),ge.reverse(),B>-1&&D>0){let q=m(ae);ne=d5(ae,we,ge,0,we.length,0,U-Q,q,q)}else ne=v(ae,we,ge,U-Q,Y-U)}_.push(ne),P.push(ve)}function h(S,R,_,P){let A=[],N=0,M=-1;for(;o.pos>R;){let{id:Q,start:U,end:z,size:Y}=o;if(Y>4)o.next();else{if(M>-1&&U<M)break;M<0&&(M=z-r),A.push(Q,U,z),N++,o.next()}}if(N){let Q=new Uint16Array(N*4),U=A[A.length-2];for(let z=A.length-3,Y=0;z>=0;z-=3)Q[Y++]=A[z],Q[Y++]=A[z+1]-U,Q[Y++]=A[z+2]-U,Q[Y++]=Y;_.push(new Ud(Q,A[2]-U,i)),P.push(U-S)}}function m(S){return(R,_,P)=>{let A=0,N=R.length-1,M,Q;if(N>=0&&(M=R[N])instanceof Pa){if(!N&&M.type==S&&M.length==P)return M;(Q=M.prop(Tn.lookAhead))&&(A=_[N]+M.length+Q)}return v(S,R,_,P,A)}}function g(S,R,_,P,A,N,M,Q){let U=[],z=[];for(;S.length>P;)U.push(S.pop()),z.push(R.pop()+_-A);S.push(v(i.types[M],U,z,N-A,Q-N)),R.push(A-_)}function v(S,R,_,P,A=0,N){if(c){let M=[Tn.contextHash,c];N=N?[M].concat(N):[M]}if(A>25){let M=[Tn.lookAhead,A];N=N?[M].concat(N):[M]}return new Pa(S,R,_,P,N)}function w(S,R){let _=o.fork(),P=0,A=0,N=0,M=_.end-r,Q={size:0,start:0,skip:0};e:for(let U=_.pos-S;_.pos>U;){let z=_.size;if(_.id==R&&z>=0){Q.size=P,Q.start=A,Q.skip=N,N+=4,P+=4,_.next();continue}let Y=_.pos-z;if(z<0||Y<U||_.start<M)break;let ae=_.id>=a?4:0,ne=_.start;for(_.next();_.pos>Y;){if(_.size<0)if(_.size==-3)ae+=4;else break e;else _.id>=a&&(ae+=4);_.next()}A=ne,P+=z,N+=ae}return(R<0||P==S)&&(Q.size=P,Q.start=A,Q.skip=N),Q.size>4?Q:void 0}function O(S,R,_){let{id:P,start:A,end:N,size:M}=o;if(o.next(),M>=0&&P<a){let Q=_;if(M>4){let U=o.pos-(M-4);for(;o.pos>U;)_=O(S,R,_)}R[--_]=Q,R[--_]=N-S,R[--_]=A-S,R[--_]=P}else M==-3?c=P:M==-4&&(f=P);return _}let x=[],$=[];for(;o.pos>0;)u(t.start||0,t.bufferStart||0,x,$,-1,0);let T=(e=t.length)!==null&&e!==void 0?e:x.length?$[0]+x[0].length:0;return new Pa(l[t.topID],x.reverse(),$.reverse(),T)}const HM=new WeakMap;function ny(t,e){if(!t.isAnonymous||e instanceof Ud||e.type!=t)return 1;let n=HM.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Pa)){n=1;break}n+=ny(t,i)}HM.set(e,n)}return n}function d5(t,e,n,i,r,s,a,o,l){let c=0;for(let g=i;g<r;g++)c+=ny(t,e[g]);let f=Math.ceil(c*1.5/8),u=[],h=[];function m(g,v,w,O,x){for(let $=w;$<O;){let T=$,S=v[$],R=ny(t,g[$]);for($++;$<O;$++){let _=ny(t,g[$]);if(R+_>=f)break;R+=_}if($==T+1){if(R>f){let _=g[T];m(_.children,_.positions,0,_.children.length,v[T]+x);continue}u.push(g[T])}else{let _=v[$-1]+g[$-1].length-S;u.push(d5(t,g,v,T,$,S,_,null,l))}h.push(S+x-s)}}return m(e,n,i,r,0),(o||l)(u,h,a)}class YIe{constructor(){this.map=new WeakMap}setBuffer(e,n,i){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(n,i)}getBuffer(e,n){let i=this.map.get(e);return i&&i.get(n)}set(e,n){e instanceof Zg?this.setBuffer(e.context.buffer,e.index,n):e instanceof To&&this.map.set(e.tree,n)}get(e){return e instanceof Zg?this.getBuffer(e.context.buffer,e.index):e instanceof To?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}let KIe=class{startParse(e,n,i){return typeof e=="string"&&(e=new JIe(e)),i=i?i.length?i.map(r=>new OS(r.from,r.to)):[new OS(0,0)]:[new OS(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let s=r.advance();if(s)return s}}},JIe=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}};new Tn({perNode:!0});var ZM={};class uw{constructor(e,n,i,r,s,a,o,l,c,f=0,u){this.p=e,this.stack=n,this.state=i,this.reducePos=r,this.pos=s,this.score=a,this.buffer=o,this.bufferBase=l,this.curContext=c,this.lookAhead=f,this.parent=u}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let r=e.parser.context;return new uw(e,[],n,i,i,0,[],0,r?new GM(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,r=e&65535,{parser:s}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(r);if(a&&(this.score+=a),i==0){this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r<s.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),this.reduceContext(r,this.reducePos);return}let o=this.stack.length-(i-1)*3-(e&262144?6:0),l=o?this.stack[o-2]:this.p.ranges[0].from,c=this.reducePos-l;c>=2e3&&!(!((n=this.p.parser.nodeSet.types[r])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let f=o?this.stack[o-1]:0,u=this.bufferBase+this.buffer.length-f;if(r<s.minRepeatTerm||e&131072){let h=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,h,u+4,!0)}if(e&262144)this.state=this.stack[o];else{let h=this.stack[o-3];this.state=s.getGoto(h,r,!0)}for(;this.stack.length>o;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,n,i,r=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,o=this.buffer.length;if(o==0&&a.parent&&(o=a.bufferBase-a.parent.bufferBase,a=a.parent),o>0&&a.buffer[o-4]==0&&a.buffer[o-1]>-1){if(n==i)return;if(a.buffer[o-2]>=n){a.buffer[o-2]=i;return}}}if(!s||this.pos==i)this.buffer.push(e,n,i,r);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>i;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,r>4&&(r-=4);this.buffer[a]=e,this.buffer[a+1]=n,this.buffer[a+2]=i,this.buffer[a+3]=r}}shift(e,n,i,r){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let s=e,{parser:a}=this.p;(r>this.pos||n<=a.maxNode)&&(this.pos=r,a.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,i),this.shiftContext(n,i),n<=a.maxNode&&this.buffer.push(n,i,r,4)}else this.pos=r,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,r,4)}apply(e,n,i,r){e&65536?this.reduce(e):this.shift(e,n,i,r)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(n,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),r=e.bufferBase+n;for(;e&&r==e.bufferBase;)e=e.parent;return new uw(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new eBe(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(i==0)return!1;if((i&65536)==0)return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let r=[];for(let s=0,a;s<n.length;s+=2)(a=n[s+1])!=this.state&&this.p.parser.hasAction(a,e)&&r.push(n[s],a);if(this.stack.length<120)for(let s=0;r.length<8&&s<n.length;s+=2){let a=n[s+1];r.some((o,l)=>l&1&&o==a)||r.push(n[s],a)}n=r}let i=[];for(let r=0;r<n.length&&i.length<4;r+=2){let s=n[r+1];if(s==this.state)continue;let a=this.split();a.pushState(s,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(n[r],this.pos),a.reducePos=this.pos,a.score-=200,i.push(a)}return i}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!e.validAction(this.state,n)){let i=n>>19,r=n&65535,s=this.stack.length-i*3;if(s<0||e.getGoto(this.stack[s],r,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(r,s)=>{if(!n.includes(r))return n.push(r),e.allActions(r,a=>{if(!(a&393216))if(a&65536){let o=(a>>19)-s;if(o>1){let l=a&65535,c=this.stack.length-o*3;if(c>=0&&e.getGoto(this.stack[c],l,!1)>=0)return o<<19|65536|l}}else{let o=i(a,s+1);if(o!=null)return o}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new GM(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class GM{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class eBe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=r}}class dw{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new dw(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new dw(this.stack,this.pos,this.index)}}function Km(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let i=0,r=0;i<t.length;){let s=0;for(;;){let a=t.charCodeAt(i++),o=!1;if(a==126){s=65535;break}a>=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,o=!0),s+=l,o)break;s*=46}n?n[r++]=s:n=new e(s)}return n}class iy{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const XM=new iy;class tBe{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=XM,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,r=this.rangeIndex,s=this.pos+e;for(;s<i.from;){if(!r)return null;let a=this.ranges[--r];s-=i.from-a.to,i=a}for(;n<0?s>i.to:s>=i.to;){if(r==this.ranges.length-1)return null;let a=this.ranges[++r];s+=a.from-i.to,i=a}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,i,r;if(n>=0&&n<this.chunk.length)i=this.pos+e,r=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(i=s,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let a=this.rangeIndex,o=this.range;for(;o.to<=i;)o=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>o.to&&(this.chunk2=this.chunk2.slice(0,o.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=XM,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let r of this.ranges){if(r.from>=n)break;r.to>e&&(i+=this.input.read(Math.max(r.from,e),Math.min(r.to,n)))}return i}}class Od{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;NW(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}Od.prototype.contextual=Od.prototype.fallback=Od.prototype.extend=!1;class H3{constructor(e,n,i){this.precTable=n,this.elseToken=i,this.data=typeof e=="string"?Km(e):e}token(e,n){let i=e.pos,r=0;for(;;){let s=e.next<0,a=e.resolveOffset(1,1);if(NW(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||r++,a==null)break;e.reset(a,e.token)}r&&(e.reset(i,e.token),e.acceptToken(this.elseToken,r))}}H3.prototype.contextual=Od.prototype.fallback=Od.prototype.extend=!1;class Ep{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function NW(t,e,n,i,r,s){let a=0,o=1<<i,{dialect:l}=n.p.parser;e:for(;(o&t[a])!=0;){let c=t[a+1];for(let m=a+3;m<c;m+=2)if((t[m+1]&o)>0){let g=t[m];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||nBe(g,e.token.value,r,s))){e.acceptToken(g);break}}let f=e.next,u=0,h=t[a+2];if(e.next<0&&h>u&&t[c+h*3-3]==65535){a=t[c+h*3-1];continue e}for(;u<h;){let m=u+h>>1,g=c+m+(m<<1),v=t[g],w=t[g+1]||65536;if(f<v)h=m;else if(f>=w)u=m+1;else{a=t[g+2],e.advance();continue e}}break}}function YM(t,e,n){for(let i=e,r;(r=t[i])!=65535;i++)if(r==n)return i-e;return-1}function nBe(t,e,n,i){let r=YM(n,i,e);return r<0||YM(n,i,t)<r}const es=typeof process<"u"&&ZM&&/\bparse\b/.test(ZM.LOG);let xS=null;function KM(t,e,n){let i=t.cursor(_i.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.to<e:i.from>e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class iBe{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?KM(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?KM(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let i=this.trees[n],r=this.index[n];if(r==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=i.children[r],a=this.start[n]+i.positions[r];if(a>e)return this.nextStart=a,null;if(s instanceof Pa){if(a==e){if(a<this.safeFrom)return null;let o=a+s.length;if(o<=this.safeTo){let l=s.prop(Tn.lookAhead);if(!l||o+l<this.fragment.to)return s}}this.index[n]++,a+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+s.length}}}class rBe{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new iy)}getActions(e){let n=0,i=null,{parser:r}=e.p,{tokenizers:s}=r,a=r.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,l=0;for(let c=0;c<s.length;c++){if((1<<c&a)==0)continue;let f=s[c],u=this.tokens[c];if(!(i&&!f.fallback)&&((f.contextual||u.start!=e.pos||u.mask!=a||u.context!=o)&&(this.updateCachedToken(u,f,e),u.mask=a,u.context=o),u.lookAhead>u.end+25&&(l=Math.max(u.lookAhead,l)),u.value!=0)){let h=n;if(u.extended>-1&&(n=this.addActions(e,u.extended,u.end,n)),n=this.addActions(e,u.value,u.end,n),!f.extend&&(i=u,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new iy,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new iy,{pos:i,p:r}=e;return n.start=i,n.end=Math.min(i+1,r.stream.end),n.value=i==r.stream.end?r.parser.eofTerm:0,n}updateCachedToken(e,n,i){let r=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(r,e),i),e.value>-1){let{parser:s}=i.p;for(let a=0;a<s.specialized.length;a++)if(s.specialized[a]==e.value){let o=s.specializers[a](this.stream.read(e.start,e.end),i);if(o>=0&&i.p.parser.dialect.allows(o>>1)){(o&1)==0?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,n,i,r){for(let s=0;s<r;s+=3)if(this.actions[s]==e)return r;return this.actions[r++]=e,this.actions[r++]=n,this.actions[r++]=i,r}addActions(e,n,i,r){let{state:s}=e,{parser:a}=e.p,{data:o}=a;for(let l=0;l<2;l++)for(let c=a.stateSlot(s,l?2:1);;c+=3){if(o[c]==65535)if(o[c+1]==1)c=nl(o,c+2);else{r==0&&o[c+1]==2&&(r=this.putAction(nl(o,c+2),n,i,r));break}o[c]==n&&(r=this.putAction(nl(o,c+1),n,i,r))}return r}}class sBe{constructor(e,n,i,r){this.parser=e,this.input=n,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new tBe(n,r),this.tokens=new rBe(e,this.stream),this.topTerm=e.top[1];let{from:s}=r[0];this.stacks=[uw.start(this,e.top[0],s)],this.fragments=i.length&&this.stream.end-s>e.bufferLength*4?new iBe(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,i=this.stacks=[],r,s;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let o=e[a];for(;;){if(this.tokens.mainToken=null,o.pos>n)i.push(o);else{if(this.advanceStack(o,i,e))continue;{r||(r=[],s=[]),r.push(o);let l=this.tokens.getMainToken(o);s.push(l.value,l.end)}}break}}if(!i.length){let a=r&&oBe(r);if(a)return es&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw es&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&r){let a=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,s,i);if(a)return es&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(i.length>a)for(i.sort((o,l)=>l.score-o.score);i.length>a;)i.pop();i.some(o=>o.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let a=0;a<i.length-1;a++){let o=i[a];for(let l=a+1;l<i.length;l++){let c=i[l];if(o.sameState(c)||o.buffer.length>500&&c.buffer.length>500)if((o.score-c.score||o.buffer.length-c.buffer.length)>0)i.splice(l--,1);else{i.splice(a--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let a=1;a<i.length;a++)i[a].pos<this.minStackPos&&(this.minStackPos=i[a].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,i){let r=e.pos,{parser:s}=this,a=es?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let c=e.curContext&&e.curContext.tracker.strict,f=c?e.curContext.hash:0;for(let u=this.fragments.nodeAt(r);u;){let h=this.parser.nodeSet.types[u.type.id]==u.type?s.getGoto(e.state,u.type.id):-1;if(h>-1&&u.length&&(!c||(u.prop(Tn.contextHash)||0)==f))return e.useNode(u,h),es&&console.log(a+this.stackID(e)+` (via reuse of ${s.getName(u.type.id)})`),!0;if(!(u instanceof Pa)||u.children.length==0||u.positions[0]>0)break;let m=u.children[0];if(m instanceof Pa&&u.positions[0]==0)u=m;else break}}let o=s.stateSlot(e.state,4);if(o>0)return e.reduce(o),es&&console.log(a+this.stackID(e)+` (via always-reduce ${s.getName(o&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let c=0;c<l.length;){let f=l[c++],u=l[c++],h=l[c++],m=c==l.length||!i,g=m?e:e.split(),v=this.tokens.mainToken;if(g.apply(f,u,v?v.start:g.pos,h),es&&console.log(a+this.stackID(g)+` (via ${(f&65536)==0?"shift":`reduce of ${s.getName(f&65535)}`} for ${s.getName(u)} @ ${r}${g==e?"":", split"})`),m)return!0;g.pos>r?n.push(g):i.push(g)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return JM(e,n),!0}}runRecovery(e,n,i){let r=null,s=!1;for(let a=0;a<e.length;a++){let o=e[a],l=n[a<<1],c=n[(a<<1)+1],f=es?this.stackID(o)+" -> ":"";if(o.deadEnd&&(s||(s=!0,o.restart(),es&&console.log(f+this.stackID(o)+" (restarted)"),this.advanceFully(o,i))))continue;let u=o.split(),h=f;for(let m=0;u.forceReduce()&&m<10&&(es&&console.log(h+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,i));m++)es&&(h=this.stackID(u)+" -> ");for(let m of o.recoverByInsert(l))es&&console.log(f+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,i);this.stream.end>o.pos?(c==o.pos&&(c++,l=0),o.recoverByDelete(l,c),es&&console.log(f+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),JM(o,i)):(!r||r.score<o.score)&&(r=o)}return r}stackToTree(e){return e.close(),Pa.build({buffer:dw.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(xS||(xS=new WeakMap)).get(e);return n||xS.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function JM(t,e){for(let n=0;n<e.length;n++){let i=e[n];if(i.pos==t.pos&&i.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class aBe{constructor(e,n,i){this.source=e,this.flags=n,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const SS=t=>t;class LW{constructor(e){this.start=e.start,this.shift=e.shift||SS,this.reduce=e.reduce||SS,this.reuse=e.reuse||SS,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Gg extends KIe{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;o<e.repeatNodeCount;o++)n.push("");let i=Object.keys(e.topRules).map(o=>e.topRules[o][1]),r=[];for(let o=0;o<n.length;o++)r.push([]);function s(o,l,c){r[o].push([l,l.deserialize(String(c))])}if(e.nodeProps)for(let o of e.nodeProps){let l=o[0];typeof l=="string"&&(l=Tn[l]);for(let c=1;c<o.length;){let f=o[c++];if(f>=0)s(f,l,o[c++]);else{let u=o[c+-f];for(let h=-f;h>0;h--)s(o[c++],l,u);c++}}}this.nodeSet=new f5(n.map((o,l)=>bl.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:r[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=PW;let a=Km(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;o<this.specializerSpecs.length;o++)this.specialized[o]=this.specializerSpecs[o].term;this.specializers=this.specializerSpecs.map(e7),this.states=Km(e.states,Uint32Array),this.data=Km(e.stateData),this.goto=Km(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(o=>typeof o=="number"?new Od(a,o):o),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let r=new sBe(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}getGoto(e,n,i=!1){let r=this.goto;if(n>=r[0])return-1;for(let s=r[n+1];;){let a=r[s++],o=a&1,l=r[s++];if(o&&i)return l;for(let c=s+(a>>1);s<c;s++)if(r[s]==e)return l;if(o)return-1}}hasAction(e,n){let i=this.data;for(let r=0;r<2;r++)for(let s=this.stateSlot(e,r?2:1),a;;s+=3){if((a=i[s])==65535)if(i[s+1]==1)a=i[s=nl(i,s+2)];else{if(i[s+1]==2)return nl(i,s+2);break}if(a==n||a==0)return nl(i,s+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,i=>i==n?!0:null)}allActions(e,n){let i=this.stateSlot(e,4),r=i?n(i):void 0;for(let s=this.stateSlot(e,1);r==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=nl(this.data,s+2);else break;r=n(nl(this.data,s+1))}return r}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=nl(this.data,i+2);else break;if((this.data[i+2]&1)==0){let r=this.data[i+1];n.some((s,a)=>a&1&&s==r)||n.push(this.data[i],r)}}return n}configure(e){let n=Object.assign(Object.create(Gg.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let r=e.tokenizers.find(s=>s.from==i);return r?r.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,r)=>{let s=e.specializers.find(o=>o.from==i.external);if(!s)return i;let a=Object.assign(Object.assign({},i),{external:s.to});return n.specializers[r]=e7(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let s of e.split(" ")){let a=n.indexOf(s);a>=0&&(i[a]=!0)}let r=null;for(let s=0;s<n.length;s++)if(!i[s])for(let a=this.dialects[n[s]],o;(o=this.data[a++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[o]=1;return new aBe(e,i,r)}static deserialize(e){return new Gg(e)}}function nl(t,e){return t[e]|t[e+1]<<16}function oBe(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||i!=null&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function e7(t){if(t.external){let e=t.extend?1:0;return(n,i)=>t.external(n,i)<<1|e}return t.get}const lBe=1024;let cBe=0,_S=class{constructor(e,n){this.from=e,this.to=n}},Bt=class{constructor(e={}){this.id=cBe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ao.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}};Bt.closedBy=new Bt({deserialize:t=>t.split(" ")});Bt.openedBy=new Bt({deserialize:t=>t.split(" ")});Bt.group=new Bt({deserialize:t=>t.split(" ")});Bt.isolate=new Bt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});Bt.contextHash=new Bt({perNode:!0});Bt.lookAhead=new Bt({perNode:!0});Bt.mounted=new Bt({perNode:!0});class hw{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[Bt.mounted.id]}}const fBe=Object.create(null);let Ao=class jW{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):fBe,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new jW(e.name||"",n,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Bt.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(Bt.group),s=-1;s<(r?r.length:0);s++){let a=n[s<0?i.name:r[s]];if(a)return a}}}};Ao.none=new Ao("",Object.create(null),0,8);const Hv=new WeakMap,t7=new WeakMap;var Ii;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Ii||(Ii={}));class Yi{constructor(e,n,i,r,s){if(this.type=e,this.children=n,this.positions=i,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[a,o]of s)this.props[typeof a=="number"?a:a.id]=o}}toString(){let e=hw.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let i of this.children){let r=i.toString();r&&(n&&(n+=","),n+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new G3(this.topNode,e)}cursorAt(e,n=0,i=0){let r=Hv.get(this)||this.topNode,s=new G3(r);return s.moveTo(e,n),Hv.set(this,s._tree),s}get topNode(){return new Gs(this,0,0,null)}resolve(e,n=0){let i=Xg(Hv.get(this)||this.topNode,e,n,!1);return Hv.set(this,i),i}resolveInner(e,n=0){let i=Xg(t7.get(this)||this.topNode,e,n,!0);return t7.set(this,i),i}resolveStack(e,n=0){return hBe(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:s=this.length}=e,a=e.mode||0,o=(a&Ii.IncludeAnonymous)>0;for(let l=this.cursor(a|Ii.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=r&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&i&&(o||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:m5(Ao.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new Yi(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new Yi(Ao.none,n,i,r)))}static build(e){return pBe(e)}}Yi.empty=new Yi(Ao.none,[],[],0);class h5{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new h5(this.buffer,this.index)}}class Pc{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return Ao.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],i=this.buffer[e+3],r=this.set.types[n],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,i==e)return s;let a=[];for(;e<i;)a.push(this.childString(e)),e=this.buffer[e+3];return s+"("+a.join(",")+")"}findChild(e,n,i,r,s){let{buffer:a}=this,o=-1;for(let l=e;l!=n&&!(IW(s,r,a[l+1],a[l+2])&&(o=l,i>0));l=a[l+3]);return o}slice(e,n,i){let r=this.buffer,s=new Uint16Array(n-e),a=0;for(let o=e,l=0;o<n;){s[l++]=r[o++],s[l++]=r[o++]-i;let c=s[l++]=r[o++]-i;s[l++]=r[o++]-e,a=Math.max(a,c)}return new Pc(s,a,this.set)}}function IW(t,e,n,i){switch(t){case-2:return n<e;case-1:return i>=e&&n<e;case 0:return n<e&&i>e;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function Xg(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let a=!i&&t instanceof Gs&&t.index<0?null:t.parent;if(!a)return t;t=a}let s=i?0:Ii.IgnoreOverlays;if(i)for(let a=t,o=a.parent;o;a=o,o=a.parent)a instanceof Gs&&a.index<0&&((r=o.enter(e,n,s))===null||r===void 0?void 0:r.from)!=a.from&&(t=o);for(;;){let a=t.enter(e,n,s);if(!a)return t;t=a}}class BW{cursor(e=0){return new G3(this,e)}getChild(e,n=null,i=null){let r=n7(this,e,n,i);return r.length?r[0]:null}getChildren(e,n=null,i=null){return n7(this,e,n,i)}resolve(e,n=0){return Xg(this,e,n,!1)}resolveInner(e,n=0){return Xg(this,e,n,!0)}matchContext(e){return Z3(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),i=this;for(;n;){let r=n.lastChild;if(!r||r.to!=n.to)break;r.type.isError&&r.from==r.to?(i=n,n=r.prevSibling):n=r}return i}get node(){return this}get next(){return this.parent}}class Gs extends BW{constructor(e,n,i,r){super(),this._tree=e,this.from=n,this.index=i,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,i,r,s=0){for(let a=this;;){for(let{children:o,positions:l}=a._tree,c=n>0?o.length:-1;e!=c;e+=n){let f=o[e],u=l[e]+a.from;if(IW(r,i,u,u+f.length)){if(f instanceof Pc){if(s&Ii.ExcludeBuffers)continue;let h=f.findChild(0,f.buffer.length,n,i-u,r);if(h>-1)return new hc(new uBe(a,f,e,u),null,h)}else if(s&Ii.IncludeAnonymous||!f.type.isAnonymous||p5(f)){let h;if(!(s&Ii.IgnoreMounts)&&(h=hw.get(f))&&!h.overlay)return new Gs(h.tree,u,e,a);let m=new Gs(f,u,e,a);return s&Ii.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(n<0?f.children.length-1:0,n,i,r)}}}if(s&Ii.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+n:e=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let r;if(!(i&Ii.IgnoreOverlays)&&(r=hw.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:a,to:o}of r.overlay)if((n>0?a<=s:a<s)&&(n<0?o>=s:o>s))return new Gs(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function n7(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(n!=null){for(let a=!1;!a;)if(a=r.type.is(n),!r.nextSibling())return s}for(;;){if(i!=null&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return i==null?s:[]}}function Z3(t,e,n=e.length-1){for(let i=t;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class uBe{constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}}class hc extends BW{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return s<0?null:new hc(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&Ii.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new hc(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new hc(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new hc(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];if(s>r){let a=i.buffer[this.index+1];e.push(i.slice(r,s,a)),n.push(0)}return new Yi(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function FW(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;s<t.length;s++){let a=t[s];(a.from>n.from||a.to<n.to)&&(n=a,e=s)}let i=n instanceof Gs&&n.index<0?null:n.parent,r=t.slice();return i?r[e]=i:r.splice(e,1),new dBe(r,n)}class dBe{constructor(e,n){this.heads=e,this.node=n}get next(){return FW(this.heads)}}function hBe(t,e,n){let i=t.resolveInner(e,n),r=null;for(let s=i instanceof Gs?i:i.context.parent;s;s=s.parent)if(s.index<0){let a=s.parent;(r||(r=[i])).push(a.resolve(e,n)),s=a}else{let a=hw.get(s.tree);if(a&&a.overlay&&a.overlay[0].from<=e&&a.overlay[a.overlay.length-1].to>=e){let o=new Gs(a.tree,a.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(Xg(o,e,n,!1))}}return r?FW(r):i}class G3{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Gs)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=n||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof Gs?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&Ii.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Ii.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Ii.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(n.findChild(r,this.index,-1,0,4))}else{let r=n.buffer[this.index+3];if(r<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:i}=r)}else({index:n,_parent:i}=this._tree);for(;i;{index:n,_parent:i}=i)if(n>-1)for(let s=n+e,a=e<0?-1:i._tree.children.length;s!=a;s+=e){let o=i._tree.children[s];if(this.mode&Ii.IncludeAnonymous||o instanceof Pc||!o.type.isAnonymous||p5(o))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,i=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let a=e;a;a=a._parent)if(a.index==r){if(r==this.index)return a;n=a,i=s+1;break e}r=this.stack[--s]}for(let r=i;r<this.stack.length;r++)n=new hc(this.buffer,n,this.stack[r]);return this.bufferNode=new hc(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let i=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&n&&n(this),r=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,r=!0}}}matchContext(e){if(!this.buffer)return Z3(this.node.parent,e);let{buffer:n}=this.buffer,{types:i}=n.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return Z3(this._tree,e,r);let a=i[n.buffer[this.stack[s]]];if(!a.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}}function p5(t){return t.children.some(e=>e instanceof Pc||!e.type.isAnonymous||p5(e))}function pBe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=lBe,reused:s=[],minRepeatType:a=i.types.length}=t,o=Array.isArray(n)?new h5(n,n.length):n,l=i.types,c=0,f=0;function u(S,R,_,P,A,N){let{id:M,start:Q,end:U,size:z}=o,Y=f,ae=c;for(;z<0;)if(o.next(),z==-1){let we=s[M];_.push(we),P.push(Q-S);return}else if(z==-3){c=M;return}else if(z==-4){f=M;return}else throw new RangeError(`Unrecognized record size: ${z}`);let ne=l[M],he,ve,je=Q-S;if(U-Q<=r&&(ve=w(o.pos-R,A))){let we=new Uint16Array(ve.size-ve.skip),ge=o.pos-ve.size,B=we.length;for(;o.pos>ge;)B=O(ve.start,we,B);he=new Pc(we,U-ve.start,i),je=ve.start-S}else{let we=o.pos-z;o.next();let ge=[],B=[],D=M>=a?M:-1,te=0,q=U;for(;o.pos>we;)D>=0&&o.id==D&&o.size>=0?(o.end<=q-r&&(g(ge,B,Q,te,o.end,q,D,Y,ae),te=ge.length,q=o.end),o.next()):N>2500?h(Q,we,ge,B):u(Q,we,ge,B,D,N+1);if(D>=0&&te>0&&te<ge.length&&g(ge,B,Q,te,Q,q,D,Y,ae),ge.reverse(),B.reverse(),D>-1&&te>0){let lt=m(ne,ae);he=m5(ne,ge,B,0,ge.length,0,U-Q,lt,lt)}else he=v(ne,ge,B,U-Q,Y-U,ae)}_.push(he),P.push(je)}function h(S,R,_,P){let A=[],N=0,M=-1;for(;o.pos>R;){let{id:Q,start:U,end:z,size:Y}=o;if(Y>4)o.next();else{if(M>-1&&U<M)break;M<0&&(M=z-r),A.push(Q,U,z),N++,o.next()}}if(N){let Q=new Uint16Array(N*4),U=A[A.length-2];for(let z=A.length-3,Y=0;z>=0;z-=3)Q[Y++]=A[z],Q[Y++]=A[z+1]-U,Q[Y++]=A[z+2]-U,Q[Y++]=Y;_.push(new Pc(Q,A[2]-U,i)),P.push(U-S)}}function m(S,R){return(_,P,A)=>{let N=0,M=_.length-1,Q,U;if(M>=0&&(Q=_[M])instanceof Yi){if(!M&&Q.type==S&&Q.length==A)return Q;(U=Q.prop(Bt.lookAhead))&&(N=P[M]+Q.length+U)}return v(S,_,P,A,N,R)}}function g(S,R,_,P,A,N,M,Q,U){let z=[],Y=[];for(;S.length>P;)z.push(S.pop()),Y.push(R.pop()+_-A);S.push(v(i.types[M],z,Y,N-A,Q-N,U)),R.push(A-_)}function v(S,R,_,P,A,N,M){if(N){let Q=[Bt.contextHash,N];M=M?[Q].concat(M):[Q]}if(A>25){let Q=[Bt.lookAhead,A];M=M?[Q].concat(M):[Q]}return new Yi(S,R,_,P,M)}function w(S,R){let _=o.fork(),P=0,A=0,N=0,M=_.end-r,Q={size:0,start:0,skip:0};e:for(let U=_.pos-S;_.pos>U;){let z=_.size;if(_.id==R&&z>=0){Q.size=P,Q.start=A,Q.skip=N,N+=4,P+=4,_.next();continue}let Y=_.pos-z;if(z<0||Y<U||_.start<M)break;let ae=_.id>=a?4:0,ne=_.start;for(_.next();_.pos>Y;){if(_.size<0)if(_.size==-3)ae+=4;else break e;else _.id>=a&&(ae+=4);_.next()}A=ne,P+=z,N+=ae}return(R<0||P==S)&&(Q.size=P,Q.start=A,Q.skip=N),Q.size>4?Q:void 0}function O(S,R,_){let{id:P,start:A,end:N,size:M}=o;if(o.next(),M>=0&&P<a){let Q=_;if(M>4){let U=o.pos-(M-4);for(;o.pos>U;)_=O(S,R,_)}R[--_]=Q,R[--_]=N-S,R[--_]=A-S,R[--_]=P}else M==-3?c=P:M==-4&&(f=P);return _}let x=[],$=[];for(;o.pos>0;)u(t.start||0,t.bufferStart||0,x,$,-1,0);let T=(e=t.length)!==null&&e!==void 0?e:x.length?$[0]+x[0].length:0;return new Yi(l[t.topID],x.reverse(),$.reverse(),T)}const i7=new WeakMap;function ry(t,e){if(!t.isAnonymous||e instanceof Pc||e.type!=t)return 1;let n=i7.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Yi)){n=1;break}n+=ry(t,i)}i7.set(e,n)}return n}function m5(t,e,n,i,r,s,a,o,l){let c=0;for(let g=i;g<r;g++)c+=ry(t,e[g]);let f=Math.ceil(c*1.5/8),u=[],h=[];function m(g,v,w,O,x){for(let $=w;$<O;){let T=$,S=v[$],R=ry(t,g[$]);for($++;$<O;$++){let _=ry(t,g[$]);if(R+_>=f)break;R+=_}if($==T+1){if(R>f){let _=g[T];m(_.children,_.positions,0,_.children.length,v[T]+x);continue}u.push(g[T])}else{let _=v[$-1]+g[$-1].length-S;u.push(m5(t,g,v,T,$,S,_,null,l))}h.push(S+x-s)}}return m(e,n,i,r,0),(o||l)(u,h,a)}class Tf{constructor(e,n,i,r,s=!1,a=!1){this.from=e,this.to=n,this.tree=i,this.offset=r,this.open=(s?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],i=!1){let r=[new Tf(0,e.length,e,0,!1,i)];for(let s of n)s.to>e.length&&r.push(s);return r}static applyChanges(e,n,i=128){if(!n.length)return e;let r=[],s=1,a=e.length?e[0]:null;for(let o=0,l=0,c=0;;o++){let f=o<n.length?n[o]:null,u=f?f.fromA:1e9;if(u-l>=i)for(;a&&a.from<u;){let h=a;if(l>=h.from||u<=h.to||c){let m=Math.max(h.from,l)-c,g=Math.min(h.to,u)-c;h=m>=g?null:new Tf(m,g,h.tree,h.offset+c,o>0,!!f)}if(h&&r.push(h),a.to>u)break;a=s<e.length?e[s++]:null}if(!f)break;l=f.toA,c=f.toA-f.toB}return r}}class mBe{startParse(e,n,i){return typeof e=="string"&&(e=new gBe(e)),i=i?i.length?i.map(r=>new _S(r.from,r.to)):[new _S(0,0)]:[new _S(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let s=r.advance();if(s)return s}}}class gBe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new Bt({perNode:!0});let vBe=0,il=class X3{constructor(e,n,i,r){this.name=e,this.set=n,this.base=i,this.modified=r,this.id=vBe++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let i=typeof e=="string"?e:"?";if(e instanceof X3&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let r=new X3(i,[],null,[]);if(r.set.push(r),n)for(let s of n.set)r.set.push(s);return r}static defineModifier(e){let n=new r7(e);return i=>i.modified.indexOf(n)>-1?i:r7.get(i.base||i,i.modified.concat(n).sort((r,s)=>r.id-s.id))}},bBe=0,r7=class QW{constructor(e){this.name=e,this.instances=[],this.id=bBe++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(o=>o.base==e&&yBe(n,o.modified));if(i)return i;let r=[],s=new il(e.name,r,e,n);for(let o of n)o.instances.push(s);let a=wBe(n);for(let o of e.set)if(!o.modified.length)for(let l of a)r.push(QW.get(o,l));return s}};function yBe(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function wBe(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((n,i)=>i.length-n.length)}function zW(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let s=[],a=2,o=r;for(let u=0;;){if(o=="..."&&u>0&&u+3==r.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!h)throw new RangeError("Invalid path: "+r);if(s.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),u+=h[0].length,u==r.length)break;let m=r[u++];if(u==r.length&&m=="!"){a=0;break}if(m!="/")throw new RangeError("Invalid path: "+r);o=r.slice(u)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+r);let f=new pw(i,a,l>0?s.slice(0,l):null);e[c]=f.sort(e[c])}}return qW.add(e)}const qW=new Bt;let pw=class{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};pw.empty=new pw([],2,null);function WW(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let a of s.tag)n[a.id]=s.class;let{scope:i,all:r=null}=e||{};return{style:s=>{let a=r;for(let o of s)for(let l of o.set){let c=n[l.id];if(c){a=a?a+" "+c:c;break}}return a},scope:i}}function kBe(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}function OBe(t,e,n,i=0,r=t.length){let s=new xBe(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}class xBe{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,r,s){let{type:a,from:o,to:l}=e;if(o>=i||l<=n)return;a.isTop&&(s=this.highlighters.filter(m=>!m.scope||m.scope(a)));let c=r,f=SBe(e)||pw.empty,u=kBe(s,f.tags);if(u&&(c&&(c+=" "),c+=u,f.mode==1&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(n,o),c),f.opaque)return;let h=e.tree&&e.tree.prop(Bt.mounted);if(h&&h.overlay){let m=e.node.enter(h.overlay[0].from+o,1),g=this.highlighters.filter(w=>!w.scope||w.scope(h.tree.type)),v=e.firstChild();for(let w=0,O=o;;w++){let x=w<h.overlay.length?h.overlay[w]:null,$=x?x.from+o:l,T=Math.max(n,O),S=Math.min(i,$);if(T<S&&v)for(;e.from<S&&(this.highlightRange(e,T,S,r,s),this.startSpan(Math.min(S,e.to),c),!(e.to>=$||!e.nextSibling())););if(!x||$>i)break;O=x.to+o,O>n&&(this.highlightRange(m.cursor(),Math.max(n,x.from+o),Math.min(i,O),"",g),this.startSpan(Math.min(i,O),c))}v&&e.parent()}else if(e.firstChild()){h&&(r="");do if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,r,s),this.startSpan(Math.min(i,e.to),c)}while(e.nextSibling());e.parent()}}}function SBe(t){let e=t.type.prop(qW);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Se=il.define,Zv=Se(),Xl=Se(),s7=Se(Xl),a7=Se(Xl),Yl=Se(),Gv=Se(Yl),CS=Se(Yl),to=Se(),nf=Se(to),Va=Se(),Ha=Se(),Y3=Se(),Sm=Se(Y3),Xv=Se(),re={comment:Zv,lineComment:Se(Zv),blockComment:Se(Zv),docComment:Se(Zv),name:Xl,variableName:Se(Xl),typeName:s7,tagName:Se(s7),propertyName:a7,attributeName:Se(a7),className:Se(Xl),labelName:Se(Xl),namespace:Se(Xl),macroName:Se(Xl),literal:Yl,string:Gv,docString:Se(Gv),character:Se(Gv),attributeValue:Se(Gv),number:CS,integer:Se(CS),float:Se(CS),bool:Se(Yl),regexp:Se(Yl),escape:Se(Yl),color:Se(Yl),url:Se(Yl),keyword:Va,self:Se(Va),null:Se(Va),atom:Se(Va),unit:Se(Va),modifier:Se(Va),operatorKeyword:Se(Va),controlKeyword:Se(Va),definitionKeyword:Se(Va),moduleKeyword:Se(Va),operator:Ha,derefOperator:Se(Ha),arithmeticOperator:Se(Ha),logicOperator:Se(Ha),bitwiseOperator:Se(Ha),compareOperator:Se(Ha),updateOperator:Se(Ha),definitionOperator:Se(Ha),typeOperator:Se(Ha),controlOperator:Se(Ha),punctuation:Y3,separator:Se(Y3),bracket:Sm,angleBracket:Se(Sm),squareBracket:Se(Sm),paren:Se(Sm),brace:Se(Sm),content:to,heading:nf,heading1:Se(nf),heading2:Se(nf),heading3:Se(nf),heading4:Se(nf),heading5:Se(nf),heading6:Se(nf),contentSeparator:Se(to),list:Se(to),quote:Se(to),emphasis:Se(to),strong:Se(to),link:Se(to),monospace:Se(to),strikethrough:Se(to),inserted:Se(),deleted:Se(),changed:Se(),invalid:Se(),meta:Xv,documentMeta:Se(Xv),annotation:Se(Xv),processingInstruction:Se(Xv),definition:il.defineModifier("definition"),constant:il.defineModifier("constant"),function:il.defineModifier("function"),standard:il.defineModifier("standard"),local:il.defineModifier("local"),special:il.defineModifier("special")};for(let t in re){let e=re[t];e instanceof il&&(e.name=t)}WW([{tag:re.link,class:"tok-link"},{tag:re.heading,class:"tok-heading"},{tag:re.emphasis,class:"tok-emphasis"},{tag:re.strong,class:"tok-strong"},{tag:re.keyword,class:"tok-keyword"},{tag:re.atom,class:"tok-atom"},{tag:re.bool,class:"tok-bool"},{tag:re.url,class:"tok-url"},{tag:re.labelName,class:"tok-labelName"},{tag:re.inserted,class:"tok-inserted"},{tag:re.deleted,class:"tok-deleted"},{tag:re.literal,class:"tok-literal"},{tag:re.string,class:"tok-string"},{tag:re.number,class:"tok-number"},{tag:[re.regexp,re.escape,re.special(re.string)],class:"tok-string2"},{tag:re.variableName,class:"tok-variableName"},{tag:re.local(re.variableName),class:"tok-variableName tok-local"},{tag:re.definition(re.variableName),class:"tok-variableName tok-definition"},{tag:re.special(re.variableName),class:"tok-variableName2"},{tag:re.definition(re.propertyName),class:"tok-propertyName tok-definition"},{tag:re.typeName,class:"tok-typeName"},{tag:re.namespace,class:"tok-namespace"},{tag:re.className,class:"tok-className"},{tag:re.macroName,class:"tok-macroName"},{tag:re.propertyName,class:"tok-propertyName"},{tag:re.operator,class:"tok-operator"},{tag:re.comment,class:"tok-comment"},{tag:re.meta,class:"tok-meta"},{tag:re.invalid,class:"tok-invalid"},{tag:re.punctuation,class:"tok-punctuation"}]);const K3=1,_Be=2,CBe=3,$Be=4,PBe=5,TBe=36,ABe=37,EBe=38,RBe=11,DBe=13;function MBe(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function NBe(t){return t==9||t==10||t==13||t==32}let o7=null,l7=null,c7=0;function J3(t,e){let n=t.pos+e;if(l7==t&&c7==n)return o7;for(;NBe(t.peek(e));)e++;let i="";for(;;){let r=t.peek(e);if(!MBe(r))break;i+=String.fromCharCode(r),e++}return l7=t,c7=n,o7=i||null}function f7(t,e){this.name=t,this.parent=e}const LBe=new LW({start:null,shift(t,e,n,i){return e==K3?new f7(J3(i,1)||"",t):t},reduce(t,e){return e==RBe&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==K3||r==DBe?new f7(J3(i,1)||"",t):t},strict:!1}),jBe=new Ep((t,e)=>{if(t.next==60){if(t.advance(),t.next==47){t.advance();let n=J3(t,0);if(!n)return t.acceptToken(PBe);if(e.context&&n==e.context.name)return t.acceptToken(_Be);for(let i=e.context;i;i=i.parent)if(i.name==n)return t.acceptToken(CBe,-2);t.acceptToken($Be)}else if(t.next!=33&&t.next!=63)return t.acceptToken(K3)}},{contextual:!0});function g5(t,e){return new Ep(n=>{let i=0,r=e.charCodeAt(0);e:for(;!(n.next<0);n.advance(),i++)if(n.next==r){for(let s=1;s<e.length;s++)if(n.peek(s)!=e.charCodeAt(s))continue e;break}i&&n.acceptToken(t)})}const IBe=g5(TBe,"-->"),BBe=g5(ABe,"?>"),FBe=g5(EBe,"]]>"),QBe=zW({Text:re.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":re.angleBracket,TagName:re.tagName,"MismatchedCloseTag/TagName":[re.tagName,re.invalid],AttributeName:re.attributeName,AttributeValue:re.attributeValue,Is:re.definitionOperator,"EntityReference CharacterReference":re.character,Comment:re.blockComment,ProcessingInst:re.processingInstruction,DoctypeDecl:re.documentMeta,Cdata:re.special(re.string)}),zBe=Gg.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:LBe,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[QBe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[jBe,IBe,BBe,FBe,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});let eC=[],UW=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?UW:eC).push(n=n+t[e])})();function qBe(t){if(t<768)return!1;for(let e=0,n=eC.length;;){let i=e+n>>1;if(t<eC[i])n=i;else if(t>=UW[i])e=i+1;else return!0;if(e==n)return!1}}function u7(t){return t>=127462&&t<=127487}const d7=8205;function WBe(t,e,n=!0,i=!0){return(n?VW:UBe)(t,e,i)}function VW(t,e,n){if(e==t.length)return e;e&&HW(t.charCodeAt(e))&&ZW(t.charCodeAt(e-1))&&e--;let i=$S(t,e);for(e+=h7(i);e<t.length;){let r=$S(t,e);if(i==d7||r==d7||n&&qBe(r))e+=h7(r),i=r;else if(u7(r)){let s=0,a=e-2;for(;a>=0&&u7($S(t,a));)s++,a-=2;if(s%2==0)break;e+=2}else break}return e}function UBe(t,e,n){for(;e>0;){let i=VW(t,e-2,n);if(i<e)return i;e--}return 0}function $S(t,e){let n=t.charCodeAt(e);if(!ZW(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return HW(i)?(n-55296<<10)+(i-56320)+65536:n}function HW(t){return t>=56320&&t<57344}function ZW(t){return t>=55296&&t<56320}function h7(t){return t<65536?1:2}class ot{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=Vd(this,e,n);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(n,this.length,r,1),mo.from(r,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Vd(this,e,n);let i=[];return this.decompose(e,n,i,0),mo.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new kg(this),s=new kg(e);for(let a=n,o=n;;){if(r.next(a),s.next(a),a=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(o+=r.value.length,r.done||o>=i)return!0}}iter(e=1){return new kg(this,e)}iterRange(e,n=this.length){return new GW(this,e,n)}iterLines(e,n){let i;if(e==null)i=this.iter();else{n==null&&(n=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new XW(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ot.empty:e.length<=32?new Yn(e):mo.from(Yn.split(e,[]))}}class Yn extends ot{constructor(e,n=VBe(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,r){for(let s=0;;s++){let a=this.text[s],o=r+a.length;if((n?i:o)>=e)return new HBe(r,o,i,a);r=o+1,i++}}decompose(e,n,i,r){let s=e<=0&&n>=this.length?this:new Yn(p7(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(r&1){let a=i.pop(),o=sy(s.text,a.text.slice(),0,s.length);if(o.length<=32)i.push(new Yn(o,a.length+s.length));else{let l=o.length>>1;i.push(new Yn(o.slice(0,l)),new Yn(o.slice(l)))}}else i.push(s)}replace(e,n,i){if(!(i instanceof Yn))return super.replace(e,n,i);[e,n]=Vd(this,e,n);let r=sy(this.text,sy(i.text,p7(this.text,0,e)),n),s=this.length+i.length-(n-e);return r.length<=32?new Yn(r,s):mo.from(Yn.split(r,[]),s)}sliceString(e,n=this.length,i=`
|
||
`){[e,n]=Vd(this,e,n);let r="";for(let s=0,a=0;s<=n&&a<this.text.length;a++){let o=this.text[a],l=s+o.length;s>e&&a&&(r+=i),e<l&&n>s&&(r+=o.slice(Math.max(0,e-s),n-s)),s=l+1}return r}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,i.length==32&&(n.push(new Yn(i,r)),i=[],r=-1);return r>-1&&n.push(new Yn(i,r)),n}}class mo extends ot{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,r){for(let s=0;;s++){let a=this.children[s],o=r+a.length,l=i+a.lines-1;if((n?l:o)>=e)return a.lineInner(e,n,i,r);r=o+1,i=l+1}}decompose(e,n,i,r){for(let s=0,a=0;a<=n&&s<this.children.length;s++){let o=this.children[s],l=a+o.length;if(e<=l&&n>=a){let c=r&((a<=e?1:0)|(l>=n?2:0));a>=e&&l<=n&&!c?i.push(o):o.decompose(e-a,n-a,i,c)}a=l+1}}replace(e,n,i){if([e,n]=Vd(this,e,n),i.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let a=this.children[r],o=s+a.length;if(e>=s&&n<=o){let l=a.replace(e-s,n-s,i),c=this.lines-a.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let f=this.children.slice();return f[r]=l,new mo(f,this.length-(n-e)+i.length)}return super.replace(s,o,l)}s=o+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i=`
|
||
`){[e,n]=Vd(this,e,n);let r="";for(let s=0,a=0;s<this.children.length&&a<=n;s++){let o=this.children[s],l=a+o.length;a>e&&s&&(r+=i),e<l&&n>a&&(r+=o.sliceString(e-a,n-a,i)),a=l+1}return r}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof mo))return 0;let i=0,[r,s,a,o]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=n,s+=n){if(r==a||s==o)return i;let l=this.children[r],c=e.children[s];if(l!=c)return i+l.scanIdentical(c,n);i+=l.length+1}}static from(e,n=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let m of e)i+=m.lines;if(i<32){let m=[];for(let g of e)g.flatten(m);return new Yn(m,n)}let r=Math.max(32,i>>5),s=r<<1,a=r>>1,o=[],l=0,c=-1,f=[];function u(m){let g;if(m.lines>s&&m instanceof mo)for(let v of m.children)u(v);else m.lines>a&&(l>a||!l)?(h(),o.push(m)):m instanceof Yn&&l&&(g=f[f.length-1])instanceof Yn&&m.lines+g.lines<=32?(l+=m.lines,c+=m.length+1,f[f.length-1]=new Yn(g.text.concat(m.text),g.length+1+m.length)):(l+m.lines>r&&h(),l+=m.lines,c+=m.length+1,f.push(m))}function h(){l!=0&&(o.push(f.length==1?f[0]:mo.from(f,c)),c=-1,l=f.length=0)}for(let m of e)u(m);return h(),o.length==1?o[0]:new mo(o,n)}}ot.empty=new Yn([""],0);function VBe(t){let e=-1;for(let n of t)e+=n.length+1;return e}function sy(t,e,n=0,i=1e9){for(let r=0,s=0,a=!0;s<t.length&&r<=i;s++){let o=t[s],l=r+o.length;l>=n&&(l>i&&(o=o.slice(0,i-r)),r<n&&(o=o.slice(n-r)),a?(e[e.length-1]+=o,a=!1):e.push(o)),r=l+1}return e}function p7(t,e,n){return sy(t,[""],e,n)}class kg{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof Yn?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],a=s>>1,o=r instanceof Yn?r.text.length:r.children.length;if(a==(n>0?o:0)){if(i==0)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(n>0?0:1)){if(this.offsets[i]+=n,e==0)return this.lineBreak=!0,this.value=`
|
||
`,this;e--}else if(r instanceof Yn){let l=r.text[a+(n<0?-1:0)];if(this.offsets[i]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[a+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Yn?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class GW{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new kg(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*n,this.value=r.length<=i?r:n<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class XW{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:r}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ot.prototype[Symbol.iterator]=function(){return this.iter()},kg.prototype[Symbol.iterator]=GW.prototype[Symbol.iterator]=XW.prototype[Symbol.iterator]=function(){return this});class HBe{constructor(e,n,i,r){this.from=e,this.to=n,this.number=i,this.text=r}get length(){return this.to-this.from}}function Vd(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function Qn(t,e,n=!0,i=!0){return WBe(t,e,n,i)}function ZBe(t){return t>=56320&&t<57344}function GBe(t){return t>=55296&&t<56320}function cr(t,e){let n=t.charCodeAt(e);if(!GBe(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return ZBe(i)?(n-55296<<10)+(i-56320)+65536:n}function v5(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function ka(t){return t<65536?1:2}const tC=/\r\n?|\n/;var Wn=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(Wn||(Wn={}));class xo{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n+1];e+=i<0?this.sections[n]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,i=0,r=0;n<this.sections.length;){let s=this.sections[n++],a=this.sections[n++];a<0?(e(i,r,s),r+=s):r+=a,i+=s}}iterChangedRanges(e,n=!1){nC(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];r<0?e.push(i,r):e.push(r,i)}return new xo(e)}composeDesc(e){return this.empty?e:e.empty?this:YW(this,e)}mapDesc(e,n=!1){return e.empty?this:iC(this,e,n)}mapPos(e,n=-1,i=Wn.Simple){let r=0,s=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],l=this.sections[a++],c=r+o;if(l<0){if(c>e)return s+(e-r);s+=o}else{if(i!=Wn.Simple&&c>=e&&(i==Wn.TrackDel&&r<e&&c>e||i==Wn.TrackBefore&&r<e||i==Wn.TrackAfter&&c>e))return null;if(c>e||c==e&&n<0&&!o)return e==r||n<0?s:s+l;s+=l}r=c}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,n=e){for(let i=0,r=0;i<this.sections.length&&r<=n;){let s=this.sections[i++],a=this.sections[i++],o=r+s;if(a>=0&&r<=n&&o>=e)return r<e&&o>n?"cover":!0;r=o}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new xo(e)}static create(e){return new xo(e)}}class Kn extends xo{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return nC(this,(n,i,r,s,a)=>e=e.replace(r,r+(i-n),a),!1),e}mapDesc(e,n=!1){return iC(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let r=0,s=0;r<n.length;r+=2){let a=n[r],o=n[r+1];if(o>=0){n[r]=o,n[r+1]=a;let l=r>>1;for(;i.length<l;)i.push(ot.empty);i.push(a?e.slice(s,s+a):ot.empty)}s+=a}return new Kn(n,i)}compose(e){return this.empty?e:e.empty?this:YW(this,e,!0)}map(e,n=!1){return e.empty?this:iC(this,e,n,!0)}iterChanges(e,n=!1){nC(this,e,n)}get desc(){return xo.create(this.sections)}filter(e){let n=[],i=[],r=[],s=new Yg(this);e:for(let a=0,o=0;;){let l=a==e.length?1e9:e[a++];for(;o<l||o==l&&s.len==0;){if(s.done)break e;let f=Math.min(s.len,l-o);Gi(r,f,-1);let u=s.ins==-1?-1:s.off==0?s.ins:0;Gi(n,f,u),u>0&&pc(i,n,s.text),s.forward(f),o+=f}let c=e[a++];for(;o<c;){if(s.done)break e;let f=Math.min(s.len,c-o);Gi(n,f,-1),Gi(r,f,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(f),o+=f}}return{changes:new Kn(n,i),filtered:xo.create(r)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n],r=this.sections[n+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,i){let r=[],s=[],a=0,o=null;function l(f=!1){if(!f&&!r.length)return;a<n&&Gi(r,n-a,-1);let u=new Kn(r,s);o=o?o.compose(u.map(o)):u,r=[],s=[],a=0}function c(f){if(Array.isArray(f))for(let u of f)c(u);else if(f instanceof Kn){if(f.length!=n)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${n})`);l(),o=o?o.compose(f.map(o)):f}else{let{from:u,to:h=u,insert:m}=f;if(u>h||u<0||h>n)throw new RangeError(`Invalid change range ${u} to ${h} (in doc of length ${n})`);let g=m?typeof m=="string"?ot.of(m.split(i||tC)):m:ot.empty,v=g.length;if(u==h&&v==0)return;u<a&&l(),u>a&&Gi(r,u-a,-1),Gi(r,h-u,v),pc(s,r,g),a=h}}return c(e),l(!o),o}static empty(e){return new Kn(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number")n.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((a,o)=>o&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else{for(;i.length<r;)i.push(ot.empty);i[r]=ot.of(s.slice(1)),n.push(s[0],i[r].length)}}}return new Kn(n,i)}static createSet(e,n){return new Kn(e,n)}}function Gi(t,e,n,i=!1){if(e==0&&n<=0)return;let r=t.length-2;r>=0&&n<=0&&n==t[r+1]?t[r]+=e:r>=0&&e==0&&t[r]==0?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function pc(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<i;)t.push(ot.empty);t.push(n)}}function nC(t,e,n){let i=t.inserted;for(let r=0,s=0,a=0;a<t.sections.length;){let o=t.sections[a++],l=t.sections[a++];if(l<0)r+=o,s+=o;else{let c=r,f=s,u=ot.empty;for(;c+=o,f+=l,l&&i&&(u=u.append(i[a-2>>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)o=t.sections[a++],l=t.sections[a++];e(r,c,s,f,u),r=c,s=f}}}function iC(t,e,n,i=!1){let r=[],s=i?[]:null,a=new Yg(t),o=new Yg(e);for(let l=-1;;){if(a.done&&o.len||o.done&&a.len)throw new Error("Mismatched change set lengths");if(a.ins==-1&&o.ins==-1){let c=Math.min(a.len,o.len);Gi(r,c,-1),a.forward(c),o.forward(c)}else if(o.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(o.len<a.len||o.len==a.len&&!n))){let c=o.len;for(Gi(r,o.ins,-1);c;){let f=Math.min(a.len,c);a.ins>=0&&l<a.i&&a.len<=f&&(Gi(r,0,a.ins),s&&pc(s,r,a.text),l=a.i),a.forward(f),c-=f}o.next()}else if(a.ins>=0){let c=0,f=a.len;for(;f;)if(o.ins==-1){let u=Math.min(f,o.len);c+=u,f-=u,o.forward(u)}else if(o.ins==0&&o.len<f)f-=o.len,o.next();else break;Gi(r,c,l<a.i?a.ins:0),s&&l<a.i&&pc(s,r,a.text),l=a.i,a.forward(a.len-f)}else{if(a.done&&o.done)return s?Kn.createSet(r,s):xo.create(r);throw new Error("Mismatched change set lengths")}}}function YW(t,e,n=!1){let i=[],r=n?[]:null,s=new Yg(t),a=new Yg(e);for(let o=!1;;){if(s.done&&a.done)return r?Kn.createSet(i,r):xo.create(i);if(s.ins==0)Gi(i,s.len,0,o),s.next();else if(a.len==0&&!a.done)Gi(i,0,a.ins,o),r&&pc(r,i,a.text),a.next();else{if(s.done||a.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,a.len),c=i.length;if(s.ins==-1){let f=a.ins==-1?-1:a.off?0:a.ins;Gi(i,l,f,o),r&&f&&pc(r,i,a.text)}else a.ins==-1?(Gi(i,s.off?0:s.len,l,o),r&&pc(r,i,s.textBit(l))):(Gi(i,s.off?0:s.len,a.off?0:a.ins,o),r&&!a.off&&pc(r,i,a.text));o=(s.ins>l||a.ins>=0&&a.len>l)&&(o||i.length>c),s.forward2(l),a.forward(l)}}}}class Yg{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?ot.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?ot.empty:n[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Cf{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Cf(i,r,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return ee.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return ee.range(this.anchor,i)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return ee.range(e.anchor,e.head)}static create(e,n,i){return new Cf(e,n,i)}}class ee{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:ee.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new ee([this.main],0)}addRange(e,n=!0){return ee.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let i=this.ranges.slice();return i[n]=e,ee.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new ee(e.ranges.map(n=>Cf.fromJSON(n)),e.main)}static single(e,n=e){return new ee([ee.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let s=e[r];if(s.empty?s.from<=i:s.from<i)return ee.normalized(e.slice(),n);i=s.to}return new ee(e,n)}static cursor(e,n=0,i,r){return Cf.create(e,e,(n==0?0:n<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,n,i,r){let s=(i??16777215)<<6|(r==null?7:Math.min(6,r));return n<e?Cf.create(n,e,48|s):Cf.create(e,n,(n>e?8:0)|s)}static normalized(e,n=0){let i=e[n];e.sort((r,s)=>r.from-s.from),n=e.indexOf(i);for(let r=1;r<e.length;r++){let s=e[r],a=e[r-1];if(s.empty?s.from<=a.to:s.from<a.to){let o=a.from,l=Math.max(s.to,a.to);r<=n&&n--,e.splice(--r,2,s.anchor>s.head?ee.range(l,o):ee.range(o,l))}}return new ee(e,n)}}function KW(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let b5=0;class me{constructor(e,n,i,r,s){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=r,this.id=b5++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new me(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:y5),!!e.static,e.enables)}of(e){return new ay([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new ay(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new ay(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function y5(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class ay{constructor(e,n,i,r){this.dependencies=e,this.facet=n,this.type=i,this.value=r,this.id=b5++}dynamicSlot(e){var n;let i=this.value,r=this.facet.compareInput,s=this.id,a=e[s]>>1,o=this.type==2,l=!1,c=!1,f=[];for(let u of this.dependencies)u=="doc"?l=!0:u=="selection"?c=!0:(((n=e[u.id])!==null&&n!==void 0?n:1)&1)==0&&f.push(e[u.id]);return{create(u){return u.values[a]=i(u),1},update(u,h){if(l&&h.docChanged||c&&(h.docChanged||h.selection)||rC(u,f)){let m=i(u);if(o?!m7(m,u.values[a],r):!r(m,u.values[a]))return u.values[a]=m,1}return 0},reconfigure:(u,h)=>{let m,g=h.config.address[s];if(g!=null){let v=gw(h,g);if(this.dependencies.every(w=>w instanceof me?h.facet(w)===u.facet(w):w instanceof Pi?h.field(w,!1)==u.field(w,!1):!0)||(o?m7(m=i(u),v,r):r(m=i(u),v)))return u.values[a]=v,0}else m=i(u);return u.values[a]=m,1}}}}function m7(t,e,n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!n(t[i],e[i]))return!1;return!0}function rC(t,e){let n=!1;for(let i of e)Og(t,i)&1&&(n=!0);return n}function XBe(t,e,n){let i=n.map(l=>t[l.id]),r=n.map(l=>l.type),s=i.filter(l=>!(l&1)),a=t[e.id]>>1;function o(l){let c=[];for(let f=0;f<i.length;f++){let u=gw(l,i[f]);if(r[f]==2)for(let h of u)c.push(h);else c.push(u)}return e.combine(c)}return{create(l){for(let c of i)Og(l,c);return l.values[a]=o(l),1},update(l,c){if(!rC(l,s))return 0;let f=o(l);return e.compare(f,l.values[a])?0:(l.values[a]=f,1)},reconfigure(l,c){let f=rC(l,i),u=c.config.facets[e.id],h=c.facet(e);if(u&&!f&&y5(n,u))return l.values[a]=h,0;let m=o(l);return e.compare(m,h)?(l.values[a]=h,0):(l.values[a]=m,1)}}}const Yv=me.define({static:!0});class Pi{constructor(e,n,i,r,s){this.id=e,this.createF=n,this.updateF=i,this.compareF=r,this.spec=s,this.provides=void 0}static define(e){let n=new Pi(b5++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(Yv).find(i=>i.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,r)=>{let s=i.values[n],a=this.updateF(s,r);return this.compareF(s,a)?0:(i.values[n]=a,1)},reconfigure:(i,r)=>{let s=i.facet(Yv),a=r.facet(Yv),o;return(o=s.find(l=>l.field==this))&&o!=a.find(l=>l.field==this)?(i.values[n]=o.create(i),1):r.config.address[this.id]!=null?(i.values[n]=r.field(this),0):(i.values[n]=this.create(i),1)}}}init(e){return[this,Yv.of({field:this,create:e})]}get extension(){return this}}const bf={lowest:4,low:3,default:2,high:1,highest:0};function _m(t){return e=>new JW(e,t)}const Mo={highest:_m(bf.highest),high:_m(bf.high),default:_m(bf.default),low:_m(bf.low),lowest:_m(bf.lowest)};class JW{constructor(e,n){this.inner=e,this.prec=n}}class SO{of(e){return new sC(this,e)}reconfigure(e){return SO.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class sC{constructor(e,n){this.compartment=e,this.inner=n}}class mw{constructor(e,n,i,r,s,a){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,i){let r=[],s=Object.create(null),a=new Map;for(let h of YBe(e,n,a))h instanceof Pi?r.push(h):(s[h.facet.id]||(s[h.facet.id]=[])).push(h);let o=Object.create(null),l=[],c=[];for(let h of r)o[h.id]=c.length<<1,c.push(m=>h.slot(m));let f=i==null?void 0:i.config.facets;for(let h in s){let m=s[h],g=m[0].facet,v=f&&f[h]||[];if(m.every(w=>w.type==0))if(o[g.id]=l.length<<1|1,y5(v,m))l.push(i.facet(g));else{let w=g.combine(m.map(O=>O.value));l.push(i&&g.compare(w,i.facet(g))?i.facet(g):w)}else{for(let w of m)w.type==0?(o[w.id]=l.length<<1|1,l.push(w.value)):(o[w.id]=c.length<<1,c.push(O=>w.dynamicSlot(O)));o[g.id]=c.length<<1,c.push(w=>XBe(w,g,m))}}let u=c.map(h=>h(o));return new mw(e,a,u,o,l,s)}}function YBe(t,e,n){let i=[[],[],[],[],[]],r=new Map;function s(a,o){let l=r.get(a);if(l!=null){if(l<=o)return;let c=i[l].indexOf(a);c>-1&&i[l].splice(c,1),a instanceof sC&&n.delete(a.compartment)}if(r.set(a,o),Array.isArray(a))for(let c of a)s(c,o);else if(a instanceof sC){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(a.compartment)||a.inner;n.set(a.compartment,c),s(c,o)}else if(a instanceof JW)s(a.inner,a.prec);else if(a instanceof Pi)i[o].push(a),a.provides&&s(a.provides,o);else if(a instanceof ay)i[o].push(a),a.facet.extensions&&s(a.facet.extensions,bf.default);else{let c=a.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,o)}}return s(t,bf.default),i.reduce((a,o)=>a.concat(o))}function Og(t,e){if(e&1)return 2;let n=e>>1,i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function gw(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const eU=me.define(),aC=me.define({combine:t=>t.some(e=>e),static:!0}),tU=me.define({combine:t=>t.length?t[0]:void 0,static:!0}),nU=me.define(),iU=me.define(),rU=me.define(),sU=me.define({combine:t=>t.length?t[0]:!1});class ta{constructor(e,n){this.type=e,this.value=n}static define(){return new KBe}}class KBe{of(e){return new ta(this,e)}}class JBe{constructor(e){this.map=e}of(e){return new it(this,e)}}class it{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new it(this.type,n)}is(e){return this.type==e}static define(e={}){return new JBe(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let i=[];for(let r of e){let s=r.map(n);s&&i.push(s)}return i}}it.reconfigure=it.define();it.appendConfig=it.define();class Jn{constructor(e,n,i,r,s,a){this.startState=e,this.changes=n,this.selection=i,this.effects=r,this.annotations=s,this.scrollIntoView=a,this._doc=null,this._state=null,i&&KW(i,n.newLength),s.some(o=>o.type==Jn.time)||(this.annotations=s.concat(Jn.time.of(Date.now())))}static create(e,n,i,r,s,a){return new Jn(e,n,i,r,s,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(Jn.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}Jn.time=ta.define();Jn.userEvent=ta.define();Jn.addToHistory=ta.define();Jn.remote=ta.define();function eFe(t,e){let n=[];for(let i=0,r=0;;){let s,a;if(i<t.length&&(r==e.length||e[r]>=t[i]))s=t[i++],a=t[i++];else if(r<e.length)s=e[r++],a=e[r++];else return n;!n.length||n[n.length-1]<s?n.push(s,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function aU(t,e,n){var i;let r,s,a;return n?(r=e.changes,s=Kn.empty(e.changes.length),a=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),a=t.changes.compose(r)),{changes:a,selection:e.selection?e.selection.map(s):(i=t.selection)===null||i===void 0?void 0:i.map(r),effects:it.mapEffects(t.effects,r).concat(it.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function oC(t,e,n){let i=e.selection,r=xd(e.annotations);return e.userEvent&&(r=r.concat(Jn.userEvent.of(e.userEvent))),{changes:e.changes instanceof Kn?e.changes:Kn.of(e.changes||[],n,t.facet(tU)),selection:i&&(i instanceof ee?i:ee.single(i.anchor,i.head)),effects:xd(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function oU(t,e,n){let i=oC(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(n=!1);let a=!!e[s].sequential;i=aU(i,oC(t,e[s],a?i.changes.newLength:t.doc.length),a)}let r=Jn.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return nFe(n?tFe(r):r)}function tFe(t){let e=t.startState,n=!0;for(let r of e.facet(nU)){let s=r(t);if(s===!1){n=!1;break}Array.isArray(s)&&(n=n===!0?s:eFe(n,s))}if(n!==!0){let r,s;if(n===!1)s=t.changes.invertedDesc,r=Kn.empty(e.doc.length);else{let a=t.changes.filter(n);r=a.changes,s=a.filtered.mapDesc(a.changes).invertedDesc}t=Jn.create(e,r,t.selection&&t.selection.map(s),it.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let i=e.facet(iU);for(let r=i.length-1;r>=0;r--){let s=i[r](t);s instanceof Jn?t=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Jn?t=s[0]:t=oU(e,xd(s),!1)}return t}function nFe(t){let e=t.startState,n=e.facet(rU),i=t;for(let r=n.length-1;r>=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=aU(i,oC(e,s,t.changes.newLength),!0))}return i==t?t:Jn.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const iFe=[];function xd(t){return t==null?iFe:Array.isArray(t)?t:[t]}var Pn=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(Pn||(Pn={}));const rFe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let lC;try{lC=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function sFe(t){if(lC)return lC.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||rFe.test(n)))return!0}return!1}function aFe(t){return e=>{if(!/\S/.test(e))return Pn.Space;if(sFe(e))return Pn.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Pn.Word;return Pn.Other}}class kt{constructor(e,n,i,r,s,a){this.config=e,this.doc=n,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,a&&(a._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)Og(this,o<<1);this.computeSlot=null}field(e,n=!0){let i=this.config.address[e.id];if(i==null){if(n)throw new RangeError("Field is not present in this state");return}return Og(this,i),gw(this,i)}update(...e){return oU(this,e,!0)}applyTransaction(e){let n=this.config,{base:i,compartments:r}=n;for(let o of e.effects)o.is(SO.reconfigure)?(n&&(r=new Map,n.compartments.forEach((l,c)=>r.set(c,l)),n=null),r.set(o.value.compartment,o.value.extension)):o.is(it.reconfigure)?(n=null,i=o.value):o.is(it.appendConfig)&&(n=null,i=xd(i).concat(o.value));let s;n?s=e.startState.values.slice():(n=mw.resolve(i,r,this),s=new kt(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let a=e.startState.facet(aC)?e.newSelection:e.newSelection.asSingle();new kt(n,e.newDoc,a,s,(o,l)=>l.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:ee.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,i=e(n.ranges[0]),r=this.changes(i.changes),s=[i.range],a=xd(i.effects);for(let o=1;o<n.ranges.length;o++){let l=e(n.ranges[o]),c=this.changes(l.changes),f=c.map(r);for(let h=0;h<o;h++)s[h]=s[h].map(f);let u=r.mapDesc(c,!0);s.push(l.range.map(u)),r=r.compose(f),a=it.mapEffects(a,f).concat(it.mapEffects(xd(l.effects),u))}return{changes:r,selection:ee.create(s,n.mainIndex),effects:a}}changes(e=[]){return e instanceof Kn?e:Kn.of(e,this.doc.length,this.facet(kt.lineSeparator))}toText(e){return ot.of(e.split(this.facet(kt.lineSeparator)||tC))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(Og(this,n),gw(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof Pi&&this.config.address[r.id]!=null&&(n[i]=r.spec.toJSON(this.field(e[i]),this))}return n}static fromJSON(e,n={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let a=i[s],o=e[s];r.push(a.init(l=>a.spec.fromJSON(o,l)))}}return kt.create({doc:e.doc,selection:ee.fromJSON(e.selection),extensions:n.extensions?r.concat([n.extensions]):r})}static create(e={}){let n=mw.resolve(e.extensions||[],new Map),i=e.doc instanceof ot?e.doc:ot.of((e.doc||"").split(n.staticFacet(kt.lineSeparator)||tC)),r=e.selection?e.selection instanceof ee?e.selection:ee.single(e.selection.anchor,e.selection.head):ee.single(0);return KW(r,i.length),n.staticFacet(aC)||(r=r.asSingle()),new kt(n,i,r,n.dynamicSlots.map(()=>null),(s,a)=>a.create(s),null)}get tabSize(){return this.facet(kt.tabSize)}get lineBreak(){return this.facet(kt.lineSeparator)||`
|
||
`}get readOnly(){return this.facet(sU)}phrase(e,...n){for(let i of this.facet(kt.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>n.length?i:n[s-1]})),e}languageDataAt(e,n,i=-1){let r=[];for(let s of this.facet(eU))for(let a of s(this,n,i))Object.prototype.hasOwnProperty.call(a,e)&&r.push(a[e]);return r}charCategorizer(e){return aFe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),a=e-i,o=e-i;for(;a>0;){let l=Qn(n,a,!1);if(s(n.slice(l,a))!=Pn.Word)break;a=l}for(;o<r;){let l=Qn(n,o);if(s(n.slice(o,l))!=Pn.Word)break;o=l}return a==o?null:ee.range(a+i,o+i)}}kt.allowMultipleSelections=aC;kt.tabSize=me.define({combine:t=>t.length?t[0]:4});kt.lineSeparator=tU;kt.readOnly=sU;kt.phrases=me.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(r=>t[r]==e[r])}});kt.languageData=eU;kt.changeFilter=nU;kt.transactionFilter=iU;kt.transactionExtender=rU;SO.reconfigure=it.define();function No(t,e,n={}){let i={};for(let r of t)for(let s of Object.keys(r)){let a=r[s],o=i[s];if(o===void 0)i[s]=a;else if(!(o===a||a===void 0))if(Object.hasOwnProperty.call(n,s))i[s]=n[s](o,a);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Eo{eq(e){return this==e}range(e,n=e){return Kg.create(e,n,this)}}Eo.prototype.startSide=Eo.prototype.endSide=0;Eo.prototype.point=!1;Eo.prototype.mapMode=Wn.TrackDel;class Kg{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new Kg(e,n,i)}}function cC(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class w5{constructor(e,n,i,r){this.from=e,this.to=n,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,r=0){let s=i?this.to:this.from;for(let a=r,o=s.length;;){if(a==o)return a;let l=a+o>>1,c=s[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return c>=0?a:o;c>=0?o=l:a=l+1}}between(e,n,i,r){for(let s=this.findIndex(n,-1e9,!0),a=this.findIndex(i,1e9,!1,s);s<a;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,n){let i=[],r=[],s=[],a=-1,o=-1;for(let l=0;l<this.value.length;l++){let c=this.value[l],f=this.from[l]+e,u=this.to[l]+e,h,m;if(f==u){let g=n.mapPos(f,c.startSide,c.mapMode);if(g==null||(h=m=g,c.startSide!=c.endSide&&(m=n.mapPos(f,c.endSide),m<h)))continue}else if(h=n.mapPos(f,c.startSide),m=n.mapPos(u,c.endSide),h>m||h==m&&c.startSide>0&&c.endSide<=0)continue;(m-h||c.endSide-c.startSide)<0||(a<0&&(a=h),c.point&&(o=Math.max(o,m-h)),i.push(c),r.push(h-a),s.push(m-a))}return{mapped:i.length?new w5(r,s,i,o):null,pos:a}}}class ft{constructor(e,n,i,r){this.chunkPos=e,this.chunk=n,this.nextLayer=i,this.maxPoint=r}static create(e,n,i,r){return new ft(e,n,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:i=!1,filterFrom:r=0,filterTo:s=this.length}=e,a=e.filter;if(n.length==0&&!a)return this;if(i&&(n=n.slice().sort(cC)),this.isEmpty)return n.length?ft.of(n):this;let o=new lU(this,null,-1).goto(0),l=0,c=[],f=new Tc;for(;o.value||l<n.length;)if(l<n.length&&(o.from-n[l].from||o.startSide-n[l].value.startSide)>=0){let u=n[l++];f.addInner(u.from,u.to,u.value)||c.push(u)}else o.rangeIndex==1&&o.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(o.chunkIndex)<n[l].from)&&(!a||r>this.chunkEnd(o.chunkIndex)||s<this.chunkPos[o.chunkIndex])&&f.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!a||r>o.to||s<o.from||a(o.from,o.to,o.value))&&(f.addInner(o.from,o.to,o.value)||c.push(Kg.create(o.from,o.to,o.value))),o.next());return f.finishInner(this.nextLayer.isEmpty&&!c.length?ft.empty:this.nextLayer.update({add:c,filter:a,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],i=[],r=-1;for(let a=0;a<this.chunk.length;a++){let o=this.chunkPos[a],l=this.chunk[a],c=e.touchesRange(o,o+l.length);if(c===!1)r=Math.max(r,l.maxPoint),n.push(l),i.push(e.mapPos(o));else if(c===!0){let{mapped:f,pos:u}=l.map(o,e);f&&(r=Math.max(r,f.maxPoint),n.push(f),i.push(u))}}let s=this.nextLayer.map(e);return n.length==0?s:new ft(i,n,s||ft.empty,r)}between(e,n,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],a=this.chunk[r];if(n>=s&&e<=s+a.length&&a.between(s,e-s,n-s,i)===!1)return}this.nextLayer.between(e,n,i)}}iter(e=0){return Jg.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Jg.from(e).goto(n)}static compare(e,n,i,r,s=-1){let a=e.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),o=n.filter(u=>u.maxPoint>0||!u.isEmpty&&u.maxPoint>=s),l=g7(a,o,i),c=new Cm(a,l,s),f=new Cm(o,l,s);i.iterGaps((u,h,m)=>v7(c,u,f,h,m,r)),i.empty&&i.length==0&&v7(c,0,f,0,0,r)}static eq(e,n,i=0,r){r==null&&(r=999999999);let s=e.filter(f=>!f.isEmpty&&n.indexOf(f)<0),a=n.filter(f=>!f.isEmpty&&e.indexOf(f)<0);if(s.length!=a.length)return!1;if(!s.length)return!0;let o=g7(s,a),l=new Cm(s,o,0).goto(i),c=new Cm(a,o,0).goto(i);for(;;){if(l.to!=c.to||!fC(l.active,c.active)||l.point&&(!c.point||!l.point.eq(c.point)))return!1;if(l.to>r)return!0;l.next(),c.next()}}static spans(e,n,i,r,s=-1){let a=new Cm(e,null,s).goto(n),o=n,l=a.openStart;for(;;){let c=Math.min(a.to,i);if(a.point){let f=a.activeForPoint(a.to),u=a.pointFrom<n?f.length+1:a.point.startSide<0?f.length:Math.min(f.length,l);r.point(o,c,a.point,f,u,a.pointRank),l=Math.min(a.openEnd(c),f.length)}else c>o&&(r.span(o,c,a.active,l),l=a.openEnd(c));if(a.to>i)return l+(a.point&&a.to>i?1:0);o=a.to,a.next()}}static of(e,n=!1){let i=new Tc;for(let r of e instanceof Kg?[e]:n?oFe(e):e)i.add(r.from,r.to,r.value);return i.finish()}static join(e){if(!e.length)return ft.empty;let n=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let r=e[i];r!=ft.empty;r=r.nextLayer)n=new ft(r.chunkPos,r.chunk,n,Math.max(r.maxPoint,n.maxPoint));return n}}ft.empty=new ft([],[],null,-1);function oFe(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let i=t[n];if(cC(e,i)>0)return t.slice().sort(cC);e=i}return t}ft.empty.nextLayer=ft.empty;class Tc{finishChunk(e){this.chunks.push(new w5(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new Tc)).add(e,n,i)}addInner(e,n,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(ft.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=ft.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function g7(t,e,n){let i=new Map;for(let s of t)for(let a=0;a<s.chunk.length;a++)s.chunk[a].maxPoint<=0&&i.set(s.chunk[a],s.chunkPos[a]);let r=new Set;for(let s of e)for(let a=0;a<s.chunk.length;a++){let o=i.get(s.chunk[a]);o!=null&&(n?n.mapPos(o):o)==s.chunkPos[a]&&!(n!=null&&n.touchesRange(o,o+s.chunk[a].length))&&r.add(s.chunk[a])}return r}class lU{constructor(e,n,i,r=0){this.layer=e,this.skip=n,this.minPoint=i,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,i){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!i||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],i=e+n.from[this.rangeIndex];if(this.from=i,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Jg{constructor(e){this.heap=e}static from(e,n=null,i=-1){let r=[];for(let s=0;s<e.length;s++)for(let a=e[s];!a.isEmpty;a=a.nextLayer)a.maxPoint>=i&&r.push(new lU(a,n,i,s));return r.length==1?r[0]:new Jg(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)PS(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)PS(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),PS(this.heap,0)}}}function PS(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1<t.length&&r.compare(t[i+1])>=0&&(r=t[i+1],i++),n.compare(r)<0)break;t[i]=n,t[e]=r,e=i}}class Cm{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Jg.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){Kv(this.active,e),Kv(this.activeTo,e),Kv(this.activeRank,e),this.minActive=b7(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:r,rank:s}=this.cursor;for(;n<this.activeRank.length&&(s-this.activeRank[n]||r-this.activeTo[n])>0;)n++;Jv(this.active,n,i),Jv(this.activeTo,n,r),Jv(this.activeRank,n,s),e&&Jv(e,n,this.cursor.from),this.minActive=b7(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&Kv(i,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(i),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let r=i.length-1;r>=0&&i[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function v7(t,e,n,i,r,s){t.goto(e),n.goto(i);let a=i+r,o=i,l=i-e;for(;;){let c=t.to+l-n.to,f=c||t.endSide-n.endSide,u=f<0?t.to+l:n.to,h=Math.min(u,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&fC(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(o,h,t.point,n.point):h>o&&!fC(t.active,n.active)&&s.compareRange(o,h,t.active,n.active),u>a)break;(c||t.openEnd!=n.openEnd)&&s.boundChange&&s.boundChange(u),o=u,f<=0&&t.next(),f>=0&&n.next()}}function fC(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function Kv(t,e){for(let n=e,i=t.length-1;n<i;n++)t[n]=t[n+1];t.pop()}function Jv(t,e,n){for(let i=t.length-1;i>=e;i--)t[i+1]=t[i];t[e]=n}function b7(t,e){let n=-1,i=1e9;for(let r=0;r<e.length;r++)(e[r]-i||t[r].endSide-t[n].endSide)<0&&(n=r,i=e[r]);return n}function Rp(t,e,n=t.length){let i=0;for(let r=0;r<n&&r<t.length;)t.charCodeAt(r)==9?(i+=e-i%e,r++):(i++,r=Qn(t,r));return i}function vw(t,e,n,i){for(let r=0,s=0;;){if(s>=e)return r;if(r==t.length)break;s+=t.charCodeAt(r)==9?n-s%n:1,r=Qn(t,r)}return i===!0?-1:t.length}const uC="ͼ",y7=typeof Symbol>"u"?"__"+uC:Symbol.for(uC),dC=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),w7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class jr{constructor(e,n){this.rules=[];let{finish:i}=n||{};function r(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function s(a,o,l,c){let f=[],u=/^@(\w+)\b/.exec(a[0]),h=u&&u[1]=="keyframes";if(u&&o==null)return l.push(a[0]+";");for(let m in o){let g=o[m];if(/&/.test(m))s(m.split(/,\s*/).map(v=>a.map(w=>v.replace(/&/,w))).reduce((v,w)=>v.concat(w)),g,l);else if(g&&typeof g=="object"){if(!u)throw new RangeError("The value of a property ("+m+") should be a primitive value.");s(r(m),g,f,h)}else g!=null&&f.push(m.replace(/_.*/,"").replace(/[A-Z]/g,v=>"-"+v.toLowerCase())+": "+g+";")}(f.length||h)&&l.push((i&&!u&&!c?a.map(i):a).join(", ")+" {"+f.join(" ")+"}")}for(let a in e)s(r(a),e[a],this.rules)}getRules(){return this.rules.join(`
|
||
`)}static newName(){let e=w7[y7]||1;return w7[y7]=e+1,uC+e.toString(36)}static mount(e,n,i){let r=e[dC],s=i&&i.nonce;r?s&&r.setNonce(s):r=new lFe(e,s),r.mount(Array.isArray(n)?n:[n],e)}}let k7=new Map;class lFe{constructor(e,n){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=k7.get(i);if(s)return e[dC]=s;this.sheet=new r.CSSStyleSheet,k7.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[dC]=this}mount(e,n){let i=this.sheet,r=0,s=0;for(let a=0;a<e.length;a++){let o=e[a],l=this.modules.indexOf(o);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,o),i)for(let c=0;c<o.rules.length;c++)i.insertRule(o.rules[c],r++)}else{for(;s<l;)r+=this.modules[s++].rules.length;r+=o.rules.length,s++}}if(i)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let a="";for(let l=0;l<this.modules.length;l++)a+=this.modules[l].getRules()+`
|
||
`;this.styleTag.textContent=a;let o=n.head||n;this.styleTag.parentNode!=o&&o.insertBefore(this.styleTag,o.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var yl={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Hd={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},cFe=typeof navigator<"u"&&/Mac/.test(navigator.platform),fFe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Bi=0;Bi<10;Bi++)yl[48+Bi]=yl[96+Bi]=String(Bi);for(var Bi=1;Bi<=24;Bi++)yl[Bi+111]="F"+Bi;for(var Bi=65;Bi<=90;Bi++)yl[Bi]=String.fromCharCode(Bi+32),Hd[Bi]=String.fromCharCode(Bi);for(var TS in yl)Hd.hasOwnProperty(TS)||(Hd[TS]=yl[TS]);function cU(t){var e=cFe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||fFe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Hd:yl)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function e1(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function hC(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function oy(t,e){if(!e.anchorNode)return!1;try{return hC(t,e.anchorNode)}catch{return!1}}function Zd(t){return t.nodeType==3?Lf(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function xg(t,e,n,i){return n?O7(t,e,n,i,-1)||O7(t,e,n,i,1):!1}function Nf(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function bw(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function O7(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:Ro(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=Nf(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?Ro(t):0}else return!1}}function Ro(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function y0(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function uFe(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function fU(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function dFe(t,e,n,i,r,s,a,o){let l=t.ownerDocument,c=l.defaultView||window;for(let f=t,u=!1;f&&!u;)if(f.nodeType==1){let h,m=f==l.body,g=1,v=1;if(m)h=uFe(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(u=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let x=f.getBoundingClientRect();({scaleX:g,scaleY:v}=fU(f,x)),h={left:x.left,right:x.left+f.clientWidth*g,top:x.top,bottom:x.top+f.clientHeight*v}}let w=0,O=0;if(r=="nearest")e.top<h.top?(O=e.top-(h.top+a),n>0&&e.bottom>h.bottom+O&&(O=e.bottom-h.bottom+a)):e.bottom>h.bottom&&(O=e.bottom-h.bottom+a,n<0&&e.top-O<h.top&&(O=e.top-(h.top+a)));else{let x=e.bottom-e.top,$=h.bottom-h.top;O=(r=="center"&&x<=$?e.top+x/2-$/2:r=="start"||r=="center"&&n<0?e.top-a:e.bottom-$+a)-h.top}if(i=="nearest"?e.left<h.left?(w=e.left-(h.left+s),n>0&&e.right>h.right+w&&(w=e.right-h.right+s)):e.right>h.right&&(w=e.right-h.right+s,n<0&&e.left<h.left+w&&(w=e.left-(h.left+s))):w=(i=="center"?e.left+(e.right-e.left)/2-(h.right-h.left)/2:i=="start"==o?e.left-s:e.right-(h.right-h.left)+s)-h.left,w||O)if(m)c.scrollBy(w,O);else{let x=0,$=0;if(O){let T=f.scrollTop;f.scrollTop+=O/v,$=(f.scrollTop-T)*v}if(w){let T=f.scrollLeft;f.scrollLeft+=w/g,x=(f.scrollLeft-T)*g}e={left:e.left-x,top:e.top-$,right:e.right-x,bottom:e.bottom-$},x&&Math.abs(x-w)<1&&(i="nearest"),$&&Math.abs($-O)<1&&(r="nearest")}if(m)break;(e.top<h.top||e.bottom>h.bottom||e.left<h.left||e.right>h.right)&&(e={left:Math.max(e.left,h.left),right:Math.min(e.right,h.right),top:Math.max(e.top,h.top),bottom:Math.min(e.bottom,h.bottom)}),f=f.assignedSlot||f.parentNode}else if(f.nodeType==11)f=f.host;else break}function hFe(t){let e=t.ownerDocument,n,i;for(let r=t.parentNode;r&&!(r==e.body||n&&i);)if(r.nodeType==1)!i&&r.scrollHeight>r.clientHeight&&(i=r),!n&&r.scrollWidth>r.clientWidth&&(n=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:n,y:i}}let pFe=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?Ro(n):0),i,Math.min(e.focusOffset,i?Ro(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}},Gu=null;function uU(t){if(t.setActive)return t.setActive();if(Gu)return t.focus(Gu);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Gu==null?{get preventScroll(){return Gu={preventScroll:!0},!0}}:void 0),!Gu){Gu=!1;for(let n=0;n<e.length;){let i=e[n++],r=e[n++],s=e[n++];i.scrollTop!=r&&(i.scrollTop=r),i.scrollLeft!=s&&(i.scrollLeft=s)}}}let x7;function Lf(t,e,n=e){let i=x7||(x7=document.createRange());return i.setEnd(t,n),i.setStart(t,e),i}function Sd(t,e,n,i){let r={key:e,code:e,keyCode:n,which:n,cancelable:!0};i&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=i);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,t.dispatchEvent(s);let a=new KeyboardEvent("keyup",r);return a.synthetic=!0,t.dispatchEvent(a),s.defaultPrevented||a.defaultPrevented}function mFe(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function dU(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function gFe(t,e){let n=e.focusNode,i=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=i)return!1;for(i=Math.min(i,Ro(n));;)if(i){if(n.nodeType!=1)return!1;let r=n.childNodes[i-1];r.contentEditable=="false"?i--:(n=r,i=Ro(n))}else{if(n==t)return!0;i=Nf(n),n=n.parentNode}}function hU(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function pU(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i>0)return{node:n,offset:i};if(n.nodeType==1&&i>0){if(n.contentEditable=="false")return null;n=n.childNodes[i-1],i=Ro(n)}else if(n.parentNode&&!bw(n))i=Nf(n),n=n.parentNode;else return null}}function mU(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i<n.nodeValue.length)return{node:n,offset:i};if(n.nodeType==1&&i<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[i],i=0}else if(n.parentNode&&!bw(n))i=Nf(n)+1,n=n.parentNode;else return null}}let hs=class pC{constructor(e,n,i=!0){this.node=e,this.offset=n,this.precise=i}static before(e,n){return new pC(e.parentNode,Nf(e),n)}static after(e,n){return new pC(e.parentNode,Nf(e)+1,n)}};const k5=[];let Nn=class mC{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let i=this.dom,r=null,s;for(let a of this.children){if(a.flags&7){if(!a.dom&&(s=r?r.nextSibling:i.firstChild)){let o=mC.get(s);(!o||!o.parent&&o.canReuseDOM(a))&&a.reuseDOM(s)}a.sync(e,n),a.flags&=-8}if(s=r?r.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&s!=a.dom&&(n.written=!0),a.dom.parentNode==i)for(;s&&s!=a.dom;)s=S7(s);else i.insertBefore(a.dom,s);r=a.dom}for(s=r?r.nextSibling:i.firstChild,s&&n&&n.node==i&&(n.written=!0);s;)s=S7(s)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,n),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let i;if(e==this.dom)i=this.dom.childNodes[n];else{let r=Ro(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!mC.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,s=0;;r++){let a=this.children[r];if(a.dom==i)return s;s+=a.length+a.breakAfter}}domBoundsAround(e,n,i=0){let r=-1,s=-1,a=-1,o=-1;for(let l=0,c=i,f=i;l<this.children.length;l++){let u=this.children[l],h=c+u.length;if(c<e&&h>n)return u.domBoundsAround(e,n,c);if(h>=e&&r==-1&&(r=l,s=c),c>n&&u.dom.parentNode==this.dom){a=l,o=f;break}f=h,c=h+u.breakAfter}return{from:s,to:o<0?i+this.length:o,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=k5){this.markDirty();for(let r=e;r<n;r++){let s=this.children[r];s.parent==this&&i.indexOf(s)<0&&s.destroy()}i.length<250?this.children.splice(e,n-e,...i):this.children=[].concat(this.children.slice(0,e),i,this.children.slice(n));for(let r=0;r<i.length;r++)i[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new gU(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,i,r,s,a){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}};Nn.prototype.breakAfter=0;function S7(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}let gU=class{constructor(e,n,i){this.children=e,this.pos=n,this.i=i,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}};function vU(t,e,n,i,r,s,a,o,l){let{children:c}=t,f=c.length?c[e]:null,u=s.length?s[s.length-1]:null,h=u?u.breakAfter:a;if(!(e==i&&f&&!a&&!h&&s.length<2&&f.merge(n,r,s.length?u:null,n==0,o,l))){if(i<c.length){let m=c[i];m&&(r<m.length||m.breakAfter&&(u!=null&&u.breakAfter))?(e==i&&(m=m.split(r),r=0),!h&&u&&m.merge(0,r,u,!0,0,l)?s[s.length-1]=m:((r||m.children.length&&!m.children[0].length)&&m.merge(0,r,null,!1,0,l),s.push(m))):m!=null&&m.breakAfter&&(u?u.breakAfter=1:a=1),i++}for(f&&(f.breakAfter=a,n>0&&(!a&&s.length&&f.merge(n,f.length,s[0],!1,o,0)?f.breakAfter=s.shift().breakAfter:(n<f.length||f.children.length&&f.children[f.children.length-1].length==0)&&f.merge(n,f.length,null,!1,o,0),e++));e<i&&s.length;)if(c[i-1].become(s[s.length-1]))i--,s.pop(),l=s.length?0:o;else if(c[e].become(s[0]))e++,s.shift(),o=s.length?0:l;else break;!s.length&&e&&i<c.length&&!c[e-1].breakAfter&&c[i].merge(0,0,c[e-1],!1,o,l)&&e--,(e<i||s.length)&&t.replaceChildren(e,i,s)}}function bU(t,e,n,i,r,s){let a=t.childCursor(),{i:o,off:l}=a.findPos(n,1),{i:c,off:f}=a.findPos(e,-1),u=e-n;for(let h of i)u+=h.length;t.length+=u,vU(t,c,f,o,l,i,0,r,s)}let $r=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},gC=typeof document<"u"?document:{documentElement:{style:{}}};const vC=/Edge\/(\d+)/.exec($r.userAgent),yU=/MSIE \d/.test($r.userAgent),bC=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($r.userAgent),_O=!!(yU||bC||vC),_7=!_O&&/gecko\/(\d+)/i.test($r.userAgent),AS=!_O&&/Chrome\/(\d+)/.exec($r.userAgent),vFe="webkitFontSmoothing"in gC.documentElement.style,wU=!_O&&/Apple Computer/.test($r.vendor),C7=wU&&(/Mobile\/\w+/.test($r.userAgent)||$r.maxTouchPoints>2);var De={mac:C7||/Mac/.test($r.platform),windows:/Win/.test($r.platform),linux:/Linux|X11/.test($r.platform),ie:_O,ie_version:yU?gC.documentMode||6:bC?+bC[1]:vC?+vC[1]:0,gecko:_7,gecko_version:_7?+(/Firefox\/(\d+)/.exec($r.userAgent)||[0,0])[1]:0,chrome:!!AS,chrome_version:AS?+AS[1]:0,ios:C7,android:/Android\b/.test($r.userAgent),safari:wU,webkit_version:vFe?+(/\bAppleWebKit\/(\d+)/.exec($r.userAgent)||[0,0])[1]:0,tabSize:gC.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const bFe=256;let Ac=class yC extends Nn{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof yC)||this.length-(n-e)+i.length>bFe||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new yC(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new hs(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return yFe(this.dom,e,n)}},Gd=class wC extends Nn{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(dU(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,s,a){return i&&(!(i instanceof wC&&i.mark.eq(this.mark))||e&&s<=0||n<this.length&&a<=0)?!1:(bU(this,e,n,i?i.children.slice():[],s-1,a-1),this.markDirty(),!0)}split(e){let n=[],i=0,r=-1,s=0;for(let o of this.children){let l=i+o.length;l>e&&n.push(i<e?o.split(e-i):o),r<0&&i>=e&&(r=s),i=l,s++}let a=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new wC(this.mark,n,a)}domAtPos(e){return OU(this,e)}coordsAt(e,n){return SU(this,e,n)}};function yFe(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,s=e,a=0;e==0&&n<0||e==i&&n>=0?De.chrome||De.gecko||(e?(r--,a=1):s<i&&(s++,a=-1)):n<0?r--:s<i&&s++;let o=Lf(t,r,s).getClientRects();if(!o.length)return null;let l=o[(a?a<0:n>=0)?0:o.length-1];return De.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(o,c=>c.width)||l),a?y0(l,a<0):l||null}let kU=class Jm extends Nn{static create(e,n,i){return new Jm(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=Jm.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,s,a){return i&&(!(i instanceof Jm)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&a<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}become(e){return e instanceof Jm&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return ot.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,i=n&&n.state.doc,r=this.posAtStart;return i?i.slice(r,r+this.length):ot.empty}domAtPos(e){return(this.length?e==0:this.side>0)?hs.before(this.dom):hs.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let a=this.side?this.side<0:e>0;for(let o=a?r.length-1:0;s=r[o],!(e>0?o==0:o==r.length-1||s.top<s.bottom);o+=a?-1:1);return y0(s,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}},kC=class OC extends Nn{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof OC&&e.side==this.side}split(){return new OC(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?hs.before(this.dom):hs.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ot.empty}get isHidden(){return!0}};Ac.prototype.children=kU.prototype.children=kC.prototype.children=k5;function OU(t,e){let n=t.dom,{children:i}=t,r=0;for(let s=0;r<i.length;r++){let a=i[r],o=s+a.length;if(!(o==s&&a.getSide()<=0)){if(e>s&&e<o&&a.dom.parentNode==n)return a.domAtPos(e-s);if(e<=s)break;s=o}}for(let s=r;s>0;s--){let a=i[s-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let s=r;s<i.length;s++){let a=i[s];if(a.dom.parentNode==n)return a.domAtPos(0)}return new hs(n,0)}function xU(t,e,n){let i,{children:r}=t;n>0&&e instanceof Gd&&r.length&&(i=r[r.length-1])instanceof Gd&&i.mark.eq(e.mark)?xU(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function SU(t,e,n){let i=null,r=-1,s=null,a=-1;function o(c,f){for(let u=0,h=0;u<c.children.length&&h<=f;u++){let m=c.children[u],g=h+m.length;g>=f&&(m.children.length?o(m,f-h):(!s||s.isHidden&&(n>0||kFe(s,m)))&&(g>f||h==g&&m.getSide()>0)?(s=m,a=f-h):(h<f||h==g&&m.getSide()<0&&!m.isHidden)&&(i=m,r=f-h)),h=g}}o(t,e);let l=(n<0?i:s)||i||s;return l?l.coordsAt(Math.max(0,l==i?r:a),n):wFe(t)}function wFe(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Zd(e);return n[n.length-1]||null}function kFe(t,e){let n=t.coordsAt(0,1),i=e.coordsAt(0,1);return n&&i&&i.top<n.bottom}function xC(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const $7=Object.create(null);function yw(t,e,n){if(t==e)return!0;t||(t=$7),e||(e=$7);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(r.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function SC(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,r=="style"?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function OFe(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let i=t.attributes[n];e[i.name]=i.value}return e}let Ic=class{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}};var hr=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(hr||(hr={}));let nt=class extends Eo{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new O5(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Xd(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:a}=PU(e,n);i=(s?n?-3e8:-1:5e8)-1,r=(a?n?2e8:1:-6e8)+1}return new Xd(e,i,r,n,e.widget||null,!0)}static line(e){return new x5(e)}static set(e,n=!1){return ft.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};nt.none=ft.empty;let O5=class _U extends nt{constructor(e){let{start:n,end:i}=PU(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof _U&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&yw(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}};O5.prototype.point=!1;let x5=class CU extends nt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof CU&&this.spec.class==e.spec.class&&yw(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}};x5.prototype.mapMode=Wn.TrackBefore;x5.prototype.point=!0;let Xd=class $U extends nt{constructor(e,n,i,r,s,a){super(n,i,s,e),this.block=r,this.isReplace=a,this.mapMode=r?n<=0?Wn.TrackBefore:Wn.TrackAfter:Wn.TrackDel}get type(){return this.startSide!=this.endSide?hr.WidgetRange:this.startSide<=0?hr.WidgetBefore:hr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof $U&&xFe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}};Xd.prototype.point=!0;function PU(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function xFe(t,e){return t==e||!!(t&&e&&t.compare(e))}function ly(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}let sr=class eg extends Nn{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,r,s,a){if(i){if(!(i instanceof eg))return!1;this.dom||i.transferDOM(this)}return r&&this.setDeco(i?i.attrs:null),bU(this,e,n,i?i.children.slice():[],s,a),!0}split(e){let n=new eg;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:r}=this.childPos(e);r&&(n.append(this.children[i].split(r),0),this.children[i].merge(r,this.children[i].length,null,!1,0,0),i++);for(let s=i;s<this.children.length;s++)n.append(this.children[s],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){yw(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){xU(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=xC(n,this.attrs||{})),i&&(this.attrs=xC({class:i},this.attrs||{}))}domAtPos(e){return OU(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(dU(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(SC(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&Nn.get(r)instanceof Gd;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=Nn.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!De.ios||!this.children.some(s=>s instanceof Ac))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof Ac)||/[^ -~]/.test(i.text))return null;let r=Zd(i.dom);if(r.length!=1)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=SU(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight<s){let a=(s-r.textHeight)/2;return{top:i.top+a,bottom:i.bottom-a,left:i.left,right:i.left}}}return i}become(e){return e instanceof eg&&this.children.length==0&&e.children.length==0&&yw(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let i=0,r=0;i<e.children.length;i++){let s=e.children[i],a=r+s.length;if(a>=n){if(s instanceof eg)return s;if(a>n)break}r=a+s.breakAfter}return null}},Sg=class cy extends Nn{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,s,a){return i&&(!(i instanceof cy)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&a<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?hs.before(this.dom):hs.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let i=new cy(this.widget,n,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return k5}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):ot.empty}domBoundsAround(){return null}become(e){return e instanceof cy&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);return i||(this.widget instanceof _C?null:y0(this.dom.getBoundingClientRect(),this.length?e==0:n<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:i}=this.deco;return n==i?!1:e<0?n<0:i>0}},_C=class extends Ic{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},ES=class TU{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Sg&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new sr),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(eb(new kC(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Sg)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:a,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(eb(new Ac(this.text.slice(this.textOff,this.textOff+r)),n),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,s,a){if(this.disallowBlockEffectsFor[a]&&i instanceof Xd){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-e;if(i instanceof Xd)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Sg(i.widget||Yd.block,o,i));else{let l=kU.create(i.widget||Yd.inline,o,o?0:i.startSide),c=this.atCursorPos&&!l.isEditable&&s<=r.length&&(e<n||i.startSide>0),f=!l.isEditable&&(e<n||s>r.length||i.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(u.append(eb(new kC(1),r),s),s=r.length+Math.max(0,s-r.length)),u.append(eb(l,r),s),this.atCursorPos=f,this.pendingBuffer=f?e<n||s>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,i,r,s){let a=new TU(e,n,i,s);return a.openEnd=ft.spans(r,n,i,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}};function eb(t,e){for(let n of e)t=new Gd(n,[t],t.length);return t}let Yd=class extends Ic{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};Yd.inline=new Yd("span");Yd.block=new Yd("div");var Ln=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(Ln||(Ln={}));const jf=Ln.LTR,S5=Ln.RTL;function AU(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const SFe=AU("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),_Fe=AU("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),CC=Object.create(null),Za=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);CC[e]=n,CC[n]=-e}function EU(t){return t<=247?SFe[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?_Fe[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const CFe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;let mc=class{get dir(){return this.level%2?S5:jf}constructor(e,n,i){this.from=e,this.to=n,this.level=i}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,i,r){let s=-1;for(let a=0;a<e.length;a++){let o=e[a];if(o.from<=n&&o.to>=n){if(o.level==i)return a;(s<0||(r!=0?r<0?o.from<n:o.to>n:e[s].level>o.level))&&(s=a)}}if(s<0)throw new RangeError("Index out of range");return s}};function RU(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let i=t[n],r=e[n];if(i.from!=r.from||i.to!=r.to||i.direction!=r.direction||!RU(i.inner,r.inner))return!1}return!0}const cn=[];function $Fe(t,e,n,i,r){for(let s=0;s<=i.length;s++){let a=s?i[s-1].to:e,o=s<i.length?i[s].from:n,l=s?256:r;for(let c=a,f=l,u=l;c<o;c++){let h=EU(t.charCodeAt(c));h==512?h=f:h==8&&u==4&&(h=16),cn[c]=h==4?2:h,h&7&&(u=h),f=h}for(let c=a,f=l,u=l;c<o;c++){let h=cn[c];if(h==128)c<o-1&&f==cn[c+1]&&f&24?h=cn[c]=f:cn[c]=256;else if(h==64){let m=c+1;for(;m<o&&cn[m]==64;)m++;let g=c&&f==8||m<n&&cn[m]==8?u==1?1:8:256;for(let v=c;v<m;v++)cn[v]=g;c=m-1}else h==8&&u==1&&(cn[c]=1);f=h,h&7&&(u=h)}}}function PFe(t,e,n,i,r){let s=r==1?2:1;for(let a=0,o=0,l=0;a<=i.length;a++){let c=a?i[a-1].to:e,f=a<i.length?i[a].from:n;for(let u=c,h,m,g;u<f;u++)if(m=CC[h=t.charCodeAt(u)])if(m<0){for(let v=o-3;v>=0;v-=3)if(Za[v+1]==-m){let w=Za[v+2],O=w&2?r:w&4?w&1?s:r:0;O&&(cn[u]=cn[Za[v]]=O),o=v;break}}else{if(Za.length==189)break;Za[o++]=u,Za[o++]=h,Za[o++]=l}else if((g=cn[u])==2||g==1){let v=g==r;l=v?0:1;for(let w=o-3;w>=0;w-=3){let O=Za[w+2];if(O&2)break;if(v)Za[w+2]|=2;else{if(O&4)break;Za[w+2]|=4}}}}}function TFe(t,e,n,i){for(let r=0,s=i;r<=n.length;r++){let a=r?n[r-1].to:t,o=r<n.length?n[r].from:e;for(let l=a;l<o;){let c=cn[l];if(c==256){let f=l+1;for(;;)if(f==o){if(r==n.length)break;f=n[r++].to,o=r<n.length?n[r].from:e}else if(cn[f]==256)f++;else break;let u=s==1,h=(f<e?cn[f]:i)==1,m=u==h?u?1:2:i;for(let g=f,v=r,w=v?n[v-1].to:t;g>l;)g==w&&(g=n[--v].from,w=v?n[v-1].to:t),cn[--g]=m;l=f}else s=c,l++}}}function $C(t,e,n,i,r,s,a){let o=i%2?2:1;if(i%2==r%2)for(let l=e,c=0;l<n;){let f=!0,u=!1;if(c==s.length||l<s[c].from){let v=cn[l];v!=o&&(f=!1,u=v==16)}let h=!f&&o==1?[]:null,m=f?i:i+1,g=l;e:for(;;)if(c<s.length&&g==s[c].from){if(u)break e;let v=s[c];if(!f)for(let w=v.to,O=c+1;;){if(w==n)break e;if(O<s.length&&s[O].from==w)w=s[O++].to;else{if(cn[w]==o)break e;break}}if(c++,h)h.push(v);else{v.from>l&&a.push(new mc(l,v.from,m));let w=v.direction==jf!=!(m%2);PC(t,w?i+1:i,r,v.inner,v.from,v.to,a),l=v.to}g=v.to}else{if(g==n||(f?cn[g]!=o:cn[g]==o))break;g++}h?$C(t,l,g,i+1,r,h,a):l<g&&a.push(new mc(l,g,m)),l=g}else for(let l=n,c=s.length;l>e;){let f=!0,u=!1;if(!c||l>s[c-1].to){let v=cn[l-1];v!=o&&(f=!1,u=v==16)}let h=!f&&o==1?[]:null,m=f?i:i+1,g=l;e:for(;;)if(c&&g==s[c-1].to){if(u)break e;let v=s[--c];if(!f)for(let w=v.from,O=c;;){if(w==e)break e;if(O&&s[O-1].to==w)w=s[--O].from;else{if(cn[w-1]==o)break e;break}}if(h)h.push(v);else{v.to<l&&a.push(new mc(v.to,l,m));let w=v.direction==jf!=!(m%2);PC(t,w?i+1:i,r,v.inner,v.from,v.to,a),l=v.from}g=v.from}else{if(g==e||(f?cn[g-1]!=o:cn[g-1]==o))break;g--}h?$C(t,g,l,i+1,r,h,a):g<l&&a.push(new mc(g,l,m)),l=g}}function PC(t,e,n,i,r,s,a){let o=e%2?2:1;$Fe(t,r,s,i,o),PFe(t,r,s,i,o),TFe(r,s,i,o),$C(t,r,s,e,n,i,a)}function AFe(t,e,n){if(!t)return[new mc(0,0,e==S5?1:0)];if(e==jf&&!n.length&&!CFe.test(t))return DU(t.length);if(n.length)for(;t.length>cn.length;)cn[cn.length]=256;let i=[],r=e==jf?0:1;return PC(t,r,r,n,0,t.length,i),i}function DU(t){return[new mc(0,t,0)]}let MU="";function EFe(t,e,n,i,r){var s;let a=i.head-t.from,o=mc.find(e,a,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),l=e[o],c=l.side(r,n);if(a==c){let h=o+=r?1:-1;if(h<0||h>=e.length)return null;l=e[o=h],a=l.side(!r,n),c=l.side(r,n)}let f=Qn(t.text,a,l.forward(r,n));(f<l.from||f>l.to)&&(f=c),MU=t.text.slice(Math.min(a,f),Math.max(a,f));let u=o==(r?e.length-1:0)?null:e[o+(r?1:-1)];return u&&f==c&&u.level+(r?0:1)<l.level?ee.cursor(u.side(!r,n)+t.from,u.forward(r,n)?1:-1,u.level):ee.cursor(f+t.from,l.forward(r,n)?-1:1,l.level)}function RFe(t,e,n){for(let i=e;i<n;i++){let r=EU(t.charCodeAt(i));if(r==1)return jf;if(r==2||r==4)return S5}return jf}const NU=me.define(),LU=me.define(),jU=me.define(),IU=me.define(),TC=me.define(),BU=me.define(),FU=me.define(),_5=me.define(),C5=me.define(),QU=me.define({combine:t=>t.some(e=>e)}),zU=me.define({combine:t=>t.some(e=>e)}),qU=me.define();let RS=class AC{constructor(e,n="nearest",i="nearest",r=5,s=5,a=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=a}map(e){return e.empty?this:new AC(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new AC(ee.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}};const tb=it.define({map:(t,e)=>t.map(e)}),WU=it.define();function ps(t,e,n){let i=t.facet(IU);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const ol=me.define({combine:t=>t.length?t[0]:!0});let DFe=0;const tg=me.define();let zi=class EC{constructor(e,n,i,r,s){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:s,decorations:a}=n||{};return new EC(DFe++,e,i,r,o=>{let l=[tg.of(o)];return a&&l.push(t1.of(c=>{let f=c.plugin(o);return f?a(f):nt.none})),s&&l.push(s(o)),l})}static fromClass(e,n){return EC.define(i=>new e(i),n)}},DS=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(ps(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){ps(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){ps(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}};const UU=me.define(),$5=me.define(),t1=me.define(),VU=me.define(),P5=me.define(),HU=me.define();function P7(t,e){let n=t.state.facet(HU);if(!n.length)return n;let i=n.map(s=>s instanceof Function?s(t):s),r=[];return ft.spans(i,e.from,e.to,{point(){},span(s,a,o,l){let c=s-e.from,f=a-e.from,u=r;for(let h=o.length-1;h>=0;h--,l--){let m=o[h].spec.bidiIsolate,g;if(m==null&&(m=RFe(e.text,c,f)),l>0&&u.length&&(g=u[u.length-1]).to==c&&g.direction==m)g.to=f,u=g.inner;else{let v={from:c,to:f,direction:m,inner:[]};u.push(v),u=v.inner}}}}),r}const ZU=me.define();function T5(t){let e=0,n=0,i=0,r=0;for(let s of t.state.facet(ZU)){let a=s(t);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(i=Math.max(i,a.top)),a.bottom!=null&&(r=Math.max(r,a.bottom)))}return{left:e,right:n,top:i,bottom:r}}const ng=me.define();let wc=class fy{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new fy(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA<i.fromA)break;i=i.join(r),e.splice(n-1,1)}}return e.splice(n,0,i),e}static extendWithRanges(e,n){if(n.length==0)return e;let i=[];for(let r=0,s=0,a=0,o=0;;r++){let l=r==e.length?null:e[r],c=a-o,f=l?l.fromB:1e9;for(;s<n.length&&n[s]<f;){let u=n[s],h=n[s+1],m=Math.max(o,u),g=Math.min(f,h);if(m<=g&&new fy(m+c,g+c,m,g).addToSet(i),h>f)break;s+=2}if(!l)return i;new fy(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),a=l.toA,o=l.toB}}},T7=class GU{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Kn.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,a,o,l)=>r.push(new wc(s,a,o,l))),this.changedRanges=r}static create(e,n,i){return new GU(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},A7=class extends Nn{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=nt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new sr],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new wc(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:f})=>f<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?r=this.domChanged.newSel.head:!FFe(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?NFe(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:f}=this.hasComposition;i=new wc(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(De.ie||De.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,o=this.updateDeco(),l=IFe(a,o,e.changes);return i=wc.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=De.chrome||De.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||r.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof Sg&&a.widget instanceof _C&&s.push(a.dom);r.updateGaps(s)}updateChildren(e,n,i){let r=i?i.range.addToSet(e.slice()):e,s=this.childCursor(n);for(let a=r.length-1;;a--){let o=a>=0?r[a]:null;if(!o)break;let{fromA:l,toA:c,fromB:f,toB:u}=o,h,m,g,v;if(i&&i.range.fromB<u&&i.range.toB>f){let T=ES.build(this.view.state.doc,f,i.range.fromB,this.decorations,this.dynamicDecorationMap),S=ES.build(this.view.state.doc,i.range.toB,u,this.decorations,this.dynamicDecorationMap);m=T.breakAtStart,g=T.openStart,v=S.openEnd;let R=this.compositionView(i);S.breakAtStart?R.breakAfter=1:S.content.length&&R.merge(R.length,R.length,S.content[0],!1,S.openStart,0)&&(R.breakAfter=S.content[0].breakAfter,S.content.shift()),T.content.length&&R.merge(0,0,T.content[T.content.length-1],!0,0,T.openEnd)&&T.content.pop(),h=T.content.concat(R).concat(S.content)}else({content:h,breakAtStart:m,openStart:g,openEnd:v}=ES.build(this.view.state.doc,f,u,this.decorations,this.dynamicDecorationMap));let{i:w,off:O}=s.findPos(c,1),{i:x,off:$}=s.findPos(l,-1);vU(this,x,$,w,O,h,m,g,v)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let i of n.effects)i.is(WU)&&(this.editContextFormatting=i.value)}compositionView(e){let n=new Ac(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new Gd(r,[n],n.length);let i=new sr;return i.append(n,0),i}fixCompositionDOM(e){let n=(s,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let o=Nn.get(s);o&&o!=a&&(o.dom=null),a.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],n(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&!(this.view.state.facet(ol)||this.dom.tabIndex>-1)&&oy(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||s))return;let a=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),c=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(De.gecko&&o.empty&&!this.hasComposition&&MFe(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=c=new hs(u,0),a=!0}let f=this.view.observer.selectionRange;(a||!f.focusNode||(!xg(l.node,l.offset,f.anchorNode,f.anchorOffset)||!xg(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,o))&&(this.view.observer.ignore(()=>{De.android&&De.chrome&&this.dom.contains(f.focusNode)&&BFe(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=e1(this.view.root);if(u)if(o.empty){if(De.gecko){let h=LFe(l.node,l.offset);if(h&&h!=3){let m=(h==1?pU:mU)(l.node,l.offset);m&&(l=new hs(m.node,m.offset))}}u.collapse(l.node,l.offset),o.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=o.bidiLevel)}else if(u.extend){u.collapse(l.node,l.offset);try{u.extend(c.node,c.offset)}catch{}}else{let h=document.createRange();o.anchor>o.head&&([l,c]=[c,l]),h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(h)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new hs(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new hs(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&xg(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=e1(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let a=sr.find(this,n.head);if(!a)return;let o=a.posAtStart;if(n.head==o||n.head==o+a.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let f=this.domAtPos(n.head+n.assoc);i.collapse(f.node,f.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=n.from&&i.collapse(r,s)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let r=e.offset;!i&&r<n.childNodes.length;r++){let s=Nn.get(n.childNodes[r]);s instanceof sr&&(i=s.domAtPos(0))}for(let r=e.offset-1;!i&&r>=0;r--){let s=Nn.get(n.childNodes[r]);s instanceof sr&&(i=s.domAtPos(s.length))}return i?new hs(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=Nn.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let r=this.children[n];if(i<r.length||r instanceof sr)break;n++,i=0}return this.children[n].domAtPos(i)}coordsAt(e,n){let i=null,r=0;for(let s=this.length,a=this.children.length-1;a>=0;a--){let o=this.children[a],l=s-o.breakAfter,c=l-o.length;if(l<e)break;if(c<=e&&(c<e||o.covers(-1))&&(l>e||o.covers(1))&&(!i||o instanceof sr&&!(i instanceof sr&&n>=0)))i=o,r=c;else if(i&&c==e&&l==e&&o instanceof Sg&&Math.abs(n)<2){if(o.deco.startSide<0)break;a&&(i=null)}s=c}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof sr))return null;for(;r.children.length;){let{i:o,off:l}=r.childPos(i,1);for(;;o++){if(o==r.children.length)return null;if((r=r.children[o]).length)break}i=l}if(!(r instanceof Ac))return null;let s=Qn(r.text,i);if(s==i)return null;let a=Lf(r.dom,i,s).getClientRects();for(let o=0;o<a.length;o++){let l=a[o];if(o==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:i,to:r}=e,s=this.view.contentDOM.clientWidth,a=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Ln.LTR;for(let c=0,f=0;f<this.children.length;f++){let u=this.children[f],h=c+u.length;if(h>r)break;if(c>=i){let m=u.dom.getBoundingClientRect();if(n.push(m.height),a){let g=u.dom.lastChild,v=g?Zd(g):[];if(v.length){let w=v[v.length-1],O=l?w.right-m.left:m.right-w.left;O>o&&(o=O,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=h)}}}c=h+u.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Ln.RTL:Ln.LTR}measureTextSize(){for(let s of this.children)if(s instanceof sr){let a=s.measureTextSize();if(a)return a}let e=document.createElement("div"),n,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Zd(e.firstChild)[0];n=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new gU(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let s=r==n.viewports.length?null:n.viewports[r],a=s?s.from-1:this.length;if(a>i){let o=(n.lineBlockAt(a).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(nt.replace({widget:new _C(o),block:!0,inclusive:!0,isBlockGap:!0}).range(i,a))}if(!s)break;i=s.to+1}return nt.set(e)}updateDeco(){let e=1,n=this.view.state.facet(t1).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),i=!1,r=this.view.state.facet(VU).map((s,a)=>{let o=typeof s=="function";return o&&(i=!0),o?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=i,n.push(ft.join(r))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(qU))try{if(c(this.view,e.range,e))return!0}catch(f){ps(this.view.state,f,"scroll handler")}let{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),r;if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=T5(this.view),a={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;dFe(this.view.scrollDOM,a,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,o),-o),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==Ln.LTR)}};function MFe(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function XU(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let i=pU(n.focusNode,n.focusOffset),r=mU(n.focusNode,n.focusOffset),s=i||r;if(r&&i&&r.node!=i.node){let o=Nn.get(r.node);if(!o||o instanceof Ac&&o.text!=r.node.nodeValue)s=r;else if(t.docView.lastCompositionAfterCursor){let l=Nn.get(i.node);!l||l instanceof Ac&&l.text!=i.node.nodeValue||(s=r)}}if(t.docView.lastCompositionAfterCursor=s!=i,!s)return null;let a=e-s.offset;return{from:a,to:a+s.node.nodeValue.length,node:s.node}}function NFe(t,e,n){let i=XU(t,n);if(!i)return null;let{node:r,from:s,to:a}=i,o=r.nodeValue;if(/[\n\r]/.test(o)||t.state.doc.sliceString(i.from,i.to)!=o)return null;let l=e.invertedDesc,c=new wc(l.mapPos(s),l.mapPos(a),s,a),f=[];for(let u=r.parentNode;;u=u.parentNode){let h=Nn.get(u);if(h instanceof Gd)f.push({node:u,deco:h.mark});else{if(h instanceof sr||u.nodeName=="DIV"&&u.parentNode==t.contentDOM)return{range:c,text:r,marks:f,line:u};if(u!=t.contentDOM)f.push({node:u,deco:new O5({inclusive:!0,attributes:OFe(u),tagName:u.tagName.toLowerCase()})});else return null}}}function LFe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let jFe=class{constructor(){this.changes=[]}compareRange(e,n){ly(e,n,this.changes)}comparePoint(e,n){ly(e,n,this.changes)}boundChange(e){ly(e,e,this.changes)}};function IFe(t,e,n){let i=new jFe;return ft.compare(t,e,n,i),i.changes}function BFe(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function FFe(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{i<e.to&&r>e.from&&(n=!0)}),n}function QFe(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(r.length==0)return ee.cursor(e);s==0?n=1:s==r.length&&(n=-1);let a=s,o=s;n<0?a=Qn(r.text,s,!1):o=Qn(r.text,s);let l=i(r.text.slice(a,o));for(;a>0;){let c=Qn(r.text,a,!1);if(i(r.text.slice(c,a))!=l)break;a=c}for(;o<r.length;){let c=Qn(r.text,o);if(i(r.text.slice(o,c))!=l)break;o=c}return ee.range(a+r.from,o+r.from)}function zFe(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function qFe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function MS(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function E7(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function R7(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function RC(t,e,n){let i,r,s,a,o=!1,l,c,f,u;for(let g=t.firstChild;g;g=g.nextSibling){let v=Zd(g);for(let w=0;w<v.length;w++){let O=v[w];r&&MS(r,O)&&(O=E7(R7(O,r.bottom),r.top));let x=zFe(e,O),$=qFe(n,O);if(x==0&&$==0)return g.nodeType==3?D7(g,e,n):RC(g,e,n);if(!i||a>$||a==$&&s>x){i=g,r=O,s=x,a=$;let T=$?n<O.top?-1:1:x?e<O.left?-1:1:0;o=!T||(T>0?w<v.length-1:w>0)}x==0?n>O.bottom&&(!f||f.bottom<O.bottom)?(l=g,f=O):n<O.top&&(!u||u.top>O.top)&&(c=g,u=O):f&&MS(f,O)?f=R7(f,O.bottom):u&&MS(u,O)&&(u=E7(u,O.top))}}if(f&&f.bottom>=n?(i=l,r=f):u&&u.top<=n&&(i=c,r=u),!i)return{node:t,offset:0};let h=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return D7(i,h,n);if(o&&i.contentEditable!="false")return RC(i,h,n);let m=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:t,offset:m}}function D7(t,e,n){let i=t.nodeValue.length,r=-1,s=1e9,a=0;for(let o=0;o<i;o++){let l=Lf(t,o,o+1).getClientRects();for(let c=0;c<l.length;c++){let f=l[c];if(f.top==f.bottom)continue;a||(a=e-f.left);let u=(f.top>n?f.top-n:n-f.bottom)-1;if(f.left-1<=e&&f.right+1>=e&&u<s){let h=e>=(f.left+f.right)/2,m=h;if((De.chrome||De.gecko)&&Lf(t,o).getBoundingClientRect().left==f.right&&(m=!h),u<=0)return{node:t,offset:o+(m?1:0)};r=o+(m?1:0),s=u}}}return{node:t,offset:r>-1?r:a>0?t.nodeValue.length:0}}function YU(t,e,n,i=-1){var r,s;let a=t.contentDOM.getBoundingClientRect(),o=a.top+t.viewState.paddingTop,l,{docHeight:c}=t.viewState,{x:f,y:u}=e,h=u-o;if(h<0)return 0;if(h>c)return t.state.doc.length;for(let T=t.viewState.heightOracle.textHeight/2,S=!1;l=t.elementAtHeight(h),l.type!=hr.Text;)for(;h=i>0?l.bottom+T:l.top-T,!(h>=0&&h<=c);){if(S)return n?null:0;S=!0,i=-i}u=o+h;let m=l.from;if(m<t.viewport.from)return t.viewport.from==0?0:n?null:M7(t,a,l,f,u);if(m>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:M7(t,a,l,f,u);let g=t.dom.ownerDocument,v=t.root.elementFromPoint?t.root:g,w=v.elementFromPoint(f,u);w&&!t.contentDOM.contains(w)&&(w=null),w||(f=Math.max(a.left+1,Math.min(a.right-1,f)),w=v.elementFromPoint(f,u),w&&!t.contentDOM.contains(w)&&(w=null));let O,x=-1;if(w&&((r=t.docView.nearest(w))===null||r===void 0?void 0:r.isEditable)!=!1){if(g.caretPositionFromPoint){let T=g.caretPositionFromPoint(f,u);T&&({offsetNode:O,offset:x}=T)}else if(g.caretRangeFromPoint){let T=g.caretRangeFromPoint(f,u);T&&({startContainer:O,startOffset:x}=T,(!t.contentDOM.contains(O)||De.safari&&WFe(O,x,f)||De.chrome&&UFe(O,x,f))&&(O=void 0))}O&&(x=Math.min(Ro(O),x))}if(!O||!t.docView.dom.contains(O)){let T=sr.find(t.docView,m);if(!T)return h>l.top+l.height/2?l.to:l.from;({node:O,offset:x}=RC(T.dom,f,u))}let $=t.docView.nearest(O);if(!$)return null;if($.isWidget&&((s=$.dom)===null||s===void 0?void 0:s.nodeType)==1){let T=$.dom.getBoundingClientRect();return e.y<T.top||e.y<=T.bottom&&e.x<=(T.left+T.right)/2?$.posAtStart:$.posAtEnd}else return $.localPosFromDOM(O,x)+$.posAtStart}function M7(t,e,n,i,r){let s=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let o=t.viewState.heightOracle.textHeight,l=Math.floor((r-n.top-(t.defaultLineHeight-o)*.5)/o);s+=l*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+vw(a,s,t.state.tabSize)}function WFe(t,e,n){let i;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Lf(t,i-1,i).getBoundingClientRect().left>n}function UFe(t,e,n){if(e!=0)return!1;for(let r=t;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let i=t.nodeType==1?t.getBoundingClientRect():Lf(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function DC(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==hr.Text))return i}return n}function VFe(t,e,n,i){let r=DC(t,e.head),s=!i||r.type!=hr.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let a=t.dom.getBoundingClientRect(),o=t.textDirectionAt(r.from),l=t.posAtCoords({x:n==(o==Ln.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(l!=null)return ee.cursor(l,n?-1:1)}return ee.cursor(n?r.to:r.from,n?-1:1)}function N7(t,e,n,i){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),a=t.textDirectionAt(r.from);for(let o=e,l=null;;){let c=EFe(r,s,a,o,n),f=MU;if(!c){if(r.number==(n?t.state.doc.lines:1))return o;f=`
|
||
`,r=t.state.doc.line(r.number+(n?1:-1)),s=t.bidiSpans(r),c=t.visualLineSide(r,!n)}if(l){if(!l(f))return o}else{if(!i)return c;l=i(f)}o=c}}function HFe(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return s=>{let a=i(s);return r==Pn.Space&&(r=a),r==a}}function ZFe(t,e,n,i){let r=e.head,s=n?1:-1;if(r==(n?t.state.doc.length:0))return ee.cursor(r,e.assoc);let a=e.goalColumn,o,l=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(r,e.assoc||-1),f=t.documentTop;if(c)a==null&&(a=c.left-l.left),o=s<0?c.top:c.bottom;else{let m=t.viewState.lineBlockAt(r);a==null&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-m.from))),o=(s<0?m.top:m.bottom)+f}let u=l.left+a,h=i??t.viewState.heightOracle.textHeight>>1;for(let m=0;;m+=10){let g=o+(h+m)*s,v=YU(t,{x:u,y:g},!1,s);if(g<l.top||g>l.bottom||(s<0?v<r:v>r)){let w=t.docView.coordsForChar(v),O=!w||g<w.top?-1:1;return ee.cursor(v,O,void 0,a)}}}function uy(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(s,a,o)=>{if(e>s&&e<a){let l=i||n||(e-s<a-e?-1:1);e=l<0?s:a,i=l}});if(!i)return e}}function NS(t,e,n){let i=uy(t.state.facet(P5).map(r=>r(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:ee.cursor(i,i<n.from?1:-1)}const ig="";let GFe=class{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(kt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=ig}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let a=r.nextSibling;if(a==n)break;let o=Nn.get(r),l=Nn.get(a);(o&&l?o.breakAfter:(o?o.breakAfter:bw(r))||bw(a)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=a}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,a=1,o;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),a=this.lineSeparator.length):(o=r.exec(n))&&(s=o.index,a=o[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=a-1);i=s+a}}readNode(e){if(e.cmIgnore)return;let n=Nn.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(XFe(e,i.node,i.offset)?n:0))}};function XFe(t,e,n){for(;;){if(!e||n<Ro(e))return!1;if(e==t)return!0;n=Nf(e)+1,e=e.parentNode}}let L7=class{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}},YFe=class{constructor(e,n,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:s,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let o=s||a?[]:eQe(e),l=new GFe(o,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=tQe(o,this.bounds.from)}else{let o=e.observer.selectionRange,l=s&&s.node==o.focusNode&&s.offset==o.focusOffset||!hC(e.contentDOM,o.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(o.focusNode,o.focusOffset),c=a&&a.node==o.anchorNode&&a.offset==o.anchorOffset||!hC(e.contentDOM,o.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(o.anchorNode,o.anchorOffset),f=e.viewport;if((De.ios||De.chrome)&&e.state.selection.main.empty&&l!=c&&(f.from>0||f.to<e.state.doc.length)){let u=Math.min(l,c),h=Math.max(l,c),m=f.from-u,g=f.to-h;(m==0||m==1||u==0)&&(g==0||g==-1||h==e.state.doc.length)&&(l=0,c=e.state.doc.length)}this.newSel=ee.single(c,l)}}};function KU(t,e){let n,{newSel:i}=e,r=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:o}=e.bounds,l=r.from,c=null;(s===8||De.android&&e.text.length<o-a)&&(l=r.to,c="end");let f=JFe(t.state.doc.sliceString(a,o,ig),e.text,l-a,c);f&&(De.chrome&&s==13&&f.toB==f.from+2&&e.text.slice(f.from,f.toB)==ig+ig&&f.toB--,n={from:a+f.from,to:a+f.toA,insert:ot.of(e.text.slice(f.from,f.toB).split(ig))})}else i&&(!t.hasFocus&&t.state.facet(ol)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:(De.mac||De.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=ee.single(i.main.anchor-1,i.main.head-1)),n={from:n.from,to:n.to,insert:ot.of([n.insert.toString().replace("."," ")])}):n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:De.chrome&&n&&n.from==n.to&&n.from==r.head&&n.insert.toString()==`
|
||
`&&t.lineWrapping&&(i&&(i=ee.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:ot.of([" "])}),n)return A5(t,n,i,s);if(i&&!i.main.eq(r)){let a=!1,o="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(a=!0),o=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:a,userEvent:o}),!0}else return!1}function A5(t,e,n,i=-1){if(De.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(De.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&t.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Sd(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&Sd(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&Sd(t.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a,o=()=>a||(a=KFe(t,e,n));return t.state.facet(BU).some(l=>l(t,e.from,e.to,s,o))||t.dispatch(o()),!0}function KFe(t,e,n){let i,r=t.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let o=s.from<e.from?r.sliceDoc(s.from,e.from):"",l=s.to>e.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(t.state.toText(o+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let o=r.changes(e),l=n&&n.main.to<=o.newLength?n.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=t.state.sliceDoc(e.from,e.to),f,u=n&&XU(t,n.main.head);if(u){let g=e.insert.length-(e.to-e.from);f={from:u.from,to:u.to-g}}else f=t.state.doc.lineAt(s.head);let h=s.to-e.to,m=s.to-s.from;i=r.changeByRange(g=>{if(g.from==s.from&&g.to==s.to)return{changes:o,range:l||g.map(o)};let v=g.to-h,w=v-c.length;if(g.to-g.from!=m||t.state.sliceDoc(w,v)!=c||g.to>=f.from&&g.from<=f.to)return{range:g};let O=r.changes({from:w,to:v,insert:e.insert}),x=g.to-s.to;return{changes:O,range:l?ee.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):g.map(O)}})}else i={changes:o,selection:l&&r.selection.replaceRange(l)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function JFe(t,e,n,i){let r=Math.min(t.length,e.length),s=0;for(;s<r&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&t.length==e.length)return null;let a=t.length,o=e.length;for(;a>0&&o>0&&t.charCodeAt(a-1)==e.charCodeAt(o-1);)a--,o--;if(i=="end"){let l=Math.max(0,s-Math.min(a,o));n-=a+l-s}if(a<s&&t.length<e.length){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s}else if(o<s){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s}return{from:s,toA:a,toB:o}}function eQe(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new L7(n,i)),(r!=n||s!=i)&&e.push(new L7(r,s))),e}function tQe(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?ee.single(n+e,i+e):null}let nQe=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,De.safari&&e.contentDOM.addEventListener("input",()=>null),De.gecko&&bQe(e.contentDOM.ownerDocument)}handleEvent(e){!fQe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=iQe(e),i=this.handlers,r=this.view.contentDOM;for(let s in n)if(s!="scroll"){let a=!n[s].handlers.length,o=i[s];o&&a!=!o.handlers.length&&(r.removeEventListener(s,this.handleEvent),o=null),o||r.addEventListener(s,this.handleEvent,{passive:a})}for(let s in i)s!="scroll"&&!n[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&eV.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),De.android&&De.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return De.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=JU.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||rQe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Sd(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:De.safari&&!De.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function j7(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){ps(n.state,r)}}}function iQe(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let a=r.domEventHandlers[s];a&&n(s).handlers.push(j7(i.value,a))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let a=r.domEventObservers[s];a&&n(s).observers.push(j7(i.value,a))}}for(let i in Da)n(i).handlers.push(Da[i]);for(let i in Ks)n(i).observers.push(Ks[i]);return e}const JU=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],rQe="dthko",eV=[16,17,18,20,91,92,224,225],nb=6;function ib(t){return Math.max(0,t)*.7+8}function sQe(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}let aQe=class{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=hFe(e.contentDOM),this.atoms=e.state.facet(P5).map(a=>a(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(kt.allowMultipleSelections)&&oQe(e,n),this.dragging=cQe(e,n)&&iV(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&sQe(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,i=0,r=0,s=0,a=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:o}=this.scrollParents.y.getBoundingClientRect());let l=T5(this.view);e.clientX-l.left<=r+nb?n=-ib(r-e.clientX):e.clientX+l.right>=a-nb&&(n=ib(e.clientX-a)),e.clientY-l.top<=s+nb?i=-ib(s-e.clientY):e.clientY+l.bottom>=o-nb&&(i=ib(e.clientY-o)),this.setScrollSpeed(n,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],s=null;if(r.empty){let a=uy(this.atoms,r.from,0);a!=r.from&&(s=ee.cursor(a,-1))}else{let a=uy(this.atoms,r.from,-1),o=uy(this.atoms,r.to,1);(a!=r.from||o!=r.to)&&(s=ee.range(r.from==r.anchor?a:o,r.from==r.head?a:o))}s&&(n||(n=e.ranges.slice()),n[i]=s)}return n?ee.create(n,e.mainIndex):e}select(e){let{view:n}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function oQe(t,e){let n=t.state.facet(NU);return n.length?n[0](e):De.mac?e.metaKey:e.ctrlKey}function lQe(t,e){let n=t.state.facet(LU);return n.length?n[0](e):De.mac?!e.altKey:!e.ctrlKey}function cQe(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=e1(t.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let a=r[s];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function fQe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=Nn.get(n))&&i.ignoreEvent(e))return!1;return!0}const Da=Object.create(null),Ks=Object.create(null),tV=De.ie&&De.ie_version<15||De.ios&&De.webkit_version<604;function uQe(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),nV(t,n.value)},50)}function CO(t,e,n){for(let i of t.facet(e))n=i(n,t);return n}function nV(t,e){e=CO(t.state,_5,e);let{state:n}=t,i,r=1,s=n.toText(e),a=s.lines==n.selection.ranges.length;if(MC!=null&&n.selection.ranges.every(l=>l.empty)&&MC==s.toString()){let l=-1;i=n.changeByRange(c=>{let f=n.doc.lineAt(c.from);if(f.from==l)return{range:c};l=f.from;let u=n.toText((a?s.line(r++).text:e)+n.lineBreak);return{changes:{from:f.from,insert:u},range:ee.cursor(c.from+u.length)}})}else a?i=n.changeByRange(l=>{let c=s.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:ee.cursor(l.from+c.length)}}):i=n.replaceSelection(s);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ks.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Da.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Ks.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Ks.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Da.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(jU))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=pQe(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new aQe(t,e,n,i)),i&&t.observer.ignore(()=>{uU(t.contentDOM);let s=t.root.activeElement;s&&!s.contains(t.contentDOM)&&s.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function I7(t,e,n,i){if(i==1)return ee.cursor(e,n);if(i==2)return QFe(t.state,e,n);{let r=sr.find(t.docView,e),s=t.state.doc.lineAt(r?r.posAtEnd:e),a=r?r.posAtStart:s.from,o=r?r.posAtEnd:s.to;return o<t.state.doc.length&&o==s.to&&o++,ee.range(a,o)}}let B7=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function dQe(t,e,n,i){let r=sr.find(t.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let a=r.coordsAt(s,-1);if(a&&B7(n,i,a))return-1;let o=r.coordsAt(s,1);return o&&B7(n,i,o)?1:a&&a.bottom>=i?-1:1}function F7(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:dQe(t,n,e.clientX,e.clientY)}}const hQe=De.ie&&De.ie_version<=11;let Q7=null,z7=0,q7=0;function iV(t){if(!hQe)return t.detail;let e=Q7,n=q7;return Q7=t,q7=Date.now(),z7=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(z7+1)%3:1}function pQe(t,e){let n=F7(t,e),i=iV(e),r=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),r=r.map(s.changes))},get(s,a,o){let l=F7(t,s),c,f=I7(t,l.pos,l.bias,i);if(n.pos!=l.pos&&!a){let u=I7(t,n.pos,n.bias,i),h=Math.min(u.from,f.from),m=Math.max(u.to,f.to);f=h<f.from?ee.range(h,m):ee.range(m,h)}return a?r.replaceRange(r.main.extend(f.from,f.to)):o&&i==1&&r.ranges.length>1&&(c=mQe(r,l.pos))?c:o?r.addRange(f):ee.create([f])}}}function mQe(t,e){for(let n=0;n<t.ranges.length;n++){let{from:i,to:r}=t.ranges[n];if(i<=e&&r>=e)return ee.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}Da.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,a=s+r.length;(s>=n.to||a<=n.from)&&(n=ee.range(s,a))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",CO(t.state,C5,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};Da.dragend=t=>(t.inputState.draggedContent=null,!1);function W7(t,e,n,i){if(n=CO(t.state,_5,n),!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,a=i&&s&&lQe(t,e)?{from:s.from,to:s.to}:null,o={from:r,insert:n},l=t.state.changes(a?[a,o]:o);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Da.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,s=()=>{++r==n.length&&W7(t,e,i.filter(a=>a!=null).join(t.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let o=new FileReader;o.onerror=s,o.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(i[a]=o.result),s()},o.readAsText(n[a])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return W7(t,e,i,!0),!0}return!1};Da.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=tV?null:e.clipboardData;return n?(nV(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(uQe(t),!1)};function gQe(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function vQe(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let a=t.doc.lineAt(s);a.number>r&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),r=a.number}i=!0}return{text:CO(t,C5,e.join(t.lineBreak)),ranges:n,linewise:i}}let MC=null;Da.copy=Da.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=vQe(t.state);if(!n&&!r)return!1;MC=r?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=tV?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(gQe(t,n),!1)};const rV=ta.define();function sV(t,e){let n=[];for(let i of t.facet(FU)){let r=i(t,e);r&&n.push(r)}return n?t.update({effects:n,annotations:rV.of(!0)}):null}function aV(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=sV(t.state,e);n?t.dispatch(n):t.update([])}},10)}Ks.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),aV(t)};Ks.blur=t=>{t.observer.clearSelectionRange(),aV(t)};Ks.compositionstart=Ks.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};Ks.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,De.chrome&&De.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Ks.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Da.beforeinput=(t,e)=>{var n,i;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),a=e.getTargetRanges();if(s&&a.length){let o=a[0],l=t.posAtDOM(o.startContainer,o.startOffset),c=t.posAtDOM(o.endContainer,o.endOffset);return A5(t,{from:l,to:c,insert:t.state.toText(s)},null),!0}}let r;if(De.chrome&&De.android&&(r=JU.find(s=>s.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let s=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>s+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return De.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),De.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Ks.compositionend(t,e),20),!1};const U7=new Set;function bQe(t){U7.has(t)||(U7.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const V7=["pre-wrap","normal","pre-line","break-spaces"];let Kd=!1;function H7(){Kd=!1}let yQe=class{constructor(e){this.lineWrapping=e,this.doc=ot.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return V7.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i<e.length;i++){let r=e[i];r<0?i++:this.heightSamples[Math.floor(r*10)]||(n=!0,this.heightSamples[Math.floor(r*10)]=!0)}return n}refresh(e,n,i,r,s,a){let o=V7.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<a.length;c++){let f=a[c];f<0?c++:this.heightSamples[Math.floor(f*10)]=!0}}return l}},wQe=class{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}},ic=class oV{constructor(e,n,i,r,s){this.from=e,this.length=n,this.top=i,this.height=r,this._content=s}get type(){return typeof this._content=="number"?hr.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Xd?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new oV(this.from,this.length+e.length,this.top,this.height+e.height,n)}};var Cn=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(Cn||(Cn={}));const dy=.001;let Ta=class hy{constructor(e,n,i=2){this.length=e,this.height=n,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>dy&&(Kd=!0),this.height=e)}replace(e,n,i){return hy.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let s=this,a=i.doc;for(let o=r.length-1;o>=0;o--){let{fromA:l,toA:c,fromB:f,toB:u}=r[o],h=s.lineAt(l,Cn.ByPosNoHeight,i.setDoc(n),0,0),m=h.to>=c?h:s.lineAt(c,Cn.ByPosNoHeight,i,0,0);for(u+=m.to-c,c=m.to;o>0&&h.from<=r[o-1].toA;)l=r[o-1].fromA,f=r[o-1].fromB,o--,l<h.from&&(h=s.lineAt(l,Cn.ByPosNoHeight,i,0,0));f+=h.from-l,l=h.from;let g=xQe.build(i.setDoc(a),e,f,u);s=ww(s,s.replace(l,c,g))}return s.updateHeight(i,0)}static empty(){return new ro(0,0)}static of(e){if(e.length==1)return e[0];let n=0,i=e.length,r=0,s=0;for(;;)if(n==i)if(r>s*2){let o=e[n-1];o.break?e.splice(--n,1,o.left,null,o.right):e.splice(--n,1,o.left,o.right),i+=1+o.break,r-=o.size}else if(s>r*2){let o=e[i];o.break?e.splice(i,1,o.left,null,o.right):e.splice(i,1,o.left,o.right),i+=2+o.break,s-=o.size}else break;else if(r<s){let o=e[n++];o&&(r+=o.size)}else{let o=e[--i];o&&(s+=o.size)}let a=0;return e[n-1]==null?(a=1,n--):e[n]==null&&(a=1,i++),new kQe(hy.of(e.slice(0,n)),a,hy.of(e.slice(i)))}};function ww(t,e){return t==e?t:(t.constructor!=e.constructor&&(Kd=!0),e)}Ta.prototype.size=1;let lV=class extends Ta{constructor(e,n,i){super(e,n),this.deco=i}blockAt(e,n,i,r){return new ic(r,this.length,i,this.height,this.deco||0)}lineAt(e,n,i,r,s){return this.blockAt(0,i,r,s)}forEachLine(e,n,i,r,s,a){e<=s+this.length&&n>=s&&a(this.blockAt(0,i,r,s))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},ro=class NC extends lV{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new ic(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return i.length==1&&(r instanceof NC||r instanceof _d&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof _d?r=new NC(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):Ta.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(r.heights[r.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},_d=class ua extends Ta{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,s=r-i+1,a,o=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);a=l/s,this.length>s+1&&(o=(this.height-l)/(this.length-s-1))}else a=this.height/s;return{firstLine:i,lastLine:r,perLine:a,perChar:o}}blockAt(e,n,i,r){let{firstLine:s,lastLine:a,perLine:o,perChar:l}=this.heightMetrics(n,r);if(n.lineWrapping){let c=r+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),f=n.doc.lineAt(c),u=o+f.length*l,h=Math.max(i,e-u/2);return new ic(f.from,f.length,h,u,0)}else{let c=Math.max(0,Math.min(a-s,Math.floor((e-i)/o))),{from:f,length:u}=n.doc.line(s+c);return new ic(f,u,i+o*c,o,0)}}lineAt(e,n,i,r,s){if(n==Cn.ByHeight)return this.blockAt(e,i,r,s);if(n==Cn.ByPosNoHeight){let{from:m,to:g}=i.doc.lineAt(e);return new ic(m,g-m,0,0,0)}let{firstLine:a,perLine:o,perChar:l}=this.heightMetrics(i,s),c=i.doc.lineAt(e),f=o+c.length*l,u=c.number-a,h=r+o*u+l*(c.from-s-u);return new ic(c.from,c.length,Math.max(r,Math.min(h,r+this.height-f)),f,0)}forEachLine(e,n,i,r,s,a){e=Math.max(e,s),n=Math.min(n,s+this.length);let{firstLine:o,perLine:l,perChar:c}=this.heightMetrics(i,s);for(let f=e,u=r;f<=n;){let h=i.doc.lineAt(f);if(f==e){let g=h.number-o;u+=l*g+c*(e-s-g)}let m=l+c*h.length;a(new ic(h.from,h.length,u,m,0)),u+=m,f=h.to+1}}replace(e,n,i){let r=this.length-n;if(r>0){let s=i[i.length-1];s instanceof ua?i[i.length-1]=new ua(s.length+r):i.push(null,new ua(r-1))}if(e>0){let s=i[0];s instanceof ua?i[0]=new ua(e+s.length):i.unshift(new ua(e-1),null)}return Ta.of(i)}decomposeLeft(e,n){n.push(new ua(e-1),null)}decomposeRight(e,n){n.push(null,new ua(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let s=n+this.length;if(r&&r.from<=n+this.length&&r.more){let a=[],o=Math.max(n,r.from),l=-1;for(r.from>n&&a.push(new ua(r.from-n-1).updateHeight(e,n));o<=s&&r.more;){let f=e.doc.lineAt(o).length;a.length&&a.push(null);let u=r.heights[r.index++];l==-1?l=u:Math.abs(u-l)>=dy&&(l=-2);let h=new ro(f,u);h.outdated=!1,a.push(h),o+=f+1}o<=s&&a.push(null,new ua(s-o).updateHeight(e,o));let c=Ta.of(a);return(l<0||Math.abs(c.height-this.height)>=dy||Math.abs(l-this.heightMetrics(e,n).perLine)>=dy)&&(Kd=!0),ww(this,c)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},kQe=class extends Ta{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,r){let s=i+this.left.height;return e<s?this.left.blockAt(e,n,i,r):this.right.blockAt(e,n,s,r+this.left.length+this.break)}lineAt(e,n,i,r,s){let a=r+this.left.height,o=s+this.left.length+this.break,l=n==Cn.ByHeight?e<a:e<o,c=l?this.left.lineAt(e,n,i,r,s):this.right.lineAt(e,n,i,a,o);if(this.break||(l?c.to<o:c.from>o))return c;let f=n==Cn.ByPosNoHeight?Cn.ByPosNoHeight:Cn.ByPos;return l?c.join(this.right.lineAt(o,f,i,a,o)):this.left.lineAt(o,f,i,r,s).join(c)}forEachLine(e,n,i,r,s,a){let o=r+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,i,r,s,a),n>=l&&this.right.forEachLine(e,n,i,o,l,a);else{let c=this.lineAt(l,Cn.ByPos,i,r,s);e<c.from&&this.left.forEachLine(e,c.from-1,i,r,s,a),c.to>=e&&c.from<=n&&a(c),n>c.to&&this.right.forEachLine(c.to+1,n,i,o,l,a)}}replace(e,n,i){let r=this.left.length+this.break;if(n<r)return this.balanced(this.left.replace(e,n,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let a=s.length;for(let o of i)s.push(o);if(e>0&&Z7(s,a-1),n<this.length){let o=s.length;this.decomposeRight(n,s),Z7(s,o)}return Ta.of(s)}decomposeLeft(e,n){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(i++,e>=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e<i&&this.left.decomposeRight(e,n),this.break&&e<r&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?Ta.of(this.break?[e,null,n]:[e,n]):(this.left=ww(this.left,e),this.right=ww(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:s,right:a}=this,o=n+s.length+this.break,l=null;return r&&r.from<=n+s.length&&r.more?l=s=s.updateHeight(e,n,i,r):s.updateHeight(e,n,i),r&&r.from<=o+a.length&&r.more?l=a=a.updateHeight(e,o,i,r):a.updateHeight(e,o,i),l?this.balanced(s,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function Z7(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof _d&&(i=t[e+1])instanceof _d&&t.splice(e-1,3,new _d(n.length+1+i.length))}const OQe=5;let xQe=class cV{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof ro?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ro(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e<n||i.heightRelevant){let r=i.widget?i.widget.estimatedHeight:0,s=i.widget?i.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let a=n-e;i.block?this.addBlock(new lV(a,r,i)):(a||s||r>=OQe)&&this.addLineDeco(r,s,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new ro(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new _d(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof ro)return e;let n=new ro(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof ro)&&!this.isCovered?this.nodes.push(new ro(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let r of this.nodes)r instanceof ro&&r.updateHeight(this.oracle,i),i+=r?r.length:1;return this.nodes}static build(e,n,i,r){let s=new cV(i,e);return ft.spans(n,i,r,s,0),s.finish(i)}};function SQe(t,e,n){let i=new _Qe;return ft.compare(t,e,n,i,0),i.changes}let _Qe=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,i,r){(e<n||i&&i.heightRelevant||r&&r.heightRelevant)&&ly(e,n,this.changes,5)}};function CQe(t,e){let n=t.getBoundingClientRect(),i=t.ownerDocument,r=i.defaultView||window,s=Math.max(0,n.left),a=Math.min(r.innerWidth,n.right),o=Math.max(0,n.top),l=Math.min(r.innerHeight,n.bottom);for(let c=t.parentNode;c&&c!=i.body;)if(c.nodeType==1){let f=c,u=window.getComputedStyle(f);if((f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth)&&u.overflow!="visible"){let h=f.getBoundingClientRect();s=Math.max(s,h.left),a=Math.min(a,h.right),o=Math.max(o,h.top),l=Math.min(c==t.parentNode?r.innerHeight:l,h.bottom)}c=u.position=="absolute"||u.position=="fixed"?f.offsetParent:f.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-n.left,right:Math.max(s,a)-n.left,top:o-(n.top+e),bottom:Math.max(o,l)-(n.top+e)}}function $Qe(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function PQe(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}let LS=class{constructor(e,n,i,r){this.from=e,this.to=n,this.size=i,this.displaySize=r}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=n[i];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,n){return nt.replace({widget:new TQe(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}},TQe=class extends Ic{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},G7=class{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=X7,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ln.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet($5).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new yQe(n),this.stateDeco=e.facet(t1).filter(i=>typeof i!="function"),this.heightMap=Ta.empty().applyChanges(this.stateDeco,ot.empty,this.heightOracle.setDoc(e.doc),[new wc(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=nt.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:s,to:a})=>r>=s&&r<=a)){let{from:s,to:a}=this.lineBlockAt(r);e.push(new rb(s,a))}}return this.viewports=e.sort((i,r)=>i.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?X7:new RQe(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(rg(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(t1).filter(f=>typeof f!="function");let r=e.changedRanges,s=wc.extendWithRanges(r,SQe(i,this.stateDeco,e?e.changes:Kn.empty(this.state.doc.length))),a=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);H7(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=a||Kd)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(zU)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Ln.RTL:Ln.LTR;let a=this.heightOracle.mustRefreshForWrapping(s),o=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let c=0,f=0;if(o.width&&o.height){let{scaleX:T,scaleY:S}=fU(n,o);(T>.005&&Math.abs(this.scaleX-T)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=T,this.scaleY=S,c|=16,a=l=!0)}let u=(parseInt(i.paddingTop)||0)*this.scaleY,h=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=h)&&(this.paddingTop=u,this.paddingBottom=h,c|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=16);let m=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=m&&(this.scrollAnchorHeight=-1,this.scrollTop=m),this.scrolledToBottom=hU(e.scrollDOM);let g=(this.printing?PQe:CQe)(n,this.paddingTop),v=g.top-this.pixelViewport.top,w=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget&&!$Qe(e.dom))return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,c|=16),l){let T=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(T)&&(a=!0),a||r.lineWrapping&&Math.abs(x-this.contentDOMWidth)>r.charWidth){let{lineHeight:S,charWidth:R,textHeight:_}=e.docView.measureTextSize();a=S>0&&r.refresh(s,S,R,_,x/R,T),a&&(e.docView.minWidth=0,c|=16)}v>0&&w>0?f=Math.max(v,w):v<0&&w<0&&(f=Math.min(v,w)),H7();for(let S of this.viewports){let R=S.from==this.viewport.from?T:e.docView.measureVisibleLineHeights(S);this.heightMap=(a?Ta.empty().applyChanges(this.stateDeco,ot.empty,this.heightOracle,[new wc(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,a,new wQe(S.from,R))}Kd&&(c|=2)}let $=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return $&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),c|=this.updateForViewport()),(c&2||$)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:a,visibleBottom:o}=this,l=new rb(r.lineAt(a-i*1e3,Cn.ByHeight,s,0,0).from,r.lineAt(o+(1-i)*1e3,Cn.ByHeight,s,0,0).to);if(n){let{head:c}=n.range;if(c<l.from||c>l.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=r.lineAt(c,Cn.ByPos,s,0,0),h;n.y=="center"?h=(u.top+u.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&c<l.from?h=u.top:h=u.bottom-f,l=new rb(r.lineAt(h-1e3/2,Cn.ByHeight,s,0,0).from,r.lineAt(h+f+1e3/2,Cn.ByHeight,s,0,0).to)}}return l}mapViewport(e,n){let i=n.mapPos(e.from,-1),r=n.mapPos(e.to,1);return new rb(this.heightMap.lineAt(i,Cn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Cn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},i=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,Cn.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,Cn.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:o}=this;return(e==0||r<=a-Math.max(10,Math.min(-i,250)))&&(n==this.state.doc.length||s>=o+Math.max(10,Math.min(i,250)))&&r>a-2*1e3&&s<o+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let i=[];for(let r of e)n.touchesRange(r.from,r.to)||i.push(new LS(n.mapPos(r.from),n.mapPos(r.to),r.size,r.displaySize));return i}ensureLineGaps(e,n){let i=this.heightOracle.lineWrapping,r=i?1e4:2e3,s=r>>1,a=r<<1;if(this.defaultTextDirection!=Ln.LTR&&!i)return[];let o=[],l=(f,u,h,m)=>{if(u-f<s)return;let g=this.state.selection.main,v=[g.from];g.empty||v.push(g.to);for(let O of v)if(O>f&&O<u){l(f,O-10,h,m),l(O+10,u,h,m);return}let w=EQe(e,O=>O.from>=h.from&&O.to<=h.to&&Math.abs(O.from-f)<s&&Math.abs(O.to-u)<s&&!v.some(x=>O.from<x&&O.to>x));if(!w){if(u<h.to&&n&&i&&n.visibleRanges.some($=>$.from<=u&&$.to>=u)){let $=n.moveToLineBoundary(ee.cursor(u),!1,!0).head;$>f&&(u=$)}let O=this.gapSize(h,f,u,m),x=i||O<2e6?O:2e6;w=new LS(f,u,O,x)}o.push(w)},c=f=>{if(f.length<a||f.type!=hr.Text)return;let u=AQe(f.from,f.to,this.stateDeco);if(u.total<a)return;let h=this.scrollTarget?this.scrollTarget.range.head:null,m,g;if(i){let v=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,w,O;if(h!=null){let x=ab(u,h),$=((this.visibleBottom-this.visibleTop)/2+v)/f.height;w=x-$,O=x+$}else w=(this.visibleTop-f.top-v)/f.height,O=(this.visibleBottom-f.top+v)/f.height;m=sb(u,w),g=sb(u,O)}else{let v=u.total*this.heightOracle.charWidth,w=r*this.heightOracle.charWidth,O=0;if(v>2e6)for(let R of e)R.from>=f.from&&R.from<f.to&&R.size!=R.displaySize&&R.from*this.heightOracle.charWidth+O<this.pixelViewport.left&&(O=R.size-R.displaySize);let x=this.pixelViewport.left+O,$=this.pixelViewport.right+O,T,S;if(h!=null){let R=ab(u,h),_=(($-x)/2+w)/v;T=R-_,S=R+_}else T=(x-w)/v,S=($+w)/v;m=sb(u,T),g=sb(u,S)}m>f.from&&l(f.from,m,f,u),g<f.to&&l(g,f.to,f,u)};for(let f of this.viewportLines)Array.isArray(f.type)?f.type.forEach(c):c(f);return o}gapSize(e,n,i,r){let s=ab(r,i)-ab(r,n);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){LS.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=nt.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let i=[];ft.spans(n,this.viewport.from,this.viewport.to,{span(s,a){i.push({from:s,to:a})},point(){}},20);let r=0;if(i.length!=this.visibleRanges.length)r=12;else for(let s=0;s<i.length&&!(r&8);s++){let a=this.visibleRanges[s],o=i[s];(a.from!=o.from||a.to!=o.to)&&(r|=4,e&&e.mapPos(a.from,-1)==o.from&&e.mapPos(a.to,1)==o.to||(r|=8))}return this.visibleRanges=i,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||rg(this.heightMap.lineAt(e,Cn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||rg(this.heightMap.lineAt(this.scaler.fromDOM(e),Cn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return rg(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},rb=class{constructor(e,n){this.from=e,this.to=n}};function AQe(t,e,n){let i=[],r=t,s=0;return ft.spans(n,t,e,{span(){},point(a,o){a>r&&(i.push({from:r,to:a}),s+=a-r),r=o}},20),r<e&&(i.push({from:r,to:e}),s+=e-r),{total:s,ranges:i}}function sb({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:s,to:a}=e[r],o=a-s;if(i<=o)return s+i;i-=o}}function ab(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}function EQe(t,e){for(let n of t)if(e(n))return n}const X7={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};let RQe=class fV{constructor(e,n,i){let r=0,s=0,a=0;this.viewports=i.map(({from:o,to:l})=>{let c=n.lineAt(o,Cn.ByPos,e,0,0).top,f=n.lineAt(l,Cn.ByPos,e,0,0).bottom;return r+=f-c,{from:o,to:l,top:c,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let o of this.viewports)o.domTop=a+(o.top-s)*this.scale,a=o.domBottom=o.domTop+(o.bottom-o.top),s=o.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.top)return r+(e-i)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);i=s.bottom,r=s.domBottom}}fromDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.domTop)return i+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);i=s.bottom,r=s.domBottom}}eq(e){return e instanceof fV?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,i)=>n.from==e.viewports[i].from&&n.to==e.viewports[i].to):!1}};function rg(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new ic(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(r=>rg(r,e)):t._content)}const ob=me.define({combine:t=>t.join(" ")}),LC=me.define({combine:t=>t.indexOf(!0)>-1}),jC=jr.newName(),uV=jr.newName(),dV=jr.newName(),hV={"&light":"."+uV,"&dark":"."+dV};function IC(t,e,n){return new jr(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i}})}const DQe=IC("."+jC,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hV),MQe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},jS=De.ie&&De.ie_version<=11;let NQe=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new pFe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(De.ie&&De.ie_version<=11||De.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(De.chrome&&De.chrome_version<126)&&(this.editContext=new jQe(e),e.state.facet(ol)&&(e.contentDOM.editContext=this.editContext.editContext)),jS&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(ol)?i.root.activeElement!=this.dom:!oy(this.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(De.ie&&De.ie_version<=11||De.android&&De.chrome)&&!i.state.selection.main.empty&&r.focusNode&&xg(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=e1(e.root);if(!n)return!1;let i=De.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&LQe(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let r=oy(this.dom,i);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&gFe(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let i=this.dom;i;)if(i.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=n)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,MQe),jS&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),jS&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var i;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Sd(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let s of e){let a=this.readMutation(s);a&&(a.typeOver&&(r=!0),n==-1?{from:n,to:i}=a:(n=Math.min(a.from,n),i=Math.max(a.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&oy(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new YFe(this.view,e,n,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=KU(this.view,n);return this.view.state==i&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=Y7(n,e.previousSibling||e.target.previousSibling,-1),r=Y7(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(ol)!=e.state.facet(ol)&&(e.view.contentDOM.editContext=e.state.facet(ol)?this.editContext.editContext:null))}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function Y7(t,e,n){for(;e;){let i=Nn.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function K7(t,e){let n=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return xg(a.node,a.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}function LQe(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return K7(t,r)}let n=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?K7(t,n):null}class jQe{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let r=e.state.selection.main,{anchor:s,head:a}=r,o=this.toEditorPos(i.updateRangeStart),l=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:o,drifted:!1});let c={from:o,to:l,insert:ot.of(i.text.split(`
|
||
`))};if(c.from==this.from&&s<this.from?c.from=s:c.to==this.to&&s>this.to&&(c.to=s),c.from==c.to&&!c.insert.length){let f=ee.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));f.main.eq(r)||e.dispatch({selection:f,userEvent:"select"});return}if((De.mac||De.android)&&c.from==a-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(c={from:o,to:l,insert:ot.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let f=this.to-this.from+(c.to-c.from+c.insert.length);A5(e,c,ee.single(this.toEditorPos(i.selectionStart,f),this.toEditorPos(i.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state))},this.handlers.characterboundsupdate=i=>{let r=[],s=null;for(let a=this.toEditorPos(i.rangeStart),o=this.toEditorPos(i.rangeEnd);a<o;a++){let l=e.coordsForChar(a);s=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||s||new DOMRect,r.push(s)}n.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let s of i.getTextFormats()){let a=s.underlineStyle,o=s.underlineThickness;if(a!="None"&&o!="None"){let l=this.toEditorPos(s.rangeStart),c=this.toEditorPos(s.rangeEnd);if(l<c){let f=`text-decoration: underline ${a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${o=="Thin"?1:2}px`;r.push(nt.mark({attributes:{style:f}}).range(l,c))}}}e.dispatch({effects:WU.of(nt.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)n.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=e1(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((s,a,o,l,c)=>{if(i)return;let f=c.length-(a-s);if(r&&a>=r.to)if(r.from==s&&r.to==a&&r.insert.eq(c)){r=this.pendingContextChange=null,n+=f,this.to+=f;return}else r=null,this.revertPending(e.state);if(s+=n,a+=n,a<=this.from)this.from+=f,this.to+=f;else if(s<this.to){if(s<this.from||a>this.to||this.to-this.from+c.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(a),c.toString()),this.to+=f}n+=f}),r&&!i&&this.revertPending(e.state),!i}update(e){let n=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),r=this.toContextPos(n.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}let Ae=class BC{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(r=>r.forEach(s=>i(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||mFe(e.parent)||document,this.viewState=new G7(e.state||kt.create(e)),e.scrollTo&&e.scrollTo.is(tb)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(tg).map(r=>new DS(r));for(let r of this.plugins)r.update(this);this.observer=new NQe(this),this.inputState=new nQe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new A7(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof Jn?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,r,s=this.state;for(let h of e){if(h.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=h.state}if(this.destroyed){this.viewState.state=s;return}let a=this.hasFocus,o=0,l=null;e.some(h=>h.annotation(rV))?(this.inputState.notifiedFocused=a,o=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=sV(s,a),l||(o=1));let c=this.observer.delayedAndroidKey,f=null;if(c?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(f=null)):this.observer.clear(),s.facet(kt.phrases)!=this.state.facet(kt.phrases))return this.setState(s);r=T7.create(this,s,e),r.flags|=o;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(u&&(u=u.map(h.changes)),h.scrollIntoView){let{main:m}=h.state.selection;u=new RS(m.empty?m:ee.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of h.effects)m.is(tb)&&(u=m.value.clip(this.state))}this.viewState.update(r,u),this.bidiCache=e8.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),n=this.docView.update(r),this.state.facet(ng)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(ob)!=r.state.facet(ob)&&(this.viewState.mustMeasureContent=!0),(n||i||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!r.empty)for(let h of this.state.facet(TC))try{h(r)}catch(m){ps(this.state,m,"update listener")}(l||f)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),f&&!KU(this,f)&&c.force&&Sd(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new G7(e),this.plugins=e.facet(tg).map(i=>new DS(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new A7(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(tg),i=e.state.facet(tg);if(n!=i){let r=[];for(let s of i){let a=n.indexOf(s);if(a<0)r.push(new DS(s));else{let o=this.plugins[a];o.mustUpdate=e,r.push(o)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);n!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(i){ps(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(a<0)if(hU(i))s=-1,a=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(r);s=m.from,a=m.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let f=c.map(m=>{try{return m.read(this)}catch(g){return ps(this.state,g),J7}}),u=T7.create(this,this.state,[]),h=!1;u.flags|=l,n?n.flags|=l:n=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),h=this.docView.update(u),h&&this.docViewUpdate());for(let m=0;m<c.length;m++)if(f[m]!=J7)try{let g=c[m];g.write&&g.write(f[m],this)}catch(g){ps(this.state,g)}if(h&&this.docView.updateSelection(!0),!u.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let g=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-a;if(g>1||g<-1){r=r+g,i.scrollTop=r/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(TC))o(n)}get themeClasses(){return jC+" "+(this.state.facet(LC)?dV:uV)+" "+this.state.facet(ob)}updateAttrs(){let e=t8(this,UU,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(ol)?"true":"false",class:"cm-content",style:`${De.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),t8(this,$5,n);let i=this.observer.ignore(()=>{let r=SC(this.contentDOM,this.contentAttrs,n),s=SC(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let r of i.effects)if(r.is(BC.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(ng);let e=this.state.facet(BC.cspNonce);jr.mount(this.root,this.styleModules.concat(DQe).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(i=>i.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return NS(this,e,N7(this,e,n,i))}moveByGroup(e,n){return NS(this,e,N7(this,e,n,i=>HFe(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=i[n?i.length-1:0];return ee.cursor(s.side(n,r)+e.from,s.forward(!n,r)?1:-1)}moveToLineBoundary(e,n,i=!0){return VFe(this,e,n,i)}moveVertically(e,n,i){return NS(this,e,ZFe(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),YU(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),a=s[mc.find(s,e-r.from,-1,n)];return y0(i,a.dir==Ln.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(QU)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>IQe)return DU(e.length);let n=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||RU(s.isolates,i=P7(this,e))))return s.order;i||(i=P7(this,e));let r=AFe(e.text,n,i);return this.bidiCache.push(new e8(e.from,e.to,n,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||De.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{uU(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return tb.of(new RS(typeof e=="number"?ee.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return tb.of(new RS(ee.cursor(i.from),"start","start",i.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return zi.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return zi.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=jr.newName(),r=[ob.of(i),ng.of(IC(`.${i}`,e))];return n&&n.dark&&r.push(LC.of(!0)),r}static baseTheme(e){return Mo.lowest(ng.of(IC("."+jC,e,hV)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),r=i&&Nn.get(i)||Nn.get(e);return((n=r==null?void 0:r.rootView)===null||n===void 0?void 0:n.view)||null}};Ae.styleModule=ng;Ae.inputHandler=BU;Ae.clipboardInputFilter=_5;Ae.clipboardOutputFilter=C5;Ae.scrollHandler=qU;Ae.focusChangeEffect=FU;Ae.perLineTextDirection=QU;Ae.exceptionSink=IU;Ae.updateListener=TC;Ae.editable=ol;Ae.mouseSelectionStyle=jU;Ae.dragMovesSelection=LU;Ae.clickAddsSelectionRange=NU;Ae.decorations=t1;Ae.outerDecorations=VU;Ae.atomicRanges=P5;Ae.bidiIsolatedRanges=HU;Ae.scrollMargins=ZU;Ae.darkTheme=LC;Ae.cspNonce=me.define({combine:t=>t.length?t[0]:""});Ae.contentAttributes=$5;Ae.editorAttributes=UU;Ae.lineWrapping=Ae.contentAttributes.of({class:"cm-lineWrapping"});Ae.announce=it.define();const IQe=4096,J7={};let e8=class pV{constructor(e,n,i,r,s,a){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=s,this.order=a}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:Ln.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let a=e[s];a.dir==r&&!n.touchesRange(a.from,a.to)&&i.push(new pV(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return i}};function t8(t,e,n){for(let i=t.state.facet(e),r=i.length-1;r>=0;r--){let s=i[r],a=typeof s=="function"?s(t):s;a&&xC(a,n)}return n}const BQe=De.mac?"mac":De.windows?"win":De.linux?"linux":"key";function FQe(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let r,s,a,o;for(let l=0;l<n.length-1;++l){const c=n[l];if(/^(cmd|meta|m)$/i.test(c))o=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))a=!0;else if(/^mod$/i.test(c))e=="mac"?o=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(i="Alt-"+i),s&&(i="Ctrl-"+i),o&&(i="Meta-"+i),a&&(i="Shift-"+i),i}function lb(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const QQe=Mo.default(Ae.domEventHandlers({keydown(t,e){return gV(mV(e.state),t,e,"editor")}})),$O=me.define({enables:QQe}),n8=new WeakMap;function mV(t){let e=t.facet($O),n=n8.get(e);return n||n8.set(e,n=WQe(e.reduce((i,r)=>i.concat(r),[]))),n}function zQe(t,e,n){return gV(mV(t.state),e,t,n)}let rc=null;const qQe=4e3;function WQe(t,e=BQe){let n=Object.create(null),i=Object.create(null),r=(a,o)=>{let l=i[a];if(l==null)i[a]=o;else if(l!=o)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},s=(a,o,l,c,f)=>{var u,h;let m=n[a]||(n[a]=Object.create(null)),g=o.split(/ (?!$)/).map(O=>FQe(O,e));for(let O=1;O<g.length;O++){let x=g.slice(0,O).join(" ");r(x,!0),m[x]||(m[x]={preventDefault:!0,stopPropagation:!1,run:[$=>{let T=rc={view:$,prefix:x,scope:a};return setTimeout(()=>{rc==T&&(rc=null)},qQe),!0}]})}let v=g.join(" ");r(v,!1);let w=m[v]||(m[v]={preventDefault:!1,stopPropagation:!1,run:((h=(u=m._any)===null||u===void 0?void 0:u.run)===null||h===void 0?void 0:h.slice())||[]});l&&w.run.push(l),c&&(w.preventDefault=!0),f&&(w.stopPropagation=!0)};for(let a of t){let o=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let c of o){let f=n[c]||(n[c]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=a;for(let h in f)f[h].run.push(m=>u(m,FC))}let l=a[e]||a.key;if(l)for(let c of o)s(c,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&s(c,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}let FC=null;function gV(t,e,n,i){FC=e;let r=cU(e),s=cr(r,0),a=ka(s)==r.length&&r!=" ",o="",l=!1,c=!1,f=!1;rc&&rc.view==n&&rc.scope==i&&(o=rc.prefix+" ",eV.indexOf(e.keyCode)<0&&(c=!0,rc=null));let u=new Set,h=w=>{if(w){for(let O of w.run)if(!u.has(O)&&(u.add(O),O(n)))return w.stopPropagation&&(f=!0),!0;w.preventDefault&&(w.stopPropagation&&(f=!0),c=!0)}return!1},m=t[i],g,v;return m&&(h(m[o+lb(r,e,!a)])?l=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(De.windows&&e.ctrlKey&&e.altKey)&&(g=yl[e.keyCode])&&g!=r?(h(m[o+lb(g,e,!0)])||e.shiftKey&&(v=Hd[e.keyCode])!=r&&v!=g&&h(m[o+lb(v,e,!1)]))&&(l=!0):a&&e.shiftKey&&h(m[o+lb(r,e,!0)])&&(l=!0),!l&&h(m._any)&&(l=!0)),c&&(l=!0),l&&f&&e.stopPropagation(),FC=null,l}class w0{constructor(e,n,i,r,s){this.className=e,this.left=n,this.top=i,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let s=vV(e);return[new w0(n,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}else return UQe(e,n,i)}}function vV(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ln.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function i8(t,e,n,i){let r=t.coordsAtPos(e,n*2);if(!r)return i;let s=t.dom.getBoundingClientRect(),a=(r.top+r.bottom)/2,o=t.posAtCoords({x:s.left+1,y:a}),l=t.posAtCoords({x:s.right-1,y:a});return o==null||l==null?i:{from:Math.max(i.from,Math.min(o,l)),to:Math.min(i.to,Math.max(o,l))}}function UQe(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),r=Math.min(n.to,t.viewport.to),s=t.textDirection==Ln.LTR,a=t.contentDOM,o=a.getBoundingClientRect(),l=vV(t),c=a.querySelector(".cm-line"),f=c&&window.getComputedStyle(c),u=o.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),h=o.right-(f?parseInt(f.paddingRight):0),m=DC(t,i),g=DC(t,r),v=m.type==hr.Text?m:null,w=g.type==hr.Text?g:null;if(v&&(t.lineWrapping||m.widgetLineBreaks)&&(v=i8(t,i,1,v)),w&&(t.lineWrapping||g.widgetLineBreaks)&&(w=i8(t,r,-1,w)),v&&w&&v.from==w.from&&v.to==w.to)return x($(n.from,n.to,v));{let S=v?$(n.from,null,v):T(m,!1),R=w?$(null,n.to,w):T(g,!0),_=[];return(v||m).to<(w||g).from-(v&&w?1:0)||m.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2<R.top?_.push(O(u,S.bottom,h,R.top)):S.bottom<R.top&&t.elementAtHeight((S.bottom+R.top)/2).type==hr.Text&&(S.bottom=R.top=(S.bottom+R.top)/2),x(S).concat(_).concat(x(R))}function O(S,R,_,P){return new w0(e,S-l.left,R-l.top,_-S,P-R)}function x({top:S,bottom:R,horizontal:_}){let P=[];for(let A=0;A<_.length;A+=2)P.push(O(_[A],S,_[A+1],R));return P}function $(S,R,_){let P=1e9,A=-1e9,N=[];function M(z,Y,ae,ne,he){let ve=t.coordsAtPos(z,z==_.to?-2:2),je=t.coordsAtPos(ae,ae==_.from?2:-2);!ve||!je||(P=Math.min(ve.top,je.top,P),A=Math.max(ve.bottom,je.bottom,A),he==Ln.LTR?N.push(s&&Y?u:ve.left,s&&ne?h:je.right):N.push(!s&&ne?u:je.left,!s&&Y?h:ve.right))}let Q=S??_.from,U=R??_.to;for(let z of t.visibleRanges)if(z.to>Q&&z.from<U)for(let Y=Math.max(z.from,Q),ae=Math.min(z.to,U);;){let ne=t.state.doc.lineAt(Y);for(let he of t.bidiSpans(ne)){let ve=he.from+ne.from,je=he.to+ne.from;if(ve>=ae)break;je>Y&&M(Math.max(ve,Y),S==null&&ve<=Q,Math.min(je,ae),R==null&&je>=U,he.dir)}if(Y=ne.to+1,Y>=ae)break}return N.length==0&&M(Q,S==null,U,R==null,t.textDirection),{top:P,bottom:A,horizontal:N}}function T(S,R){let _=o.top+(R?S.top:S.bottom);return{top:_,bottom:_,horizontal:[]}}}function VQe(t,e){return t.constructor==e.constructor&&t.eq(e)}class HQe{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(py)!=e.state.facet(py)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,i=e.facet(py);for(;n<i.length&&i[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,i)=>!VQe(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let r of e)r.update&&n&&r.constructor&&this.drawn[i].constructor&&r.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(r.draw(),n);for(;n;){let r=n.nextSibling;n.remove(),n=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const py=me.define();function bV(t){return[zi.define(e=>new HQe(e,t)),py.of(t)]}const n1=me.define({combine(t){return No(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function ZQe(t={}){return[n1.of(t),GQe,XQe,YQe,zU.of(!0)]}function yV(t){return t.startState.facet(n1)!=t.state.facet(n1)}const GQe=bV({above:!0,markers(t){let{state:e}=t,n=e.facet(n1),i=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty||n.drawRangeCursor){let a=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=r.empty?r:ee.cursor(r.head,r.head>r.anchor?-1:1);for(let l of w0.forRange(t,a,o))i.push(l)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=yV(t);return n&&r8(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){r8(e.state,t)},class:"cm-cursorLayer"});function r8(t,e){e.style.animationDuration=t.facet(n1).cursorBlinkRate+"ms"}const XQe=bV({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:w0.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||yV(t)},class:"cm-selectionLayer"}),YQe=Mo.highest(Ae.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),wV=it.define({map(t,e){return t==null?null:e.mapPos(t)}}),sg=Pi.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(wV)?i.value:n,t)}}),KQe=zi.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(sg);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(sg)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(sg),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(sg)!=t&&this.view.dispatch({effects:wV.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function JQe(){return[sg,KQe]}function s8(t,e,n,i,r){e.lastIndex=0;for(let s=t.iterRange(n,i),a=n,o;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=e.exec(s.value);)r(a+o.index,o)}function eze(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:r,to:s}of n)r=Math.max(t.state.doc.lineAt(r).from,r-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}class tze{constructor(e){const{regexp:n,decoration:i,decorate:r,boundary:s,maxLength:a=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,r)this.addMatch=(o,l,c,f)=>r(f,c,c+o[0].length,o,l);else if(typeof i=="function")this.addMatch=(o,l,c,f)=>{let u=i(o,l,c);u&&f(c,c+o[0].length,u)};else if(i)this.addMatch=(o,l,c,f)=>f(c,c+o[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=a}createDeco(e){let n=new Tc,i=n.add.bind(n);for(let{from:r,to:s}of eze(e,this.maxLength))s8(e.state.doc,this.regexp,r,s,(a,o)=>this.addMatch(o,e,a,i));return n.finish()}updateDeco(e,n){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,a,o,l)=>{l>=e.view.viewport.from&&o<=e.view.viewport.to&&(i=Math.min(o,i),r=Math.max(l,r))}),e.viewportMoved||r-i>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,n.map(e.changes),i,r):n}updateRange(e,n,i,r){for(let s of e.visibleRanges){let a=Math.max(s.from,i),o=Math.min(s.to,r);if(o>a){let l=e.state.doc.lineAt(a),c=l.to<o?e.state.doc.lineAt(o):l,f=Math.max(s.from,l.from),u=Math.min(s.to,c.to);if(this.boundary){for(;a>l.from;a--)if(this.boundary.test(l.text[a-1-l.from])){f=a;break}for(;o<c.to;o++)if(this.boundary.test(c.text[o-c.from])){u=o;break}}let h=[],m,g=(v,w,O)=>h.push(O.range(v,w));if(l==c)for(this.regexp.lastIndex=f-l.from;(m=this.regexp.exec(l.text))&&m.index<u-l.from;)this.addMatch(m,e,m.index+l.from,g);else s8(e.state.doc,this.regexp,f,u,(v,w)=>this.addMatch(w,e,v,g));n=n.update({filterFrom:f,filterTo:u,filter:(v,w)=>v<f||w>u,add:h})}}return n}}const QC=/x/.unicode!=null?"gu":"g",nze=new RegExp(`[\0-\b
|
||
--\u2028\u2029\uFEFF-]`,QC),ize={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let IS=null;function rze(){var t;if(IS==null&&typeof document<"u"&&document.body){let e=document.body.style;IS=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return IS||!1}const my=me.define({combine(t){let e=No(t,{render:null,specialChars:nze,addSpecialChars:null});return(e.replaceTabs=!rze())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,QC)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,QC)),e}});function sze(t={}){return[my.of(t),aze()]}let a8=null;function aze(){return a8||(a8=zi.fromClass(class{constructor(t){this.view=t,this.decorations=nt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(my)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new tze({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:r}=n.state,s=cr(e[0],0);if(s==9){let a=r.lineAt(i),o=n.state.tabSize,l=Rp(a.text,o,i-a.from);return nt.replace({widget:new fze((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=nt.replace({widget:new cze(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(my);t.startState.facet(my)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const oze="•";function lze(t){return t>=32?oze:t==10?"":String.fromCharCode(9216+t)}class cze extends Ic{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=lze(this.code),i=e.state.phrase("Control character")+" "+(ize[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,n);if(r)return r;let s=document.createElement("span");return s.textContent=n,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class fze extends Ic{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function uze(){return hze}const dze=nt.line({class:"cm-activeLine"}),hze=zi.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let r=t.lineBlockAt(i.head);r.from>e&&(n.push(dze.range(r.from)),e=r.from)}return nt.set(n)}},{decorations:t=>t.decorations});class pze extends Ic{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?Zd(e.firstChild):[];if(!n.length)return null;let i=window.getComputedStyle(e.parentNode),r=y0(n[0],i.direction!="rtl"),s=parseInt(i.lineHeight);return r.bottom-r.top>s*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+s}:r}ignoreEvent(){return!1}}function mze(t){return zi.fromClass(class{constructor(e){this.view=e,this.placeholder=t?nt.set([nt.widget({widget:new pze(t),side:1}).range(0)]):nt.none}get decorations(){return this.view.state.doc.length?nt.none:this.placeholder}},{decorations:e=>e.decorations})}const zC=2e3;function gze(t,e,n){let i=Math.min(e.line,n.line),r=Math.max(e.line,n.line),s=[];if(e.off>zC||n.off>zC||e.col<0||n.col<0){let a=Math.min(e.off,n.off),o=Math.max(e.off,n.off);for(let l=i;l<=r;l++){let c=t.doc.line(l);c.length<=o&&s.push(ee.range(c.from+a,c.to+o))}}else{let a=Math.min(e.col,n.col),o=Math.max(e.col,n.col);for(let l=i;l<=r;l++){let c=t.doc.line(l),f=vw(c.text,a,t.tabSize,!0);if(f<0)s.push(ee.cursor(c.to));else{let u=vw(c.text,o,t.tabSize);s.push(ee.range(c.from+f,c.from+u))}}}return s}function vze(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function o8(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),r=n-i.from,s=r>zC?-1:r==i.length?vze(t,e.clientX):Rp(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:s,off:r}}function bze(t,e){let n=o8(t,e),i=t.state.selection;return n?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(n.line).from),a=r.state.doc.lineAt(s);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},i=i.map(r.changes)}},get(r,s,a){let o=o8(t,r);if(!o)return i;let l=gze(t.state,n,o);return l.length?a?ee.create(l.concat(i.ranges)):ee.create(l):i}}:null}function yze(t){let e=(n=>n.altKey&&n.button==0);return Ae.mouseSelectionStyle.of((n,i)=>e(i)?bze(n,i):null)}const wze={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},kze={style:"cursor: crosshair"};function Oze(t={}){let[e,n]=wze[t.key||"Alt"],i=zi.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||n(r))},keyup(r){(r.keyCode==e||!n(r))&&this.set(!1)},mousemove(r){this.set(n(r))}}});return[i,Ae.contentAttributes.of(r=>{var s;return!((s=r.plugin(i))===null||s===void 0)&&s.isDown?kze:null})]}const $m="-10000px";let xze=class{constructor(e,n,i,r){this.facet=n,this.createTooltipView=i,this.removeTooltipView=r,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let s=null;this.tooltipViews=this.tooltips.map(a=>s=i(a,s))}update(e,n){var i;let r=e.state.facet(this.facet),s=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let a=[],o=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],f=-1;if(c){for(let u=0;u<this.tooltips.length;u++){let h=this.tooltips[u];h&&h.create==c.create&&(f=u)}if(f<0)a[l]=this.createTooltipView(c,l?a[l-1]:null),o&&(o[l]=!!c.above);else{let u=a[l]=this.tooltipViews[f];o&&(o[l]=n[f]),u.update&&u.update(e)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(this.removeTooltipView(l),(i=l.destroy)===null||i===void 0||i.call(l));return n&&(o.forEach((l,c)=>n[c]=l),n.length=o.length),this.input=r,this.tooltips=s,this.tooltipViews=a,!0}};function Sze(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const BS=me.define({combine:t=>{var e,n,i;return{position:De.ios?"absolute":((e=t.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(r=>r.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((i=t.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||Sze}}}),l8=new WeakMap,kV=zi.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(BS);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new xze(t,OV,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(BS);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=$m,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(De.gecko)n=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==$m&&s.style.left=="0px"){let a=s.getBoundingClientRect();n=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(n||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),r=T5(this.view);return{visible:{left:i.left+r.left,top:i.top+r.top,right:i.right-r.right,bottom:i.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,a)=>{let o=this.manager.tooltipViews[a];return o.getCoords?o.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(BS).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{visible:n,space:i,scaleX:r,scaleY:s}=t,a=[];for(let o=0;o<this.manager.tooltips.length;o++){let l=this.manager.tooltips[o],c=this.manager.tooltipViews[o],{dom:f}=c,u=t.pos[o],h=t.size[o];if(!u||l.clip!==!1&&(u.bottom<=Math.max(n.top,i.top)||u.top>=Math.min(n.bottom,i.bottom)||u.right<Math.max(n.left,i.left)-.1||u.left>Math.min(n.right,i.right)+.1)){f.style.top=$m;continue}let m=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,g=m?7:0,v=h.right-h.left,w=(e=l8.get(c))!==null&&e!==void 0?e:h.bottom-h.top,O=c.offset||Cze,x=this.view.textDirection==Ln.LTR,$=h.width>i.right-i.left?x?i.left:i.right-h.width:x?Math.max(i.left,Math.min(u.left-(m?14:0)+O.x,i.right-v)):Math.min(Math.max(i.left,u.left-v+(m?14:0)-O.x),i.right-v),T=this.above[o];!l.strictSide&&(T?u.top-w-g-O.y<i.top:u.bottom+w+g+O.y>i.bottom)&&T==i.bottom-u.bottom>u.top-i.top&&(T=this.above[o]=!T);let S=(T?u.top-i.top:i.bottom-u.bottom)-g;if(S<w&&c.resize!==!1){if(S<this.view.defaultLineHeight){f.style.top=$m;continue}l8.set(c,w),f.style.height=(w=S)/s+"px"}else f.style.height&&(f.style.height="");let R=T?u.top-w-g-O.y:u.bottom+g+O.y,_=$+v;if(c.overlap!==!0)for(let P of a)P.left<_&&P.right>$&&P.top<R+w&&P.bottom>R&&(R=T?P.top-w-2-g:P.bottom+g+2);if(this.position=="absolute"?(f.style.top=(R-t.parent.top)/s+"px",c8(f,($-t.parent.left)/r)):(f.style.top=R/s+"px",c8(f,$/r)),m){let P=u.left+(x?O.x:-O.x)-($+14-7);m.style.left=P/r+"px"}c.overlap!==!0&&a.push({left:$,top:R,right:_,bottom:R+w}),f.classList.toggle("cm-tooltip-above",T),f.classList.toggle("cm-tooltip-below",!T),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=$m}},{eventObservers:{scroll(){this.maybeMeasure()}}});function c8(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}const _ze=Ae.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Cze={x:0,y:0},OV=me.define({enables:[kV,_ze]});function xV(t,e){let n=t.plugin(kV);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const f8=me.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function kw(t,e){let n=t.plugin(SV),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const SV=zi.fromClass(class{constructor(t){this.input=t.state.facet(Ow),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(f8);this.top=new cb(t,!0,e.topContainer),this.bottom=new cb(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(f8);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new cb(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new cb(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Ow);if(n!=this.input){let i=n.filter(l=>l),r=[],s=[],a=[],o=[];for(let l of i){let c=this.specs.indexOf(l),f;c<0?(f=l(t.view),o.push(f)):(f=this.panels[c],f.update&&f.update(t)),r.push(f),(f.top?s:a).push(f)}this.specs=i,this.panels=r,this.top.sync(s),this.bottom.sync(a);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Ae.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});let cb=class{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=u8(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=u8(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function u8(t){let e=t.nextSibling;return t.remove(),e}const Ow=me.define({enables:SV});let wl=class extends Eo{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};wl.prototype.elementClass="";wl.prototype.toDOM=void 0;wl.prototype.mapMode=Wn.TrackBefore;wl.prototype.startSide=wl.prototype.endSide=-1;wl.prototype.point=!0;const gy=me.define(),$ze=me.define(),Pze={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ft.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},_g=me.define();function Tze(t){return[_V(),_g.of(Object.assign(Object.assign({},Pze),t))]}const d8=me.define({combine:t=>t.some(e=>e)});function _V(t){return[Aze]}const Aze=zi.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(_g).map(e=>new p8(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(d8),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(d8)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=ft.iter(this.view.state.facet(gy),this.view.viewport.from),i=[],r=this.gutters.map(s=>new Eze(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let a=!0;for(let o of s.type)if(o.type==hr.Text&&a){qC(n,i,o.from);for(let l of r)l.line(this.view,o,i);a=!1}else if(o.widget)for(let l of r)l.widget(this.view,o)}else if(s.type==hr.Text){qC(n,i,s.from);for(let a of r)a.line(this.view,s,i)}else if(s.widget)for(let a of r)a.widget(this.view,s);for(let s of r)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(_g),n=t.state.facet(_g),i=t.docChanged||t.heightChanged||t.viewportChanged||!ft.eq(t.startState.facet(gy),t.state.facet(gy),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let r of this.gutters)r.update(t)&&(i=!0);else{i=!0;let r=[];for(let s of n){let a=e.indexOf(s);a<0?r.push(new p8(this.view,s)):(this.gutters[a].update(t),r.push(this.gutters[a]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)this.dom.appendChild(s.dom);this.gutters=r}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Ae.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==Ln.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function h8(t){return Array.isArray(t)?t:[t]}function qC(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class Eze{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=ft.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:r}=this,s=(n.top-this.height)/e.scaleY,a=n.height/e.scaleY;if(this.i==r.elements.length){let o=new CV(e,a,s,i);r.elements.push(o),r.dom.appendChild(o.dom)}else r.elements[this.i].update(e,a,s,i);this.height=n.bottom,this.i++}line(e,n,i){let r=[];qC(this.cursor,r,n.from),i.length&&(r=r.concat(i));let s=this.gutter.config.lineMarker(e,n,r);s&&r.unshift(s);let a=this.gutter;r.length==0&&!a.config.renderEmptyElements||this.addElement(e,n,r)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n),r=i?[i]:null;for(let s of e.state.facet($ze)){let a=s(e,n.widget,n);a&&(r||(r=[])).push(a)}r&&this.addElement(e,n,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class p8{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,r=>{let s=r.target,a;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=r.clientY;let o=e.lineBlockAtHeight(a-e.documentTop);n.domEventHandlers[i](e,o,r)&&r.preventDefault()});this.markers=h8(n.markers(e)),n.initialSpacer&&(this.spacer=new CV(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=h8(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let i=e.view.viewport;return!ft.eq(this.markers,n,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class CV{constructor(e,n,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,r)}update(e,n,i,r){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Rze(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,n){let i="cm-gutterElement",r=this.dom.firstChild;for(let s=0,a=0;;){let o=a,l=s<n.length?n[s++]:null,c=!1;if(l){let f=l.elementClass;f&&(i+=" "+f);for(let u=a;u<this.markers.length;u++)if(this.markers[u].compare(l)){o=u,c=!0;break}}else o=this.markers.length;for(;a<o;){let f=this.markers[a++];if(f.toDOM){f.destroy(r);let u=r.nextSibling;r.remove(),r=u}}if(!l)break;l.toDOM&&(c?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),c&&a++}this.dom.className=i,this.markers=n}destroy(){this.setMarkers(null,[])}}function Rze(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const Dze=me.define(),Mze=me.define(),dd=me.define({combine(t){return No(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let i=Object.assign({},e);for(let r in n){let s=i[r],a=n[r];i[r]=s?(o,l,c)=>s(o,l,c)||a(o,l,c):a}return i}})}});class FS extends wl{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function QS(t,e){return t.state.facet(dd).formatNumber(e,t.state)}const Nze=_g.compute([dd],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Dze)},lineMarker(e,n,i){return i.some(r=>r.toDOM)?null:new FS(QS(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,i)=>{for(let r of e.state.facet(Mze)){let s=r(e,n,i);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(dd)!=e.state.facet(dd),initialSpacer(e){return new FS(QS(e,m8(e.state.doc.lines)))},updateSpacer(e,n){let i=QS(n.view,m8(n.view.state.doc.lines));return i==e.number?e:new FS(i)},domEventHandlers:t.facet(dd).domEventHandlers}));function Lze(t={}){return[dd.of(t),_V(),Nze]}function m8(t){let e=9;for(;e<t;)e=e*10+9;return e}const jze=new class extends wl{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},Ize=gy.compute(["selection"],t=>{let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.head).from;r>n&&(n=r,e.push(jze.range(r)))}return ft.of(e)});function Bze(){return Ize}var zS;const hd=new Bt;function $V(t){return me.define({combine:t?e=>e.concat(t):void 0})}const E5=new Bt;class xa{constructor(e,n,i=[],r=""){this.data=e,this.name=r,kt.prototype.hasOwnProperty("tree")||Object.defineProperty(kt.prototype,"tree",{get(){return ti(this)}}),this.parser=n,this.extension=[Ec.of(this),kt.languageData.of((s,a,o)=>{let l=g8(s,a,o),c=l.type.prop(hd);if(!c)return[];let f=s.facet(c),u=l.type.prop(E5);if(u){let h=l.resolve(a-l.from,o);for(let m of u)if(m.test(h,s)){let g=s.facet(m.facet);return m.type=="replace"?g:g.concat(f)}}return f})].concat(i)}isActiveAt(e,n,i=-1){return g8(e,n,i).type.prop(hd)==this.data}findRegions(e){let n=e.facet(Ec);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let i=[],r=(s,a)=>{if(s.prop(hd)==this.data){i.push({from:a,to:a+s.length});return}let o=s.prop(Bt.mounted);if(o){if(o.tree.prop(hd)==this.data){if(o.overlay)for(let l of o.overlay)i.push({from:l.from+a,to:l.to+a});else i.push({from:a,to:a+s.length});return}else if(o.overlay){let l=i.length;if(r(o.tree,o.overlay[0].from+a),i.length>l)return}}for(let l=0;l<s.children.length;l++){let c=s.children[l];c instanceof Yi&&r(c,s.positions[l]+a)}};return r(ti(e),0),i}get allowsNesting(){return!0}}xa.setState=it.define();function g8(t,e,n){let i=t.facet(Ec),r=ti(t).topNode;if(!i||i.allowsNesting)for(let s=r;s;s=s.enter(e,n,Ii.ExcludeBuffers))s.type.isTop&&(r=s);return r}class i1 extends xa{constructor(e,n,i){super(e,n,[],i),this.parser=n}static define(e){let n=$V(e.languageData);return new i1(n,e.parser.configure({props:[hd.add(i=>i.isTop?n:void 0)]}),e.name)}configure(e,n){return new i1(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ti(t){let e=t.field(xa.state,!1);return e?e.tree:Yi.empty}class Fze{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e<i||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let Pm=null;class xw{constructor(e,n,i=[],r,s,a,o,l){this.parser=e,this.state=n,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=a,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new xw(e,n,[],Yi.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Fze(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Yi.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(Tf.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Tf.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=Pm;Pm=this;try{return e()}finally{Pm=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=v8(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:r,treeLen:s,viewport:a,skipped:o}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((c,f,u,h)=>l.push({fromA:c,toA:f,fromB:u,toB:h})),i=Tf.applyChanges(i,l),r=Yi.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){o=[];for(let c of this.skipped){let f=e.mapPos(c.from,1),u=e.mapPos(c.to,-1);f<u&&o.push({from:f,to:u})}}}return new xw(this.parser,n,i,r,s,a,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:r,to:s}=this.skipped[i];r<e.to&&s>e.from&&(this.fragments=v8(this.fragments,r,s),this.skipped.splice(i--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends mBe{createParse(n,i,r){let s=r[0].from,a=r[r.length-1].to;return{parsedPos:s,advance(){let l=Pm;if(l){for(let c of r)l.tempSkipped.push(c);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=a,new Yi(Ao.none,[],[],a-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return Pm}}function v8(t,e,n){return Tf.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Jd{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new Jd(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=xw.create(e.facet(Ec).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new Jd(i)}}xa.state=Pi.define({create:Jd.init,update(t,e){for(let n of e.effects)if(n.is(xa.setState))return n.value;return e.startState.facet(Ec)!=e.state.facet(Ec)?Jd.init(e.state):t.apply(e)}});let PV=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(PV=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const qS=typeof navigator<"u"&&(!((zS=navigator.scheduling)===null||zS===void 0)&&zS.isInputPending)?()=>navigator.scheduling.isInputPending():null,Qze=zi.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(xa.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(xa.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=PV(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:r}}=this.view,s=i.field(xa.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!qS?Math.max(25,e.timeRemaining()-5):1e9),o=s.context.treeLen<r&&i.doc.length>r+1e3,l=s.context.work(()=>qS&&qS()||Date.now()>a,r+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:xa.setState.of(new Jd(s.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>ps(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ec=me.define({combine(t){return t.length?t[0]:null},enables:t=>[xa.state,Qze,Ae.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class TV{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const zze=me.define(),k0=me.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function Sw(t){let e=t.facet(k0);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function r1(t,e){let n="",i=t.tabSize,r=t.facet(k0)[0];if(r==" "){for(;e>=i;)n+=" ",e-=i;r=" "}for(let s=0;s<e;s++)n+=r;return n}function R5(t,e){t instanceof kt&&(t=new PO(t));for(let i of t.state.facet(zze)){let r=i(t,e);if(r!==void 0)return r}let n=ti(t.state);return n.length>=e?qze(t,n,e):null}class PO{constructor(e,n={}){this.state=e,this.options=n,this.unit=Sw(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(n<0?r<e:r<=e)?{text:i.text.slice(r-i.from),from:r}:{text:i.text.slice(0,r-i.from),from:i.from}:i}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:r}=this.lineAt(e,n);return i.slice(e-r,Math.min(i.length,e+100-r))}column(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.countColumn(i,e-r),a=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return a>-1&&(s+=a-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,n=e.length){return Rp(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let a=s(r);if(a>-1)return a}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const D5=new Bt;function qze(t,e,n){let i=e.resolveStack(n),r=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(r!=i.node){let s=[];for(let a=r;a&&!(a.from==i.node.from&&a.type==i.node.type);a=a.parent)s.push(a);for(let a=s.length-1;a>=0;a--)i={node:s[a],next:i}}return AV(i,t,n)}function AV(t,e,n){for(let i=t;i;i=i.next){let r=Uze(i.node);if(r)return r(M5.create(e,n,i))}return 0}function Wze(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Uze(t){let e=t.type.prop(D5);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(Bt.closedBy))){let r=t.lastChild,s=r&&i.indexOf(r.name)>-1;return a=>EV(a,!0,1,void 0,s&&!Wze(a)?r.from:void 0)}return t.parent==null?Vze:null}function Vze(){return 0}class M5 extends PO{constructor(e,n,i){super(e.state,e.options),this.base=e,this.pos=n,this.context=i}get node(){return this.context.node}static create(e,n,i){return new M5(e,n,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(n.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Hze(i,e))break;n=this.state.doc.lineAt(i.from)}return this.lineIndent(n.from)}continue(){return AV(this.context.next,this.base,this.pos)}}function Hze(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function Zze(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),a=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let o=n.to;;){let l=e.childAfter(o);if(!l||l==i)return null;if(!l.type.isSkipped){if(l.from>=a)return null;let c=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+c}}o=l.to}}function Gze({closing:t,align:e=!0,units:n=1}){return i=>EV(i,e,n,t)}function EV(t,e,n,i,r){let s=t.textAfter,a=s.match(/^\s*/)[0].length,o=i&&s.slice(a,a+i.length)==i||r==t.pos+a,l=e?Zze(t):null;return l?o?t.column(l.from):t.column(l.to):t.baseIndent+(o?0:t.unit*n)}const Xze=t=>t.baseIndent;function WS({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const Yze=200;function Kze(){return kt.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+Yze)return t;let s=n.sliceString(r.from,i);if(!e.some(c=>c.test(s)))return t;let{state:a}=t,o=-1,l=[];for(let{head:c}of a.selection.ranges){let f=a.doc.lineAt(c);if(f.from==o)continue;o=f.from;let u=R5(a,f.from);if(u==null)continue;let h=/^\s*/.exec(f.text)[0],m=r1(a,u);h!=m&&l.push({from:f.from,to:f.from+h.length,insert:m})}return l.length?[t,{changes:l,sequential:!0}]:t})}const Jze=me.define(),N5=new Bt;function eqe(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function tqe(t,e,n){let i=ti(t);if(i.length<n)return null;let r=i.resolveStack(n,1),s=null;for(let a=r;a;a=a.next){let o=a.node;if(o.to<=n||o.from>n)continue;if(s&&o.from<e)break;let l=o.type.prop(N5);if(l&&(o.to<i.length-50||i.length==t.doc.length||!nqe(o))){let c=l(o,t);c&&c.from<=n&&c.from>=e&&c.to>n&&(s=c)}}return s}function nqe(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function _w(t,e,n){for(let i of t.facet(Jze)){let r=i(t,e,n);if(r)return r}return tqe(t,e,n)}function RV(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const TO=it.define({map:RV}),O0=it.define({map:RV});function DV(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const If=Pi.define({create(){return nt.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(TO)&&!iqe(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(LV),r=i?nt.replace({widget:new fqe(i(e.state,n.value))}):b8;t=t.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(O0)&&(t=t.update({filter:(i,r)=>n.value.from!=i||n.value.to!=r,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(r,s)=>{r<i&&s>i&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(r,s)=>s<=i||r>=i}))}return t},provide:t=>Ae.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,r)=>{n.push(i,r)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let i=t[n++],r=t[n++];if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(b8.range(i,r))}return nt.set(e,!0)}});function Cw(t,e,n){var i;let r=null;return(i=t.field(If,!1))===null||i===void 0||i.between(e,n,(s,a)=>{(!r||r.from>s)&&(r={from:s,to:a})}),r}function iqe(t,e,n){let i=!1;return t.between(e,e,(r,s)=>{r==e&&s==n&&(i=!0)}),i}function MV(t,e){return t.field(If,!1)?e:e.concat(it.appendConfig.of(jV()))}const rqe=t=>{for(let e of DV(t)){let n=_w(t.state,e.from,e.to);if(n)return t.dispatch({effects:MV(t.state,[TO.of(n),NV(t,n)])}),!0}return!1},sqe=t=>{if(!t.state.field(If,!1))return!1;let e=[];for(let n of DV(t)){let i=Cw(t.state,n.from,n.to);i&&e.push(O0.of(i),NV(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function NV(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return Ae.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}const aqe=t=>{let{state:e}=t,n=[];for(let i=0;i<e.doc.length;){let r=t.lineBlockAt(i),s=_w(e,r.from,r.to);s&&n.push(TO.of(s)),i=(s?t.lineBlockAt(s.to):r).to+1}return n.length&&t.dispatch({effects:MV(t.state,n)}),!!n.length},oqe=t=>{let e=t.state.field(If,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,r)=>{n.push(O0.of({from:i,to:r}))}),t.dispatch({effects:n}),!0},lqe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:rqe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:sqe},{key:"Ctrl-Alt-[",run:aqe},{key:"Ctrl-Alt-]",run:oqe}],cqe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},LV=me.define({combine(t){return No(t,cqe)}});function jV(t){return[If,hqe]}function IV(t,e){let{state:n}=t,i=n.facet(LV),r=a=>{let o=t.lineBlockAt(t.posAtDOM(a.target)),l=Cw(t.state,o.from,o.to);l&&t.dispatch({effects:O0.of(l)}),a.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,r,e);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const b8=nt.replace({widget:new class extends Ic{toDOM(t){return IV(t,null)}}});class fqe extends Ic{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return IV(e,this.value)}}const uqe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class US extends wl{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function dqe(t={}){let e=Object.assign(Object.assign({},uqe),t),n=new US(e,!0),i=new US(e,!1),r=zi.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Ec)!=a.state.facet(Ec)||a.startState.field(If,!1)!=a.state.field(If,!1)||ti(a.startState)!=ti(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let o=new Tc;for(let l of a.viewportLineBlocks){let c=Cw(a.state,l.from,l.to)?i:_w(a.state,l.from,l.to)?n:null;c&&o.add(l.from,l.from,c)}return o.finish()}}),{domEventHandlers:s}=e;return[r,Tze({class:"cm-foldGutter",markers(a){var o;return((o=a.plugin(r))===null||o===void 0?void 0:o.markers)||ft.empty},initialSpacer(){return new US(e,!1)},domEventHandlers:Object.assign(Object.assign({},s),{click:(a,o,l)=>{if(s.click&&s.click(a,o,l))return!0;let c=Cw(a.state,o.from,o.to);if(c)return a.dispatch({effects:O0.of(c)}),!0;let f=_w(a.state,o.from,o.to);return f?(a.dispatch({effects:TO.of(f)}),!0):!1}})}),jV()]}const hqe=Ae.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Dp{constructor(e,n){this.specs=e;let i;function r(o){let l=jr.newName();return(i||(i=Object.create(null)))["."+l]=o,l}const s=typeof n.all=="string"?n.all:n.all?r(n.all):void 0,a=n.scope;this.scope=a instanceof xa?o=>o.prop(hd)==a.data:a?o=>o==a:void 0,this.style=WW(e.map(o=>({tag:o.tag,class:o.class||r(Object.assign({},o,{tag:null}))})),{all:s}).style,this.module=i?new jr(i):null,this.themeType=n.themeType}static define(e,n){return new Dp(e,n||{})}}const WC=me.define(),BV=me.define({combine(t){return t.length?[t[0]]:null}});function VS(t){let e=t.facet(WC);return e.length?e:t.facet(BV)}function L5(t,e){let n=[mqe],i;return t instanceof Dp&&(t.module&&n.push(Ae.styleModule.of(t.module)),i=t.themeType),e!=null&&e.fallback?n.push(BV.of(t)):i?n.push(WC.computeN([Ae.darkTheme],r=>r.facet(Ae.darkTheme)==(i=="dark")?[t]:[])):n.push(WC.of(t)),n}class pqe{constructor(e){this.markCache=Object.create(null),this.tree=ti(e.state),this.decorations=this.buildDeco(e,VS(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=ti(e.state),i=VS(e.state),r=i!=VS(e.startState),{viewport:s}=e.view,a=e.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!r&&n.type==this.tree.type&&a>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(n!=this.tree||e.viewportChanged||r)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=s.to)}buildDeco(e,n){if(!n||!this.tree.length)return nt.none;let i=new Tc;for(let{from:r,to:s}of e.visibleRanges)OBe(this.tree,n,(a,o,l)=>{i.add(a,o,this.markCache[l]||(this.markCache[l]=nt.mark({class:l})))},r,s);return i.finish()}}const mqe=Mo.high(zi.fromClass(pqe,{decorations:t=>t.decorations})),gqe=Dp.define([{tag:re.meta,color:"#404740"},{tag:re.link,textDecoration:"underline"},{tag:re.heading,textDecoration:"underline",fontWeight:"bold"},{tag:re.emphasis,fontStyle:"italic"},{tag:re.strong,fontWeight:"bold"},{tag:re.strikethrough,textDecoration:"line-through"},{tag:re.keyword,color:"#708"},{tag:[re.atom,re.bool,re.url,re.contentSeparator,re.labelName],color:"#219"},{tag:[re.literal,re.inserted],color:"#164"},{tag:[re.string,re.deleted],color:"#a11"},{tag:[re.regexp,re.escape,re.special(re.string)],color:"#e40"},{tag:re.definition(re.variableName),color:"#00f"},{tag:re.local(re.variableName),color:"#30a"},{tag:[re.typeName,re.namespace],color:"#085"},{tag:re.className,color:"#167"},{tag:[re.special(re.variableName),re.macroName],color:"#256"},{tag:re.definition(re.propertyName),color:"#00c"},{tag:re.comment,color:"#940"},{tag:re.invalid,color:"#f00"}]),vqe=Ae.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),FV=1e4,QV="()[]{}",zV=me.define({combine(t){return No(t,{afterCursor:!0,brackets:QV,maxScanDistance:FV,renderMatch:wqe})}}),bqe=nt.mark({class:"cm-matchingBracket"}),yqe=nt.mark({class:"cm-nonmatchingBracket"});function wqe(t){let e=[],n=t.matched?bqe:yqe;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const kqe=Pi.define({create(){return nt.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(zV);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=bo(e.state,r.head,-1,i)||r.head>0&&bo(e.state,r.head-1,1,i)||i.afterCursor&&(bo(e.state,r.head,1,i)||r.head<e.state.doc.length&&bo(e.state,r.head+1,-1,i));s&&(n=n.concat(i.renderMatch(s,e.state)))}return nt.set(n,!0)},provide:t=>Ae.decorations.from(t)}),Oqe=[kqe,vqe];function xqe(t={}){return[zV.of(t),Oqe]}const qV=new Bt;function UC(t,e,n){let i=t.prop(e<0?Bt.openedBy:Bt.closedBy);if(i)return i;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function VC(t){let e=t.type.prop(qV);return e?e(t.node):t}function bo(t,e,n,i={}){let r=i.maxScanDistance||FV,s=i.brackets||QV,a=ti(t),o=a.resolveInner(e,n);for(let l=o;l;l=l.parent){let c=UC(l.type,n,s);if(c&&l.from<l.to){let f=VC(l);if(f&&(n>0?e>=f.from&&e<f.to:e>f.from&&e<=f.to))return Sqe(t,e,n,l,f,c,s)}}return _qe(t,e,n,a,o.type,r,s)}function Sqe(t,e,n,i,r,s,a){let o=i.parent,l={from:r.from,to:r.to},c=0,f=o==null?void 0:o.cursor();if(f&&(n<0?f.childBefore(i.from):f.childAfter(i.to)))do if(n<0?f.to<=i.from:f.from>=i.to){if(c==0&&s.indexOf(f.type.name)>-1&&f.from<f.to){let u=VC(f);return{start:l,end:u?{from:u.from,to:u.to}:void 0,matched:!0}}else if(UC(f.type,n,a))c++;else if(UC(f.type,-n,a)){if(c==0){let u=VC(f);return{start:l,end:u&&u.from<u.to?{from:u.from,to:u.to}:void 0,matched:!1}}c--}}while(n<0?f.prevSibling():f.nextSibling());return{start:l,matched:!1}}function _qe(t,e,n,i,r,s,a){let o=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=a.indexOf(o);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?e-1:e,to:n>0?e+1:e},f=t.doc.iterRange(e,n>0?t.doc.length:0),u=0;for(let h=0;!f.next().done&&h<=s;){let m=f.value;n<0&&(h+=m.length);let g=e+h*n;for(let v=n>0?0:m.length-1,w=n>0?m.length:-1;v!=w;v+=n){let O=a.indexOf(m[v]);if(!(O<0||i.resolveInner(g+v,1).type!=r))if(O%2==0==n>0)u++;else{if(u==1)return{start:c,end:{from:g+v,to:g+v+1},matched:O>>1==l>>1};u--}}n>0&&(h+=m.length)}return f.done?{start:c,matched:!1}:null}const Cqe=Object.create(null),y8=[Ao.none],w8=[],k8=Object.create(null),$qe=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])$qe[t]=Pqe(Cqe,e);function HS(t,e){w8.indexOf(t)>-1||(w8.push(t),console.warn(e))}function Pqe(t,e){let n=[];for(let o of e.split(" ")){let l=[];for(let c of o.split(".")){let f=t[c]||re[c];f?typeof f=="function"?l.length?l=l.map(f):HS(c,`Modifier ${c} used at start of tag`):l.length?HS(c,`Tag ${c} used as modifier`):l=Array.isArray(f)?f:[f]:HS(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+n.map(o=>o.id),s=k8[r];if(s)return s.id;let a=k8[r]=Ao.define({id:y8.length,name:i,props:[zW({[i]:n})]});return y8.push(a),a.id}Ln.RTL,Ln.LTR;function vy(t,e){let n=e&&e.getChild("TagName");return n?t.sliceString(n.from,n.to):""}function ZS(t,e){let n=e&&e.firstChild;return!n||n.name!="OpenTag"?"":vy(t,n)}function Tqe(t,e,n){let i=e&&e.getChildren("Attribute").find(s=>s.from<=n&&s.to>=n),r=i&&i.getChild("AttributeName");return r?t.sliceString(r.from,r.to):""}function GS(t){for(let e=t&&t.parent;e;e=e.parent)if(e.name=="Element")return e;return null}function Aqe(t,e){var n;let i=ti(t).resolveInner(e,-1),r=null;for(let s=i;!r&&s.parent;s=s.parent)(s.name=="OpenTag"||s.name=="CloseTag"||s.name=="SelfClosingTag"||s.name=="MismatchedCloseTag")&&(r=s);if(r&&(r.to>e||r.lastChild.type.isError)){let s=r.parent;if(i.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:i.from,context:s}:{type:"openTag",from:i.from,context:GS(s)};if(i.name=="AttributeName")return{type:"attrName",from:i.from,context:r};if(i.name=="AttributeValue")return{type:"attrValue",from:i.from,context:r};let a=i==r||i.name=="Attribute"?i.childBefore(e):i;return(a==null?void 0:a.name)=="StartTag"?{type:"openTag",from:e,context:GS(s)}:(a==null?void 0:a.name)=="StartCloseTag"&&a.to<=e?{type:"closeTag",from:e,context:s}:(a==null?void 0:a.name)=="Is"?{type:"attrValue",from:e,context:r}:a?{type:"attrName",from:e,context:r}:null}else if(i.name=="StartCloseTag")return{type:"closeTag",from:e,context:i.parent};for(;i.parent&&i.to==e&&!(!((n=i.lastChild)===null||n===void 0)&&n.type.isError);)i=i.parent;return i.name=="Element"||i.name=="Text"||i.name=="Document"?{type:"tag",from:e,context:i.name=="Element"?i:GS(i)}:null}let Eqe=class{constructor(e,n,i){this.attrs=n,this.attrValues=i,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(r=>({label:r,type:"text"})):[]}};const XS=/^[:\-\.\w\u00b7-\uffff]*$/;function O8(t){return Object.assign(Object.assign({type:"property"},t.completion||{}),{label:t.name})}function x8(t){return typeof t=="string"?{label:`"${t}"`,type:"constant"}:/^"/.test(t.label)?t:Object.assign(Object.assign({},t),{label:`"${t.label}"`})}function Rqe(t,e){let n=[],i=[],r=Object.create(null);for(let l of e){let c=O8(l);n.push(c),l.global&&i.push(c),l.values&&(r[l.name]=l.values.map(x8))}let s=[],a=[],o=Object.create(null);for(let l of t){let c=i,f=r;l.attributes&&(c=c.concat(l.attributes.map(h=>typeof h=="string"?n.find(m=>m.label==h)||{label:h,type:"property"}:(h.values&&(f==r&&(f=Object.create(f)),f[h.name]=h.values.map(x8)),O8(h)))));let u=new Eqe(l,c,f);o[u.name]=u,s.push(u),l.top&&a.push(u)}a.length||(a=s);for(let l=0;l<s.length;l++){let c=t[l],f=s[l];if(c.children)for(let u of c.children)o[u]&&f.children.push(o[u]);else f.children=s}return l=>{var c;let{doc:f}=l.state,u=Aqe(l.state,l.pos);if(!u||u.type=="tag"&&!l.explicit)return null;let{type:h,from:m,context:g}=u;if(h=="openTag"){let v=a,w=ZS(f,g);if(w){let O=o[w];v=(O==null?void 0:O.children)||s}return{from:m,options:v.map(O=>O.completion),validFor:XS}}else if(h=="closeTag"){let v=ZS(f,g);return v?{from:m,to:l.pos+(f.sliceString(l.pos,l.pos+1)==">"?1:0),options:[((c=o[v])===null||c===void 0?void 0:c.closeNameCompletion)||{label:v+">",type:"type"}],validFor:XS}:null}else if(h=="attrName"){let v=o[vy(f,g)];return{from:m,options:(v==null?void 0:v.attrs)||i,validFor:XS}}else if(h=="attrValue"){let v=Tqe(f,g,m);if(!v)return null;let w=o[vy(f,g)],O=((w==null?void 0:w.attrValues)||r)[v];return!O||!O.length?null:{from:m,to:l.pos+(f.sliceString(l.pos,l.pos+1)=='"'?1:0),options:O,validFor:/^"[^"]*"?$/}}else if(h=="tag"){let v=ZS(f,g),w=o[v],O=[],x=g&&g.lastChild;v&&(!x||x.name!="CloseTag"||vy(f,x)!=v)&&O.push(w?w.closeCompletion:{label:"</"+v+">",type:"type",boost:2});let $=O.concat(((w==null?void 0:w.children)||(g?s:a)).map(T=>T.openCompletion));if(g&&(w!=null&&w.text.length)){let T=g.firstChild;T.to>l.pos-20&&!/\S/.test(l.state.sliceDoc(T.to,l.pos))&&($=$.concat(w.text))}return{from:m,options:$,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const HC=i1.define({name:"xml",parser:zBe.configure({props:[D5.add({Element(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),N5.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),qV.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function Dqe(t={}){let e=[HC.data.of({autocomplete:Rqe(t.elements||[],t.attributes||[])})];return t.autoCloseTags!==!1&&e.push(Mqe),new TV(HC,e)}function S8(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}const Mqe=Ae.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!HC.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:a}=s,o=a.changeByRange(l=>{var c,f,u;let{head:h}=l,m=a.doc.sliceString(h-1,h)==i,g=ti(a).resolveInner(h,-1),v;if(m&&i==">"&&g.name=="EndTag"){let w=g.parent;if(((f=(c=w.parent)===null||c===void 0?void 0:c.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(v=S8(a.doc,w.parent,h))){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),x=`</${v}>`;return{range:l,changes:{from:h,to:O,insert:x}}}}else if(m&&i=="/"&&g.name=="StartCloseTag"){let w=g.parent;if(g.from==h-2&&((u=w.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(v=S8(a.doc,w,h))){let O=h+(a.doc.sliceString(h,h+1)===">"?1:0),x=`${v}>`;return{range:ee.cursor(h+x.length,-1),changes:{from:h,to:O,insert:x}}}}return{range:l}});return o.changes.empty?!1:(t.dispatch([s,a.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var Nqe=t=>{var{theme:e,settings:n={},styles:i=[]}=t,r={".cm-gutters":{}},s={};n.background&&(s.backgroundColor=n.background),n.backgroundImage&&(s.backgroundImage=n.backgroundImage),n.foreground&&(s.color=n.foreground),n.fontSize&&(s.fontSize=n.fontSize),(n.background||n.foreground)&&(r["&"]=s),n.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(r[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(r[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(r[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(r[".cm-content"]={caretColor:n.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var a={};n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),n.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:n.lineHighlight},a.backgroundColor=n.lineHighlight),r[".cm-activeLineGutter"]=a,n.selection&&(r["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=Ae.theme(r,{dark:e==="dark"}),l=Dp.define(i),c=[o,L5(l)];return c},Lqe={background:"#24283b",foreground:"#7982a9",caret:"#c0caf5",selection:"#6f7bb630",selectionMatch:"#343b5f",gutterBackground:"#24283b",gutterForeground:"#7982a9",gutterBorder:"transparent",lineHighlight:"#292e427a"},jqe=t=>{var{theme:e="dark",settings:n={},styles:i=[]}={};return Nqe({theme:e,settings:X({},Lqe,n),styles:[{tag:re.keyword,color:"#bb9af7"},{tag:[re.name,re.deleted,re.character,re.macroName],color:"#c0caf5"},{tag:[re.propertyName],color:"#7aa2f7"},{tag:[re.processingInstruction,re.string,re.inserted,re.special(re.string)],color:"#9ece6a"},{tag:[re.function(re.variableName),re.labelName],color:"#7aa2f7"},{tag:[re.color,re.constant(re.name),re.standard(re.name)],color:"#bb9af7"},{tag:[re.definition(re.name),re.separator],color:"#c0caf5"},{tag:[re.className],color:"#c0caf5"},{tag:[re.number,re.changed,re.annotation,re.modifier,re.self,re.namespace],color:"#ff9e64"},{tag:[re.typeName],color:"#2ac3de",fontStyle:"#2ac3de"},{tag:[re.operator,re.operatorKeyword],color:"#bb9af7"},{tag:[re.url,re.escape,re.regexp,re.link],color:"#b4f9f8"},{tag:[re.meta,re.comment],color:"#565f89"},{tag:re.strong,fontWeight:"bold"},{tag:re.emphasis,fontStyle:"italic"},{tag:re.link,textDecoration:"underline"},{tag:re.heading,fontWeight:"bold",color:"#89ddff"},{tag:[re.atom,re.bool,re.special(re.variableName)],color:"#c0caf5"},{tag:re.invalid,color:"#ff5370"},{tag:re.strikethrough,textDecoration:"line-through"},...i]})},WV=jqe();const Iqe=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=I5(t.state,n.from);return i.line?Bqe(t):i.block?Qqe(t):!1};function j5(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return r?(i(n.update(r)),!0):!1}}const Bqe=j5(Wqe,0),Fqe=j5(UV,0),Qqe=j5((t,e)=>UV(t,e,qqe(e)),0);function I5(t,e){let n=t.languageDataAt("commentTokens",e,1);return n.length?n[0]:{}}const Tm=50;function zqe(t,{open:e,close:n},i,r){let s=t.sliceDoc(i-Tm,i),a=t.sliceDoc(r,r+Tm),o=/\s*$/.exec(s)[0].length,l=/^\s*/.exec(a)[0].length,c=s.length-o;if(s.slice(c-e.length,c)==e&&a.slice(l,l+n.length)==n)return{open:{pos:i-o,margin:o&&1},close:{pos:r+l,margin:l&&1}};let f,u;r-i<=2*Tm?f=u=t.sliceDoc(i,r):(f=t.sliceDoc(i,i+Tm),u=t.sliceDoc(r-Tm,r));let h=/^\s*/.exec(f)[0].length,m=/\s*$/.exec(u)[0].length,g=u.length-m-n.length;return f.slice(h,h+e.length)==e&&u.slice(g,g+n.length)==n?{open:{pos:i+h+e.length,margin:/\s/.test(f.charAt(h+e.length))?1:0},close:{pos:r-m-n.length,margin:/\s/.test(u.charAt(g-1))?1:0}}:null}function qqe(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to);r.from>i.from&&r.from==n.to&&(r=n.to==i.to+1?i:t.doc.lineAt(n.to-1));let s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}function UV(t,e,n=e.selection.ranges){let i=n.map(s=>I5(e,s.from).block);if(!i.every(s=>s))return null;let r=n.map((s,a)=>zqe(e,i[a],s.from,s.to));if(t!=2&&!r.every(s=>s))return{changes:e.changes(n.map((s,a)=>r[a]?[]:[{from:s.from,insert:i[a].open+" "},{from:s.to,insert:" "+i[a].close}]))};if(t!=1&&r.some(s=>s)){let s=[];for(let a=0,o;a<r.length;a++)if(o=r[a]){let l=i[a],{open:c,close:f}=o;s.push({from:c.pos-l.open.length,to:c.pos+c.margin},{from:f.pos-f.margin,to:f.pos+l.close.length})}return{changes:s}}return null}function Wqe(t,e,n=e.selection.ranges){let i=[],r=-1;for(let{from:s,to:a}of n){let o=i.length,l=1e9,c=I5(e,s).line;if(c){for(let f=s;f<=a;){let u=e.doc.lineAt(f);if(u.from>r&&(s==a||a>u.from)){r=u.from;let h=/^\s*/.exec(u.text)[0].length,m=h==u.length,g=u.text.slice(h,h+c.length)==c?h:-1;h<u.text.length&&h<l&&(l=h),i.push({line:u,comment:g,token:c,indent:h,empty:m,single:!1})}f=u.to+1}if(l<1e9)for(let f=o;f<i.length;f++)i[f].indent<i[f].line.text.length&&(i[f].indent=l);i.length==o+1&&(i[o].single=!0)}}if(t!=2&&i.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:o,token:l,indent:c,empty:f,single:u}of i)(u||!f)&&s.push({from:o.from+c,insert:l+" "});let a=e.changes(s);return{changes:a,selection:e.selection.map(a,1)}}else if(t!=1&&i.some(s=>s.comment>=0)){let s=[];for(let{line:a,comment:o,token:l}of i)if(o>=0){let c=a.from+o,f=c+l.length;a.text[f-a.from]==" "&&f++,s.push({from:c,to:f})}return{changes:s}}return null}const ZC=ta.define(),Uqe=ta.define(),Vqe=me.define(),VV=me.define({combine(t){return No(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,r)=>e(i,r)||n(i,r)})}}),HV=Pi.define({create(){return yo.empty},update(t,e){let n=e.state.facet(VV),i=e.annotation(ZC);if(i){let l=Mr.fromTransaction(e,i.selection),c=i.side,f=c==0?t.undone:t.done;return l?f=$w(f,f.length,n.minDepth,l):f=XV(f,e.startState.selection),new yo(c==0?i.rest:f,c==0?f:i.rest)}let r=e.annotation(Uqe);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(Jn.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=Mr.fromTransaction(e),a=e.annotation(Jn.time),o=e.annotation(Jn.userEvent);return s?t=t.addChanges(s,a,o,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,o,n.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new yo(t.done.map(Mr.fromJSON),t.undone.map(Mr.fromJSON))}});function Hqe(t={}){return[HV,VV.of(t),Ae.domEventHandlers({beforeinput(e,n){let i=e.inputType=="historyUndo"?ZV:e.inputType=="historyRedo"?GC:null;return i?(e.preventDefault(),i(n)):!1}})]}function AO(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(HV,!1);if(!r)return!1;let s=r.pop(t,n,e);return s?(i(s),!0):!1}}const ZV=AO(0,!1),GC=AO(1,!1),Zqe=AO(0,!0),Gqe=AO(1,!0);class Mr{constructor(e,n,i,r,s){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new Mr(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new Mr(e.changes&&Kn.fromJSON(e.changes),[],e.mapped&&xo.fromJSON(e.mapped),e.startSelection&&ee.fromJSON(e.startSelection),e.selectionsAfter.map(ee.fromJSON))}static fromTransaction(e,n){let i=Zs;for(let r of e.startState.facet(Vqe)){let s=r(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new Mr(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,Zs)}static selection(e){return new Mr(void 0,Zs,void 0,void 0,e)}}function $w(t,e,n,i){let r=e+1>n+20?e-n-1:0,s=t.slice(r,e);return s.push(i),s}function Xqe(t,e){let n=[],i=!1;return t.iterChangedRanges((r,s)=>n.push(r,s)),e.iterChangedRanges((r,s,a,o)=>{for(let l=0;l<n.length;){let c=n[l++],f=n[l++];o>=c&&a<=f&&(i=!0)}}),i}function Yqe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,i)=>n.empty!=e.ranges[i].empty).length===0}function GV(t,e){return t.length?e.length?t.concat(e):t:e}const Zs=[],Kqe=200;function XV(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Kqe));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),$w(t,t.length-1,1e9,n.setSelAfter(i)))}else return[Mr.selection([e])]}function Jqe(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function YS(t,e){if(!t.length)return t;let n=t.length,i=Zs;for(;n;){let r=eWe(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}else e=r.mapped,n--,i=r.selectionsAfter}return i.length?[Mr.selection(i)]:Zs}function eWe(t,e,n){let i=GV(t.selectionsAfter.length?t.selectionsAfter.map(o=>o.map(e)):Zs,n);if(!t.changes)return Mr.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new Mr(r,it.mapEffects(t.effects,e),a,t.startSelection.map(s),i)}const tWe=/^(input\.type|delete)($|\.)/;class yo{constructor(e,n,i=0,r=void 0){this.done=e,this.undone=n,this.prevTime=i,this.prevUserEvent=r}isolate(){return this.prevTime?new yo(this.done,this.undone):this}addChanges(e,n,i,r,s){let a=this.done,o=a[a.length-1];return o&&o.changes&&!o.changes.empty&&e.changes&&(!i||tWe.test(i))&&(!o.selectionsAfter.length&&n-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,Xqe(o.changes,e.changes))||i=="input.type.compose")?a=$w(a,a.length-1,r.minDepth,new Mr(e.changes.compose(o.changes),GV(it.mapEffects(e.effects,o.changes),o.effects),o.mapped,o.startSelection,Zs)):a=$w(a,a.length,r.minDepth,e),new yo(a,Zs,n,i)}addSelection(e,n,i,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:Zs;return s.length>0&&n-this.prevTime<r&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&Yqe(s[s.length-1],e)?this:new yo(XV(this.done,e),this.undone,n,i)}addMapping(e){return new yo(YS(this.done,e),YS(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,i){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],a=s.selectionsAfter[0]||n.selection;if(i&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:ZC.of({side:e,rest:Jqe(r),selection:a}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let o=r.length==1?Zs:r.slice(0,r.length-1);return s.mapped&&(o=YS(o,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:ZC.of({side:e,rest:o,selection:a}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}yo.empty=new yo(Zs,Zs);const nWe=[{key:"Mod-z",run:ZV,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:GC,preventDefault:!0},{linux:"Ctrl-Shift-z",run:GC,preventDefault:!0},{key:"Mod-u",run:Zqe,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Gqe,preventDefault:!0}];function Mp(t,e){return ee.create(t.ranges.map(e),t.mainIndex)}function Lo(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ja({state:t,dispatch:e},n){let i=Mp(t.selection,n);return i.eq(t.selection,!0)?!1:(e(Lo(t,i)),!0)}function EO(t,e){return ee.cursor(e?t.to:t.from)}function YV(t,e){return ja(t,n=>n.empty?t.moveByChar(n,e):EO(n,e))}function Ji(t){return t.textDirectionAt(t.state.selection.main.head)==Ln.LTR}const KV=t=>YV(t,!Ji(t)),JV=t=>YV(t,Ji(t));function eH(t,e){return ja(t,n=>n.empty?t.moveByGroup(n,e):EO(n,e))}const iWe=t=>eH(t,!Ji(t)),rWe=t=>eH(t,Ji(t));function sWe(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function RO(t,e,n){let i=ti(t).resolveInner(e.head),r=n?Bt.closedBy:Bt.openedBy;for(let l=e.head;;){let c=n?i.childAfter(l):i.childBefore(l);if(!c)break;sWe(t,c,r)?i=c:l=n?c.to:c.from}let s=i.type.prop(r),a,o;return s&&(a=n?bo(t,i.from,1):bo(t,i.to,-1))&&a.matched?o=n?a.end.to:a.end.from:o=n?i.to:i.from,ee.cursor(o,n?-1:1)}const aWe=t=>ja(t,e=>RO(t.state,e,!Ji(t))),oWe=t=>ja(t,e=>RO(t.state,e,Ji(t)));function tH(t,e){return ja(t,n=>{if(!n.empty)return EO(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}const nH=t=>tH(t,!1),iH=t=>tH(t,!0);function rH(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,i=0,r;if(e){for(let s of t.state.facet(Ae.scrollMargins)){let a=s(t);a!=null&&a.top&&(n=Math.max(a==null?void 0:a.top,n)),a!=null&&a.bottom&&(i=Math.max(a==null?void 0:a.bottom,i))}r=t.scrollDOM.clientHeight-n-i}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function sH(t,e){let n=rH(t),{state:i}=t,r=Mp(i.selection,a=>a.empty?t.moveVertically(a,e,n.height):EO(a,e));if(r.eq(i.selection))return!1;let s;if(n.selfScroll){let a=t.coordsAtPos(i.selection.main.head),o=t.scrollDOM.getBoundingClientRect(),l=o.top+n.marginTop,c=o.bottom-n.marginBottom;a&&a.top>l&&a.bottom<c&&(s=Ae.scrollIntoView(r.main.head,{y:"start",yMargin:a.top-l}))}return t.dispatch(Lo(i,r),{effects:s}),!0}const _8=t=>sH(t,!1),XC=t=>sH(t,!0);function Bc(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=ee.cursor(i.from+s))}return r}const lWe=t=>ja(t,e=>Bc(t,e,!0)),cWe=t=>ja(t,e=>Bc(t,e,!1)),fWe=t=>ja(t,e=>Bc(t,e,!Ji(t))),uWe=t=>ja(t,e=>Bc(t,e,Ji(t))),dWe=t=>ja(t,e=>ee.cursor(t.lineBlockAt(e.head).from,1)),hWe=t=>ja(t,e=>ee.cursor(t.lineBlockAt(e.head).to,-1));function pWe(t,e,n){let i=!1,r=Mp(t.selection,s=>{let a=bo(t,s.head,-1)||bo(t,s.head,1)||s.head>0&&bo(t,s.head-1,1)||s.head<t.doc.length&&bo(t,s.head+1,-1);if(!a||!a.end)return s;i=!0;let o=a.start.from==s.head?a.end.to:a.end.from;return ee.cursor(o)});return i?(e(Lo(t,r)),!0):!1}const mWe=({state:t,dispatch:e})=>pWe(t,e);function na(t,e){let n=Mp(t.state.selection,i=>{let r=e(i);return ee.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(Lo(t.state,n)),!0)}function aH(t,e){return na(t,n=>t.moveByChar(n,e))}const oH=t=>aH(t,!Ji(t)),lH=t=>aH(t,Ji(t));function cH(t,e){return na(t,n=>t.moveByGroup(n,e))}const gWe=t=>cH(t,!Ji(t)),vWe=t=>cH(t,Ji(t)),bWe=t=>na(t,e=>RO(t.state,e,!Ji(t))),yWe=t=>na(t,e=>RO(t.state,e,Ji(t)));function fH(t,e){return na(t,n=>t.moveVertically(n,e))}const uH=t=>fH(t,!1),dH=t=>fH(t,!0);function hH(t,e){return na(t,n=>t.moveVertically(n,e,rH(t).height))}const C8=t=>hH(t,!1),$8=t=>hH(t,!0),wWe=t=>na(t,e=>Bc(t,e,!0)),kWe=t=>na(t,e=>Bc(t,e,!1)),OWe=t=>na(t,e=>Bc(t,e,!Ji(t))),xWe=t=>na(t,e=>Bc(t,e,Ji(t))),SWe=t=>na(t,e=>ee.cursor(t.lineBlockAt(e.head).from)),_We=t=>na(t,e=>ee.cursor(t.lineBlockAt(e.head).to)),P8=({state:t,dispatch:e})=>(e(Lo(t,{anchor:0})),!0),T8=({state:t,dispatch:e})=>(e(Lo(t,{anchor:t.doc.length})),!0),A8=({state:t,dispatch:e})=>(e(Lo(t,{anchor:t.selection.main.anchor,head:0})),!0),E8=({state:t,dispatch:e})=>(e(Lo(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),CWe=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),$We=({state:t,dispatch:e})=>{let n=DO(t).map(({from:i,to:r})=>ee.range(i,Math.min(r+1,t.doc.length)));return e(t.update({selection:ee.create(n),userEvent:"select"})),!0},PWe=({state:t,dispatch:e})=>{let n=Mp(t.selection,i=>{let r=ti(t),s=r.resolveStack(i.from,1);if(i.empty){let a=r.resolveStack(i.from,-1);a.node.from>=s.node.from&&a.node.to<=s.node.to&&(s=a)}for(let a=s;a;a=a.next){let{node:o}=a;if((o.from<i.from&&o.to>=i.to||o.to>i.to&&o.from<=i.from)&&a.next)return ee.range(o.to,o.from)}return i});return n.eq(t.selection)?!1:(e(Lo(t,n)),!0)},TWe=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=ee.create([n.main]):n.main.empty||(i=ee.create([ee.cursor(n.main.head)])),i?(e(Lo(t,i)),!0):!1};function x0(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(s=>{let{from:a,to:o}=s;if(a==o){let l=e(s);l<a?(n="delete.backward",l=fb(t,l,!1)):l>a&&(n="delete.forward",l=fb(t,l,!0)),a=Math.min(a,l),o=Math.max(o,l)}else a=fb(t,a,!1),o=fb(t,o,!0);return a==o?{range:s}:{changes:{from:a,to:o},range:ee.cursor(a,a<s.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?Ae.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function fb(t,e,n){if(t instanceof Ae)for(let i of t.state.facet(Ae.atomicRanges).map(r=>r(t)))i.between(e,e,(r,s)=>{r<e&&s>e&&(e=n?s:r)});return e}const pH=(t,e,n)=>x0(t,i=>{let r=i.from,{state:s}=t,a=s.doc.lineAt(r),o,l;if(n&&!e&&r>a.from&&r<a.from+200&&!/[^ \t]/.test(o=a.text.slice(0,r-a.from))){if(o[o.length-1]==" ")return r-1;let c=Rp(o,s.tabSize),f=c%Sw(s)||Sw(s);for(let u=0;u<f&&o[o.length-1-u]==" ";u++)r--;l=r}else l=Qn(a.text,r-a.from,e,e)+a.from,l==r&&a.number!=(e?s.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(a.text.slice(l-a.from,r-a.from))&&(l=Qn(a.text,l-a.from,!1,!1)+a.from);return l}),YC=t=>pH(t,!1,!0),mH=t=>pH(t,!0,!1),gH=(t,e)=>x0(t,n=>{let i=n.head,{state:r}=t,s=r.doc.lineAt(i),a=r.charCategorizer(i);for(let o=null;;){if(i==(e?s.to:s.from)){i==n.head&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let l=Qn(s.text,i-s.from,e)+s.from,c=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),f=a(c);if(o!=null&&f!=o)break;(c!=" "||i!=n.head)&&(o=f),i=l}return i}),vH=t=>gH(t,!1),AWe=t=>gH(t,!0),EWe=t=>x0(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),RWe=t=>x0(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),DWe=t=>x0(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),MWe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:ot.of(["",""])},range:ee.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},NWe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let r=i.from,s=t.doc.lineAt(r),a=r==s.from?r-1:Qn(s.text,r-s.from,!1)+s.from,o=r==s.to?r+1:Qn(s.text,r-s.from,!0)+s.from;return{changes:{from:a,to:o,insert:t.doc.slice(r,o).append(t.doc.slice(a,r))},range:ee.cursor(o)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function DO(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=t.doc.lineAt(i.to-1)),n>=r.number){let a=e[e.length-1];a.to=s.to,a.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function bH(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of DO(t)){if(n?s.to==t.doc.length:s.from==0)continue;let a=t.doc.lineAt(n?s.to+1:s.from-1),o=a.length+1;if(n){i.push({from:s.to,to:a.to},{from:s.from,insert:a.text+t.lineBreak});for(let l of s.ranges)r.push(ee.range(Math.min(t.doc.length,l.anchor+o),Math.min(t.doc.length,l.head+o)))}else{i.push({from:a.from,to:s.from},{from:s.to,insert:t.lineBreak+a.text});for(let l of s.ranges)r.push(ee.range(l.anchor-o,l.head-o))}}return i.length?(e(t.update({changes:i,scrollIntoView:!0,selection:ee.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const LWe=({state:t,dispatch:e})=>bH(t,e,!1),jWe=({state:t,dispatch:e})=>bH(t,e,!0);function yH(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of DO(t))n?i.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):i.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const IWe=({state:t,dispatch:e})=>yH(t,e,!1),BWe=({state:t,dispatch:e})=>yH(t,e,!0),FWe=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(DO(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),i=Mp(e.selection,r=>{let s;if(t.lineWrapping){let a=t.lineBlockAt(r.head),o=t.coordsAtPos(r.head,r.assoc||1);o&&(s=a.bottom+t.documentTop-o.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,s)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function QWe(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=ti(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e),s;return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(Bt.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}const R8=wH(!1),zWe=wH(!0);function wH(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:s,to:a}=r,o=e.doc.lineAt(s),l=!t&&s==a&&QWe(e,s);t&&(s=a=(a<=o.to?o:e.doc.lineAt(a)).to);let c=new PO(e,{simulateBreak:s,simulateDoubleBreak:!!l}),f=R5(c,s);for(f==null&&(f=Rp(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));a<o.to&&/\s/.test(o.text[a-o.from]);)a++;l?{from:s,to:a}=l:s>o.from&&s<o.from+100&&!/\S/.test(o.text.slice(0,s))&&(s=o.from);let u=["",r1(e,f)];return l&&u.push(r1(e,c.lineIndent(o.from,-1))),{changes:{from:s,to:a,insert:ot.of(u)},range:ee.cursor(s+1+u[1].length)}});return n(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function B5(t,e){let n=-1;return t.changeByRange(i=>{let r=[];for(let a=i.from;a<=i.to;){let o=t.doc.lineAt(a);o.number>n&&(i.empty||i.to>o.from)&&(e(o,r,i),n=o.number),a=o.to+1}let s=t.changes(r);return{changes:r,range:ee.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const qWe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new PO(t,{overrideIndentation:s=>{let a=n[s];return a??-1}}),r=B5(t,(s,a,o)=>{let l=R5(i,s.from);if(l==null)return;/\S/.test(s.text)||(l=0);let c=/^\s*/.exec(s.text)[0],f=r1(t,l);(c!=f||o.from<s.from+c.length)&&(n[s.from]=l,a.push({from:s.from,to:s.from+c.length,insert:f}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},kH=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(B5(t,(n,i)=>{i.push({from:n.from,insert:t.facet(k0)})}),{userEvent:"input.indent"})),!0),OH=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(B5(t,(n,i)=>{let r=/^\s*/.exec(n.text)[0];if(!r)return;let s=Rp(r,t.tabSize),a=0,o=r1(t,Math.max(0,s-Sw(t)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;i.push({from:n.from+a,to:n.from+r.length,insert:o.slice(a)})}),{userEvent:"delete.dedent"})),!0),WWe=t=>(t.setTabFocusMode(),!0),UWe=[{key:"Ctrl-b",run:KV,shift:oH,preventDefault:!0},{key:"Ctrl-f",run:JV,shift:lH},{key:"Ctrl-p",run:nH,shift:uH},{key:"Ctrl-n",run:iH,shift:dH},{key:"Ctrl-a",run:dWe,shift:SWe},{key:"Ctrl-e",run:hWe,shift:_We},{key:"Ctrl-d",run:mH},{key:"Ctrl-h",run:YC},{key:"Ctrl-k",run:EWe},{key:"Ctrl-Alt-h",run:vH},{key:"Ctrl-o",run:MWe},{key:"Ctrl-t",run:NWe},{key:"Ctrl-v",run:XC}],VWe=[{key:"ArrowLeft",run:KV,shift:oH,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:iWe,shift:gWe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:fWe,shift:OWe,preventDefault:!0},{key:"ArrowRight",run:JV,shift:lH,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:rWe,shift:vWe,preventDefault:!0},{mac:"Cmd-ArrowRight",run:uWe,shift:xWe,preventDefault:!0},{key:"ArrowUp",run:nH,shift:uH,preventDefault:!0},{mac:"Cmd-ArrowUp",run:P8,shift:A8},{mac:"Ctrl-ArrowUp",run:_8,shift:C8},{key:"ArrowDown",run:iH,shift:dH,preventDefault:!0},{mac:"Cmd-ArrowDown",run:T8,shift:E8},{mac:"Ctrl-ArrowDown",run:XC,shift:$8},{key:"PageUp",run:_8,shift:C8},{key:"PageDown",run:XC,shift:$8},{key:"Home",run:cWe,shift:kWe,preventDefault:!0},{key:"Mod-Home",run:P8,shift:A8},{key:"End",run:lWe,shift:wWe,preventDefault:!0},{key:"Mod-End",run:T8,shift:E8},{key:"Enter",run:R8,shift:R8},{key:"Mod-a",run:CWe},{key:"Backspace",run:YC,shift:YC},{key:"Delete",run:mH},{key:"Mod-Backspace",mac:"Alt-Backspace",run:vH},{key:"Mod-Delete",mac:"Alt-Delete",run:AWe},{mac:"Mod-Backspace",run:RWe},{mac:"Mod-Delete",run:DWe}].concat(UWe.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),HWe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:aWe,shift:bWe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:oWe,shift:yWe},{key:"Alt-ArrowUp",run:LWe},{key:"Shift-Alt-ArrowUp",run:IWe},{key:"Alt-ArrowDown",run:jWe},{key:"Shift-Alt-ArrowDown",run:BWe},{key:"Escape",run:TWe},{key:"Mod-Enter",run:zWe},{key:"Alt-l",mac:"Ctrl-l",run:$We},{key:"Mod-i",run:PWe,preventDefault:!0},{key:"Mod-[",run:OH},{key:"Mod-]",run:kH},{key:"Mod-Alt-\\",run:qWe},{key:"Shift-Mod-k",run:FWe},{key:"Shift-Mod-\\",run:mWe},{key:"Mod-/",run:Iqe},{key:"Alt-A",run:Fqe},{key:"Ctrl-m",mac:"Shift-Alt-m",run:WWe}].concat(VWe),ZWe={key:"Tab",run:kH,shift:OH};function bn(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];typeof r=="string"?t.setAttribute(i,r):r!=null&&(t[i]=r)}e++}for(;e<arguments.length;e++)xH(t,arguments[e]);return t}function xH(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)xH(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const D8=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class eh{constructor(e,n,i=0,r=e.length,s,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=s?o=>s(D8(o)):D8,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return cr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=v5(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=ka(e);let r=this.normalize(n);for(let s=0,a=i;;s++){let o=r.charCodeAt(s),l=this.match(o,a,this.bufferPos+this.bufferStart);if(s==r.length-1){if(l)return this.value=l,this;break}a==i&&s<n.length&&n.charCodeAt(s)==o&&a++}}}match(e,n,i){let r=null;for(let s=0;s<this.matches.length;s+=2){let a=this.matches[s],o=!1;this.query.charCodeAt(a)==e&&(a==this.query.length-1?r={from:this.matches[s+1],to:i}:(this.matches[s]++,o=!0)),o||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:n,to:i}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(eh.prototype[Symbol.iterator]=function(){return this});const SH={from:-1,to:-1,match:/.*/.exec("")},F5="gm"+(/x/.unicode==null?"":"u");class _H{constructor(e,n,i,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=SH,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new CH(e,n,i,r,s);this.re=new RegExp(n,F5+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=Pw(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=Pw(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<r||i>this.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const KS=new WeakMap;class Cd{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,i){let r=KS.get(e);if(!r||r.from>=i||r.to<=n){let o=new Cd(n,e.sliceString(n,i));return KS.set(e,o),o}if(r.from==n&&r.to==i)return r;let{text:s,from:a}=r;return a>n&&(s=e.sliceString(n,a)+s,a=n),r.to<i&&(s+=e.sliceString(r.to,i)),KS.set(e,new Cd(a,s)),new Cd(n,s.slice(n-a,i-a))}}class CH{constructor(e,n,i,r,s){this.text=e,this.to=s,this.done=!1,this.value=SH,this.matchPos=Pw(e,r),this.re=new RegExp(n,F5+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.flat=Cd.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=Pw(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Cd.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(_H.prototype[Symbol.iterator]=CH.prototype[Symbol.iterator]=function(){return this});function GWe(t){try{return new RegExp(t,F5),!0}catch{return!1}}function Pw(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e<n.to&&(i=n.text.charCodeAt(e-n.from))>=56320&&i<57344;)e++;return e}function KC(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=bn("input",{class:"cm-textfield",name:"line",value:e}),i=bn("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:Tw.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},bn("label",t.state.phrase("Go to line"),": ",n)," ",bn("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:a}=t,o=a.doc.lineAt(a.selection.main.head),[,l,c,f,u]=s,h=f?+f.slice(1):0,m=c?+c:o.number;if(c&&u){let w=m/100;l&&(w=w*(l=="-"?-1:1)+o.number/a.doc.lines),m=Math.round(a.doc.lines*w)}else c&&l&&(m=m*(l=="-"?-1:1)+o.number);let g=a.doc.line(Math.max(1,Math.min(a.doc.lines,m))),v=ee.cursor(g.from+Math.max(0,Math.min(h,g.length)));t.dispatch({effects:[Tw.of(!1),Ae.scrollIntoView(v.from,{y:"center"})],selection:v}),t.focus()}return{dom:i}}const Tw=it.define(),M8=Pi.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(Tw)&&(t=n.value);return t},provide:t=>Ow.from(t,e=>e?KC:null)}),XWe=t=>{let e=kw(t,KC);if(!e){let n=[Tw.of(!0)];t.state.field(M8,!1)==null&&n.push(it.appendConfig.of([M8,YWe])),t.dispatch({effects:n}),e=kw(t,KC)}return e&&e.dom.querySelector("input").select(),!0},YWe=Ae.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),KWe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},JWe=me.define({combine(t){return No(t,KWe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function eUe(t){return[sUe,rUe]}const tUe=nt.mark({class:"cm-selectionMatch"}),nUe=nt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function N8(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=Pn.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=Pn.Word)}function iUe(t,e,n,i){return t(e.sliceDoc(n,n+1))==Pn.Word&&t(e.sliceDoc(i-1,i))==Pn.Word}const rUe=zi.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(JWe),{state:n}=t,i=n.selection;if(i.ranges.length>1)return nt.none;let r=i.main,s,a=null;if(r.empty){if(!e.highlightWordAroundCursor)return nt.none;let l=n.wordAt(r.head);if(!l)return nt.none;a=n.charCategorizer(r.head),s=n.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return nt.none;if(e.wholeWords){if(s=n.sliceDoc(r.from,r.to),a=n.charCategorizer(r.head),!(N8(a,n,r.from,r.to)&&iUe(a,n,r.from,r.to)))return nt.none}else if(s=n.sliceDoc(r.from,r.to),!s)return nt.none}let o=[];for(let l of t.visibleRanges){let c=new eh(n.doc,s,l.from,l.to);for(;!c.next().done;){let{from:f,to:u}=c.value;if((!a||N8(a,n,f,u))&&(r.empty&&f<=r.from&&u>=r.to?o.push(nUe.range(f,u)):(f>=r.to||u<=r.from)&&o.push(tUe.range(f,u)),o.length>e.maxMatches))return nt.none}}return nt.set(o)}},{decorations:t=>t.decorations}),sUe=Ae.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),aUe=({state:t,dispatch:e})=>{let{selection:n}=t,i=ee.create(n.ranges.map(r=>t.wordAt(r.head)||ee.cursor(r.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function oUe(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let a=!1,o=new eh(t.doc,e,i[i.length-1].to);;)if(o.next(),o.done){if(a)return null;o=new eh(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),a=!0}else{if(a&&i.some(l=>l.from==o.value.from))continue;if(s){let l=t.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const lUe=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return aUe({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=i))return!1;let r=oUe(t,i);return r?(e(t.update({selection:t.selection.addRange(ee.range(r.from,r.to),!1),effects:Ae.scrollIntoView(r.to)})),!0):!1},Np=me.define({combine(t){return No(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new wUe(e),scrollToMatch:e=>Ae.scrollIntoView(e)})}});class $H{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||GWe(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?`
|
||
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new dUe(this):new fUe(this)}getCursor(e,n=0,i){let r=e.doc?e:kt.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?nd(this,r,n,i):td(this,r,n,i)}}let PH=class{constructor(e){this.spec=e}};function td(t,e,n,i){return new eh(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?cUe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function cUe(t,e){return(n,i,r,s)=>((s>n||s+r.length<i)&&(s=Math.max(0,n-2),r=t.sliceString(s,Math.min(t.length,i+2))),(e(Aw(r,n-s))!=Pn.Word||e(Ew(r,n-s))!=Pn.Word)&&(e(Ew(r,i-s))!=Pn.Word||e(Aw(r,i-s))!=Pn.Word))}class fUe extends PH{constructor(e){super(e)}nextMatch(e,n,i){let r=td(this.spec,e,i,e.doc.length).nextOverlapping();return r.done&&(r=td(this.spec,e,0,n).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=i;;){let s=Math.max(n,r-1e4-this.spec.unquoted.length),a=td(this.spec,e,s,r),o=null;for(;!a.nextOverlapping().done;)o=a.value;if(o)return o;if(s==n)return null;r-=1e4}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let i=td(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=td(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function nd(t,e,n,i){return new _H(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?uUe(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function Aw(t,e){return t.slice(Qn(t,e,!1),e)}function Ew(t,e){return t.slice(e,Qn(t,e))}function uUe(t){return(e,n,i)=>!i[0].length||(t(Aw(i.input,i.index))!=Pn.Word||t(Ew(i.input,i.index))!=Pn.Word)&&(t(Ew(i.input,i.index+i[0].length))!=Pn.Word||t(Aw(i.input,i.index+i[0].length))!=Pn.Word)}class dUe extends PH{nextMatch(e,n,i){let r=nd(this.spec,e,i,e.doc.length).next();return r.done&&(r=nd(this.spec,e,0,n).next()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=1;;r++){let s=Math.max(n,i-r*1e4),a=nd(this.spec,e,s,i),o=null;for(;!a.next().done;)o=a.value;if(o&&(s==n||o.from>s+10))return o;if(s==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,i)=>i=="$"?"$":i=="&"?e.match[0]:i!="0"&&+i<e.match.length?e.match[i]:n)}matchAll(e,n){let i=nd(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=nd(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const s1=it.define(),Q5=it.define(),kc=Pi.define({create(t){return new JS(JC(t).create(),null)},update(t,e){for(let n of e.effects)n.is(s1)?t=new JS(n.value.create(),t.panel):n.is(Q5)&&(t=new JS(t.query,n.value?z5:null));return t},provide:t=>Ow.from(t,e=>e.panel)});class JS{constructor(e,n){this.query=e,this.panel=n}}const hUe=nt.mark({class:"cm-searchMatch"}),pUe=nt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),mUe=zi.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(kc))}update(t){let e=t.state.field(kc);(e!=t.startState.field(kc)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return nt.none;let{view:n}=this,i=new Tc;for(let r=0,s=n.visibleRanges,a=s.length;r<a;r++){let{from:o,to:l}=s[r];for(;r<a-1&&l>s[r+1].from-500;)l=s[++r].to;t.highlight(n.state,o,l,(c,f)=>{let u=n.state.selection.ranges.some(h=>h.from==c&&h.to==f);i.add(c,f,u?pUe:hUe)})}return i.finish()}},{decorations:t=>t.decorations});function S0(t){return e=>{let n=e.state.field(kc,!1);return n&&n.query.spec.valid?t(e,n):EH(e)}}const Rw=S0((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let r=ee.single(i.from,i.to),s=t.state.facet(Np);return t.dispatch({selection:r,effects:[q5(t,i),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),AH(t),!0}),Dw=S0((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);if(!r)return!1;let s=ee.single(r.from,r.to),a=t.state.facet(Np);return t.dispatch({selection:s,effects:[q5(t,r),a.scrollToMatch(s.main,t)],userEvent:"select.search"}),AH(t),!0}),gUe=S0((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:ee.create(n.map(i=>ee.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),vUe=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],a=0;for(let o=new eh(t.doc,t.sliceDoc(i,r));!o.next().done;){if(s.length>1e3)return!1;o.value.from==i&&(a=s.length),s.push(ee.range(o.value.from,o.value.to))}return e(t.update({selection:ee.create(s,a),userEvent:"select.search.matches"})),!0},L8=S0((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let a=[],o,l,c=[];if(s.from==i&&s.to==r&&(l=n.toText(e.getReplacement(s)),a.push({from:s.from,to:s.to,insert:l}),s=e.nextMatch(n,s.from,s.to),c.push(Ae.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let f=a.length==0||a[0].from>=s.to?0:s.to-s.from-l.length;o=ee.single(s.from-f,s.to-f),c.push(q5(t,s)),c.push(n.facet(Np).scrollToMatch(o.main,t))}return t.dispatch({changes:a,selection:o,effects:c,userEvent:"input.replace"}),!0}),bUe=S0((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(r=>{let{from:s,to:a}=r;return{from:s,to:a,insert:e.getReplacement(r)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:Ae.announce.of(i),userEvent:"input.replace.all"}),!0});function z5(t){return t.state.facet(Np).createPanel(t)}function JC(t,e){var n,i,r,s,a;let o=t.selection.main,l=o.empty||o.to>o.from+100?"":t.sliceDoc(o.from,o.to);if(e&&!l)return e;let c=t.facet(Np);return new $H({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:c.caseSensitive,literal:(r=e==null?void 0:e.literal)!==null&&r!==void 0?r:c.literal,regexp:(s=e==null?void 0:e.regexp)!==null&&s!==void 0?s:c.regexp,wholeWord:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:c.wholeWord})}function TH(t){let e=kw(t,z5);return e&&e.dom.querySelector("[main-field]")}function AH(t){let e=TH(t);e&&e==t.root.activeElement&&e.select()}const EH=t=>{let e=t.state.field(kc,!1);if(e&&e.panel){let n=TH(t);if(n&&n!=t.root.activeElement){let i=JC(t.state,e.query.spec);i.valid&&t.dispatch({effects:s1.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[Q5.of(!0),e?s1.of(JC(t.state,e.query.spec)):it.appendConfig.of(OUe)]});return!0},RH=t=>{let e=t.state.field(kc,!1);if(!e||!e.panel)return!1;let n=kw(t,z5);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:Q5.of(!1)}),!0},yUe=[{key:"Mod-f",run:EH,scope:"editor search-panel"},{key:"F3",run:Rw,shift:Dw,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Rw,shift:Dw,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:RH,scope:"editor search-panel"},{key:"Mod-Shift-l",run:vUe},{key:"Mod-Alt-g",run:XWe},{key:"Mod-d",run:lUe,preventDefault:!0}];class wUe{constructor(e){this.view=e;let n=this.query=e.state.field(kc).query.spec;this.commit=this.commit.bind(this),this.searchField=bn("input",{value:n.search,placeholder:ts(e,"Find"),"aria-label":ts(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=bn("input",{value:n.replace,placeholder:ts(e,"Replace"),"aria-label":ts(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=bn("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=bn("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=bn("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function i(r,s,a){return bn("button",{class:"cm-button",name:r,onclick:s,type:"button"},a)}this.dom=bn("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>Rw(e),[ts(e,"next")]),i("prev",()=>Dw(e),[ts(e,"previous")]),i("select",()=>gUe(e),[ts(e,"all")]),bn("label",null,[this.caseField,ts(e,"match case")]),bn("label",null,[this.reField,ts(e,"regexp")]),bn("label",null,[this.wordField,ts(e,"by word")]),...e.state.readOnly?[]:[bn("br"),this.replaceField,i("replace",()=>L8(e),[ts(e,"replace")]),i("replaceAll",()=>bUe(e),[ts(e,"replace all")])],bn("button",{name:"close",onclick:()=>RH(e),"aria-label":ts(e,"close"),type:"button"},["×"])])}commit(){let e=new $H({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:s1.of(e)}))}keydown(e){zQe(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Dw:Rw)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),L8(this.view))}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(s1)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Np).top}}function ts(t,e){return t.state.phrase(e)}const ub=30,db=/[\s\.,:;?!]/;function q5(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-ub),a=Math.min(r,n+ub),o=t.state.sliceDoc(s,a);if(s!=i.from){for(let l=0;l<ub;l++)if(!db.test(o[l+1])&&db.test(o[l])){o=o.slice(l);break}}if(a!=r){for(let l=o.length-1;l>o.length-ub;l--)if(!db.test(o[l-1])&&db.test(o[l])){o=o.slice(0,l);break}}return Ae.announce.of(`${t.state.phrase("current match")}. ${o} ${t.state.phrase("on line")} ${i.number}.`)}const kUe=Ae.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),OUe=[kc,Mo.low(mUe),kUe];class DH{constructor(e,n,i){this.state=e,this.pos=n,this.explicit=i,this.abortListeners=[]}tokenBefore(e){let n=ti(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),r=n.text.slice(i-n.from,this.pos-n.from),s=r.search(MH(e,!1));return s<0?null:{from:i+s,to:this.pos,text:r.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,n){e=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function j8(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function xUe(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s<r.length;s++)n[r[s]]=!0}let i=j8(e)+j8(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function SUe(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:xUe(e);return r=>{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:n}:null}}class I8{constructor(e,n,i,r){this.completion=e,this.source=n,this.match=i,this.score=r}}function Oc(t){return t.selection.main.from}function MH(t,e){var n;let{source:i}=t,r=e&&i[0]!="^",s=i[i.length-1]!="$";return!r&&!s?t:new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const NH=ta.define();function _Ue(t,e,n,i){let{main:r}=t.selection,s=n-r.from,a=i-r.from;return Object.assign(Object.assign({},t.changeByRange(o=>o!=r&&n!=i&&t.sliceDoc(o.from+s,o.from+a)!=t.sliceDoc(n,i)?{range:o}:{changes:{from:o.from+s,to:i==r.from?o.to:o.from+a,insert:e},range:ee.cursor(o.from+s+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const B8=new WeakMap;function CUe(t){if(!Array.isArray(t))return t;let e=B8.get(t);return e||B8.set(t,e=SUe(t)),e}const Mw=it.define(),a1=it.define();class $Ue{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let i=cr(e,n),r=ka(i);this.chars.push(i);let s=e.slice(n,n+r),a=s.toUpperCase();this.folded.push(cr(a==s?s.toLowerCase():a,0)),n+=r}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:i,any:r,precise:s,byWord:a}=this;if(n.length==1){let x=cr(e,0),$=ka(x),T=$==e.length?0:-100;if(x!=n[0])if(x==i[0])T+=-200;else return null;return this.ret(T,[0,$])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,c=0;if(o<0){for(let x=0,$=Math.min(e.length,200);x<$&&c<l;){let T=cr(e,x);(T==n[c]||T==i[c])&&(r[c++]=x),x+=ka(T)}if(c<l)return null}let f=0,u=0,h=!1,m=0,g=-1,v=-1,w=/[a-z]/.test(e),O=!0;for(let x=0,$=Math.min(e.length,200),T=0;x<$&&u<l;){let S=cr(e,x);o<0&&(f<l&&S==n[f]&&(s[f++]=x),m<l&&(S==n[m]||S==i[m]?(m==0&&(g=x),v=x+1,m++):m=0));let R,_=S<255?S>=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(R=v5(S))!=R.toLowerCase()?1:R!=R.toUpperCase()?2:0;(!x||_==1&&w||T==0&&_!=0)&&(n[u]==S||i[u]==S&&(h=!0)?a[u++]=x:a.length&&(O=!1)),T=_,x+=ka(S)}return u==l&&a[0]==0&&O?this.result(-100+(h?-200:0),a,e):m==l&&g==0?this.ret(-200-e.length+(v==e.length?0:-100),[0,v]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):m==l?this.ret(-900-e.length,[g,v]):u==l?this.result(-100+(h?-200:0)+-700+(O?0:-1100),a,e):n.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,n,i){let r=[],s=0;for(let a of n){let o=a+(this.astral?ka(cr(i,a)):1);s&&r[s-1]==a?r[s-1]=o:(r[s++]=a,r[s++]=o)}return this.ret(e-i.length,r)}}class PUe{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),i=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,n.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const Fi=me.define({combine(t){return No(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:TUe,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>F8(e(i),n(i)),optionClass:(e,n)=>i=>F8(e(i),n(i)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function F8(t,e){return t?e?t+" "+e:t:e}function TUe(t,e,n,i,r,s){let a=t.textDirection==Ln.RTL,o=a,l=!1,c="top",f,u,h=e.left-r.left,m=r.right-e.right,g=i.right-i.left,v=i.bottom-i.top;if(o&&h<Math.min(g,m)?o=!1:!o&&m<Math.min(g,h)&&(o=!0),g<=(o?h:m))f=Math.max(r.top,Math.min(n.top,r.bottom-v))-e.top,u=Math.min(400,o?h:m);else{l=!0,u=Math.min(400,(a?e.right:r.right-e.left)-30);let x=r.bottom-e.bottom;x>=v||x>e.top?f=n.bottom-e.top:(c="bottom",f=e.bottom-n.top)}let w=(e.bottom-e.top)/s.offsetHeight,O=(e.right-e.left)/s.offsetWidth;return{style:`${c}: ${f/w}px; max-width: ${u/O}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":o?"left":"right")}}function AUe(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,r,s){let a=document.createElement("span");a.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let c=0;c<s.length;){let f=s[c++],u=s[c++];f>l&&a.appendChild(document.createTextNode(o.slice(l,f)));let h=a.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(o.slice(f,u))),h.className="cm-completionMatchedText",l=u}return l<o.length&&a.appendChild(document.createTextNode(o.slice(l))),a},position:50},{render(n){if(!n.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=n.detail,i},position:80}),e.sort((n,i)=>n.position-i.position).map(n=>n.render)}function e_(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/n);return{from:r*n,to:(r+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class EUe{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=e.state.field(n),{options:s,selected:a}=r.open,o=e.state.facet(Fi);this.optionContent=AUe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=e_(s.length,a,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=e.state.field(n).open;for(let f=l.target,u;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(u=/-(\d+)$/.exec(f.id))&&+u[1]<c.length){this.applyCompletion(e,c[+u[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let c=e.state.field(this.stateField,!1);c&&c.tooltip&&e.state.facet(Fi).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:a1.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=r){let{options:s,selected:a,disabled:o}=i.open;(!r.open||r.open.options!=s)&&(this.range=e_(s.length,a,e.state.facet(Fi).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),o!=((n=r.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=e_(n.options.length,n.selected,this.view.state.facet(Fi).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:r}=i;if(!r)return;let s=typeof r=="string"?document.createTextNode(r):r(i);if(!s)return;"then"in s?s.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,i)}).catch(a=>ps(this.view.state,a,"completion info")):this.addInfoPane(s,i)}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;i.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)i.nodeName!="LI"||!i.id?r--:r==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return n&&DUe(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let a=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return r.top>Math.min(s.bottom,n.bottom)-10||r.bottom<Math.max(s.top,n.top)+10?null:this.view.state.facet(Fi).positionInfo(this.view,n,r,i,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,i){const r=document.createElement("ul");r.id=n,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));let s=null;for(let a=i.from;a<i.to;a++){let{completion:o,match:l}=e[a],{section:c}=o;if(c){let h=typeof c=="string"?c:c.name;if(h!=s&&(a>i.from||i.from==0))if(s=h,typeof c!="string"&&c.header)r.appendChild(c.header(c));else{let m=r.appendChild(document.createElement("completion-section"));m.textContent=h}}const f=r.appendChild(document.createElement("li"));f.id=n+"-"+a,f.setAttribute("role","option");let u=this.optionClass(o);u&&(f.className=u);for(let h of this.optionContent){let m=h(o,this.view.state,this.view,l);m&&f.appendChild(m)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function RUe(t,e){return n=>new EUe(n,t,e)}function DUe(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=n.height/t.offsetHeight;i.top<n.top?t.scrollTop-=(n.top-i.top)/r:i.bottom>n.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/r)}function Q8(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function MUe(t,e){let n=[],i=null,r=c=>{n.push(c);let{section:f}=c.completion;if(f){i||(i=[]);let u=typeof f=="string"?f:f.name;i.some(h=>h.name==u)||i.push(typeof f=="string"?{name:u}:f)}},s=e.facet(Fi);for(let c of t)if(c.hasResult()){let f=c.result.getMatch;if(c.result.filter===!1)for(let u of c.result.options)r(new I8(u,c.source,f?f(u):[],1e9-n.length));else{let u=e.sliceDoc(c.from,c.to),h,m=s.filterStrict?new PUe(u):new $Ue(u);for(let g of c.result.options)if(h=m.match(g.label)){let v=g.displayLabel?f?f(g,h.matched):[]:h.matched;r(new I8(g,c.source,v,h.score+(g.boost||0)))}}}if(i){let c=Object.create(null),f=0,u=(h,m)=>{var g,v;return((g=h.rank)!==null&&g!==void 0?g:1e9)-((v=m.rank)!==null&&v!==void 0?v:1e9)||(h.name<m.name?-1:1)};for(let h of i.sort(u))f-=1e5,c[h.name]=f;for(let h of n){let{section:m}=h.completion;m&&(h.score+=c[typeof m=="string"?m:m.name])}}let a=[],o=null,l=s.compareCompletions;for(let c of n.sort((f,u)=>u.score-f.score||l(f.completion,u.completion))){let f=c.completion;!o||o.label!=f.label||o.detail!=f.detail||o.type!=null&&f.type!=null&&o.type!=f.type||o.apply!=f.apply||o.boost!=f.boost?a.push(c):Q8(c.completion)>Q8(o)&&(a[a.length-1]=c),o=c.completion}return a}class pd{constructor(e,n,i,r,s,a){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=r,this.selected=s,this.disabled=a}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new pd(this.options,z8(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,r,s){let a=MUe(e,n);if(!a.length)return r&&e.some(l=>l.state==1)?new pd(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let o=n.facet(Fi).selectOnOpen?0:-1;if(r&&r.selected!=o&&r.selected!=-1){let l=r.options[r.selected].completion;for(let c=0;c<a.length;c++)if(a[c].completion==l){o=c;break}}return new pd(a,z8(i,o),{pos:e.reduce((l,c)=>c.hasResult()?Math.min(l,c.from):l,1e8),create:BUe,above:s.aboveCursor},r?r.timestamp:Date.now(),o,!1)}map(e){return new pd(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Nw{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new Nw(jUe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,i=n.facet(Fi),s=(i.override||n.languageDataAt("autocomplete",Oc(n)).map(CUe)).map(o=>(this.active.find(c=>c.source==o)||new fr(o,this.active.some(c=>c.state!=0)?1:0)).update(e,i));s.length==this.active.length&&s.every((o,l)=>o==this.active[l])&&(s=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||s.some(o=>o.hasResult()&&e.changes.touchesRange(o.from,o.to))||!NUe(s,this.active)?a=pd.build(s,n,this.id,a,i):a&&a.disabled&&!s.some(o=>o.state==1)&&(a=null),!a&&s.every(o=>o.state!=1)&&s.some(o=>o.hasResult())&&(s=s.map(o=>o.hasResult()?new fr(o.source,0):o));for(let o of e.effects)o.is(jH)&&(a=a&&a.setSelected(o.value,this.id));return s==this.active&&a==this.open?this:new Nw(s,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:LUe}}function NUe(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n<t.length&&!t[n].hasResult;)n++;for(;i<e.length&&!e[i].hasResult;)i++;let r=n==t.length,s=i==e.length;if(r||s)return r==s;if(t[n++].result!=e[i++].result)return!1}}const LUe={"aria-autocomplete":"list"};function z8(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const jUe=[];function e$(t,e){if(t.isUserEvent("input.complete")){let n=t.annotation(NH);if(n&&e.activateOnCompletion(n))return"input"}return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class fr{constructor(e,n,i=-1){this.source=e,this.state=n,this.explicitPos=i}hasResult(){return!1}update(e,n){let i=e$(e,n),r=this;i?r=r.handleUserEvent(e,i,n):e.docChanged?r=r.handleChange(e):e.selection&&r.state!=0&&(r=new fr(r.source,0));for(let s of e.effects)if(s.is(Mw))r=new fr(r.source,1,s.value?Oc(e.state):-1);else if(s.is(a1))r=new fr(r.source,0);else if(s.is(LH))for(let a of s.value)a.source==r.source&&(r=a);return r}handleUserEvent(e,n,i){return n=="delete"||!i.activateOnTyping?this.map(e.changes):new fr(this.source,1)}handleChange(e){return e.changes.touchesRange(Oc(e.startState))?new fr(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new fr(this.source,this.state,e.mapPos(this.explicitPos))}}class $d extends fr{constructor(e,n,i,r,s){super(e,2,n),this.result=i,this.from=r,this.to=s}hasResult(){return!0}handleUserEvent(e,n,i){var r;let s=this.result;s.map&&!e.changes.empty&&(s=s.map(s,e.changes));let a=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),l=Oc(e.state);if((this.explicitPos<0?l<=a:l<this.from)||l>o||!s||n=="delete"&&Oc(e.startState)==this.from)return new fr(this.source,n=="input"&&i.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return IUe(s.validFor,e.state,a,o)?new $d(this.source,c,s,a,o):s.update&&(s=s.update(s,a,o,new DH(e.state,l,c>=0)))?new $d(this.source,c,s,s.from,(r=s.to)!==null&&r!==void 0?r:Oc(e.state)):new fr(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new fr(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new $d(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new fr(this.source,0)}}function IUe(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return typeof t=="function"?t(r,n,i,e):MH(t,!0).test(r)}const LH=it.define({map(t,e){return t.map(n=>n.map(e))}}),jH=it.define(),Pr=Pi.define({create(){return Nw.start()},update(t,e){return t.update(e)},provide:t=>[OV.from(t,e=>e.tooltip),Ae.contentAttributes.from(t,e=>e.attrs)]});function W5(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(Pr).active.find(r=>r.source==e.source);return i instanceof $d?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},_Ue(t.state,n,i.from,i.to)),{annotations:NH.of(e.completion)})):n(t,e.completion,i.from,i.to),!0):!1}const BUe=RUe(Pr,W5);function hb(t,e="option"){return n=>{let i=n.state.field(Pr,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(Fi).interactionDelay)return!1;let r=1,s;e=="page"&&(s=xV(n,i.open.tooltip))&&(r=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:a}=i.open.options,o=i.open.selected>-1?i.open.selected+r*(t?1:-1):t?0:a-1;return o<0?o=e=="page"?0:a-1:o>=a&&(o=e=="page"?a-1:0),n.dispatch({effects:jH.of(o)}),!0}}const FUe=t=>{let e=t.state.field(Pr,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(Fi).interactionDelay?!1:W5(t,e.open.options[e.open.selected])},QUe=t=>t.state.field(Pr,!1)?(t.dispatch({effects:Mw.of(!0)}),!0):!1,zUe=t=>{let e=t.state.field(Pr,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:a1.of(null)}),!0)};class qUe{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const WUe=50,UUe=1e3,VUe=zi.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Pr).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Pr),n=t.state.facet(Fi);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Pr)==e)return;let i=t.transactions.some(s=>(s.selection||s.docChanged)&&!e$(s,n));for(let s=0;s<this.running.length;s++){let a=this.running[s];if(i||a.updates.length+t.transactions.length>WUe&&Date.now()-a.time>UUe){for(let o of a.context.abortListeners)try{o()}catch(l){ps(this.view.state,l)}a.context.abortListeners=null,this.running.splice(s--,1)}else a.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(a=>a.is(Mw)))&&(this.pendingStart=!0);let r=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.state==1&&!this.running.some(a=>a.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let s of t.transactions)e$(s,n)=="input"?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Pr);for(let n of e.active)n.state==1&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=Oc(e),i=new DH(e,n,t.explicitPos==n),r=new qUe(t,i);this.running.push(r),Promise.resolve(t.source(i)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:a1.of(null)}),ps(this.view.state,s)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Fi).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Fi);for(let i=0;i<this.running.length;i++){let r=this.running[i];if(r.done===void 0)continue;if(this.running.splice(i--,1),r.done){let a=new $d(r.active.source,r.active.explicitPos,r.done,r.done.from,(t=r.done.to)!==null&&t!==void 0?t:Oc(r.updates.length?r.updates[0].startState:this.view.state));for(let o of r.updates)a=a.update(o,n);if(a.hasResult()){e.push(a);continue}}let s=this.view.state.field(Pr).active.find(a=>a.source==r.active.source);if(s&&s.state==1)if(r.done==null){let a=new fr(r.active.source,0);for(let o of r.updates)a=a.update(o,n);a.state!=1&&e.push(a)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:LH.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Pr,!1);if(e&&e.tooltip&&this.view.state.facet(Fi).closeOnBlur){let n=e.open&&xV(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:a1.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Mw.of(!1)}),20),this.composing=0}}}),HUe=typeof navigator=="object"&&/Win/.test(navigator.platform),ZUe=Mo.highest(Ae.domEventHandlers({keydown(t,e){let n=e.state.field(Pr,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(HUe&&t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],r=n.active.find(a=>a.source==i.source),s=i.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&W5(e,i),!1}})),GUe=Ae.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),o1={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},$f=it.define({map(t,e){let n=e.mapPos(t,-1,Wn.TrackAfter);return n??void 0}}),U5=new class extends Eo{};U5.startSide=1;U5.endSide=-1;const IH=Pi.define({create(){return ft.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is($f)&&(t=t.update({add:[U5.range(n.value,n.value+1)]}));return t}});function XUe(){return[KUe,IH]}const t_="()[]{}<>";function BH(t){for(let e=0;e<t_.length;e+=2)if(t_.charCodeAt(e)==t)return t_.charAt(e+1);return v5(t<128?t:t+1)}function FH(t,e){return t.languageDataAt("closeBrackets",e)[0]||o1}const YUe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),KUe=Ae.inputHandler.of((t,e,n,i)=>{if((YUe?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(i.length>2||i.length==2&&ka(cr(i,0))==1||e!=r.from||n!=r.to)return!1;let s=tVe(t.state,i);return s?(t.dispatch(s),!0):!1}),JUe=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=FH(t,t.selection.main.head).brackets||o1.brackets,r=null,s=t.changeByRange(a=>{if(a.empty){let o=nVe(t.doc,a.head);for(let l of i)if(l==o&&MO(t.doc,a.head)==BH(cr(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:ee.cursor(a.head-l.length)}}return{range:r=a}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r},eVe=[{key:"Backspace",run:JUe}];function tVe(t,e){let n=FH(t,t.selection.main.head),i=n.brackets||o1.brackets;for(let r of i){let s=BH(cr(r,0));if(e==r)return s==r?sVe(t,r,i.indexOf(r+r+r)>-1,n):iVe(t,r,s,n.before||o1.before);if(e==s&&QH(t,t.selection.main.from))return rVe(t,r,s)}return null}function QH(t,e){let n=!1;return t.field(IH).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function MO(t,e){let n=t.sliceString(e,e+2);return n.slice(0,ka(cr(n,0)))}function nVe(t,e){let n=t.sliceString(e-2,e);return ka(cr(n,0))==n.length?n:n.slice(1)}function iVe(t,e,n,i){let r=null,s=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:$f.of(a.to+e.length),range:ee.range(a.anchor+e.length,a.head+e.length)};let o=MO(t.doc,a.head);return!o||/\s/.test(o)||i.indexOf(o)>-1?{changes:{insert:e+n,from:a.head},effects:$f.of(a.head+e.length),range:ee.cursor(a.head+e.length)}:{range:r=a}});return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function rVe(t,e,n){let i=null,r=t.changeByRange(s=>s.empty&&MO(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:ee.cursor(s.head+n.length)}:i={range:s});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function sVe(t,e,n,i){let r=i.stringPrefixes||o1.stringPrefixes,s=null,a=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:$f.of(o.to+e.length),range:ee.range(o.anchor+e.length,o.head+e.length)};let l=o.head,c=MO(t.doc,l),f;if(c==e){if(q8(t,l))return{changes:{insert:e+e,from:l},effects:$f.of(l+e.length),range:ee.cursor(l+e.length)};if(QH(t,l)){let h=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+h.length,insert:h},range:ee.cursor(l+h.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(f=W8(t,l-2*e.length,r))>-1&&q8(t,f))return{changes:{insert:e+e+e+e,from:l},effects:$f.of(l+e.length),range:ee.cursor(l+e.length)};if(t.charCategorizer(l)(c)!=Pn.Word&&W8(t,l,r)>-1&&!aVe(t,l,e,r))return{changes:{insert:e+e,from:l},effects:$f.of(l+e.length),range:ee.cursor(l+e.length)}}return{range:s=o}});return s?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function q8(t,e){let n=ti(t).resolveInner(e+1);return n.parent&&n.from==e}function aVe(t,e,n,i){let r=ti(t).resolveInner(e,-1),s=i.reduce((a,o)=>Math.max(a,o.length),0);for(let a=0;a<5;a++){let o=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+s)),l=o.indexOf(n);if(!l||l>-1&&i.indexOf(o.slice(0,l))>-1){let f=r.firstChild;for(;f&&f.from==r.from&&f.to-f.from>n.length+l;){if(t.sliceDoc(f.to-n.length,f.to)==n)return!1;f=f.firstChild}return!0}let c=r.to==e&&r.parent;if(!c)break;r=c}return!1}function W8(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=Pn.Word)return e;for(let r of n){let s=e-r.length;if(t.sliceDoc(s,e)==r&&i(t.sliceDoc(s-1,s))!=Pn.Word)return s}return-1}function oVe(t={}){return[ZUe,Pr,Fi.of(t),VUe,lVe,GUe]}const zH=[{key:"Ctrl-Space",run:QUe},{key:"Escape",run:zUe},{key:"ArrowDown",run:hb(!0)},{key:"ArrowUp",run:hb(!1)},{key:"PageDown",run:hb(!0,"page")},{key:"PageUp",run:hb(!1,"page")},{key:"Enter",run:FUe}],lVe=Mo.highest($O.computeN([Fi],t=>t.facet(Fi).defaultKeymap?[zH]:[]));function Lw(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function t$(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function cVe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function by(t,e){if(!e.anchorNode)return!1;try{return t$(t,e.anchorNode)}catch{return!1}}function l1(t){return t.nodeType==3?Ff(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Cg(t,e,n,i){return n?U8(t,e,n,i,-1)||U8(t,e,n,i,1):!1}function Bf(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function jw(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function U8(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:kl(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=Bf(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?kl(t):0}else return!1}}function kl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function V5(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function fVe(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function qH(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function uVe(t,e,n,i,r,s,a,o){let l=t.ownerDocument,c=l.defaultView||window;for(let f=t,u=!1;f&&!u;)if(f.nodeType==1){let h,m=f==l.body,g=1,v=1;if(m)h=fVe(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(u=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let x=f.getBoundingClientRect();({scaleX:g,scaleY:v}=qH(f,x)),h={left:x.left,right:x.left+f.clientWidth*g,top:x.top,bottom:x.top+f.clientHeight*v}}let w=0,O=0;if(r=="nearest")e.top<h.top?(O=-(h.top-e.top+a),n>0&&e.bottom>h.bottom+O&&(O=e.bottom-h.bottom+O+a)):e.bottom>h.bottom&&(O=e.bottom-h.bottom+a,n<0&&e.top-O<h.top&&(O=-(h.top+O-e.top+a)));else{let x=e.bottom-e.top,$=h.bottom-h.top;O=(r=="center"&&x<=$?e.top+x/2-$/2:r=="start"||r=="center"&&n<0?e.top-a:e.bottom-$+a)-h.top}if(i=="nearest"?e.left<h.left?(w=-(h.left-e.left+s),n>0&&e.right>h.right+w&&(w=e.right-h.right+w+s)):e.right>h.right&&(w=e.right-h.right+s,n<0&&e.left<h.left+w&&(w=-(h.left+w-e.left+s))):w=(i=="center"?e.left+(e.right-e.left)/2-(h.right-h.left)/2:i=="start"==o?e.left-s:e.right-(h.right-h.left)+s)-h.left,w||O)if(m)c.scrollBy(w,O);else{let x=0,$=0;if(O){let T=f.scrollTop;f.scrollTop+=O/v,$=(f.scrollTop-T)*v}if(w){let T=f.scrollLeft;f.scrollLeft+=w/g,x=(f.scrollLeft-T)*g}e={left:e.left-x,top:e.top-$,right:e.right-x,bottom:e.bottom-$},x&&Math.abs(x-w)<1&&(i="nearest"),$&&Math.abs($-O)<1&&(r="nearest")}if(m)break;f=f.assignedSlot||f.parentNode}else if(f.nodeType==11)f=f.host;else break}function dVe(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class hVe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?kl(n):0),i,Math.min(e.focusOffset,i?kl(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}}let Xu=null;function WH(t){if(t.setActive)return t.setActive();if(Xu)return t.focus(Xu);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Xu==null?{get preventScroll(){return Xu={preventScroll:!0},!0}}:void 0),!Xu){Xu=!1;for(let n=0;n<e.length;){let i=e[n++],r=e[n++],s=e[n++];i.scrollTop!=r&&(i.scrollTop=r),i.scrollLeft!=s&&(i.scrollLeft=s)}}}let V8;function Ff(t,e,n=e){let i=V8||(V8=document.createRange());return i.setEnd(t,n),i.setStart(t,e),i}function Pd(t,e,n,i){let r={key:e,code:e,keyCode:n,which:n,cancelable:!0};i&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=i);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,t.dispatchEvent(s);let a=new KeyboardEvent("keyup",r);return a.synthetic=!0,t.dispatchEvent(a),s.defaultPrevented||a.defaultPrevented}function pVe(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function UH(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function mVe(t,e){let n=e.focusNode,i=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=i)return!1;for(i=Math.min(i,kl(n));;)if(i){if(n.nodeType!=1)return!1;let r=n.childNodes[i-1];r.contentEditable=="false"?i--:(n=r,i=kl(n))}else{if(n==t)return!0;i=Bf(n),n=n.parentNode}}function VH(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function HH(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i>0)return{node:n,offset:i};if(n.nodeType==1&&i>0){if(n.contentEditable=="false")return null;n=n.childNodes[i-1],i=kl(n)}else if(n.parentNode&&!jw(n))i=Bf(n),n=n.parentNode;else return null}}function ZH(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i<n.nodeValue.length)return{node:n,offset:i};if(n.nodeType==1&&i<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[i],i=0}else if(n.parentNode&&!jw(n))i=Bf(n)+1,n=n.parentNode;else return null}}class Xi{constructor(e,n,i=!0){this.node=e,this.offset=n,this.precise=i}static before(e,n){return new Xi(e.parentNode,Bf(e),n)}static after(e,n){return new Xi(e.parentNode,Bf(e)+1,n)}}const H5=[];class un{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let i=this.dom,r=null,s;for(let a of this.children){if(a.flags&7){if(!a.dom&&(s=r?r.nextSibling:i.firstChild)){let o=un.get(s);(!o||!o.parent&&o.canReuseDOM(a))&&a.reuseDOM(s)}a.sync(e,n),a.flags&=-8}if(s=r?r.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&s!=a.dom&&(n.written=!0),a.dom.parentNode==i)for(;s&&s!=a.dom;)s=H8(s);else i.insertBefore(a.dom,s);r=a.dom}for(s=r?r.nextSibling:i.firstChild,s&&n&&n.node==i&&(n.written=!0);s;)s=H8(s)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,n),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let i;if(e==this.dom)i=this.dom.childNodes[n];else{let r=kl(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!un.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,s=0;;r++){let a=this.children[r];if(a.dom==i)return s;s+=a.length+a.breakAfter}}domBoundsAround(e,n,i=0){let r=-1,s=-1,a=-1,o=-1;for(let l=0,c=i,f=i;l<this.children.length;l++){let u=this.children[l],h=c+u.length;if(c<e&&h>n)return u.domBoundsAround(e,n,c);if(h>=e&&r==-1&&(r=l,s=c),c>n&&u.dom.parentNode==this.dom){a=l,o=f;break}f=h,c=h+u.breakAfter}return{from:s,to:o<0?i+this.length:o,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=H5){this.markDirty();for(let r=e;r<n;r++){let s=this.children[r];s.parent==this&&i.indexOf(s)<0&&s.destroy()}this.children.splice(e,n-e,...i);for(let r=0;r<i.length;r++)i[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new GH(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,i,r,s,a){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}un.prototype.breakAfter=0;function H8(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class GH{constructor(e,n,i){this.children=e,this.pos=n,this.i=i,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function XH(t,e,n,i,r,s,a,o,l){let{children:c}=t,f=c.length?c[e]:null,u=s.length?s[s.length-1]:null,h=u?u.breakAfter:a;if(!(e==i&&f&&!a&&!h&&s.length<2&&f.merge(n,r,s.length?u:null,n==0,o,l))){if(i<c.length){let m=c[i];m&&(r<m.length||m.breakAfter&&(u!=null&&u.breakAfter))?(e==i&&(m=m.split(r),r=0),!h&&u&&m.merge(0,r,u,!0,0,l)?s[s.length-1]=m:((r||m.children.length&&!m.children[0].length)&&m.merge(0,r,null,!1,0,l),s.push(m))):m!=null&&m.breakAfter&&(u?u.breakAfter=1:a=1),i++}for(f&&(f.breakAfter=a,n>0&&(!a&&s.length&&f.merge(n,f.length,s[0],!1,o,0)?f.breakAfter=s.shift().breakAfter:(n<f.length||f.children.length&&f.children[f.children.length-1].length==0)&&f.merge(n,f.length,null,!1,o,0),e++));e<i&&s.length;)if(c[i-1].become(s[s.length-1]))i--,s.pop(),l=s.length?0:o;else if(c[e].become(s[0]))e++,s.shift(),o=s.length?0:l;else break;!s.length&&e&&i<c.length&&!c[e-1].breakAfter&&c[i].merge(0,0,c[e-1],!1,o,l)&&e--,(e<i||s.length)&&t.replaceChildren(e,i,s)}}function YH(t,e,n,i,r,s){let a=t.childCursor(),{i:o,off:l}=a.findPos(n,1),{i:c,off:f}=a.findPos(e,-1),u=e-n;for(let h of i)u+=h.length;t.length+=u,XH(t,c,f,o,l,i,0,r,s)}let Tr=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},n$=typeof document<"u"?document:{documentElement:{style:{}}};const i$=/Edge\/(\d+)/.exec(Tr.userAgent),KH=/MSIE \d/.test(Tr.userAgent),r$=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tr.userAgent),NO=!!(KH||r$||i$),Z8=!NO&&/gecko\/(\d+)/i.test(Tr.userAgent),n_=!NO&&/Chrome\/(\d+)/.exec(Tr.userAgent),gVe="webkitFontSmoothing"in n$.documentElement.style,JH=!NO&&/Apple Computer/.test(Tr.vendor),G8=JH&&(/Mobile\/\w+/.test(Tr.userAgent)||Tr.maxTouchPoints>2);var Be={mac:G8||/Mac/.test(Tr.platform),windows:/Win/.test(Tr.platform),linux:/Linux|X11/.test(Tr.platform),ie:NO,ie_version:KH?n$.documentMode||6:r$?+r$[1]:i$?+i$[1]:0,gecko:Z8,gecko_version:Z8?+(/Firefox\/(\d+)/.exec(Tr.userAgent)||[0,0])[1]:0,chrome:!!n_,chrome_version:n_?+n_[1]:0,ios:G8,android:/Android\b/.test(Tr.userAgent),safari:JH,webkit_version:gVe?+(/\bAppleWebKit\/(\d+)/.exec(Tr.userAgent)||[0,0])[1]:0,tabSize:n$.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const vVe=256;class Ma extends un{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof Ma)||this.length-(n-e)+i.length>vVe||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new Ma(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new Xi(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return bVe(this.dom,e,n)}}class Ol extends un{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(UH(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,s,a){return i&&(!(i instanceof Ol&&i.mark.eq(this.mark))||e&&s<=0||n<this.length&&a<=0)?!1:(YH(this,e,n,i?i.children.slice():[],s-1,a-1),this.markDirty(),!0)}split(e){let n=[],i=0,r=-1,s=0;for(let o of this.children){let l=i+o.length;l>e&&n.push(i<e?o.split(e-i):o),r<0&&i>=e&&(r=s),i=l,s++}let a=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new Ol(this.mark,n,a)}domAtPos(e){return eZ(this,e)}coordsAt(e,n){return nZ(this,e,n)}}function bVe(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,s=e,a=0;e==0&&n<0||e==i&&n>=0?Be.chrome||Be.gecko||(e?(r--,a=1):s<i&&(s++,a=-1)):n<0?r--:s<i&&s++;let o=Ff(t,r,s).getClientRects();if(!o.length)return null;let l=o[(a?a<0:n>=0)?0:o.length-1];return Be.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(o,c=>c.width)||l),a?V5(l,a<0):l||null}class gc extends un{static create(e,n,i){return new gc(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=gc.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,s,a){return i&&(!(i instanceof gc)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&a<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}become(e){return e instanceof gc&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return ot.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,i=n&&n.state.doc,r=this.posAtStart;return i?i.slice(r,r+this.length):ot.empty}domAtPos(e){return(this.length?e==0:this.side>0)?Xi.before(this.dom):Xi.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let a=this.side?this.side<0:e>0;for(let o=a?r.length-1:0;s=r[o],!(e>0?o==0:o==r.length-1||s.top<s.bottom);o+=a?-1:1);return V5(s,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class th extends un{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof th&&e.side==this.side}split(){return new th(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?Xi.before(this.dom):Xi.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ot.empty}get isHidden(){return!0}}Ma.prototype.children=gc.prototype.children=th.prototype.children=H5;function eZ(t,e){let n=t.dom,{children:i}=t,r=0;for(let s=0;r<i.length;r++){let a=i[r],o=s+a.length;if(!(o==s&&a.getSide()<=0)){if(e>s&&e<o&&a.dom.parentNode==n)return a.domAtPos(e-s);if(e<=s)break;s=o}}for(let s=r;s>0;s--){let a=i[s-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let s=r;s<i.length;s++){let a=i[s];if(a.dom.parentNode==n)return a.domAtPos(0)}return new Xi(n,0)}function tZ(t,e,n){let i,{children:r}=t;n>0&&e instanceof Ol&&r.length&&(i=r[r.length-1])instanceof Ol&&i.mark.eq(e.mark)?tZ(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function nZ(t,e,n){let i=null,r=-1,s=null,a=-1;function o(c,f){for(let u=0,h=0;u<c.children.length&&h<=f;u++){let m=c.children[u],g=h+m.length;g>=f&&(m.children.length?o(m,f-h):(!s||s.isHidden&&n>0)&&(g>f||h==g&&m.getSide()>0)?(s=m,a=f-h):(h<f||h==g&&m.getSide()<0&&!m.isHidden)&&(i=m,r=f-h)),h=g}}o(t,e);let l=(n<0?i:s)||i||s;return l?l.coordsAt(Math.max(0,l==i?r:a),n):yVe(t)}function yVe(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=l1(e);return n[n.length-1]||null}function s$(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const X8=Object.create(null);function Z5(t,e,n){if(t==e)return!0;t||(t=X8),e||(e=X8);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(r.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function a$(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,r=="style"?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function wVe(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let i=t.attributes[n];e[i.name]=i.value}return e}class gi extends un{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,r,s,a){if(i){if(!(i instanceof gi))return!1;this.dom||i.transferDOM(this)}return r&&this.setDeco(i?i.attrs:null),YH(this,e,n,i?i.children.slice():[],s,a),!0}split(e){let n=new gi;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:r}=this.childPos(e);r&&(n.append(this.children[i].split(r),0),this.children[i].merge(r,this.children[i].length,null,!1,0,0),i++);for(let s=i;s<this.children.length;s++)n.append(this.children[s],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Z5(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){tZ(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=s$(n,this.attrs||{})),i&&(this.attrs=s$({class:i},this.attrs||{}))}domAtPos(e){return eZ(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(UH(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(a$(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&un.get(r)instanceof Ol;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=un.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!Be.ios||!this.children.some(s=>s instanceof Ma))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof Ma)||/[^ -~]/.test(i.text))return null;let r=l1(i.dom);if(r.length!=1)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=nZ(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight<s){let a=(s-r.textHeight)/2;return{top:i.top+a,bottom:i.bottom-a,left:i.left,right:i.left}}}return i}become(e){return!1}covers(){return!0}static find(e,n){for(let i=0,r=0;i<e.children.length;i++){let s=e.children[i],a=r+s.length;if(a>=n){if(s instanceof gi)return s;if(a>n)break}r=a+s.breakAfter}return null}}class dl extends un{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,s,a){return i&&(!(i instanceof dl)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&a<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?Xi.before(this.dom):Xi.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let i=new dl(this.widget,n,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return H5}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):ot.empty}domBoundsAround(){return null}become(e){return e instanceof dl&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){return this.widget.coordsAt(this.dom,e,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:i}=this.deco;return n==i?!1:e<0?n<0:i>0}}class _0{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var hl=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(hl||(hl={}));class ei extends Eo{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new C0(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Rc(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:a}=iZ(e,n);i=(s?n?-3e8:-1:5e8)-1,r=(a?n?2e8:1:-6e8)+1}return new Rc(e,i,r,n,e.widget||null,!0)}static line(e){return new $0(e)}static set(e,n=!1){return ft.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ei.none=ft.empty;class C0 extends ei{constructor(e){let{start:n,end:i}=iZ(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof C0&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&Z5(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}C0.prototype.point=!1;class $0 extends ei{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof $0&&this.spec.class==e.spec.class&&Z5(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}$0.prototype.mapMode=Wn.TrackBefore;$0.prototype.point=!0;class Rc extends ei{constructor(e,n,i,r,s,a){super(n,i,s,e),this.block=r,this.isReplace=a,this.mapMode=r?n<=0?Wn.TrackBefore:Wn.TrackAfter:Wn.TrackDel}get type(){return this.startSide!=this.endSide?hl.WidgetRange:this.startSide<=0?hl.WidgetBefore:hl.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Rc&&kVe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Rc.prototype.point=!0;function iZ(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function kVe(t,e){return t==e||!!(t&&e&&t.compare(e))}function o$(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}class $g{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof dl&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new gi),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(pb(new th(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof dl)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:a,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(pb(new Ma(this.text.slice(this.textOff,this.textOff+r)),n),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,s,a){if(this.disallowBlockEffectsFor[a]&&i instanceof Rc){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-e;if(i instanceof Rc)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new dl(i.widget||nh.block,o,i));else{let l=gc.create(i.widget||nh.inline,o,o?0:i.startSide),c=this.atCursorPos&&!l.isEditable&&s<=r.length&&(e<n||i.startSide>0),f=!l.isEditable&&(e<n||s>r.length||i.startSide<=0),u=this.getLine();this.pendingBuffer==2&&!c&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),c&&(u.append(pb(new th(1),r),s),s=r.length+Math.max(0,s-r.length)),u.append(pb(l,r),s),this.atCursorPos=f,this.pendingBuffer=f?e<n||s>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,i,r,s){let a=new $g(e,n,i,s);return a.openEnd=ft.spans(r,n,i,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function pb(t,e){for(let n of e)t=new Ol(n,[t],t.length);return t}class nh extends _0{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}nh.inline=new nh("span");nh.block=new nh("div");var Qi=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(Qi||(Qi={}));const Qf=Qi.LTR,G5=Qi.RTL;function rZ(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const OVe=rZ("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),xVe=rZ("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),l$=Object.create(null),Ga=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);l$[e]=n,l$[n]=-e}function sZ(t){return t<=247?OVe[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?xVe[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const SVe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class vc{get dir(){return this.level%2?G5:Qf}constructor(e,n,i){this.from=e,this.to=n,this.level=i}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,i,r){let s=-1;for(let a=0;a<e.length;a++){let o=e[a];if(o.from<=n&&o.to>=n){if(o.level==i)return a;(s<0||(r!=0?r<0?o.from<n:o.to>n:e[s].level>o.level))&&(s=a)}}if(s<0)throw new RangeError("Index out of range");return s}}function aZ(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let i=t[n],r=e[n];if(i.from!=r.from||i.to!=r.to||i.direction!=r.direction||!aZ(i.inner,r.inner))return!1}return!0}const fn=[];function _Ve(t,e,n,i,r){for(let s=0;s<=i.length;s++){let a=s?i[s-1].to:e,o=s<i.length?i[s].from:n,l=s?256:r;for(let c=a,f=l,u=l;c<o;c++){let h=sZ(t.charCodeAt(c));h==512?h=f:h==8&&u==4&&(h=16),fn[c]=h==4?2:h,h&7&&(u=h),f=h}for(let c=a,f=l,u=l;c<o;c++){let h=fn[c];if(h==128)c<o-1&&f==fn[c+1]&&f&24?h=fn[c]=f:fn[c]=256;else if(h==64){let m=c+1;for(;m<o&&fn[m]==64;)m++;let g=c&&f==8||m<n&&fn[m]==8?u==1?1:8:256;for(let v=c;v<m;v++)fn[v]=g;c=m-1}else h==8&&u==1&&(fn[c]=1);f=h,h&7&&(u=h)}}}function CVe(t,e,n,i,r){let s=r==1?2:1;for(let a=0,o=0,l=0;a<=i.length;a++){let c=a?i[a-1].to:e,f=a<i.length?i[a].from:n;for(let u=c,h,m,g;u<f;u++)if(m=l$[h=t.charCodeAt(u)])if(m<0){for(let v=o-3;v>=0;v-=3)if(Ga[v+1]==-m){let w=Ga[v+2],O=w&2?r:w&4?w&1?s:r:0;O&&(fn[u]=fn[Ga[v]]=O),o=v;break}}else{if(Ga.length==189)break;Ga[o++]=u,Ga[o++]=h,Ga[o++]=l}else if((g=fn[u])==2||g==1){let v=g==r;l=v?0:1;for(let w=o-3;w>=0;w-=3){let O=Ga[w+2];if(O&2)break;if(v)Ga[w+2]|=2;else{if(O&4)break;Ga[w+2]|=4}}}}}function $Ve(t,e,n,i){for(let r=0,s=i;r<=n.length;r++){let a=r?n[r-1].to:t,o=r<n.length?n[r].from:e;for(let l=a;l<o;){let c=fn[l];if(c==256){let f=l+1;for(;;)if(f==o){if(r==n.length)break;f=n[r++].to,o=r<n.length?n[r].from:e}else if(fn[f]==256)f++;else break;let u=s==1,h=(f<e?fn[f]:i)==1,m=u==h?u?1:2:i;for(let g=f,v=r,w=v?n[v-1].to:t;g>l;)g==w&&(g=n[--v].from,w=v?n[v-1].to:t),fn[--g]=m;l=f}else s=c,l++}}}function c$(t,e,n,i,r,s,a){let o=i%2?2:1;if(i%2==r%2)for(let l=e,c=0;l<n;){let f=!0,u=!1;if(c==s.length||l<s[c].from){let v=fn[l];v!=o&&(f=!1,u=v==16)}let h=!f&&o==1?[]:null,m=f?i:i+1,g=l;e:for(;;)if(c<s.length&&g==s[c].from){if(u)break e;let v=s[c];if(!f)for(let w=v.to,O=c+1;;){if(w==n)break e;if(O<s.length&&s[O].from==w)w=s[O++].to;else{if(fn[w]==o)break e;break}}if(c++,h)h.push(v);else{v.from>l&&a.push(new vc(l,v.from,m));let w=v.direction==Qf!=!(m%2);f$(t,w?i+1:i,r,v.inner,v.from,v.to,a),l=v.to}g=v.to}else{if(g==n||(f?fn[g]!=o:fn[g]==o))break;g++}h?c$(t,l,g,i+1,r,h,a):l<g&&a.push(new vc(l,g,m)),l=g}else for(let l=n,c=s.length;l>e;){let f=!0,u=!1;if(!c||l>s[c-1].to){let v=fn[l-1];v!=o&&(f=!1,u=v==16)}let h=!f&&o==1?[]:null,m=f?i:i+1,g=l;e:for(;;)if(c&&g==s[c-1].to){if(u)break e;let v=s[--c];if(!f)for(let w=v.from,O=c;;){if(w==e)break e;if(O&&s[O-1].to==w)w=s[--O].from;else{if(fn[w-1]==o)break e;break}}if(h)h.push(v);else{v.to<l&&a.push(new vc(v.to,l,m));let w=v.direction==Qf!=!(m%2);f$(t,w?i+1:i,r,v.inner,v.from,v.to,a),l=v.from}g=v.from}else{if(g==e||(f?fn[g-1]!=o:fn[g-1]==o))break;g--}h?c$(t,g,l,i+1,r,h,a):g<l&&a.push(new vc(g,l,m)),l=g}}function f$(t,e,n,i,r,s,a){let o=e%2?2:1;_Ve(t,r,s,i,o),CVe(t,r,s,i,o),$Ve(r,s,i,o),c$(t,r,s,e,n,i,a)}function PVe(t,e,n){if(!t)return[new vc(0,0,e==G5?1:0)];if(e==Qf&&!n.length&&!SVe.test(t))return oZ(t.length);if(n.length)for(;t.length>fn.length;)fn[fn.length]=256;let i=[],r=e==Qf?0:1;return f$(t,r,r,n,0,t.length,i),i}function oZ(t){return[new vc(0,t,0)]}let lZ="";function TVe(t,e,n,i,r){var s;let a=i.head-t.from,o=vc.find(e,a,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),l=e[o],c=l.side(r,n);if(a==c){let h=o+=r?1:-1;if(h<0||h>=e.length)return null;l=e[o=h],a=l.side(!r,n),c=l.side(r,n)}let f=Qn(t.text,a,l.forward(r,n));(f<l.from||f>l.to)&&(f=c),lZ=t.text.slice(Math.min(a,f),Math.max(a,f));let u=o==(r?e.length-1:0)?null:e[o+(r?1:-1)];return u&&f==c&&u.level+(r?0:1)<l.level?ee.cursor(u.side(!r,n)+t.from,u.forward(r,n)?1:-1,u.level):ee.cursor(f+t.from,l.forward(r,n)?-1:1,l.level)}function AVe(t,e,n){for(let i=e;i<n;i++){let r=sZ(t.charCodeAt(i));if(r==1)return Qf;if(r==2||r==4)return G5}return Qf}const cZ=me.define(),fZ=me.define(),uZ=me.define(),dZ=me.define(),u$=me.define(),hZ=me.define(),pZ=me.define(),mZ=me.define({combine:t=>t.some(e=>e)}),EVe=me.define({combine:t=>t.some(e=>e)}),gZ=me.define();class Td{constructor(e,n="nearest",i="nearest",r=5,s=5,a=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=a}map(e){return e.empty?this:new Td(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Td(ee.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const mb=it.define({map:(t,e)=>t.map(e)});function wo(t,e,n){let i=t.facet(dZ);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const LO=me.define({combine:t=>t.length?t[0]:!0});let RVe=0;const ag=me.define();class Dc{constructor(e,n,i,r,s){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.extension=s(this)}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:s,decorations:a}=n||{};return new Dc(RVe++,e,i,r,o=>{let l=[ag.of(o)];return a&&l.push(c1.of(c=>{let f=c.plugin(o);return f?a(f):ei.none})),s&&l.push(s(o)),l})}static fromClass(e,n){return Dc.define(i=>new e(i),n)}}class i_{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(wo(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){wo(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){wo(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const vZ=me.define(),X5=me.define(),c1=me.define(),bZ=me.define(),Y5=me.define(),yZ=me.define();function Y8(t,e){let n=t.state.facet(yZ);if(!n.length)return n;let i=n.map(s=>s instanceof Function?s(t):s),r=[];return ft.spans(i,e.from,e.to,{point(){},span(s,a,o,l){let c=s-e.from,f=a-e.from,u=r;for(let h=o.length-1;h>=0;h--,l--){let m=o[h].spec.bidiIsolate,g;if(m==null&&(m=AVe(e.text,c,f)),l>0&&u.length&&(g=u[u.length-1]).to==c&&g.direction==m)g.to=f,u=g.inner;else{let v={from:c,to:f,direction:m,inner:[]};u.push(v),u=v.inner}}}}),r}const wZ=me.define();function kZ(t){let e=0,n=0,i=0,r=0;for(let s of t.state.facet(wZ)){let a=s(t);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(i=Math.max(i,a.top)),a.bottom!=null&&(r=Math.max(r,a.bottom)))}return{left:e,right:n,top:i,bottom:r}}const og=me.define();class Xs{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new Xs(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA<i.fromA)break;i=i.join(r),e.splice(n-1,1)}}return e.splice(n,0,i),e}static extendWithRanges(e,n){if(n.length==0)return e;let i=[];for(let r=0,s=0,a=0,o=0;;r++){let l=r==e.length?null:e[r],c=a-o,f=l?l.fromB:1e9;for(;s<n.length&&n[s]<f;){let u=n[s],h=n[s+1],m=Math.max(o,u),g=Math.min(f,h);if(m<=g&&new Xs(m+c,g+c,m,g).addToSet(i),h>f)break;s+=2}if(!l)return i;new Xs(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),a=l.toA,o=l.toB}}}class Iw{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Kn.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,a,o,l)=>r.push(new Xs(s,a,o,l))),this.changedRanges=r}static create(e,n,i){return new Iw(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class K8 extends un{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new gi],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Xs(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:c,toA:f})=>f<this.minWidthFrom||c>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?r=this.domChanged.newSel.head:!BVe(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?MVe(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:c,to:f}=this.hasComposition;i=new Xs(c,f,e.changes.mapPos(c,-1),e.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(Be.ie||Be.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,o=this.updateDeco(),l=jVe(a,o,e.changes);return i=Xs.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=Be.chrome||Be.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||r.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof dl&&a.widget instanceof J8&&s.push(a.dom);r.updateGaps(s)}updateChildren(e,n,i){let r=i?i.range.addToSet(e.slice()):e,s=this.childCursor(n);for(let a=r.length-1;;a--){let o=a>=0?r[a]:null;if(!o)break;let{fromA:l,toA:c,fromB:f,toB:u}=o,h,m,g,v;if(i&&i.range.fromB<u&&i.range.toB>f){let T=$g.build(this.view.state.doc,f,i.range.fromB,this.decorations,this.dynamicDecorationMap),S=$g.build(this.view.state.doc,i.range.toB,u,this.decorations,this.dynamicDecorationMap);m=T.breakAtStart,g=T.openStart,v=S.openEnd;let R=this.compositionView(i);S.breakAtStart?R.breakAfter=1:S.content.length&&R.merge(R.length,R.length,S.content[0],!1,S.openStart,0)&&(R.breakAfter=S.content[0].breakAfter,S.content.shift()),T.content.length&&R.merge(0,0,T.content[T.content.length-1],!0,0,T.openEnd)&&T.content.pop(),h=T.content.concat(R).concat(S.content)}else({content:h,breakAtStart:m,openStart:g,openEnd:v}=$g.build(this.view.state.doc,f,u,this.decorations,this.dynamicDecorationMap));let{i:w,off:O}=s.findPos(c,1),{i:x,off:$}=s.findPos(l,-1);XH(this,x,$,w,O,h,m,g,v)}i&&this.fixCompositionDOM(i)}compositionView(e){let n=new Ma(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new Ol(r,[n],n.length);let i=new gi;return i.append(n,0),i}fixCompositionDOM(e){let n=(s,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let o=un.get(s);o&&o!=a&&(o.dom=null),a.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],n(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&by(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||s))return;let a=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),c=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(Be.gecko&&o.empty&&!this.hasComposition&&DVe(l)){let u=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(u,l.node.childNodes[l.offset]||null)),l=c=new Xi(u,0),a=!0}let f=this.view.observer.selectionRange;(a||!f.focusNode||(!Cg(l.node,l.offset,f.anchorNode,f.anchorOffset)||!Cg(c.node,c.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,o))&&(this.view.observer.ignore(()=>{Be.android&&Be.chrome&&this.dom.contains(f.focusNode)&&IVe(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let u=Lw(this.view.root);if(u)if(o.empty){if(Be.gecko){let h=NVe(l.node,l.offset);if(h&&h!=3){let m=(h==1?HH:ZH)(l.node,l.offset);m&&(l=new Xi(m.node,m.offset))}}u.collapse(l.node,l.offset),o.bidiLevel!=null&&u.caretBidiLevel!==void 0&&(u.caretBidiLevel=o.bidiLevel)}else if(u.extend){u.collapse(l.node,l.offset);try{u.extend(c.node,c.offset)}catch{}}else{let h=document.createRange();o.anchor>o.head&&([l,c]=[c,l]),h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(h)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,c)),this.impreciseAnchor=l.precise?null:new Xi(f.anchorNode,f.anchorOffset),this.impreciseHead=c.precise?null:new Xi(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Cg(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=Lw(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let a=gi.find(this,n.head);if(!a)return;let o=a.posAtStart;if(n.head==o||n.head==o+a.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let f=this.domAtPos(n.head+n.assoc);i.collapse(f.node,f.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=n.from&&i.collapse(r,s)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let r=e.offset;!i&&r<n.childNodes.length;r++){let s=un.get(n.childNodes[r]);s instanceof gi&&(i=s.domAtPos(0))}for(let r=e.offset-1;!i&&r>=0;r--){let s=un.get(n.childNodes[r]);s instanceof gi&&(i=s.domAtPos(s.length))}return i?new Xi(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=un.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let r=this.children[n];if(i<r.length||r instanceof gi)break;n++,i=0}return this.children[n].domAtPos(i)}coordsAt(e,n){let i=null,r=0;for(let s=this.length,a=this.children.length-1;a>=0;a--){let o=this.children[a],l=s-o.breakAfter,c=l-o.length;if(l<e)break;if(c<=e&&(c<e||o.covers(-1))&&(l>e||o.covers(1))&&(!i||o instanceof gi&&!(i instanceof gi&&n>=0)))i=o,r=c;else if(i&&c==e&&l==e&&o instanceof dl&&Math.abs(n)<2){if(o.deco.startSide<0)break;a&&(i=null)}s=c}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof gi))return null;for(;r.children.length;){let{i:o,off:l}=r.childPos(i,1);for(;;o++){if(o==r.children.length)return null;if((r=r.children[o]).length)break}i=l}if(!(r instanceof Ma))return null;let s=Qn(r.text,i);if(s==i)return null;let a=Ff(r.dom,i,s).getClientRects();for(let o=0;o<a.length;o++){let l=a[o];if(o==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:i,to:r}=e,s=this.view.contentDOM.clientWidth,a=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Qi.LTR;for(let c=0,f=0;f<this.children.length;f++){let u=this.children[f],h=c+u.length;if(h>r)break;if(c>=i){let m=u.dom.getBoundingClientRect();if(n.push(m.height),a){let g=u.dom.lastChild,v=g?l1(g):[];if(v.length){let w=v[v.length-1],O=l?w.right-m.left:m.right-w.left;O>o&&(o=O,this.minWidth=s,this.minWidthFrom=c,this.minWidthTo=h)}}}c=h+u.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Qi.RTL:Qi.LTR}measureTextSize(){for(let s of this.children)if(s instanceof gi){let a=s.measureTextSize();if(a)return a}let e=document.createElement("div"),n,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=l1(e.firstChild)[0];n=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new GH(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let s=r==n.viewports.length?null:n.viewports[r],a=s?s.from-1:this.length;if(a>i){let o=(n.lineBlockAt(a).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(ei.replace({widget:new J8(o),block:!0,inclusive:!0,isBlockGap:!0}).range(i,a))}if(!s)break;i=s.to+1}return ei.set(e)}updateDeco(){let e=0,n=this.view.state.facet(c1).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),i=!1,r=this.view.state.facet(bZ).map((s,a)=>{let o=typeof s=="function";return o&&(i=!0),o?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=i,n.push(ft.join(r))),this.decorations=[...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let c=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=c.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let c of this.view.state.facet(gZ))try{if(c(this.view,e.range,e))return!0}catch(f){wo(this.view.state,f,"scroll handler")}let{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),r;if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=kZ(this.view),a={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;uVe(this.view.scrollDOM,a,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,o),-o),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==Qi.LTR)}}function DVe(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}class J8 extends _0{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function OZ(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let i=HH(n.focusNode,n.focusOffset),r=ZH(n.focusNode,n.focusOffset),s=i||r;if(r&&i&&r.node!=i.node){let o=un.get(r.node);if(!o||o instanceof Ma&&o.text!=r.node.nodeValue)s=r;else if(t.docView.lastCompositionAfterCursor){let l=un.get(i.node);!l||l instanceof Ma&&l.text!=i.node.nodeValue||(s=r)}}if(t.docView.lastCompositionAfterCursor=s!=i,!s)return null;let a=e-s.offset;return{from:a,to:a+s.node.nodeValue.length,node:s.node}}function MVe(t,e,n){let i=OZ(t,n);if(!i)return null;let{node:r,from:s,to:a}=i,o=r.nodeValue;if(/[\n\r]/.test(o)||t.state.doc.sliceString(i.from,i.to)!=o)return null;let l=e.invertedDesc,c=new Xs(l.mapPos(s),l.mapPos(a),s,a),f=[];for(let u=r.parentNode;;u=u.parentNode){let h=un.get(u);if(h instanceof Ol)f.push({node:u,deco:h.mark});else{if(h instanceof gi||u.nodeName=="DIV"&&u.parentNode==t.contentDOM)return{range:c,text:r,marks:f,line:u};if(u!=t.contentDOM)f.push({node:u,deco:new C0({inclusive:!0,attributes:wVe(u),tagName:u.tagName.toLowerCase()})});else return null}}}function NVe(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let LVe=class{constructor(){this.changes=[]}compareRange(e,n){o$(e,n,this.changes)}comparePoint(e,n){o$(e,n,this.changes)}};function jVe(t,e,n){let i=new LVe;return ft.compare(t,e,n,i),i.changes}function IVe(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function BVe(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{i<e.to&&r>e.from&&(n=!0)}),n}function FVe(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(r.length==0)return ee.cursor(e);s==0?n=1:s==r.length&&(n=-1);let a=s,o=s;n<0?a=Qn(r.text,s,!1):o=Qn(r.text,s);let l=i(r.text.slice(a,o));for(;a>0;){let c=Qn(r.text,a,!1);if(i(r.text.slice(c,a))!=l)break;a=c}for(;o<r.length;){let c=Qn(r.text,o);if(i(r.text.slice(o,c))!=l)break;o=c}return ee.range(a+r.from,o+r.from)}function QVe(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function zVe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function r_(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function eN(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function tN(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function d$(t,e,n){let i,r,s,a,o=!1,l,c,f,u;for(let g=t.firstChild;g;g=g.nextSibling){let v=l1(g);for(let w=0;w<v.length;w++){let O=v[w];r&&r_(r,O)&&(O=eN(tN(O,r.bottom),r.top));let x=QVe(e,O),$=zVe(n,O);if(x==0&&$==0)return g.nodeType==3?nN(g,e,n):d$(g,e,n);if(!i||a>$||a==$&&s>x){i=g,r=O,s=x,a=$;let T=$?n<O.top?-1:1:x?e<O.left?-1:1:0;o=!T||(T>0?w<v.length-1:w>0)}x==0?n>O.bottom&&(!f||f.bottom<O.bottom)?(l=g,f=O):n<O.top&&(!u||u.top>O.top)&&(c=g,u=O):f&&r_(f,O)?f=tN(f,O.bottom):u&&r_(u,O)&&(u=eN(u,O.top))}}if(f&&f.bottom>=n?(i=l,r=f):u&&u.top<=n&&(i=c,r=u),!i)return{node:t,offset:0};let h=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return nN(i,h,n);if(o&&i.contentEditable!="false")return d$(i,h,n);let m=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:t,offset:m}}function nN(t,e,n){let i=t.nodeValue.length,r=-1,s=1e9,a=0;for(let o=0;o<i;o++){let l=Ff(t,o,o+1).getClientRects();for(let c=0;c<l.length;c++){let f=l[c];if(f.top==f.bottom)continue;a||(a=e-f.left);let u=(f.top>n?f.top-n:n-f.bottom)-1;if(f.left-1<=e&&f.right+1>=e&&u<s){let h=e>=(f.left+f.right)/2,m=h;if((Be.chrome||Be.gecko)&&Ff(t,o).getBoundingClientRect().left==f.right&&(m=!h),u<=0)return{node:t,offset:o+(m?1:0)};r=o+(m?1:0),s=u}}}return{node:t,offset:r>-1?r:a>0?t.nodeValue.length:0}}function xZ(t,e,n,i=-1){var r,s;let a=t.contentDOM.getBoundingClientRect(),o=a.top+t.viewState.paddingTop,l,{docHeight:c}=t.viewState,{x:f,y:u}=e,h=u-o;if(h<0)return 0;if(h>c)return t.state.doc.length;for(let T=t.viewState.heightOracle.textHeight/2,S=!1;l=t.elementAtHeight(h),l.type!=hl.Text;)for(;h=i>0?l.bottom+T:l.top-T,!(h>=0&&h<=c);){if(S)return n?null:0;S=!0,i=-i}u=o+h;let m=l.from;if(m<t.viewport.from)return t.viewport.from==0?0:n?null:iN(t,a,l,f,u);if(m>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:iN(t,a,l,f,u);let g=t.dom.ownerDocument,v=t.root.elementFromPoint?t.root:g,w=v.elementFromPoint(f,u);w&&!t.contentDOM.contains(w)&&(w=null),w||(f=Math.max(a.left+1,Math.min(a.right-1,f)),w=v.elementFromPoint(f,u),w&&!t.contentDOM.contains(w)&&(w=null));let O,x=-1;if(w&&((r=t.docView.nearest(w))===null||r===void 0?void 0:r.isEditable)!=!1){if(g.caretPositionFromPoint){let T=g.caretPositionFromPoint(f,u);T&&({offsetNode:O,offset:x}=T)}else if(g.caretRangeFromPoint){let T=g.caretRangeFromPoint(f,u);T&&({startContainer:O,startOffset:x}=T,(!t.contentDOM.contains(O)||Be.safari&&qVe(O,x,f)||Be.chrome&&WVe(O,x,f))&&(O=void 0))}}if(!O||!t.docView.dom.contains(O)){let T=gi.find(t.docView,m);if(!T)return h>l.top+l.height/2?l.to:l.from;({node:O,offset:x}=d$(T.dom,f,u))}let $=t.docView.nearest(O);if(!$)return null;if($.isWidget&&((s=$.dom)===null||s===void 0?void 0:s.nodeType)==1){let T=$.dom.getBoundingClientRect();return e.y<T.top||e.y<=T.bottom&&e.x<=(T.left+T.right)/2?$.posAtStart:$.posAtEnd}else return $.localPosFromDOM(O,x)+$.posAtStart}function iN(t,e,n,i,r){let s=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let o=t.viewState.heightOracle.textHeight,l=Math.floor((r-n.top-(t.defaultLineHeight-o)*.5)/o);s+=l*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+vw(a,s,t.state.tabSize)}function qVe(t,e,n){let i;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Ff(t,i-1,i).getBoundingClientRect().left>n}function WVe(t,e,n){if(e!=0)return!1;for(let r=t;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let i=t.nodeType==1?t.getBoundingClientRect():Ff(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function UVe(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==hl.Text))return i}return n}function VVe(t,e,n,i){let r=UVe(t,e.head),s=!i||r.type!=hl.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let a=t.dom.getBoundingClientRect(),o=t.textDirectionAt(r.from),l=t.posAtCoords({x:n==(o==Qi.LTR)?a.right-1:a.left+1,y:(s.top+s.bottom)/2});if(l!=null)return ee.cursor(l,n?-1:1)}return ee.cursor(n?r.to:r.from,n?-1:1)}function rN(t,e,n,i){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),a=t.textDirectionAt(r.from);for(let o=e,l=null;;){let c=TVe(r,s,a,o,n),f=lZ;if(!c){if(r.number==(n?t.state.doc.lines:1))return o;f=`
|
||
`,r=t.state.doc.line(r.number+(n?1:-1)),s=t.bidiSpans(r),c=t.visualLineSide(r,!n)}if(l){if(!l(f))return o}else{if(!i)return c;l=i(f)}o=c}}function HVe(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return s=>{let a=i(s);return r==Pn.Space&&(r=a),r==a}}function ZVe(t,e,n,i){let r=e.head,s=n?1:-1;if(r==(n?t.state.doc.length:0))return ee.cursor(r,e.assoc);let a=e.goalColumn,o,l=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(r,e.assoc||-1),f=t.documentTop;if(c)a==null&&(a=c.left-l.left),o=s<0?c.top:c.bottom;else{let m=t.viewState.lineBlockAt(r);a==null&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-m.from))),o=(s<0?m.top:m.bottom)+f}let u=l.left+a,h=i??t.viewState.heightOracle.textHeight>>1;for(let m=0;;m+=10){let g=o+(h+m)*s,v=xZ(t,{x:u,y:g},!1,s);if(g<l.top||g>l.bottom||(s<0?v<r:v>r)){let w=t.docView.coordsForChar(v),O=!w||g<w.top?-1:1;return ee.cursor(v,O,void 0,a)}}}function yy(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(s,a,o)=>{if(e>s&&e<a){let l=i||n||(e-s<a-e?-1:1);e=l<0?s:a,i=l}});if(!i)return e}}function s_(t,e,n){let i=yy(t.state.facet(Y5).map(r=>r(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:ee.cursor(i,i<n.from?1:-1)}class GVe{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Be.safari&&e.contentDOM.addEventListener("input",()=>null),Be.gecko&&uHe(e.contentDOM.ownerDocument)}handleEvent(e){!iHe(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=XVe(e),i=this.handlers,r=this.view.contentDOM;for(let s in n)if(s!="scroll"){let a=!n[s].handlers.length,o=i[s];o&&a!=!o.handlers.length&&(r.removeEventListener(s,this.handleEvent),o=null),o||r.addEventListener(s,this.handleEvent,{passive:a})}for(let s in i)s!="scroll"&&!n[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&_Z.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Be.android&&Be.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return Be.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=SZ.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||YVe.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Pd(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Be.safari&&!Be.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function sN(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){wo(n.state,r)}}}function XVe(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec;if(r&&r.domEventHandlers)for(let s in r.domEventHandlers){let a=r.domEventHandlers[s];a&&n(s).handlers.push(sN(i.value,a))}if(r&&r.domEventObservers)for(let s in r.domEventObservers){let a=r.domEventObservers[s];a&&n(s).observers.push(sN(i.value,a))}}for(let i in Na)n(i).handlers.push(Na[i]);for(let i in Js)n(i).observers.push(Js[i]);return e}const SZ=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],YVe="dthko",_Z=[16,17,18,20,91,92,224,225],gb=6;function vb(t){return Math.max(0,t)*.7+8}function KVe(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class JVe{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=dVe(e.contentDOM),this.atoms=e.state.facet(Y5).map(a=>a(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(kt.allowMultipleSelections)&&eHe(e,n),this.dragging=nHe(e,n)&&TZ(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&KVe(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,s=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=kZ(this.view);e.clientX-a.left<=s.left+gb?i=-vb(s.left-e.clientX):e.clientX+a.right>=s.right-gb&&(i=vb(e.clientX-s.right)),e.clientY-a.top<=s.top+gb?r=-vb(s.top-e.clientY):e.clientY+a.bottom>=s.bottom-gb&&(r=vb(e.clientY-s.bottom)),this.setScrollSpeed(i,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],s=null;if(r.empty){let a=yy(this.atoms,r.from,0);a!=r.from&&(s=ee.cursor(a,-1))}else{let a=yy(this.atoms,r.from,-1),o=yy(this.atoms,r.to,1);(a!=r.from||o!=r.to)&&(s=ee.range(r.from==r.anchor?a:o,r.from==r.head?a:o))}s&&(n||(n=e.ranges.slice()),n[i]=s)}return n?ee.create(n,e.mainIndex):e}select(e){let{view:n}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function eHe(t,e){let n=t.state.facet(cZ);return n.length?n[0](e):Be.mac?e.metaKey:e.ctrlKey}function tHe(t,e){let n=t.state.facet(fZ);return n.length?n[0](e):Be.mac?!e.altKey:!e.ctrlKey}function nHe(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=Lw(t.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let a=r[s];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function iHe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=un.get(n))&&i.ignoreEvent(e))return!1;return!0}const Na=Object.create(null),Js=Object.create(null),CZ=Be.ie&&Be.ie_version<15||Be.ios&&Be.webkit_version<604;function rHe(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),$Z(t,n.value)},50)}function $Z(t,e){let{state:n}=t,i,r=1,s=n.toText(e),a=s.lines==n.selection.ranges.length;if(h$!=null&&n.selection.ranges.every(l=>l.empty)&&h$==s.toString()){let l=-1;i=n.changeByRange(c=>{let f=n.doc.lineAt(c.from);if(f.from==l)return{range:c};l=f.from;let u=n.toText((a?s.line(r++).text:e)+n.lineBreak);return{changes:{from:f.from,insert:u},range:ee.cursor(c.from+u.length)}})}else a?i=n.changeByRange(l=>{let c=s.line(r++);return{changes:{from:l.from,to:l.to,insert:c.text},range:ee.cursor(l.from+c.length)}}):i=n.replaceSelection(s);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Js.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Na.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Js.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Js.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Na.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(uZ))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=oHe(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new JVe(t,e,n,i)),i&&t.observer.ignore(()=>{WH(t.contentDOM);let s=t.root.activeElement;s&&!s.contains(t.contentDOM)&&s.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function aN(t,e,n,i){if(i==1)return ee.cursor(e,n);if(i==2)return FVe(t.state,e,n);{let r=gi.find(t.docView,e),s=t.state.doc.lineAt(r?r.posAtEnd:e),a=r?r.posAtStart:s.from,o=r?r.posAtEnd:s.to;return o<t.state.doc.length&&o==s.to&&o++,ee.range(a,o)}}let PZ=(t,e)=>t>=e.top&&t<=e.bottom,oN=(t,e,n)=>PZ(e,n)&&t>=n.left&&t<=n.right;function sHe(t,e,n,i){let r=gi.find(t.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let a=r.coordsAt(s,-1);if(a&&oN(n,i,a))return-1;let o=r.coordsAt(s,1);return o&&oN(n,i,o)?1:a&&PZ(i,a)?-1:1}function lN(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:sHe(t,n,e.clientX,e.clientY)}}const aHe=Be.ie&&Be.ie_version<=11;let cN=null,fN=0,uN=0;function TZ(t){if(!aHe)return t.detail;let e=cN,n=uN;return cN=t,uN=Date.now(),fN=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(fN+1)%3:1}function oHe(t,e){let n=lN(t,e),i=TZ(e),r=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),r=r.map(s.changes))},get(s,a,o){let l=lN(t,s),c,f=aN(t,l.pos,l.bias,i);if(n.pos!=l.pos&&!a){let u=aN(t,n.pos,n.bias,i),h=Math.min(u.from,f.from),m=Math.max(u.to,f.to);f=h<f.from?ee.range(h,m):ee.range(m,h)}return a?r.replaceRange(r.main.extend(f.from,f.to)):o&&i==1&&r.ranges.length>1&&(c=lHe(r,l.pos))?c:o?r.addRange(f):ee.create([f])}}}function lHe(t,e){for(let n=0;n<t.ranges.length;n++){let{from:i,to:r}=t.ranges[n];if(i<=e&&r>=e)return ee.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}Na.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,a=s+r.length;(s>=n.to||a<=n.from)&&(n=ee.range(s,a))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1};Na.dragend=t=>(t.inputState.draggedContent=null,!1);function dN(t,e,n,i){if(!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,a=i&&s&&tHe(t,e)?{from:s.from,to:s.to}:null,o={from:r,insert:n},l=t.state.changes(a?[a,o]:o);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Na.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,s=()=>{++r==n.length&&dN(t,e,i.filter(a=>a!=null).join(t.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let o=new FileReader;o.onerror=s,o.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(i[a]=o.result),s()},o.readAsText(n[a])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return dN(t,e,i,!0),!0}return!1};Na.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=CZ?null:e.clipboardData;return n?($Z(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(rHe(t),!1)};function cHe(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function fHe(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let a=t.doc.lineAt(s);a.number>r&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),r=a.number}i=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:i}}let h$=null;Na.copy=Na.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=fHe(t.state);if(!n&&!r)return!1;h$=r?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=CZ?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(cHe(t,n),!1)};const AZ=ta.define();function EZ(t,e){let n=[];for(let i of t.facet(pZ)){let r=i(t,e);r&&n.push(r)}return n?t.update({effects:n,annotations:AZ.of(!0)}):null}function RZ(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=EZ(t.state,e);n?t.dispatch(n):t.update([])}},10)}Js.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),RZ(t)};Js.blur=t=>{t.observer.clearSelectionRange(),RZ(t)};Js.compositionstart=Js.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};Js.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Be.chrome&&Be.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};Js.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Na.beforeinput=(t,e)=>{var n;let i;if(Be.chrome&&Be.android&&(i=SZ.find(r=>r.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let r=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Be.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Be.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Js.compositionend(t,e),20),!1};const hN=new Set;function uHe(t){hN.has(t)||(hN.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const pN=["pre-wrap","normal","pre-line","break-spaces"];class dHe{constructor(e){this.lineWrapping=e,this.doc=ot.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return pN.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i<e.length;i++){let r=e[i];r<0?i++:this.heightSamples[Math.floor(r*10)]||(n=!0,this.heightSamples[Math.floor(r*10)]=!0)}return n}refresh(e,n,i,r,s,a){let o=pN.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=s,l){this.heightSamples={};for(let c=0;c<a.length;c++){let f=a[c];f<0?c++:this.heightSamples[Math.floor(f*10)]=!0}}return l}}class hHe{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class go{constructor(e,n,i,r,s){this.from=e,this.length=n,this.top=i,this.height=r,this._content=s}get type(){return typeof this._content=="number"?hl.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Rc?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new go(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var $n=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})($n||($n={}));const wy=.001;class pr{constructor(e,n,i=2){this.length=e,this.height=n,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>wy&&(e.heightChanged=!0),this.height=n)}replace(e,n,i){return pr.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let s=this,a=i.doc;for(let o=r.length-1;o>=0;o--){let{fromA:l,toA:c,fromB:f,toB:u}=r[o],h=s.lineAt(l,$n.ByPosNoHeight,i.setDoc(n),0,0),m=h.to>=c?h:s.lineAt(c,$n.ByPosNoHeight,i,0,0);for(u+=m.to-c,c=m.to;o>0&&h.from<=r[o-1].toA;)l=r[o-1].fromA,f=r[o-1].fromB,o--,l<h.from&&(h=s.lineAt(l,$n.ByPosNoHeight,i,0,0));f+=h.from-l,l=h.from;let g=K5.build(i.setDoc(a),e,f,u);s=s.replace(l,c,g)}return s.updateHeight(i,0)}static empty(){return new rs(0,0)}static of(e){if(e.length==1)return e[0];let n=0,i=e.length,r=0,s=0;for(;;)if(n==i)if(r>s*2){let o=e[n-1];o.break?e.splice(--n,1,o.left,null,o.right):e.splice(--n,1,o.left,o.right),i+=1+o.break,r-=o.size}else if(s>r*2){let o=e[i];o.break?e.splice(i,1,o.left,null,o.right):e.splice(i,1,o.left,o.right),i+=2+o.break,s-=o.size}else break;else if(r<s){let o=e[n++];o&&(r+=o.size)}else{let o=e[--i];o&&(s+=o.size)}let a=0;return e[n-1]==null?(a=1,n--):e[n]==null&&(a=1,i++),new pHe(pr.of(e.slice(0,n)),a,pr.of(e.slice(i)))}}pr.prototype.size=1;class DZ extends pr{constructor(e,n,i){super(e,n),this.deco=i}blockAt(e,n,i,r){return new go(r,this.length,i,this.height,this.deco||0)}lineAt(e,n,i,r,s){return this.blockAt(0,i,r,s)}forEachLine(e,n,i,r,s,a){e<=s+this.length&&n>=s&&a(this.blockAt(0,i,r,s))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class rs extends DZ{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new go(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return i.length==1&&(r instanceof rs||r instanceof Ni&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof Ni?r=new rs(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):pr.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Ni extends pr{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,s=r-i+1,a,o=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);a=l/s,this.length>s+1&&(o=(this.height-l)/(this.length-s-1))}else a=this.height/s;return{firstLine:i,lastLine:r,perLine:a,perChar:o}}blockAt(e,n,i,r){let{firstLine:s,lastLine:a,perLine:o,perChar:l}=this.heightMetrics(n,r);if(n.lineWrapping){let c=r+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),f=n.doc.lineAt(c),u=o+f.length*l,h=Math.max(i,e-u/2);return new go(f.from,f.length,h,u,0)}else{let c=Math.max(0,Math.min(a-s,Math.floor((e-i)/o))),{from:f,length:u}=n.doc.line(s+c);return new go(f,u,i+o*c,o,0)}}lineAt(e,n,i,r,s){if(n==$n.ByHeight)return this.blockAt(e,i,r,s);if(n==$n.ByPosNoHeight){let{from:m,to:g}=i.doc.lineAt(e);return new go(m,g-m,0,0,0)}let{firstLine:a,perLine:o,perChar:l}=this.heightMetrics(i,s),c=i.doc.lineAt(e),f=o+c.length*l,u=c.number-a,h=r+o*u+l*(c.from-s-u);return new go(c.from,c.length,Math.max(r,Math.min(h,r+this.height-f)),f,0)}forEachLine(e,n,i,r,s,a){e=Math.max(e,s),n=Math.min(n,s+this.length);let{firstLine:o,perLine:l,perChar:c}=this.heightMetrics(i,s);for(let f=e,u=r;f<=n;){let h=i.doc.lineAt(f);if(f==e){let g=h.number-o;u+=l*g+c*(e-s-g)}let m=l+c*h.length;a(new go(h.from,h.length,u,m,0)),u+=m,f=h.to+1}}replace(e,n,i){let r=this.length-n;if(r>0){let s=i[i.length-1];s instanceof Ni?i[i.length-1]=new Ni(s.length+r):i.push(null,new Ni(r-1))}if(e>0){let s=i[0];s instanceof Ni?i[0]=new Ni(e+s.length):i.unshift(new Ni(e-1),null)}return pr.of(i)}decomposeLeft(e,n){n.push(new Ni(e-1),null)}decomposeRight(e,n){n.push(null,new Ni(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let s=n+this.length;if(r&&r.from<=n+this.length&&r.more){let a=[],o=Math.max(n,r.from),l=-1;for(r.from>n&&a.push(new Ni(r.from-n-1).updateHeight(e,n));o<=s&&r.more;){let f=e.doc.lineAt(o).length;a.length&&a.push(null);let u=r.heights[r.index++];l==-1?l=u:Math.abs(u-l)>=wy&&(l=-2);let h=new rs(f,u);h.outdated=!1,a.push(h),o+=f+1}o<=s&&a.push(null,new Ni(s-o).updateHeight(e,o));let c=pr.of(a);return(l<0||Math.abs(c.height-this.height)>=wy||Math.abs(l-this.heightMetrics(e,n).perLine)>=wy)&&(e.heightChanged=!0),c}else(i||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class pHe extends pr{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,r){let s=i+this.left.height;return e<s?this.left.blockAt(e,n,i,r):this.right.blockAt(e,n,s,r+this.left.length+this.break)}lineAt(e,n,i,r,s){let a=r+this.left.height,o=s+this.left.length+this.break,l=n==$n.ByHeight?e<a:e<o,c=l?this.left.lineAt(e,n,i,r,s):this.right.lineAt(e,n,i,a,o);if(this.break||(l?c.to<o:c.from>o))return c;let f=n==$n.ByPosNoHeight?$n.ByPosNoHeight:$n.ByPos;return l?c.join(this.right.lineAt(o,f,i,a,o)):this.left.lineAt(o,f,i,r,s).join(c)}forEachLine(e,n,i,r,s,a){let o=r+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,i,r,s,a),n>=l&&this.right.forEachLine(e,n,i,o,l,a);else{let c=this.lineAt(l,$n.ByPos,i,r,s);e<c.from&&this.left.forEachLine(e,c.from-1,i,r,s,a),c.to>=e&&c.from<=n&&a(c),n>c.to&&this.right.forEachLine(c.to+1,n,i,o,l,a)}}replace(e,n,i){let r=this.left.length+this.break;if(n<r)return this.balanced(this.left.replace(e,n,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let a=s.length;for(let o of i)s.push(o);if(e>0&&mN(s,a-1),n<this.length){let o=s.length;this.decomposeRight(n,s),mN(s,o)}return pr.of(s)}decomposeLeft(e,n){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(i++,e>=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e<i&&this.left.decomposeRight(e,n),this.break&&e<r&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?pr.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:s,right:a}=this,o=n+s.length+this.break,l=null;return r&&r.from<=n+s.length&&r.more?l=s=s.updateHeight(e,n,i,r):s.updateHeight(e,n,i),r&&r.from<=o+a.length&&r.more?l=a=a.updateHeight(e,o,i,r):a.updateHeight(e,o,i),l?this.balanced(s,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mN(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof Ni&&(i=t[e+1])instanceof Ni&&t.splice(e-1,3,new Ni(n.length+1+i.length))}const mHe=5;class K5{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof rs?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new rs(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e<n||i.heightRelevant){let r=i.widget?i.widget.estimatedHeight:0,s=i.widget?i.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let a=n-e;i.block?this.addBlock(new DZ(a,r,i)):(a||s||r>=mHe)&&this.addLineDeco(r,s,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new rs(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new Ni(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof rs)return e;let n=new rs(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof rs)&&!this.isCovered?this.nodes.push(new rs(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let r of this.nodes)r instanceof rs&&r.updateHeight(this.oracle,i),i+=r?r.length:1;return this.nodes}static build(e,n,i,r){let s=new K5(i,e);return ft.spans(n,i,r,s,0),s.finish(i)}}function gHe(t,e,n){let i=new vHe;return ft.compare(t,e,n,i,0),i.changes}class vHe{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,i,r){(e<n||i&&i.heightRelevant||r&&r.heightRelevant)&&o$(e,n,this.changes,5)}}function bHe(t,e){let n=t.getBoundingClientRect(),i=t.ownerDocument,r=i.defaultView||window,s=Math.max(0,n.left),a=Math.min(r.innerWidth,n.right),o=Math.max(0,n.top),l=Math.min(r.innerHeight,n.bottom);for(let c=t.parentNode;c&&c!=i.body;)if(c.nodeType==1){let f=c,u=window.getComputedStyle(f);if((f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth)&&u.overflow!="visible"){let h=f.getBoundingClientRect();s=Math.max(s,h.left),a=Math.min(a,h.right),o=Math.max(o,h.top),l=c==t.parentNode?h.bottom:Math.min(l,h.bottom)}c=u.position=="absolute"||u.position=="fixed"?f.offsetParent:f.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:s-n.left,right:Math.max(s,a)-n.left,top:o-(n.top+e),bottom:Math.max(o,l)-(n.top+e)}}function yHe(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class a_{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=n[i];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,n){return ei.replace({widget:new wHe(this.size*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class wHe extends _0{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class gN{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=vN,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Qi.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(X5).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new dHe(n),this.stateDeco=e.facet(c1).filter(i=>typeof i!="function"),this.heightMap=pr.empty().applyChanges(this.stateDeco,ot.empty,this.heightOracle.setDoc(e.doc),[new Xs(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ei.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:s,to:a})=>r>=s&&r<=a)){let{from:s,to:a}=this.lineBlockAt(r);e.push(new bb(s,a))}}return this.viewports=e.sort((i,r)=>i.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?vN:new J5(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(lg(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(c1).filter(f=>typeof f!="function");let r=e.changedRanges,s=Xs.extendWithRanges(r,gHe(i,this.stateDeco,e?e.changes:Kn.empty(this.state.doc.length))),a=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=a&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(c||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(EVe)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Qi.RTL:Qi.LTR;let a=this.heightOracle.mustRefreshForWrapping(s),o=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let c=0,f=0;if(o.width&&o.height){let{scaleX:T,scaleY:S}=qH(n,o);(T>.005&&Math.abs(this.scaleX-T)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=T,this.scaleY=S,c|=8,a=l=!0)}let u=(parseInt(i.paddingTop)||0)*this.scaleY,h=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=u||this.paddingBottom!=h)&&(this.paddingTop=u,this.paddingBottom=h,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let m=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=m&&(this.scrollAnchorHeight=-1,this.scrollTop=m),this.scrolledToBottom=VH(e.scrollDOM);let g=(this.printing?yHe:bHe)(n,this.paddingTop),v=g.top-this.pixelViewport.top,w=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let O=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(O!=this.inView&&(this.inView=O,O&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),l){let T=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(T)&&(a=!0),a||r.lineWrapping&&Math.abs(x-this.contentDOMWidth)>r.charWidth){let{lineHeight:S,charWidth:R,textHeight:_}=e.docView.measureTextSize();a=S>0&&r.refresh(s,S,R,_,x/R,T),a&&(e.docView.minWidth=0,c|=8)}v>0&&w>0?f=Math.max(v,w):v<0&&w<0&&(f=Math.min(v,w)),r.heightChanged=!1;for(let S of this.viewports){let R=S.from==this.viewport.from?T:e.docView.measureVisibleLineHeights(S);this.heightMap=(a?pr.empty().applyChanges(this.stateDeco,ot.empty,this.heightOracle,[new Xs(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,a,new hHe(S.from,R))}r.heightChanged&&(c|=2)}let $=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return $&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),c|=this.updateForViewport()),(c&2||$)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:a,visibleBottom:o}=this,l=new bb(r.lineAt(a-i*1e3,$n.ByHeight,s,0,0).from,r.lineAt(o+(1-i)*1e3,$n.ByHeight,s,0,0).to);if(n){let{head:c}=n.range;if(c<l.from||c>l.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),u=r.lineAt(c,$n.ByPos,s,0,0),h;n.y=="center"?h=(u.top+u.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&c<l.from?h=u.top:h=u.bottom-f,l=new bb(r.lineAt(h-1e3/2,$n.ByHeight,s,0,0).from,r.lineAt(h+f+1e3/2,$n.ByHeight,s,0,0).to)}}return l}mapViewport(e,n){let i=n.mapPos(e.from,-1),r=n.mapPos(e.to,1);return new bb(this.heightMap.lineAt(i,$n.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,$n.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},i=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,$n.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,$n.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:o}=this;return(e==0||r<=a-Math.max(10,Math.min(-i,250)))&&(n==this.state.doc.length||s>=o+Math.max(10,Math.min(i,250)))&&r>a-2*1e3&&s<o+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let i=[];for(let r of e)n.touchesRange(r.from,r.to)||i.push(new a_(n.mapPos(r.from),n.mapPos(r.to),r.size));return i}ensureLineGaps(e,n){let i=this.heightOracle.lineWrapping,r=i?1e4:2e3,s=r>>1,a=r<<1;if(this.defaultTextDirection!=Qi.LTR&&!i)return[];let o=[],l=(c,f,u,h)=>{if(f-c<s)return;let m=this.state.selection.main,g=[m.from];m.empty||g.push(m.to);for(let w of g)if(w>c&&w<f){l(c,w-10,u,h),l(w+10,f,u,h);return}let v=OHe(e,w=>w.from>=u.from&&w.to<=u.to&&Math.abs(w.from-c)<s&&Math.abs(w.to-f)<s&&!g.some(O=>w.from<O&&w.to>O));if(!v){if(f<u.to&&n&&i&&n.visibleRanges.some(w=>w.from<=f&&w.to>=f)){let w=n.moveToLineBoundary(ee.cursor(f),!1,!0).head;w>c&&(f=w)}v=new a_(c,f,this.gapSize(u,c,f,h))}o.push(v)};for(let c of this.viewportLines){if(c.length<a)continue;let f=kHe(c.from,c.to,this.stateDeco);if(f.total<a)continue;let u=this.scrollTarget?this.scrollTarget.range.head:null,h,m;if(i){let g=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,v,w;if(u!=null){let O=wb(f,u),x=((this.visibleBottom-this.visibleTop)/2+g)/c.height;v=O-x,w=O+x}else v=(this.visibleTop-c.top-g)/c.height,w=(this.visibleBottom-c.top+g)/c.height;h=yb(f,v),m=yb(f,w)}else{let g=f.total*this.heightOracle.charWidth,v=r*this.heightOracle.charWidth,w,O;if(u!=null){let x=wb(f,u),$=((this.pixelViewport.right-this.pixelViewport.left)/2+v)/g;w=x-$,O=x+$}else w=(this.pixelViewport.left-v)/g,O=(this.pixelViewport.right+v)/g;h=yb(f,w),m=yb(f,O)}h>c.from&&l(c.from,h,c,f),m<c.to&&l(m,c.to,c,f)}return o}gapSize(e,n,i,r){let s=wb(r,i)-wb(r,n);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){a_.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ei.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];ft.spans(e,this.viewport.from,this.viewport.to,{span(r,s){n.push({from:r,to:s})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((r,s)=>r.from!=n[s].from||r.to!=n[s].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||lg(this.heightMap.lineAt(e,$n.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||lg(this.heightMap.lineAt(this.scaler.fromDOM(e),$n.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return lg(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class bb{constructor(e,n){this.from=e,this.to=n}}function kHe(t,e,n){let i=[],r=t,s=0;return ft.spans(n,t,e,{span(){},point(a,o){a>r&&(i.push({from:r,to:a}),s+=a-r),r=o}},20),r<e&&(i.push({from:r,to:e}),s+=e-r),{total:s,ranges:i}}function yb({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:s,to:a}=e[r],o=a-s;if(i<=o)return s+i;i-=o}}function wb(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}function OHe(t,e){for(let n of t)if(e(n))return n}const vN={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class J5{constructor(e,n,i){let r=0,s=0,a=0;this.viewports=i.map(({from:o,to:l})=>{let c=n.lineAt(o,$n.ByPos,e,0,0).top,f=n.lineAt(l,$n.ByPos,e,0,0).bottom;return r+=f-c,{from:o,to:l,top:c,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let o of this.viewports)o.domTop=a+(o.top-s)*this.scale,a=o.domBottom=o.domTop+(o.bottom-o.top),s=o.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.top)return r+(e-i)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);i=s.bottom,r=s.domBottom}}fromDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.domTop)return i+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);i=s.bottom,r=s.domBottom}}eq(e){return e instanceof J5?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,i)=>n.from==e.viewports[i].from&&n.to==e.viewports[i].to):!1}}function lg(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new go(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(r=>lg(r,e)):t._content)}const kb=me.define({combine:t=>t.join(" ")}),p$=me.define({combine:t=>t.indexOf(!0)>-1}),m$=jr.newName(),MZ=jr.newName(),NZ=jr.newName(),LZ={"&light":"."+MZ,"&dark":"."+NZ};function g$(t,e,n){return new jr(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i}})}const xHe=g$("."+m$,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},LZ),cg="";class SHe{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(kt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=cg}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let a=r.nextSibling;if(a==n)break;let o=un.get(r),l=un.get(a);(o&&l?o.breakAfter:(o?o.breakAfter:jw(r))||jw(a)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&this.lineBreak(),r=a}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,a=1,o;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),a=this.lineSeparator.length):(o=r.exec(n))&&(s=o.index,a=o[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=a-1);i=s+a}}readNode(e){if(e.cmIgnore)return;let n=un.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(_He(e,i.node,i.offset)?n:0))}}function _He(t,e,n){for(;;){if(!e||n<kl(e))return!1;if(e==t)return!0;n=Bf(e)+1,e=e.parentNode}}class bN{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class CHe{constructor(e,n,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:s,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let o=s||a?[]:THe(e),l=new SHe(o,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=AHe(o,this.bounds.from)}else{let o=e.observer.selectionRange,l=s&&s.node==o.focusNode&&s.offset==o.focusOffset||!t$(e.contentDOM,o.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(o.focusNode,o.focusOffset),c=a&&a.node==o.anchorNode&&a.offset==o.anchorOffset||!t$(e.contentDOM,o.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(o.anchorNode,o.anchorOffset),f=e.viewport;if((Be.ios||Be.chrome)&&e.state.selection.main.empty&&l!=c&&(f.from>0||f.to<e.state.doc.length)){let u=Math.min(l,c),h=Math.max(l,c),m=f.from-u,g=f.to-h;(m==0||m==1||u==0)&&(g==0||g==-1||h==e.state.doc.length)&&(l=0,c=e.state.doc.length)}this.newSel=ee.single(c,l)}}}function jZ(t,e){let n,{newSel:i}=e,r=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:o}=e.bounds,l=r.from,c=null;(s===8||Be.android&&e.text.length<o-a)&&(l=r.to,c="end");let f=PHe(t.state.doc.sliceString(a,o,cg),e.text,l-a,c);f&&(Be.chrome&&s==13&&f.toB==f.from+2&&e.text.slice(f.from,f.toB)==cg+cg&&f.toB--,n={from:a+f.from,to:a+f.toA,insert:ot.of(e.text.slice(f.from,f.toB).split(cg))})}else i&&(!t.hasFocus&&t.state.facet(LO)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:(Be.mac||Be.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=ee.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:ot.of([" "])}):Be.chrome&&n&&n.from==n.to&&n.from==r.head&&n.insert.toString()==`
|
||
`&&t.lineWrapping&&(i&&(i=ee.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:ot.of([" "])}),n){if(Be.ios&&t.inputState.flushIOSKey(n)||Be.android&&(n.to==r.to&&(n.from==r.from||n.from==r.from-1&&t.state.sliceDoc(n.from,r.from)==" ")&&n.insert.length==1&&n.insert.lines==2&&Pd(t.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&n.insert.length==0||s==8&&n.insert.length<n.to-n.from&&n.to>r.head)&&Pd(t.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&n.insert.length==0&&Pd(t.contentDOM,"Delete",46)))return!0;let a=n.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,l=()=>o||(o=$He(t,n,i));return t.state.facet(hZ).some(c=>c(t,n.from,n.to,a,l))||t.dispatch(l()),!0}else if(i&&!i.main.eq(r)){let a=!1,o="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(a=!0),o=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:a,userEvent:o}),!0}else return!1}function $He(t,e,n){let i,r=t.state,s=r.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let o=s.from<e.from?r.sliceDoc(s.from,e.from):"",l=s.to>e.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(t.state.toText(o+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let o=r.changes(e),l=n&&n.main.to<=o.newLength?n.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let c=t.state.sliceDoc(e.from,e.to),f,u=n&&OZ(t,n.main.head);if(u){let g=e.insert.length-(e.to-e.from);f={from:u.from,to:u.to-g}}else f=t.state.doc.lineAt(s.head);let h=s.to-e.to,m=s.to-s.from;i=r.changeByRange(g=>{if(g.from==s.from&&g.to==s.to)return{changes:o,range:l||g.map(o)};let v=g.to-h,w=v-c.length;if(g.to-g.from!=m||t.state.sliceDoc(w,v)!=c||g.to>=f.from&&g.from<=f.to)return{range:g};let O=r.changes({from:w,to:v,insert:e.insert}),x=g.to-s.to;return{changes:O,range:l?ee.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):g.map(O)}})}else i={changes:o,selection:l&&r.selection.replaceRange(l)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:a,scrollIntoView:!0})}function PHe(t,e,n,i){let r=Math.min(t.length,e.length),s=0;for(;s<r&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&t.length==e.length)return null;let a=t.length,o=e.length;for(;a>0&&o>0&&t.charCodeAt(a-1)==e.charCodeAt(o-1);)a--,o--;if(i=="end"){let l=Math.max(0,s-Math.min(a,o));n-=a+l-s}if(a<s&&t.length<e.length){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s}else if(o<s){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s}return{from:s,toA:a,toB:o}}function THe(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new bN(n,i)),(r!=n||s!=i)&&e.push(new bN(r,s))),e}function AHe(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?ee.single(n+e,i+e):null}const EHe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},o_=Be.ie&&Be.ie_version<=11;class RHe{constructor(e){this.view=e,this.active=!1,this.selectionRange=new hVe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(Be.ie&&Be.ie_version<=11||Be.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),o_&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(LO)?i.root.activeElement!=this.dom:!by(i.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Be.ie&&Be.ie_version<=11||Be.android&&Be.chrome)&&!i.state.selection.main.empty&&r.focusNode&&Cg(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=Lw(e.root);if(!n)return!1;let i=Be.safari&&e.root.nodeType==11&&cVe(this.dom.ownerDocument)==this.dom&&DHe(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let r=by(this.dom,i);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&mVe(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let i=this.dom;i;)if(i.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=n)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,EHe),o_&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),o_&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var i;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Pd(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let s of e){let a=this.readMutation(s);a&&(a.typeOver&&(r=!0),n==-1?{from:n,to:i}=a:(n=Math.min(a.from,n),i=Math.max(a.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&by(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new CHe(this.view,e,n,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=jZ(this.view,n);return this.view.state==i&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=yN(n,e.previousSibling||e.target.previousSibling,-1),r=yN(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function yN(t,e,n){for(;e;){let i=un.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function wN(t,e){let n=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return Cg(a.node,a.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}function DHe(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return wN(t,r)}let n=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?wN(t,n):null}class Nt{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(r=>n(r,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||pVe(e.parent)||document,this.viewState=new gN(e.state||kt.create(e)),e.scrollTo&&e.scrollTo.is(mb)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(ag).map(i=>new i_(i));for(let i of this.plugins)i.update(this);this.observer=new RHe(this),this.inputState=new GVe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new K8(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof Jn?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,r,s=this.state;for(let h of e){if(h.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=h.state}if(this.destroyed){this.viewState.state=s;return}let a=this.hasFocus,o=0,l=null;e.some(h=>h.annotation(AZ))?(this.inputState.notifiedFocused=a,o=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=EZ(s,a),l||(o=1));let c=this.observer.delayedAndroidKey,f=null;if(c?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(f=null)):this.observer.clear(),s.facet(kt.phrases)!=this.state.facet(kt.phrases))return this.setState(s);r=Iw.create(this,s,e),r.flags|=o;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(u&&(u=u.map(h.changes)),h.scrollIntoView){let{main:m}=h.state.selection;u=new Td(m.empty?m:ee.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of h.effects)m.is(mb)&&(u=m.value.clip(this.state))}this.viewState.update(r,u),this.bidiCache=Bw.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),n=this.docView.update(r),this.state.facet(og)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(kb)!=r.state.facet(kb)&&(this.viewState.mustMeasureContent=!0),(n||i||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!r.empty)for(let h of this.state.facet(u$))try{h(r)}catch(m){wo(this.state,m,"update listener")}(l||f)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),f&&!jZ(this,f)&&c.force&&Pd(this.contentDOM,c.key,c.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new gN(e),this.plugins=e.facet(ag).map(i=>new i_(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new K8(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(ag),i=e.state.facet(ag);if(n!=i){let r=[];for(let s of i){let a=n.indexOf(s);if(a<0)r.push(new i_(s));else{let o=this.plugins[a];o.mustUpdate=e,r.push(o)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);n!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(i){wo(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:a}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(a<0)if(VH(i))s=-1,a=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(r);s=m.from,a=m.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let f=c.map(m=>{try{return m.read(this)}catch(g){return wo(this.state,g),kN}}),u=Iw.create(this,this.state,[]),h=!1;u.flags|=l,n?n.flags|=l:n=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),h=this.docView.update(u),h&&this.docViewUpdate());for(let m=0;m<c.length;m++)if(f[m]!=kN)try{let g=c[m];g.write&&g.write(f[m],this)}catch(g){wo(this.state,g)}if(h&&this.docView.updateSelection(!0),!u.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let g=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-a;if(g>1||g<-1){r=r+g,i.scrollTop=r/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(u$))o(n)}get themeClasses(){return m$+" "+(this.state.facet(p$)?NZ:MZ)+" "+this.state.facet(kb)}updateAttrs(){let e=ON(this,vZ,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(LO)?"true":"false",class:"cm-content",style:`${Be.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),ON(this,X5,n);let i=this.observer.ignore(()=>{let r=a$(this.contentDOM,this.contentAttrs,n),s=a$(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let r of i.effects)if(r.is(Nt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(og);let e=this.state.facet(Nt.cspNonce);jr.mount(this.root,this.styleModules.concat(xHe).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(i=>i.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return s_(this,e,rN(this,e,n,i))}moveByGroup(e,n){return s_(this,e,rN(this,e,n,i=>HVe(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=i[n?i.length-1:0];return ee.cursor(s.side(n,r)+e.from,s.forward(!n,r)?1:-1)}moveToLineBoundary(e,n,i=!0){return VVe(this,e,n,i)}moveVertically(e,n,i){return s_(this,e,ZVe(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),xZ(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),a=s[vc.find(s,e-r.from,-1,n)];return V5(i,a.dir==Qi.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(mZ)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>MHe)return oZ(e.length);let n=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||aZ(s.isolates,i=Y8(this,e))))return s.order;i||(i=Y8(this,e));let r=PVe(e.text,n,i);return this.bidiCache.push(new Bw(e.from,e.to,n,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Be.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{WH(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return mb.of(new Td(typeof e=="number"?ee.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return mb.of(new Td(ee.cursor(i.from),"start","start",i.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Dc.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Dc.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=jr.newName(),r=[kb.of(i),og.of(g$(`.${i}`,e))];return n&&n.dark&&r.push(p$.of(!0)),r}static baseTheme(e){return Mo.lowest(og.of(g$("."+m$,e,LZ)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),r=i&&un.get(i)||un.get(e);return((n=r==null?void 0:r.rootView)===null||n===void 0?void 0:n.view)||null}}Nt.styleModule=og;Nt.inputHandler=hZ;Nt.scrollHandler=gZ;Nt.focusChangeEffect=pZ;Nt.perLineTextDirection=mZ;Nt.exceptionSink=dZ;Nt.updateListener=u$;Nt.editable=LO;Nt.mouseSelectionStyle=uZ;Nt.dragMovesSelection=fZ;Nt.clickAddsSelectionRange=cZ;Nt.decorations=c1;Nt.outerDecorations=bZ;Nt.atomicRanges=Y5;Nt.bidiIsolatedRanges=yZ;Nt.scrollMargins=wZ;Nt.darkTheme=p$;Nt.cspNonce=me.define({combine:t=>t.length?t[0]:""});Nt.contentAttributes=X5;Nt.editorAttributes=vZ;Nt.lineWrapping=Nt.contentAttributes.of({class:"cm-lineWrapping"});Nt.announce=it.define();const MHe=4096,kN={};class Bw{constructor(e,n,i,r,s,a){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=s,this.order=a}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:Qi.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let a=e[s];a.dir==r&&!n.touchesRange(a.from,a.to)&&i.push(new Bw(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return i}}function ON(t,e,n){for(let i=t.state.facet(e),r=i.length-1;r>=0;r--){let s=i[r],a=typeof s=="function"?s(t):s;a&&s$(a,n)}return n}const NHe=Be.mac?"mac":Be.windows?"win":Be.linux?"linux":"key";function LHe(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let r,s,a,o;for(let l=0;l<n.length-1;++l){const c=n[l];if(/^(cmd|meta|m)$/i.test(c))o=!0;else if(/^a(lt)?$/i.test(c))r=!0;else if(/^(c|ctrl|control)$/i.test(c))s=!0;else if(/^s(hift)?$/i.test(c))a=!0;else if(/^mod$/i.test(c))e=="mac"?o=!0:s=!0;else throw new Error("Unrecognized modifier name: "+c)}return r&&(i="Alt-"+i),s&&(i="Ctrl-"+i),o&&(i="Meta-"+i),a&&(i="Shift-"+i),i}function Ob(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const jHe=Mo.default(Nt.domEventHandlers({keydown(t,e){return QHe(IHe(e.state),t,e,"editor")}})),IZ=me.define({enables:jHe}),xN=new WeakMap;function IHe(t){let e=t.facet(IZ),n=xN.get(e);return n||xN.set(e,n=FHe(e.reduce((i,r)=>i.concat(r),[]))),n}let sc=null;const BHe=4e3;function FHe(t,e=NHe){let n=Object.create(null),i=Object.create(null),r=(a,o)=>{let l=i[a];if(l==null)i[a]=o;else if(l!=o)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},s=(a,o,l,c,f)=>{var u,h;let m=n[a]||(n[a]=Object.create(null)),g=o.split(/ (?!$)/).map(O=>LHe(O,e));for(let O=1;O<g.length;O++){let x=g.slice(0,O).join(" ");r(x,!0),m[x]||(m[x]={preventDefault:!0,stopPropagation:!1,run:[$=>{let T=sc={view:$,prefix:x,scope:a};return setTimeout(()=>{sc==T&&(sc=null)},BHe),!0}]})}let v=g.join(" ");r(v,!1);let w=m[v]||(m[v]={preventDefault:!1,stopPropagation:!1,run:((h=(u=m._any)===null||u===void 0?void 0:u.run)===null||h===void 0?void 0:h.slice())||[]});l&&w.run.push(l),c&&(w.preventDefault=!0),f&&(w.stopPropagation=!0)};for(let a of t){let o=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let c of o){let f=n[c]||(n[c]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:u}=a;for(let h in f)f[h].run.push(m=>u(m,v$))}let l=a[e]||a.key;if(l)for(let c of o)s(c,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&s(c,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}let v$=null;function QHe(t,e,n,i){v$=e;let r=cU(e),s=cr(r,0),a=ka(s)==r.length&&r!=" ",o="",l=!1,c=!1,f=!1;sc&&sc.view==n&&sc.scope==i&&(o=sc.prefix+" ",_Z.indexOf(e.keyCode)<0&&(c=!0,sc=null));let u=new Set,h=w=>{if(w){for(let O of w.run)if(!u.has(O)&&(u.add(O),O(n)))return w.stopPropagation&&(f=!0),!0;w.preventDefault&&(w.stopPropagation&&(f=!0),c=!0)}return!1},m=t[i],g,v;return m&&(h(m[o+Ob(r,e,!a)])?l=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Be.windows&&e.ctrlKey&&e.altKey)&&(g=yl[e.keyCode])&&g!=r?(h(m[o+Ob(g,e,!0)])||e.shiftKey&&(v=Hd[e.keyCode])!=r&&v!=g&&h(m[o+Ob(v,e,!1)]))&&(l=!0):a&&e.shiftKey&&h(m[o+Ob(r,e,!0)])&&(l=!0),!l&&h(m._any)&&(l=!0)),c&&(l=!0),l&&f&&e.stopPropagation(),v$=null,l}const zHe=!Be.ios,SN={".cm-line":{},".cm-content":{}};zHe&&(SN[".cm-line"].caretColor=SN[".cm-content"].caretColor="transparent !important");const Am="-10000px";class BZ{constructor(e,n,i,r){this.facet=n,this.createTooltipView=i,this.removeTooltipView=r,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let s=null;this.tooltipViews=this.tooltips.map(a=>s=i(a,s))}update(e,n){var i;let r=e.state.facet(this.facet),s=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let a=[],o=n?[]:null;for(let l=0;l<s.length;l++){let c=s[l],f=-1;if(c){for(let u=0;u<this.tooltips.length;u++){let h=this.tooltips[u];h&&h.create==c.create&&(f=u)}if(f<0)a[l]=this.createTooltipView(c,l?a[l-1]:null),o&&(o[l]=!!c.above);else{let u=a[l]=this.tooltipViews[f];o&&(o[l]=n[f]),u.update&&u.update(e)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(this.removeTooltipView(l),(i=l.destroy)===null||i===void 0||i.call(l));return n&&(o.forEach((l,c)=>n[c]=l),n.length=o.length),this.input=r,this.tooltips=s,this.tooltipViews=a,!0}}function qHe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const l_=me.define({combine:t=>{var e,n,i;return{position:Be.ios?"absolute":((e=t.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(r=>r.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((i=t.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||qHe}}}),_N=new WeakMap,FZ=Dc.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(l_);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new BZ(t,QZ,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(l_);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=Am,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(Be.gecko)i=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==Am&&r.style.left=="0px"){let s=r.getBoundingClientRect();i=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(i||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,n=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((r,s)=>{let a=this.manager.tooltipViews[s];return a.getCoords?a.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(l_).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:i,scaleX:r,scaleY:s}=t,a=[];for(let o=0;o<this.manager.tooltips.length;o++){let l=this.manager.tooltips[o],c=this.manager.tooltipViews[o],{dom:f}=c,u=t.pos[o],h=t.size[o];if(!u||u.bottom<=Math.max(n.top,i.top)||u.top>=Math.min(n.bottom,i.bottom)||u.right<Math.max(n.left,i.left)-.1||u.left>Math.min(n.right,i.right)+.1){f.style.top=Am;continue}let m=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,g=m?7:0,v=h.right-h.left,w=(e=_N.get(c))!==null&&e!==void 0?e:h.bottom-h.top,O=c.offset||UHe,x=this.view.textDirection==Qi.LTR,$=h.width>i.right-i.left?x?i.left:i.right-h.width:x?Math.min(u.left-(m?14:0)+O.x,i.right-v):Math.max(i.left,u.left-v+(m?14:0)-O.x),T=this.above[o];!l.strictSide&&(T?u.top-(h.bottom-h.top)-O.y<i.top:u.bottom+(h.bottom-h.top)+O.y>i.bottom)&&T==i.bottom-u.bottom>u.top-i.top&&(T=this.above[o]=!T);let S=(T?u.top-i.top:i.bottom-u.bottom)-g;if(S<w&&c.resize!==!1){if(S<this.view.defaultLineHeight){f.style.top=Am;continue}_N.set(c,w),f.style.height=(w=S)/s+"px"}else f.style.height&&(f.style.height="");let R=T?u.top-w-g-O.y:u.bottom+g+O.y,_=$+v;if(c.overlap!==!0)for(let P of a)P.left<_&&P.right>$&&P.top<R+w&&P.bottom>R&&(R=T?P.top-w-2-g:P.bottom+g+2);if(this.position=="absolute"?(f.style.top=(R-t.parent.top)/s+"px",f.style.left=($-t.parent.left)/r+"px"):(f.style.top=R/s+"px",f.style.left=$/r+"px"),m){let P=u.left+(x?O.x:-O.x)-($+14-7);m.style.left=P/r+"px"}c.overlap!==!0&&a.push({left:$,top:R,right:_,bottom:R+w}),f.classList.toggle("cm-tooltip-above",T),f.classList.toggle("cm-tooltip-below",!T),c.positioned&&c.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Am}},{eventObservers:{scroll(){this.maybeMeasure()}}}),WHe=Nt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),UHe={x:0,y:0},QZ=me.define({enables:[FZ,WHe]}),Fw=me.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class jO{static create(e){return new jO(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new BZ(e,Fw,(n,i)=>this.createHostedView(n,i),n=>n.dom.remove())}createHostedView(e,n){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let r=i[e];if(r!==void 0){if(n===void 0)n=r;else if(n!==r)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const VHe=QZ.compute([Fw],t=>{let e=t.facet(Fw);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return(i=n.end)!==null&&i!==void 0?i:n.pos})),create:jO.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class HHe{constructor(e,n,i,r,s){this.view=e,this.source=n,this.field=i,this.setHover=r,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,i=e.docView.nearest(n.target);if(!i)return;let r,s=1;if(i instanceof gc)r=i.posAtStart;else{if(r=e.posAtCoords(n),r==null)return;let o=e.coordsAtPos(r);if(!o||n.y<o.top||n.y>o.bottom||n.x<o.left-e.defaultCharacterWidth||n.x>o.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(r)).find(f=>f.from<=r&&f.to>=r),c=l&&l.dir==Qi.RTL?-1:1;s=n.x<o.left?-c:c}let a=this.source(e,r,s);if(a!=null&&a.then){let o=this.pending={pos:r};a.then(l=>{this.pending==o&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>wo(e.state,l,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(FZ),n=e?e.manager.tooltips.findIndex(i=>i.create==jO.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:s}=this;if(r.length&&s&&!ZHe(s.dom,e)||this.pending){let{pos:a}=r[0]||this.pending,o=(i=(n=r[0])===null||n===void 0?void 0:n.end)!==null&&i!==void 0?i:a;(a==o?this.view.posAtCoords(this.lastMove)!=a:!GHe(this.view,a,o,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const xb=4;function ZHe(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-xb&&e.clientX<=n.right+xb&&e.clientY>=n.top-xb&&e.clientY<=n.bottom+xb}function GHe(t,e,n,i,r,s){let a=t.scrollDOM.getBoundingClientRect(),o=t.documentTop+t.documentPadding.top+t.contentHeight;if(a.left>i||a.right<i||a.top>r||Math.min(a.bottom,o)<r)return!1;let l=t.posAtCoords({x:i,y:r},!1);return l>=e&&l<=n}function XHe(t,e={}){let n=it.define(),i=Pi.define({create(){return[]},update(r,s){if(r.length&&(e.hideOnChange&&(s.docChanged||s.selection)?r=[]:e.hideOn&&(r=r.filter(a=>!e.hideOn(s,a))),s.docChanged)){let a=[];for(let o of r){let l=s.changes.mapPos(o.pos,-1,Wn.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),o);c.pos=l,c.end!=null&&(c.end=s.changes.mapPos(c.end)),a.push(c)}}r=a}for(let a of s.effects)a.is(n)&&(r=a.value),a.is(YHe)&&(r=[]);return r},provide:r=>Fw.from(r)});return[i,Dc.define(r=>new HHe(r,t,i,n,e.hoverTime||300)),VHe]}const YHe=it.define(),CN=me.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function KHe(t,e){let n=t.plugin(zZ),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const zZ=Dc.fromClass(class{constructor(t){this.input=t.state.facet(b$),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(CN);this.top=new Sb(t,!0,e.topContainer),this.bottom=new Sb(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(CN);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Sb(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Sb(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(b$);if(n!=this.input){let i=n.filter(l=>l),r=[],s=[],a=[],o=[];for(let l of i){let c=this.specs.indexOf(l),f;c<0?(f=l(t.view),o.push(f)):(f=this.panels[c],f.update&&f.update(t)),r.push(f),(f.top?s:a).push(f)}this.specs=i,this.panels=r,this.top.sync(s),this.bottom.sync(a);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Nt.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Sb{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=$N(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=$N(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function $N(t){let e=t.nextSibling;return t.remove(),e}const b$=me.define({enables:zZ});class ih extends Eo{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}ih.prototype.elementClass="";ih.prototype.toDOM=void 0;ih.prototype.mapMode=Wn.TrackBefore;ih.prototype.startSide=ih.prototype.endSide=-1;ih.prototype.point=!0;class JHe{constructor(e,n,i){this.from=e,this.to=n,this.diagnostic=i}}class yf{constructor(e,n,i){this.diagnostics=e,this.panel=n,this.selected=i}static init(e,n,i){let r=e,s=i.facet(f1).markerFilter;s&&(r=s(r,i));let a=ei.set(r.map(o=>o.from==o.to||o.from==o.to-1&&i.doc.lineAt(o.from).to==o.from?ei.widget({widget:new lZe(o),diagnostic:o}).range(o.from):ei.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o,inclusive:!0}).range(o.from,o.to)),!0);return new yf(a,n,rh(a))}}function rh(t,e=null,n=0){let i=null;return t.between(n,1e9,(r,s,{spec:a})=>{if(!(e&&a.diagnostic!=e))return i=new JHe(r,s,a.diagnostic),!1}),i}function eZe(t,e){let n=e.pos,i=e.end||n,r=t.state.facet(f1).hideOn(t,n,i);if(r!=null)return r;let s=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(a=>a.is(qZ))||t.changes.touchesRange(s.from,Math.max(s.to,i)))}function tZe(t,e){return t.field(ms,!1)?e:e.concat(it.appendConfig.of(uZe))}const qZ=it.define(),eT=it.define(),WZ=it.define(),ms=Pi.define({create(){return new yf(ei.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),i=null,r=t.panel;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);i=rh(n,t.selected.diagnostic,s)||rh(n,null,s)}!n.size&&r&&e.state.facet(f1).autoPanel&&(r=null),t=new yf(n,r,i)}for(let n of e.effects)if(n.is(qZ)){let i=e.state.facet(f1).autoPanel?n.value.length?u1.open:null:t.panel;t=yf.init(n.value,i,e.state)}else n.is(eT)?t=new yf(t.diagnostics,n.value?u1.open:null,t.selected):n.is(WZ)&&(t=new yf(t.diagnostics,t.panel,n.value));return t},provide:t=>[b$.from(t,e=>e.panel),Nt.decorations.from(t,e=>e.diagnostics)]}),nZe=ei.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function iZe(t,e,n){let{diagnostics:i}=t.state.field(ms),r=[],s=2e8,a=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(l,c,{spec:f})=>{e>=l&&e<=c&&(l==c||(e>l||n>0)&&(e<c||n<0))&&(r.push(f.diagnostic),s=Math.min(l,s),a=Math.max(c,a))});let o=t.state.facet(f1).tooltipFilter;return o&&(r=o(r,t.state)),r.length?{pos:s,end:a,above:t.state.doc.lineAt(s).to<a,create(){return{dom:rZe(t,r)}}}:null}function rZe(t,e){return bn("ul",{class:"cm-tooltip-lint"},e.map(n=>VZ(t,n,!1)))}const sZe=t=>{let e=t.state.field(ms,!1);(!e||!e.panel)&&t.dispatch({effects:tZe(t.state,[eT.of(!0)])});let n=KHe(t,u1.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},PN=t=>{let e=t.state.field(ms,!1);return!e||!e.panel?!1:(t.dispatch({effects:eT.of(!1)}),!0)},aZe=t=>{let e=t.state.field(ms,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},oZe=[{key:"Mod-Shift-m",run:sZe,preventDefault:!0},{key:"F8",run:aZe}],f1=me.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},No(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n}))}});function UZ(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;i<n.length;i++){let r=n[i];if(/[a-zA-Z]/.test(r)&&!e.some(s=>s.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function VZ(t,e,n){var i;let r=n?UZ(e.actions):[];return bn("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},bn("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((s,a)=>{let o=!1,l=h=>{if(h.preventDefault(),o)return;o=!0;let m=rh(t.state.field(ms).diagnostics,e);m&&s.apply(t,m.from,m.to)},{name:c}=s,f=r[a]?c.indexOf(r[a]):-1,u=f<0?c:[c.slice(0,f),bn("u",c.slice(f,f+1)),c.slice(f+1)];return bn("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${c}${f<0?"":` (access key "${r[a]})"`}.`},u)}),e.source&&bn("div",{class:"cm-diagnosticSource"},e.source))}class lZe extends _0{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return bn("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class TN{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=VZ(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class u1{constructor(e){this.view=e,this.items=[];let n=r=>{if(r.keyCode==27)PN(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],a=UZ(s.actions);for(let o=0;o<a.length;o++)if(a[o].toUpperCase().charCodeAt(0)==r.keyCode){let l=rh(this.view.state.field(ms).diagnostics,s);l&&s.actions[o].apply(e,l.from,l.to)}}else return;r.preventDefault()},i=r=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(r.target)&&this.moveSelection(s)};this.list=bn("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:i}),this.dom=bn("div",{class:"cm-panel-lint"},this.list,bn("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>PN(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(ms).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(ms),i=0,r=!1,s=null;for(e.between(0,this.view.state.doc.length,(a,o,{spec:l})=>{let c=-1,f;for(let u=i;u<this.items.length;u++)if(this.items[u].diagnostic==l.diagnostic){c=u;break}c<0?(f=new TN(this.view,l.diagnostic),this.items.splice(i,0,f),r=!0):(f=this.items[c],c>i&&(this.items.splice(i,c-i),r=!0)),n&&f.diagnostic==n.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),s=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),i++});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new TN(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:o})=>{let l=o.height/this.list.offsetHeight;a.top<o.top?this.list.scrollTop-=(o.top-a.top)/l:a.bottom>o.bottom&&(this.list.scrollTop+=(a.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(ms),i=rh(n.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:WZ.of(i)})}static open(e){return new u1(e)}}function cZe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function _b(t){return cZe(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const fZe=Nt.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:_b("#d11")},".cm-lintRange-warning":{backgroundImage:_b("orange")},".cm-lintRange-info":{backgroundImage:_b("#999")},".cm-lintRange-hint":{backgroundImage:_b("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),uZe=[ms,Nt.decorations.compute([ms],t=>{let{selected:e,panel:n}=t.field(ms);return!e||!n||e.from==e.to?ei.none:ei.set([nZe.range(e.from,e.to)])}),XHe(iZe,{hideOn:eZe}),fZe];var AN=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(eVe)),e.defaultKeymap!==!1&&(i=i.concat(HWe)),e.searchKeymap!==!1&&(i=i.concat(yUe)),e.historyKeymap!==!1&&(i=i.concat(nWe)),e.foldKeymap!==!1&&(i=i.concat(lqe)),e.completionKeymap!==!1&&(i=i.concat(zH)),e.lintKeymap!==!1&&(i=i.concat(oZe));var r=[];return e.lineNumbers!==!1&&r.push(Lze()),e.highlightActiveLineGutter!==!1&&r.push(Bze()),e.highlightSpecialChars!==!1&&r.push(sze()),e.history!==!1&&r.push(Hqe()),e.foldGutter!==!1&&r.push(dqe()),e.drawSelection!==!1&&r.push(ZQe()),e.dropCursor!==!1&&r.push(JQe()),e.allowMultipleSelections!==!1&&r.push(kt.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&r.push(Kze()),e.syntaxHighlighting!==!1&&r.push(L5(gqe,{fallback:!0})),e.bracketMatching!==!1&&r.push(xqe()),e.closeBrackets!==!1&&r.push(XUe()),e.autocompletion!==!1&&r.push(oVe()),e.rectangularSelection!==!1&&r.push(yze()),n!==!1&&r.push(Oze()),e.highlightActiveLine!==!1&&r.push(uze()),e.highlightSelectionMatches!==!1&&r.push(eUe()),e.tabSize&&typeof e.tabSize=="number"&&r.push(k0.of(" ".repeat(e.tabSize))),r.concat([$O.of(i.flat())]).filter(Boolean)};let dZe=0;class $i{constructor(e={}){this.id=dZe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=d1.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}}$i.closedBy=new $i({deserialize:t=>t.split(" ")});$i.openedBy=new $i({deserialize:t=>t.split(" ")});$i.group=new $i({deserialize:t=>t.split(" ")});$i.isolate=new $i({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});$i.contextHash=new $i({perNode:!0});$i.lookAhead=new $i({perNode:!0});$i.mounted=new $i({perNode:!0});const hZe=Object.create(null);class d1{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):hZe,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new d1(e.name||"",n,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop($i.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop($i.group),s=-1;s<(r?r.length:0);s++){let a=n[s<0?i.name:r[s]];if(a)return a}}}}d1.none=new d1("",Object.create(null),0,8);var EN;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(EN||(EN={}));new $i({perNode:!0});let pZe=0,rl=class y${constructor(e,n,i,r){this.name=e,this.set=n,this.base=i,this.modified=r,this.id=pZe++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let i=typeof e=="string"?e:"?";if(e instanceof y$&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let r=new y$(i,[],null,[]);if(r.set.push(r),n)for(let s of n.set)r.set.push(s);return r}static defineModifier(e){let n=new RN(e);return i=>i.modified.indexOf(n)>-1?i:RN.get(i.base||i,i.modified.concat(n).sort((r,s)=>r.id-s.id))}},mZe=0,RN=class HZ{constructor(e){this.name=e,this.instances=[],this.id=mZe++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(o=>o.base==e&&gZe(n,o.modified));if(i)return i;let r=[],s=new rl(e.name,r,e,n);for(let o of n)o.instances.push(s);let a=vZe(n);for(let o of e.set)if(!o.modified.length)for(let l of a)r.push(HZ.get(o,l));return s}};function gZe(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function vZe(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((n,i)=>i.length-n.length)}new $i({combine(t,e){let n,i,r;for(;t||e;){!t||t.depth>e.depth?(r=e,e=e.next):(r=t,t=t.next);let s=new w$(r.tags,r.mode,r.context);n?n.next=s:i=s,n=s}return i}});let w$=class{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};w$.empty=new w$([],2,null);function bZe(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let a of s.tag)n[a.id]=s.class;let{scope:i,all:r=null}={};return{style:s=>{let a=r;for(let o of s)for(let l of o.set){let c=n[l.id];if(c){a=a?a+" "+c:c;break}}return a},scope:i}}const _e=rl.define,Cb=_e(),Kl=_e(),DN=_e(Kl),MN=_e(Kl),Jl=_e(),$b=_e(Jl),c_=_e(Jl),no=_e(),rf=_e(no),Xa=_e(),Ya=_e(),k$=_e(),Em=_e(k$),Pb=_e(),be={comment:Cb,lineComment:_e(Cb),blockComment:_e(Cb),docComment:_e(Cb),name:Kl,variableName:_e(Kl),typeName:DN,tagName:_e(DN),propertyName:MN,attributeName:_e(MN),className:_e(Kl),labelName:_e(Kl),namespace:_e(Kl),macroName:_e(Kl),literal:Jl,string:$b,docString:_e($b),character:_e($b),attributeValue:_e($b),number:c_,integer:_e(c_),float:_e(c_),bool:_e(Jl),regexp:_e(Jl),escape:_e(Jl),color:_e(Jl),url:_e(Jl),keyword:Xa,self:_e(Xa),null:_e(Xa),atom:_e(Xa),unit:_e(Xa),modifier:_e(Xa),operatorKeyword:_e(Xa),controlKeyword:_e(Xa),definitionKeyword:_e(Xa),moduleKeyword:_e(Xa),operator:Ya,derefOperator:_e(Ya),arithmeticOperator:_e(Ya),logicOperator:_e(Ya),bitwiseOperator:_e(Ya),compareOperator:_e(Ya),updateOperator:_e(Ya),definitionOperator:_e(Ya),typeOperator:_e(Ya),controlOperator:_e(Ya),punctuation:k$,separator:_e(k$),bracket:Em,angleBracket:_e(Em),squareBracket:_e(Em),paren:_e(Em),brace:_e(Em),content:no,heading:rf,heading1:_e(rf),heading2:_e(rf),heading3:_e(rf),heading4:_e(rf),heading5:_e(rf),heading6:_e(rf),contentSeparator:_e(no),list:_e(no),quote:_e(no),emphasis:_e(no),strong:_e(no),link:_e(no),monospace:_e(no),strikethrough:_e(no),inserted:_e(),deleted:_e(),changed:_e(),invalid:_e(),meta:Pb,documentMeta:_e(Pb),annotation:_e(Pb),processingInstruction:_e(Pb),definition:rl.defineModifier("definition"),constant:rl.defineModifier("constant"),function:rl.defineModifier("function"),standard:rl.defineModifier("standard"),local:rl.defineModifier("local"),special:rl.defineModifier("special")};for(let t in be){let e=be[t];e instanceof rl&&(e.name=t)}bZe([{tag:be.link,class:"tok-link"},{tag:be.heading,class:"tok-heading"},{tag:be.emphasis,class:"tok-emphasis"},{tag:be.strong,class:"tok-strong"},{tag:be.keyword,class:"tok-keyword"},{tag:be.atom,class:"tok-atom"},{tag:be.bool,class:"tok-bool"},{tag:be.url,class:"tok-url"},{tag:be.labelName,class:"tok-labelName"},{tag:be.inserted,class:"tok-inserted"},{tag:be.deleted,class:"tok-deleted"},{tag:be.literal,class:"tok-literal"},{tag:be.string,class:"tok-string"},{tag:be.number,class:"tok-number"},{tag:[be.regexp,be.escape,be.special(be.string)],class:"tok-string2"},{tag:be.variableName,class:"tok-variableName"},{tag:be.local(be.variableName),class:"tok-variableName tok-local"},{tag:be.definition(be.variableName),class:"tok-variableName tok-definition"},{tag:be.special(be.variableName),class:"tok-variableName2"},{tag:be.definition(be.propertyName),class:"tok-propertyName tok-definition"},{tag:be.typeName,class:"tok-typeName"},{tag:be.namespace,class:"tok-namespace"},{tag:be.className,class:"tok-className"},{tag:be.macroName,class:"tok-macroName"},{tag:be.propertyName,class:"tok-propertyName"},{tag:be.operator,class:"tok-operator"},{tag:be.comment,class:"tok-comment"},{tag:be.meta,class:"tok-meta"},{tag:be.invalid,class:"tok-invalid"},{tag:be.punctuation,class:"tok-punctuation"}]);const yZe="#e5c07b",NN="#e06c75",wZe="#56b6c2",kZe="#ffffff",ky="#abb2bf",O$="#7d8799",OZe="#61afef",xZe="#98c379",LN="#d19a66",SZe="#c678dd",_Ze="#21252b",jN="#2c313a",IN="#282c34",f_="#353a42",CZe="#3E4451",BN="#528bff",$Ze=Ae.theme({"&":{color:ky,backgroundColor:IN},".cm-content":{caretColor:BN},".cm-cursor, .cm-dropCursor":{borderLeftColor:BN},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:CZe},".cm-panels":{backgroundColor:_Ze,color:ky},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:IN,color:O$,border:"none"},".cm-activeLineGutter":{backgroundColor:jN},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:f_},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:f_,borderBottomColor:f_},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:jN,color:ky}}},{dark:!0}),PZe=Dp.define([{tag:be.keyword,color:SZe},{tag:[be.name,be.deleted,be.character,be.propertyName,be.macroName],color:NN},{tag:[be.function(be.variableName),be.labelName],color:OZe},{tag:[be.color,be.constant(be.name),be.standard(be.name)],color:LN},{tag:[be.definition(be.name),be.separator],color:ky},{tag:[be.typeName,be.className,be.number,be.changed,be.annotation,be.modifier,be.self,be.namespace],color:yZe},{tag:[be.operator,be.operatorKeyword,be.url,be.escape,be.regexp,be.link,be.special(be.string)],color:wZe},{tag:[be.meta,be.comment],color:O$},{tag:be.strong,fontWeight:"bold"},{tag:be.emphasis,fontStyle:"italic"},{tag:be.strikethrough,textDecoration:"line-through"},{tag:be.link,color:O$,textDecoration:"underline"},{tag:be.heading,fontWeight:"bold",color:NN},{tag:[be.atom,be.bool,be.special(be.variableName)],color:LN},{tag:[be.processingInstruction,be.string,be.inserted],color:xZe},{tag:be.invalid,color:kZe}]),TZe=[$Ze,L5(PZe)];var AZe=Ae.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),EZe=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:i=!0,readOnly:r=!1,theme:s="light",placeholder:a="",basicSetup:o=!0}=e,l=[];switch(n&&l.unshift($O.of([ZWe])),o&&(typeof o=="boolean"?l.unshift(AN()):l.unshift(AN(o))),a&&l.unshift(mze(a)),s){case"light":l.push(AZe);break;case"dark":l.push(TZe);break;case"none":break;default:l.push(s);break}return i===!1&&l.push(Ae.editable.of(!1)),r&&l.push(kt.readOnly.of(!0)),[...l]},RZe=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),FN=ta.define(),DZe=[];function MZe(t){var{value:e,selection:n,onChange:i,onStatistics:r,onCreateEditor:s,onUpdate:a,extensions:o=DZe,autoFocus:l,theme:c="light",height:f=null,minHeight:u=null,maxHeight:h=null,width:m=null,minWidth:g=null,maxWidth:v=null,placeholder:w="",editable:O=!0,readOnly:x=!1,indentWithTab:$=!0,basicSetup:T=!0,root:S,initialState:R}=t,[_,P]=k.useState(),[A,N]=k.useState(),[M,Q]=k.useState(),U=Ae.theme({"&":{height:f,minHeight:u,maxHeight:h,width:m,minWidth:g,maxWidth:v},"& .cm-scroller":{height:"100% !important"}}),z=Ae.updateListener.of(ne=>{if(ne.docChanged&&typeof i=="function"&&!ne.transactions.some(je=>je.annotation(FN))){var he=ne.state.doc,ve=he.toString();i(ve,ne)}r&&r(RZe(ne))}),Y=EZe({theme:c,editable:O,readOnly:x,placeholder:w,indentWithTab:$,basicSetup:T}),ae=[z,U,...Y];return a&&typeof a=="function"&&ae.push(Ae.updateListener.of(a)),ae=ae.concat(o),k.useLayoutEffect(()=>{if(_&&!M){var ne={doc:e,selection:n,extensions:ae},he=R?kt.fromJSON(R.json,ne,R.fields):kt.create(ne);if(Q(he),!A){var ve=new Ae({state:he,parent:_,root:S});N(ve),s&&s(ve,he)}}return()=>{A&&(Q(void 0),N(void 0))}},[_,M]),k.useEffect(()=>{t.container&&P(t.container)},[t.container]),k.useEffect(()=>()=>{A&&(A.destroy(),N(void 0))},[A]),k.useEffect(()=>{l&&A&&A.focus()},[l,A]),k.useEffect(()=>{A&&A.dispatch({effects:it.reconfigure.of(ae)})},[c,o,f,u,h,m,g,v,w,O,x,$,T,i,a]),k.useEffect(()=>{if(e!==void 0){var ne=A?A.state.doc.toString():"";A&&e!==ne&&A.dispatch({changes:{from:0,to:ne.length,insert:e||""},annotations:[FN.of(!0)]})}},[e,A]),{state:M,setState:Q,view:A,setView:N,container:_,setContainer:P}}var NZe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],tT=k.forwardRef((t,e)=>{var{className:n,value:i="",selection:r,extensions:s=[],onChange:a,onStatistics:o,onCreateEditor:l,onUpdate:c,autoFocus:f,theme:u="light",height:h,minHeight:m,maxHeight:g,width:v,minWidth:w,maxWidth:O,basicSetup:x,placeholder:$,indentWithTab:T,editable:S,readOnly:R,root:_,initialState:P}=t,A=Mt(t,NZe),N=k.useRef(null),{state:M,view:Q,container:U,setContainer:z}=MZe({root:_,value:i,autoFocus:f,theme:u,height:h,minHeight:m,maxHeight:g,width:v,minWidth:w,maxWidth:O,basicSetup:x,placeholder:$,indentWithTab:T,editable:S,readOnly:R,selection:r,onChange:a,onStatistics:o,onCreateEditor:l,onUpdate:c,extensions:s,initialState:P});k.useImperativeHandle(e,()=>({editor:N.current,state:M,view:Q}),[N,U,M,Q]);var Y=k.useCallback(ne=>{N.current=ne,z(ne)},[z]);if(typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var ae=typeof u=="string"?"cm-theme-"+u:"cm-theme";return b.jsx("div",X({ref:Y,className:""+ae+(n?" "+n:"")},A))});tT.displayName="CodeMirror";const LZe=()=>{const{state:t}=gr(),e=k.useCallback(r=>{const{data:s}=Mb.optimize(r,t.export.svgoConfig);return s},[t.export.svgoConfig]),n=k.useCallback(r=>{const{data:s}=Mb.optimize(r,{js2svg:{indent:2,pretty:!0},plugins:[]});return s},[]),i=k.useCallback(r=>{const{data:s}=Mb.optimize(r,{js2svg:{indent:0,pretty:!1},plugins:[]});return s},[]);return{format:n,minify:i,optimize:e}},jZe=()=>{const{dispatch:t,state:e}=gr(),{format:n,optimize:i}=LZe(),r=()=>{const o=i(e.currentString);t({payload:o,type:"update-current-string"})},s=()=>{const o=n(e.currentString);t({payload:o,type:"update-current-string"})},a=k.useMemo(()=>({after:oi.getPrettyBytes(e.currentString),before:oi.getPrettyBytes(e.originalString)}),[e.currentString,e.originalString]);return b.jsxs("div",{className:"flex h-14 items-center justify-between bg-[#24283b] px-4 text-white",children:[b.jsxs("button",{className:"editor-btn",onClick:r,children:[b.jsx(Ere,{className:"h-4 w-4 opacity-50"}),j("details_optimize")]}),b.jsxs("span",{className:"flex items-center gap-2 text-center text-xs",children:[a.before," ",b.jsx(Sre,{className:"inline h-2.5 w-2.5"})," ",a.after]}),b.jsxs("button",{className:"editor-btn",onClick:s,children:[b.jsx(fse,{className:"h-4 w-4 opacity-50"}),j("details_format")]})]})},IZe=({children:t})=>{const{state:e}=Ki();return e.onboarding.viewedEditSvg?t:b.jsxs(lk,{open:!0,children:[b.jsx(ck,{asChild:!0,children:b.jsx("span",{className:"absolute inset-x-0"})}),b.jsx(fk,{children:b.jsxs(uk,{className:Tt("radix-side-top:animate-slide-down-fade","radix-side-right:animate-slide-left-fade","radix-side-bottom:animate-slide-up-fade","radix-side-left:animate-slide-right-fade","inline-flex items-center rounded-lg px-3 py-2","bg-gray-800 text-xs shadow-md dark:bg-white","max-w-[20rem] text-white dark:text-gray-800"),side:"top",sideOffset:4,children:[j("details_live"),b.jsx(dk,{className:"fill-current text-gray-800 dark:text-gray-200"})]})})]})},BZe=()=>{const{dispatch:t,state:e}=gr(),{dispatch:n,state:i}=Ki(),r=k.useCallback(a=>{t({payload:a,type:"update-current-string"})},[t]),s=k.useCallback(()=>{if(!i.onboarding.viewedEditSvg){const a=hk.merge(i,{onboarding:{viewedEditSvg:!0}});n({payload:a,type:"set-user"}),ye.setStorageData("user",a)}},[n,i]);return b.jsxs("section",{className:"relative flex-grow",children:[b.jsx(IZe,{}),b.jsx(jZe,{}),b.jsx(tT,{basicSetup:{autocompletion:!0,highlightActiveLine:!1,highlightActiveLineGutter:!1,lineNumbers:!1},className:"h-full",extensions:[Dqe(),Ae.lineWrapping],onChange:r,onFocus:s,theme:WV,value:e.currentString})]})},FZe=()=>{const{state:t}=gr(),{copyToClipboard:e,text:n}=U$(j("card_action_copy")),i=()=>{e(t.currentString)},r=async()=>{Si.downloadSvgString(t.currentString,t.name)};return b.jsxs("footer",{className:"flex flex-col gap-2 px-3 pb-6 pt-4",children:[b.jsx(_t,{className:"justify-center transition-all",onClick:i,variant:"secondary",children:n}),b.jsx(_t,{className:"justify-center",onClick:r,children:j("details_download")})]})},QZe=()=>{const{dispatch:t,state:e}=gr(),n=async()=>{const o=await ye.getStorageData("plugins")??[];t({payload:o,type:"set-svgo-plugins"}),t({type:"process-current-string"})},i=()=>{t({payload:[],type:"set-svgo-plugins"}),t({type:"process-current-string"})},r=()=>{t({payload:pk,type:"set-svgo-plugins"}),t({type:"process-current-string"})},s=async()=>{ye.setStorageData("plugins",e.export.svgoConfig.plugins)},a=[{label:j("details_default"),onClick:n},{label:j("details_svgo_default"),onClick:r},{label:j("details_deselect_all"),onClick:i}];return b.jsx(k.Fragment,{children:b.jsxs(Ci,{children:[b.jsxs(Ci.Button,{className:"flex items-center gap-1 text-sm",children:[j("export_apply")," ",b.jsx(Gw,{className:"h-4 w-4"})]}),b.jsx(Wt,{as:k.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:b.jsx(Ci.Items,{className:Tt("absolute right-0 z-10 mt-2 w-40 origin-top-right rounded-md","bg-white shadow-2xl ring-1 ring-black dark:bg-gray-800 dark:ring-white","focus ring-opacity-5 dark:ring-opacity-5"),children:b.jsxs("div",{className:"py-1",children:[a.map(o=>b.jsx(Ci.Item,{children:({active:l})=>b.jsx("span",{className:Tt("block cursor-pointer px-3 py-1.5 text-xs",{"bg-gray-100 dark:bg-gray-700":l}),onClick:o.onClick,children:o.label})},o.label)),b.jsx("div",{className:"my-2 border-t border-gray-100 dark:border-gray-700"}),b.jsx(Ci.Item,{children:({active:o})=>b.jsx("span",{className:Tt("block cursor-pointer px-3 py-1.5 text-xs",{"bg-gray-100 dark:bg-gray-700":o}),onClick:s,children:j("details_set_default")})})]})})})]})})},zZe=({plugin:t})=>{const{dispatch:e,state:n}=gr(),i=k.useMemo(()=>n.export.svgoConfig.plugins.some(s=>s.name===t.name),[n.export.svgoConfig.plugins,t.name]),r=()=>{e(i?{payload:t,type:"remove-plugin"}:{payload:t,type:"add-plugin"}),e({type:"process-current-string"})};return b.jsxs("div",{className:"group flex gap-2",children:[b.jsx("input",{checked:i,className:"checkbox",id:t.name,onChange:r,type:"checkbox"}),b.jsx("div",{children:b.jsx("label",{className:"export-label",htmlFor:t.name,children:t.label})}),b.jsx(gs,{content:t.description})]})},qZe=()=>{var s;const{dispatch:t,state:e}=gr(),n=a=>{t({payload:a.target.value,type:"update-name"}),t({type:"process-current-string"})},i=a=>{t({payload:a.target.checked,type:"set-prettify"}),t({type:"process-current-string"})},r=a=>{t({payload:Number(a.target.value),type:"set-float-precision"}),t({type:"process-current-string"})};return b.jsxs("div",{children:[b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"name",children:j("name")}),b.jsx("input",{className:"export-input",id:"name",onChange:n,type:"text",value:e.name})]}),b.jsxs("div",{children:[b.jsxs("div",{className:"group mb-1 flex items-center gap-1",children:[b.jsx("label",{className:"export-label",htmlFor:"float-precision",children:j("export_floating")}),b.jsx(gs,{content:j("details_floating_tooltip")})]}),b.jsx("input",{className:"input",id:"float-precision",max:"10",min:"1",onChange:r,type:"number",value:e.export.svgoConfig.floatPrecision})]}),b.jsxs("div",{className:"mt-3 flex gap-2",children:[b.jsx("input",{checked:(s=e.export.svgoConfig.js2svg)==null?void 0:s.pretty,className:"checkbox",id:"prettify-markup",onChange:i,type:"checkbox"}),b.jsx("label",{className:"export-label",htmlFor:"prettify-markup",children:j("export_pretty")})]})]}),b.jsxs("div",{className:"mt-5 flex items-center justify-between",children:[b.jsx("h2",{className:"text-sm font-medium",children:j("details_plugin")}),b.jsx(QZe,{})]}),b.jsx("div",{className:"mt-4 flex flex-col gap-3 pb-8",children:Md.sortBy(b4,"label").map(a=>b.jsx(zZe,{plugin:a},a.name))})]})},WZe=()=>{const[t,e]=k.useState(320),n=k.useRef(null),i=k.useRef(null),r=k.useCallback(o=>{if(n.current&&i.current==="right"){const l=o.clientX-n.current.getBoundingClientRect().left;l>0&&e(l)}},[]),s=k.useCallback(()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s),i.current=null},[r]),a=k.useCallback(o=>{if(n.current){const l=n.current.getBoundingClientRect(),c=20;o.clientX>=l.right-c&&o.clientX<=l.right+c&&(i.current="right",document.addEventListener("mousemove",r),document.addEventListener("mouseup",s))}},[r,s]);return k.useEffect(()=>{const o=n.current;return o&&o.addEventListener("mousedown",a),()=>{o&&o.removeEventListener("mousedown",a)}},[a]),{ref:n,width:t}},UZe=()=>{const{ref:t,width:e}=WZe();return b.jsxs("aside",{className:"relative z-10 border-r border-gray-200 dark:border-gray-800",ref:t,style:{width:e},children:[b.jsxs("div",{className:"flex h-full flex-col",children:[b.jsxs("div",{className:"flex-grow overflow-y-auto px-3 pt-2",children:[b.jsx("header",{className:"mb-4",children:b.jsx("h2",{className:"mt-2 text-sm font-medium",children:j("details_settings")})}),b.jsx(qZe,{})]}),b.jsx(FZe,{})]}),b.jsx("div",{className:"absolute inset-y-0 right-0 z-50 w-px cursor-ew-resize"}),b.jsx("div",{className:"absolute inset-y-1/2 -right-2 z-50 h-12 w-1 cursor-ew-resize rounded bg-gray-500/50"})]})},VZe=()=>{const t=ah(),{dispatch:e,state:n}=gr(),{collectionId:i,currentString:r,id:s,name:a,originalName:o,originalString:l}=n,c=k.useMemo(()=>r!==l||a!==o,[r,l,a,o]),f=()=>{e({payload:l,type:"update-current-string"}),e({payload:o,type:"update-name"})},u=k.useCallback(async()=>{const m=await ye.getPageData(i),g={...m,data:m.data.map(v=>v.id===s?{corsRestricted:v.corsRestricted,id:v.id,lastEdited:new Date().toISOString(),name:a,svg:r}:v)};await ye.setPageData(i,g),e({payload:r,type:"update-original-string"}),e({payload:a,type:"update-original-name"})},[i,r,e,s,a]),h=()=>{if(c){globalThis.confirm(j("details_are_you_sure"))&&t(-1);return}t(-1)};return k.useEffect(()=>{const m=g=>{(g.ctrlKey||g.metaKey)&&g.key==="s"&&(g.preventDefault(),u())};return globalThis.addEventListener("keydown",m),()=>globalThis.removeEventListener("keydown",m)},[u]),b.jsxs("header",{className:"flex h-16 items-center justify-between border-b border-gray-200 px-4 dark:border-gray-800",children:[b.jsxs("nav",{className:"flex items-center gap-3",children:[b.jsx(xc,{onClick:h,size:"lg",variant:"ghost",children:b.jsx(Ore,{className:"h-5 w-5"})}),b.jsx("h1",{className:"text-lg font-semibold",children:j("details_edit_svg")})]}),b.jsxs(Wt,{as:"div",className:"flex h-full items-center justify-center gap-2",enter:"transition-all duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"transition-all duration-300",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",show:c,children:[b.jsx(_t,{onClick:f,variant:"secondary",children:j("details_reset_changes")}),b.jsx(_t,{onClick:u,children:j("details_save_changes")})]})]})},HZe=()=>{const{copyToClipboard:t,text:e}=U$(),{state:n}=gr(),i=k.useMemo(()=>[{name:"Minifed Data URI",value:oi.createMinifiedDataUri(n.currentString)},{name:"base64",value:oi.createBase64DataUri(n.currentString)},{name:"encodeURIComponent",value:oi.createEncodedDataUri(n.currentString)}],[n.currentString]);return b.jsx("div",{className:"px-4 py-6 transition-all duration-500 ease-in-out",children:i.map(r=>b.jsxs("section",{className:"group mb-6",children:[b.jsxs("span",{className:"label",children:[r.name," -"," ",b.jsx("span",{className:"text-muted",children:oi.getPrettyBytes(r.value)})]}),b.jsxs("div",{className:"relative rounded-lg border border-gray-200 bg-gray-50 dark:border-gray-700/50 dark:bg-gray-800/50",children:[b.jsxs(_t,{className:"absolute right-4 top-4 opacity-0 shadow-md group-hover:opacity-100",onClick:()=>t(r.value),size:"xs",children:[b.jsx(zL,{className:"h-3 w-3"}),e]}),b.jsx("div",{className:"max-h-52 overflow-y-auto p-5",children:b.jsx("pre",{className:"whitespace-pre-wrap break-all",children:r.value})})]})]},r.name))})};let ZZe=0;class oo{constructor(e,n,i){this.set=e,this.base=n,this.modified=i,this.id=ZZe++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new oo([],null,[]);if(n.set.push(n),e)for(let i of e.set)n.set.push(i);return n}static defineModifier(){let e=new Qw;return n=>n.modified.indexOf(e)>-1?n:Qw.get(n.base||n,n.modified.concat(e).sort((i,r)=>i.id-r.id))}}let GZe=0;class Qw{constructor(){this.instances=[],this.id=GZe++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(o=>o.base==e&&XZe(n,o.modified));if(i)return i;let r=[],s=new oo(r,e,n);for(let o of n)o.instances.push(s);let a=YZe(n);for(let o of e.set)if(!o.modified.length)for(let l of a)r.push(Qw.get(o,l));return s}}function XZe(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function YZe(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((n,i)=>i.length-n.length)}function KZe(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let s=[],a=2,o=r;for(let u=0;;){if(o=="..."&&u>0&&u+3==r.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!h)throw new RangeError("Invalid path: "+r);if(s.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),u+=h[0].length,u==r.length)break;let m=r[u++];if(u==r.length&&m=="!"){a=0;break}if(m!="/")throw new RangeError("Invalid path: "+r);o=r.slice(u)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+r);let f=new x$(i,a,l>0?s.slice(0,l):null);e[c]=f.sort(e[c])}}return JZe.add(e)}const JZe=new Tn;class x${constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}x$.empty=new x$([],2,null);function eGe(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let a of s.tag)n[a.id]=s.class;let{scope:i,all:r=null}={};return{style:s=>{let a=r;for(let o of s)for(let l of o.set){let c=n[l.id];if(c){a=a?a+" "+c:c;break}}return a},scope:i}}const Ce=oo.define,Tb=Ce(),ec=Ce(),QN=Ce(ec),zN=Ce(ec),tc=Ce(),Ab=Ce(tc),u_=Ce(tc),io=Ce(),sf=Ce(io),Ka=Ce(),Ja=Ce(),S$=Ce(),Rm=Ce(S$),Eb=Ce(),fe={comment:Tb,lineComment:Ce(Tb),blockComment:Ce(Tb),docComment:Ce(Tb),name:ec,variableName:Ce(ec),typeName:QN,tagName:Ce(QN),propertyName:zN,attributeName:Ce(zN),className:Ce(ec),labelName:Ce(ec),namespace:Ce(ec),macroName:Ce(ec),literal:tc,string:Ab,docString:Ce(Ab),character:Ce(Ab),attributeValue:Ce(Ab),number:u_,integer:Ce(u_),float:Ce(u_),bool:Ce(tc),regexp:Ce(tc),escape:Ce(tc),color:Ce(tc),url:Ce(tc),keyword:Ka,self:Ce(Ka),null:Ce(Ka),atom:Ce(Ka),unit:Ce(Ka),modifier:Ce(Ka),operatorKeyword:Ce(Ka),controlKeyword:Ce(Ka),definitionKeyword:Ce(Ka),moduleKeyword:Ce(Ka),operator:Ja,derefOperator:Ce(Ja),arithmeticOperator:Ce(Ja),logicOperator:Ce(Ja),bitwiseOperator:Ce(Ja),compareOperator:Ce(Ja),updateOperator:Ce(Ja),definitionOperator:Ce(Ja),typeOperator:Ce(Ja),controlOperator:Ce(Ja),punctuation:S$,separator:Ce(S$),bracket:Rm,angleBracket:Ce(Rm),squareBracket:Ce(Rm),paren:Ce(Rm),brace:Ce(Rm),content:io,heading:sf,heading1:Ce(sf),heading2:Ce(sf),heading3:Ce(sf),heading4:Ce(sf),heading5:Ce(sf),heading6:Ce(sf),contentSeparator:Ce(io),list:Ce(io),quote:Ce(io),emphasis:Ce(io),strong:Ce(io),link:Ce(io),monospace:Ce(io),strikethrough:Ce(io),inserted:Ce(),deleted:Ce(),changed:Ce(),invalid:Ce(),meta:Eb,documentMeta:Ce(Eb),annotation:Ce(Eb),processingInstruction:Ce(Eb),definition:oo.defineModifier(),constant:oo.defineModifier(),function:oo.defineModifier(),standard:oo.defineModifier(),local:oo.defineModifier(),special:oo.defineModifier()};eGe([{tag:fe.link,class:"tok-link"},{tag:fe.heading,class:"tok-heading"},{tag:fe.emphasis,class:"tok-emphasis"},{tag:fe.strong,class:"tok-strong"},{tag:fe.keyword,class:"tok-keyword"},{tag:fe.atom,class:"tok-atom"},{tag:fe.bool,class:"tok-bool"},{tag:fe.url,class:"tok-url"},{tag:fe.labelName,class:"tok-labelName"},{tag:fe.inserted,class:"tok-inserted"},{tag:fe.deleted,class:"tok-deleted"},{tag:fe.literal,class:"tok-literal"},{tag:fe.string,class:"tok-string"},{tag:fe.number,class:"tok-number"},{tag:[fe.regexp,fe.escape,fe.special(fe.string)],class:"tok-string2"},{tag:fe.variableName,class:"tok-variableName"},{tag:fe.local(fe.variableName),class:"tok-variableName tok-local"},{tag:fe.definition(fe.variableName),class:"tok-variableName tok-definition"},{tag:fe.special(fe.variableName),class:"tok-variableName2"},{tag:fe.definition(fe.propertyName),class:"tok-propertyName tok-definition"},{tag:fe.typeName,class:"tok-typeName"},{tag:fe.namespace,class:"tok-namespace"},{tag:fe.className,class:"tok-className"},{tag:fe.macroName,class:"tok-macroName"},{tag:fe.propertyName,class:"tok-propertyName"},{tag:fe.operator,class:"tok-operator"},{tag:fe.comment,class:"tok-comment"},{tag:fe.meta,class:"tok-meta"},{tag:fe.invalid,class:"tok-invalid"},{tag:fe.punctuation,class:"tok-punctuation"}]);const tGe=312,qN=1,nGe=2,iGe=3,rGe=4,sGe=313,aGe=315,oGe=316,lGe=5,cGe=6,fGe=0,_$=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ZZ=125,uGe=59,C$=47,dGe=42,hGe=43,pGe=45,mGe=60,gGe=44,vGe=63,bGe=46,yGe=new LW({start:!1,shift(t,e){return e==lGe||e==cGe||e==aGe?t:e==oGe},strict:!1}),wGe=new Ep((t,e)=>{let{next:n}=t;(n==ZZ||n==-1||e.context)&&t.acceptToken(sGe)},{contextual:!0,fallback:!0}),kGe=new Ep((t,e)=>{let{next:n}=t,i;_$.indexOf(n)>-1||n==C$&&((i=t.peek(1))==C$||i==dGe)||n!=ZZ&&n!=uGe&&n!=-1&&!e.context&&t.acceptToken(tGe)},{contextual:!0}),OGe=new Ep((t,e)=>{let{next:n}=t;if(n==hGe||n==pGe){if(t.advance(),n==t.next){t.advance();let i=!e.context&&e.canShift(qN);t.acceptToken(i?qN:nGe)}}else n==vGe&&t.peek(1)==bGe&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(iGe))},{contextual:!0});function d_(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const xGe=new Ep((t,e)=>{if(t.next!=mGe||!e.dialectEnabled(fGe)||(t.advance(),t.next==C$))return;let n=0;for(;_$.indexOf(t.next)>-1;)t.advance(),n++;if(d_(t.next,!0)){for(t.advance(),n++;d_(t.next,!1);)t.advance(),n++;for(;_$.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==gGe)return;for(let i=0;;i++){if(i==7){if(!d_(t.next,!0))return;break}if(t.next!="extends".charCodeAt(i))break;t.advance(),n++}}t.acceptToken(rGe,-n)}),SGe=KZe({"get set async static":fe.modifier,"for while do if else switch try catch finally return throw break continue default case":fe.controlKeyword,"in of await yield void typeof delete instanceof":fe.operatorKeyword,"let var const using function class extends":fe.definitionKeyword,"import export from":fe.moduleKeyword,"with debugger as new":fe.keyword,TemplateString:fe.special(fe.string),super:fe.atom,BooleanLiteral:fe.bool,this:fe.self,null:fe.null,Star:fe.modifier,VariableName:fe.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":fe.function(fe.variableName),VariableDefinition:fe.definition(fe.variableName),Label:fe.labelName,PropertyName:fe.propertyName,PrivatePropertyName:fe.special(fe.propertyName),"CallExpression/MemberExpression/PropertyName":fe.function(fe.propertyName),"FunctionDeclaration/VariableDefinition":fe.function(fe.definition(fe.variableName)),"ClassDeclaration/VariableDefinition":fe.definition(fe.className),PropertyDefinition:fe.definition(fe.propertyName),PrivatePropertyDefinition:fe.definition(fe.special(fe.propertyName)),UpdateOp:fe.updateOperator,"LineComment Hashbang":fe.lineComment,BlockComment:fe.blockComment,Number:fe.number,String:fe.string,Escape:fe.escape,ArithOp:fe.arithmeticOperator,LogicOp:fe.logicOperator,BitOp:fe.bitwiseOperator,CompareOp:fe.compareOperator,RegExp:fe.regexp,Equals:fe.definitionOperator,Arrow:fe.function(fe.punctuation),": Spread":fe.punctuation,"( )":fe.paren,"[ ]":fe.squareBracket,"{ }":fe.brace,"InterpolationStart InterpolationEnd":fe.special(fe.brace),".":fe.derefOperator,", ;":fe.separator,"@":fe.meta,TypeName:fe.typeName,TypeDefinition:fe.definition(fe.typeName),"type enum interface implements namespace module declare":fe.definitionKeyword,"abstract global Privacy readonly override":fe.modifier,"is keyof unique infer":fe.operatorKeyword,JSXAttributeValue:fe.attributeValue,JSXText:fe.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":fe.angleBracket,"JSXIdentifier JSXNameSpacedName":fe.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":fe.attributeName,"JSXBuiltin/JSXIdentifier":fe.standard(fe.tagName)}),_Ge={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},CGe={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},$Ge={__proto__:null,"<":187},PGe=Gg.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`QWO'#CzO!0eO!0LbO'#DOO!1RQ7[O,5<dO!1YQWO,5<fO!2uQ$ISO'#GVO!3SQWO'#GWO!3XQWO'#GWO!4wQ$ISO'#G[O!5sQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6fQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6pQWO'#JfO!7OQWO'#JeO!7WQWO'#CuOOQ?Mr'#Cx'#CxOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3XQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9YQ?NdO1G0|O#9pQ?NdO1G0|O#<gQ?NdO1G0|O#<nQ?NdO1G0|O#?OQ?NdO1G0|O#?]Q?NdO1G0|O#AWQ?NdO1G0|O#DWQ07bO'#CiO#FRQ07bO1G1_O#FYQ07bO'#JnO#FmQ?NdO,5?WOOQ?Mp-E<j-E<jO#GaQ?NdO1G0|OOQ?Mr1G0|1G0|O#IiQ7[O'#JwO#IsQWO,5:uO#IxQ?NdO1G1bO#JlQ&jO,5<VO#JtQ&jO,5<WO#J|Q&jO'#FnO#KeQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#KjQ&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#K{Q07bO'#JmO#LVQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#L[Q`O'#KSOOQ?Mr,5<c,5<cO#LdQ`O,5<cOOQ?Mr,59f,59fO!&_Q7[O'#DQOOOO'#I^'#I^O#LiO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#LtQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#MdQ7[O,5=UO!+hQ7[O'#IsO#NVQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#NaQpO'#CrO#NtQ$ISO'#EoO$ sQ`O'#G`O$!aQpO,5<qO$!hQWO'#KWO9WQWO'#KWO$!vQWO,5<sO!+hQ7[O,5<rO$!{QWO'#GXO$#^QWO,5<rO$#cQpO'#GUO$#pQpO'#KXO$#zQWO'#KXO!&_Q7[O'#KXO$$PQWO,5<vO$$UQ`O'#GaO!5nQ`O'#GaO$$gQWO'#GcO$$lQWO'#GeO!3XQWO'#GhO$$qQ?MxO'#IpO$$|Q`O,5<zOOQ?Mv,5<z,5<zO$%TQ`O'#GaO$%cQ`O'#GbO$%kQ`O'#GbO$%pQ7[O,5=UO$&QQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$&bQWO'#IuO$&mQWO,5@PO$&uQWO,59aO$'iQ!LSO,59rOOQ?Mr'#Jk'#JkO$([Q7[O,5<iO$(}Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$)XQWO,5<tO$)^Q7[O,5<yO$)nQWO'#JzO!$[Q^O1G2PO$)sQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$)xQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$+zQ?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$.OQ7[O'#EhOOQ?Mp,5@O,5@OO$.YQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$.kQWO1G0rO$.pQWO'#CiO$.{QWO'#KaO$/TQWO,5=xO$/YQWO'#KaO$/_QWO'#KaO$/mQWO'#I}O$/{QWO,5@zO$0TQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$0[QWO1G3cO$0aQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$0fQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$0kQWO1G3PO$0sQ`O'#G}OOQU1G3R1G3RO!5nQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$0{Q7[O,5=qO9^QWO,5=qO$$lQWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$1ZQWO'#K_O$1fQWO,5=tOOQU1G.k1G.kO$1kQ?MxO1G.kO@fQWO1G.kO$1vQWO1G.kO9hQ?MxO1G.kO$4OQrO,5@|O$4]QWO,5@|O9WQWO,5@|O$4hQ^O,5={O$4oQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$4tQ^O1G3qO$8xQ^O'#HpOOQU1G3t1G3tO$9VQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$9_Q^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$=fQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$=kQ07bO,5:UOOQO,5;],5;]O$=uQ`O'#IaO$>]QWO,5@[OOQ?Mr1G/o1G/oO$>eQ`O'#IgO$>oQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$>wQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$?OQ?MxO1G0jO$?ZQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$?iQ?MxO1G0jOOQO1G0Z1G0ZO$?}Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$@XQpO,5<gO$@aQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$@kQWO1G5uO$@sQWO1G6TO$@{QrO1G6UO9WQWO,5?QO$AVQ?NdO1G6RO%[Q^O1G6RO$AgQ?MxO1G6RO$AxQWO1G6QO$AxQWO1G6QO9WQWO1G6QO$BQQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$BfQWO,5?TO$)nQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$BtQWO7+(bO$CPQ7[O7+(bO$C_Q?NdO,5=UO$EgQ?NdO,5=WO$GoQ?NdO,5=UO$I}Q?NdO,5=WO$L]Q?NdO,59rO$NbQ?NdO,5<iO%!jQ?NdO,5<kO%$rQ?NdO,5<yOOQ?Mr7+&^7+&^O%'QQ?NdO7+&^O%'tQ^O'#IbO%(RQWO,5@^O%(ZQrO,5@^OOQ?Mr1G/|1G/|O%(eQWO7+&gOOQ?Mr7+&g7+&gO%(jQ07bO,5:cO%[Q^O7+&yO%(tQ07bO,5:_O%)RQ07bO,5:gO%)]Q07bO,5:iO%)gQ7[O'#IeO%)qQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%)yQtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%*UQWO1G1{OOQ?Mr1G1}1G1}O%*ZQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%*bQ?NdO7+'jOOQ?Mr,5?Y,5?YO%+UQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%+tQ7[O,5?]OOQ?Mr-E<o-E<oO%,gQ7[O,5?_OOQ?Mr-E<q-E<qO%,qQpO1G2tO%,xQpO'#CrO%-`Q7[O'#J}O%-gQ^O'#EqOOQ?Mr1G2]1G2]O%-qQWO'#ImO%.VQWO,5@rO%.VQWO,5@rO%._QWO,5@rO%.jQWO,5@rOOQO1G2_1G2_O%.xQ7[O1G2^O!+hQ7[O1G2^O%/YQ$ISO'#IoO%/gQWO,5@sO!&_Q7[O,5@sO%/oQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$)nQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%/yQWO,5<}OOQ?Mp,5=P,5=PO$)nQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5nQ`O,5<{O%0RQWO,5<|O$$gQWO,5<}O!5nQ`O,5<|O!+hQ7[O'#IqO%0uQ7[O1G2pO!+hQ7[O'#IsO%1hQ7[O1G2rO%1rQ7[O1G5lO%1|Q7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%2ZQWO1G2XO!+hQ7[O1G2`O%2`Q?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%3SQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%3XQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$BwQWO7+(bO%3cQ?NbO'#CiO%3vQ?NbO,5=QO%4hQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%4mQWO'#I|O%5UQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%5UQWO,5@{O%5^QWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%5cQWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%5hQ?NbO7+(jO!&_Q7[O7+(jO%5rQpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%5yQWO'#K^O%6UQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%7eQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%7lQWO1G3]O%7wQ7[O1G3]O9hQ?MxO1G3_O$$lQWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%8VQWO'#I{O%8kQWO,5@yO%8sQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%9OQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%9TQ?MxO1G6hO%9_Q^O1G3gO%9fQWO1G3gO%9kQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%9rQ^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%:PQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%:UQ`O1G5wO%:jQ07bO1G0wO%:tQWO1G0wOOQO1G/p1G/pO%;PQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$?}Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%;ZQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%;fQ?MxO7+&UO%;tQ?NdO7++mO%[Q^O7++mO%<UQWO7++lO%<UQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%<^QWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%<lQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%<tQWO<<K|O%=PQ?NdO,5?]O%?XQ?NdO,5?_O%AaQ?NdO1G2^O%CoQ?NdO1G2pO%EwQ?NdO1G2rO%HPQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%HZQWO1G5xOOQ?Mr<<JR<<JRO%HcQ07bO1G0rO%JjQ07bO1G0|O%JqQ07bO1G0|O%LrQ07bO1G0|O%LyQ07bO1G0|O%NkQ07bO1G0|O& RQ07bO1G0|O&#cQ07bO1G0|O&#jQ07bO1G0|O&%eQ07bO1G0|O&%rQ07bO1G0|O&'mQ07bO1G0|O&(QQ?NdO<<JeO&)VQ07bO1G0|O&*xQ07bO'#JgO&,{Q07bO1G1bO&-YQ07bO1G0RO&-dQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&-nQWO1G1sO&-sQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&0TQrO'#CiO&0_QWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&0mQWO1G6^O&0mQWO1G6^O&0uQWO1G6^O&1QQ7[O7+'xO&1bQpO,5?ZO&1lQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&1qQpO1G6_O&1{QWO1G6_OOQ?Mp1G2h1G2hO$)nQWO1G2hOOQ?Mp1G2g1G2gO&2TQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&2YQWO1G2iO&2bQWO1G2hO&3UQ7[O,5?]OOQ?Mr-E<p-E<pO&3wQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&4RQWO1G/`OOQ?Mr7+'s7+'sO&4WQ7[O7+'zO&4hQ?NdO<<KVOOQ?Mr<<KV<<KVO&5[QWO1G0wO!&_Q7[O'#IvO&5aQWO,5@tO&7cQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&7jQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&8^QWO,5?hO&8cQWO,5?hOOQO-E<z-E<zO&8qQWO1G6gO&8qQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&8yQWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%5hQ?NbO<<LUOOQU<<LV<<LVO%5rQpO<<LVO&9OQ`O'#IxO&9ZQWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%-gQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&9cQ`O,5=rOOQU,5=r,5=rO&9jQ`O'#EdO&:OQWO7+(wO&:TQWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&:]QWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$$lQWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&:hQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&:sQWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&:{QWO7+,SO&;QQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&;VQWO7+)RO&;[Q^O7+)RO&;cQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&;hQWO,5>]OOQU,5>_,5>_O&;mQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&;rQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$?}Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&;|Q?MxO<<IpO&<XQ?NdO<= XO&<iQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&<qQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&<xQWOANAhO%[Q^OANAhO&=QQ?NdO7+'xO&?`Q?NdO,5?]O&AhQ?NdO,5?_O&CpQ?NdO7+'zO&FOQrO1G4hO&FYQ07bO7+&^O&HZQ07bO,5=UO&J_Q07bO,5=WO&JoQ07bO,5=UO&KPQ07bO,5=WO&KaQ07bO,59rO&MdQ07bO,5<iO' dQ07bO,5<kO'#dQ07bO,5<yO'%VQ07bO7+'jO'%dQ07bO7+'kO'%qQWO,5<[OOQO7+'_7+'_O'%vQ7[O<<KzOOQO1G4s1G4sO'%}QWO1G4sO'&YQWO1G4sO'&hQWO7++xO'&hQWO7++xO!&_Q7[O1G4uO'&pQpO1G4uO'&zQWO7++yOOQ?Mp7+(S7+(SO$)nQWO7+(TO''SQpO7+(TOOQ?Mp7+(R7+(RO$)nQWO7+(SO''ZQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO''`Q7[O<<NrOOQ?Mr7+$z7+$zO''jQpO,5?bOOQO-E<t-E<tO''tQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'(UQWO1G5SO'(ZQWO7+,RO'(ZQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'(cQWO,5?dOOQO-E<v-E<vO'(nQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%-gQ^O,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&:OQWO<<LcO'(xQWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$$lQWO<<LeO9RQWO<<LeO')QQ`O1G5RO')]QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO')eQWO<= nO')jQWO<= oOOQU<<Lm<<LmO')oQWO<<LmO')tQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'){QWO<<I}O'*WQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$?}Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'*bQrOG27SO4UQrOG27SO'*iQWOG27SO'*qQ07bO<<JeO'+OQ07bO1G2^O',qQ07bO,5?]O'.qQ07bO,5?_O'0qQ07bO1G2pO'2qQ07bO1G2rO'4qQ07bO<<KVO'5OQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'5]QWO7+*_O'5hQWO<= dO'5pQpO7+*aOOQ?Mp<<Ko<<KoO$)nQWO<<KoOOQ?Mp<<Kn<<KnO'5zQpO<<KoO$)nQWO<<KnOOQO7+*n7+*nO9^QWO7+*nO'6RQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'6ZQWO7+,OO&:OQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'6cQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$$lQWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'6kQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$?}Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'6pQrOLD,nO'6wQ07bO7+'xO'8jQ07bO,5?]O':jQ07bO,5?_O'<jQ07bO7+'zO'>]Q7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$)nQWOANAZOOQ?MpANAYANAYOOQO<<NY<<NYOOQULD-ZLD-ZO'>mQ07bO7+*jOOQUG27iG27iO&:OQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'>wQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'?RQ?NdOG27QOOQ?MpG26uG26uOOQULD-TLD-TO&:OQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'AaQ07bOG27QO!(oQ^O'#DwO1PQWO'#EUO'CSQrO'#JmO'CZQMnO'#DsO'CbQ^O'#D{O'CiQrO'#CiO'FPQrO'#CiO!(oQ^O'#D}O'FaQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'HdQWO,5<gO'HlQ7[O,5;bO'JVQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'HlQ7[O'#GjO!&_Q7[O'#GlO'HlQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'HlQ7[O'#F}O!&_Q7[O'#GPO'HlQ7[O'#GPO!&_Q7[O'#G_O'HlQ7[O'#G_O!(oQ^O,5:gO'J^Q`O'#D[O!(oQ^O,5@jO'FaQ^O1G0rO'JhQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'HlQ7[O'#IqO!&_Q7[O'#IsO'HlQ7[O'#IsO'JrQpO'#CrO!&_Q7[O,5<rO'HlQ7[O,5<rO'FaQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'HlQ7[O1G2^O!&_Q7[O'#IqO'HlQ7[O'#IqO!&_Q7[O'#IsO'HlQ7[O'#IsO!&_Q7[O1G2`O'HlQ7[O1G2`O'FaQ^O7+'kO'FaQ^O7+&^O!&_Q7[OANAfO'HlQ7[OANAfO'KVQWO'#ElO'K[QWO'#ElO'KdQWO'#F[O'KiQWO'#EvO'KnQWO'#KOO'KyQWO'#J|O'LUQWO,5;WO'LZQ7[O,5<dO'LbQWO'#GWO'LgQWO'#GWO'LlQWO,5<eO'LtQWO,5;WO'L|Q07bO1G1_O'MTQWO,5<rO'MYQWO,5<rO'M_QWO,5<tO'MdQWO,5<tO'MiQWO1G2PO'MnQWO1G0rO'MsQ7[O<<KzO'MzQ7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3XQWO'#GWO!3XQWO'#GWO!3XQWO'#GYO!3XQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%,qQpO1G2tO%,qQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",stateData:"( O~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y:lO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O:pO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O:qO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$]OR#zO[$cOo$QO}#yO!P#{O!Y$`O!i#xO!m$]O#O$SO#k$OO#l$PO#m$PO#n$PO#o$RO#p$SO#q$SO#r$bO#s$SO#u$TO#w$VO#y$XO#z$YO([VO(m$ZO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%WOm%XOo$uOp$tOq$tOw%YOy%ZO{%[O!P$|O![$}O!f%aO!i$yO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$vO(t%OO(u%QOg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%WO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$SO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y:lO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%WO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$]OR#zO[$cOo$QO}#yO!P#{O!Y(RO!i#xO!m$]O#O$SO#k$OO#l$PO#m$PO#n$PO#o$RO#p$SO#q$SO#r$bO#s$SO#u$TO#w$VO#y$XO#z$YO([VO(m$ZO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!kaYO(QTO(TUO([VO(j[O(y<dO~O!Y$`Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%WOm%XOo$uOp$tOq$tOw%YOy%ZO{%[O!P$|O![$}O!f%aO!i$yO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$vO(t%OO(u%QO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOp)uO~Ou)vO(])wO(^)yO~Ok*SO}){O!P)|O(t%OO(u%QO~Og)zO~P!0pOg*TO~Oh%WOm%XOo$uOp$tOq$tOw%YOy%ZO{;YO!P*VO![*WO!f<jO!i$yO#g;`O$V%_O$r;[O$t;^O$w%`O(QTO(TUO([$vO(t%OO(u%QO~O!X*ZO(O*UO!h(zP~P!1_O#h*]O~O!i*^O~Oh%WOm%XOo$uOp$tOq$tOw%YOy%ZO{;YO!P$|O![$}O!f<jO!i$yO#g;`O$V%_O$r;[O$t;^O$w%`O(O*`O(QTO(TUO([$vO(t%OO(u%QO~O!X*cO!V({P~P!3^Oo*oO!P*gO!_*mO!`*fO!a*fO!i*^O#X*nO%]*iO(P!lO(`!mO~O!Z*lO~P!5RO#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5zOk*tO#]*sOg(YX!Y(YX~O!Y*uOg(XX~O(O&WOg(XP~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$]OR#zO[$cOo$QO}#yO!P#{O!i#xO!m$]O#O$SO#k$OO#l$PO#m$PO#n$PO#o$RO#p$SO#q$SO#r$bO#s$SO#u$TO#w$VO#y$XO#z$YO([VO(m$ZO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%WOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%WO!i%cO~Oh%WO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%WO#]+zO~Oh%WOk+}O![$}O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%WO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP:kOQ:kOSfOd<fOe!iOmkOo:kOpkOqkOwkOy:kO{:kO!PWO!TkO!UkO![!eO!f:nO!iZO!l:kO!m:kO!n:kO!p:oO!r:rO!u!hO$V!kO(QTO(TUO([VO(j[O(y<dO~O(O;fO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%WOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk<pO}){O!P)|O(t%OO(u%QO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5zO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$]OR#zO}#yO!P#{O!i#xO!m$]O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$]OR#zO}#yO!P#{O!i#xO!m$]O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~Oo#ji~P#4kOo$QO~P#4kOP$]OR#zOo$QO}#yO!P#{O!i#xO!m$]O#k$OO#l$PO#m$PO#n$PO#o$RO([VOa#ji!Y#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O[#ji#O#ji#p#ji#q#ji#r#ji#s#ji~P#7YO[$cO#O$SO#p$SO#q$SO#r$bO#s$SO~P#7YOP$]OR#zO[$cOo$QO}#yO!P#{O!i#xO!m$]O#O$SO#k$OO#l$PO#m$PO#n$PO#o$RO#p$SO#q$SO#r$bO#s$SO#u$TO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$VO~P#:WO#w#ji~P#:WOP$]OR#zO[$cOo$QO}#yO!P#{O!i#xO!m$]O#O$SO#k$OO#l$PO#m$PO#n$PO#o$RO#p$SO#q$SO#r$bO#s$SO#u$TO([VOa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w#ji(t#ji(u#ji~P#<uO#w$VO(t#|O(u#}O~P#<uOP$]OR#zO[$cOo$QO}#yO!P#{O!i#xO!m$]O#O$SO#k$OO#l$PO#m$PO#n$PO#o$RO#p$SO#q$SO#r$bO#s$SO#u$TO#w$VO#y$XO([VO(t#|O(u#}O~Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~P#?jOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#BQOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O#z;OO([VO(m$ZO(t#|O(u#}O~O#}.sO~P#D_O#P$dO#];TO$P;TO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mOP#jiR#ji[#jia#jio#ji!Y#ji!i#ji!m#ji#O#ji#k#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji([#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~P#.aO!Y.wOg(kX~P!0pOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;PO!Z(aX~P#D_O!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)vO(])wO(^/WO~O!V/[O~P!&_O(t%OOk%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#L{O(u%QOk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#MnO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1_Oo*oO!_*mO!`*fO!a*fO!i*^O#X*nO%]*iO(P!lO~Op'XO!P/fO!X+UO!Z*lO(QTO(TUO(`;cO!Z(sP~P$ XO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*ZO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%WOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!5RO!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0pOg%`a!Y%`a#]%`a#}%`a~P!0pO(O&WOg'iX!Y'iX~O!Y*uOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$&zO}){O!P)|Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$'sO}){O!P)|Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$(fO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0pO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$*TOh%WOo$uOp$tOq$tOw%YOy%ZO{;YO!P$|O![$}O!f<jO!i$yO#g;`O$V%_O$r;[O$t;^O$w%`O(QTO(TUO([$vO(t%OO(u%QO~Om0pO(O0oO~P$,kO!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$}O~O(`(xO!Z)QP~Oh%WOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$2RO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#D_Op!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$`Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%WOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#L{O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#MnO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$&zO#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$'sO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$(fO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#D_O#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO}){O!P)|O(u%QOk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%+]O}){O!P)|Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%,OO(m$ZO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O;lO~P!1_OmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0pO!X4YO!V'cX!Y'cX~P!3^O!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O(t%OOk%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%0^O(u%QOk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%1POg(Yi!Y(Yi~P!0pO#]4lOg(Yi!Y(Yi~P!0pO!h4oO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4sO~O!Y4tO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4wOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4wO~Ob4}O%g5OO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5SO~O`5TO~Oa%lO'u%lO~P#.aO![$}O~P#.aO!Y5]O#]5_O!Z)QX~O!Z5`O~Op!nO!P5aO!_!yO!`!vO!a!vO!y:lO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5fO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5eO~P%6ZOk5kO![1aO%f5jO~Oh%WOk5kO![1aO%f5jO~Ob5rO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5tO~O`5xO~O#s5{O&W5|O~PMlO!h5}O~P%[Oa6PO~Oa6PO~P%[Ob2SO!Z6UO&f2RO~P`O!d6WO~O!d6YOh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#D_O#]6ZO!Y#ei!Z#ei~O!Y!^i!Z!^i~P#D_Oa%lO#]6dO'u%lO~Oa%lO!d#vO#]6dO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6kO(O%eO~O![']O%f6nO~Ok6rO![']O%f6nO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%+]O#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%,OO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%0^O#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%1PO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#D_OP$]OR#zO}#yO!P#{O!i#xO!m$]O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%HpO#k:tO~P%HpOP$]OR#zO}#yO!P#{O!i#xO!m$]O#k:tO#l:uO#m:uO#n:uO([VO[#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~Oo#ji~P%JxOo:vO~P%JxOP$]OR#zOo:vO}#yO!P#{O!i#xO!m$]O#k:tO#l:uO#m:uO#n:uO#o:wO([VO#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O[#ji#O#ji#p#ji#q#ji#r#ji#s#ji~P%MQO[;SO#O:xO#p:xO#q:xO#r;RO#s:xO~P%MQOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w:{O~P& iO#w#ji~P& iOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO([VO#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#w#ji(t#ji(u#ji~P&#qO#w:{O(t#|O(u#}O~P&#qOP$]OR#zO[;SOo:vO}#yO!P#{O!i#xO!m$]O#O:xO#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O([VO(t#|O(u#}O~O#z#ji#}#ji(m#ji!Y#ji!Z#ji~P&&POa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mOk<qO}){O!P)|O(t%OO(u%QO~OP#jiR#ji[#jio#ji!i#ji!m#ji#O#ji#k#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji([#ji(m#ji!Y#ji!Z#ji~P&(tO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#D_O#}!oi!Z!oi~P$*TOg'Xa!Y'Xa~P!0pO!Z7UO~O!Y'`a!Z'`a~P#D_OP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&-}O!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0pO!V'ca!Y'ca~P#.aO!d7]O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7aO~O!d#vO#s7fO~Oo7gO!d#vO(m'mO~O}){O!P)|O(u%QOk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&2mO}){O!P)|Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&3`O!V7iO~Og$|q!Y$|q#]$|q#}$|q~P!0pOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6YO~O!Y4tO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6nO~P&5iOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7nO~Ob7pO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7tO~O(`(xO!Y'lX!Z'lX~O!Y5]O!Z)Qa~O!Z7}O~P%6ZOp!nO!P8OO(QTO(TUO(`!mO(j!sO~O![1aO~O![1aO%f8QO~Ok8TO![1aO%f8QO~O[8YO!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8^O~O!h8_O~O!h8bO~O!h8bO~P%[Oa8dO~O!d8eO~O!h8fO~O!Y(ri!Z(ri~P#D_Oa%lO#]8nO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8qO~P&5iO![']O%f8qO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&2mO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&3`O#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#D_O(t%OOP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&FgO(u%QOP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&HkOk<qO}){O!P)|O(u%QO~P&FgOk<qO}){O!P)|O(t%OO~P&HkOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O}){O!P)|OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O}){O!P)|OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&(tO#}$lq!Y$lq!Z$lq~P#D_O#}$mq!Y$mq!Z$mq~P#D_O!Z9OO~O#}9PO~P!0pO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~O!V9VO~P#.aO!V9VO~Og(Yy!Y(Yy~P!0pO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9[O~O!Y0wO!Z)Tq~O#]9`O!Y'la!Z'la~O!Y5]O!Z)Qi~P#D_O![1aO%f9dO~O(QTO(TUO(`9iO~O!Y1lO!Z)Rq~O!h9lO~O!h9mO~O!h9nO~O!h9nO~P%[O#]9qO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#D_O%f9vO~P&5iO![']O%f9vO~O#}#{y!Y#{y!Z#{y~P#D_OP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&(tO}){O!P)|O(u%QOP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O}){O!P)|OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t%OOP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%QOP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#D_O#}#`y!Y#`y!Z#`y~P#D_O!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aO!V:PO~P#.aO!Y0wO!Z)Ty~O!Y5]O!Z)Qq~O![1aO%f:WO~O!h:ZO~O%f:`O~P&5iOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&(tO}){O!P)|O(u%QOP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O}){O!P)|OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&(tOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0pO!Y'lq!Z'lq~P#D_O!Y#e!Z!Z#e!Z~P#D_O#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&(tOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&-}OP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'CvOP:kOQ:kOSfOd<fOe!iOmkOo:kOpkOqkOwkOy:kO{:kO!PWO!TkO!UkO![XO!f:nO!iZO!l:kO!m:kO!n:kO!p:oO!r:rO!u!hO$V!kO(O)YO(QTO(TUO([VO(j[O(y<dO~O!Y;PO!Z$oa~Oh%WOm%XOo$uOp$tOq$tOw%YOy%ZO{;ZO!P$|O![$}O!f<kO!i$yO#g;aO$V%_O$r;]O$t;_O$w%`O(O(rO(QTO(TUO([$vO(t%OO(u%QO~O#t)`O~P'HlOo!bX(m!bX~P# ZO!Z]X!ZfX~P'CvO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h:sO~O!d#vO#h:sO~O#];TO~O#s:xO~O#];dO!Y(rX!Z(rX~O#];TO!Y(pX!Z(pX~O#h;eO~Og;gO~P!0pO#h;mO~O#h;nO~O!d#vO#h;oO~O!d#vO#h;eO~O#};pO~P#D_O#h;qO~O#h;rO~O#h;wO~O#h;xO~O#h;yO~O#h;zO~O#};{O~P!0pO#};|O~P!0pO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",goto:"$2y)XPPPPPP)YPP)]P)nP+O/PPPPP5wPP6_PP<U?kP@OP@OPPP@OPBOP@OP@OP@OPBSPBXPBvPGoPPPGsPPPPGsJuPPPJ{KwPGsPGsPPNVGsPPPGsPGsP!!^GsP!%s!&x!'RP!'u!'y!'u!+VPPPPPPP!+v!&xPP!,W!-QP!/tGsGs!/y!3U!7l!7l!;jPPP!;rGsPPPPPPPPPPP!?QP!@_PPGs!ApPGsPGsGsGsGsGsPGs!CSP!F]P!IbP!If!Ip!It!ItP!FYP!Ix!IxP!L}P!MRGsGs!MX#!]BS@OP@OP@O@OP##i@O@O#%s@O#(c@O#*g@O@O#+V#-c#-c#-h#-q#-c#-zP#-cP@O#.d@O#2T@O@O5wPPP#5zPPP#6e#6eP#6eP#6{#6ePP#7RP#6xP#6x#7f#6x#8Q#8W5t)]#8Z)]P#8b#8b#8bP)]P)]P)]P)]PP)]P#8h#8kP#8k)]P#8oP#8rP)]P)]P)]P)]P)]P)])]PP#8x#9O#9Z#9a#9g#9m#9s#:R#:X#:c#:i#:s#:y#;Z#;a#<R#<e#<k#<q#=P#=f#?T#?c#?j#AO#A^#Bx#CW#C^#Cd#Cj#Ct#Cz#DQ#D[#Dn#DtPPPPPPPPPP#DzPPPPPPP#Eo#Hv#JV#J^#JfPPP$ lP$ u$$m$+V$+Y$+]$+x$+{$,S$,[P$,b$,eP$-R$-V$-}$/]$/b$/xPP$/}$0T$0XP$0[$0`$0d$1Y$1q$2Y$2^$2a$2d$2j$2m$2q$2uR!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5dQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*f$}*W*kQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*mQ1k,]R;b:o%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)z+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5a5k5{5|6P6d8O8T8d8nS#q]:l!r)[$[$n'U)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gU*y%[;Y;ZQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q4}0wQ5r1lQ6p3UQ7p5OR8t6r'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gt!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5d5f$z$ti#v$b$c$d$y$|%P%R%]%^%b)v)|*O*Q*S*V*]*c*s*t+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4l4t4w5j6n7]7f8Q8q9P9d9v:W:`;R;S;U;V;W;X;[;];^;_;`;a;h;i;j;k;m;n;q;r;s;t;u;v;w;x;{;|<d<l<m<p<qQ&U|Q'R!eU'X%g*W-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ4}0wQ5W1TQ5r1lQ5u1nQ5v1qQ7p5OQ7s5TQ8]5xQ9_7tR9j8YrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<f<g[#]WZ#W#Z'U(P!b%hm#h#i#l$y%c%f(Y(d(e(f*V*Z*^+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6Y6kQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4|0wQ5Q0zQ5V1SQ5q1kQ7o5OQ7r5SQ9Z7nR:R9[!O${i$d%P%R%]%^%b*O*Q*]*s*t.w/o0V0X0d3}4l9P<d<l<m!S%wy!i!u%y%z%{'S'b'c'd'h'r*e+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5l1fS5p1j1kQ8X5q#[<h#v$b$c$y$|)v)|*S*V*c+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4t4w5j6n7]7f8Q8q9d9v:W:`;U;W;[;^;`;h;j;m;q;s;u;w;{<p<qo<i;R;S;V;X;];_;a;i;k;n;r;t;v;x;|W%Ui%W*u<dS&X!Q&fQ&Y!RQ&Z!SR+y&V${%Ti#v$b$c$d$y$|%P%R%]%^%b)v)|*O*Q*S*V*]*c*s*t+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4l4t4w5j6n7]7f8Q8q9P9d9v:W:`;R;S;U;V;W;X;[;];^;_;`;a;h;i;j;k;m;n;q;r;s;t;u;v;w;x;{;|<d<l<m<p<qT)w$v)xV*y%[;Y;ZW'X!e%g*W-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4m0`R7x5]'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<g$i$_c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)X)Z)])c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4q4z6]6c6h6w6x7R7S7z8h8l8v8|8}9s:T:[:m<ZT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gQ'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5d5fU*e$}*W*kS/y*f*mQ0S*nQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u:sQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;eS0f+R;oQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4r0g;yQ4x0tS4{0v;zQ6[2aQ6`2mQ6e2tQ7m4yQ8i6^Q8j6aQ8m6fR9p8f$d$^c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)X)Z)])c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4q4z6]6c6h6w6x7R7S7z8h8l8v8|8}9s:T:[:m<ZS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gS#q]:lQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6_2kW6l3P3R3V4vU8p6m6o6qU9u8r8s8uS:^9t9wQ:f:_R:i:gU!wQ']-]T5b1a5d!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5dT#q]:l%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)z+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5a5k5{5|6P6d6r8O8T8d8nS(y#y#zS.Y(i(j!s<Q$[$n'U)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gU$fd)[,eS(l#p'fU*r%S(s3pU0b*x.f6}Q4v0mQ6m3QQ8s6pR9w8tm!tQ!r!v!y!z']'i'j'k-]-m1a5d5fQ'q!uS(b#g1vS-k'h'tQ/k*YQ/w*eQ2v-nQ4U/lS4_/x0SQ7X4PS7d4e4gQ9R7YR9Y7gQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*YQ/v*eQ/|*hQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5n1hQ6g2vQ7W4PQ7[4US7`4_4gQ7e4fQ8V5oS9Q7X7YQ9U7aQ9W7dQ9g8WQ9}9RQ:O9VQ:Q9YQ:Y9hQ:b:PQ<T<OQ<`<XR<a<YV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)z+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5a5k5{5|6P6d6r8O8T8d8nS#wz!j!r;}$[$n'U)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gR<T<f%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)z+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5a5k5{5|6P6d6r8O8T8d8nQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*e+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5o1i1j1kS8W5p5qQ9h8X!r<O$[$n'U)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gQ<X<eR<Y<f%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)z+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5a5k5{5|6P6d6r8O8T8d8nY#bWZ#W#Z(P!b%hm#h#i#l$y%c%f(Y(d(e(f*V*Z*^+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6Y6kQ,f&l!p<P$[$n)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gR<S'UU'Y!e%g*WR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)z+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5a5k5{5|6P6d8O8T8d8n!r)[$[$n'U)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gQ,e&lQ0m+aQ3Q._Q6p3UR8t6r!b$Uc#Y%o(O(U(p(u)W)X)])c+r-p-u-z-|.k.n/X0e2p2w3]3n4q4z6c6h6w8l9s:m!P:z)Z)m-R.t2]2`3b3l3m3q3y6]6x7R7S7z8h8v8|8}:T:[<Z!f$Wc#Y%o(O(U(p(u)T)U)W)X)])c+r-p-u-z-|.k.n/X0e2p2w3]3n4q4z6c6h6w8l9s:m!T:|)Z)m-R.t2]2`3b3i3j3l3m3q3y6]6x7R7S7z8h8v8|8}:T:[<Z!^$[c#Y%o(O(U(p(u)])c+r-p-u-z-|.k.n/X0e2p2w3]3n4q4z6c6h6w8l9s:mQ3}/cz<g)Z)m-R.t2]2`3b3q3y6]6x7R7S7z8h8v8|8}:T:[<ZQ<l<nR<m<o'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gS$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gT$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$`$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)z+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5_5a5k5{5|6P6Z6d6r8O8T8d8n9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<gT$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Y$`$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)z+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5a5k5{5|6P6d6r8O8T8d8n!s<e$[$n'U)o,|-P.}2b3u5_6Z9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z<g#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5a5k5{5|6P6r8O8T8d!O%Si$d%P%R%]%^%b*O*Q*]*s*t.w/o0V0X0d3}4l9P<d<l<m#[(s#v$b$c$y$|)v)|*S*V*c+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4t4w5j6n7]7f8Q8q9d9v:W:`;U;W;[;^;`;h;j;m;q;s;u;w;{<p<qQ*}%`Q/Y){o3p;R;S;V;X;];_;a;i;k;n;r;t;v;x;|!O$zi$d%P%R%]%^%b*O*Q*]*s*t.w/o0V0X0d3}4l9P<d<l<mQ*_${U*h$}*W*kQ+O%aQ/}*i#[<V#v$b$c$y$|)v)|*S*V*c+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4t4w5j6n7]7f8Q8q9d9v:W:`;U;W;[;^;`;h;j;m;q;s;u;w;{<p<qn<W;R;S;V;X;];_;a;i;k;n;r;t;v;x;|Q<[<hQ<]<iQ<^<jR<_<k!O%Si$d%P%R%]%^%b*O*Q*]*s*t.w/o0V0X0d3}4l9P<d<l<m#[(s#v$b$c$y$|)v)|*S*V*c+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4t4w5j6n7]7f8Q8q9d9v:W:`;U;W;[;^;`;h;j;m;q;s;u;w;{<p<qo3p;R;S;V;X;];_;a;i;k;n;r;t;v;x;|noOXst!Z#d%k&o&q&r&t,k,p1|2PS*b$|*VQ,y&{Q,z&}R4X/p$z%Ti#v$b$c$d$y$|%P%R%]%^%b)v)|*O*Q*S*V*]*c*s*t+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4l4t4w5j6n7]7f8Q8q9P9d9v:W:`;R;S;U;V;W;X;[;];^;_;`;a;h;i;j;k;m;n;q;r;s;t;u;v;w;x;{;|<d<l<m<p<qQ+|&YQ1Y,OQ5Z1XR7w5[V*j$}*W*kU*j$}*W*kT5c1a5dU/{*g/f5aT4f0T8OQ+d%vQ/|*hQ0r+eQ1g,XQ5n1hQ8V5oQ9g8WR:Y9h!O%Pi$d%P%R%]%^%b*O*Q*]*s*t.w/o0V0X0d3}4l9P<d<l<mr*O$w)a*P*q+P/n0Z0[3s4V4p7V7h9|<U<b<cS0V*p0W#[;U#v$b$c$y$|)v)|*S*V*c+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4t4w5j6n7]7f8Q8q9d9v:W:`;U;W;[;^;`;h;j;m;q;s;u;w;{<p<qn;V;R;S;V;X;];_;a;i;k;n;r;t;v;x;|!^;h(q)_*X*a.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Y5[6s6v7^7b7j7l9T9X:a<n<o`;i3o6y6|7Q8w9x9{:jS;s.d3ZT;t6{8z!O%Ri$d%P%R%]%^%b*O*Q*]*s*t.w/o0V0X0d3}4l9P<d<l<mv*Q$w)a*R*p+P/_/n0Z0[3s4V4h4p7V7h9|<U<b<cS0X*q0Y#[;W#v$b$c$y$|)v)|*S*V*c+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4t4w5j6n7]7f8Q8q9d9v:W:`;U;W;[;^;`;h;j;m;q;s;u;w;{<p<qn;X;R;S;V;X;];_;a;i;k;n;r;t;v;x;|!b;j(q)_*X*a.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Y5[6s6t6v7^7b7j7l9T9X:a<n<od;k3o6z6{7Q8w8x9x9y9{:jS;u.e3[T;v6|8{rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5i1e1fU8P5g5h5lS9c8R8SS:U9b9eQ:c:VR:h:dQ&j!VR,a&fR5u1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)x$vR/V)xQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5dR'g!rQ.x)aR3t.xU#_W%f*VU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6iQ2y.QR6i2zQ)j$lR/O)jQ$phR)p$pQ$acU)^$a-t;QQ-t:mR;Q)mQ/i*YW4R/i4S7Z9SU4S/j/k/lS7Z4T4UR9S7[$X)}$w(q)_)a*X*a*p*q*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4h4j4p5Y5[6s6t6u6v6{6|7O7P7Q7V7^7b7h7j7l8w8x8y9T9X9x9y9z9{9|:a:j<U<b<c<n<oQ/q*aU4Z/q4]7_Q4]/sR7_4[S*k$}*WR0P*kr*P$w)a*p*q+P/n0Z0[3s4V4p7V7h9|<U<b<c!^.b(q)_*X*a.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Y5[6s6v7^7b7j7l9T9X:a<n<oU/`*P.b6ya6y3o6{6|7Q8w9x9{:jQ0W*pQ3Z.dU4i0W3Z8zR8z6{v*R$w)a*p*q+P/_/n0Z0[3s4V4h4p7V7h9|<U<b<c!b.c(q)_*X*a.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Y5[6s6t6v7^7b7j7l9T9X:a<n<oU/b*R.c6ze6z3o6{6|7Q8w8x9x9y9{:jQ0Y*qQ3[.eU4k0Y3[8{R8{6|Q*v%VR0^*vQ4u0kR7k4uQ+X%iR0j+XQ5^1[S7y5^9aR9a7zQ,S&[R1_,SQ5d1aR7|5dQ1m,^S5s1m8ZR8Z5uQ0x+lW5P0x5R7q9]Q5R0{Q7q5QR9]7rQ+q&OR1O+qQ2P,pR6T2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6S1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*jQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4x0tQ5U1RQ5X1VQ5m1gQ5w1rQ6R1{U6b2p2s2vQ6e2tQ7m4yQ7u5WQ7v5YQ7{5cQ8U5nQ8[5vS8k6c6gQ8m6fQ9^7sQ9f8VQ9k8]Q9r8lQ:S9_Q:X9gQ:]9sR:e:YQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*eS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4y0uQ6^2gQ6a2nQ6f2uR7c4dS$xi<dR*w%WU%Vi%W<dR0]*uQ$wiS(q#v+cS)_$b$cQ)a$dQ*X$yS*a$|*VQ*p%PQ*q%RQ*z%]Q*{%^Q+P%bQ.d;UQ.e;WQ.g;[Q.h;^Q.i;`Q/U)vS/Z)|/]Q/_*OQ/a*QQ/c*SQ/n*]S/s*c/eQ0Z*sQ0[*th0k+`.^1c3T5j6n8Q8q9d9v:W:`Q1V+zQ1X+}Q3W;hQ3X;jQ3Y;mS3o;R;SQ3s.wQ4V/oQ4W/pQ4[/rQ4h0VQ4j0XQ4p0dQ5Y1WQ5[1ZQ6s;qQ6t;sQ6u;uQ6v;wQ6{;VQ6|;XQ7O;]Q7P;_Q7Q;aQ7V3}Q7^4YQ7b4bQ7h4lQ7j4tQ7l4wQ8w;nQ8x;iQ8y;kQ9T7]Q9X7fQ9x;rQ9y;tQ9z;vQ9{;xQ9|9PQ:a;{Q:j;|Q<U<dQ<b<lQ<c<mQ<n<pR<o<qQ*x%[Q.f;YR6};ZnpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5a8OQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4n0aQ5h1dQ5y1tQ5z1uQ6O1wQ6Q1yQ6V2RQ6q3UQ7T3uQ8S5kQ8`5{Q8a5|Q8c6PQ8u6rQ9e8TR9o8d#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5a5k5{5|6P6r8O8T8dQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)X$YQ)Z$[Q)]$`Q)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r:kQ.t:nQ.u:oQ.v:rQ/X)zQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b:sQ3c:tQ3d:uQ3e:vQ3f:wQ3g:xQ3h:yQ3i:zQ3j:{Q3k:|Q3l:}Q3m;OQ3n.sQ3q;TQ3r;bQ3y;PQ4q0gQ4z0vQ6];dQ6c2rQ6h2xQ6w3^Q6x;eQ7R;gQ7S;oQ7z5_Q8h6ZQ8l6dQ8v;pQ8|;yQ8};zQ9s8nQ:T9`Q:[9qQ:m#SR<Z<gR#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5d5fS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5dQ#p]R'f:lR)b$dY!uQ']-]1a5dQ'h!rS'r!v!yS't!z5fS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6j2|2}R8o6kd#^W#W#Z%f(P(Y*V+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6kS*Y$y*^Q/l*ZQ1v,gQ2^,}Q4P/hQ6X2UQ7Y4QQ8g6YT<R'U+UV#aW%f*VU#`W%f*VS(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*WQ$lfR)t$qT)i$l)jR3w.|T*[$y*^T*d$|*VQ0l+`Q3P.^Q5g1cQ6o3TQ8R5jQ8r6nQ9b8QQ9t8qQ:V9dQ:_9vQ:d:WR:g:`nqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:yGe,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[SGe],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[kGe,OGe,xGe,2,3,4,5,6,7,8,9,10,11,12,13,14,wGe,new H3("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~",141,335),new H3("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},dialects:{jsx:0,ts:14769},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},specialized:[{term:322,get:t=>_Ge[t]||-1},{term:338,get:t=>CGe[t]||-1},{term:92,get:t=>$Ge[t]||-1}],tokenPrec:14793});function WN(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function TGe(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s<r.length;s++)n[r[s]]=!0}let i=WN(e)+WN(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function AGe(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:TGe(e);return r=>{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:n}:null}}function EGe(t,e){return n=>{for(let i=ti(n.state).resolveInner(n.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(n)}}const RGe=ta.define(),DGe=Nt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class MGe{constructor(e,n,i,r){this.field=e,this.line=n,this.from=i,this.to=r}}class nT{constructor(e,n,i){this.field=e,this.from=n,this.to=i}map(e){let n=e.mapPos(this.from,-1,Wn.TrackDel),i=e.mapPos(this.to,1,Wn.TrackDel);return n==null||i==null?null:new nT(this.field,n,i)}}class iT{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let i=[],r=[n],s=e.doc.lineAt(n),a=/^\s*/.exec(s.text)[0];for(let l of this.lines){if(i.length){let c=a,f=/^\t*/.exec(l)[0].length;for(let u=0;u<f;u++)c+=e.facet(k0);r.push(n+c.length-f),l=c+l.slice(f)}i.push(l),n+=l.length+1}let o=this.fieldPositions.map(l=>new nT(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:i,ranges:o}}static parse(e){let n=[],i=[],r=[],s;for(let a of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(a);){let o=s[1]?+s[1]:null,l=s[2]||s[3]||"",c=-1,f=l.replace(/\\[{}]/g,u=>u[1]);for(let u=0;u<n.length;u++)(o!=null?n[u].seq==o:f&&n[u].name==f)&&(c=u);if(c<0){let u=0;for(;u<n.length&&(o==null||n[u].seq!=null&&n[u].seq<o);)u++;n.splice(u,0,{seq:o,name:f}),c=u;for(let h of r)h.field>=c&&h.field++}r.push(new MGe(c,i.length,s.index,s.index+f.length)),a=a.slice(0,s.index)+l+a.slice(s.index+s[0].length)}a=a.replace(/\\([{}])/g,(o,l,c)=>{for(let f of r)f.line==i.length&&f.from>c&&(f.from--,f.to--);return l}),i.push(a)}return new iT(i,r)}}let NGe=ei.widget({widget:new class extends _0{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),LGe=ei.mark({class:"cm-snippetField"});class Lp{constructor(e,n){this.ranges=e,this.active=n,this.deco=ei.set(e.map(i=>(i.from==i.to?NGe:LGe).range(i.from,i.to)))}map(e){let n=[];for(let i of this.ranges){let r=i.map(e);if(!r)return null;n.push(r)}return new Lp(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(i=>i.field==this.active&&i.from<=n.from&&i.to>=n.to))}}const P0=it.define({map(t,e){return t&&t.map(e)}}),jGe=it.define(),h1=Pi.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(P0))return n.value;if(n.is(jGe)&&t)return new Lp(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Nt.decorations.from(t,e=>e?e.deco:ei.none)});function rT(t,e){return ee.create(t.filter(n=>n.field==e).map(n=>ee.range(n.from,n.to)))}function IGe(t){let e=iT.parse(t);return(n,i,r,s)=>{let{text:a,ranges:o}=e.instantiate(n.state,r),l={changes:{from:r,to:s,insert:ot.of(a)},scrollIntoView:!0,annotations:i?[RGe.of(i),Jn.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=rT(o,0)),o.some(c=>c.field>0)){let c=new Lp(o,0),f=l.effects=[P0.of(c)];n.state.field(h1,!1)===void 0&&f.push(it.appendConfig.of([h1,qGe,WGe,DGe]))}n.dispatch(n.state.update(l))}}function GZ(t){return({state:e,dispatch:n})=>{let i=e.field(h1,!1);if(!i||t<0&&i.active==0)return!1;let r=i.active+t,s=t>0&&!i.ranges.some(a=>a.field==r+t);return n(e.update({selection:rT(i.ranges,r),effects:P0.of(s?null:new Lp(i.ranges,r)),scrollIntoView:!0})),!0}}const BGe=({state:t,dispatch:e})=>t.field(h1,!1)?(e(t.update({effects:P0.of(null)})),!0):!1,FGe=GZ(1),QGe=GZ(-1),zGe=[{key:"Tab",run:FGe,shift:QGe},{key:"Escape",run:BGe}],UN=me.define({combine(t){return t.length?t[0]:zGe}}),qGe=Mo.highest(IZ.compute([UN],t=>t.facet(UN)));function xr(t,e){return Object.assign(Object.assign({},e),{apply:IGe(t)})}const WGe=Nt.domEventHandlers({mousedown(t,e){let n=e.state.field(h1,!1),i;if(!n||(i=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=n.ranges.find(s=>s.from<=i&&s.to>=i);return!r||r.field==n.active?!1:(e.dispatch({selection:rT(n.ranges,r.field),effects:P0.of(n.ranges.some(s=>s.field>r.field)?new Lp(n.ranges,r.field):null),scrollIntoView:!0}),!0)}}),XZ=new class extends Eo{};XZ.startSide=1;XZ.endSide=-1;const YZ=[xr("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),xr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),xr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),xr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),xr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),xr(`try {
|
||
\${}
|
||
} catch (\${error}) {
|
||
\${}
|
||
}`,{label:"try",detail:"/ catch block",type:"keyword"}),xr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),xr(`if (\${}) {
|
||
\${}
|
||
} else {
|
||
\${}
|
||
}`,{label:"if",detail:"/ else block",type:"keyword"}),xr(`class \${name} {
|
||
constructor(\${params}) {
|
||
\${}
|
||
}
|
||
}`,{label:"class",detail:"definition",type:"keyword"}),xr('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),xr('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],UGe=YZ.concat([xr("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),xr("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),xr("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),VN=new YIe,KZ=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Dm(t){return(e,n)=>{let i=e.node.getChild("VariableDefinition");return i&&n(i,t),!0}}const VGe=["FunctionDeclaration"],HGe={FunctionDeclaration:Dm("function"),ClassDeclaration:Dm("class"),ClassExpression:()=>!0,EnumDeclaration:Dm("constant"),TypeAliasDeclaration:Dm("type"),NamespaceDeclaration:Dm("namespace"),VariableDefinition(t,e){t.matchContext(VGe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function JZ(t,e){let n=VN.get(e);if(n)return n;let i=[],r=!0;function s(a,o){let l=t.sliceString(a.from,a.to);i.push({label:l,type:o})}return e.cursor(_i.IncludeAnonymous).iterate(a=>{if(r)r=!1;else if(a.name){let o=HGe[a.name];if(o&&o(a,s)||KZ.has(a.name))return!1}else if(a.to-a.from>8192){for(let o of JZ(t,a.node))i.push(o);return!1}}),VN.set(e,i),i}const HN=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,eG=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function ZGe(t){let e=ti(t.state).resolveInner(t.pos,-1);if(eG.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&HN.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let i=[];for(let r=e;r;r=r.parent)KZ.has(r.name)&&(i=i.concat(JZ(t.state.doc,r)));return{options:i,from:n?e.from:t.pos,validFor:HN}}const Af=i1.define({name:"javascript",parser:PGe.configure({props:[D5.add({IfStatement:WS({except:/^\s*({|else\b)/}),TryStatement:WS({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Xze,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:i?1:2)*t.unit},Block:Gze({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":WS({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),N5.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":eqe,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),tG={test:t=>/^JSX/.test(t.name),facet:$V({commentTokens:{block:{open:"{/*",close:"*/}"}}})},GGe=Af.configure({dialect:"ts"},"typescript"),XGe=Af.configure({dialect:"jsx",props:[E5.add(t=>t.isTop?[tG]:void 0)]}),YGe=Af.configure({dialect:"jsx ts",props:[E5.add(t=>t.isTop?[tG]:void 0)]},"typescript");let nG=t=>({label:t,type:"keyword"});const iG="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(nG),KGe=iG.concat(["declare","implements","private","protected","public"].map(nG));function JGe(t={}){let e=t.jsx?t.typescript?YGe:XGe:t.typescript?GGe:Af,n=t.typescript?UGe.concat(KGe):YZ.concat(iG);return new TV(e,[Af.data.of({autocomplete:EGe(eG,AGe(n))}),Af.data.of({autocomplete:ZGe}),t.jsx?nXe:[]])}function eXe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function ZN(t,e,n=t.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return t.sliceString(i.from,Math.min(i.to,n));return""}const tXe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),nXe=Nt.inputHandler.of((t,e,n,i,r)=>{if((tXe?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||i!=">"&&i!="/"||!Af.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:a}=s,o=a.changeByRange(l=>{var c;let{head:f}=l,u=ti(a).resolveInner(f-1,-1),h;if(u.name=="JSXStartTag"&&(u=u.parent),!(a.doc.sliceString(f-1,f)!=i||u.name=="JSXAttributeValue"&&u.to>f)){if(i==">"&&u.name=="JSXFragmentTag")return{range:l,changes:{from:f,insert:"</>"}};if(i=="/"&&u.name=="JSXStartCloseTag"){let m=u.parent,g=m.parent;if(g&&m.from==f-2&&((h=ZN(a.doc,g.firstChild,f))||((c=g.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let v=`${h}>`;return{range:ee.cursor(f+v.length,-1),changes:{from:f,insert:v}}}}else if(i==">"){let m=eXe(u);if(m&&m.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(f,f+2))&&(h=ZN(a.doc,m,f)))return{range:l,changes:{from:f,insert:`</${h}>`}}}}return{range:l}});return o.changes.empty?!1:(t.dispatch([s,a.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),iXe=()=>{const[t,e]=k.useState(!1),{dispatch:n,state:{currentString:i,preview:r}}=gr();return k.useEffect(()=>{e(!0),(async()=>{const s={payload:{config:r.svgr.config,state:r.svgr.state,svg:i},type:"svgr"};try{const o=await(await fetch(V$.svgr,{body:JSON.stringify(s),headers:{"Content-Type":"application/json"},method:"POST"})).text();n({payload:o,type:"set-svgr-result"})}catch(a){fl.error(a),n({payload:`😥 ${j("details_svgr_error")}`,type:"set-svgr-result"})}e(!1)})()},[i,n,r.svgr.config,r.svgr.state]),{loading:t}},rXe=()=>{const{dispatch:t,state:e}=gr(),{config:n,result:i}=e.preview.svgr,{copyToClipboard:r,text:s}=U$(),{loading:a}=iXe(),o=u=>{const{checked:h,id:m}=u.target;t({payload:{key:m,value:h},type:"set-svgr-config-value"})},l=hk.debounce(u=>{t({payload:u,type:"set-svgr-state-name"})},700),c=u=>{l(u.target.value)},f=()=>{r(i)};return b.jsxs("div",{className:"relative h-full border-l border-slate-500/50",children:[b.jsx(_t,{className:"absolute right-4 top-4 z-10",onClick:f,size:"xs",children:s}),!a&&b.jsx(tT,{basicSetup:{highlightActiveLine:!1},className:"cm-padding-fix h-1/2",extensions:[JGe({jsx:!0}),Ae.lineWrapping],readOnly:!0,theme:WV,value:i}),a&&b.jsx("div",{className:"flex h-1/2 items-center justify-center",children:b.jsx("svg",{height:60,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",fill:"rgb(220, 38, 38)",children:b.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1s",from:"0 50 50",repeatCount:"indefinite",to:"360 50 50",type:"rotate"})})})}),b.jsxs("div",{className:"h-1/2 shrink-0 overflow-auto p-4",children:[b.jsx("header",{className:"mb-4",children:b.jsx("h2",{className:"mt-2 text-sm font-medium",children:j("details_svgr")})}),b.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"dimensions",children:j("details_component_name")}),b.jsx("span",{className:"text-muted block pt-1",children:j("details_component_desc")})]}),b.jsx("input",{className:"input",defaultValue:e.preview.svgr.state.componentName,id:"name",onChange:c,type:"text"})]}),b.jsxs("div",{className:"mt-6 flex gap-2",children:[b.jsx("input",{checked:n.dimensions,className:"checkbox",id:"dimensions",onChange:o,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"dimensions",children:j("details_dimensions")}),b.jsx("span",{className:"text-muted block pt-1",children:j("details_dimensions_desc")})]})]}),b.jsxs("div",{className:"mt-4 flex gap-2",children:[b.jsx("input",{checked:n.ref,className:"checkbox",id:"ref",onChange:o,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"ref",children:j("details_ref")}),b.jsx("span",{className:"text-muted block pt-1",children:j("details_ref_desc")})]})]}),b.jsxs("div",{className:"mt-4 flex gap-2",children:[b.jsx("input",{checked:n.native,className:"checkbox",id:"native",onChange:o,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"native",children:j("details_native")}),b.jsx("span",{className:"text-muted block pt-1",children:j("details_native_desc")})]})]}),b.jsxs("div",{className:"mt-4 flex gap-2",children:[b.jsx("input",{checked:n.typescript,className:"checkbox",id:"typescript",onChange:o,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"typescript",children:j("details_typescript")}),b.jsx("span",{className:"text-muted block pt-1",children:j("details_typescript_desc")})]})]}),b.jsxs("div",{className:"mt-4 flex gap-2",children:[b.jsx("input",{checked:n.memo,className:"checkbox",id:"memo",onChange:o,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"export-label",htmlFor:"memo",children:j("details_memo")}),b.jsx("span",{className:"text-muted block pt-1",children:j("details_memo_desc")})]})]})]})]})};var Mm={exports:{}},h_={};function rG(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=rG(t[e]))&&(i&&(i+=" "),i+=n);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}function GN(){for(var t,e,n=0,i="";n<arguments.length;)(t=arguments[n++])&&(e=rG(t))&&(i&&(i+=" "),i+=e);return i}const sXe=Object.freeze(Object.defineProperty({__proto__:null,clsx:GN,default:GN},Symbol.toStringTag,{value:"Module"})),aXe=jne(sXe);var Zn={},Wl={},XN;function IO(){if(XN)return Wl;XN=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.dontSetMe=r,Wl.findInArray=t,Wl.int=i,Wl.isFunction=e,Wl.isNum=n;function t(s,a){for(let o=0,l=s.length;o<l;o++)if(a.apply(a,[s[o],o,s]))return s[o]}function e(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Function]"}function n(s){return typeof s=="number"&&!isNaN(s)}function i(s){return parseInt(s,10)}function r(s,a,o){if(s[a])return new Error("Invalid prop ".concat(a," passed to ").concat(o," - do not set this, set it on the child."))}return Wl}var Ul={},YN;function oXe(){if(YN)return Ul;YN=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.browserPrefixToKey=n,Ul.browserPrefixToStyle=i,Ul.default=void 0,Ul.getPrefix=e;const t=["Moz","Webkit","O","ms"];function e(){var s;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const o=(s=window.document)===null||s===void 0||(s=s.documentElement)===null||s===void 0?void 0:s.style;if(!o||a in o)return"";for(let l=0;l<t.length;l++)if(n(a,t[l])in o)return t[l];return""}function n(s,a){return a?"".concat(a).concat(r(s)):s}function i(s,a){return a?"-".concat(a.toLowerCase(),"-").concat(s):s}function r(s){let a="",o=!0;for(let l=0;l<s.length;l++)o?(a+=s[l].toUpperCase(),o=!1):s[l]==="-"?o=!0:a+=s[l];return a}return Ul.default=e(),Ul}var KN;function sT(){if(KN)return Zn;KN=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.addClassName=S,Zn.addEvent=o,Zn.addUserSelectStyles=$,Zn.createCSSTransform=g,Zn.createSVGTransform=v,Zn.getTouch=O,Zn.getTouchIdentifier=x,Zn.getTranslation=w,Zn.innerHeight=u,Zn.innerWidth=h,Zn.matchesSelector=s,Zn.matchesSelectorAndParentsTo=a,Zn.offsetXYFromParent=m,Zn.outerHeight=c,Zn.outerWidth=f,Zn.removeClassName=R,Zn.removeEvent=l,Zn.removeUserSelectStyles=T;var t=IO(),e=i(oXe());function n(_){if(typeof WeakMap!="function")return null;var P=new WeakMap,A=new WeakMap;return(n=function(N){return N?A:P})(_)}function i(_,P){if(_&&_.__esModule)return _;if(_===null||typeof _!="object"&&typeof _!="function")return{default:_};var A=n(P);if(A&&A.has(_))return A.get(_);var N={},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in _)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(_,Q)){var U=M?Object.getOwnPropertyDescriptor(_,Q):null;U&&(U.get||U.set)?Object.defineProperty(N,Q,U):N[Q]=_[Q]}return N.default=_,A&&A.set(_,N),N}let r="";function s(_,P){return r||(r=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(A){return(0,t.isFunction)(_[A])})),(0,t.isFunction)(_[r])?_[r](P):!1}function a(_,P,A){let N=_;do{if(s(N,P))return!0;if(N===A)return!1;N=N.parentNode}while(N);return!1}function o(_,P,A,N){if(!_)return;const M={capture:!0,...N};_.addEventListener?_.addEventListener(P,A,M):_.attachEvent?_.attachEvent("on"+P,A):_["on"+P]=A}function l(_,P,A,N){if(!_)return;const M={capture:!0,...N};_.removeEventListener?_.removeEventListener(P,A,M):_.detachEvent?_.detachEvent("on"+P,A):_["on"+P]=null}function c(_){let P=_.clientHeight;const A=_.ownerDocument.defaultView.getComputedStyle(_);return P+=(0,t.int)(A.borderTopWidth),P+=(0,t.int)(A.borderBottomWidth),P}function f(_){let P=_.clientWidth;const A=_.ownerDocument.defaultView.getComputedStyle(_);return P+=(0,t.int)(A.borderLeftWidth),P+=(0,t.int)(A.borderRightWidth),P}function u(_){let P=_.clientHeight;const A=_.ownerDocument.defaultView.getComputedStyle(_);return P-=(0,t.int)(A.paddingTop),P-=(0,t.int)(A.paddingBottom),P}function h(_){let P=_.clientWidth;const A=_.ownerDocument.defaultView.getComputedStyle(_);return P-=(0,t.int)(A.paddingLeft),P-=(0,t.int)(A.paddingRight),P}function m(_,P,A){const M=P===P.ownerDocument.body?{left:0,top:0}:P.getBoundingClientRect(),Q=(_.clientX+P.scrollLeft-M.left)/A,U=(_.clientY+P.scrollTop-M.top)/A;return{x:Q,y:U}}function g(_,P){const A=w(_,P,"px");return{[(0,e.browserPrefixToKey)("transform",e.default)]:A}}function v(_,P){return w(_,P,"")}function w(_,P,A){let{x:N,y:M}=_,Q="translate(".concat(N).concat(A,",").concat(M).concat(A,")");if(P){const U="".concat(typeof P.x=="string"?P.x:P.x+A),z="".concat(typeof P.y=="string"?P.y:P.y+A);Q="translate(".concat(U,", ").concat(z,")")+Q}return Q}function O(_,P){return _.targetTouches&&(0,t.findInArray)(_.targetTouches,A=>P===A.identifier)||_.changedTouches&&(0,t.findInArray)(_.changedTouches,A=>P===A.identifier)}function x(_){if(_.targetTouches&&_.targetTouches[0])return _.targetTouches[0].identifier;if(_.changedTouches&&_.changedTouches[0])return _.changedTouches[0].identifier}function $(_){if(!_)return;let P=_.getElementById("react-draggable-style-el");P||(P=_.createElement("style"),P.type="text/css",P.id="react-draggable-style-el",P.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
||
`,P.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
||
`,_.getElementsByTagName("head")[0].appendChild(P)),_.body&&S(_.body,"react-draggable-transparent-selection")}function T(_){if(_)try{if(_.body&&R(_.body,"react-draggable-transparent-selection"),_.selection)_.selection.empty();else{const P=(_.defaultView||window).getSelection();P&&P.type!=="Caret"&&P.removeAllRanges()}}catch{}}function S(_,P){_.classList?_.classList.add(P):_.className.match(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)")))||(_.className+=" ".concat(P))}function R(_,P){_.classList?_.classList.remove(P):_.className=_.className.replace(new RegExp("(?:^|\\s)".concat(P,"(?!\\S)"),"g"),"")}return Zn}var eo={},JN;function sG(){if(JN)return eo;JN=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.canDragX=r,eo.canDragY=s,eo.createCoreData=o,eo.createDraggableData=l,eo.getBoundPosition=n,eo.getControlPosition=a,eo.snapToGrid=i;var t=IO(),e=sT();function n(u,h,m){if(!u.props.bounds)return[h,m];let{bounds:g}=u.props;g=typeof g=="string"?g:c(g);const v=f(u);if(typeof g=="string"){const{ownerDocument:w}=v,O=w.defaultView;let x;if(g==="parent"?x=v.parentNode:x=w.querySelector(g),!(x instanceof O.HTMLElement))throw new Error('Bounds selector "'+g+'" could not find an element.');const $=x,T=O.getComputedStyle(v),S=O.getComputedStyle($);g={left:-v.offsetLeft+(0,t.int)(S.paddingLeft)+(0,t.int)(T.marginLeft),top:-v.offsetTop+(0,t.int)(S.paddingTop)+(0,t.int)(T.marginTop),right:(0,e.innerWidth)($)-(0,e.outerWidth)(v)-v.offsetLeft+(0,t.int)(S.paddingRight)-(0,t.int)(T.marginRight),bottom:(0,e.innerHeight)($)-(0,e.outerHeight)(v)-v.offsetTop+(0,t.int)(S.paddingBottom)-(0,t.int)(T.marginBottom)}}return(0,t.isNum)(g.right)&&(h=Math.min(h,g.right)),(0,t.isNum)(g.bottom)&&(m=Math.min(m,g.bottom)),(0,t.isNum)(g.left)&&(h=Math.max(h,g.left)),(0,t.isNum)(g.top)&&(m=Math.max(m,g.top)),[h,m]}function i(u,h,m){const g=Math.round(h/u[0])*u[0],v=Math.round(m/u[1])*u[1];return[g,v]}function r(u){return u.props.axis==="both"||u.props.axis==="x"}function s(u){return u.props.axis==="both"||u.props.axis==="y"}function a(u,h,m){const g=typeof h=="number"?(0,e.getTouch)(u,h):null;if(typeof h=="number"&&!g)return null;const v=f(m),w=m.props.offsetParent||v.offsetParent||v.ownerDocument.body;return(0,e.offsetXYFromParent)(g||u,w,m.props.scale)}function o(u,h,m){const g=!(0,t.isNum)(u.lastX),v=f(u);return g?{node:v,deltaX:0,deltaY:0,lastX:h,lastY:m,x:h,y:m}:{node:v,deltaX:h-u.lastX,deltaY:m-u.lastY,lastX:u.lastX,lastY:u.lastY,x:h,y:m}}function l(u,h){const m=u.props.scale;return{node:h.node,x:u.state.x+h.deltaX/m,y:u.state.y+h.deltaY/m,deltaX:h.deltaX/m,deltaY:h.deltaY/m,lastX:u.state.x,lastY:u.state.y}}function c(u){return{left:u.left,top:u.top,right:u.right,bottom:u.bottom}}function f(u){const h=u.findDOMNode();if(!h)throw new Error("<DraggableCore>: Unmounted during event!");return h}return eo}var Nm={},Rb={},eL;function aG(){if(eL)return Rb;eL=1,Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=t;function t(){}return Rb}var tL;function lXe(){if(tL)return Nm;tL=1,Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.default=void 0;var t=c(vL()),e=o(q$()),n=o(bL()),i=sT(),r=sG(),s=IO(),a=o(aG());function o(w){return w&&w.__esModule?w:{default:w}}function l(w){if(typeof WeakMap!="function")return null;var O=new WeakMap,x=new WeakMap;return(l=function($){return $?x:O})(w)}function c(w,O){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var x=l(O);if(x&&x.has(w))return x.get(w);var $={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var R=T?Object.getOwnPropertyDescriptor(w,S):null;R&&(R.get||R.set)?Object.defineProperty($,S,R):$[S]=w[S]}return $.default=w,x&&x.set(w,$),$}function f(w,O,x){return O=u(O),O in w?Object.defineProperty(w,O,{value:x,enumerable:!0,configurable:!0,writable:!0}):w[O]=x,w}function u(w){var O=h(w,"string");return typeof O=="symbol"?O:String(O)}function h(w,O){if(typeof w!="object"||w===null)return w;var x=w[Symbol.toPrimitive];if(x!==void 0){var $=x.call(w,O);if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(w)}const m={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let g=m.mouse,v=class extends t.Component{constructor(){super(...arguments),f(this,"dragging",!1),f(this,"lastX",NaN),f(this,"lastY",NaN),f(this,"touchIdentifier",null),f(this,"mounted",!1),f(this,"handleDragStart",O=>{if(this.props.onMouseDown(O),!this.props.allowAnyClick&&typeof O.button=="number"&&O.button!==0)return!1;const x=this.findDOMNode();if(!x||!x.ownerDocument||!x.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:$}=x;if(this.props.disabled||!(O.target instanceof $.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(O.target,this.props.handle,x)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(O.target,this.props.cancel,x))return;O.type==="touchstart"&&O.preventDefault();const T=(0,i.getTouchIdentifier)(O);this.touchIdentifier=T;const S=(0,r.getControlPosition)(O,T,this);if(S==null)return;const{x:R,y:_}=S,P=(0,r.createCoreData)(this,R,_);(0,a.default)("DraggableCore: handleDragStart: %j",P),(0,a.default)("calling",this.props.onStart),!(this.props.onStart(O,P)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)($),this.dragging=!0,this.lastX=R,this.lastY=_,(0,i.addEvent)($,g.move,this.handleDrag),(0,i.addEvent)($,g.stop,this.handleDragStop))}),f(this,"handleDrag",O=>{const x=(0,r.getControlPosition)(O,this.touchIdentifier,this);if(x==null)return;let{x:$,y:T}=x;if(Array.isArray(this.props.grid)){let _=$-this.lastX,P=T-this.lastY;if([_,P]=(0,r.snapToGrid)(this.props.grid,_,P),!_&&!P)return;$=this.lastX+_,T=this.lastY+P}const S=(0,r.createCoreData)(this,$,T);if((0,a.default)("DraggableCore: handleDrag: %j",S),this.props.onDrag(O,S)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const P=document.createEvent("MouseEvents");P.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(P)}return}this.lastX=$,this.lastY=T}),f(this,"handleDragStop",O=>{if(!this.dragging)return;const x=(0,r.getControlPosition)(O,this.touchIdentifier,this);if(x==null)return;let{x:$,y:T}=x;if(Array.isArray(this.props.grid)){let P=$-this.lastX||0,A=T-this.lastY||0;[P,A]=(0,r.snapToGrid)(this.props.grid,P,A),$=this.lastX+P,T=this.lastY+A}const S=(0,r.createCoreData)(this,$,T);if(this.props.onStop(O,S)===!1||this.mounted===!1)return!1;const _=this.findDOMNode();_&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(_.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",S),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_&&((0,a.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(_.ownerDocument,g.move,this.handleDrag),(0,i.removeEvent)(_.ownerDocument,g.stop,this.handleDragStop))}),f(this,"onMouseDown",O=>(g=m.mouse,this.handleDragStart(O))),f(this,"onMouseUp",O=>(g=m.mouse,this.handleDragStop(O))),f(this,"onTouchStart",O=>(g=m.touch,this.handleDragStart(O))),f(this,"onTouchEnd",O=>(g=m.touch,this.handleDragStop(O)))}componentDidMount(){this.mounted=!0;const O=this.findDOMNode();O&&(0,i.addEvent)(O,m.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const O=this.findDOMNode();if(O){const{ownerDocument:x}=O;(0,i.removeEvent)(x,m.mouse.move,this.handleDrag),(0,i.removeEvent)(x,m.touch.move,this.handleDrag),(0,i.removeEvent)(x,m.mouse.stop,this.handleDragStop),(0,i.removeEvent)(x,m.touch.stop,this.handleDragStop),(0,i.removeEvent)(O,m.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(x)}}findDOMNode(){var O,x;return(O=this.props)!==null&&O!==void 0&&O.nodeRef?(x=this.props)===null||x===void 0||(x=x.nodeRef)===null||x===void 0?void 0:x.current:n.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Nm.default=v,f(v,"displayName","DraggableCore"),f(v,"propTypes",{allowAnyClick:e.default.bool,children:e.default.node.isRequired,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:function(w,O){if(w[O]&&w[O].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:e.default.arrayOf(e.default.number),handle:e.default.string,cancel:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),f(v,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Nm}var nL;function cXe(){return nL||(nL=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var e=h(vL()),n=f(q$()),i=f(bL()),r=f(aXe),s=sT(),a=sG(),o=IO(),l=f(lXe()),c=f(aG());function f(x){return x&&x.__esModule?x:{default:x}}function u(x){if(typeof WeakMap!="function")return null;var $=new WeakMap,T=new WeakMap;return(u=function(S){return S?T:$})(x)}function h(x,$){if(x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var T=u($);if(T&&T.has(x))return T.get(x);var S={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in x)if(_!=="default"&&Object.prototype.hasOwnProperty.call(x,_)){var P=R?Object.getOwnPropertyDescriptor(x,_):null;P&&(P.get||P.set)?Object.defineProperty(S,_,P):S[_]=x[_]}return S.default=x,T&&T.set(x,S),S}function m(){return m=Object.assign?Object.assign.bind():function(x){for(var $=1;$<arguments.length;$++){var T=arguments[$];for(var S in T)Object.prototype.hasOwnProperty.call(T,S)&&(x[S]=T[S])}return x},m.apply(this,arguments)}function g(x,$,T){return $=v($),$ in x?Object.defineProperty(x,$,{value:T,enumerable:!0,configurable:!0,writable:!0}):x[$]=T,x}function v(x){var $=w(x,"string");return typeof $=="symbol"?$:String($)}function w(x,$){if(typeof x!="object"||x===null)return x;var T=x[Symbol.toPrimitive];if(T!==void 0){var S=T.call(x,$);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(x)}class O extends e.Component{static getDerivedStateFromProps($,T){let{position:S}=$,{prevPropsPosition:R}=T;return S&&(!R||S.x!==R.x||S.y!==R.y)?((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:S,prevPropsPosition:R}),{x:S.x,y:S.y,prevPropsPosition:{...S}}):null}constructor($){super($),g(this,"onDragStart",(T,S)=>{if((0,c.default)("Draggable: onDragStart: %j",S),this.props.onStart(T,(0,a.createDraggableData)(this,S))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),g(this,"onDrag",(T,S)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",S);const R=(0,a.createDraggableData)(this,S),_={x:R.x,y:R.y,slackX:0,slackY:0};if(this.props.bounds){const{x:A,y:N}=_;_.x+=this.state.slackX,_.y+=this.state.slackY;const[M,Q]=(0,a.getBoundPosition)(this,_.x,_.y);_.x=M,_.y=Q,_.slackX=this.state.slackX+(A-_.x),_.slackY=this.state.slackY+(N-_.y),R.x=_.x,R.y=_.y,R.deltaX=_.x-this.state.x,R.deltaY=_.y-this.state.y}if(this.props.onDrag(T,R)===!1)return!1;this.setState(_)}),g(this,"onDragStop",(T,S)=>{if(!this.state.dragging||this.props.onStop(T,(0,a.createDraggableData)(this,S))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",S);const _={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:A,y:N}=this.props.position;_.x=A,_.y=N}this.setState(_)}),this.state={dragging:!1,dragged:!1,x:$.position?$.position.x:$.defaultPosition.x,y:$.position?$.position.y:$.defaultPosition.y,prevPropsPosition:{...$.position},slackX:0,slackY:0,isElementSVG:!1},$.position&&!($.onDrag||$.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var $,T;return($=(T=this.props)===null||T===void 0||(T=T.nodeRef)===null||T===void 0?void 0:T.current)!==null&&$!==void 0?$:i.default.findDOMNode(this)}render(){const{axis:$,bounds:T,children:S,defaultPosition:R,defaultClassName:_,defaultClassNameDragging:P,defaultClassNameDragged:A,position:N,positionOffset:M,scale:Q,...U}=this.props;let z={},Y=null;const ne=!!!N||this.state.dragging,he=N||R,ve={x:(0,a.canDragX)(this)&&ne?this.state.x:he.x,y:(0,a.canDragY)(this)&&ne?this.state.y:he.y};this.state.isElementSVG?Y=(0,s.createSVGTransform)(ve,M):z=(0,s.createCSSTransform)(ve,M);const je=(0,r.default)(S.props.className||"",_,{[P]:this.state.dragging,[A]:this.state.dragged});return e.createElement(l.default,m({},U,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(S),{className:je,style:{...S.props.style,...z},transform:Y}))}}t.default=O,g(O,"displayName","Draggable"),g(O,"propTypes",{...l.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),g(O,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(h_)),h_}var iL;function fXe(){if(iL)return Mm.exports;iL=1;const{default:t,DraggableCore:e}=cXe();return Mm.exports=t,Mm.exports.default=t,Mm.exports.DraggableCore=e,Mm.exports}var uXe=fXe();const dXe=qw(uXe),Db=({type:t})=>{const{dispatch:e,state:n}=gr(),i=()=>{e({payload:t,type:"set-preview-background"})},r=n.preview.svg.background===t?"ring-red-500":"ring-gray-300 dark:ring-gray-700";return b.jsx($c,{content:j("details_background_color"),children:b.jsx("button",{className:Tt("h-6 w-6 ring-1",t,R$,r),onClick:i})})},hXe=()=>{const{dispatch:t,state:e}=gr();function n(){t({payload:String(e.preview.svg.scale+.25),type:"set-preview-scale"})}function i(){e.preview.svg.scale<=.1||t({payload:String(e.preview.svg.scale-.25),type:"set-preview-scale"})}const r=Math.round(e.preview.svg.scale*100);return b.jsx("div",{className:"border-t border-gray-200 px-4 py-3 dark:border-gray-800",children:b.jsxs("div",{className:"flex justify-between text-xs",children:[b.jsxs("section",{className:"flex items-center gap-2",children:[b.jsx($c,{content:j("zoom_out"),children:b.jsx(xc,{onClick:i,variant:"secondary",children:b.jsx(tse,{className:"h-4 w-4"})})}),r,"%",b.jsx($c,{content:j("zoom_in"),children:b.jsx(xc,{onClick:n,variant:"secondary",children:b.jsx(Xw,{className:"h-4 w-4"})})})]}),b.jsxs("section",{className:"flex items-center gap-2",children:[b.jsx(Db,{type:"white"}),b.jsx(Db,{type:"black"}),b.jsx(Db,{type:"gray"}),b.jsx(Db,{type:"transparent"})]})]})})},pXe=()=>{const{state:t}=gr(),{background:e,scale:n}=t.preview.svg;return b.jsxs(b.Fragment,{children:[b.jsx("style",{children:`#preview-svg > svg { outline-width: calc(2px / ${n}); }`}),b.jsx("div",{className:`flex-1 overflow-hidden p-4 ${e}`,id:"preview-background",children:b.jsx("div",{style:{transform:`scale(${n})`},children:b.jsx(dXe,{axis:"both",handle:".handle",scale:n,children:b.jsx("div",{className:"handle cursor-grab",dangerouslySetInnerHTML:{__html:t.currentString},id:"preview-svg"})})})}),b.jsx(hXe,{})]})},mXe=()=>{const[t,e]=k.useState(400),n=k.useRef(null),i=k.useRef(null),r=k.useCallback(o=>{if(n.current&&i.current==="left"){const l=n.current.getBoundingClientRect().right-o.clientX;l>0&&e(l)}},[]),s=k.useCallback(()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s),i.current=null},[r]),a=k.useCallback(o=>{if(n.current){const l=n.current.getBoundingClientRect(),c=20;o.clientX>=l.left-c&&o.clientX<=l.left+c&&(i.current="left",document.addEventListener("mousemove",r),document.addEventListener("mouseup",s))}},[r,s]);return k.useEffect(()=>{const o=n.current;return o&&o.addEventListener("mousedown",a),()=>{o&&o.removeEventListener("mousedown",a)}},[a]),{ref:n,width:t}},gXe=()=>{const{ref:t,width:e}=mXe();return b.jsxs("aside",{className:"relative z-10 flex h-full flex-col",ref:t,style:{width:e},children:[b.jsxs(Fn.Group,{children:[b.jsxs(Fn.List,{className:"whitespace-nowrap",children:[b.jsx(Fn.Tab,{children:j("details_preview")}),b.jsx(Fn.Tab,{children:j("details_react")}),b.jsx(Fn.Tab,{children:j("details_data_uri")})]}),b.jsxs(Fn.Panels,{className:"flex-grow overflow-auto",children:[b.jsx(Fn.Panel,{className:"flex h-full flex-col",children:b.jsx(pXe,{})}),b.jsx(Fn.Panel,{className:"h-full",children:b.jsx(rXe,{})}),b.jsx(Fn.Panel,{children:b.jsx(HZe,{})})]})]}),b.jsx("div",{className:"absolute inset-y-0 left-0 z-50 w-px cursor-ew-resize"}),b.jsx("div",{className:"absolute inset-y-1/2 -left-2 z-50 h-12 w-1 cursor-ew-resize rounded bg-gray-500/50"})]})},vXe=k.forwardRef((t,e)=>{const n=Zw(),{dispatch:i}=gr(),{dispatch:r}=Ki();return k.useEffect(()=>{i({payload:n,type:"init"}),r({payload:n.user,type:"set-user"})},[n,i,r]),b.jsxs("div",{className:"h-full overflow-hidden",ref:e,children:[b.jsx(VZe,{}),b.jsxs("main",{className:"relative flex h-[calc(100dvh-theme(space.16))]",children:[b.jsx(UZe,{}),b.jsx(BZe,{}),b.jsx(gXe,{})]})]})}),bXe=()=>b.jsxs(_j,{children:[b.jsx(Uj,{delayDuration:100,children:b.jsx(gL,{children:b.jsx(Rne,{children:b.jsx(Wt,{appear:!0,as:k.Fragment,enter:"transition-all duration-500 ease-in-out",enterFrom:"opacity-0 scale-97",enterTo:"opacity-100 scale-100",show:!0,children:b.jsx(vXe,{})})})})}),b.jsx(Cj,{className:"toast-viewport"})]});async function yXe({params:t}){const e=t.collectionId,n=await ye.getPageData(e);if(!n.data)throw new Error(`No data found for collection ${e}`);const i=n.data.find(s=>s.id===t.id);if(!i)throw new Error(`No SVG found with ID ${t.id} in collection ${e}`);const r=await ye.getStorageData("user");return{collectionId:e,svg:i,user:r}}const wXe=()=>b.jsx("div",{className:"flex min-h-screen items-center justify-center",children:b.jsx(Wt,{appear:!0,as:"div",enter:"transition-all duration-500",enterFrom:"opacity-0 scale-50",enterTo:"opacity-100 scale-100",leave:"transition-all duration-500",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-50",show:!0,children:b.jsx(mL,{className:"h-10 w-10 animate-bounce"})})}),kXe=()=>{const t=ah(),e=n=>{n.metaKey&&n.key==="["&&t(-1),n.metaKey&&n.key==="]"&&t(1)};return globalThis.addEventListener("keydown",e),()=>{globalThis.removeEventListener("keydown",e)}},OXe=()=>{const{collectionId:t}=Zw();return kXe(),b.jsx(k.Suspense,{fallback:b.jsx(wXe,{}),children:b.jsx(jL,{resolve:t,children:e=>b.jsx(Zie,{to:`/dashboard/collection/${e}`})})})},p_={createDebugData({...t}){const e={};e["Number of SVG Strings found"]=t.pageData.data.length,e["Number of SVGs created"]=t.svgClasses.length;const n={};for(const i of t.svgClasses)n[i.svgType]||(n[i.svgType]=[]),n[i.svgType].push(i);return e["SVG Classes"]=n,e["User State:"]=t.user,e["View State:"]=t.view,e["Page Data:"]=t.pageData,e},getExistingCollection:(t,e)=>e.find(n=>n.href===t),isDuplicateURL:(t,e)=>e.some(n=>n.href===t),mergePageData:(t,e)=>{const n=[...t.data,...e.data].filter((i,r,s)=>s.findIndex(a=>a.svg===i.svg)===r);return{...t,data:n}}};async function xXe(){return xL({collectionId:(async()=>{let t=await ye.getStorageData("user");t=Md.merge(Dne,t),await ye.setStorageData("user",t);let e=await ye.getStorageData("view");e=Md.merge(Mne.view,e),ye.setStorageData("view",e);let n=await ye.getStorageData("plugins");n===void 0&&(n=pk),ye.setStorageData("plugins",n);let i=await ye.getStorageData("collections");i===void 0&&(i=[]),ye.setStorageData("collections",i);const r=performance.getEntriesByType("navigation");if(r.length>0&&r[0].type==="reload")return i[0].id;try{const{data:s}=await chrome.runtime.sendMessage("gobble");if(!s.origin||!s.href||s.href.startsWith("about:"))throw new Error("Browser system page, send to first collection");const a=await rj.process(s),o=oi.createStorageSvgs(a);let l={data:o,host:s.host,href:s.href,origin:s.origin},c={href:l.href,id:xl(),name:l.host,origin:l.origin};if(fetch(V$.svgr,{body:JSON.stringify({payload:{message:o.length},type:"counter"}),headers:{"Content-Type":"application/json"},method:"POST"}),t.settings.mergeCollections&&p_.isDuplicateURL(l.href,i)){c=p_.getExistingCollection(l.href,i);const f=await ye.getPageData(c.id);l=p_.mergePageData(f,l)}else i=[c,...i];return t.settings.sortCollections&&(i=i.sort((f,u)=>f.name.localeCompare(u.name))),await ye.setStorageData("collections",i),await ye.setPageData(c.id,l),c.id}catch(s){return fl.error(s),i[0].id}})()})}const aT=({children:t,description:e,title:n})=>b.jsxs("div",{className:"grid max-w-7xl grid-cols-1 gap-x-20 gap-y-10 px-4 py-12 sm:px-6 md:grid-cols-3 lg:px-8",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-lg font-semibold leading-7",children:n}),b.jsx("p",{className:"text-muted mt-1 text-sm leading-6",children:e})]}),t]}),SXe=({children:t})=>b.jsx("h3",{className:"text-base font-semibold leading-7",children:t}),_Xe=({children:t})=>b.jsx("p",{className:"text-muted mb-6 text-sm leading-6",children:t}),CXe=({children:t})=>b.jsx("div",{className:"mb-5",children:t}),$Xe=({children:t})=>b.jsx("div",{className:"mb-5",children:t}),Dt=({children:t})=>b.jsx("div",{className:"sm:max-w-xl sm:grid-cols-6 md:col-span-2",children:t});Dt.Heading=SXe;Dt.Description=_Xe;Dt.Section=$Xe;Dt.Setting=CXe;const PXe=()=>b.jsx(aT,{description:j("settings_about_desc"),title:j("settings_about"),children:b.jsxs(Dt,{children:[b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("settings_contribute")}),b.jsxs(Dt.Description,{children:[j("settings_contribute_desc")," ",b.jsx("a",{className:"anchor",href:Ad.githubRepository,children:j("settings_contribute_desc_2")}),"."]})]}),b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("settings_bug")}),b.jsxs(Dt.Description,{children:[j("settings_bug_desc")," ",b.jsx("a",{className:"anchor",href:Ad.githubIssues,children:j("settings_open_issue")}),"."]})]}),b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("settings_disclaimer")}),b.jsx(Dt.Description,{children:j("settings_disclaimer_desc")})]})]})}),TXe=()=>{const[t,e]=k.useState([]);k.useEffect(()=>{(async()=>{const s=await ye.getStorageData("plugins");e(s??[])})()},[]);const n=r=>t.some(s=>s.name===r.name),i=r=>s=>{const{checked:a}=s.target;if(a){const o=[...t,r];e(o),ye.setStorageData("plugins",o)}else{const o=t.filter(l=>l.name!==r.name);e(o),ye.setStorageData("plugins",o)}};return b.jsx(aT,{description:j("settings_export_desc"),title:j("settings_export"),children:b.jsxs(Dt,{children:[b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("settings_default_svgo")}),b.jsx(Dt.Description,{children:j("settings_default_svgo_desc")})]}),Md.sortBy(b4,"name").map(r=>b.jsxs("div",{className:"mt-4 flex gap-2",children:[b.jsx("input",{checked:n(r),className:"checkbox",id:r.name,onChange:i(r),type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"block font-medium leading-4",htmlFor:r.name,children:r.label}),b.jsx("span",{className:"text-muted",children:r.description})]})]},r.name))]})})},AXe=()=>{const[t,e]=k.useState("");return k.useEffect(()=>{(async()=>{const r=(await chrome.commands.getAll()).find(s=>s.name==="_execute_action");e((r==null?void 0:r.shortcut)??"")})()},[]),t?b.jsx("span",{className:"text mx-1 rounded-sm bg-gray-100 px-1.5 py-1 text-base dark:bg-gray-700",children:t}):b.jsx("span",{children:"not set"})},EXe=()=>{const{dispatch:t,state:e}=Ki(),{reset:n}=sj(),{exportAllDataAsJson:i,exportAllDataAsZip:r}=ij(),{revalidate:s}=Hw(),a=f=>{const u={...e,settings:{...e.settings,warnOnRemoveCollection:f.target.checked}};t({payload:u,type:"set-user"}),ye.setStorageData("user",u)},o=f=>{const u={...e,settings:{...e.settings,mergeCollections:f.target.checked}};t({payload:u,type:"set-user"}),ye.setStorageData("user",u)},l=f=>{const u={...e,settings:{...e.settings,showInContextMenu:f.target.checked}};t({payload:u,type:"set-user"}),ye.setStorageData("user",u),f.target.checked?chrome.contextMenus.create({contexts:["all"],id:"svg-gobbler",title:"Search page for SVGs"}):chrome.contextMenus.remove("svg-gobbler")},c=async f=>{const u={...e,settings:{...e.settings,sortCollections:f.target.checked}};if(t({payload:u,type:"set-user"}),ye.setStorageData("user",u),u.settings.sortCollections){const h=await ye.getStorageData("collections");h&&(h.sort((m,g)=>m.name.localeCompare(g.name)),ye.setStorageData("collections",h)),s()}};return b.jsx(aT,{description:j("settings_general_desc"),title:j("settings_general"),children:b.jsxs(Dt,{children:[b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("launch_gobbler")}),b.jsx(Dt.Description,{children:j("launch_gobbler_desc")}),b.jsxs(Dt.Setting,{children:[b.jsx("div",{children:b.jsx("span",{className:"block pb-1 text-sm font-medium leading-4",children:j("settings_kbd")})}),j("settings_kbd_desc")," ",b.jsx(AXe,{}),". ",j("settings_kbd_desc_2"),","," ",b.jsx("span",{className:"anchor",onClick:RXe,children:j("settings_kbd_desc_3")}),"."]}),b.jsx(Dt.Setting,{children:b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{checked:e.settings.showInContextMenu,className:"checkbox",id:"import-merging",onChange:l,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",htmlFor:"import-merging",children:j("context_title")}),b.jsx("span",{className:"text-muted",children:j("context_desc")})]})]})})]}),b.jsx("div",{className:"my-6 h-px bg-gray-200 dark:bg-gray-700"}),b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("settings_collections_title")}),b.jsx(Dt.Description,{children:j("settings_collections_desc")}),b.jsx(Dt.Setting,{children:b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{checked:e.settings.warnOnRemoveCollection,className:"checkbox",id:"warn-collections",onChange:a,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",htmlFor:"warn-collections",children:j("confirm_delete")}),b.jsx("span",{className:"text-muted",children:j("confirm_delete_desc")})]})]})}),b.jsx(Dt.Setting,{children:b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{checked:e.settings.sortCollections,className:"checkbox",id:"sort-collections",onChange:c,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",htmlFor:"sort-collections",children:j("settings_sort_collections_label")}),b.jsx("span",{className:"text-muted",children:j("settings_sort_collections_desc")})]})]})}),b.jsx(Dt.Setting,{children:b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{checked:e.settings.mergeCollections,className:"checkbox",id:"import-merging",onChange:o,type:"checkbox"}),b.jsxs("div",{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",htmlFor:"import-merging",children:j("settings_merge_label")}),b.jsx("span",{className:"text-muted",children:j("settings_merge_tooltip")})]})]})})]}),b.jsx("hr",{className:"my-6"}),b.jsxs(Dt.Section,{children:[b.jsx(Dt.Heading,{children:j("settings_export_title")}),b.jsx(Dt.Description,{children:j("settings_export__desc")}),b.jsxs(Dt.Setting,{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",children:j("settings_export_data")}),b.jsx("span",{className:"text-muted mb-3 block",children:j("settings_export_data_desc")}),b.jsx(_t,{onClick:i,size:"md",variant:"secondary",children:j("settings_export_data")})]}),b.jsxs(Dt.Setting,{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",children:j("settings_export_all_svg_title")}),b.jsx("span",{className:"text-muted mb-3 block",children:j("settings_export_all_svg_desc")}),b.jsx(_t,{onClick:r,size:"md",variant:"secondary",children:j("settings_export_all_svg_button")})]}),b.jsxs(Dt.Setting,{children:[b.jsx("label",{className:"block pb-1 text-sm font-medium leading-4",children:j("settings_reset_title")}),b.jsx("span",{className:"text-muted mb-3 block",children:j("settings_reset_desc")}),b.jsx(_t,{onClick:n,size:"md",variant:"destructive",children:j("settings_reset_action")})]})]})]})})};function RXe(){chrome.tabs.update({url:"chrome://extensions/shortcuts"})}const DXe=()=>b.jsxs(Wt,{appear:!0,className:"flex h-full flex-col overflow-y-auto",enter:"transition-all duration-300 ease-in-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-all duration-300 ease-in-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,children:[b.jsxs("header",{className:"flex items-center gap-4 border-b border-gray-200 px-4 py-8 dark:border-gray-800 sm:px-6 lg:px-8",children:[b.jsx(UL,{}),b.jsx("div",{"aria-hidden":!0,className:"h-6 w-px bg-gray-200 dark:bg-gray-700 lg:hidden"}),b.jsx("h1",{className:"text-2xl font-semibold leading-none",children:j("settings_settings")})]}),b.jsxs("main",{className:"pb-20",children:[b.jsx(EXe,{}),b.jsx("div",{className:"h-px bg-gray-200 dark:bg-gray-700"}),b.jsx(TXe,{}),b.jsx("div",{className:"h-px bg-gray-200 dark:bg-gray-700"}),b.jsx(PXe,{})]})]}),MXe=()=>b.jsx(DXe,{}),NXe=()=>"";function LXe(){const t=tre([{element:b.jsx(OXe,{}),errorElement:b.jsx(nm,{}),loader:xXe,path:"/"},{children:[{element:b.jsx(q8e,{}),errorElement:b.jsx(nm,{}),loader:W8e,path:"collection/:id"},{element:b.jsx(MXe,{}),errorElement:b.jsx(nm,{}),loader:NXe,path:"settings"}],element:b.jsx(zIe,{}),errorElement:b.jsx(nm,{}),loader:qIe,path:"/dashboard"},{element:b.jsx(bXe,{}),errorElement:b.jsx(nm,{}),loader:yXe,path:"/details/:collectionId/:id"}]);return b.jsx(dre,{router:t})}Nne.createRoot(document.querySelector("#root")).render(b.jsx(LXe,{}));
|