PageSourceSearch

https://jupyterbook.org/build/_shared/chunk-7FWBVTMU.js

js jupyterbook.org collected 2026-09-24 18:18:14 UTC 1,321,541 bytes, 6,364 lines download raw bytes

1import{oa as Z6,pa as KQ}from"/build/_shared/chunk-MCEKF3CD.js";import{a as re,c as J6,d as Oe}from"/build/_shared/chunk-KB7LMXDF.js";import{a as Vv,b as p,c as w,d as Zl,e as N,f as St}from"/build/_shared/chunk-RAQ24GF6.js";var eI={};Zl(eI,{ArrayExt:()=>W,StringExt:()=>Ho,chain:()=>YQ,each:()=>ree,empty:()=>Ql,enumerate:()=>XQ,every:()=>xp,filter:()=>JQ,find:()=>xn,findIndex:()=>Q6,map:()=>_p,max:()=>Wv,min:()=>ZQ,minmax:()=>QQ,once:()=>oee,range:()=>iee,reduce:()=>nee,repeat:()=>see,retro:()=>Gv,some:()=>Bd,stride:()=>lee,take:()=>cee,toArray:()=>eee,toObject:()=>tee,topologicSort:()=>aee,zip:()=>uee});function*YQ(...r){for(let e of r)yield*e}function*Ql(){}function*XQ(r,e=0){for(let t of r)yield[e++,t]}function*JQ(r,e){let t=0;for(let i of r)e(i,t++)&&(yield i)}function xn(r,e){let t=0;for(let i of r)if(e(i,t++))return i}function Q6(r,e){let t=0;for(let i of r)if(e(i,t++))return t-1;return-1}function ZQ(r,e){let t;for(let i of r){if(t===void 0){t=i;continue}e(i,t)<0&&(t=i)}return t}function Wv(r,e){let t;for(let i of r){if(t===void 0){t=i;continue}e(i,t)>0&&(t=i)}return t}function QQ(r,e){let t=!0,i,n;for(let s of r)t?(i=s,n=s,t=!1):e(s,i)<0?i=s:e(s,n)>0&&(n=s);return t?void 0:[i,n]}function eee(r){return Array.from(r)}function tee(r){let e={};for(let[t,i]of r)e[t]=i;return e}function ree(r,e){let t=0;for(let i of r)if(e(i,t++)===!1)return}function xp(r,e){let t=0;for(let i of r)if(e(i,t++)===!1)return!1;return!0}function Bd(r,e){let t=0;for(let i of r)if(e(i,t++))return!0;return!1}function*_p(r,e){let t=0;for(let i of r)yield e(i,t++)}function*iee(r,e,t){e===void 0?(e=r,r=0,t=1):t===void 0&&(t=1);let i=Uv.rangeLength(r,e,t);for(let n=0;n<i;n++)yield r+t*n}function nee(r,e,t){let i=r[Symbol.iterator](),n=0,s=i.next();if(s.done&&t===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(s.done)return t;let o=i.next();if(o.done&&t===void 0)return s.value;if(o.done)return e(t,s.value,n++);let a;t===void 0?a=e(s.value,o.value,n++):a=e(e(t,s.value,n++),o.value,n++);let l;for(;!(l=i.next()).done;)a=e(a,l.value,n++);return a}function*see(r,e){for(;0<e--;)yield r}function*oee(r){yield r}function*Gv(r){if(typeof r.retro=="function")yield*r.retro();else for(let e=r.length-1;e>-1;e--)yield r[e]}function aee(r){let e=[],t=new Set,i=new Map;for(let o of r)n(o);for(let[o]of i)s(o);return e;function n(o){let[a,l]=o,c=i.get(l);c?c.push(a):i.set(l,[a])}function s(o){if(t.has(o))return;t.add(o);let a=i.get(o);if(a)for(let l of a)s(l);e.push(o)}}function*lee(r,e){let t=0;for(let i of r)t++%e===0&&(yield i)}function*cee(r,e){if(e<1)return;let t=r[Symbol.iterator](),i;for(;0<e--&&!(i=t.next()).done;)yield i.value}function*uee(...r){let e=r.map(i=>i[Symbol.iterator]()),t=e.map(i=>i.next());for(;xp(t,i=>!i.done);t=e.map(i=>i.next()))yield t.map(i=>i.value)}var W,Uv,Ho,Fr=p(()=>{(function(r){function e(T,O,I=0,A=-1){let D=T.length;if(D===0)return-1;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V;A<I?V=A+1+(D-I):V=A-I+1;for(let Z=0;Z<V;++Z){let we=(I+Z)%D;if(T[we]===O)return we}return-1}r.firstIndexOf=e;function t(T,O,I=-1,A=0){let D=T.length;if(D===0)return-1;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V;I<A?V=I+1+(D-A):V=I-A+1;for(let Z=0;Z<V;++Z){let we=(I-Z+D)%D;if(T[we]===O)return we}return-1}r.lastIndexOf=t;function i(T,O,I=0,A=-1){let D=T.length;if(D===0)return-1;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V;A<I?V=A+1+(D-I):V=A-I+1;for(let Z=0;Z<V;++Z){let we=(I+Z)%D;if(O(T[we],we))return we}return-1}r.findFirstIndex=i;function n(T,O,I=-1,A=0){let D=T.length;if(D===0)return-1;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V;I<A?V=I+1+(D-A):V=I-A+1;for(let Z=0;Z<V;++Z){let we=(I-Z+D)%D;if(O(T[we],we))return we}return-1}r.findLastIndex=n;function s(T,O,I=0,A=-1){let D=i(T,O,I,A);return D!==-1?T[D]:void 0}r.findFirstValue=s;function o(T,O,I=-1,A=0){let D=n(T,O,I,A);return D!==-1?T[D]:void 0}r.findLastValue=o;function a(T,O,I,A=0,D=-1){let V=T.length;if(V===0)return 0;A<0?A=Math.max(0,A+V):A=Math.min(A,V-1),D<0?D=Math.max(0,D+V):D=Math.min(D,V-1);let Z=A,we=D-A+1;for(;we>0;){let q=we>>1,se=Z+q;I(T[se],O)<0?(Z=se+1,we-=q+1):we=q}return Z}r.lowerBound=a;function l(T,O,I,A=0,D=-1){let V=T.length;if(V===0)return 0;A<0?A=Math.max(0,A+V):A=Math.min(A,V-1),D<0?D=Math.max(0,D+V):D=Math.min(D,V-1);let Z=A,we=D-A+1;for(;we>0;){let q=we>>1,se=Z+q;I(T[se],O)>0?we=q:(Z=se+1,we-=q+1)}return Z}r.upperBound=l;function c(T,O,I){if(T===O)return!0;
1if(T.length!==O.length)return!1;for(let A=0,D=T.length;A<D;++A)if(I?!I(T[A],O[A]):T[A]!==O[A])return!1;return!0}r.shallowEqual=c;function u(T,O={}){let{start:I,stop:A,step:D}=O;if(D===void 0&&(D=1),D===0)throw new Error("Slice `step` cannot be zero.");let V=T.length;I===void 0?I=D<0?V-1:0:I<0?I=Math.max(I+V,D<0?-1:0):I>=V&&(I=D<0?V-1:V),A===void 0?A=D<0?-1:V:A<0?A=Math.max(A+V,D<0?-1:0):A>=V&&(A=D<0?V-1:V);let Z;D<0&&A>=I||D>0&&I>=A?Z=0:D<0?Z=Math.floor((A-I+1)/D+1):Z=Math.floor((A-I-1)/D+1);let we=[];for(let q=0;q<Z;++q)we[q]=T[I+q*D];return we}r.slice=u;function d(T,O,I){let A=T.length;if(A<=1||(O<0?O=Math.max(0,O+A):O=Math.min(O,A-1),I<0?I=Math.max(0,I+A):I=Math.min(I,A-1),O===I))return;let D=T[O],V=O<I?1:-1;for(let Z=O;Z!==I;Z+=V)T[Z]=T[Z+V];T[I]=D}r.move=d;function f(T,O=0,I=-1){let A=T.length;if(!(A<=1))for(O<0?O=Math.max(0,O+A):O=Math.min(O,A-1),I<0?I=Math.max(0,I+A):I=Math.min(I,A-1);O<I;){let D=T[O],V=T[I];T[O++]=V,T[I--]=D}}r.reverse=f;function m(T,O,I=0,A=-1){let D=T.length;if(D<=1||(I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1),I>=A))return;let V=A-I+1;if(O>0?O=O%V:O<0&&(O=(O%V+V)%V),O===0)return;let Z=I+O;f(T,I,Z-1),f(T,Z,A),f(T,I,A)}r.rotate=m;function g(T,O,I=0,A=-1){let D=T.length;if(D===0)return;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V;A<I?V=A+1+(D-I):V=A-I+1;for(let Z=0;Z<V;++Z)T[(I+Z)%D]=O}r.fill=g;function b(T,O,I){let A=T.length;O<0?O=Math.max(0,O+A):O=Math.min(O,A);for(let D=A;D>O;--D)T[D]=T[D-1];T[O]=I}r.insert=b;function v(T,O){let I=T.length;if(O<0&&(O+=I),O<0||O>=I)return;let A=T[O];for(let D=O+1;D<I;++D)T[D-1]=T[D];return T.length=I-1,A}r.removeAt=v;function S(T,O,I=0,A=-1){let D=e(T,O,I,A);return D!==-1&&v(T,D),D}r.removeFirstOf=S;function k(T,O,I=-1,A=0){let D=t(T,O,I,A);return D!==-1&&v(T,D),D}r.removeLastOf=k;function _(T,O,I=0,A=-1){let D=T.length;if(D===0)return 0;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V=0;for(let Z=0;Z<D;++Z)I<=A&&Z>=I&&Z<=A&&T[Z]===O||A<I&&(Z<=A||Z>=I)&&T[Z]===O?V++:V>0&&(T[Z-V]=T[Z]);return V>0&&(T.length=D-V),V}r.removeAllOf=_;function E(T,O,I=0,A=-1){let D,V=i(T,O,I,A);return V!==-1&&(D=v(T,V)),{index:V,value:D}}r.removeFirstWhere=E;function R(T,O,I=-1,A=0){let D,V=n(T,O,I,A);return V!==-1&&(D=v(T,V)),{index:V,value:D}}r.removeLastWhere=R;function P(T,O,I=0,A=-1){let D=T.length;if(D===0)return 0;I<0?I=Math.max(0,I+D):I=Math.min(I,D-1),A<0?A=Math.max(0,A+D):A=Math.min(A,D-1);let V=0;for(let Z=0;Z<D;++Z)I<=A&&Z>=I&&Z<=A&&O(T[Z],Z)||A<I&&(Z<=A||Z>=I)&&O(T[Z],Z)?V++:V>0&&(T[Z-V]=T[Z]);return V>0&&(T.length=D-V),V}r.removeAllWhere=P})(W||(W={}));(function(r){function e(t,i,n){return n===0?1/0:t>i&&n>0||t<i&&n<0?0:Math.ceil((i-t)/n)}r.rangeLength=e})(Uv||(Uv={}));(function(r){function e(o,a,l=0){let c=new Array(a.length);for(let u=0,d=l,f=a.length;u<f;++u,++d){if(d=o.indexOf(a[u],d),d===-1)return null;c[u]=d}return c}r.findIndices=e;function t(o,a,l=0){let c=e(o,a,l);if(!c)return null;let u=0;for(let d=0,f=c.length;d<f;++d){let m=c[d]-l;u+=m*m}return{score:u,indices:c}}r.matchSumOfSquares=t;function i(o,a,l=0){let c=e(o,a,l);if(!c)return null;let u=0,d=l-1;for(let f=0,m=c.length;f<m;++f){let g=c[f];u+=g-d-1,d=g}return{score:u,indices:c}}r.matchSumOfDeltas=i;function n(o,a,l){let c=[],u=0,d=0,f=a.length;for(;u<f;){let m=a[u],g=a[u];for(;++u<f&&a[u]===g+1;)g++;d<m&&c.push(o.slice(d,m)),m<g+1&&c.push(l(o.slice(m,g+1))),d=g+1}return d<o.length&&c.push(o.slice(d)),c}r.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}r.cmp=s})(Ho||(Ho={}))});var qe=w((wp,tI)=>{(function(r,e){typeof wp=="object"&&typeof tI<"u"?e(wp,(Fr(),St(eI))):typeof define=="function"&&define.amd?define(["exports","@lumino/algorithm"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.lumino_coreutils={},r.lumino_algorithm))})(wp,function(r,e){"use strict";r.JSONExt=void 0,function(c){c.emptyObject=Object.freeze({}),c.emptyArray=Object.freeze([]);function u(_){return _===null||typeof _=="boolean"||typeof _=="number"||typeof _=="string"}c.isPrimitive=u;function d(_){return Array.isArray(_)}c.isArray=d;function f(_){return!u(_)&&!d(_)}c.isObject=f;function m(_,E){if(_===E)return!0;
1if(u(_)||u(E))return!1;let R=d(_),P=d(E);return R!==P?!1:R&&P?b(_,E):v(_,E)}c.deepEqual=m;function g(_){return u(_)?_:d(_)?S(_):k(_)}c.deepCopy=g;function b(_,E){if(_===E)return!0;if(_.length!==E.length)return!1;for(let R=0,P=_.length;R<P;++R)if(!m(_[R],E[R]))return!1;return!0}function v(_,E){if(_===E)return!0;for(let R in _)if(_[R]!==void 0&&!(R in E))return!1;for(let R in E)if(E[R]!==void 0&&!(R in _))return!1;for(let R in _){let P=_[R],T=E[R];if(!(P===void 0&&T===void 0)&&(P===void 0||T===void 0||!m(P,T)))return!1}return!0}function S(_){let E=new Array(_.length);for(let R=0,P=_.length;R<P;++R)E[R]=g(_[R]);return E}function k(_){let E={};for(let R in _){let P=_[R];P!==void 0&&(E[R]=g(P))}return E}}(r.JSONExt||(r.JSONExt={}));class t{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(u){return this._types.indexOf(u)!==-1}getData(u){let d=this._types.indexOf(u);return d!==-1?this._values[d]:void 0}setData(u,d){this.clearData(u),this._types.push(u),this._values.push(d)}clearData(u){let d=this._types.indexOf(u);d!==-1&&(this._types.splice(d,1),this._values.splice(d,1))}clear(){this._types.length=0,this._values.length=0}}class i{constructor(u={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,u.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=u.validatePlugin)}get application(){return this._application}set application(u){if(this._application!==null)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=u}get deferredPlugins(){return Array.from(this._plugins).filter(([u,d])=>d.autoStart==="defer").map(([u,d])=>u)}getPluginDescription(u){var d,f;return(f=(d=this._plugins.get(u))===null||d===void 0?void 0:d.description)!==null&&f!==void 0?f:""}hasPlugin(u){return this._plugins.has(u)}isPluginActivated(u){var d,f;return(f=(d=this._plugins.get(u))===null||d===void 0?void 0:d.activated)!==null&&f!==void 0?f:!1}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(u){if(this._plugins.has(u.id))throw new TypeError(`Plugin '${u.id}' is already registered.`);if(!this._validatePlugin(u))throw new Error(`Plugin '${u.id}' is not valid.`);let d=n.createPluginData(u);n.ensureNoCycle(d,this._plugins,this._services),d.provides&&this._services.set(d.provides,d.id),this._plugins.set(d.id,d)}registerPlugins(u){for(let d of u)this.registerPlugin(d)}deregisterPlugin(u,d){let f=this._plugins.get(u);if(f){if(f.activated&&!d)throw new Error(`Plugin '${u}' is still active.`);this._plugins.delete(u)}}async activatePlugin(u){let d=this._plugins.get(u);if(!d)throw new ReferenceError(`Plugin '${u}' is not registered.`);if(d.activated)return;if(d.promise)return d.promise;let f=d.requires.map(g=>this.resolveRequiredService(g)),m=d.optional.map(g=>this.resolveOptionalService(g));return d.promise=Promise.all([...f,...m]).then(g=>d.activate.apply(void 0,[this.application,...g])).then(g=>{d.service=g,d.activated=!0,d.promise=null}).catch(g=>{throw d.promise=null,g}),d.promise}async activatePlugins(u,d={}){switch(u){case"defer":{let f=this.deferredPlugins.filter(m=>this._plugins.get(m).autoStart).map(m=>this.activatePlugin(m));await Promise.all(f);break}case"startUp":{let m=n.collectStartupPlugins(this._plugins,d).map(async g=>{try{return await this.activatePlugin(g)}catch(b){console.error(`Plugin '${g}' failed to activate.`,b)}});await Promise.all(m);break}}}async deactivatePlugin(u){let d=this._plugins.get(u);if(!d)throw new ReferenceError(`Plugin '${u}' is not registered.`);if(!d.activated)return[];if(!d.deactivate)throw new TypeError(`Plugin '${u}'#deactivate() method missing`);let f=n.findDependents(u,this._plugins,this._services),m=f.map(g=>this._plugins.get(g));for(let g of m)if(!g.deactivate)throw new TypeError(`Plugin ${g.id}#deactivate() method missing (depends on ${u})`);for(let g of m){let b=[...g.requires,...g.optional].map(v=>{let S=this._services.get(v);return S?this._plugins.get(S).service:null});await g.deactivate(this.application,...b),g.service=null,g.activated=!1}return f.pop(),f}async resolveRequiredService(u){let d=this._services.get(u);if(!d)throw new TypeError(`No provider for: ${u.name}.`);let f=this._plugins.get(d);return f.activated||await this.activatePlugin(d),f.service}async resolveOptionalService(u){let d=this._services.get(u);if(!d)return null;let f=this._plugins.get(d);if(!f.activated)try{await this.activatePlugin(d)}catch(m){return console.error(m),null}return f.service}}var n;(function(c){class u{constructor(v){var S,k,_,E;this._activated=!1,this._promise=null,this._service=null,this.id=v.id,this.description=(S=v.description)!==null&&S!==void 0?S:"",this.activate=v.activate,this.deactivate=(k=v.deactivate)!==null&&k!==void 0?k:null,this.provides=(_=v.provides)!==null&&_!==void 0?_:null,this.autoStart=(E=v.autoStart)!==null&&E!==void 0?E:!1,this.requires=v.requires?v.requires.slice():[],this.optional=v.optional?v.optional.slice():[]}get activated(){return this._activated}set activated(v){this._activated=v}get service(){return this._service}set service(v){this._service=v}get promise(){return this._promise}set promise(v){this._promise=v}}function d(b){return new u(b)}c.createPluginData=d;function f(b,v,S){let k=[...b.requires,...b.optional],_=R=>{if(R===b.provides)return!0;let P=S.get(R);if(!P)return!1;let T=v.get(P),O=[...T.requires,...T.optional];return O.length===0?!1:(E.push(P),O.some(_)?!0:(E.pop(),!1))};if(!b.provides||k.length===0)return;let E=[b.id];if(k.some(_))throw new ReferenceError(`Cycle detected: ${E.join(" -> ")}.`)}c.ensureNoCycle=f;function m(b,v,S){let k=new Array,_=O=>{let I=v.get(O),A=[...I.requires,...I.optional];k.push(...A.reduce((D,V)=>{let Z=S.get(V);return Z&&D.push([O,Z]),D},[]))};for(let O of v.keys())_(O);let E=k.filter(O=>O[1]===b),R=0;for(;E.length>R;){let O=E.length,I=new Set(E.map(A=>A[0]));for(let A of I)k.filter(D=>D[1]===A).forEach(D=>{E.includes(D)||E.push(D)});R=O}let P=e.topologicSort(E),T=P.findIndex(O=>O===b);return T===-1?[b]:P.slice(0,T+1)}c.findDependents=m;function g(b,v){let S=new Set;for(let k of b.keys())b.get(k).autoStart===!0&&S.add(k);if(v.startPlugins)for(let k of v.startPlugins)S.add(k);if(v.ignorePlugins)for(let k of v.ignorePlugins)S.delete(k);return Array.from(S)}c.collectStartupPlugins=g})(n||(n={}));class s{constructor(){this.promise=new Promise((u,d)=>{this._resolve=u,this._reject=d})}resolve(u){let d=this._resolve;d(u)}reject(u){let d=this._reject;d(u)}}class o{constructor(u,d){this.name=u,this.description=d??"",this._tokenStructuralPropertyT=null}}function a(c){let u=0;for(let d=0,f=c.length;d<f;++d)d%4===0&&(u=Math.random()*4294967295>>>0),c[d]=u&255,u>>>=8}r.Random=void 0,function(c){c.getRandomValues=(()=>{let u=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return u&&typeof u.getRandomValues=="function"?function(f){return u.getRandomValues(f)}:a})()}(r.Random||(r.Random={}));function l(c){let u=new Uint8Array(16),d=new Array(256);for(let f=0;f<16;++f)d[f]="0"+f.toString(16);for(let f=16;f<256;++f)d[f]=f.toString(16);return function(){return c(u),u[6]=64|u[6]&15,u[8]=128|u[8]&63,d[u[0]]+d[u[1]]+d[u[2]]+d[u[3]]+"-"+d[u[4]]+d[u[5]]+"-"+d[u[6]]+d[u[7]]+"-"+d[u[8]]+d[u[9]]+"-"+d[u[10]]+d[u[11]]+d[u[12]]+d[u[13]]+d[u[14]]+d[u[15]]}}r.UUID=void 0,function(c){c.uuid4=l(r.Random.getRandomValues)}(r.UUID||(r.UUID={})),r.MimeData=t,r.PluginRegistry=i,r.PromiseDelegate=s,r.Token=o})});var rI=w(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.DataConnector=void 0;var Kv=class{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}};Sp.DataConnector=Kv});var nI=w(iI=>{"use strict";Object.defineProperty(iI,"__esModule",{value:!0})});var sI={};Zl(sI,{AttachedProperty:()=>Cr});
1var Cr,ec,Cp=p(()=>{Cr=class{constructor(e){this._pid=ec.nextPID(),this.name=e.name,this._create=e.create,this._coerce=e.coerce||null,this._compare=e.compare||null,this._changed=e.changed||null}get(e){let t,i=ec.ensureMap(e);return this._pid in i?t=i[this._pid]:t=i[this._pid]=this._createValue(e),t}set(e,t){let i,n=ec.ensureMap(e);this._pid in n?i=n[this._pid]:i=n[this._pid]=this._createValue(e);let s=this._coerceValue(e,t);this._maybeNotify(e,i,n[this._pid]=s)}coerce(e){let t,i=ec.ensureMap(e);this._pid in i?t=i[this._pid]:t=i[this._pid]=this._createValue(e);let n=this._coerceValue(e,t);this._maybeNotify(e,t,i[this._pid]=n)}_createValue(e){let t=this._create;return t(e)}_coerceValue(e,t){let i=this._coerce;return i?i(e,t):t}_compareValue(e,t){let i=this._compare;return i?i(e,t):e===t}_maybeNotify(e,t,i){let n=this._changed;n&&!this._compareValue(t,i)&&n(e,t,i)}};(function(r){function e(t){ec.ownerData.delete(t)}r.clearData=e})(Cr||(Cr={}));(function(r){r.ownerData=new WeakMap,r.nextPID=(()=>{let t=0;return()=>`pid-${`${Math.random()}`.slice(2)}-${t++}`})();function e(t){let i=r.ownerData.get(t);return i||(i=Object.create(null),r.ownerData.set(t,i),i)}r.ensureMap=e})(ec||(ec={}))});var Jr={};Zl(Jr,{Signal:()=>te,Stream:()=>Yv});var Ip,te,Yv,Zi,Xe=p(()=>{Fr();Ip=N(qe()),te=class{constructor(e){this.sender=e}connect(e,t){return Zi.connect(this,e,t)}disconnect(e,t){return Zi.disconnect(this,e,t)}emit(e){Zi.emit(this,e)}};(function(r){function e(l,c){Zi.disconnectBetween(l,c)}r.disconnectBetween=e;function t(l){Zi.disconnectSender(l)}r.disconnectSender=t;function i(l){Zi.disconnectReceiver(l)}r.disconnectReceiver=i;function n(l){Zi.disconnectAll(l)}r.disconnectAll=n;function s(l){Zi.disconnectAll(l)}r.clearData=s;function o(){return Zi.exceptionHandler}r.getExceptionHandler=o;function a(l){let c=Zi.exceptionHandler;return Zi.exceptionHandler=l,c}r.setExceptionHandler=a})(te||(te={}));Yv=class extends te{constructor(){super(...arguments),this._pending=new Ip.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;for(;;)try{let{args:t,next:i}=await e.promise;e=i,yield t}catch{return}}emit(e){let t=this._pending,i=this._pending=new Ip.PromiseDelegate;t.resolve({args:e,next:i}),super.emit(e)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new Ip.PromiseDelegate}};(function(r){r.exceptionHandler=k=>{console.error(k)};function e(k,_,E){E=E||void 0;let R=l.get(k.sender);if(R||(R=[],l.set(k.sender,R)),f(R,k,_,E))return!1;let P=E||_,T=c.get(P);T||(T=[],c.set(P,T));let O={signal:k,slot:_,thisArg:E};return R.push(O),T.push(O),!0}r.connect=e;function t(k,_,E){E=E||void 0;let R=l.get(k.sender);if(!R||R.length===0)return!1;let P=f(R,k,_,E);if(!P)return!1;let T=E||_,O=c.get(T);return P.signal=null,g(R),g(O),!0}r.disconnect=t;function i(k,_){let E=l.get(k);if(!E||E.length===0)return;let R=c.get(_);if(!(!R||R.length===0)){for(let P of R)P.signal&&P.signal.sender===k&&(P.signal=null);g(E),g(R)}}r.disconnectBetween=i;function n(k){let _=l.get(k);if(!(!_||_.length===0)){for(let E of _){if(!E.signal)continue;let R=E.thisArg||E.slot;E.signal=null,g(c.get(R))}g(_)}}r.disconnectSender=n;function s(k){let _=c.get(k);if(!(!_||_.length===0)){for(let E of _){if(!E.signal)continue;let R=E.signal.sender;E.signal=null,g(l.get(R))}g(_)}}r.disconnectReceiver=s;function o(k){n(k),s(k)}r.disconnectAll=o;function a(k,_){let E=l.get(k.sender);if(!(!E||E.length===0))for(let R=0,P=E.length;R<P;++R){let T=E[R];T.signal===k&&m(T,_)}}r.emit=a;let l=new WeakMap,c=new WeakMap,u=new Set,d=(()=>typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate)();function f(k,_,E,R){return xn(k,P=>P.signal===_&&P.slot===E&&P.thisArg===R)}function m(k,_){let{signal:E,slot:R,thisArg:P}=k;try{R.call(P,E.sender,_)}catch(T){r.exceptionHandler(T)}}function g(k){u.size===0&&d(b),u.add(k)}function b(){u.forEach(v),u.clear()}function v(k){W.removeAllWhere(k,S)}function S(k){return k.signal===null}})(Zi||(Zi={}))});var aI=w(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.RestorablePool=void 0;var dee=qe(),oI=(Cp(),St(sI)),kp=(Xe(),St(Jr)),Xv=class{constructor(e){this._added=new kp.Signal(this),this._current=null,this._currentChanged=new kp.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new dee.PromiseDelegate,this._updated=new kp.Signal(this),this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){this._current!==e&&e!==null&&this._objects.has(e)&&(this._current=e,this._currentChanged.emit(this._current))}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,i;if(e.isDisposed){let n="A disposed object cannot be added.";throw console.warn(n,e),new Error(n)}if(this._objects.has(e)){let n="This object already exists in the pool.";throw console.warn(n,e),new Error(n)}if(this._objects.add(e),e.disposed.connect(this._onInstanceDisposed,this),!ys.injectedProperty.get(e)){if(this._restore){let{connector:n}=this._restore,s=this._restore.name(e);
1if(s){let o=`${this.namespace}:${s}`,a=(i=(t=this._restore).args)===null||i===void 0?void 0:i.call(t,e);ys.nameProperty.set(e,o),await n.save(o,{data:a})}}this._added.emit(e)}}dispose(){this.isDisposed||(this._current=null,this._isDisposed=!0,this._objects.clear(),kp.Signal.clearData(this))}find(e){let t=this._objects.values();for(let i of t)if(e(i))return i}forEach(e){this._objects.forEach(e)}filter(e){let t=[];return this.forEach(i=>{e(i)&&t.push(i)}),t}inject(e){return ys.injectedProperty.set(e,!0),this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored)throw new Error("This pool has already been restored.");this._hasRestored=!0;let{command:t,connector:i,registry:n,when:s}=e,o=this.namespace,a=s?[i.list(o)].concat(s):[i.list(o)];this._restore=e;let[l]=await Promise.all(a),c=await Promise.all(l.ids.map(async(u,d)=>{let f=l.values[d],m=f&&f.data;return m===void 0?i.remove(u):n.execute(t,m).catch(()=>i.remove(u))}));return this._restored.resolve(),c}async save(e){var t,i;let n=ys.injectedProperty.get(e);if(!this._restore||!this.has(e)||n)return;let{connector:s}=this._restore,o=this._restore.name(e),a=ys.nameProperty.get(e),l=o?`${this.namespace}:${o}`:"";if(a&&a!==l&&await s.remove(a),ys.nameProperty.set(e,l),l){let c=(i=(t=this._restore).args)===null||i===void 0?void 0:i.call(t,e);await s.save(l,{data:c})}a!==l&&this._updated.emit(e)}_onInstanceDisposed(e){if(this._objects.delete(e),e===this._current&&(this._current=null,this._currentChanged.emit(this._current)),ys.injectedProperty.get(e)||!this._restore)return;let{connector:t}=this._restore,i=ys.nameProperty.get(e);i&&t.remove(i)}};Ep.RestorablePool=Xv;var ys;(function(r){r.injectedProperty=new oI.AttachedProperty({name:"injected",create:()=>!1}),r.nameProperty=new oI.AttachedProperty({name:"name",create:()=>""})})(ys||(ys={}))});var lI=w(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.StateDB=void 0;var hee=(Xe(),St(Jr)),tc=class{constructor(e={}){this._changed=new hee.Signal(this);let{connector:t,transform:i}=e;this._connector=t||new tc.Connector,i?this._ready=i.then(n=>{let{contents:s,type:o}=n;switch(o){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(s||{});case"overwrite":return this._overwrite(s||{});default:return}}):this._ready=Promise.resolve(void 0)}get changed(){return this._changed}async clear(){await this._ready,await this._clear()}async fetch(e){return await this._ready,this._fetch(e)}async list(e){return await this._ready,this._list(e)}async remove(e){await this._ready,await this._remove(e),this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready,await this._save(e,t),this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;let{ids:e,values:t}=await this._list();return t.reduce((i,n,s)=>(i[e[s]]=n,i),{})}async _clear(){await Promise.all((await this._list()).ids.map(e=>this._remove(e)))}async _fetch(e){let t=await this._connector.fetch(e);if(t)return JSON.parse(t).v}async _list(e=""){let{ids:t,values:i}=await this._connector.list(e);return{ids:t,values:i.map(n=>JSON.parse(n).v)}}async _merge(e){await Promise.all(Object.keys(e).map(t=>e[t]&&this._save(t,e[t])))}async _overwrite(e){await this._clear(),await this._merge(e)}async _remove(e){return this._connector.remove(e)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}};jd.StateDB=tc;(function(r){class e{constructor(){this._storage={}}async fetch(i){return this._storage[i]}async list(i=""){return Object.keys(this._storage).reduce((n,s)=>((i===""||i===s.split(":")[0])&&(n.ids.push(s),n.values.push(this._storage[s])),n),{ids:[],values:[]})}async remove(i){delete this._storage[i]}async save(i,n){this._storage[i]=n}}r.Connector=e})(tc||(jd.StateDB=tc={}))});var cI=w(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.IStateDB=void 0;var fee=qe();Tp.IStateDB=new fee.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database.
2  Use this if you want to store data that will persist across page loads.
3  See "state database" for more information.`)});var Ap=w(Vn=>{"use strict";var pee=Vn&&Vn.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),zd=Vn&&Vn.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&pee(e,r,t)};Object.defineProperty(Vn,"__esModule",{value:!0});zd(rI(),Vn);zd(nI(),Vn);zd(aI(),Vn);zd(lI(),Vn);zd(cI(),Vn)});var dI=w(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.ActivityMonitor=void 0;var uI=(Xe(),St(Jr)),Jv=class{constructor(e){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new uI.Signal(this),e.signal.connect(this._onSignalFired,this),this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,uI.Signal.clearData(this))}_onSignalFired(e,t){clearTimeout(this._timer),this._sender=e,this._args=t,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}};Rp.ActivityMonitor=Jv});var fI=w(hI=>{"use strict";Object.defineProperty(hI,"__esModule",{value:!0})});var pI=w(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.LruCache=void 0;var mee=128,Zv=class{constructor(e={}){this._map=new Map,this._maxSize=e?.maxSize||mee}get size(){return this._map.size}clear(){this._map.clear()}get(e){let t=this._map.get(e)||null;return t!=null&&(this._map.delete(e),this._map.set(e,t)),t}set(e,t){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(e,t)}};Op.LruCache=Zv});var gI=w(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.MarkdownCodeBlocks=void 0;var mI;(function(r){r.CODE_BLOCK_MARKER="```";let e=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class t{constructor(o){this.startLine=o,this.code="",this.endLine=-1}}r.MarkdownCodeBlock=t;function i(s){return e.indexOf(s)>-1}r.isMarkdown=i;function n(s){if(!s||s==="")return[];let o=s.split(`
4`),a=[],l=null;for(let c=0;c<o.length;c++){let u=o[c],d=u.indexOf(r.CODE_BLOCK_MARKER)===0,f=l!=null;if(!(!d&&!f))if(f)l&&(d?(l.endLine=c-1,a.push(l),l=null):l.code+=u+`
5`);else{l=new t(c);let m=u.indexOf(r.CODE_BLOCK_MARKER),g=u.lastIndexOf(r.CODE_BLOCK_MARKER);m!==g&&(l.code=u.substring(m+r.CODE_BLOCK_MARKER.length,g),l.endLine=c,a.push(l),l=null)}}return a}r.findMarkdownCodeBlocks=n})(mI||(Dp.MarkdownCodeBlocks=mI={}))});var xI=w((E6e,yI)=>{"use strict";function gee(r,e){var t=r;
5e.slice(0,-1).forEach(function(n){t=t[n]||{}});var i=e[e.length-1];return i in t}function bI(r){return typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function vI(r,e){return e==="constructor"&&typeof r[e]=="function"||e==="__proto__"}yI.exports=function(r,e){e||(e={});var t={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(t.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?t.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(E){t.bools[E]=!0});var i={};function n(E){return i[E].some(function(R){return t.bools[R]})}Object.keys(e.alias||{}).forEach(function(E){i[E]=[].concat(e.alias[E]),i[E].forEach(function(R){i[R]=[E].concat(i[E].filter(function(P){return R!==P}))})}),[].concat(e.string).filter(Boolean).forEach(function(E){t.strings[E]=!0,i[E]&&[].concat(i[E]).forEach(function(R){t.strings[R]=!0})});var s=e.default||{},o={_:[]};function a(E,R){return t.allBools&&/^--[^=]+$/.test(R)||t.strings[E]||t.bools[E]||i[E]}function l(E,R,P){for(var T=E,O=0;O<R.length-1;O++){var I=R[O];if(vI(T,I))return;T[I]===void 0&&(T[I]={}),(T[I]===Object.prototype||T[I]===Number.prototype||T[I]===String.prototype)&&(T[I]={}),T[I]===Array.prototype&&(T[I]=[]),T=T[I]}var A=R[R.length-1];vI(T,A)||((T===Object.prototype||T===Number.prototype||T===String.prototype)&&(T={}),T===Array.prototype&&(T=[]),T[A]===void 0||t.bools[A]||typeof T[A]=="boolean"?T[A]=P:Array.isArray(T[A])?T[A].push(P):T[A]=[T[A],P])}function c(E,R,P){if(!(P&&t.unknownFn&&!a(E,P)&&t.unknownFn(P)===!1)){var T=!t.strings[E]&&bI(R)?Number(R):R;l(o,E.split("."),T),(i[E]||[]).forEach(function(O){l(o,O.split("."),T)})}}Object.keys(t.bools).forEach(function(E){c(E,s[E]===void 0?!1:s[E])});var u=[];r.indexOf("--")!==-1&&(u=r.slice(r.indexOf("--")+1),r=r.slice(0,r.indexOf("--")));for(var d=0;d<r.length;d++){var f=r[d],m,g;if(/^--.+=/.test(f)){var b=f.match(/^--([^=]+)=([\s\S]*)$/);m=b[1];var v=b[2];t.bools[m]&&(v=v!=="false"),c(m,v,f)}else if(/^--no-.+/.test(f))m=f.match(/^--no-(.+)/)[1],c(m,!1,f);else if(/^--.+/.test(f))m=f.match(/^--(.+)/)[1],g=r[d+1],g!==void 0&&!/^(-|--)[^-]/.test(g)&&!t.bools[m]&&!t.allBools&&(!i[m]||!n(m))?(c(m,g,f),d+=1):/^(true|false)$/.test(g)?(c(m,g==="true",f),d+=1):c(m,t.strings[m]?"":!0,f);else if(/^-[^-]+/.test(f)){for(var S=f.slice(1,-1).split(""),k=!1,_=0;_<S.length;_++){if(g=f.slice(_+2),g==="-"){c(S[_],g,f);continue}if(/[A-Za-z]/.test(S[_])&&g[0]==="="){c(S[_],g.slice(1),f),k=!0;break}if(/[A-Za-z]/.test(S[_])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(g)){c(S[_],g,f),k=!0;break}if(S[_+1]&&S[_+1].match(/\W/)){c(S[_],f.slice(_+2),f),k=!0;break}else c(S[_],t.strings[S[_]]?"":!0,f)}m=f.slice(-1)[0],!k&&m!=="-"&&(r[d+1]&&!/^(-|--)[^-]/.test(r[d+1])&&!t.bools[m]&&(!i[m]||!n(m))?(c(m,r[d+1],f),d+=1):r[d+1]&&/^(true|false)$/.test(r[d+1])?(c(m,r[d+1]==="true",f),d+=1):c(m,t.strings[m]?"":!0,f))}else if((!t.unknownFn||t.unknownFn(f)!==!1)&&o._.push(t.strings._||!bI(f)?f:Number(f)),e.stopEarly){o._.push.apply(o._,r.slice(d+1));break}}return Object.keys(s).forEach(function(E){gee(o,E.split("."))||(l(o,E.split("."),s[E]),(i[E]||[]).forEach(function(R){l(o,R.split("."),s[E])}))}),e["--"]?o["--"]=u.slice():u.forEach(function(E){o._.push(E)}),o}});var wI=w((T6e,_I)=>{"use strict";_I.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var II=w(Qv=>{"use strict";var bee=Object.prototype.hasOwnProperty,vee;function SI(r){try{return decodeURIComponent(r.replace(/\+/g," "))}catch{return null}}function CI(r){try{return encodeURIComponent(r)}catch{return null}}function yee(r){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},i;i=e.exec(r);){var n=SI(i[1]),s=SI(i[2]);n===null||s===null||n in t||(t[n]=s)}return t}function xee(r,e){e=e||"";var t=[],i,n;typeof e!="string"&&(e="?");for(n in r)if(bee.call(r,n)){if(i=r[n],!i&&(i===null||i===vee||isNaN(i))&&(i=""),n=CI(n),i=CI(i),n===null||i===null)continue;t.push(n+"="+i)}return t.length?e+t.join("&"):""}Qv.stringify=xee;Qv.parse=yee});var $I=w((R6e,DI)=>{"use strict";var EI=wI(),$p=II(),_ee=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,TI=/[\n\r\t]/g,wee=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,AI=/:\d+$/,See=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Cee=/^[a-zA-Z]:/;function t1(r){return(r||"").toString().replace(_ee,"")}var e1=[["#","hash"],["?","query"],function(e,t){return xs(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],kI={hash:1,query:1};function RI(r){var e;typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof self<"u"?e=self:e={};var t=e.location||{};r=r||t;var i={},n=typeof r,s;if(r.protocol==="blob:")i=new _s(unescape(r.pathname),{});else if(n==="string"){i=new _s(r,{});for(s in kI)delete i[s]}else if(n==="object"){for(s in r)s in kI||(i[s]=r[s]);i.slashes===void 0&&(i.slashes=wee.test(r.href))}return i}function xs(r){return r==="file:"||r==="ftp:"||r==="http:"||r==="https:"||r==="ws:"||r==="wss:"}function OI(r,e){r=t1(r),r=r.replace(TI,""),e=e||{};var t=See.exec(r),i=t[1]?t[1].toLowerCase():"",n=!!t[2],s=!!t[3],o=0,a;return n?s?(a=t[2]+t[3]+t[4],o=t[2].length+t[3].length):(a=t[2]+t[4],o=t[2].length):s?(a=t[3]+t[4],o=t[3].length):a=t[4],i==="file:"?o>=2&&(a=a.slice(2)):xs(i)?a=t[4]:i?n&&(a=a.slice(2)):o>=2&&xs(e.protocol)&&(a=t[4]),{protocol:i,slashes:n||xs(i),slashesCount:o,rest:a}}function Iee(r,e){if(r==="")return e;for(var t=(e||"/").split("/").slice(0,-1).concat(r.split("/")),i=t.length,n=t[i-1],s=!1,o=0;i--;)t[i]==="."?t.splice(i,1):t[i]===".."?(t.splice(i,1),o++):o&&(i===0&&(s=!0),t.splice(i,1),o--);return s&&t.unshift(""),(n==="."||n==="..")&&t.push(""),t.join("/")}function _s(r,e,t){if(r=t1(r),r=r.replace(TI,""),!(this instanceof _s))return new _s(r,e,t);var i,n,s,o,a,l,c=e1.slice(),u=typeof e,d=this,f=0;for(u!=="object"&&u!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=$p.parse),e=RI(e),n=OI(r||"",e),i=!n.protocol&&!n.slashes,d.slashes=n.slashes||i&&e.slashes,d.protocol=n.protocol||e.protocol||"",r=n.rest,(n.protocol==="file:"&&(n.slashesCount!==2||Cee.test(r))||!n.slashes&&(n.protocol||n.slashesCount<2||!xs(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++){if(o=c[f],typeof o=="function"){r=o(r,d);continue}s=o[0],l=o[1],s!==s?d[l]=r:typeof s=="string"?(a=s==="@"?r.lastIndexOf(s):r.indexOf(s),~a&&(typeof o[2]=="number"?(d[l]=r.
5slice(0,a),r=r.slice(a+o[2])):(d[l]=r.slice(a),r=r.slice(0,a)))):(a=s.exec(r))&&(d[l]=a[1],r=r.slice(0,a.index)),d[l]=d[l]||i&&o[3]&&e[l]||"",o[4]&&(d[l]=d[l].toLowerCase())}t&&(d.query=t(d.query)),i&&e.slashes&&d.pathname.charAt(0)!=="/"&&(d.pathname!==""||e.pathname!=="")&&(d.pathname=Iee(d.pathname,e.pathname)),d.pathname.charAt(0)!=="/"&&xs(d.protocol)&&(d.pathname="/"+d.pathname),EI(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(a=d.auth.indexOf(":"),~a?(d.username=d.auth.slice(0,a),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(a+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin=d.protocol!=="file:"&&xs(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}function kee(r,e,t){var i=this;switch(r){case"query":typeof e=="string"&&e.length&&(e=(t||$p.parse)(e)),i[r]=e;break;case"port":i[r]=e,EI(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[r]="");break;case"hostname":i[r]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[r]=e,AI.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!t;break;case"pathname":case"hash":if(e){var n=r==="pathname"?"/":"#";i[r]=e.charAt(0)!==n?n+e:e}else i[r]=e;break;case"username":case"password":i[r]=encodeURIComponent(e);break;case"auth":var s=e.indexOf(":");~s?(i.username=e.slice(0,s),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(s+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var o=0;o<e1.length;o++){var a=e1[o];a[4]&&(i[a[1]]=i[a[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&xs(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function Eee(r){(!r||typeof r!="function")&&(r=$p.stringify);var e,t=this,i=t.host,n=t.protocol;n&&n.charAt(n.length-1)!==":"&&(n+=":");var s=n+(t.protocol&&t.slashes||xs(t.protocol)?"//":"");return t.username?(s+=t.username,t.password&&(s+=":"+t.password),s+="@"):t.password?(s+=":"+t.password,s+="@"):t.protocol!=="file:"&&xs(t.protocol)&&!i&&t.pathname!=="/"&&(s+="@"),(i[i.length-1]===":"||AI.test(t.hostname)&&!t.port)&&(i+=":"),s+=i+t.pathname,e=typeof t.query=="object"?r(t.query):t.query,e&&(s+=e.charAt(0)!=="?"?"?"+e:e),t.hash&&(s+=t.hash),s}_s.prototype={set:kee,toString:Eee};_s.extractProtocol=OI;_s.location=RI;_s.trimLeft=t1;_s.qs=$p;DI.exports=_s});var r1=w(ru=>{"use strict";var Tee=ru&&ru.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ru,"__esModule",{value:!0});ru.URLExt=void 0;var Aee=Vv("path"),Mp=Tee($I()),MI;(function(r){function e(c){if(typeof document<"u"&&document){let u=document.createElement("a");return u.href=c,u}return(0,Mp.default)(c)}r.parse=e;function t(c){return(0,Mp.default)(c).hostname}r.getHostName=t;function i(c){return c&&e(c).toString()}r.normalize=i;function n(...c){let u=(0,Mp.default)(c[0],{}),d=u.protocol===""&&u.slashes;d&&(u=(0,Mp.default)(c[0],"https:"+c[0]));let f=`${d?"":u.protocol}${u.slashes?"//":""}${u.auth}${u.auth?"@":""}${u.host}`,m=Aee.posix.join(`${f&&u.pathname[0]!=="/"?"/":""}${u.pathname}`,...c.slice(1));return`${f}${m==="."?"":m}`}r.join=n;function s(c){return n(...c.split("/").map(encodeURIComponent))}r.encodeParts=s;function o(c){let u=Object.keys(c).filter(d=>d.length>0);return u.length?"?"+u.map(d=>{let f=encodeURIComponent(String(c[d]));return d+(f?"="+f:"")}).join("&"):""}r.objectToQueryString=o;function a(c){return c.replace(/^\?/,"").split("&").reduce((u,d)=>{let[f,m]=d.split("=");return f.length>0&&(u[f]=decodeURIComponent(m||"")),u},{})}r.queryStringToObject=a;function l(c,u=!1){let{protocol:d}=e(c);return(!d||c.toLowerCase().indexOf(d)!==0)&&(u?c.indexOf("//")!==0:c.indexOf("/")!==0)}r.isLocal=l})(MI||(ru.URLExt=MI={}))});var PI=w((exports,module)=>{"use strict";var __importDefault=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});exports.PageConfig=void 0;var coreutils_1=qe(),minimist_1=__importDefault(xI()),url_1=r1(),PageConfig;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document<"u"&&document){let r=document.getElementById("jupyter-config-data");r&&(configData=JSON.parse(r.textContent||""),found=!0)}if(!found&&typeof process<"u"&&process.argv)try{let cli=(0,minimist_1.default)(process.argv.slice(2)),path=Vv("path"),fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in process.env&&(fullPath=path.resolve(process.env.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(r){console.error(r)}if(!coreutils_1.JSONExt.isObject(configData))configData=Object.create(null);else for(let r in configData)typeof configData[r]!="string"&&(configData[r]=JSON.stringify(configData[r]));return configData[name]||getBodyData(name)}PageConfig.getOption=getOption;function setOption(r,e){let t=getOption(r);return configData[r]=e,t}PageConfig.setOption=setOption;function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}PageConfig.getBaseUrl=getBaseUrl;function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}PageConfig.getTreeUrl=getTreeUrl;function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}PageConfig.getShareUrl=getShareUrl;function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}PageConfig.getTreeShareUrl=getTreeShareUrl;function getUrl(r){var e,t,i,n;let s=r.toShare?getShareUrl():getBaseUrl(),o=(e=r.mode)!==null&&e!==void 0?e:getOption("mode"),a=(t=r.workspace)!==null&&t!==void 0?t:getOption("workspace"),l=o==="single-document"?"doc":"lab";s=url_1.URLExt.join(s,l),a!==PageConfig.defaultWorkspace&&(s=url_1.URLExt.join(s,"workspaces",encodeURIComponent((i=getOption("workspace"))!==null&&i!==void 0?i:PageConfig.defaultWorkspace)));let c=(n=r.treePath)!==null&&n!==void 0?n:getOption("treePath");return c&&(s=url_1.URLExt.join(s,"tree",url_1.URLExt.encodeParts(c))),s}PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default";function getWsUrl(r){let e=getOption("wsUrl");if(!e){if(r=r?url_1.URLExt.normalize(r):getBaseUrl(),r.indexOf("http")!==0)return"";e="ws"+r.slice(4)}return url_1.URLExt.normalize(e)}PageConfig.getWsUrl=getWsUrl;function getNBConvertURL({path:r,format:e,download:t}){let i=url_1.URLExt.encodeParts(r),n=url_1.URLExt.join(getBaseUrl(),"nbconvert",e,i);return t?n+"?download=true":n}PageConfig.getNBConvertURL=getNBConvertURL;function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}PageConfig.getToken=getToken;function getNotebookVersion(){let r=getOption("notebookVersion");return r===""?[0,0,0]:JSON.parse(r)}PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(r){if(typeof document>"u"||!document.body)return"";let e=document.body.dataset[r];return typeof e>"u"?"":decodeURIComponent(e)}let Extension;(function(r){function e(n){try{let s=getOption(n);if(s)return JSON.parse(s)}catch(s){console.warn(`Unable to parse ${n}.`,s)}return[]}r.deferred=e("deferredExtensions"),r.disabled=e("disabledExtensions");function t(n){let s=n.indexOf(":"),o="";return s!==-1&&(o=n.slice(0,s)),r.deferred.some(a=>a===n||o&&a===o)}r.isDeferred=t;function i(n){let s=n.indexOf(":"),o="";return s!==-1&&(o=n.slice(0,s)),r.disabled.some(a=>a===n||o&&a===o)}r.isDisabled=i})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig||(exports.PageConfig=PageConfig={}))});var LI=w(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.PathExt=void 0;var Vo=Vv("path"),FI;(function(r){function e(...d){let f=Vo.posix.join(...d);return f==="."?"":u(f)}r.join=e;function t(...d){let f=Vo.posix.join(...d);return f==="."?"":f}r.joinWithLeadingSlash=t;function i(d,f){return Vo.posix.basename(d,f)}r.basename=i;function n(d){let f=u(Vo.posix.dirname(d));return f==="."?"":f}r.dirname=n;function s(d){return Vo.posix.extname(d)}r.extname=s;function o(d){return d===""?"":u(Vo.posix.normalize(d))}r.normalize=o;function a(...d){return u(Vo.posix.resolve(...d))}r.resolve=a;function l(d,f){return u(Vo.posix.relative(d,f))}r.relative=l;function c(d){return d.length>0&&d.indexOf(".")!==0&&(d=`.${d}`),d}
5r.normalizeExtension=c;function u(d){return d.indexOf("/")===0&&(d=d.slice(1)),d}r.removeSlash=u})(FI||(Pp.PathExt=FI={}))});var NI=w(i1=>{"use strict";Object.defineProperty(i1,"__esModule",{value:!0});i1.signalToPromise=Oee;var Ree=qe();function Oee(r,e){let t=new Ree.PromiseDelegate;function i(){r.disconnect(n)}function n(s,o){i(),t.resolve([s,o])}return r.connect(n),(e??0)>0&&setTimeout(()=>{i(),t.reject(`Signal not emitted within ${e} ms.`)},e),t.promise}});var jI=w(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.Text=void 0;var BI;(function(r){let e=2>1;function t(o,a){if(!e)return o;let l=o;for(let c=0;c+1<a.length&&c<o;c++){let u=a.charCodeAt(c);if(u>=55296&&u<=56319){let d=a.charCodeAt(c+1);d>=56320&&d<=57343&&(l--,c++)}}return l}r.jsIndexToCharIndex=t;function i(o,a){if(!e)return o;let l=o;for(let c=0;c+1<a.length&&c<l;c++){let u=a.charCodeAt(c);if(u>=55296&&u<=56319){let d=a.charCodeAt(c+1);d>=56320&&d<=57343&&(l++,c++)}}return l}r.charIndexToJsIndex=i;function n(o,a=!1){return o.replace(/^(\w)|[\s-_:]+(\w)/g,function(l,c,u){return u?u.toUpperCase():a?c.toUpperCase():c.toLowerCase()})}r.camelCase=n;function s(o){return(o||"").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}r.titleCase=s})(BI||(Fp.Text=BI={}))});var qI=w(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.Time=void 0;var Dee=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}],zI;(function(r){function e(i,n="long"){let s=document.documentElement.lang||"en",o=new Intl.RelativeTimeFormat(s,{numeric:"auto",style:n}),a=new Date(i).getTime()-Date.now();for(let l of Dee){let c=Math.ceil(a/l.milliseconds);if(c!==0)return o.format(c,l.name)}return o.format(0,"seconds")}r.formatHuman=e;function t(i){let n=document.documentElement.lang||"en";return new Intl.DateTimeFormat(n,{dateStyle:"short",timeStyle:"short"}).format(new Date(i))}r.format=t})(zI||(Lp.Time=zI={}))});var HI=w(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.JupyterPluginRegistry=void 0;var $ee=qe(),Mee=5e3,n1=class extends $ee.PluginRegistry{constructor(e){var t;super(e),this._pluginData=new Map,this._expectedActivationTime=(t=e?.expectedActivationTime)!==null&&t!==void 0?t:Mee}registerPlugin(e){return this._pluginData.set(e.id,e),super.registerPlugin(e)}async activatePlugin(e){let t=performance.now(),i=setTimeout(()=>{console.warn(`Plugin ${e} is taking too long to activate.`)},this._expectedActivationTime);try{let n=await super.activatePlugin(e);clearTimeout(i);let o=performance.now()-t;if(o>=this._expectedActivationTime){let a=this._getDependentCount(e);console.warn(`Plugin ${e} (with ${a} dependants) took ${o.toFixed(2)}ms to activate.`)}return n}catch(n){throw clearTimeout(i),console.error(`Error activating plugin: ${e}`,n),n}}_getDependentCount(e){var t;let i=this._pluginData.get(e);if(!i?.provides)return 0;let n=i.provides.name,s=0;for(let[o,a]of this._pluginData.entries()){if(o===e)continue;((t=a.requires)===null||t===void 0?void 0:t.filter(c=>!!c).some(c=>c.name===n))&&s++}return s}};Np.JupyterPluginRegistry=n1});var Jt=w(Lr=>{"use strict";var Pee=Lr&&Lr.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Un=Lr&&Lr.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Pee(e,r,t)};Object.defineProperty(Lr,"__esModule",{value:!0});Un(dI(),Lr);Un(fI(),Lr);Un(pI(),Lr);Un(gI(),Lr);Un(PI(),Lr);Un(LI(),Lr);Un(NI(),Lr);Un(jI(),Lr);Un(qI(),Lr);Un(r1(),Lr);Un(HI(),Lr)});var iu=w(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.supportedKernelWebSocketProtocols=void 0;zt.createMessage=Lee;zt.isStreamMsg=Nee;zt.isDisplayDataMsg=Bee;zt.isUpdateDisplayDataMsg=jee;zt.isExecuteInputMsg=zee;zt.isExecuteResultMsg=qee;zt.isErrorMsg=Hee;zt.isStatusMsg=Vee;zt.isClearOutputMsg=Uee;zt.isDebugEventMsg=Wee;zt.isCommOpenMsg=Gee;zt.isCommCloseMsg=Kee;zt.isCommMsgMsg=Yee;zt.isInfoRequestMsg=Xee;zt.isExecuteReplyMsg=Jee;zt.isDebugRequestMsg=Zee;zt.isDebugReplyMsg=Qee;zt.isInputRequestMsg=ete;zt.isInputReplyMsg=tte;var Fee=qe();function Lee(r){var e,t,i,n,s,o;return{buffers:(e=r.buffers)!==null&&e!==void 0?e:[],channel:r.channel,content:r.content,header:{date:new Date().toISOString(),msg_id:(t=r.msgId)!==null&&t!==void 0?t:Fee.UUID.uuid4(),msg_type:r.msgType,session:r.session,username:(i=r.username)!==null&&i!==void 0?i:"",subshell_id:(n=r.subshellId)!==null&&n!==void 0?n:null,version:"5.2"},metadata:(s=r.metadata)!==null&&s!==void 0?s:{},parent_header:(o=r.parentHeader)!==null&&o!==void 0?o:{}}}function Nee(r){return r.header.msg_type==="stream"}function Bee(r){return r.header.msg_type==="display_data"}function jee(r){return r.header.msg_type==="update_display_data"}function zee(r){return r.header.msg_type==="execute_input"}function qee(r){return r.header.msg_type==="execute_result"}function Hee(r){return r.header.msg_type==="error"}function Vee(r){return r.header.msg_type==="status"}function Uee(r){return r.header.msg_type==="clear_output"}function Wee(r){return r.header.msg_type==="debug_event"}function Gee(r){return r.header.msg_type==="comm_open"}function Kee(r){return r.header.msg_type==="comm_close"}function Yee(r){return r.header.msg_type==="comm_msg"}
5function Xee(r){return r.header.msg_type==="kernel_info_request"}function Jee(r){return r.header.msg_type==="execute_reply"}function Zee(r){return r.header.msg_type==="debug_request"}function Qee(r){return r.header.msg_type==="debug_reply"}function ete(r){return r.header.msg_type==="input_request"}function tte(r){return r.header.msg_type==="input_reply"}var VI;(function(r){r.v1KernelWebsocketJupyterOrg="v1.kernel.websocket.jupyter.org"})(VI||(zt.supportedKernelWebSocketProtocols=VI={}))});var WI=w(ws=>{"use strict";var rte=ws&&ws.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),ite=ws&&ws.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),nte=ws&&ws.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&rte(e,r,t);return ite(e,r),e};Object.defineProperty(ws,"__esModule",{value:!0});ws.serialize=ste;ws.deserialize=ote;var UI=nte(iu());function ste(r,e=""){switch(e){case UI.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return nu.serializeV1KernelWebsocketJupyterOrg(r);default:return nu.serializeDefault(r)}}function ote(r,e=""){switch(e){case UI.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return nu.deserializeV1KernelWebsocketJupyterOrg(r);default:return nu.deserializeDefault(r)}}var nu;(function(r){function e(a){let l,c=new DataView(a),u=Number(c.getBigUint64(0,!0)),d=[];for(let _=0;_<u;_++)d.push(Number(c.getBigUint64(8*(_+1),!0)));let f=new TextDecoder("utf8"),m=f.decode(a.slice(d[0],d[1])),g=JSON.parse(f.decode(a.slice(d[1],d[2]))),b=JSON.parse(f.decode(a.slice(d[2],d[3]))),v=JSON.parse(f.decode(a.slice(d[3],d[4]))),S=JSON.parse(f.decode(a.slice(d[4],d[5]))),k=[];for(let _=5;_<d.length-1;_++)k.push(new DataView(a.slice(d[_],d[_+1])));return l={channel:m,header:g,parent_header:b,metadata:v,content:S,buffers:k},l}r.deserializeV1KernelWebsocketJupyterOrg=e;function t(a){let l=JSON.stringify(a.header),c=a.parent_header==null?"{}":JSON.stringify(a.parent_header),u=JSON.stringify(a.metadata),d=JSON.stringify(a.content),f=a.buffers!==void 0?a.buffers:[],m=1+4+f.length+1,g=[];g.push(8*(1+m)),g.push(a.channel.length+g[g.length-1]);let b=new TextEncoder,v=b.encode(a.channel),S=b.encode(l),k=b.encode(c),_=b.encode(u),E=b.encode(d),R=new Uint8Array(v.length+S.length+k.length+_.length+E.length);R.set(v),R.set(S,v.length),R.set(k,v.length+S.length),R.set(_,v.length+S.length+k.length),R.set(E,v.length+S.length+k.length+_.length);for(let A of[S.length,k.length,_.length,E.length])g.push(A+g[g.length-1]);let P=0;for(let A of f){let D=A.byteLength;g.push(D+g[g.length-1]),P+=D}let T=new Uint8Array(8*(1+m)+R.byteLength+P),O=new ArrayBuffer(8),I=new DataView(O);I.setBigUint64(0,BigInt(m),!0),T.set(new Uint8Array(O),0);for(let A=0;A<g.length;A++)I.setBigUint64(0,BigInt(g[A]),!0),T.set(new Uint8Array(O),8*(A+1));T.set(R,g[0]);for(let A=0;A<f.length;A++){let D=f[A];T.set(new Uint8Array(ArrayBuffer.isView(D)?D.buffer:D),g[5+A])}return T.buffer}r.serializeV1KernelWebsocketJupyterOrg=t;function i(a){let l;return typeof a=="string"?l=JSON.parse(a):l=s(a),l}r.deserializeDefault=i;function n(a){var l;let c;return!((l=a.buffers)===null||l===void 0)&&l.length?c=o(a):c=JSON.stringify(a),c}r.serializeDefault=n;function s(a){let l=new DataView(a),c=l.getUint32(0),u=[];if(c<2)throw new Error("Invalid incoming Kernel Message");for(let m=1;m<=c;m++)u.push(l.getUint32(m*4));let d=new Uint8Array(a.slice(u[0],u[1])),f=JSON.parse(new TextDecoder("utf8").decode(d));f.buffers=[];for(let m=1;m<c;m++){let g=u[m],b=u[m+1]||a.byteLength;f.buffers.push(new DataView(a.slice(g,b)))}return f}function o(a){let l=[],c=[],u=new TextEncoder,d=[];a.buffers!==void 0&&(d=a.buffers,delete a.buffers);let f=u.encode(JSON.stringify(a));c.push(f.buffer);for(let v=0;v<d.length;v++){let S=d[v];c.push(ArrayBuffer.isView(S)?S.buffer:S)}let m=c.length;l.push(4*(m+1));for(let v=0;v+1<c.length;v++)l.push(l[l.length-1]+c[v].byteLength);let g=new Uint8Array(l[l.length-1]+c[c.length-1].byteLength),b=new DataView(g.buffer);b.setUint32(0,m);for(let v=0;v<l.length;v++)b.setUint32(4*(v+1),l[v]);for(let v=0;v<c.length;v++)g.set(new Uint8Array(c[v]),l[v]);return g.buffer}})(nu||(nu={}))});var GI=w(s1=>{"use strict";Object.defineProperty(s1,"__esModule",{value:!0});s1.default=WebSocket});var mi=w(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.ServerConnection=void 0;var Uo=Jt(),KI=WI(),o1;typeof window>"u"?o1=GI():o1=WebSocket;var a1;(function(r){function e(s){return Bp.makeSettings(s)}r.makeSettings=e;function t(s,o,a){return Bp.handleRequest(s,o,a)}r.makeRequest=t;
5class i extends Error{static async create(o){try{let a=await o.json(),{message:l,traceback:c}=a;return c&&console.error(c),new i(o,l??i._defaultMessage(o),c??"")}catch(a){return console.debug(a),new i(o)}}constructor(o,a=i._defaultMessage(o),l=""){super(a),this.response=o,this.traceback=l}static _defaultMessage(o){return`Invalid response: ${o.status} ${o.statusText}`}}r.ResponseError=i;class n extends TypeError{constructor(o){super(o.message),this.stack=o.stack}}r.NetworkError=n})(a1||(jp.ServerConnection=a1={}));var Bp;(function(r){function e(n={}){var s;let o=Uo.PageConfig.getBaseUrl(),a=Uo.PageConfig.getWsUrl(),l=Uo.URLExt.normalize(n.baseUrl)||o,c=n.wsUrl;!c&&l===o&&(c=a),!c&&l.indexOf("http")===0&&(c="ws"+l.slice(4)),c=c??a;let u=Uo.PageConfig.getOption("appendToken").toLowerCase(),d;return u===""?d=typeof window>"u"||typeof process<"u"&&((s=process==null?void 0:process.env)===null||s===void 0?void 0:s.JEST_WORKER_ID)!==void 0||Uo.URLExt.getHostName(o)!==Uo.URLExt.getHostName(c):d=u==="true",{init:{cache:"no-store",credentials:"same-origin"},fetch,Headers,Request,WebSocket:o1,token:Uo.PageConfig.getToken(),appUrl:Uo.PageConfig.getOption("appUrl"),appendToken:d,serializer:{serialize:KI.serialize,deserialize:KI.deserialize},...n,baseUrl:l,wsUrl:c}}r.makeSettings=e;function t(n,s,o){var a;if(n.indexOf(o.baseUrl)!==0)throw new Error("Can only be used for notebook server requests");((a=s.cache)!==null&&a!==void 0?a:o.init.cache)==="no-store"&&(n+=(/\?/.test(n)?"&":"?")+new Date().getTime());let c=new o.Request(n,{...o.init,...s}),u=!1;if(o.token&&(u=!0,c.headers.append("Authorization",`token ${o.token}`)),typeof document<"u"){let d=i("_xsrf");d!==void 0&&(u=!0,c.headers.append("X-XSRFToken",d))}return!c.headers.has("Content-Type")&&u&&c.headers.set("Content-Type","application/json"),o.fetch.call(null,c).catch(d=>{throw new a1.NetworkError(d)})}r.handleRequest=t;function i(n){let s="";try{s=document.cookie}catch{return}let o=s.match("\\b"+n+"=([^;]*)\\b");return o?.[1]}})(Bp||(Bp={}))});var rc=w(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.BaseManager=void 0;var YI=(Xe(),St(Jr)),ate=mi(),l1=class{constructor(e){var t;this._isDisposed=!1,this._disposed=new YI.Signal(this),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:ate.ServerConnection.makeSettings()}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get isActive(){return!0}dispose(){this.isDisposed||(this._isDisposed=!0,this._disposed.emit(void 0),YI.Signal.clearData(this))}};zp.BaseManager=l1});var JI=w(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.ConfigWithDefaults=Wo.ConfigSection=Wo.ConfigSectionManager=void 0;var lte=Jt(),su=Wn(),cte="api/config",c1=class{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:su.ServerConnection.makeSettings()}async create(e){let t=new qp({...e,serverSettings:this.serverSettings});return await t.load(),t}};Wo.ConfigSectionManager=c1;var XI;(function(r){async function e(n){if(!t){let o=new qp(n);return await o.load(),o}return await t.create(n)}r.create=e;let t;function i(n){if(t)throw new Error("ConfigSectionManager already set. If you would like to create a config section, use the `IConfigSectionManager` token in a plugin.");t=n}r._setConfigSectionManager=i})(XI||(Wo.ConfigSection=XI={}));var qp=class{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:su.ServerConnection.makeSettings(),this._name=e.name}get data(){return this._data}async load(){let e=await su.ServerConnection.makeRequest(this._url,{},this.serverSettings);if(e.status!==200)throw await su.ServerConnection.ResponseError.create(e);this._data=await e.json()}async update(e){this._data={...this._data,...e};let t={method:"PATCH",body:JSON.stringify(e)},i=await su.ServerConnection.makeRequest(this._url,t,this.serverSettings);if(i.status!==200)throw await su.ServerConnection.ResponseError.create(i);return this._data=await i.json(),this._data}get _url(){return lte.URLExt.join(this.serverSettings.baseUrl,cte,encodeURIComponent(this._name))}},u1=class{constructor(e){var t,i;this._className="",this._section=e.section,this._defaults=(t=e.defaults)!==null&&t!==void 0?t:{},this._className=(i=e.className)!==null&&i!==void 0?i:""}get(e){let t=this._classData();return e in t?t[e]:this._defaults[e]}set(e,t){let i={};if(i[e]=t,this._className){let n={};return n[this._className]=i,this._section.update(n)}else return this._section.update(i)}_classData(){let e=this._section.data;return this._className&&this._className in e?e[this._className]:e}};Wo.ConfigWithDefaults=u1});var ZI=w(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.ConnectionStatus=void 0;var d1=class{constructor(){this.isConnected=!0}};Hp.ConnectionStatus=d1});var Vp={};Zl(Vp,{DisposableDelegate:()=>Qi,DisposableSet:()=>Go,ObservableDisposableDelegate:()=>h1,ObservableDisposableSet:()=>qd});var Qi,h1,Go,qd,Gn=p(()=>{Xe();Qi=class{constructor(e){this._fn=e}get isDisposed(){return!this._fn}dispose(){if(!this._fn)return;let e=this._fn;this._fn=null,e()}},h1=class extends Qi{constructor(){super(...arguments),this._disposed=new te(this)}get disposed(){return this._disposed}
5dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),te.clearData(this))}},Go=class{constructor(){this._isDisposed=!1,this._items=new Set}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,this._items.forEach(e=>{e.dispose()}),this._items.clear())}contains(e){return this._items.has(e)}add(e){this._items.add(e)}remove(e){this._items.delete(e)}clear(){this._items.clear()}};(function(r){function e(t){let i=new r;for(let n of t)i.add(n);return i}r.from=e})(Go||(Go={}));qd=class extends Go{constructor(){super(...arguments),this._disposed=new te(this)}get disposed(){return this._disposed}dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),te.clearData(this))}};(function(r){function e(t){let i=new r;for(let n of t)i.add(n);return i}r.from=e})(qd||(qd={}))});var Hd=w(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.validateProperty=ute;function ute(r,e,t,i=[]){if(!r.hasOwnProperty(e))throw Error(`Missing property '${e}'`);let n=r[e];if(t!==void 0){let s=!0;switch(t){case"array":s=Array.isArray(n);break;case"object":s=typeof n<"u";break;default:s=typeof n===t}if(!s)throw new Error(`Property '${e}' is not of type '${t}'`);if(i.length>0){let o=!0;switch(t){case"string":case"number":case"boolean":o=i.includes(n);break;default:o=i.findIndex(a=>a===n)>=0;break}if(!o)throw new Error(`Property '${e}' is not one of the valid values ${JSON.stringify(i)}`)}}}});var QI=w(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.validateContentsModel=dte;
5Up.validateCheckpointModel=hte;var Ss=Hd();function dte(r){(0,Ss.validateProperty)(r,"name","string"),(0,Ss.validateProperty)(r,"path","string"),(0,Ss.validateProperty)(r,"type","string"),(0,Ss.validateProperty)(r,"created","string"),(0,Ss.validateProperty)(r,"last_modified","string"),(0,Ss.validateProperty)(r,"mimetype","object"),(0,Ss.validateProperty)(r,"content","object"),(0,Ss.validateProperty)(r,"format","object")}function hte(r){(0,Ss.validateProperty)(r,"id","string"),(0,Ss.validateProperty)(r,"last_modified","string")}});var g1=w(Ir=>{"use strict";var fte=Ir&&Ir.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),pte=Ir&&Ir.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),mte=Ir&&Ir.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&fte(e,r,t);return pte(e,r),e};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.RestContentProvider=Ir.ContentProviderRegistry=Ir.Drive=Ir.ContentsManager=Ir.Contents=void 0;var gi=Jt(),gte=(Gn(),St(Vp)),Vd=(Xe(),St(Jr)),Ht=Wn(),so=mte(QI()),bte="api/contents",vte="files",ek;(function(r){function e(i){so.validateContentsModel(i)}r.validateContentsModel=e;function t(i){so.validateCheckpointModel(i)}r.validateCheckpointModel=t})(ek||(Ir.Contents=ek={}));var p1=class{constructor(e={}){var t,i;this._isDisposed=!1,this._additionalDrives=new Map,this._fileChanged=new Vd.Signal(this);let n=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Ht.ServerConnection.makeSettings();this._defaultDrive=(i=e.defaultDrive)!==null&&i!==void 0?i:new Wp({serverSettings:n}),this._defaultDrive.fileChanged.connect(this._onFileChanged,this)}get defaultDrive(){return this._defaultDrive}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,Vd.Signal.clearData(this))}addDrive(e){this._additionalDrives.set(e.name,e),e.fileChanged.connect(this._onFileChanged,this)}getSharedModelFactory(e,t){var i,n;let[s]=this._driveForPath(e),o=(i=s.contentProviderRegistry)===null||i===void 0?void 0:i.getProvider(t?.contentProviderId);return o?.sharedModelFactory?o.sharedModelFactory:(n=s.sharedModelFactory)!==null&&n!==void 0?n:null}localPath(e){let t=e.split("/"),i=t[0].split(":");return i.length===1||!this._additionalDrives.has(i[0])?gi.PathExt.removeSlash(e):gi.PathExt.join(i.slice(1).join(":"),...t.slice(1))}normalize(e){let t=e.split(":");return t.length===1?gi.PathExt.normalize(e):`${t[0]}:${gi.PathExt.normalize(t.slice(1).join(":"))}`}resolvePath(e,t){let i=this.driveName(e),n=this.localPath(e),s=gi.PathExt.resolve("/",n,t);return i?`${i}:${s}`:s}driveName(e){let i=e.split("/")[0].split(":");return i.length===1?"":this._additionalDrives.has(i[0])?i[0]:""}get(e,t){let[i,n]=this._driveForPath(e);return i.get(n,t).then(s=>{let o=[];if(s.type==="directory"&&s.content){for(let a of s.content)o.push({...a,path:this._toGlobalPath(i,a.path)});return{...s,path:this._toGlobalPath(i,n),content:o,serverPath:s.path}}else return{...s,path:this._toGlobalPath(i,n),serverPath:s.path}})}getDownloadUrl(e){let[t,i]=this._driveForPath(e);return t.getDownloadUrl(i)}newUntitled(e={}){if(e.path){let t=this.normalize(e.path),[i,n]=this._driveForPath(t);return i.newUntitled({...e,path:n}).then(s=>({...s,path:gi.PathExt.join(t,s.name),serverPath:s.path}))}else return this._defaultDrive.newUntitled(e)}delete(e){let[t,i]=this._driveForPath(e);return t.delete(i)}rename(e,t){let[i,n]=this._driveForPath(e),[s,o]=this._driveForPath(t);if(i!==s)throw Error("ContentsManager: renaming files must occur within a Drive");return i.rename(n,o).then(a=>({...a,path:this._toGlobalPath(i,o),serverPath:a.path}))}save(e,t={}){let i=this.normalize(e),[n,s]=this._driveForPath(e);return n.save(s,{...t,path:s}).then(o=>({...o,path:i,serverPath:o.path}))}copy(e,t){let[i,n]=this._driveForPath(e),[s,o]=this._driveForPath(t);if(i===s)return i.copy(n,o).then(a=>({...a,path:this._toGlobalPath(i,a.path),serverPath:a.path}));throw Error("Copying files between drives is not currently implemented")}createCheckpoint(e){let[t,i]=this._driveForPath(e);return t.createCheckpoint(i)}listCheckpoints(e){let[t,i]=this._driveForPath(e);return t.listCheckpoints(i)}restoreCheckpoint(e,t){let[i,n]=this._driveForPath(e);return i.restoreCheckpoint(n,t)}deleteCheckpoint(e,t){let[i,n]=this._driveForPath(e);return i.deleteCheckpoint(n,t)}_toGlobalPath(e,t){return e===this._defaultDrive?gi.PathExt.removeSlash(t):`${e.name}:${gi.PathExt.removeSlash(t)}`}_driveForPath(e){let t=this.driveName(e),i=this.localPath(e);return t?[this._additionalDrives.get(t),i]:[this._defaultDrive,i]}_onFileChanged(e,t){var i,n;if(e===this._defaultDrive)this._fileChanged.emit(t);else{let s=null,o=null;!((i=t.newValue)===null||i===void 0)&&i.path&&(s={...t.newValue,path:this._toGlobalPath(e,t.newValue.path)}),!((n=t.oldValue)===null||n===void 0)&&n.path&&(o={...t.oldValue,path:this._toGlobalPath(e,t.oldValue.path)}),this._fileChanged.emit({type:t.type,newValue:s,oldValue:o})}}};Ir.ContentsManager=p1;var Wp=class{constructor(e={}){var t,i,n;this._isDisposed=!1,this._fileChanged=new Vd.Signal(this),this.name=(t=e.name)!==null&&t!==void 0?t:"Default",this._apiEndpoint=(i=e.apiEndpoint)!==null&&i!==void 0?i:bte,this.serverSettings=(n=e.serverSettings)!==null&&n!==void 0?n:Ht.ServerConnection.makeSettings(),this._restContentProvider=new Gp({...e,apiEndpoint:this._apiEndpoint,serverSettings:this.serverSettings}),e.defaultContentProvider?this.contentProviderRegistry=new Ud({defaultProvider:e.defaultContentProvider}):this.contentProviderRegistry=new Ud,this.contentProviderRegistry.fileChanged.connect((s,o)=>{this._fileChanged.emit(o)})}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,Vd.Signal.clearData(this))}async get(e,t){let i=this.contentProviderRegistry.getProvider(t?.contentProviderId);return i?i.get(e,t):await this._restContentProvider.get(e,t)}getDownloadUrl(e){let t=this.serverSettings.baseUrl,i=gi.URLExt.join(t,vte,gi.URLExt.encodeParts(e)),n="";try{n=document.cookie}catch{}let s=n.match("\\b_xsrf=([^;]*)\\b");if(s){let o=new URL(i);o.searchParams.append("_xsrf",s[1]),i=o.toString()}return Promise.resolve(i)}async newUntitled(e={}){var t;let i="{}";e&&(e.ext&&(e.ext=m1.normalizeExtension(e.ext)),i=JSON.stringify(e));let n=this.serverSettings,s=this._getUrl((t=e.path)!==null&&t!==void 0?t:""),o={method:"POST",body:i}
5,a=await Ht.ServerConnection.makeRequest(s,o,n);if(a.status!==201)throw await Ht.ServerConnection.ResponseError.create(a);let l=await a.json();return so.validateContentsModel(l),this._fileChanged.emit({type:"new",oldValue:null,newValue:l}),l}async delete(e){let t=this._getUrl(e),i=this.serverSettings,n={method:"DELETE"},s=await Ht.ServerConnection.makeRequest(t,n,i);if(s.status!==204)throw await Ht.ServerConnection.ResponseError.create(s);this._fileChanged.emit({type:"delete",oldValue:{path:e},newValue:null})}async rename(e,t){let i=this.serverSettings,n=this._getUrl(e),s={method:"PATCH",body:JSON.stringify({path:t})},o=await Ht.ServerConnection.makeRequest(n,s,i);if(o.status!==200)throw await Ht.ServerConnection.ResponseError.create(o);let a=await o.json();return so.validateContentsModel(a),this._fileChanged.emit({type:"rename",oldValue:{path:e},newValue:a}),a}async save(e,t={}){let i=this.contentProviderRegistry.getProvider(t?.contentProviderId),n;return i?n=await i.save(e,t):n=await this._restContentProvider.save(e,t),this._fileChanged.emit({type:"save",oldValue:null,newValue:n}),n}async copy(e,t){let i=this.serverSettings,n=this._getUrl(t),s={method:"POST",body:JSON.stringify({copy_from:e})},o=await Ht.ServerConnection.makeRequest(n,s,i);if(o.status!==201)throw await Ht.ServerConnection.ResponseError.create(o);let a=await o.json();return so.validateContentsModel(a),this._fileChanged.emit({type:"new",oldValue:null,newValue:a}),a}async createCheckpoint(e){let t=this._getUrl(e,"checkpoints"),i={method:"POST"},n=await Ht.ServerConnection.makeRequest(t,i,this.serverSettings);if(n.status!==201)throw await Ht.ServerConnection.ResponseError.create(n);let s=await n.json();return so.validateCheckpointModel(s),s}async listCheckpoints(e){let t=this._getUrl(e,"checkpoints"),i=await Ht.ServerConnection.makeRequest(t,{},this.serverSettings);if(i.status!==200)throw await Ht.ServerConnection.ResponseError.create(i);let n=await i.json();if(!Array.isArray(n))throw new Error("Invalid Checkpoint list");for(let s=0;s<n.length;s++)so.validateCheckpointModel(n[s]);return n}async restoreCheckpoint(e,t){let i=this._getUrl(e,"checkpoints",t),n={method:"POST"},s=await Ht.ServerConnection.makeRequest(i,n,this.serverSettings);if(s.status!==204)throw await Ht.ServerConnection.ResponseError.create(s)}async deleteCheckpoint(e,t){let i=this._getUrl(e,"checkpoints",t),n={method:"DELETE"},s=await Ht.ServerConnection.makeRequest(i,n,this.serverSettings);if(s.status!==204)throw await Ht.ServerConnection.ResponseError.create(s)}_getUrl(...e){let t=e.map(n=>gi.URLExt.encodeParts(n)),i=this.serverSettings.baseUrl;return gi.URLExt.join(i,this._apiEndpoint,...t)}};Ir.Drive=Wp;var m1;(function(r){function e(t){return t.length>0&&t.indexOf(".")!==0&&(t=`.${t}`),t}r.normalizeExtension=e})(m1||(m1={}));var Ud=class{constructor(e){this._providers=new Map,this._fileChanged=new Vd.Signal(this),e?.defaultProvider&&this.register("default",e.defaultProvider)}register(e,t){if(this._providers.has(e))throw Error(`Provider with ${e} identifier was already registered on this drive`);this._providers.set(e,t);let i=(n,s)=>{this._fileChanged.emit(s)};return t.fileChanged&&t.fileChanged.connect(i),new gte.DisposableDelegate(()=>{t.fileChanged&&t.fileChanged.disconnect(i),this._providers.has(e)&&this._providers.delete(e)})}getProvider(e){if(!e)return null;let t=this._providers.get(e);if(!t)throw Error(`Provider ${e} is not registered`);return t}get fileChanged(){return this._fileChanged}};Ir.ContentProviderRegistry=Ud;var Gp=class{constructor(e){this._options=e}async get(e,t){let i=this._getUrl(e);if(t){t.type==="notebook"&&delete t.format;let a=t.content?"1":"0",l=t.hash?"1":"0",c={...t,content:a,hash:l};i+=gi.URLExt.objectToQueryString(c)}let n=this._options.serverSettings,s=await Ht.ServerConnection.makeRequest(i,{},n);if(s.status!==200)throw await Ht.ServerConnection.ResponseError.create(s);let o=await s.json();return so.validateContentsModel(o),o}async save(e,t={}){let i=this._options.serverSettings,n=this._getUrl(e),o={method:"PUT",body:new File([JSON.stringify(t)],"data.json",{type:"application/json"})}
5,a=await Ht.ServerConnection.makeRequest(n,o,i);if(a.status!==200&&a.status!==201)throw await Ht.ServerConnection.ResponseError.create(a);let l=await a.json();return so.validateContentsModel(l),l}_getUrl(...e){let t=e.map(n=>gi.URLExt.encodeParts(n)),i=this._options.serverSettings.baseUrl;return gi.URLExt.join(i,this._options.apiEndpoint,...t)}};Ir.RestContentProvider=Gp});var nc={};Zl(nc,{Debouncer:()=>b1,Poll:()=>Zt,RateLimiter:()=>Wd,Throttler:()=>ic});var Ko,Zt,Kn,Wd,b1,ic,oo=p(()=>{Ko=N(qe());Xe();Zt=class{constructor(e){var t;this._disposed=new te(this),this._lingered=0,this._tick=new Ko.PromiseDelegate,this._ticked=new te(this),this._factory=e.factory,this._linger=(t=e.linger)!==null&&t!==void 0?t:Kn.DEFAULT_LINGER,this._standby=e.standby||Kn.DEFAULT_STANDBY,this._state={...Kn.DEFAULT_STATE,timestamp:new Date().getTime()};let i=e.frequency||{},n=Math.max(i.interval||0,i.max||0,Kn.DEFAULT_FREQUENCY.max);this.frequency={...Kn.DEFAULT_FREQUENCY,...i,max:n},this.name=e.name||Kn.DEFAULT_NAME,(!("auto"in e)||e.auto)&&setTimeout(()=>this.start())}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(e){if(this.isDisposed||Ko.JSONExt.deepEqual(e,this.frequency||{}))return;let{backoff:t,interval:i,max:n}=e;if(i=Math.round(i),n=Math.round(n),typeof t=="number"&&t<1)throw new Error("Poll backoff growth factor must be at least 1");if((i<0||i>n)&&i!==Zt.NEVER)throw new Error("Poll interval must be between 0 and max");if(n>Zt.MAX_INTERVAL&&n!==Zt.NEVER)throw new Error(`Max interval must be less than ${Zt.MAX_INTERVAL}`);this._frequency={backoff:t,interval:i,max:n}}get isDisposed(){return this.state.phase==="disposed"}get standby(){return this._standby}set standby(e){this.isDisposed||this.standby===e||(this._standby=e)}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){for(;!this.isDisposed;)yield this.state,await this.tick.catch(()=>{})}dispose(){this.isDisposed||(this._state={...Kn.DISPOSED_STATE,timestamp:new Date().getTime()},this._tick.promise.catch(e=>{}),this._tick.reject(new Error(`Poll (${this.name}) is disposed.`)),this._disposed.emit(void 0),te.clearData(this))}refresh(){return this.schedule({cancel:({phase:e})=>e==="refreshed",interval:Zt.IMMEDIATE,phase:"refreshed"})}async schedule(e={}){if(this.isDisposed||e.cancel&&e.cancel(this.state))return;let t=this._tick,i=new Ko.PromiseDelegate,n={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:new Date().getTime(),...e};if(this._state=n,this._tick=i,clearTimeout(this._timeout),this._ticked.emit(this.state),t.resolve(this),await t.promise,n.interval===Zt.NEVER){this._timeout=void 0;return}let s=()=>{this.isDisposed||this.tick!==i.promise||this._execute()};this._timeout=setTimeout(s,n.interval)}start(){return this.schedule({cancel:({phase:e})=>e!=="constructed"&&e!=="standby"&&e!=="stopped",interval:Zt.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:e})=>e==="stopped",interval:Zt.NEVER,phase:"stopped"})}get hidden(){return Kn.hidden}_execute(){let e=typeof this.standby=="function"?this.standby():this.standby;if(e==="never"?e=!1:e==="when-hidden"&&(this.hidden?e=++this._lingered>this._linger:(this._lingered=0,e=!1)),e){this.schedule();return}let t=this.tick;this._factory(this.state).then(i=>{this.isDisposed||this.tick!==t||this.schedule({payload:i,phase:this.state.phase==="rejected"?"reconnected":"resolved"})}).catch(i=>{this.isDisposed||this.tick!==t||this.schedule({interval:Kn.sleep(this.frequency,this.state),payload:i,phase:"rejected"})})}};(function(r){r.IMMEDIATE=0,r.MAX_INTERVAL=2147483647,r.NEVER=1/0})(Zt||(Zt={}));(function(r){r.DEFAULT_BACKOFF=3,r.DEFAULT_FREQUENCY={backoff:!0,interval:1e3,max:30*1e3},r.DEFAULT_LINGER=1,r.DEFAULT_NAME="unknown",r.DEFAULT_STANDBY="when-hidden",r.DEFAULT_STATE={interval:Zt.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()},r.DISPOSED_STATE={interval:Zt.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()};function e(i,n){let{backoff:s,interval:o,max:a}=i;if(o===Zt.NEVER)return o;let l=s===!0?r.DEFAULT_BACKOFF:s===!1?1:s,c=t(o,n.interval*l);
5return Math.min(a,c)}r.sleep=e,r.hidden=(()=>typeof document>"u"?!1:(document.addEventListener("visibilitychange",()=>{r.hidden=document.visibilityState==="hidden"}),document.addEventListener("pagehide",()=>{r.hidden=document.visibilityState==="hidden"}),document.visibilityState==="hidden"))();function t(i,n){return i=Math.ceil(i),n=Math.floor(n),Math.floor(Math.random()*(n-i+1))+i}})(Kn||(Kn={}));Wd=class{constructor(e,t=500){this.args=void 0,this.payload=null,this.limit=t,this.poll=new Zt({auto:!1,factory:async()=>{let{args:i}=this;return this.args=void 0,e(...i)},frequency:{backoff:!1,interval:Zt.NEVER,max:Zt.NEVER},standby:"never"}),this.payload=new Ko.PromiseDelegate,this.poll.ticked.connect((i,n)=>{let{payload:s}=this;if(n.phase==="resolved"){this.payload=new Ko.PromiseDelegate,s.resolve(n.payload);return}if(n.phase==="rejected"||n.phase==="stopped"){this.payload=new Ko.PromiseDelegate,s.promise.catch(o=>{}),s.reject(n.payload);return}},this)}get isDisposed(){return this.payload===null}dispose(){this.isDisposed||(this.args=void 0,this.payload=null,this.poll.dispose())}async stop(){return this.poll.stop()}},b1=class extends Wd{invoke(...e){return this.args=e,this.poll.schedule({interval:this.limit,phase:"invoked"}),this.payload.promise}},ic=class extends Wd{constructor(e,t){super(e,typeof t=="number"?t:t&&t.limit),this._trailing=!1,typeof t!="number"&&t&&t.edge==="trailing"&&(this._trailing=!0),this._interval=this._trailing?this.limit:Zt.IMMEDIATE}invoke(...e){let t=this.poll.state.phase!=="invoked";return(t||this._trailing)&&(this.args=e),t&&this.poll.schedule({interval:this._interval,phase:"invoked"}),this.payload.promise}}});var y1=w(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.EventManager=void 0;var tk=Jt(),yte=(oo(),St(nc)),rk=(Xe(),St(Jr)),ik=mi(),nk="api/events",v1=class{constructor(e={}){var t,i;this._socket=null,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:ik.ServerConnection.makeSettings(),this._poll=new yte.Poll({factory:()=>this._subscribe(),standby:(i=e.standby)!==null&&i!==void 0?i:"when-hidden"}),this._stream=new rk.Stream(this),this._poll.start()}get isDisposed(){return this._poll.isDisposed}get stream(){return this._stream}dispose(){if(this.isDisposed)return;this._poll.dispose();let e=this._socket;e&&(this._socket=null,e.onopen=()=>{},e.onerror=()=>{},e.onmessage=()=>{},e.onclose=()=>{},e.close()),rk.Signal.clearData(this),this._stream.stop()}async emit(e){let{serverSettings:t}=this,{baseUrl:i}=t,{makeRequest:n,ResponseError:s}=ik.ServerConnection,o=tk.URLExt.join(i,nk),a={body:JSON.stringify(e),method:"POST"},l=await n(o,a,t);if(l.status!==204)throw new s(l)}_subscribe(){return new Promise((e,t)=>{if(this.isDisposed)return;let{appendToken:i,token:n,WebSocket:s,wsUrl:o}=this.serverSettings,a=tk.URLExt.join(o,nk,"subscribe");i&&n!==""&&(a+=`?token=${encodeURIComponent(n)}`);let l=this._socket=new s(a),c=this._stream;l.onclose=()=>t(new Error("EventManager socket closed")),l.onmessage=u=>u.data&&c.emit(JSON.parse(u.data))})}};Kp.EventManager=v1});var _1=w(_n=>{"use strict";var xte=_n&&_n.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),_te=_n&&_n.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),wte=_n&&_n.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&xte(e,r,t);return _te(e,r),e};Object.defineProperty(_n,"__esModule",{value:!0});_n.CommHandler=_n.CommsOverSubshells=void 0;var x1=qe(),Ste=(Gn(),St(Vp)),Yp=wte(iu()),Yo;(function(r){r.Disabled="disabled",r.PerComm="perComm",r.PerCommTarget="perCommTarget"})(Yo||(_n.CommsOverSubshells=Yo={}));var en=class extends Ste.DisposableDelegate{constructor(e,t,i,n,s){super(n),this._subshellStarted=new x1.PromiseDelegate,this._subshellId=null,this._target="",this._id="",this._id=t,this._target=e,this._kernel=i,this._kernel.statusChanged.connect(()=>{this._kernel.status==="restarting"&&this._cleanSubshells()}),this.commsOverSubshells=s??Yo.PerCommTarget}get commId(){return this._id}get targetName(){return this._target}get subshellId(){return this._subshellId}get subshellStarted(){return this._subshellStarted.promise}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){if(e===this._commsOverSubshells)return;let t=this._maybeCloseSubshell(this._commsOverSubshells);this._commsOverSubshells=e,t.then(()=>{this._commsOverSubshells!==Yo.Disabled&&this._maybeStartSubshell()}).catch(console.warn)}get onClose(){return this._onClose}set onClose(e){this._onClose=e}get onMsg(){return this._onMsg}set onMsg(e){this._onMsg=e}open(e,t,i=[]){if(this.isDisposed||this._kernel.isDisposed)throw new Error("Cannot open");let n=Yp.createMessage({msgType:"comm_open",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,target_name:this._target,data:e??{}},metadata:t,buffers:i});return this._kernel.sendShellMessage(n,!1,!0)}send(e,t,i=[],n=!0){if(this.isDisposed||this._kernel.isDisposed)throw new Error("Cannot send");let s=Yp.createMessage({msgType:"comm_msg",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e},metadata:t,buffers:i});return this._kernel.sendShellMessage(s,!1,n)}close(e,t,i=[]){if(this.isDisposed||this._kernel.isDisposed)throw new Error("Cannot close");let n=Yp.createMessage({msgType:"comm_close",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e??{}},metadata:t,buffers:i}),s=this._kernel.sendShellMessage(n,!1,!0),o=this._onClose;if(o){let a=Yp.createMessage({msgType:"comm_close",channel:"iopub",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e??{}},metadata:t,buffers:i});o(a)}return this.dispose(),s}dispose(){this._maybeCloseSubshell(this._commsOverSubshells),super.dispose()}_cleanSubshells(){let e=this._kernel.id;en._commTargetSubShellsId.hasOwnProperty(e)&&delete en._commTargetSubShellsId[e]}async _maybeStartSubshell(){if(await this._kernel.info,!this._kernel.supp
5ortsSubshells)return;if(this._commsOverSubshells===Yo.PerComm){let o=await this._kernel.requestCreateSubshell({}).done;this._subshellId=o.content.subshell_id,this._subshellStarted.resolve();return}let e=this._subshellStarted,t=this._kernel.id;en._commTargetSubShellsId.hasOwnProperty(t)||(en._commTargetSubShellsId[t]={});let i=en._commTargetSubShellsId[t],n=i[this._target];if(n){n.referenceCount+=1;try{this._subshellId=await n.subshellId,e.resolve()}catch(o){await this._closePerCommTargetSubshell(!1),e.reject(`Per comm-target subshell creation failed: ${o}`)}return}let s={subshellId:this._kernel.requestCreateSubshell({}).done.then(o=>o.content.subshell_id),referenceCount:1};i[this._target]=s;try{this._subshellId=await s.subshellId,e.resolve()}catch(o){await this._closePerCommTargetSubshell(!1),e.reject(`Per comm-target subshell creation failed: ${o}`)}}async _closePerCommTargetSubshell(e=!0){let t=this._kernel.id,i=this._target;if(en._commTargetSubShellsId.hasOwnProperty(t)){let n=en._commTargetSubShellsId[t],s=n[i];if(s&&(s.referenceCount-=1,s.referenceCount<=0)){if(e){let o=null;try{o=await s.subshellId}catch(a){console.warn(`Subshell identifier not available in the closeout sequence, will not request deletion: ${a}`)}o!==null&&this._kernel.requestDeleteSubshell({subshell_id:o},!0)}delete n[i]}Object.keys(n).length===0&&delete en._commTargetSubShellsId[t],this._subshellId=null}this._subshellStarted=new x1.PromiseDelegate}async _maybeCloseSubshell(e){if(this._kernel.status!=="dead")switch(e){case Yo.PerComm:{this._subshellId&&(this._kernel.requestDeleteSubshell({subshell_id:this._subshellId},!0),this._subshellId=null),this._subshellStarted=new x1.PromiseDelegate;break}case Yo.PerCommTarget:{await this._closePerCommTargetSubshell();break}case Yo.Disabled:break}}};_n.CommHandler=en;en._commTargetSubShellsId={}});var ok=w(sk=>{"use strict";Object.defineProperty(sk,"__esModule",{value:!0})});var Xp=w(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.validateMessage=kte;Gd.validateModel=lk;Gd.validateModels=Tte;var sc=Hd(),ak=["username","version","session","msg_id","msg_type"],Cte={stream:{name:"string",text:"string"},display_data:{data:"object",metadata:"object"},execute_input:{code:"string",execution_count:"number"},execute_result:{execution_count:"number",data:"object",metadata:"object"},error:{ename:"string",evalue:"string",traceback:"object"},status:{execution_state:["string",["starting","idle","busy","restarting","dead"]]},clear_output:{wait:"boolean"},comm_open:{comm_id:"string",target_name:"string",data:"object"},comm_msg:{comm_id:"string",data:"object"},comm_close:{comm_id:"string"},shutdown_reply:{restart:"boolean"}};function Ite(r){for(let e=0;e<ak.length;e++)(0,sc.validateProperty)(r,ak[e],"string")}function kte(r){(0,sc.validateProperty)(r,"metadata","object"),(0,sc.validateProperty)(r,"content","object"),(0,sc.validateProperty)(r,"channel","string"),Ite(r.header),r.channel==="iopub"&&Ete(r)}function Ete(r){if(r.channel==="iopub"){let e=Cte[r.header.msg_type];if(e===void 0)return;let t=Object.keys(e),i=r.content;for(let n=0;n<t.length;n++){let s=e[t[n]];Array.isArray(s)||(s=[s]),(0,sc.validateProperty)(i,t[n],...s)}}}function lk(r){(0,sc.validateProperty)(r,"name","string"),(0,sc.validateProperty)(r,"id","string")}function Tte(r){if(!Array.isArray(r))throw new Error("Invalid kernel list");r.forEach(e=>lk(e))}});var Zp=w(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.KernelAPIClient=kr.KERNEL_SERVICE_URL=void 0;kr.listRunning=ck;kr.startNew=uk;kr.restartKernel=dk;kr.interruptKernel=hk;kr.shutdownKernel=fk;kr.getKernelModel=pk;var gr=mi(),ou=Jt(),Jp=Xp();kr.KERNEL_SERVICE_URL="api/kernels";async function ck(r=gr.ServerConnection.makeSettings()){let e=ou.URLExt.join(r.baseUrl,kr.KERNEL_SERVICE_URL),t=await gr.ServerConnection.makeRequest(e,{},r);if(t.status!==200)throw await gr.ServerConnection.ResponseError.create(t);let i=await t.json();return(0,Jp.validateModels)(i),i}async function uk(r={},e=gr.ServerConnection.makeSettings()){let t=ou.URLExt.join(e.baseUrl,kr.KERNEL_SERVICE_URL),i={method:"POST",body:JSON.stringify(r)}
5,n=await gr.ServerConnection.makeRequest(t,i,e);if(n.status!==201)throw await gr.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,Jp.validateModel)(s),s}async function dk(r,e=gr.ServerConnection.makeSettings()){let t=ou.URLExt.join(e.baseUrl,kr.KERNEL_SERVICE_URL,encodeURIComponent(r),"restart"),i={method:"POST"},n=await gr.ServerConnection.makeRequest(t,i,e);if(n.status!==200)throw await gr.ServerConnection.ResponseError.create(n);let s=await n.json();(0,Jp.validateModel)(s)}async function hk(r,e=gr.ServerConnection.makeSettings()){let t=ou.URLExt.join(e.baseUrl,kr.KERNEL_SERVICE_URL,encodeURIComponent(r),"interrupt"),i={method:"POST"},n=await gr.ServerConnection.makeRequest(t,i,e);if(n.status!==204)throw await gr.ServerConnection.ResponseError.create(n)}async function fk(r,e=gr.ServerConnection.makeSettings()){let t=ou.URLExt.join(e.baseUrl,kr.KERNEL_SERVICE_URL,encodeURIComponent(r)),i={method:"DELETE"},n=await gr.ServerConnection.makeRequest(t,i,e);if(n.status===404){let s=`The kernel "${r}" does not exist on the server`;console.warn(s)}else if(n.status!==204)throw await gr.ServerConnection.ResponseError.create(n)}async function pk(r,e=gr.ServerConnection.makeSettings()){let t=ou.URLExt.join(e.baseUrl,kr.KERNEL_SERVICE_URL,encodeURIComponent(r)),i=await gr.ServerConnection.makeRequest(t,{},e);if(i.status===404)return;if(i.status!==200)throw await gr.ServerConnection.ResponseError.create(i);let n=await i.json();return(0,Jp.validateModel)(n),n}var w1=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:gr.ServerConnection.makeSettings()}async listRunning(){return ck(this.serverSettings)}async getModel(e){return pk(e,this.serverSettings)}async startNew(e={}){return uk(e,this.serverSettings)}async restart(e){return dk(e,this.serverSettings)}async interrupt(e){return hk(e,this.serverSettings)}async shutdown(e){return fk(e,this.serverSettings)}};kr.KernelAPIClient=w1});var gk=w(Ti=>{"use strict";var Ate=Ti&&Ti.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Rte=Ti&&Ti.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Ote=Ti&&Ti.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Ate(e,r,t);return Rte(e,r),e};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.KernelShellFutureHandler=Ti.KernelControlFutureHandler=Ti.KernelFutureHandler=void 0;var mk=qe(),Dte=(Gn(),St(Vp)),$te=Ote(iu()),Kd=class extends Dte.DisposableDelegate{constructor(e,t,i,n,s){super(e),this._status=0,this._stdin=Nr.noOp,this._iopub=Nr.noOp,this._reply=Nr.noOp,this._done=new mk.PromiseDelegate,this._hooks=new Nr.HookList,this._disposeOnDone=!0,this._msg=t,i||this._setFlag(Nr.KernelFutureFlag.GotReply),this._disposeOnDone=n,this._kernel=s}get msg(){return this._msg}get done(){return this._done.promise}get onReply(){return this._reply}set onReply(e){this._reply=e}get onIOPub(){return this._iopub}set onIOPub(e){this._iopub=e}get onStdin(){return this._stdin}set onStdin(e){this._stdin=e}registerMessageHook(e){if(this.isDisposed)throw new Error("Kernel future is disposed");this._hooks.add(e)}removeMessageHook(e){this.isDisposed||this._hooks.remove(e)}sendInputReply(e,t){this._kernel.sendInputReply(e,t)}dispose(){this._stdin=Nr.noOp,this._iopub=Nr.noOp,this._reply=Nr.noOp,this._hooks=null,this._testFlag(Nr.KernelFutureFlag.IsDone)||(this._done.promise.catch(()=>{}),this._done.reject(new Error(`Canceled future for ${this.msg.header.msg_type} message before replies were done`))),super.dispose()}async handleMsg(e){switch(e.channel){case"control":case"shell":e.channel===this.msg.channel&&e.parent_header.msg_id===this.msg.header.msg_id&&await this._handleReply(e);break;case"stdin":await this._handleStdin(e);break;case"iopub":await this._handleIOPub(e);break;default:break}}async _handleReply(e){let t=this._reply;t&&await t(e),this._replyMsg=e,this._setFlag(Nr.KernelFutureFlag.GotReply),this._testFlag(Nr.KernelFutureFlag.GotIdle)&&this._handleDone()}async _handleStdin(e){this._kernel.hasPendingInput=!0;let t=this._stdin;t&&await t(e)}async _handleIOPub(e){let t=await this._hooks.process(e),i=this._iopub;t&&i&&await i(e),$te.isStatusMsg(e)&&e.content.execution_state==="idle"&&(this._setFlag(Nr.KernelFutureFlag.GotIdle),this._testFlag(Nr.KernelFutureFlag.GotReply)&&this._handleDone())}_handleDone(){this._testFlag(Nr.KernelFutureFlag.IsDone)||(this._setFlag(Nr.KernelFutureFlag.IsDone),this._done.resolve(this._replyMsg),this._disposeOnDone&&this.dispose())}_testFlag(e){return(this._status&e)!==0}_setFlag(e){this._status|=e}};Ti.KernelFutureHandler=Kd;var S1=class extends Kd{};Ti.KernelControlFutureHandler=S1;var C1=class extends Kd{};Ti.KernelShellFutureHandler=C1;var Nr;(function(r){r.noOp=()=>{};let e=(()=>typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate)();class t{constructor(){this._hooks=[]}add(s){this.remove(s),this._hooks.push(s)}remove(s){let o=this._hooks.indexOf(s);o>=0&&(this._hooks[o]=null,this._scheduleCompact())}async process(s){await this._processing;let o=new mk.PromiseDelegate;this._processing=o.promise;let a;for(let l=this._hooks.length-1;l>=0;l--){let c=this._hooks[l];if(c!==null){try{a=await c(s)}catch(u){a=!0,console.error(u)}if(a===!1)return o.resolve(void 0),!1}}return o.resolve(void 0),!0}_scheduleCompact(){this._compactScheduled||(this._compactScheduled=!0,e(()=>{this._processing=this._processing.then(()=>{this._compactScheduled=!1,this._compact()})}))}_compact(){let s=0;for(let o=0,a=this._hooks.length;o<a;o++){let l=this._hooks[o];this._hooks[o]===null?s++:this._hooks[o-s]=l}this._hooks.length-=s}}r.HookList=t;let i;(function(n){n[n.GotReply=1]="GotReply",n[n.GotIdle=2]="GotIdle",n[n.IsDone=4]="IsDone",n[n.DisposeOnDone=8]="DisposeOnDone"})(i=r.KernelFutureFlag||(r.KernelFutureFlag={}))})(Nr||(Nr={}))});
5var vk=w(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.validateSpecModel=bk;Qp.validateSpecModels=Mte;var oc=Hd();function bk(r){let e=r.spec;if(!e)throw new Error("Invalid kernel spec");(0,oc.validateProperty)(r,"name","string"),(0,oc.validateProperty)(r,"resources","object"),(0,oc.validateProperty)(e,"language","string"),(0,oc.validateProperty)(e,"display_name","string"),(0,oc.validateProperty)(e,"argv","array");let t=null;e.hasOwnProperty("metadata")&&((0,oc.validateProperty)(e,"metadata","object"),t=e.metadata);let i=null;return e.hasOwnProperty("env")&&((0,oc.validateProperty)(e,"env","object"),i=e.env),{name:r.name,resources:r.resources,language:e.language,display_name:e.display_name,argv:e.argv,metadata:t,env:i}}function Mte(r){if(!r.hasOwnProperty("kernelspecs"))throw new Error("No kernelspecs found");let e=Object.keys(r.kernelspecs),t=Object.create(null),i=r.default;for(let n=0;n<e.length;n++){let s=r.kernelspecs[e[n]];try{t[e[n]]=bk(s)}catch{console.warn(`Removing errant kernel spec: ${e[n]}`)}}if(e=Object.keys(t),!e.length)throw new Error("No valid kernelspecs found");return(!i||typeof i!="string"||!(i in t))&&(i=e[0],console.warn(`Default kernel not found, using '${e[0]}'`)),{default:i,kernelspecs:t}}});var Xd=w(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.KernelSpecAPIClient=void 0;Yd.getSpecs=yk;var em=mi(),Pte=vk(),Fte=Jt(),Lte="api/kernelspecs";async function yk(r=em.ServerConnection.makeSettings()){let e=Fte.URLExt.join(r.baseUrl,Lte),t=await em.ServerConnection.makeRequest(e,{},r);if(t.status!==200)throw await em.ServerConnection.ResponseError.create(t);let i=await t.json();return(0,Pte.validateSpecModels)(i)}var I1=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:em.ServerConnection.makeSettings()}async get(){return yk(this.serverSettings)}};Yd.KernelSpecAPIClient=I1});var k1=w(Cs=>{"use strict";var Nte=Cs&&Cs.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Bte=Cs&&Cs.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Ck=Cs&&Cs.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Nte(e,r,t);return Bte(e,r),e};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.KernelConnection=void 0;var xk=Jt(),Xo=qe(),Jo=(Xe(),St(Jr)),Jd=Wn(),_k=_1(),Br=Ck(iu()),wk=gk(),jte=Ck(Xp()),Sk=Zp(),zte=Xd(),qte=Jt(),Hte=3e3,au="_RESTARTING_",Vte="",Zd=class{constructor(e){var t,i,n,s,o,a,l,c;this._createSocket=(u=!0)=>{this._errorIfDisposed(),this._clearSocket(),this._updateConnectionStatus("connecting");let d=this.serverSettings,f=xk.URLExt.join(d.wsUrl,Sk.KERNEL_SERVICE_URL,encodeURIComponent(this._id)),m=f.replace(/^((?:\w+:)?\/\/)(?:[^@\/]+@)/,"$1");console.debug(`Starting WebSocket: ${m}`);let g=xk.URLExt.join(f,"channels?session_id="+encodeURIComponent(this._clientId)),b=d.token;d.appendToken&&b!==""&&(g=g+`&token=${encodeURIComponent(b)}`);let v=u?this._supportedProtocols:[];this._ws=new d.WebSocket(g,v),this._ws.binaryType="arraybuffer";let S=!1,k=async E=>{var R,P;if(!this._isDisposed){this._reason="",this._model=void 0;try{let T=await this._kernelAPIClient.getModel(this._id);this._model=T,T?.execution_state==="dead"?this._updateStatus("dead"):this._onWSClose(E)}catch(T){if(T instanceof Jd.ServerConnection.NetworkError||((R=T.response)===null||R===void 0?void 0:R.status)===503||((P=T.response)===null||P===void 0?void 0:P.status)===424){let O=wn.getRandomIntInclusive(10,30)*1e3;setTimeout(k,O,E)}else this._reason="Kernel died unexpectedly",this._updateStatus("dead")}}},_=async E=>{S||(S=!0,await k(E))};this._ws.onmessage=this._onWSMessage,this._ws.onopen=this._onWSOpen,this._ws.onclose=_,this._ws.onerror=_},this._onWSOpen=u=>{if(this._ws.protocol!==""&&!this._supportedProtocols.includes(this._ws.protocol))throw console.log("Server selected unknown kernel wire protocol:",this._ws.protocol),this._updateStatus("dead"),new Error(`Unknown kernel wire protocol:  ${this._ws.protocol}`);
5this._selectedProtocol=this._ws.protocol,this._ws.onclose=this._onWSClose,this._ws.onerror=this._onWSClose,this._updateConnectionStatus("connected")},this._onWSMessage=u=>{let d;try{d=this.serverSettings.serializer.deserialize(u.data,this._ws.protocol),jte.validateMessage(d)}catch(f){throw f.message=`Kernel message validation error: ${f.message}`,f}this._kernelSession=d.header.session,this._msgChain=this._msgChain.then(()=>this._handleMessage(d)).catch(f=>{f.message.startsWith("Canceled future for ")&&console.error(f)}),this._anyMessage.emit({msg:d,direction:"recv"})},this._onWSClose=u=>{this.isDisposed||this._reconnect()},this._id="",this._name="",this._status="unknown",this._connectionStatus="connecting",this._kernelSession="",this._isDisposed=!1,this._ws=null,this._username="",this._reconnectLimit=7,this._reconnectAttempt=0,this._reconnectTimeout=null,this._supportedProtocols=Object.values(Br.supportedKernelWebSocketProtocols),this._selectedProtocol="",this._commsOverSubshells=Jd.CommsOverSubshells.PerCommTarget,this._futures=new Map,this._comms=new Map,this._targetRegistry=Object.create(null),this._info=new Xo.PromiseDelegate,this._pendingMessages=[],this._statusChanged=new Jo.Signal(this),this._connectionStatusChanged=new Jo.Signal(this),this._disposed=new Jo.Signal(this),this._iopubMessage=new Jo.Signal(this),this._anyMessage=new Jo.Signal(this),this._pendingInput=new Jo.Signal(this),this._unhandledMessage=new Jo.Signal(this),this._displayIdToParentIds=new Map,this._msgIdToDisplayIds=new Map,this._msgChain=Promise.resolve(),this._hasPendingInput=!1,this._reason="",this._noOp=()=>{},this._supportsSubshells=!1,this._name=e.model.name,this._id=e.model.id,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Jd.ServerConnection.makeSettings(),this._kernelAPIClient=(i=e.kernelAPIClient)!==null&&i!==void 0?i:new Sk.KernelAPIClient({serverSettings:this.serverSettings}),this._kernelSpecAPIClient=(n=e.kernelSpecAPIClient)!==null&&n!==void 0?n:new zte.KernelSpecAPIClient({serverSettings:this.serverSettings}),this._clientId=(s=e.clientId)!==null&&s!==void 0?s:Xo.UUID.uuid4(),this._username=(o=e.username)!==null&&o!==void 0?o:"",this.handleComms=(a=e.handleComms)!==null&&a!==void 0?a:!0,this._commsOverSubshells=(l=e.commsOverSubshells)!==null&&l!==void 0?l:Jd.CommsOverSubshells.PerCommTarget,this._subshellId=(c=e.subshellId)!==null&&c!==void 0?c:null,this._createSocket()}get disposed(){return this._disposed}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(let[t,i]of this._comms)i.commsOverSubshells=e}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get model(){return this._model||{id:this.id,name:this.name,reason:this._reason}}get anyMessage(){return this._anyMessage}get pendingInput(){return this._pendingInput}get id(){return this._id}get name(){return this._name}get username(){return this._username}get clientId(){return this._clientId}get subshellId(){return this._subshellId}set subshellId(e){this._subshellId=e}get status(){return this._status}get connectionStatus(){return this._connectionStatus}get isDisposed(){return this._isDisposed}get info(){return this._info.promise}get spec(){return this._specPromise?this._specPromise:(this._specPromise=this._kernelSpecAPIClient.get().then(e=>e.kernelspecs[this._name]),this._specPromise)}get supportsSubshells(){return this._supportsSubshells}clone(e={}){return new Zd({model:this.model,username:this.username,serverSettings:this.serverSettings,handleComms:!1,kernelAPIClient:this._kernelAPIClient,commsOverSubshells:Jd.CommsOverSubshells.Disabled,...e})}dispose(){if(this.isDisposed)return;let e=()=>{this._isDisposed=!0,this._disposed.emit(),this._updateConnectionStatus("disconnected"),this._clearKernelState(),this._pendingMessages=[],this._clearSocket(),Jo.Signal.clearData(this)};if(this._subshellId!==null){let t=this.requestDeleteSubshell({subshell_id:this._subshellId},!0);t.onReply=i=>
5{e()}}else e()}sendShellMessage(e,t=!1,i=!0){return this._sendKernelShellControl(wk.KernelShellFutureHandler,e,t,i)}sendControlMessage(e,t=!1,i=!0){return this._sendKernelShellControl(wk.KernelControlFutureHandler,e,t,i)}_sendKernelShellControl(e,t,i=!1,n=!0){this._sendMessage(t),this._anyMessage.emit({msg:t,direction:"send"});let s=new e(()=>{let o=t.header.msg_id;this._futures.delete(o);let a=this._msgIdToDisplayIds.get(o);a&&(a.forEach(l=>{let c=this._displayIdToParentIds.get(l);if(c){let u=c.indexOf(o);if(u===-1)return;c.length===1?this._displayIdToParentIds.delete(l):(c.splice(u,1),this._displayIdToParentIds.set(l,c))}}),this._msgIdToDisplayIds.delete(o))},t,i,n,this);return this._futures.set(t.header.msg_id,s),s}_sendMessage(e,t=!0){if(this.status==="dead")throw new Error("Kernel is dead");if((this._kernelSession===Vte||this._kernelSession===au)&&Br.isInfoRequestMsg(e))if(this.connectionStatus==="connected"){this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol));return}else throw new Error("Could not send message: status is not connected");if(t&&this._pendingMessages.length>0){this._pendingMessages.push(e);return}if(this.connectionStatus==="connected"&&this._kernelSession!==au)this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol));else if(t)this._pendingMessages.push(e);else throw new Error("Could not send message")}async interrupt(){if(this.hasPendingInput=!1,this.status==="dead")throw new Error("Kernel is dead");return this._kernelAPIClient.interrupt(this.id)}
5async restart(){if(this.status==="dead")throw new Error("Kernel is dead");this._updateStatus("restarting"),this._clearKernelState(),this._kernelSession=au,await this._kernelAPIClient.restart(this.id),await this.reconnect(),this.hasPendingInput=!1}reconnect(){this._errorIfDisposed();let e=new Xo.PromiseDelegate,t=(i,n)=>{n==="connected"?(e.resolve(),this.connectionStatusChanged.disconnect(t,this)):n==="disconnected"&&(e.reject(new Error("Kernel connection disconnected")),this.connectionStatusChanged.disconnect(t,this))};return this.connectionStatusChanged.connect(t,this),this._reconnectAttempt=0,this._reconnect(),e.promise}async shutdown(){this.status!=="dead"&&await this._kernelAPIClient.shutdown(this.id),this.handleShutdown()}handleShutdown(){this._updateStatus("dead"),this.dispose()}async requestKernelInfo(){let e=Br.createMessage({msgType:"kernel_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{}}),t;try{t=await wn.handleShellMessage(this,e)}catch(n){if(this.isDisposed)return;throw n}if(this._errorIfDisposed(),!t)return;if(t.content.status===void 0&&(t.content.status="ok"),t.content.status!=="ok")return this._info.reject("Kernel info reply errored"),t;this._info.resolve(t.content),this._kernelSession=t.header.session;let i=t.content.supported_features;return this._supportsSubshells=i!==void 0&&i.includes("kernel subshells"),t}requestComplete(e){let t=Br.createMessage({msgType:"complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return wn.handleShellMessage(this,t)}requestInspect(e){let t=Br.createMessage({msgType:"inspect_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return wn.handleShellMessage(this,t)}requestHistory(e){let t=Br.createMessage({msgType:"history_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return wn.handleShellMessage(this,t)}requestExecute(e,t=!0,i){let n={silent:!1,store_history:!0,user_expressions:{},allow_stdin:!0,stop_on_error:!1},s=Br.createMessage({msgType:"execute_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{...n,...e},metadata:i});return this.sendShellMessage(s,!0,t)}requestDebug(e,t=!0){let i=Br.createMessage({msgType:"debug_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(i,!0,t)}requestCreateSubshell(e,t=!0){if(!this.supportsSubshells)throw new Error("Kernel subshells are not supported");let i=Br.createMessage({msgType:"create_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(i,!0,t)}requestDeleteSubshell(e,t=!0){if(!this.supportsSubshells)throw new Error("Kernel subshells are not supported");let i=Br.createMessage({msgType:"delete_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(i,!0,t)}requestListSubshell(e,t=!0){if(!this.supportsSubshells)throw new Error("Kernel subshells are not supported");let i=Br.createMessage({msgType:"list_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(i,!0,t)}requestIsComplete(e){let t=Br.createMessage({msgType:"is_complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return wn.handleShellMessage(this,t)}requestCommInfo(e){let t=Br.createMessage({msgType:"comm_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return wn.handleShellMessage(this,t)}sendInputReply(e,t){let i=Br.createMessage({msgType:"input_reply",channel:"stdin",username:this._username,session:this._clientId,content:e});i.parent_header=t,this._sendMessage(i),this._anyMessage.emit({msg:i,direction:"send"}),this.hasPendingInput=!1}createComm(e,t=Xo.UUID.uuid4()){if(!this.handleComms)throw new Error("Comms are disabled on this kernel connection");if(this._comms.has(t))throw new Error("Comm is already created");let i=new _k.CommHandler(e,t,this,()=>{this._unregisterComm(t)},this._commsOverSubshells);return this._comms.set(t,i),i}hasComm(e){return this._comms.has(e)}registerCommTarget(e,t){this.handleComms&&(this._targetRegistry[e]=t)}
5removeCommTarget(e,t){this.handleComms&&!this.isDisposed&&this._targetRegistry[e]===t&&delete this._targetRegistry[e]}registerMessageHook(e,t){var i;let n=(i=this._futures)===null||i===void 0?void 0:i.get(e);n&&n.registerMessageHook(t)}removeMessageHook(e,t){var i;let n=(i=this._futures)===null||i===void 0?void 0:i.get(e);n&&n.removeMessageHook(t)}removeInputGuard(){this.hasPendingInput=!1}async _handleDisplayId(e,t){var i,n;let s=t.parent_header.msg_id,o=this._displayIdToParentIds.get(e);if(o){let l={header:Xo.JSONExt.deepCopy(t.header),parent_header:Xo.JSONExt.deepCopy(t.parent_header),metadata:Xo.JSONExt.deepCopy(t.metadata),content:Xo.JSONExt.deepCopy(t.content),channel:t.channel,buffers:t.buffers?t.buffers.slice():[]};l.header.msg_type="update_display_data",await Promise.all(o.map(async c=>{let u=this._futures&&this._futures.get(c);u&&await u.handleMsg(l)}))}if(t.header.msg_type==="update_display_data")return!0;o=(i=this._displayIdToParentIds.get(e))!==null&&i!==void 0?i:[],o.indexOf(s)===-1&&o.push(s),this._displayIdToParentIds.set(e,o);let a=(n=this._msgIdToDisplayIds.get(s))!==null&&n!==void 0?n:[];return a.indexOf(s)===-1&&a.push(s),this._msgIdToDisplayIds.set(s,a),!1}_clearSocket(){this._ws!==null&&(this._ws.onopen=this._noOp,this._ws.onclose=this._noOp,this._ws.onerror=this._noOp,this._ws.onmessage=this._noOp,this._ws.close(),this._ws=null)}_updateStatus(e){this._status===e||this._status==="dead"||(this._status=e,wn.logKernelStatus(this),this._statusChanged.emit(e),e==="dead"&&this.dispose())}_sendPending(){for(;this.connectionStatus==="connected"&&this._kernelSession!==au&&this._pendingMessages.length>0;)this._sendMessage(this._pendingMessages[0],!1),this._pendingMessages.shift()}_clearKernelState(){this._kernelSession="",this._pendingMessages=[],this._futures.forEach(e=>{e.dispose()}),this._comms.forEach(e=>{e.dispose()}),this._msgChain=Promise.resolve(),this._futures=new Map,this._comms=new Map,this._displayIdToParentIds.clear(),this._msgIdToDisplayIds.clear()}_assertCurrentMessage(e){if(this._errorIfDisposed(),e.header.session!==this._kernelSession)throw new Error(`Canceling handling of old message: ${e.header.msg_type}`)}async _handleCommOpen(e){this._assertCurrentMessage(e);let t=e.content,i=new _k.CommHandler(t.target_name,t.comm_id,this,()=>{this._unregisterComm(t.comm_id)},this.commsOverSubshells);this._comms.set(t.comm_id,i);try{await(await wn.loadObject(t.target_name,t.target_module,this._targetRegistry))(i,e)}catch(n){throw i.close(),console.error("Exception opening new comm"),n}}async _handleCommClose(e){this._assertCurrentMessage(e);let t=e.content,i=this._comms.get(t.comm_id);if(!i){console.error("Comm not found for comm id "+t.comm_id);return}this._unregisterComm(i.commId);let n=i.onClose;n&&await n(e),i.dispose()}async _handleCommMsg(e){this._assertCurrentMessage(e);let t=e.content,i=this._comms.get(t.comm_id);if(!i)return;let n=i.onMsg;n&&await n(e)}_unregisterComm(e){this._comms.delete(e)}_updateConnectionStatus(e){if(this._connectionStatus!==e){if(this._connectionStatus=e,e!=="connecting"&&(this._reconnectAttempt=0,clearTimeout(this._reconnectTimeout)),this.status!=="dead")if(e==="connected"){let t=this._kernelSession===au,i=this.requestKernelInfo(),n=!1,s=()=>{n||(n=!0,t&&this._kernelSession===au&&(this._kernelSession=""),clearTimeout(o),this._pendingMessages.length>0&&this._sendPending())};i.then(s);let o=setTimeout(s,Hte)}else this._updateStatus("unknown");this._connectionStatusChanged.emit(e)}}async _handleMessage(e){var t,i;let n=!1;if(e.parent_header&&e.channel==="iopub"&&(Br.isDisplayDataMsg(e)||Br.isUpdateDisplayDataMsg(e)||Br.isExecuteResultMsg(e))){let o=((t=e.content.transient)!==null&&t!==void 0?t:{}).display_id;o&&(n=await this._handleDisplayId(o,e),this._assertCurrentMessage(e))}if(!n&&e.parent_header){let s=e.parent_header,o=(i=this._futures)===null||i===void 0?void 0:i.get(s.msg_id);if(o)await o.handleMsg(e),this._assertCurrentMessage(e);else{let a=s.session===this.clientId;e.channel!=="iopub"&&a&&this._unhandledMessage.emit(e)}}if(e.channel==="iopub"){switch(e.header.msg_type){case"status":{let s=qte.PageConfig.getOption("untracked_message_types");if(JSON.parse(s||"[]").includes(e.parent_header.msg_type))break;let a=e.content.execution_state;a==="restarting"&&Promise.resolve().then(async()=>{this._updateStatus("autorestarting"),this._clearKernelState(),await this.reconnect()}),this._updateStatus(a);break}case"comm_open":this.handleComms&&await this._handleCommOpen(e);break;case"comm_msg":this.handleComms&&await this._handleCommMsg(e);break;case"comm_close":this.handleComms&&await this._handleCommClose(e);break;default:break}this.isDisposed||(this._assertCurrentMessage(e),this._iopubMessage.emit(e))}}_reconnect(){if(this._errorIfDisposed(),clearTimeout(this._reconnectTimeout),this._reconnectAttempt<this._reconnectLimit){this._updateConnectionStatus("connecting");let e=wn.getRandomIntInclusive(0,1e3*(Math.pow(2,this._reconnectAttempt)-1));console.warn(`Connection lost, reconnecting in ${Math.floor(e/1e3)} seconds.`);let t=this._selectedProtocol!=="";this._reconnectTimeout=setTimeout(this._createSocket,e,t),this._reconnectAttempt+=1}else this._updateConnectionStatus("disconnected");this._clearSocket()}_errorIfDisposed(){if(this.isDisposed)throw new Error("Kernel connection is disposed")}get hasPendingInput(){return this._hasPendingInput}set hasPendingInput(e){this._hasPendingInput=e,this._pendingInput.emit(e)}};Cs.KernelConnection=Zd;var wn;(function(r){function e(s){switch(s.status){case"idle":case"busy":case"unknown":return;default:console.debug(`Kernel: ${s.status} (${s.id})`);break}}r.logKernelStatus=e;async function t(s,o){return s.sendShellMessage(o,!0).done}r.handleShellMessage=t;function i(s,o,a){return new Promise((l,c)=>{if(o){if(typeof requirejs>"u")throw new Error("requirejs not found");requirejs([o],u=>{if(u[s]===void 0){let d=`Object '${s}' not found in module '${o}'`;c(new Error(d))}else l(u[s])},c)}else a?.[s]?l(a[s]):c(new Error(`Object '${s}' not found in registry`))})}r.loadObject=i;function n(s,o){return s=Math.ceil(s),o=Math.floor(o),Math.floor(Math.random()*(o-s+1))+s}r.getRandomIntInclusive=n})(wn||(wn={}))});var Ek=w(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.KernelManager=void 0;var Ute=(oo(),St(nc)),Ik=(Xe(),St(Jr)),kk=Wn(),Wte=rc(),Gte=Zp(),Kte=k1(),Yte=Xd(),Qd=class extends Wte.BaseManager{constructor(e={}){var t,i,n;super(e),this._commsOverSubshells=kk.CommsOverSubshells.PerCommTarget,this._isReady=!1,this._kernelConnections=new Set,this._models=new Map,this._runningChanged=new Ik.Signal(this),this._connectionFailure=new Ik.Signal(this),this._kernelAPIClient=(t=e.kernelAPIClient)!==null&&t!==void 0?t:new Gte.KernelAPIClient({serverSettings:this.serverSettings}),this._kernelSpecAPIClient=(i=e.kernelSpecAPIClient)!==null&&i!==void 0?i:new Yte.KernelSpecAPIClient({serverSettings:this.serverSettings}),this._pollModels=new Ute.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:KernelManager#models",standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"}),this._ready=(async()=>{await this._pollModels.start(),await this._pollModels.tick,this._isReady=!0})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){this.isDisposed||(this._models.clear(),this._kernelConnections.forEach(e
5=>e.dispose()),this._pollModels.dispose(),super.dispose())}connectTo(e){var t;let{id:i}=e.model,n=(t=e.handleComms)!==null&&t!==void 0?t:!0;if(e.handleComms===void 0){for(let o of this._kernelConnections)if(o.id===i&&o.handleComms){n=!1;break}}e.commsOverSubshells=this._commsOverSubshells;let s=new Kte.KernelConnection({handleComms:n,...e,serverSettings:this.serverSettings,kernelAPIClient:this._kernelAPIClient,kernelSpecAPIClient:this._kernelSpecAPIClient});return this._onStarted(s),this._models.has(i)||this.refreshRunning().catch(()=>{}),s}running(){return this._models.values()}get runningCount(){return this._models.size}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(let t of this._kernelConnections)t.commsOverSubshells=e}async refreshRunning(){await this._pollModels.refresh(),await this._pollModels.tick}async startNew(e={},t={}){let i=await this._kernelAPIClient.startNew(e);return this.connectTo({...t,model:i})}async shutdown(e){await this._kernelAPIClient.shutdown(e),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all([...this._models.keys()].map(e=>this._kernelAPIClient.shutdown(e))),await this.refreshRunning()}async findById(e){return this._models.has(e)?this._models.get(e):(await this.refreshRunning(),this._models.get(e))}async requestRunning(){var e,t;let i;try{i=await this._kernelAPIClient.listRunning()}catch(n){throw(n instanceof kk.ServerConnection.NetworkError||((e=n.response)===null||e===void 0?void 0:e.status)===503||((t=n.response)===null||t===void 0?void 0:t.status)===424)&&this._connectionFailure.emit(n),n}this.isDisposed||this._models.size===i.length&&i.every(n=>{let s=this._models.get(n.id);return s?s.connections===n.connections&&s.execution_state===n.execution_state&&s.last_activity===n.last_activity&&s.name===n.name&&s.reason===n.reason&&s.traceback===n.traceback:!1})||(this._models=new Map(i.map(n=>[n.id,n])),this._kernelConnections.forEach(n=>{this._models.has(n.id)||n.handleShutdown()}),this._runningChanged.emit(i))}_onStarted(e){this._kernelConnections.add(e),e.statusChanged.connect(this._onStatusChanged,this),e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._kernelConnections.delete(e),this.refreshRunning().catch(()=>{})}_onStatusChanged(e,t){t==="dead"&&this.refreshRunning().catch(()=>{})}};eh.KernelManager=Qd;(function(r){class e extends r{constructor(){super(...arguments),this._readyPromise=new Promise(()=>{})}get isActive(){return!1}get parentReady(){return super.ready}async startNew(i={},n={}){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}connectTo(i){throw new Error("Not implemented in no-op Kernel Manager")}async shutdown(i){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}get ready(){return this.parentReady.then(()=>this._readyPromise)}async requestRunning(){return Promise.resolve()}}r.NoopManager=e})(Qd||(eh.KernelManager=Qd={}))});var T1=w(Qt=>{"use strict";var Tk=Qt&&Qt.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Xte=Qt&&Qt.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),E1=Qt&&Qt.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Tk(e,r,t);return Xte(e,r),e},Jte=Qt&&Qt.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Tk(e,r,t)};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.CommsOverSubshells=Qt.KernelConnection=Qt.KernelAPI=Qt.KernelMessage=Qt.Kernel=void 0;var Zte=_1();Object.defineProperty(Qt,"CommsOverSubshells",{enumerable:!0,get:function(){return Zte.CommsOverSubshells}});var Qte=E1(ok());Qt.Kernel=Qte;var ere=E1(iu());Qt.KernelMessage=ere;var tre=E1(Zp());Qt.KernelAPI=tre;var rre=k1();Object.defineProperty(Qt,"KernelConnection",{enumerable:!0,get:function(){return rre.KernelConnection}});Jte(Ek(),Qt)});var Rk=w(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0})});var Dk=w(tm=>{"use strict";
5Object.defineProperty(tm,"__esModule",{value:!0});tm.KernelSpecManager=void 0;var ire=qe(),nre=(oo(),St(nc)),Ok=(Xe(),St(Jr)),sre=rc(),ore=Xd(),A1=class extends sre.BaseManager{constructor(e={}){var t,i;super(e),this._isReady=!1,this._connectionFailure=new Ok.Signal(this),this._specs=null,this._specsChanged=new Ok.Signal(this),this._kernelSpecAPIClient=(t=e.kernelSpecAPIClient)!==null&&t!==void 0?t:new ore.KernelSpecAPIClient({serverSettings:this.serverSettings}),this._ready=Promise.all([this.requestSpecs()]).then(n=>{}).catch(n=>{}).then(()=>{this.isDisposed||(this._isReady=!0)}),this._pollSpecs=new nre.Poll({auto:!1,factory:()=>this.requestSpecs(),frequency:{interval:61*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:KernelSpecManager#specs",standby:(i=e.standby)!==null&&i!==void 0?i:"when-hidden"}),this.ready.then(()=>{this._pollSpecs.start()})}get isReady(){return this._isReady}get ready(){return this._ready}get specs(){return this._specs}get specsChanged(){return this._specsChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose(),super.dispose()}async refreshSpecs(){await this._pollSpecs.refresh(),await this._pollSpecs.tick}async requestSpecs(){let e=await this._kernelSpecAPIClient.get();this.isDisposed||ire.JSONExt.deepEqual(e,this._specs)||(this._specs=e,this._specsChanged.emit(e))}};tm.KernelSpecManager=A1});var R1=w(bi=>{"use strict";var $k=bi&&bi.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),are=bi&&bi.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Mk=bi&&bi.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&$k(e,r,t);return are(e,r),e},lre=bi&&bi.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&$k(e,r,t)};Object.defineProperty(bi,"__esModule",{value:!0});bi.KernelSpecAPI=bi.KernelSpec=void 0;var cre=Mk(Rk());bi.KernelSpec=cre;var ure=Mk(Xd());bi.KernelSpecAPI=ure;lre(Dk(),bi)});var Pk=w(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.BuildManager=void 0;var O1=Jt(),Zo=mi(),dre="api/build",D1=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Zo.ServerConnection.makeSettings()}get isAvailable(){return O1.PageConfig.getOption("buildAvailable").toLowerCase()==="true"}get shouldCheck(){return O1.PageConfig.getOption("buildCheck").toLowerCase()==="true"}getStatus(){let{_url:e,serverSettings:t}=this;return Zo.ServerConnection.makeRequest(e,{},t).then(n=>{if(n.status!==200)throw new Zo.ServerConnection.ResponseError(n);return n.json()}).then(n=>{if(typeof n.status!="string")throw new Error("Invalid data");if(typeof n.message!="string")throw new Error("Invalid data");return n})}build(){let{_url:e,serverSettings:t}=this,i={method:"POST"};return Zo.ServerConnection.makeRequest(e,i,t).then(s=>{if(s.status===400)throw new Zo.ServerConnection.ResponseError(s,"Build aborted");if(s.status!==200){let o=`Build failed with ${s.status}.
6
7        If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda').
8
9        If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.`;throw new Zo.ServerConnection.ResponseError(s,o)}})}cancel(){let{_url:e,serverSettings:t}=this,i={method:"DELETE"};
9return Zo.ServerConnection.makeRequest(e,i,t).then(s=>{if(s.status!==204)throw new Zo.ServerConnection.ResponseError(s)})}get _url(){let{baseUrl:e,appUrl:t}=this.serverSettings;return O1.URLExt.join(e,t,dre)}};rm.BuildManager=D1});var F1=w(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.NbConvertManager=void 0;var $1=Jt(),M1=mi(),hre=qe(),fre="api/nbconvert",pre="nbconvert",P1=class{constructor(e={}){var t;this._exportFormats=null,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:M1.ServerConnection.makeSettings()}async fetchExportFormats(){this._requestingFormats=new hre.PromiseDelegate,this._exportFormats=null;let e=this.serverSettings.baseUrl,t=$1.URLExt.join(e,fre),{serverSettings:i}=this,n=await M1.ServerConnection.makeRequest(t,{},i);if(n.status!==200)throw await M1.ServerConnection.ResponseError.create(n);let s=await n.json(),o={};return Object.keys(s).forEach(function(l){let c=s[l].output_mimetype;o[l]={output_mimetype:c}}),this._exportFormats=o,this._requestingFormats.resolve(o),o}async getExportFormats(e=!0){return this._requestingFormats?this._requestingFormats.promise:e||!this._exportFormats?await this.fetchExportFormats():this._exportFormats}async exportAs(e){let{format:t,path:i}=e,{download:n=!1}=e.exporterOptions||{},s=this.serverSettings.baseUrl,o=$1.URLExt.encodeParts(i),a=$1.URLExt.join(s,pre,t,o);n&&(a+="?download=true"),window?.open(a,"_blank","noopener")}};im.NbConvertManager=P1});var Lk=w(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0})});var Bk=w(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.validateModel=Nk;rh.updateLegacySessionModel=gre;rh.validateModels=bre;var mre=Xp(),th=Hd();function Nk(r){(0,th.validateProperty)(r,"id","string"),(0,th.validateProperty)(r,"type","string"),(0,th.validateProperty)(r,"name","string"),(0,th.validateProperty)(r,"path","string"),(0,th.validateProperty)(r,"kernel","object"),(0,mre.validateModel)(r.kernel)}function gre(r){r.path===void 0&&r.notebook!==void 0&&(r.path=r.notebook.path,r.type="notebook",r.name="")}function bre(r){if(!Array.isArray(r))throw new Error("Invalid session list");r.forEach(e=>Nk(e))}});var om=w(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.SessionAPIClient=vi.SESSION_SERVICE_URL=void 0;vi.listRunning=jk;vi.getSessionUrl=sm;vi.shutdownSession=zk;vi.getSessionModel=qk;vi.startSession=Hk;vi.updateSession=Vk;var jr=mi(),nm=Jt(),Qo=Bk();vi.SESSION_SERVICE_URL="api/sessions";async function jk(r=jr.ServerConnection.makeSettings()){let e=nm.URLExt.join(r.baseUrl,vi.SESSION_SERVICE_URL),t=await jr.ServerConnection.makeRequest(e,{},r);if(t.status!==200)throw await jr.ServerConnection.ResponseError.create(t);let i=await t.json();if(!Array.isArray(i))throw new Error("Invalid Session list");return i.forEach(n=>{(0,Qo.updateLegacySessionModel)(n),(0,Qo.validateModel)(n)}),i}function sm(r,e){let t=nm.URLExt.join(r,vi.SESSION_SERVICE_URL),i=nm.URLExt.join(t,e);if(!i.startsWith(t))throw new Error("Can only be used for services requests");return i}async function zk(r,e=jr.ServerConnection.makeSettings()){var t;let i=sm(e.baseUrl,r),n={method:"DELETE"},s=await jr.ServerConnection.makeRequest(i,n,e);if(s.status===404){let a=(t=(await s.json()).message)!==null&&t!==void 0?t:`The session "${r}"" does not exist on the server`;console.warn(a)}else{if(s.status===410)throw new jr.ServerConnection.ResponseError(s,"The kernel was deleted but the session was not");if(s.status!==204)throw await jr.ServerConnection.ResponseError.create(s)}}async function qk(r,e=jr.ServerConnection.makeSettings()){let t=sm(e.baseUrl,r),i=await jr.ServerConnection.makeRequest(t,{},e);if(i.status!==200)throw await jr.ServerConnection.ResponseError.create(i);let n=await i.json();return(0,Qo.updateLegacySessionModel)(n),(0,Qo.validateModel)(n),n}async function Hk(r,e=jr.ServerConnection.makeSettings()){let t=nm.URLExt.join(e.baseUrl,vi.SESSION_SERVICE_URL),i={method:"POST",body:JSON.stringify(r)},n=await jr.ServerConnection.makeRequest(t,i,e);if(n.status!==201)throw await jr.ServerConnection.ResponseError.create(n);let s=await n.json();
9return(0,Qo.updateLegacySessionModel)(s),(0,Qo.validateModel)(s),s}async function Vk(r,e=jr.ServerConnection.makeSettings()){let t=sm(e.baseUrl,r.id),i={method:"PATCH",body:JSON.stringify(r)},n=await jr.ServerConnection.makeRequest(t,i,e);if(n.status!==200)throw await jr.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,Qo.updateLegacySessionModel)(s),(0,Qo.validateModel)(s),s}var L1=class{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:jr.ServerConnection.makeSettings()}async listRunning(){return jk(this.serverSettings)}async getModel(e){return qk(e,this.serverSettings)}async startNew(e){return Hk(e,this.serverSettings)}async shutdown(e){return zk(e,this.serverSettings)}async update(e){return Vk(e,this.serverSettings)}};vi.SessionAPIClient=L1});var Uk=w(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.SessionConnection=void 0;var Is=(Xe(),St(Jr)),vre=Wn(),yre=qe(),xre=om(),N1=class{constructor(e){var t,i,n,s,o;this._id="",this._path="",this._name="",this._type="",this._kernel=null,this._isDisposed=!1,this._disposed=new Is.Signal(this),this._kernelChanged=new Is.Signal(this),this._statusChanged=new Is.Signal(this),this._connectionStatusChanged=new Is.Signal(this),this._pendingInput=new Is.Signal(this),this._iopubMessage=new Is.Signal(this),this._unhandledMessage=new Is.Signal(this),this._anyMessage=new Is.Signal(this),this._propertyChanged=new Is.Signal(this),this._id=e.model.id,this._name=e.model.name,this._path=e.model.path,this._type=e.model.type,this._username=(t=e.username)!==null&&t!==void 0?t:"",this._clientId=(i=e.clientId)!==null&&i!==void 0?i:yre.UUID.uuid4(),this._connectToKernel=e.connectToKernel,this._kernelConnectionOptions=(n=e.kernelConnectionOptions)!==null&&n!==void 0?n:{},this.serverSettings=(s=e.serverSettings)!==null&&s!==void 0?s:vre.ServerConnection.makeSettings(),this._sessionAPIClient=(o=e.sessionAPIClient)!==null&&o!==void 0?o:new xre.SessionAPIClient({serverSettings:this.serverSettings}),this.setupKernel(e.model.kernel)}get disposed(){return this._disposed}get kernelChanged(){return this._kernelChanged}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get pendingInput(){return this._pendingInput}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get anyMessage(){return this._anyMessage}get propertyChanged(){return this._propertyChanged}get id(){return this._id}get kernel(){return this._kernel}get path(){return this._path}get type(){return this._type}get name(){return this._name}get model(){return{id:this.id,kernel:this.kernel&&{id:this.kernel.id,name:this.kernel.name},path:this._path,type:this._type,name:this._name}}get isDisposed(){return this._isDisposed}update(e){let t=this.model;if(this._path=e.path,this._name=e.name,this._type=e.type,this._kernel===null&&e.kernel!==null||this._kernel!==null&&e.kernel===null||this._kernel!==null&&e.kernel!==null&&this._kernel.id!==e.kernel.id){this._kernel!==null&&this._kernel.dispose();let i=this._kernel||null;this.setupKernel(e.kernel);let n=this._kernel||null;this._kernelChanged.emit({name:"kernel",oldValue:i,newValue:n})}this._handleModelChange(t)}dispose(){if(!this.isDisposed){if(this._isDisposed=!0,this._disposed.emit(),this._kernel){this._kernel.dispose();let e=this._kernel;this._kernel=null;let t=this._kernel;this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:t})}Is.Signal.clearData(this)}}async setPath(e){if(this.isDisposed)throw new Error("Session is disposed");await this._patch({path:e})}async setName(e){if(this.isDisposed)throw new Error("Session is disposed");await this._patch({name:e})}async setType(e){if(this.isDisposed)throw new Error("Session is disposed");await this._patch({type:e})}async changeKernel(e){if(this.isDisposed)throw new Error("Session is disposed");return await this._patch({kernel:e}),this.kernel}async shutdown(){if(this.isDisposed)throw new Error("Session is disposed");await this._sessionAPIClient.shutdown(this.id),this.dispose()}setupKernel(e){if(e===null){this._kernel=null;return}let t=this._connectToKernel({...this._kernelConnectionOptions,model:e,username:this._username,clientId:this._clientId,serverSettings:this.serverSettings});this._kernel=t,t.statusChanged.connect(this.onKernelStatus,this),t.connectionStatusChanged.connect(this.onKernelConnectionStatus,this),t.pendingInput.connect(this.onPendingInput,this),t.unhandledMessage.connect(this.onUnhandledMessage,this),t.iopubMessage.connect(this.onIOPubMessage,this),t.anyMessage.connect(this.onAnyMessage,this)}onKernelStatus(e,t){this._statusChanged.emit(t)}onKernelConnectionStatus(e,t){this._connectionStatusChanged.emit(t)}onPendingInput(e,t){this._pendingInput.emit(t)}onIOPubMessage(e,t){this._iopubMessage.emit(t)}onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}onAnyMessage(e,t){this._anyMessage.emit(t)}async _patch(e){let t=await this._sessionAPIClient.update({...e,id:this._id});return this.update(t),t}_handleModelChange(e){e.name!==this._name&&this._propertyChanged.emit("name"),e.type!==this._type&&this._propertyChanged.emit("type"),e.path!==this._path&&this._propertyChanged.emit("path")}};am.SessionConnection=N1});var Gk=w(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.SessionManager=void 0;var _re=(oo(),St(nc)),Wk=(Xe(),St(Jr)),wre=mi(),Sre=rc(),Cre=Uk(),Ire=om(),ih=class extends Sre.BaseManager{constructor(e){var t,i;super(e),this._isReady=!1,this._sessionConnections=new Set,this._models=new Map,this._runningChanged=new Wk.Signal(this),this._connectionFailure=new Wk.Signal(this),this._connectToKernel=n=>this._kernelManager.connectTo(n),this._kernelManager=e.kernelManager,this._sessionAPIClient=(t=e.sessionAPIClient)!==null&&t!==void 0?t:new Ire.SessionAPIClient({serverSettings:e.serverSettings}),this._pollModels=new _re.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:SessionManager#models",standby:(i=e.standby)!==null&&i!==void 0?i:"when-hidden"}),this._ready=(async()=>{await this._pollModels.start(),await this._pollModels.tick,this._kernelManager.isActive&&await this._kernelManager.ready,this._isReady=!0})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){this.isDisposed||(this._models.clear(),this._sessionConnections.forEach(e
9=>e.dispose()),this._pollModels.dispose(),super.dispose())}connectTo(e){let t=new Cre.SessionConnection({...e,connectToKernel:this._connectToKernel,serverSettings:this.serverSettings,sessionAPIClient:this._sessionAPIClient});return this._onStarted(t),this._models.has(e.model.id)||this.refreshRunning().catch(()=>{}),t}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh(),await this._pollModels.tick}async startNew(e,t={}){let i=await this._sessionAPIClient.startNew(e);return await this.refreshRunning(),this.connectTo({...t,model:i})}async shutdown(e){await this._sessionAPIClient.shutdown(e),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all([...this._models.keys()].map(e=>this._sessionAPIClient.shutdown(e))),await this.refreshRunning()}async stopIfNeeded(e){try{let i=(await this._sessionAPIClient.listRunning()).filter(n=>n.path===e);if(i.length===1){let n=i[0].id;await this.shutdown(n)}}catch{}}async findById(e){return this._models.has(e)?this._models.get(e):(await this.refreshRunning(),this._models.get(e))}async findByPath(e){for(let t of this._models.values())if(t.path===e)return t;await this.refreshRunning();for(let t of this._models.values())if(t.path===e)return t}async requestRunning(){var e,t;let i;try{i=await this._sessionAPIClient.listRunning()}catch(n){throw(n instanceof wre.ServerConnection.NetworkError||((e=n.response)===null||e===void 0?void 0:e.status)===503||((t=n.response)===null||t===void 0?void 0:t.status)===424)&&this._connectionFailure.emit(n),n}this.isDisposed||this._models.size===i.length&&i.every(n=>{var s,o,a,l;let c=this._models.get(n.id);return c?((s=c.kernel)===null||s===void 0?void 0:s.id)===((o=n.kernel)===null||o===void 0?void 0:o.id)&&((a=c.kernel)===null||a===void 0?void 0:a.name)===((l=n.kernel)===null||l===void 0?void 0:l.name)&&c.name===n.name&&c.path===n.path&&c.type===n.type:!1})||(this._models=new Map(i.map(n=>[n.id,n])),this._sessionConnections.forEach(n=>{this._models.has(n.id)?n.update(this._models.get(n.id)):n.dispose()}),this._runningChanged.emit(i))}_onStarted(e){this._sessionConnections.add(e),e.disposed.connect(this._onDisposed,this),e.propertyChanged.connect(this._onChanged,this),e.kernelChanged.connect(this._onChanged,this)}_onDisposed(e){this._sessionConnections.delete(e),this.refreshRunning().catch(()=>{})}_onChanged(){this.refreshRunning().catch(()=>{})}};nh.SessionManager=ih;(function(r){class e extends r{constructor(){super(...arguments),this._readyPromise=new Promise(()=>{})}get isActive(){return!1}get parentReady(){return super.ready}async startNew(i,n={}){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}connectTo(i){throw Error("Not implemented in no-op Session Manager")}get ready(){return this.parentReady.then(()=>this._readyPromise)}async shutdown(i){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}async requestRunning(){return Promise.resolve()}}r.NoopManager=e})(ih||(nh.SessionManager=ih={}))});var B1=w(yi=>{"use strict";var Kk=yi&&yi.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),kre=yi&&yi.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Yk=yi&&yi.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Kk(e,r,t);return kre(e,r),e},Ere=yi&&yi.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Kk(e,r,t)};Object.defineProperty(yi,"__esModule",{value:!0});yi.SessionAPI=yi.Session=void 0;var Tre=Yk(Lk());yi.Session=Tre;var Are=Yk(om());yi.SessionAPI=Are;Ere(Gk(),yi)});var q1=w(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.SettingManager=void 0;var j1=Jt(),Rre=Ap(),lm=mi(),Ore="api/settings",z1=class extends Rre.DataConnector{constructor(e={}){var t;super(),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:lm.ServerConnection.makeSettings()}async fetch(e){if(!e)throw new Error("Plugin `id` parameter is required for settings fetch.");let{serverSettings:t}=this,{baseUrl:i,appUrl:n}=t,{makeRequest:s,ResponseError:o}=lm.ServerConnection,a=i+n,l=sh.url(a,e),c=await s(l,{},t);if(c.status!==200)throw await o.create(c);return c.json()}async list(e){var t,i,n,s;let{serverSettings:o}=this,{baseUrl:a,appUrl:l}=o,{makeRequest:c,ResponseError:u}=lm.ServerConnection,d=a+l,f=sh.url(d,"",e==="ids"),m=await c(f,{},o);if(m.status!==200)throw new u(m);let g=await m.json(),b=(i=(t=g?.settings)===null||t===void 0?void 0:t.map(S=>S.id))!==null&&i!==void 0?i:[],v=[];return e||(v=(s=(n=g?.settings)===null||n===void 0?void 0:n.map(S=>(S.data={composite:{},user:{}},S)))!==null&&s!==void 0?s:[]),{ids:b,values:v}}async save(e,t){let{serverSettings:i}=this,{baseUrl:n,appUrl:s}=i,{makeRequest:o,ResponseError:a}=lm.ServerConnection,l=n+s,c=sh.url(l,e),u={body:JSON.stringify({raw:t}),method:"PUT"},d=await o(c,u,i);if(d.status!==204)throw new a(d)}};cm.SettingManager=z1;var sh;(function(r){function e(t,i,n){let s=n?j1.URLExt.objectToQueryString({ids_only:!0}):"",o=j1.URLExt.join(t,Ore),a=j1.URLExt.join(o,i);if(!a.startsWith(o))throw new Error("Can only be used for workspaces requests");return`${a}${s}`}r.url=e})(sh||(sh={}))});var lh=w(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.TerminalAPIClient=tn.TERMINAL_SERVICE_URL=void 0;tn.isAvailable=V1;tn.startNew=Xk;
9tn.listRunning=Jk;tn.shutdownTerminal=Zk;var oh=Jt(),ks=mi();tn.TERMINAL_SERVICE_URL="api/terminals";function V1(){return String(oh.PageConfig.getOption("terminalsAvailable")).toLowerCase()==="true"}async function Xk(r=ks.ServerConnection.makeSettings(),e,t){ah.errorIfNotAvailable();let i=oh.URLExt.join(r.baseUrl,tn.TERMINAL_SERVICE_URL),n={method:"POST",body:JSON.stringify({name:e,cwd:t})},s=await ks.ServerConnection.makeRequest(i,n,r);if(s.status!==200)throw await ks.ServerConnection.ResponseError.create(s);return await s.json()}async function Jk(r=ks.ServerConnection.makeSettings()){ah.errorIfNotAvailable();let e=oh.URLExt.join(r.baseUrl,tn.TERMINAL_SERVICE_URL),t=await ks.ServerConnection.makeRequest(e,{},r);if(t.status!==200)throw await ks.ServerConnection.ResponseError.create(t);let i=await t.json();if(!Array.isArray(i))throw new Error("Invalid terminal list");return i}async function Zk(r,e=ks.ServerConnection.makeSettings()){var t;ah.errorIfNotAvailable();let i=oh.URLExt.join(e.baseUrl,tn.TERMINAL_SERVICE_URL),n=oh.URLExt.join(i,r);if(!n.startsWith(i))throw new Error("Can only be used for terminal requests");let s={method:"DELETE"},o=await ks.ServerConnection.makeRequest(n,s,e);if(o.status===404){let l=(t=(await o.json()).message)!==null&&t!==void 0?t:`The terminal session "${r}"" does not exist on the server`;console.warn(l)}else if(o.status!==204)throw await ks.ServerConnection.ResponseError.create(o)}var H1=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:ks.ServerConnection.makeSettings()}get isAvailable(){return V1()}async startNew(e={}){let{name:t,cwd:i}=e;return Xk(this.serverSettings,t,i)}async listRunning(){return Jk(this.serverSettings)}async shutdown(e){return Zk(e,this.serverSettings)}};tn.TerminalAPIClient=H1;var ah;(function(r){function e(){if(!V1())throw new Error("Terminals Unavailable")}r.errorIfNotAvailable=e})(ah||(ah={}))});var Qk=w(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.isAvailable=void 0;var Dre=lh();Object.defineProperty(um,"isAvailable",{enumerable:!0,get:function(){return Dre.isAvailable}})});var eE=w(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.TerminalConnection=void 0;var $re=Jt(),Mre=qe(),dm=(Xe(),St(Jr)),Pre=Wn(),Fre=lh(),ch=class{constructor(e){var t,i;this._createSocket=()=>{this._errorIfDisposed(),this._clearSocket(),this._updateConnectionStatus("connecting");let n=this._name,s=this.serverSettings,o=$re.URLExt.join(s.wsUrl,"terminals","websocket",encodeURIComponent(n)),a=s.token;s.appendToken&&a!==""&&(o=o+`?token=${encodeURIComponent(a)}`),this._ws=new s.WebSocket(o),this._ws.onmessage=this._onWSMessage,this._ws.onclose=this._onWSClose,this._ws.onerror=this._onWSClose},this._onWSMessage=n=>{if(this._isDisposed)return;let s=JSON.parse(n.data);if(s[0]==="disconnect"&&this.dispose(),this._connectionStatus==="connecting"){s[0]==="setup"&&this._updateConnectionStatus("connected");return}this._messageReceived.emit({type:s[0],content:s.slice(1)})},this._onWSClose=n=>{console.warn(`Terminal websocket closed: ${n.code}`),this.isDisposed||this._reconnect()},this._connectionStatus="connecting",this._connectionStatusChanged=new dm.Signal(this),this._isDisposed=!1,this._disposed=new dm.Signal(this),this._messageReceived=new dm.Signal(this),this._reconnectTimeout=null,this._ws=null,this._noOp=()=>{},this._reconnectLimit=7,this._reconnectAttempt=0,this._pendingMessages=[],this._name=e.model.name,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Pre.ServerConnection.makeSettings(),this._terminalAPIClient=(i=e.terminalAPIClient)!==null&&i!==void 0?i:new Fre.TerminalAPIClient({serverSettings:this.serverSettings}),this._createSocket()}get disposed(){return this._disposed}get messageReceived(){return this._messageReceived}get name(){return this._name}get model(){return{name:this._name}}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposed.emit(),this._updateConnectionStatus("disconnected"),this._clearSocket(),dm.Signal.clearData(this))}send(e){this._sendMessage(e)}_sendMessage(e,t=!0){if(!(this._isDisposed||!e.content))if(this.connectionStatus==="connected"&&this._ws){let i=[e.type,...e.content];this._ws.send(JSON.stringify(i))}
9else if(t)this._pendingMessages.push(e);else throw new Error(`Could not send message: ${JSON.stringify(e)}`)}_sendPending(){for(;this.connectionStatus==="connected"&&this._pendingMessages.length>0;)this._sendMessage(this._pendingMessages[0],!1),this._pendingMessages.shift()}reconnect(){this._errorIfDisposed();let e=new Mre.PromiseDelegate,t=(i,n)=>{n==="connected"?(e.resolve(),this.connectionStatusChanged.disconnect(t,this)):n==="disconnected"&&(e.reject(new Error("Terminal connection disconnected")),this.connectionStatusChanged.disconnect(t,this))};return this.connectionStatusChanged.connect(t,this),this._reconnectAttempt=0,this._reconnect(),e.promise}_reconnect(){if(this._errorIfDisposed(),clearTimeout(this._reconnectTimeout),this._reconnectAttempt<this._reconnectLimit){this._updateConnectionStatus("connecting");let e=U1.getRandomIntInclusive(0,1e3*(Math.pow(2,this._reconnectAttempt)-1));console.error(`Connection lost, reconnecting in ${Math.floor(e/1e3)} seconds.`),this._reconnectTimeout=setTimeout(this._createSocket,e),this._reconnectAttempt+=1}else this._updateConnectionStatus("disconnected");this._clearSocket()}_clearSocket(){this._ws!==null&&(this._ws.onopen=this._noOp,this._ws.onclose=this._noOp,this._ws.onerror=this._noOp,this._ws.onmessage=this._noOp,this._ws.close(),this._ws=null)}async shutdown(){await this._terminalAPIClient.shutdown(this.name),this.dispose()}clone(){return new ch({model:this.model,serverSettings:this.serverSettings,terminalAPIClient:this._terminalAPIClient})}_updateConnectionStatus(e){this._connectionStatus!==e&&(this._connectionStatus=e,e!=="connecting"&&(this._reconnectAttempt=0,clearTimeout(this._reconnectTimeout)),e==="connected"&&this._sendPending(),this._connectionStatusChanged.emit(e))}_errorIfDisposed(){if(this.isDisposed)throw new Error("Terminal connection is disposed")}get connectionStatusChanged(){return this._connectionStatusChanged}get connectionStatus(){return this._connectionStatus}};hm.TerminalConnection=ch;var U1;(function(r){function e(t,i){return t=Math.ceil(t),i=Math.floor(i),Math.floor(Math.random()*(i-t+1))+t}r.getRandomIntInclusive=e})(U1||(U1={}))});var rE=w(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.TerminalManager=void 0;var Lre=(oo(),St(nc)),tE=(Xe(),St(Jr)),Nre=Wn(),Bre=rc(),jre=lh(),zre=eE(),uh=class extends Bre.BaseManager{constructor(e={}){var t,i;if(super(e),this._isReady=!1,this._names=[],this._terminalConnections=new Set,this._runningChanged=new tE.Signal(this),this._connectionFailure=new tE.Signal(this),this._terminalAPIClient=(t=e.terminalAPIClient)!==null&&t!==void 0?t:new jre.TerminalAPIClient({serverSettings:this.serverSettings}),!this.isAvailable()){this._ready=Promise.reject("Terminals unavailable"),this._ready.catch(s=>{});return}let n=this._pollModels=new Lre.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:TerminalManager#models",standby:(i=e.standby)!==null&&i!==void 0?i:"when-hidden"});this._ready=(async()=>{await n.start(),await n.tick,this._isReady=!0})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){var e;this.isDisposed||(this._names.length=0,this._terminalConnections.forEach(t=>t.dispose()),(e=this._pollModels)===null||e===void 0||e.dispose(),super.dispose())}isAvailable(){return this._terminalAPIClient.isAvailable}connectTo(e){let t=new zre.TerminalConnection({...e,serverSettings:this.serverSettings,terminalAPIClient:this._terminalAPIClient});return this._onStarted(t),this._names.includes(e.model.name)||this.refreshRunning().catch(()=>{}),t}running(){return this._models[Symbol.iterator]()}async refreshRunning(){this._pollModels&&(await this._pollModels.refresh(),await this._pollModels.tick)}async startNew(e={}){let{name:t,cwd:i}=e,n=await this._terminalAPIClient.startNew({name:t,cwd:i});return await this.refreshRunning(),this.connectTo({model:n})}async shutdown(e){await this._terminalAPIClient.shutdown(e),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all(this._names.map(e=>this._terminalAPIClient.shutdown(e))),await this.refreshRunning()}async requestRunning(){var e,t;let i;try{i=await this._terminalAPIClient.listRunning()}catch(s){throw(s instanceof Nre.ServerConnection.NetworkError||((e=s.response)===null||e===void 0?void 0:e.status)===503||((t=s.response)===null||t===void 0?void 0:t.status)===424)&&this._connectionFailure.emit(s),s}if(this.isDisposed)return;let n=i.map(({name:s})=>s).sort();n!==this._names&&(this._names=n,this._terminalConnections.forEach(s=>
9{n.includes(s.name)||s.dispose()}),this._runningChanged.emit(this._models))}_onStarted(e){this._terminalConnections.add(e),e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._terminalConnections.delete(e),this.refreshRunning().catch(()=>{})}get _models(){return this._names.map(e=>({name:e}))}};dh.TerminalManager=uh;(function(r){class e extends r{constructor(){super(...arguments),this._readyPromise=new Promise(()=>{})}get isActive(){return!1}get parentReady(){return super.ready}get ready(){return this.parentReady.then(()=>this._readyPromise)}async startNew(i){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}connectTo(i){throw Error("Not implemented in no-op Terminal Manager")}async shutdown(i){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}async requestRunning(){return Promise.resolve()}}r.NoopManager=e})(uh||(dh.TerminalManager=uh={}))});var W1=w(xi=>{"use strict";var iE=xi&&xi.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),qre=xi&&xi.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),nE=xi&&xi.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&iE(e,r,t);return qre(e,r),e},Hre=xi&&xi.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&iE(e,r,t)};Object.defineProperty(xi,"__esModule",{value:!0});xi.TerminalAPI=xi.Terminal=void 0;var Vre=nE(Qk());xi.Terminal=Vre;var Ure=nE(lh());xi.TerminalAPI=Ure;Hre(rE(),xi)});var oE=w(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0})});var K1=w(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.UserAPIClient=void 0;var aE=mi(),Wre=Jt(),Gre="api/me",G1=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:aE.ServerConnection.makeSettings()}async get(){let{baseUrl:e}=this.serverSettings,{makeRequest:t,ResponseError:i}=aE.ServerConnection,n=Wre.URLExt.join(e,Gre),s=await t(n,{},this.serverSettings);if(s.status!==200)throw await i.create(s);return await s.json()}};fm.UserAPIClient=G1});var cE=w(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.UserManager=void 0;var Kre=qe(),Yre=(oo(),St(nc)),lE=(Xe(),St(Jr)),Xre=rc(),Jre=K1(),Y1="@jupyterlab/services:UserManager#user",X1=class extends Xre.BaseManager{constructor(e={}){var t,i;super(e),this._isReady=!1,this._userChanged=new lE.Signal(this),this._connectionFailure=new lE.Signal(this),this._userApiClient=(t=e.userApiClient)!==null&&t!==void 0?t:new Jre.UserAPIClient({serverSettings:this.serverSettings}),this._ready=this.requestUser().then(()=>{this.isDisposed||(this._isReady=!0)}).catch(n=>new Promise(()=>{})),this._pollUser=new Yre.Poll({auto:!1,factory:()=>this.requestUser(),frequency:{interval:61*1e3,backoff:!0,max:300*1e3},name:Y1,standby:(i=e.standby)!==null&&i!==void 0?i:"when-hidden"}),this.ready.then(()=>{this._pollUser.start()})}get isReady(){return this._isReady}get ready(){return this._ready}get identity(){return this._identity}get permissions(){return this._permissions}get userChanged(){return this._userChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollUser.dispose(),super.dispose()}async refreshUser(){await this._pollUser.refresh(),await this._pollUser.tick}async requestUser(){if(this.isDisposed)return;let e={identity:this._identity,permissions:this._permissions},t=await this._userApiClient.get(),i=t.identity,{localStorage:n}=window,s=n.getItem(Y1);if(s&&(!i.initials||!i.color)){let o=JSON.parse(s);i.initials=i.initials||o.initials||i.name.substring(0,1),i.color=i.color||o.color||J1.getRandomColor()}Kre.JSONExt.deepEqual(t,e)||(this._identity=i,this._permissions=t.permissions,n.setItem(Y1,JSON.stringify(i)),this._userChanged.emit(t))}};pm.UserManager=X1;var J1;(function(r){let e=["var(--jp-collaborator-color1)","var(--jp-collaborator-color2)","var(--jp-collaborator-color3)","var(--jp-collaborator-color4)","var(--jp-collaborator-color5)","var(--jp-collaborator-color6)","var(--jp-collaborator-color7)"];r.getRandomColor=()=>e[Math.floor(Math.random()*e.length)]})(J1||(J1={}))});
9var Z1=w(_i=>{"use strict";var uE=_i&&_i.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Zre=_i&&_i.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),dE=_i&&_i.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&uE(e,r,t);return Zre(e,r),e},Qre=_i&&_i.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&uE(e,r,t)};Object.defineProperty(_i,"__esModule",{value:!0});_i.UserAPI=_i.User=void 0;var eie=dE(oE());_i.User=eie;var tie=dE(K1());_i.UserAPI=tie;Qre(cE(),_i)});var ey=w(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.WorkspaceManager=void 0;var hE=Jt(),rie=Ap(),hh=mi(),iie="api/workspaces",Q1=class extends rie.DataConnector{constructor(e={}){var t;super(),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:hh.ServerConnection.makeSettings()}async fetch(e){let{serverSettings:t}=this,{baseUrl:i,appUrl:n}=t,{makeRequest:s,ResponseError:o}=hh.ServerConnection,a=i+n,l=lu.url(a,e),c=await s(l,{},t);if(c.status!==200)throw await o.create(c);return c.json()}async list(){let{serverSettings:e}=this,{baseUrl:t,appUrl:i}=e,{makeRequest:n,ResponseError:s}=hh.ServerConnection,o=t+i,a=lu.url(o,""),l=await n(a,{},e);if(l.status!==200)throw await s.create(l);return(await l.json()).workspaces}async remove(e){let{serverSettings:t}=this,{baseUrl:i,appUrl:n}=t,{makeRequest:s,ResponseError:o}=hh.ServerConnection,a=i+n,l=lu.url(a,e),u=await s(l,{method:"DELETE"},t);if(u.status!==204)throw await o.create(u)}async save(e,t){let{serverSettings:i}=this,{baseUrl:n,appUrl:s}=i,{makeRequest:o,ResponseError:a}=hh.ServerConnection,l=n+s,c=lu.url(l,e),u={body:JSON.stringify(t),method:"PUT"},d=await o(c,u,i);if(d.status!==204)throw await a.create(d)}};mm.WorkspaceManager=Q1;var lu;(function(r){function e(t,i){let n=hE.URLExt.join(t,iie),s=hE.URLExt.join(n,i);if(!s.startsWith(n))throw new Error("Can only be used for workspaces requests");return s}r.url=e})(lu||(lu={}))});var pE=w(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.ServiceManager=void 0;var fE=(Xe(),St(Jr)),nie=Pk(),sie=g1(),oie=y1(),aie=T1(),lie=R1(),cie=F1(),uie=mi(),die=B1(),hie=q1(),fie=W1(),pie=Z1(),mie=ey(),ty=class{constructor(e={}){var t,i;this._isDisposed=!1,this._connectionFailure=new fE.Signal(this),this._isReady=!1;let n=e.defaultDrive,s=(t=e.serverSettings)!==null&&t!==void 0?t:uie.ServerConnection.makeSettings(),o=(i=e.standby)!==null&&i!==void 0?i:"when-hidden",a={defaultDrive:n,serverSettings:s,standby:o};this.serverSettings=s,this.contents=e.contents||new sie.ContentsManager(a),this.events=e.events||new oie.EventManager(a),this.kernels=e.kernels||new aie.KernelManager(a),this.sessions=e.sessions||new die.SessionManager({...a,kernelManager:this.kernels}),this.settings=e.settings||new hie.SettingManager(a),this.terminals=e.terminals||new fie.TerminalManager(a),this.builder=e.builder||new nie.BuildManager(a),this.workspaces=e.workspaces||new mie.WorkspaceManager(a),this.nbconvert=e.nbconvert||new cie.NbConvertManager(a),this.kernelspecs=e.kernelspecs||new lie.KernelSpecManager(a),this.user=e.user||new pie.UserManager(a),this.kernelspecs.connectionFailure.connect(this._onConnectionFailure,this),this.sessions.connectionFailure.connect(this._onConnectionFailure,this),this.terminals.connectionFailure.connect(this._onConnectionFailure,this);let l=[this.sessions.ready,this.kernelspecs.ready];this.terminals.isAvailable()&&l.push(this.terminals.ready),this._readyPromise=Promise.all(l).then(()=>{this._isReady=!0})}get connectionFailure(){return this._connectionFailure}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,fE.Signal.clearData(this),this.contents.dispose(),this.events.dispose(),this.sessions.dispose(),this.terminals.dispose())}get isReady(){return this._isReady}get ready(){return this._readyPromise}_onConnectionFailure(e,t){this._connectionFailure.emit(t)}};gm.ServiceManager=ty});var mE=w(rt=>{"use strict";
9Object.defineProperty(rt,"__esModule",{value:!0});rt.IWorkspaceManager=rt.IUserManager=rt.ITerminalManager=rt.IServiceManager=rt.ISettingManager=rt.ISessionManager=rt.IServerSettings=rt.INbConvertManager=rt.IKernelSpecManager=rt.IKernelManager=rt.IEventManager=rt.IDefaultDrive=rt.IDefaultContentProvider=rt.IContentsManager=rt.IConfigSectionManager=rt.IConnectionStatus=void 0;var Zr=qe();rt.IConnectionStatus=new Zr.Token("@jupyterlab/application:IConnectionStatus","A service providing the application connection status.");rt.IConfigSectionManager=new Zr.Token("@jupyterlab/services:IConfigSectionManager","A service providing the config section manager.");rt.IContentsManager=new Zr.Token("@jupyterlab/services:IContentsManager","The contents manager token.");rt.IDefaultContentProvider=new Zr.Token("@jupyterlab/services:IDefaultContentProvider","The default content provider for the contents manager.");rt.IDefaultDrive=new Zr.Token("@jupyterlab/services:IDefaultDrive","The default drive for the contents manager.");rt.IEventManager=new Zr.Token("@jupyterlab/services:IEventManager","The event manager token.");rt.IKernelManager=new Zr.Token("@jupyterlab/services:IKernelManager","The kernel manager token.");rt.IKernelSpecManager=new Zr.Token("@jupyterlab/services:IKernelSpecManager","The kernel spec manager token.");rt.INbConvertManager=new Zr.Token("@jupyterlab/services:INbConvertManager","The nbconvert manager token.");rt.IServerSettings=new Zr.Token("@jupyterlab/services:IServerSettings","The server settings for the application.");rt.ISessionManager=new Zr.Token("@jupyterlab/services:ISessionManager","The session manager token.");rt.ISettingManager=new Zr.Token("@jupyterlab/services:ISettingManager","The setting manager token.");rt.IServiceManager=new Zr.Token("@jupyterlab/services:IServiceManager","The service manager for the application.");rt.ITerminalManager=new Zr.Token("@jupyterlab/services:ITerminalManager","The terminal manager token.");rt.IUserManager=new Zr.Token("@jupyterlab/services:IUserManager","The user manager token.");rt.IWorkspaceManager=new Zr.Token("@jupyterlab/services:IWorkspaceManager","The workspace manager token.")});var Wn=w(Vt=>{"use strict";var gie=Vt&&Vt.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Qr=Vt&&Vt.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&gie(e,r,t)};Object.defineProperty(Vt,"__esModule",{value:!0});Qr(rc(),Vt);Qr(JI(),Vt);Qr(ZI(),Vt);Qr(g1(),Vt);Qr(y1(),Vt);Qr(T1(),Vt);Qr(R1(),Vt);Qr(pE(),Vt);Qr(mi(),Vt);Qr(B1(),Vt);Qr(q1(),Vt);Qr(W1(),Vt);Qr(mE(),Vt);Qr(Z1(),Vt);Qr(ey(),Vt);Qr(F1(),Vt)});var bie,ry=p(()=>{bie=N(Wn())});var iy,fh,PIe,FIe,ph=p(()=>{iy=N(qe());ry();fh="en",PIe=new iy.Token("@jupyterlab/translation:ITranslatorConnector","A service to connect to the server translation endpoint."),FIe=new iy.Token("@jupyterlab/translation:ITranslator","A service to translate strings.")});function ac(r){return r.replace("-","_")}var ny=p(()=>{});var Yn,bm=p(()=>{ph();ny();Yn=class{constructor(e){e=e||{},this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||fh,pluralFunc:function(t){return{nplurals:2,plural:t!=1?1:0}},contextDelimiter:String.fromCharCode(4),stringsPrefix:""},this._locale=(e.locale||this._defaults.locale).replace("_","-"),this._domain=ac(e.domain||this._defaults.domain),this._contextDelimiter=e.contextDelimiter||this._defaults.contextDelimiter,this._stringsPrefix=e.stringsPrefix||this._defaults.stringsPrefix,this._pluralFuncs={},this._dictionary={},this._pluralForms={},e.messages&&(this._dictionary[this._domain]={},this._dictionary[this._domain][this._locale]=e.messages),e.pluralForms&&(this._pluralForms[this._locale]=e.pluralForms)}setContextDelimiter(e){this._contextDelimiter=e}getContextDelimiter(){return this._contextDelimiter}setLocale(e){this._locale=e.replace("_","-")}getLocale(){return this._locale}setDomain(e){this._domain=ac(e)}getDomain(){return this._domain}setStringsPrefix(e){this._stringsPrefix=e}getStringsPrefix(){return this._stringsPrefix}static strfmt(e,...t){return e.replace(/%%/g,"%% ").replace(/%(\d+)/g,function(i,n){return t[n-1]}).replace(/%% /g,"%")}loadJSON(e,t){if(!e[""]||!e[""].language||!e[""].pluralForms)throw new Error(`Wrong jsonData, it must have an empty key ("") with "language" and "pluralForms" information: ${e}`);t=ac(t);let i=e[""],n=JSON.parse(JSON.stringify(e));delete n[""],this.setMessages(t||this._defaults.domain,i.language,n,i.pluralForms)}__(e,...t){return this.gettext(e,...t)}_n(e,t,i,...n){return this.ngettext(e,t,i,...n)}_p(e,t,...i){return this.pgettext(e,t,...i)}_np(e,t,i,n,...s){return this.npgettext(e,t,i,n,...s)}gettext(e,...t){return this.dcnpgettext("","",e,"",0,...t)}ngettext(e,t,i,...n){return this.dcnpgettext("","",e,t,i,...n)}pgettext(e,t,...i){return this.dcnpgettext("",e,t,"",0,...i)}npgettext(e,t,i,n,...s){return this.dcnpgettext("",e,t,i,n,...s)}dcnpgettext(e,t,i,n,s,...o){e=ac(e)||this._domain;let a,l=t?t+this._contextDelimiter+i:i,c={pluralForm:!1},u=!1,d=this._locale,f=this.expandLocale(this._locale);for(let g in f)if(d=f[g],u=this._dictionary[e]&&this._dictionary[e][d]&&this._dictionary[e][d][l],n?u=u&&this._dictionary[e][d][l].length>1:u=u&&this._dictionary[e][d][l].length==1,u){c.locale=d;break}if(u?a=this._dictionary[e][d][l]:(a=[i],c.pluralFunc=this._defaults.pluralFunc),!n)return this.t(a,s,c,...o);c.pluralForm=!0;let m=u?a:[i,n];return this.t(m,s,c,...o)}expandLocale(e){let t=[e],i=e.lastIndexOf("-");for(;i>0;)e=e.slice(0,i),t.push(e),i=e.lastIndexOf("-");return t}getPluralFunc(e){if(!new RegExp("^\\s*nplurals\\s*=\\s*[0-9]+\\s*;\\s*plural\\s*=\\s*(?:\\s|[-\\?\\|&=!<>+*/%:;n0-9_()])+").test(e))throw new Error(Yn.strfmt('The plural form "%1" is not val
9id',e));return new Function("n","let plural, nplurals; "+e+" return { nplurals: nplurals, plural: (plural === true ? 1 : (plural ? plural : 0)) };")}removeContext(e){return e.indexOf(this._contextDelimiter)!==-1?e.split(this._contextDelimiter)[1]:e}t(e,t,i,...n){if(!i.pluralForm)return this._stringsPrefix+Yn.strfmt(this.removeContext(e[0]),...n);let s;return i.pluralFunc?s=i.pluralFunc(t):this._pluralFuncs[i.locale||""]?s=this._pluralFuncs[i.locale||""](t):(this._pluralFuncs[i.locale||""]=this.getPluralFunc(this._pluralForms[i.locale||""]),s=this._pluralFuncs[i.locale||""](t)),(typeof!s.plural>"u"||s.plural>s.nplurals||e.length<=s.plural)&&(s.plural=0),this._stringsPrefix+Yn.strfmt(this.removeContext(e[s.plural]),...[t].concat(n))}setMessages(e,t,i,n){e=ac(e),n&&(this._pluralForms[t]=n),this._dictionary[e]||(this._dictionary[e]={}),this._dictionary[e][t]=i}}});var sy,oy,gt,gE=p(()=>{bm();ph();sy=class{constructor(e){this.languageCode=fh,this._languageBundle=e}load(e){return this._languageBundle}},oy=class{__(e,...t){return this.gettext(e,...t)}_n(e,t,i,...n){return this.ngettext(e,t,i,...n)}_p(e,t,...i){return this.pgettext(e,t,...i)}_np(e,t,i,n,...s){return this.npgettext(e,t,i,n,...s)}gettext(e,...t){return Yn.strfmt(e,...t)}ngettext(e,t,i,...n){return Yn.strfmt(i==1?e:t,...[i].concat(n))}pgettext(e,t,...i){return Yn.strfmt(t,...i)}npgettext(e,t,i,n,...s){return this.ngettext(t,i,n,...s)}dcnpgettext(e,t,i,n,s,...o){return this.ngettext(i,n,s,...o)}},gt=new sy(new oy)});var bE=p(()=>{bm();ph();ny()});var Sn=p(()=>{gE();bm();bE();ry();ph()});var yE,vE=p(()=>{yE="/build/_assets/bad-FQMIYYET.svg"});var _E,xE=p(()=>{_E="/build/_assets/blank-US55MPOI.svg"});var vm,ay=p(()=>{vm="/build/_assets/refresh-6QLTU3ED.svg"});var AE={};Zl(AE,{Cache:()=>Cn,FreeStyle:()=>uu,Rule:()=>lc,Selector:()=>xm,Style:()=>cu,create:()=>Eie});function wie(r){return r.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Sie(r){let e=5381,t=r.length;for(;t--;)e=e*33^r.charCodeAt(t);return(e>>>0).toString(36)}function wE(r,e){return e&&typeof e=="number"&&!kE[r]?`${r}:${e}px`:`${r}:${e}`}function SE(r){return r.sort((e,t)=>e[0]>t[0]?1:-1)}function Cie(r,e){let t=[],i=[];for(let n of Object.keys(r)){let s=n.trim(),o=r[n];s.charCodeAt(0)!==36&&o!=null&&(typeof o=="object"&&!Array.isArray(o)?i.push([s,o]):t.push([wie(s),o]))}return{style:Iie(SE(t)),nested:e?i:SE(i),isUnique:!!r.$unique}}function Iie(r){return r.map(([e,t])=>Array.isArray(t)?t.map(i=>wE(e,i)).join(";"):wE(e,t)).join(";")}function EE(r,e){return r.indexOf("&")===-1?`${e} ${r}`:r.replace(/&/g,e)}function mh(r,e,t,i,n){let{style:s,nested:o,isUnique:a}=Cie(e,r!==""),l=s;if(r.charCodeAt(0)===64){let c={selector:r,styles:[],rules:[],style:n?"":s};t.push(c),s&&n&&c.styles.push({selector:n,style:s,isUnique:a});for(let[u,d]of o)l+=u+mh(u,d,c.rules,c.styles,n)}else{let c=n?EE(r,n):r;s&&i.push({selector:c,style:s,isUnique:a});for(let[u,d]of o)l+=u+mh(u,d,t,i,c)}return l}function ym(r,e,t,i,n,s){for(let{selector:o,style:a,isUnique:l}of i){let c=s?EE(o,n):o,u=l?`u\0${(++IE).toString(36)}`:`s\0${e}\0${a}`,d=new cu(a,u);d.add(new xm(c,`k\0${e}\0${c}`)),r.add(d)}for(let{selector:o,style:a,rules:l,styles:c}of t){let u=new lc(o,a,`r\0${e}\0${o}\0${a}`);ym(u,e,l,c,n,s),r.add(u)}}function TE(r){let e="";for(let t=0;t<r.length;t++)e+=r[t];return e}function CE(r,e){let t=`f${Sie(r)}`;return t}function Eie(r){return new uu(`f${(++IE).toString(36)}`,r)}var IE,kE,_ie,kie,Cn,xm,cu,lc,uu,RE=p(()=>{IE=0,kE=Object.create(null),_ie=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(let r of _ie)for(let e of["-webkit-","-ms-","-moz-","-o-",""])kE[e+r]=!0;kie={add:()=>{},change:()=>{},remove:()=>{}},Cn=class{constructor(e=kie){this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(e){let t=this._counters[e.id]||0,i=this._children[e.id]||e.clone();if(this._counters[e.id]=t+1,t===0)this._children[i.id]=i,this._keys.push(i.id),this.sheet.push(i.getStyles()),this.changeId++,this.changes.add(i,this._keys.length-1);else if(i instanceof Cn&&e instanceof Cn){let n=this._keys.indexOf(e.id),s=i.changeId;i.merge(e),i.changeId!==s&&(this.sheet.splice(n,1,i.getStyles()),this.changeId++,this.changes.change(i,n,n))}}remove(e){let t=this._counters[e.id];if(t){this._counters[e.id]=t-1;let i=this._children[e.id],n=this._keys.indexOf(i.id);if(t===1)delete this._counters[e.id],delete this._children[e.id],this._keys.splice(n,1),this.sheet.splice(n,1),this.changeId++,this.changes.remove(i,n);else if(i instanceof Cn&&e instanceof Cn){let s=i.changeId;i.unmerge(e),i.changeId!==s&&(this.sheet.splice(n,1,i.getStyles()),this.changeId++,this.changes.change(i,n,n))}}}values(){return this._keys.map(e=>this._children[e])}merge(e){for(let t of e.values())this.add(t);return this}unmerge(e){for(let t of e.values())this.remove(t);return this}clone(){return new Cn().merge(this)}},xm=class{constructor(e,t){this.selector=e,this.id=t}getStyles(){return this.selector}clone(){return this}},cu=class extends Cn{constructor(e,t){super(),this.style=e,this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new cu(this.style,this.id).merge(this)}},lc=class extends Cn{constructor(e,t,i){super(),this.rule=e,this.style=t,this.id=i}getStyles(){return`${this.rule}{${this.style}${TE(this.sheet)}}`}clone(){return new lc(this.rule,this.style,this.id).merge(this)}};uu=class extends Cn{constructor(e,t){super(t),this.id=e}registerStyle(e){let t=[],i=[],n=mh("&",e,t,i),s=CE(n,e),o=`.${s}`;return ym(this,n,t,i,o,!0),s}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){let i=[],n=[],s=mh("",t,i,n),o=CE(s,t),a=`${e} ${o}`,l=new lc(a,"",`h\0${s}\0${e}`);return ym(l,s,i,n,"",!1),this.add(l),o}registerRule(e,t){let i=[],n=[],s=mh(e,t,i,n);ym(this,s,i,n,"",!1)}registerCss(e){return this.registerRule("",e)}getStyles(){return TE(this.sheet)}clone(){return new uu(this.id,this.changes).merge(this)}}});var DE=w(_m=>{"use strict";
9Object.defineProperty(_m,"__esModule",{value:!0});function OE(r){var e={};for(var t in r){var i=r[t];if(t==="$nest"){var n=i;for(var s in n){var o=n[s];e[s]=OE(o)}}else t==="$debugName"?e.$displayName=i:e[t]=i}return e}_m.convertToStyles=OE;function Tie(r){var e={};for(var t in r)t!=="$debugName"&&(e[t]=r[t]);return r.$debugName&&(e.$displayName=r.$debugName),e}_m.convertToKeyframes=Tie});var ly=w(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.raf=typeof requestAnimationFrame>"u"?function(r){return setTimeout(r)}:typeof window>"u"?requestAnimationFrame:requestAnimationFrame.bind(window);function Aie(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r.map(function(t){return t&&typeof t=="object"?Object.keys(t).map(function(i){return!!t[i]&&i}):[t]}).reduce(function(t,i){return t.concat(i)},[]).filter(function(t){return!!t}).join(" ")}du.classes=Aie;function Sm(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t={},i=0,n=r;i<n.length;i++){var s=n[i];if(!(s==null||s===!1))for(var o in s){var a=s[o];!a&&a!==0||(o==="$nest"&&a?t[o]=t.$nest?Sm(t.$nest,a):a:o.indexOf("&")!==-1||o.indexOf("@media")===0?t[o]=t[o]?Sm(t[o],a):a:t[o]=a)}}return t}du.extend=Sm;du.media=function(r){for(var e,t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=[];r.type&&n.push(r.type),r.orientation&&n.push("(orientation: "+r.orientation+")"),r.minWidth&&n.push("(min-width: "+wm(r.minWidth)+")"),r.maxWidth&&n.push("(max-width: "+wm(r.maxWidth)+")"),r.minHeight&&n.push("(min-height: "+wm(r.minHeight)+")"),r.maxHeight&&n.push("(max-height: "+wm(r.maxHeight)+")"),r.prefersColorScheme&&n.push("(prefers-color-scheme: "+r.prefersColorScheme+")");var s="@media "+n.join(" and "),o={$nest:(e={},e[s]=Sm.apply(void 0,t),e)};return o};var wm=function(r){return typeof r=="string"?r:r+"px"}});var ME=w(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var Rie=(RE(),St(AE)),cy=DE(),uy=ly(),$E=function(){return Rie.create()},Oie=function(){function r(e){var t=this,i=e.autoGenerateTag;this.cssRaw=function(s){s&&(t._raw+=s||"",t._pendingRawChange=!0,t._styleUpdated())},this.cssRule=function(s){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];var l=cy.convertToStyles(uy.extend.apply(void 0,o));t._freeStyle.registerRule(s,l),t._styleUpdated()},this.forceRenderStyles=function(){var s=t._getTag();s&&(s.textContent=t.getStyles())},this.fontFace=function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];for(var a=t._freeStyle,l=0,c=s;l<c.length;l++){var u=c[l];a.registerRule("@font-face",u)}t._styleUpdated()}
9,this.getStyles=function(){return(t._raw||"")+t._freeStyle.getStyles()},this.keyframes=function(s){var o=cy.convertToKeyframes(s),a=t._freeStyle.registerKeyframes(o);return t._styleUpdated(),a},this.reinit=function(){var s=$E();t._freeStyle=s,t._lastFreeStyleChangeId=s.changeId,t._raw="",t._pendingRawChange=!1;var o=t._getTag();o&&(o.textContent="")},this.setStylesTarget=function(s){t._tag&&(t._tag.textContent=""),t._tag=s,t.forceRenderStyles()},this.stylesheet=function(s){for(var o=Object.getOwnPropertyNames(s),a={},l=0,c=o;l<c.length;l++){var u=c[l],d=s[u];d&&(d.$debugName=u,a[u]=t.style(d))}return a};var n=$E();this._autoGenerateTag=i,this._freeStyle=n,this._lastFreeStyleChangeId=n.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0,this.style=this.style.bind(this)}return r.prototype._afterAllSync=function(e){var t=this;this._pending++;var i=this._pending;uy.raf(function(){i===t._pending&&e()})},r.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var e=typeof window>"u"?{textContent:""}:document.createElement("style");return typeof document<"u"&&document.head.appendChild(e),this._tag=e,e}},r.prototype._styleUpdated=function(){var e=this,t=this._freeStyle.changeId,i=this._lastFreeStyleChangeId;!this._pendingRawChange&&t===i||(this._lastFreeStyleChangeId=t,this._pendingRawChange=!1,this._afterAllSync(function(){return e.forceRenderStyles()}))},r.prototype.style=function(){var e=this._freeStyle.registerStyle(cy.convertToStyles(uy.extend.apply(void 0,arguments)));return this._styleUpdated(),e},r}();dy.TypeStyle=Oie});var FE=w(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0})});var LE=w(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});var hy=ME();Er.TypeStyle=hy.TypeStyle;var Die=FE();Er.types=Die;var fy=ly();Er.extend=fy.extend;Er.classes=fy.classes;Er.media=fy.media;var Es=new hy.TypeStyle({autoGenerateTag:!0});Er.setStylesTarget=Es.setStylesTarget;Er.cssRaw=Es.cssRaw;Er.cssRule=Es.cssRule;Er.forceRenderStyles=Es.forceRenderStyles;Er.fontFace=Es.fontFace;Er.getStyles=Es.getStyles;Er.keyframes=Es.keyframes;Er.reinit=Es.reinit;Er.style=Es.style;Er.stylesheet=Es.stylesheet;function $ie(r){var e=new hy.TypeStyle({autoGenerateTag:!1});return r&&e.setStylesTarget(r),e}Er.createTypeStyle=$ie});var NE,rn,BE=p(()=>{NE=N(LE());(function(r){let e={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},[".jp-mod-dropTarget&"]:{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}}
9,toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function t(f){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...f}}}let i={center:t({margin:"0 auto",width:"100%"}),top:t({margin:"0 0 auto 0"}),right:t({margin:"0 0 0 auto"}),bottom:t({margin:"auto 0 0 0"}),left:t({margin:"0 auto 0 0"}),"top right":t({margin:"0 0 auto auto"}),"bottom right":t({margin:"auto 0 0 auto"}),"bottom left":t({margin:"auto auto 0 0"}),"top left":t({margin:"0 auto 0 auto"})};function n(f){return{element:{height:f,width:f}}}let s={small:n("14px"),normal:n("16px"),large:n("20px"),xlarge:n("24px")};function o(f){return{container:Object.assign({},...f.map(m=>m.container)),element:Object.assign({},...f.map(m=>m.element))}}function a(f){return f?(Array.isArray(f)||(f=[f]),f.map(m=>typeof m=="string"?e[m]:m)):[]}function l(f){let m=Object.assign({},...f.map(g=>g.options));return m.elementPosition&&f.unshift(i[m.elementPosition]),m.elementSize&&f.unshift(s[m.elementSize]),o(f)}function c(f){var m;return(0,NE.style)({...f.container,$nest:{...(m=f.container)===null||m===void 0?void 0:m.$nest,svg:f.element}})}let u=new Map;function d(f){if(!f||Object.keys(f).length===0)return"";let{elementPosition:m,elementSize:g,stylesheet:b,...v}=f,S={...m&&{elementPosition:m},...g&&{elementSize:g}},k=typeof b=="string"&&Object.keys(v).length===0,_=k?[b,m,g].join(","):"";if(k&&u.has(_))return u.get(_);let E=a(b);E.push({element:v,options:S});let R=c(l(E));return k&&u.set(_,R),R}r.styleClass=d})(rn||(rn={}))});var gh=p(()=>{BE()});function Mie(r){return r.map(e=>e&&typeof e=="object"?Object.keys(e).map(t=>!!e[t]&&t):typeof e=="string"?e.split(/\s+/):[]).reduce((e,t)=>e.concat(t),[]).filter(e=>!!e)}function er(...r){return Mie(r).join(" ")}function zE(r,{ignore:e=[]}={}){return r.getAttributeNames().reduce((t,i)=>(i==="style"||e.includes(i)||(i.startsWith("data")||i.startsWith("aria")?t[i]=r.getAttribute(i):t[jE.Text.camelCase(i)]=r.getAttribute(i)),t),{})}var jE,ao=p(()=>{jE=N(Jt())});var qE,ar,HE,j,Ts,Pie,Fie,py=p(()=>{qE=N(qe());Xe();ar=N(re()),HE=N(J6());vE();xE();ay();gh();ao();j=class{static remove(e){for(;e.firstChild;)e.firstChild.remove();return e.className="",e}static resolve({icon:e}){if(e instanceof j)return e;if(typeof e=="string"){let t=j._instances.get(e);return t||(j._debug&&console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`),new j({name:e,svgstr:vm,_loading:!0}))}return new j(e)}static resolveElement({icon:e,iconClass:t,fallback:i,...n}){return Ts.isResolvable(e)?j.resolve({icon:e}
9).element(n):!t&&i?i.element(n):(n.className=er(t,n.className),Ts.blankElement(n))}static resolveReact({icon:e,iconClass:t,fallback:i,...n}){if(!Ts.isResolvable(e))return!t&&i?ar.default.createElement(i.react,{...n}):(n.className=er(t,n.className),ar.default.createElement(Ts.blankReact,{...n}));let s=j.resolve({icon:e});return ar.default.createElement(s.react,{...n})}static resolveSvg({name:e,svgstr:t}){let i=new DOMParser().parseFromString(Ts.svgstrShim(t),"image/svg+xml"),n=i.querySelector("parsererror");if(n){let s=`SVG HTML was malformed for LabIcon instance.
10name: ${e}, svgstr: ${t}`;return j._debug?(console.error(s),n):(console.warn(s),null)}else return i.documentElement}static toggleDebug(e){j._debug=e??!j._debug}constructor({name:e,svgstr:t,render:i,unrender:n,_loading:s=!1}){if(this._props={},this._svgReplaced=new te(this),this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,!(e&&t))return console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`),Pie;if(this._loading=s,j._instances.has(e)){let o=j._instances.get(e);return this._loading?(o.svgstr=t,this._loading=!1,o):(j._debug&&console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${o.svgstr}, svgstr: ${t}`),o.svgstr=t,o)}this.name=e,this.react=this._initReact(e),this.svgstr=t,this._initRender({render:i,unrender:n}),j._instances.set(this.name,this)}bindprops(e){let t=Object.create(this);return t._props=e,t.react=t._initReact(t.name+"_bind"),t}element(e={}){var t;let{className:i,container:n,label:s,title:o,tag:a="div",...l}={...this._props,...e},c=n?.firstChild;if(((t=c?.dataset)===null||t===void 0?void 0:t.iconId)===this._uuid)return c;if(!this.svgElement)return document.createElement("div");if(n)for(;n.firstChild;)n.firstChild.remove();else a&&(n=document.createElement(a));let u=this.svgElement.cloneNode(!0);return n?(s!=null&&(n.textContent=s),Ts.initContainer({container:n,className:i,styleProps:l,title:o}),n.appendChild(u),n):(s&&console.warn(),u)}render(e,t){var i;let n=(i=t?.children)===null||i===void 0?void 0:i[0];typeof n!="string"&&(n=void 0),this.element({container:e,label:n,...t?.props})}get svgElement(){return this._svgElement===void 0&&(this._svgElement=this._initSvg({uuid:this._uuid})),this._svgElement}get svgInnerHTML(){return this._svgInnerHTML===void 0&&(this.svgElement===null?this._svgInnerHTML=null:this._svgInnerHTML=this.svgElement.innerHTML),this._svgInnerHTML}get svgReactAttrs(){return this._svgReactAttrs===void 0&&(this.svgElement===null?this._svgReactAttrs=null:this._svgReactAttrs=zE(this.svgElement,{ignore:["data-icon-id"]})),this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;let t=qE.UUID.uuid4(),i=this._uuid;this._uuid=t,this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,document.querySelectorAll(`[data-icon-id="${i}"]`).forEach(n=>{this.svgElement&&n.replaceWith(this.svgElement.cloneNode(!0))}),this._svgReplaced.emit()}_initReact(e){let t=ar.default.forwardRef((i={},n)=>{let{className:s,container:o,label:a,title:l,slot:c,tag:u="div",...d}={...this._props,...i},[,f]=ar.default.useState(this._uuid);ar.default.useEffect(()=>{let v=()=>{f(this._uuid)};return this._svgReplaced.connect(v),()=>{this._svgReplaced.disconnect(v)}});let m=u??ar.default.Fragment;if(!(this.svgInnerHTML&&this.svgReactAttrs))return ar.default.createElement(ar.default.Fragment,null);let g={...this.svgReactAttrs};u||Object.assign(g,{className:s||d?er(s,rn.styleClass(d)):void 0,title:l,slot:c});let b=ar.default.createElement("svg",{...g,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:n});if(o)return Ts.initContainer({container:o,className:s,styleProps:d,title:l}),ar.default.createElement(ar.default.Fragment,null,b,a);{let v={};return m!==ar.default.Fragment&&(v={className:s||d?er(s,rn.styleClass(d)):void 0,title:l,slot:c}),ar.default.createElement(m,{...v},b,a)}});return t.displayName=`LabIcon_${e}`,t}_initRender({render:e,unrender:t}){e?(this.render=e,t&&(this.unrender=t)):t&&console.warn("In _initRender, ignoring unrender arg since render is undefined")}_initSvg({title:e,uuid:t}={}){let i=j.resolveSvg(this);return i&&(i.tagName!=="parsererror"&&(i.dataset.icon=this.name,t&&(i.dataset.iconId=t),e?Ts.setTitleSvg(i,e):i.setAttribute("aria-hidden","true")),i)}};j._debug=!1;j._instances=new Map;(function(r){function e({className:c="",container:u,label:d,title:f,tag:m="div",slot:g,...b}){if(u?.className===c)return u;if(u)for(;u.firstChild;)u.firstChild.remove();else u=document.createElement(m??"div");return d!=null&&(u.textContent=d),r.initContainer({container:u,className:c,styleProps:b,title:f}),u}r.blankElement=e,r.blankReact=ar.default.forwardRef(({className:c="",container:u,label:d,title:f,tag:m="div",...g},b)=>{let v=m??"div";return u?(t({container:u,className:c,styleProps:g,title:f}),ar.default.createElement(ar.default.Fragment,null)):ar.default.createElement(v,{className:er(c,rn.styleClass(g))},b&&Fie.react({ref:b}),d)}),r.blankReact.displayName="BlankReact";function t({container:c,className:u,styleProps:d,title:f}){f!=null&&(c.title=f);let m=rn.styleClass(d);if(u!=null){let g=er(u,m);return c.className=g,g}else return m?(c.classList.add(m),m):""}r.initContainer=t;function i(c){return!!(c&&(typeof c=="string"||c.name&&c.svgstr))}r.isResolvable=i;function n(c,u){let d=c.getElementsByTagName("title");if(d.length)d[0].textContent=u;else{let f=document.createElement("title");f.textContent=u,c.appendChild(f)}}r.setTitleSvg=n;function s(c,u=!0){let[,d,f]=decodeURIComponent(c).replace(/>\s*\n\s*</g,"><").replace(/\s*\n\s*/g," ").match(u?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?(<svg.*)/);return d?atob(f):f}r.svgstrShim=s;class o{constructor(u,d){this._icon=u,this._rendererOptions=d}render(u,d){}}
10r.Renderer=o;class a extends o{render(u,d){var f,m;let g=(f=d?.children)===null||f===void 0?void 0:f[0];typeof g!="string"&&(g=void 0),this._icon.element({container:u,label:g,...(m=this._rendererOptions)===null||m===void 0?void 0:m.props,...d?.props})}}r.ElementRenderer=a;class l extends o{constructor(){super(...arguments),this._rootDOM=null}render(u,d){var f,m;let g=(f=d?.children)===null||f===void 0?void 0:f[0];typeof g!="string"&&(g=void 0);let b=this._icon;this._rootDOM!==null&&this._rootDOM.unmount(),this._rootDOM=(0,HE.createRoot)(u),this._rootDOM.render(ar.default.createElement(b.react,{container:u,label:g,...(m=this._rendererOptions)===null||m===void 0?void 0:m.props,...d?.props}))}unrender(u){this._rootDOM!==null&&(this._rootDOM.unmount(),this._rootDOM=null)}}r.ReactRenderer=l})(Ts||(Ts={}));Pie=new j({name:"ui-components:bad",svgstr:yE}),Fie=new j({name:"ui-components:blank",svgstr:_E})});var UE,VE=p(()=>{UE="/build/_assets/add-above-DJUVZDA6.svg"});var GE,WE=p(()=>{GE="/build/_assets/add-below-JUD23Q32.svg"});var YE,KE=p(()=>{YE="/build/_assets/add-EXEHS4L2.svg"});var JE,XE=p(()=>{JE="/build/_assets/audio-EHWPVEAB.svg"});var QE,ZE=p(()=>{QE="/build/_assets/bell-UZR6IG3E.svg"});var t4,e4=p(()=>{t4="/build/_assets/breakpoint-ESAUWSLU.svg"});var i4,r4=p(()=>{i4="/build/_assets/bug-dot-RWRZ6PJ5.svg"});var s4,n4=p(()=>{s4="/build/_assets/bug-TFP464KX.svg"});var a4,o4=p(()=>{a4="/build/_assets/build-5VK2B6YU.svg"});var c4,l4=p(()=>{c4="/build/_assets/caret-down-empty-PDAJTPAD.svg"});var d4,u4=p(()=>{d4="/build/_assets/caret-down-empty-thin-WDJR4YZW.svg"});var f4,h4=p(()=>{f4="/build/_assets/caret-down-O345KY3P.svg"});var m4,p4=p(()=>{m4="/build/_assets/caret-left-LIM3NHXF.svg"});var b4,g4=p(()=>{b4="/build/_assets/caret-right-7TSVDNQT.svg"});var y4,v4=p(()=>{y4="/build/_assets/caret-up-empty-thin-CZ3TJKGB.svg"});var _4,x4=p(()=>{_4="/build/_assets/caret-up-AOF2BNFW.svg"});var S4,w4=p(()=>{S4="/build/_assets/case-sensitive-SYZQ2IQZ.svg"});var I4,C4=p(()=>{I4="/build/_assets/check-JMGWD44E.svg"});var E4,k4=p(()=>{E4="/build/_assets/circle-empty-4T5YPCG7.svg"});var A4,T4=p(()=>{A4="/build/_assets/circle-TBRY7AKG.svg"});var O4,R4=p(()=>{O4="/build/_assets/cleaning-VHKWIOHC.svg"});var $4,D4=p(()=>{$4="/build/_assets/clear-SYYJCOUN.svg"});var P4,M4=p(()=>{P4="/build/_assets/close-all-QYKV7C7H.svg"});var L4,F4=p(()=>{L4="/build/_assets/close-NU2KBLEM.svg"});var B4,N4=p(()=>{B4="/build/_assets/code-check-S36ZPFM6.svg"});var z4,j4=p(()=>{z4="/build/_assets/code-5H26NJU2.svg"});var H4,q4=p(()=>{H4="/build/_assets/collapse-all-EHMBEKE7.svg"});var U4,V4=p(()=>{U4="/build/_assets/collapse-RSBQCHOJ.svg"});var G4,W4=p(()=>{G4="/build/_assets/console-RIJDZ7YO.svg"});var Y4,K4=p(()=>{Y4="/build/_assets/copy-BG7YLYNB.svg"});var J4,X4=p(()=>{J4="/build/_assets/copyright-EYOPP2RX.svg"});var Q4,Z4=p(()=>{Q4="/build/_assets/cut-WTMC2L3J.svg"});var tT,eT=p(()=>{tT="/build/_assets/delete-ODP3MM4R.svg"});var iT,rT=p(()=>{iT="/build/_assets/dock-bottom-364P7VUQ.svg"});var sT,nT=p(()=>{sT="/build/_assets/dock-left-JTNG2JPR.svg"});var aT,oT=p(()=>{aT="/build/_assets/dock-right-LCSRZFJO.svg"});var cT,lT=p(()=>{cT="/build/_assets/dock-top-QJNCVPS7.svg"});var dT,uT=p(()=>{dT="/build/_assets/dots-UTPINTYU.svg"});var fT,hT=p(()=>{fT="/build/_assets/download-2Z72GO5G.svg"});var mT,pT=p(()=>{mT="/build/_assets/duplicate-IKKRPCQN.svg"});var bT,gT=p(()=>{bT="/build/_assets/edit-DULKWQS5.svg"});var yT,vT=p(()=>{yT="/build/_assets/ellipses-DOPMFHFD.svg"});var _T,xT=p(()=>{_T="/build/_assets/error-NLUEYA3X.svg"});var ST,wT=p(()=>{ST="/build/_assets/exceptions-4NDLBHYM.svg"});var IT,CT=p(()=>{IT="/build/_assets/expand-all-LLL5IAMT.svg"});var ET,kT=p(()=>{ET="/build/_assets/expand-P4KBH3BP.svg"});var AT,TT=p(()=>{AT="/build/_assets/extension-M557DX5T.svg"});var OT,RT=p(()=>{OT="/build/_assets/fast-forward-72LR7MZN.svg"});var $T,DT=p(()=>{$T="/build/_assets/file-ZFA45KYV.svg"});var PT,MT=p(()=>{PT="/build/_assets/file-upload-T4IKY7DZ.svg"});var LT,FT=p(()=>{LT="/build/_assets/filter-dot-RRWZDFGJ.svg"});var BT,NT=p(()=>{BT="/build/_assets/filter-list-75E3GUMO.svg"});var zT,jT=p(()=>{zT="/build/_assets/filter-4E5YWSDN.svg"});var HT,qT=p(()=>{HT="/build/_assets/folder-favorite-MT5D7EYE.svg"});var UT,VT=p(()=>{UT="/build/_assets/folder-SLNIHPBN.svg"});var GT,WT=p(()=>{GT="/build/_assets/history-J7VCQIYQ.svg"});var YT,KT=p(()=>{YT="/build/_assets/home-5Q2FN7D4.svg"});var JT,XT=p(()=>{JT="/build/_assets/html5-YHVA3ZAF.svg"});var QT,ZT=p(()=>{QT="/build/_assets/image-HMQWCSCV.svg"});var t5,e5=p(()=>
10{t5="/build/_assets/info-KZC3CSMP.svg"});var i5,r5=p(()=>{i5="/build/_assets/inspector-WF3WTDME.svg"});var s5,n5=p(()=>{s5="/build/_assets/json-ICXIIW2Q.svg"});var a5,o5=p(()=>{a5="/build/_assets/julia-Z43FOCKA.svg"});var c5,l5=p(()=>{c5="/build/_assets/jupyter-favicon-BJPTC5W3.svg"});var d5,u5=p(()=>{d5="/build/_assets/jupyter-CLDTFGKE.svg"});var f5,h5=p(()=>{f5="/build/_assets/jupyterlab-wordmark-X46RH4YR.svg"});var m5,p5=p(()=>{m5="/build/_assets/kernel-64ZJF2BV.svg"});var b5,g5=p(()=>{b5="/build/_assets/keyboard-RPD7WNG3.svg"});var y5,v5=p(()=>{y5="/build/_assets/launch-HTTG5BMY.svg"});var _5,x5=p(()=>{_5="/build/_assets/launcher-HGLSSDQQ.svg"});var S5,w5=p(()=>{S5="/build/_assets/line-form-HLFC5GXN.svg"});var I5,C5=p(()=>{I5="/build/_assets/link-N3PRXZYS.svg"});var E5,k5=p(()=>{E5="/build/_assets/list-776XSMFG.svg"});var A5,T5=p(()=>{A5="/build/_assets/lock-U2OO6ZKE.svg"});var O5,R5=p(()=>{O5="/build/_assets/markdown-7VYKMUK4.svg"});var $5,D5=p(()=>{$5="/build/_assets/mermaid-4IGUJJE6.svg"});var P5,M5=p(()=>{P5="/build/_assets/move-down-BK666PUN.svg"});var L5,F5=p(()=>{L5="/build/_assets/move-up-AZUX24IH.svg"});var B5,N5=p(()=>{B5="/build/_assets/new-folder-ZTGUIMZF.svg"});var z5,j5=p(()=>{z5="/build/_assets/not-trusted-WPJCOTBZ.svg"});var H5,q5=p(()=>{H5="/build/_assets/notebook-P5FYW3Q3.svg"});var U5,V5=p(()=>{U5="/build/_assets/numbering-IHZOKY27.svg"});var G5,W5=p(()=>{G5="/build/_assets/offline-bolt-FWQJODIQ.svg"});var Y5,K5=p(()=>{Y5="/build/_assets/open-kernel-source-OZS7ZFOI.svg"});var J5,X5=p(()=>{J5="/build/_assets/palette-HCEGY3LH.svg"});var Q5,Z5=p(()=>{Q5="/build/_assets/paste-PFM4TTHL.svg"});var tA,eA=p(()=>{tA="/build/_assets/pause-JH4AFR5I.svg"});var iA,rA=p(()=>{iA="/build/_assets/pdf-3LH3N3NY.svg"});var sA,nA=p(()=>{sA="/build/_assets/python-4D3ZAEQC.svg"});var aA,oA=p(()=>{aA="/build/_assets/r-kernel-AC4XU7AD.svg"});var cA,lA=p(()=>{cA="/build/_assets/react-KEWG4YFH.svg"});var dA,uA=p(()=>{dA="/build/_assets/redo-D2NJAQDT.svg"});var fA,hA=p(()=>{fA="/build/_assets/regex-OLOQFQYH.svg"});var mA,pA=p(()=>{mA="/build/_assets/run-JASR5YET.svg"});var bA,gA=p(()=>{bA="/build/_assets/running-WXSXH3AW.svg"});var yA,vA=p(()=>{yA="/build/_assets/save-F7CIKF5U.svg"});var _A,xA=p(()=>{_A="/build/_assets/search-IUWCZPNI.svg"});var SA,wA=p(()=>{SA="/build/_assets/selected-breakpoint-I3BOBCXF.svg"});var IA,CA=p(()=>{IA="/build/_assets/settings-NVLGB56U.svg"});var EA,kA=p(()=>{EA="/build/_assets/share-V2TJNE23.svg"});var AA,TA=p(()=>{AA="/build/_assets/spreadsheet-53IRUUNR.svg"});var OA,RA=p(()=>{OA="/build/_assets/step-into-CMYG6HZ3.svg"});var $A,DA=p(()=>{$A="/build/_assets/step-out-4EAP4RZP.svg"});var PA,MA=p(()=>{PA="/build/_assets/step-over-MSBBRXNS.svg"});var LA,FA=p(()=>{LA="/build/_assets/stop-MRBZ5DJC.svg"});var BA,NA=p(()=>{BA="/build/_assets/tab-BK4HQPU4.svg"});var zA,jA=p(()=>{zA="/build/_assets/table-rows-RR4IRJT7.svg"});var HA,qA=p(()=>{HA="/build/_assets/tag-3CFWX7QM.svg"});var UA,VA=p(()=>{UA="/build/_assets/terminal-DTKKDLBB.svg"});var GA,WA=p(()=>{GA="/build/_assets/text-editor-MJBWRXDS.svg"});var YA,KA=p(()=>{YA="/build/_assets/toc-I57DEZZ3.svg"});var JA,XA=p(()=>{JA="/build/_assets/tree-view-EXAO5CJQ.svg"});var QA,ZA=p(()=>{QA="/build/_assets/trusted-EPQAOZZM.svg"});var tR,eR=p(()=>{tR="/build/_assets/undo-HFH7A3CK.svg"});var iR,rR=p(()=>{iR="/build/_assets/user-LRCJLM6U.svg"});var sR,nR=p(()=>{sR="/build/_assets/users-K2RBK42E.svg"});var aR,oR=p(()=>{aR="/build/_assets/variable-EEIM2DMM.svg"});var cR,lR=p(()=>{cR="/build/_assets/vega-5KBIVREI.svg"});var dR,uR=p(()=>{dR="/build/_assets/video-65O2WMJE.svg"});var fR,hR=p(()=>{fR="/build/_assets/view-breakpoint-OZS7ZFOI.svg"});var mR,pR=p(()=>{mR="/build/_assets/word-BSZOGJVT.svg"});var bR,gR=p(()=>{bR="/build/_assets/yaml-UNYFGJCG.svg"});var J5e,Z5e,vR,Q5e,eAe,tAe,rAe,iAe,nAe,yR,sAe,oAe,aAe,xR,lAe,cAe,uAe,Cm,_R,wR,dAe,hAe,fAe,Im,pAe,mAe,gAe,bAe,vAe,yAe,xAe,_Ae,wAe,SAe,CAe,IAe,kAe,EAe,TAe,AAe,RAe,SR,OAe,DAe,$Ae,MAe,PAe,FAe,LAe,NAe,BAe,jAe,CR,zAe,qAe,HAe,VAe,UAe,WAe,GAe,KAe,IR,YAe,XAe,JAe,ZAe,kR,QAe,eRe,tRe,rRe,iRe,nRe,sRe,ER,oRe,aRe,lRe,cRe,uRe,dRe,hRe,TR,fRe,pRe,mRe,gRe,bRe,vRe,yRe,xRe,_Re,AR,wRe,SRe,CRe,IRe,kRe,ERe,TRe,ARe,RR,RRe,ORe,DRe,OR,$Re,MRe,PRe,DR,FRe,LRe,NRe,BRe,jRe,zRe,qRe,HRe,VRe,URe,WRe,GRe,KRe,bh=p(()=>{py();VE();WE();KE();XE();ZE();e4();r4();n4();o4();l4();u4();h4();p4();g4();v4();x4();w4();C4();k4();T4();R4();D4();M4();F4();N4();j4();q4();V4();W4();K4();X4();Z4();eT();rT();nT();oT();lT();uT();hT();pT();gT();vT();xT();wT();CT();kT();TT();RT();DT();MT();FT();NT();jT();qT();VT();WT();KT();XT();ZT();e5();r5();n5();o5();l5();u5();h5();p5();g5();v5();x5();w5();C5();k5();T5();R5();D5();M5();F5();N5();j5();q5();V5();W5();K5();X5();Z5();eA();rA();nA();oA();lA();uA();ay();hA();pA();gA();vA();xA();wA();CA();kA();TA();RA();DA();MA();FA();NA();jA();qA();VA();WA();KA();XA();ZA();eR();rR();nR();oR();lR();uR();hR();pR();gR();J5e=new j({name:"ui-components:add-above",svgstr:UE}),Z5e=new j({name:"ui-components:add-below",svgstr:GE}),vR=new j({name:"ui-components:add",svgstr:YE}),Q5e=new j({name:"ui-components:audio",svgstr:JE}),eAe=new j({name:"ui-components:bell",svgstr:QE}),tAe=new j({name:"ui-components:breakpoint",svgstr:t4}),rAe=new j({name:"ui-components:bug-dot",svgstr:i4}),iAe=new j({name:"ui-components:bug",svgstr:s4}),nAe=new j({name:"ui-components:build",svgstr:a4}),yR=new j({name:"ui-components:caret-down-empty",svgstr:c4}),sAe=new j({name:"ui-components:caret-down-empty-thin",svgstr:d4}),oAe=new j({name:"ui-components:caret-down",svgstr:f4}),aAe=new j({name:"ui-components:caret-left",svgstr:m4}),xR=new j({name:"ui-components:caret-right",svgstr:b4}),lAe=new j({name:"ui-components:caret-up-empty-thin",svgstr:y4}),cAe=new j({name:"ui-components:caret-up",svgstr:_4}),uAe=new j({name:"ui-components:case-sensitive",svgstr:S4}),Cm=new j({name:"ui-components:check",svgstr:I4}),_R=new j({name:"ui-components:circle-empty",svgstr:E4}),wR=new j({name:"ui-components:circle",svgstr:A4}),dAe=new j({name:"ui-components:cleaning",svgstr:O4}),hAe=new j({name:"ui-components:clear",svgstr:$4}),fAe=new j({name:"ui-components:close-all",svgstr:P4}),Im=new j({name:"ui-components:close",svgstr:L4}),pAe=new j({name:"ui-components:code-check",svgstr:B4}),mAe=new j({name:"ui-components:code",svgstr:z4}
10),gAe=new j({name:"ui-components:collapse-all",svgstr:H4}),bAe=new j({name:"ui-components:collapse",svgstr:U4}),vAe=new j({name:"ui-components:console",svgstr:G4}),yAe=new j({name:"ui-components:copy",svgstr:Y4}),xAe=new j({name:"ui-components:copyright",svgstr:J4}),_Ae=new j({name:"ui-components:cut",svgstr:Q4}),wAe=new j({name:"ui-components:delete",svgstr:tT}),SAe=new j({name:"ui-components:dock-bottom",svgstr:iT}),CAe=new j({name:"ui-components:dock-left",svgstr:sT}),IAe=new j({name:"ui-components:dock-right",svgstr:aT}),kAe=new j({name:"ui-components:dock-top",svgstr:cT}),EAe=new j({name:"ui-components:dots",svgstr:dT}),TAe=new j({name:"ui-components:download",svgstr:fT}),AAe=new j({name:"ui-components:duplicate",svgstr:mT}),RAe=new j({name:"ui-components:edit",svgstr:bT}),SR=new j({name:"ui-components:ellipses",svgstr:yT}),OAe=new j({name:"ui-components:error",svgstr:_T}),DAe=new j({name:"ui-components:exceptions",svgstr:ST}),$Ae=new j({name:"ui-components:expand-all",svgstr:IT}),MAe=new j({name:"ui-components:expand",svgstr:ET}),PAe=new j({name:"ui-components:extension",svgstr:AT}),FAe=new j({name:"ui-components:fast-forward",svgstr:OT}),LAe=new j({name:"ui-components:file",svgstr:$T}),NAe=new j({name:"ui-components:file-upload",svgstr:PT}),BAe=new j({name:"ui-components:filter-dot",svgstr:LT}),jAe=new j({name:"ui-components:filter",svgstr:zT}),CR=new j({name:"ui-components:filter-list",svgstr:BT}),zAe=new j({name:"ui-components:folder-favorite",svgstr:HT}),qAe=new j({name:"ui-components:folder",svgstr:UT}),HAe=new j({name:"ui-components:history",svgstr:GT}),VAe=new j({name:"ui-components:home",svgstr:YT}),UAe=new j({name:"ui-components:html5",svgstr:JT}),WAe=new j({name:"ui-components:image",svgstr:QT}),GAe=new j({name:"ui-components:info",svgstr:t5}),KAe=new j({name:"ui-components:inspector",svgstr:i5}),IR=new j({name:"ui-components:json",svgstr:s5}),YAe=new j({name:"ui-components:julia",svgstr:a5}),XAe=new j({name:"ui-components:jupyter-favicon",svgstr:c5}),JAe=new j({name:"ui-components:jupyter",svgstr:d5}),ZAe=new j({name:"ui-components:jupyterlab-wordmark",svgstr:f5}),kR=new j({name:"ui-components:kernel",svgstr:m5}),QAe=new j({name:"ui-components:keyboard",svgstr:b5}),eRe=new j({name:"ui-components:launch",svgstr:y5}),tRe=new j({name:"ui-components:launcher",svgstr:_5}),rRe=new j({name:"ui-components:line-form",svgstr:S5}),iRe=new j({name:"ui-components:link",svgstr:I5}),nRe=new j({name:"ui-components:list",svgstr:E5}),sRe=new j({name:"ui-components:lock",svgstr:A5}),ER=new j({name:"ui-components:markdown",svgstr:O5}),oRe=new j({name:"ui-components:mermaid",svgstr:$5}),aRe=new j({name:"ui-components:move-down",svgstr:P5}),lRe=new j({name:"ui-components:move-up",svgstr:L5}),cRe=new j({name:"ui-components:new-folder",svgstr:B5}),uRe=new j({name:"ui-components:not-trusted",svgstr:z5}),dRe=new j({name:"ui-components:notebook",svgstr:H5}),hRe=new j({name:"ui-components:numbering",svgstr:U5}),TR=new j({name:"ui-components:offline-bolt",svgstr:G5}),fRe=new j({name:"ui-components:open-kernel-source",svgstr:Y5}),pRe=new j({name:"ui-components:palette",svgstr:J5}),mRe=new j({name:"ui-components:paste",svgstr:Q5}),gRe=new j({name:"ui-components:pause",svgstr:tA}),bRe=new j({name:"ui-components:pdf",svgstr:iA}),vRe=new j({name:"ui-components:python",svgstr:sA}),yRe=new j({name:"ui-components:r-kernel",svgstr:aA}),xRe=new j({name:"ui-components:react",svgstr:cA}),_Re=new j({name:"ui-components:redo",svgstr:dA}),AR=new j({name:"ui-components:refresh",svgstr:vm}),wRe=new j({name:"ui-components:regex",svgstr:fA}),SRe=new j({name:"ui-components:run",svgstr:mA}),CRe=new j({name:"ui-components:running",svgstr:bA}),IRe=new j({name:"ui-components:save",svgstr:yA}),kRe=new j({name:"ui-components:search",svgstr:_A}),ERe=new j({name:"ui-components:selected-breakpoint",svgstr:SA}),TRe=new j({name:"ui-components:settings",svgstr:IA}),ARe=new j({name:"ui-components:share",svgstr:EA}),RR=new j({name:"ui-components:spreadsheet",svgstr:AA}),RRe=new j({name:"ui-components:step-into",svgstr:OA}),ORe=new j({name:"ui-components:step-out",svgstr:$A}),DRe=new j({name:"ui-components:step-over",svgstr:PA}),OR=new j({name:"ui-components:stop",svgstr:LA}),$Re=new j({name:"ui-components:tab",svgstr:BA}),MRe=new j({name:"ui-components:table-rows",svgstr:zA}),PRe=new j({name:"ui-components:tag",svgstr:HA}),DR=new j({name:"ui-components:terminal",svgstr:UA}),FRe=new j({name:"ui-components:text-editor",svgstr:GA}),LRe=new j({name:"ui-components:toc",svgstr:YA}),NRe=new j({name:"ui-components:tree-view",svgstr:JA}),BRe=new j({name:"ui-components:trusted",svgstr:QA}),jRe=new j({name:"ui-components:undo",svgstr:tR}),zRe=new j({name:"ui-components:user",svgstr:iR}),qRe=new j({name:"ui-components:users",svgstr:sR}),HRe=new j({name:"ui-components:variable",svgstr:aR}),VRe=new j({name:"ui-components:vega",svgstr:cR}),URe=new j({name:"ui-components:video",svgstr:dR}),WRe=new j({name:"ui-components:view-breakpoint",svgstr:fR}),GRe=new j({name:"ui-components:word",svgstr:mR}),KRe=new j({name:"ui-components:yaml",svgstr:bR})});function Ne(r){let e={},t,i=[];for(let s=1,o=arguments.length;s<o;++s){let a=arguments[s];
10typeof a=="string"?i.push(new hu(a)):a instanceof hu||a instanceof fu?i.push(a):a instanceof Array?n(i,a):(s===1||s===2)&&a&&typeof a=="object"&&("render"in a?t=a:e=a)}return new fu(r,e,i,t);function n(s,o){for(let a of o)typeof a=="string"?s.push(new hu(a)):(a instanceof hu||a instanceof fu)&&s.push(a)}}function $R(r){let e={},t=null;if(arguments.length===2){let i=arguments[1];"render"in i?t=i:e=i}else if(arguments.length===3)e=arguments[1],t=arguments[2];else if(arguments.length>3)throw new Error("hpass() should be called with 1, 2, or 3 arguments");return new my(r,e,t)}var hu,fu,my,As,cc,pu=p(()=>{Fr();hu=class{constructor(e){this.type="text",this.content=e}},fu=class{constructor(e,t,i,n){this.type="element",this.tag=e,this.attrs=t,this.children=i,this.renderer=n}},my=class extends fu{constructor(e,t,i){super(e,t,[],i||void 0)}};(function(r){r.a=r.bind(void 0,"a"),r.abbr=r.bind(void 0,"abbr"),r.address=r.bind(void 0,"address"),r.area=r.bind(void 0,"area"),r.article=r.bind(void 0,"article"),r.aside=r.bind(void 0,"aside"),r.audio=r.bind(void 0,"audio"),r.b=r.bind(void 0,"b"),r.bdi=r.bind(void 0,"bdi"),r.bdo=r.bind(void 0,"bdo"),r.blockquote=r.bind(void 0,"blockquote"),r.br=r.bind(void 0,"br"),r.button=r.bind(void 0,"button"),r.canvas=r.bind(void 0,"canvas"),r.caption=r.bind(void 0,"caption"),r.cite=r.bind(void 0,"cite"),r.code=r.bind(void 0,"code"),r.col=r.bind(void 0,"col"),r.colgroup=r.bind(void 0,"colgroup"),r.data=r.bind(void 0,"data"),r.datalist=r.bind(void 0,"datalist"),r.dd=r.bind(void 0,"dd"),r.del=r.bind(void 0,"del"),r.dfn=r.bind(void 0,"dfn"),r.div=r.bind(void 0,"div"),r.dl=r.bind(void 0,"dl"),r.dt=r.bind(void 0,"dt"),r.em=r.bind(void 0,"em"),r.embed=r.bind(void 0,"embed"),r.fieldset=r.bind(void 0,"fieldset"),r.figcaption=r.bind(void 0,"figcaption"),r.figure=r.bind(void 0,"figure"),r.footer=r.bind(void 0,"footer"),r.form=r.bind(void 0,"form"),r.h1=r.bind(void 0,"h1"),r.h2=r.bind(void 0,"h2"),r.h3=r.bind(void 0,"h3"),r.h4=r.bind(void 0,"h4"),r.h5=r.bind(void 0,"h5"),r.h6=r.bind(void 0,"h6"),r.header=r.bind(void 0,"header"),r.hr=r.bind(void 0,"hr"),r.i=r.bind(void 0,"i"),r.iframe=r.bind(void 0,"iframe"),r.img=r.bind(void 0,"img"),r.input=r.bind(void 0,"input"),r.ins=r.bind(void 0,"ins"),r.kbd=r.bind(void 0,"kbd"),r.label=r.bind(void 0,"label"),r.legend=r.bind(void 0,"legend"),r.li=r.bind(void 0,"li"),r.main=r.bind(void 0,"main"),r.map=r.bind(void 0,"map"),r.mark=r.bind(void 0,"mark"),r.meter=r.bind(void 0,"meter"),r.nav=r.bind(void 0,"nav"),r.noscript=r.bind(void 0,"noscript"),r.object=r.bind(void 0,"object"),r.ol=r.bind(void 0,"ol"),r.optgroup=r.bind(void 0,"optgroup"),r.option=r.bind(void 0,"option"),r.output=r.bind(void 0,"output"),r.p=r.bind(void 0,"p"),r.param=r.bind(void 0,"param"),r.pre=r.bind(void 0,"pre"),r.progress=r.bind(void 0,"progress"),r.q=r.bind(void 0,"q"),r.rp=r.bind(void 0,"rp"),r.rt=r.bind(void 0,"rt"),r.ruby=r.bind(void 0,"ruby"),r.s=r.bind(void 0,"s"),r.samp=r.bind(void 0,"samp"),r.section=r.bind(void 0,"section"),r.select=r.bind(void 0,"select"),r.small=r.bind(void 0,"small"),r.source=r.bind(void 0,"source"),r.span=r.bind(void 0,"span"),r.strong=r.bind(void 0,"strong"),r.sub=r.bind(void 0,"sub"),r.summary=r.bind(void 0,"summary"),r.sup=r.bind(void 0,"sup"),r.table=r.bind(void 0,"table"),r.tbody=r.bind(void 0,"tbody"),r.td=r.bind(void 0,"td"),r.textarea=r.bind(void 0,"textarea"),r.tfoot=r.bind(void 0,"tfoot"),r.th=r.bind(void 0,"th"),r.thead=r.bind(void 0,"thead"),r.time=r.bind(void 0,"time"),r.title=r.bind(void 0,"title"),r.tr=r.bind(void 0,"tr"),r.track=r.bind(void 0,"track"),r.u=r.bind(void 0,"u"),r.ul=r.bind(void 0,"ul"),r.var_=r.bind(void 0,"var"),r.video=r.bind(void 0,"video"),r.wbr=r.bind(void 0,"wbr")})(Ne||(Ne={}));(function(r){function e(i){return cc.createDOMNode(i)}r.realize=e;function t(i,n){let s=cc.hostMap.get(n)||[],o=cc.asContentArray(i);cc.hostMap.set(n,o),cc.updateContent(n,s,o)}r.render=t})(As||(As={}));(function(r){r.hostMap=new WeakMap;function e(m){return m?m instanceof Array?m:[m]:[]}r.asContentArray=e;function t(m){let g=arguments[1]||null,b=arguments[2]||null;if(g)g.insertBefore(t(m),b);else{if(m.type==="text")return document.createTextNode(m.content);if(g=document.createElement(m.tag),o(g,m.attrs),m.renderer)return m.renderer.render(g,{attrs:m.attrs,children:m.children}),g;for(let v=0,S=m.children.length;v<S;++v)t(m.children[v],g)}return g}r.createDOMNode=t;function i(m,g,b){if(g===b)return;let v=f(m,g),S=g.slice(),k=m.firstChild,_=b.length;for(let E=0;E<_;++E){if(E>=S.length){t(b[E],m);continue}let R=S[E],P=b[E];if(R===P){k=k.nextSibling;continue}if(R.type==="text"&&P.type==="text"){k.textContent!==P.content&&(k.textContent=P.content),k=k.nextSibling;continue}if(R.type==="text"||P.type==="text"){W.insert(S,E,P),t(P,m,k);continue}if(!R.renderer!=!P.renderer){W.insert(S,E,P),t(P,m,k);continue}let T=P.attrs.key;if(T&&T in v){let I=v[T];I.vNode!==R&&(W.move(S,S.indexOf(I.vNode,E+1),E),m.insertBefore(I.element,k),R=I.vNode,k=I.element)}if(R===P){k=k.nextSibling;continue}let O=R.attrs.key;if(O&&O!==T){W.insert(S,E,P),t(P,m,k);continue}if(R.tag!==P.tag){W.insert(S,E,P),t(P,m,k);continue}a(k,R.attrs,P.attrs),P.renderer?P.renderer.render(k,{attrs:P.attrs,children:P.children}):i(k,R.children,P.children),k=k.nextSibling}n(m,S,_,!0)}r.updateContent=i;function n(m,g,b,v){for(let S=g.length-1;S>=b;--S){let k=g[S],_=v?m.lastChild:m.childNodes[S];k.type==="text"||(k.renderer&&k.renderer.unrender?k.renderer.unrender(_,{attrs:k.attrs,children:k.children}):n(_,k.children,0,!1)),v&&m.removeChild(_)}}let s={key:!0,className:!0,htmlFor:!0,dataset:!0,style:!0};function o(m,g){for(let b in g)b in s||(b.substr(0,2)==="on"?m[b]=g[b]:m.setAttribute(b,g[b]));g.className!==void 0&&m.setAttribute("class",g.className),g.htmlFor!==void 0&&m.setAttribute("for",g.htmlFor),g.dataset&&l(m,g.dataset),g.style&&u(m,g.style)}
10function a(m,g,b){if(g===b)return;let v;for(v in g)v in s||v in b||(v.substr(0,2)==="on"?m[v]=null:m.removeAttribute(v));for(v in b)v in s||g[v]===b[v]||(v.substr(0,2)==="on"?m[v]=b[v]:m.setAttribute(v,b[v]));g.className!==b.className&&(b.className!==void 0?m.setAttribute("class",b.className):m.removeAttribute("class")),g.htmlFor!==b.htmlFor&&(b.htmlFor!==void 0?m.setAttribute("for",b.htmlFor):m.removeAttribute("for")),g.dataset!==b.dataset&&c(m,g.dataset||{},b.dataset||{}),g.style!==b.style&&d(m,g.style||{},b.style||{})}function l(m,g){for(let b in g)m.setAttribute(`data-${b}`,g[b])}function c(m,g,b){for(let v in g)v in b||m.removeAttribute(`data-${v}`);for(let v in b)g[v]!==b[v]&&m.setAttribute(`data-${v}`,b[v])}function u(m,g){let b=m.style,v;for(v in g)b[v]=g[v]}function d(m,g,b){let v=m.style,S;for(S in g)S in b||(v[S]="");for(S in b)g[S]!==b[S]&&(v[S]=b[S])}function f(m,g){let b=m.firstChild,v=Object.create(null);for(let S of g)S.type==="element"&&S.attrs.key&&(v[S.attrs.key]={vNode:S,element:b}),b=b.nextSibling;return v}})(cc||(cc={}))});var MR,dt,ei,Jn,Xn,km=p(()=>{(function(r){function e(t){let i=document.body,n=s=>{s.preventDefault(),s.stopPropagation(),s.clipboardData.setData("text",t),i.removeEventListener("copy",n,!0)};i.addEventListener("copy",n,!0),document.execCommand("copy")}r.copyText=e})(MR||(MR={}));(function(r){function e(s){let o=window.getComputedStyle(s),a=parseFloat(o.borderTopWidth)||0,l=parseFloat(o.borderLeftWidth)||0,c=parseFloat(o.borderRightWidth)||0,u=parseFloat(o.borderBottomWidth)||0,d=parseFloat(o.paddingTop)||0,f=parseFloat(o.paddingLeft)||0,m=parseFloat(o.paddingRight)||0,g=parseFloat(o.paddingBottom)||0,b=l+f+m+c,v=a+d+g+u;return{borderTop:a,borderLeft:l,borderRight:c,borderBottom:u,paddingTop:d,paddingLeft:f,paddingRight:m,paddingBottom:g,horizontalSum:b,verticalSum:v}}r.boxSizing=e;function t(s){let o=window.getComputedStyle(s),a=parseFloat(o.minWidth)||0,l=parseFloat(o.minHeight)||0,c=parseFloat(o.maxWidth)||1/0,u=parseFloat(o.maxHeight)||1/0;return c=Math.max(a,c),u=Math.max(l,u),{minWidth:a,minHeight:l,maxWidth:c,maxHeight:u}}r.sizeLimits=t;function i(s,o,a){let l=s.getBoundingClientRect();return o>=l.left&&o<l.right&&a>=l.top&&a<l.bottom}r.hitTest=i;function n(s,o){let a=s.getBoundingClientRect(),l=o.getBoundingClientRect();if(!(l.top<=a.top&&l.bottom>=a.bottom)){if(l.top<a.top&&l.height<=a.height){s.scrollTop-=a.top-l.top;return}if(l.bottom>a.bottom&&l.height>=a.height){s.scrollTop-=a.top-l.top;return}if(l.top<a.top&&l.height>a.height){s.scrollTop-=a.bottom-l.bottom;return}if(l.bottom>a.bottom&&l.height<a.height){s.scrollTop-=a.bottom-l.bottom;return}}}r.scrollIntoViewIfNeeded=n})(dt||(dt={}));(function(r){r.IS_MAC=!!navigator.platform.match(/Mac/i),r.IS_WIN=!!navigator.platform.match(/Win/i),r.IS_IE=/Trident/.test(navigator.userAgent),r.IS_EDGE=/Edge/.test(navigator.userAgent);function e(t){return r.IS_MAC?t.metaKey:t.ctrlKey}r.accelKey=e})(ei||(ei={}));(function(r){function e(n){if(n in Xn.specificityCache)return Xn.specificityCache[n];let s=Xn.calculateSingle(n);return Xn.specificityCache[n]=s}r.calculateSpecificity=e;function t(n){if(n in Xn.validityCache)return Xn.validityCache[n];let s=!0;try{Xn.testElem.querySelector(n)}catch{s=!1}return Xn.validityCache[n]=s}r.isValid=t;function i(n,s){return Xn.protoMatchFunc.call(n,s)}r.matches=i})(Jn||(Jn={}));(function(r){r.specificityCache=Object.create(null),r.validityCache=Object.create(null),r.testElem=document.createElement("div"),r.protoMatchFunc=(()=>{let u=Element.prototype;return u.matches||u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector||function(d){let f=this,m=f.ownerDocument?f.ownerDocument.querySelectorAll(d):[];return Array.prototype.indexOf.call(m,f)!==-1}})();function e(u){u=u.split(",",1)[0];let d=0,f=0,m=0;function g(b){let v=u.match(b);return v===null?!1:(u=u.slice(v[0].length),!0)}for(u=u.replace(c," $1 ");u.length>0;){if(g(t)){d++;continue}if(g(i)){f++;continue}if(g(n)){f++;continue}if(g(o)){m++;continue}if(g(a)){f++;continue}if(g(s)){m++;continue}if(!g(l))return 0}return d=Math.min(d,255),f=Math.min(f,255),m=Math.min(m,255),d<<16|f<<8|m}r.calculateSingle=e;let t=/^#[^\s\+>~#\.\[:]+/,i=/^\.[^\s\+>~#\.\[:]+/,n=/^\[[^\]]+\]/,s=/^[^\s\+>~#\.\[:]+/,o=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,c=/:not\(([^\)]+)\)/g})(Xn||(Xn={}))});var mu,lo,PR=p(()=>{mu=class{constructor(){this._first=null,this._last=null,this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:void 0}get last(){return this._last?this._last.value:void 0}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;for(;e;)yield e.value,e=e.next}*retro(){let e=this._last;for(;e;)yield e.value,e=e.prev}*nodes(){let e=this._first;for(;e;)yield e,e=e.next}*retroNodes(){let e=this._last;for(;e;)yield e,e=e.prev}assign(e){this.clear();for(let t of e)this.addLast(t)}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new lo.LinkedListNode(this,e);return this._first?(t.next=this._first,this._first.prev=t,this._first=t):(this._first=t,this._last=t),this._size++,t}addLast(e){let t=new lo.LinkedListNode(this,e);return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._first=t,this._last=t),this._size++,t}insertBefore(e,t){if(!t||t===this._first)return this.addFirst(e);
10if(!(t instanceof lo.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let i=new lo.LinkedListNode(this,e),n=t,s=n.prev;return i.next=n,i.prev=s,n.prev=i,s.next=i,this._size++,i}insertAfter(e,t){if(!t||t===this._last)return this.addLast(e);if(!(t instanceof lo.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let i=new lo.LinkedListNode(this,e),n=t,s=n.next;return i.next=s,i.prev=n,n.next=i,s.prev=i,this._size++,i}removeFirst(){let e=this._first;if(e)return e===this._last?(this._first=null,this._last=null):(this._first=e.next,this._first.prev=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeLast(){let e=this._last;if(e)return e===this._first?(this._first=null,this._last=null):(this._last=e.prev,this._last.next=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeNode(e){if(!(e instanceof lo.LinkedListNode)||e.list!==this)throw new Error("Node is not owned by the list.");let t=e;t===this._first&&t===this._last?(this._first=null,this._last=null):t===this._first?(this._first=t.next,this._first.prev=null):t===this._last?(this._last=t.prev,this._last.next=null):(t.next.prev=t.prev,t.prev.next=t.next),t.list=null,t.next=null,t.prev=null,this._size--}clear(){let e=this._first;for(;e;){let t=e.next;e.list=null,e.prev=null,e.next=null,e=t}this._first=null,this._last=null,this._size=0}};(function(r){function e(t){let i=new r;return i.assign(t),i}r.from=e})(mu||(mu={}));(function(r){class e{constructor(i,n){this.list=null,this.next=null,this.prev=null,this.list=i,this.value=n}}r.LinkedListNode=e})(lo||(lo={}))});var zr,ea,J,ta=p(()=>{Fr();PR();zr=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},ea=class extends zr{get isConflatable(){return!0}conflate(e){return!0}};(function(r){let e=null,t=(O=>I=>{let A=!1;return O.then(()=>!A&&I()),()=>{A=!0}})(Promise.resolve());function i(O,I){let A=f.get(O);if(!A||A.length===0){S(O,I);return}xp(Gv(A),V=>V?v(V,O,I):!0)&&S(O,I)}r.sendMessage=i;function n(O,I){if(!I.isConflatable){k(O,I);return}Bd(d,D=>D.handler!==O||!D.msg||D.msg.type!==I.type||!D.msg.isConflatable?!1:D.msg.conflate(I))||k(O,I)}r.postMessage=n;function s(O,I){let A=f.get(O);A&&A.indexOf(I)!==-1||(A?A.push(I):f.set(O,[I]))}r.installMessageHook=s;function o(O,I){let A=f.get(O);if(!A)return;let D=A.indexOf(I);D!==-1&&(A[D]=null,E(A))}r.removeMessageHook=o;function a(O){let I=f.get(O);I&&I.length>0&&(W.fill(I,null),E(I));for(let A of d)A.handler===O&&(A.handler=null,A.msg=null)}r.clearData=a;function l(){b||e===null||(e(),e=null,b=!0,_(),b=!1)}r.flush=l;function c(){return g}r.getExceptionHandler=c;function u(O){let I=g;return g=O,I}r.setExceptionHandler=u;let d=new mu,f=new WeakMap,m=new Set,g=O=>{console.error(O)},b=!1;function v(O,I,A){let D=!0;try{typeof O=="function"?D=O(I,A):D=O.messageHook(I,A)}catch(V){g(V)}return D}function S(O,I){try{O.processMessage(I)}catch(A){g(A)}}function k(O,I){d.addLast({handler:O,msg:I}),e===null&&(e=t(_))}function _(){if(e=null,d.isEmpty)return;let O={handler:null,msg:null};for(d.addLast(O);;){let I=d.removeFirst();if(I===O)return;I.handler&&I.msg&&i(I.handler,I.msg)}}function E(O){m.size===0&&t(R),m.add(O)}function R(){m.forEach(P),m.clear()}function P(O){W.removeAllWhere(O,T)}function T(O){return O===null}})(J||(J={}))});var lr,ti,FR=p(()=>{Gn();lr=class{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:t,edge:i,distance:n}=this._scrollTarget,s=ti.SCROLL_EDGE_SIZE-n,o=Math.pow(s/ti.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(o*ti.SCROLL_EDGE_SIZE));switch(i){case"top":t.scrollTop-=a;break;case"left":t.scrollLeft-=a;break;case"right":t.scrollLeft+=a;break;case"bottom":t.scrollTop+=a;break}requestAnimationFrame(this._onScrollFrame)},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.document=e.document||document,this.mimeData=e.mimeData,this.dragImage=e.dragImage||null,this.proposedAction=e.proposedAction||"copy",this.supportedActions=e.supportedActions||"all",this.source=e.source||null}dispose(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:!0,cancelable:!0,clientX:-1,clientY:-1});ti.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}}get isDisposed(){return this._disposed}start(e,t){if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(e,t),this._promise=new Promise(n=>{this._resolve=n});let i=new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,clientX:e,clientY:t});return document.dispatchEvent(i),this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault(),e.stopPropagation();break}}moveDragImage(e,t){if(!this.dragImage)return;let i=this.dragImage.style;i.transform=`translate(${e}px, ${t}px)`}_evtPointerMove(e){e.preventDefault(),e.stopPropagation(),this._updateCurrentTarget(e),this._updateDragScroll(e),this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){if(e.preventDefault(),e.stopPropagation(),e.button!==0)return;if(this._updateCurrentTarget(e),!this._currentTarget){this._finalize("none");return}if(this._dropAction==="none"){ti.dispatchDragLeave(this,this._currentTarget,null,e),this._finalize("none");return}let t=ti.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.dispose()}
10_addListeners(){document.addEventListener("pointerdown",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("pointerup",this,!0),document.addEventListener("pointerenter",this,!0),document.addEventListener("pointerleave",this,!0),document.addEventListener("pointerover",this,!0),document.addEventListener("pointerout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)}_removeListeners(){document.removeEventListener("pointerdown",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointerenter",this,!0),document.removeEventListener("pointerleave",this,!0),document.removeEventListener("pointerover",this,!0),document.removeEventListener("pointerout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)}_updateDragScroll(e){let t=ti.findScrollTarget(e);!this._scrollTarget&&!t||(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=t)}_updateCurrentTarget(e){let t=this._currentTarget,i=this._currentTarget,n=this._currentElement,s=ti.findElementBehindBackdrop(e,this.document);this._currentElement=s,s!==n&&s!==i&&ti.dispatchDragExit(this,i,s,e),s!==n&&s!==i&&(i=ti.dispatchDragEnter(this,s,i,e)),i!==t&&(this._currentTarget=i,ti.dispatchDragLeave(this,t,i,e));let o=ti.dispatchDragOver(this,i,e);this._setDropAction(o)}_attachDragImage(e,t){if(!this.dragImage)return;this.dragImage.classList.add("lm-mod-drag-image");let i=this.dragImage.style;i.pointerEvents="none",i.position="fixed",i.transform=`translate(${e}px, ${t}px)`,(this.document instanceof Document?this.document.body:this.document.firstElementChild).appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage)return;let e=this.dragImage.parentNode;e&&e.removeChild(this.dragImage)}_setDropAction(e){if(e=ti.validateAction(e,this.supportedActions),!(this._override&&this._dropAction===e))switch(e){case"none":this._dropAction=e,this._override=lr.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=lr.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=lr.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=lr.overrideCursor("move",this.document);break}}_finalize(e){let t=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,t&&t(e)}};(function(r){class e extends DragEvent{constructor(n,s){super(s.type,{bubbles:!0,cancelable:!0,altKey:n.altKey,button:n.button,clientX:n.clientX,clientY:n.clientY,ctrlKey:n.ctrlKey,detail:0,metaKey:n.metaKey,relatedTarget:s.related,screenX:n.screenX,screenY:n.screenY,shiftKey:n.shiftKey,view:window});let{drag:o}=s;this.dropAction="none",this.mimeData=o.mimeData,this.proposedAction=o.proposedAction,this.supportedActions=o.supportedActions,this.source=o.source}}r.Event=e;function t(i,n=document){return ti.overrideCursor(i,n)}r.overrideCursor=t})(lr||(lr={}));(function(r){r.SCROLL_EDGE_SIZE=20;function e(E,R){return d[E]&f[R]?E:"none"}r.validateAction=e;function t(E,R=document){if(E){if(i&&E==i.event)return i.element;r.cursorBackdrop.style.zIndex="-1000";let P=R.elementFromPoint(E.clientX,E.clientY);return r.cursorBackdrop.style.zIndex="",i={event:E,element:P},P}else{let P=r.cursorBackdrop.style.transform;if(n&&P===n.transform)return n.element;let T=r.cursorBackdrop.getBoundingClientRect();r.cursorBackdrop.style.zIndex="-1000";let O=R.elementFromPoint(T.left+T.width/2,T.top+T.height/2);return r.cursorBackdrop.style.zIndex="",n={transform:P,element:O},O}}r.findElementBehindBackdrop=t;let i=null,n=null;function s(E){let R=E.clientX,P=E.clientY,T=t(E);for(;T;T=T.parentElement){if(!T.hasAttribute("data-lm-dragscroll"))continue;let O=0,I=0;T===document.body&&(O=window.pageXOffset,I=window.pageYOffset);let A=T.getBoundingClientRect(),D=A.top+I,V=A.left+O,Z=V+A.width,we=D+A.he
10ight;if(R<V||R>=Z||P<D||P>=we)continue;let q=R-V+1,se=P-D+1,oe=Z-R,Pe=we-P,or=Math.min(q,se,oe,Pe);if(or>r.SCROLL_EDGE_SIZE)continue;let At;switch(or){case Pe:At="bottom";break;case se:At="top";break;case oe:At="right";break;case q:At="left";break;default:throw"unreachable"}let mt=T.scrollWidth-T.clientWidth,tt=T.scrollHeight-T.clientHeight,qn;switch(At){case"top":qn=tt>0&&T.scrollTop>0;break;case"left":qn=mt>0&&T.scrollLeft>0;break;case"right":qn=mt>0&&T.scrollLeft<mt;break;case"bottom":qn=tt>0&&T.scrollTop<tt;break;default:throw"unreachable"}if(qn)return{element:T,edge:At,distance:or}}return null}r.findScrollTarget=s;function o(E,R,P,T){if(!R)return null;let O=new lr.Event(T,{drag:E,related:P,type:"lm-dragenter"});if(!R.dispatchEvent(O))return R;let A=E.document instanceof Document?E.document.body:E.document.firstElementChild;return R===A?P:(O=new lr.Event(T,{drag:E,related:P,type:"lm-dragenter"}),A.dispatchEvent(O),A)}r.dispatchDragEnter=o;function a(E,R,P,T){if(!R)return;let O=new lr.Event(T,{drag:E,related:P,type:"lm-dragexit"});R.dispatchEvent(O)}r.dispatchDragExit=a;function l(E,R,P,T){if(!R)return;let O=new lr.Event(T,{drag:E,related:P,type:"lm-dragleave"});R.dispatchEvent(O)}r.dispatchDragLeave=l;function c(E,R,P){if(!R)return"none";let T=new lr.Event(P,{drag:E,related:null,type:"lm-dragover"});return R.dispatchEvent(T)?"none":T.dropAction}r.dispatchDragOver=c;function u(E,R,P){if(!R)return"none";let T=new lr.Event(P,{drag:E,related:null,type:"lm-drop"});return R.dispatchEvent(T)?"none":T.dropAction}r.dispatchDrop=u;let d={none:0,copy:1,link:2,move:4},f={none:d.none,copy:d.copy,link:d.link,move:d.move,"copy-link":d.copy|d.link,"copy-move":d.copy|d.move,"link-move":d.link|d.move,all:d.copy|d.link|d.move};function m(E,R=document){let P=++_,T=R instanceof Document?R.body:R.firstElementChild;return r.cursorBackdrop.isConnected||(r.cursorBackdrop.style.transform="scale(0)",T.appendChild(r.cursorBackdrop),v(),document.addEventListener("pointermove",g,{capture:!0,passive:!0}),r.cursorBackdrop.addEventListener("scroll",b,{capture:!0,passive:!0})),r.cursorBackdrop.style.cursor=E,new Qi(()=>{P===_&&r.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",g,!0),r.cursorBackdrop.removeEventListener("scroll",b,!0),T.removeChild(r.cursorBackdrop))})}r.overrideCursor=m;function g(E){if(r.cursorBackdrop){r.cursorBackdrop.style.transform=`translate(${E.clientX}px, ${E.clientY}px)`;try{r.cursorBackdrop.hasPointerCapture(E.pointerId)||r.cursorBackdrop.setPointerCapture(E.pointerId)}catch{}}}function b(E){if(!r.cursorBackdrop)return;let R=t();if(!R)return;let P=R.closest("[data-lm-dragscroll]");P&&(P.scrollTop+=r.cursorBackdrop.scrollTop-S,P.scrollLeft+=r.cursorBackdrop.scrollLeft-S,v())}function v(){r.cursorBackdrop.scrollTop=S,r.cursorBackdrop.scrollLeft=S}let S=500;function k(){let E=document.createElement("div");return E.classList.add("lm-cursor-backdrop"),E}let _=0;r.cursorBackdrop=k()})(ti||(ti={}))});function gu(){return gy.keyboardLayout}var ra,Jse,gy,by=p(()=>{ra=class{constructor(e,t,i=[]){this.name=e,this._codes=t,this._keys=ra.extractKeys(t),this._modifierKeys=ra.convertToKeySet(i)}keys(){return Object.keys(this._keys)}isValidKey(e){return e in this._keys}isModifierKey(e){return e in this._modifierKeys}keyForKeydownEvent(e){return this._codes[e.keyCode]||""}};(function(r){function e(i){let n=Object.create(null);for(let s in i)n[i[s]]=!0;return n}r.extractKeys=e;function t(i){let n=Object(null);for(let s=0,o=i.length;s<o;++s)n[i[s]]=!0;return n}r.convertToKeySet=t})(ra||(ra={}));Jse=new ra("en-us",{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",27:"Escape",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},["Shift","Ctrl","Alt","Meta"]);(function(r){r.keyboardLayout=Jse})(gy||(gy={}))});var qr,Ai,Zn,vy=p(()=>{Fr();qr=N(qe());Gn();km();by();Xe();Ai=class{constructor(){this._timerID=0,this._timerModifierID=0,this._replaying=!1,this._keystrokes=[],this._key
10downEvents=[],this._keyBindings=[],this._exactKeyMatch=null,this._commands=new Map,this._commandChanged=new te(this),this._commandExecuted=new te(this),this._keyBindingChanged=new te(this),this._holdKeyBindingPromises=new Map}get commandChanged(){return this._commandChanged}get commandExecuted(){return this._commandExecuted}get keyBindingChanged(){return this._keyBindingChanged}get keyBindings(){return this._keyBindings}listCommands(){return Array.from(this._commands.keys())}hasCommand(e){return this._commands.has(e)}addCommand(e,t){if(this._commands.has(e))throw new Error(`Command '${e}' already registered.`);return this._commands.set(e,Zn.createCommand(t)),this._commandChanged.emit({id:e,type:"added"}),new Qi(()=>{this._commands.delete(e),this._commandChanged.emit({id:e,type:"removed"})})}notifyCommandChanged(e){if(e!==void 0&&!this._commands.has(e))throw new Error(`Command '${e}' is not registered.`);this._commandChanged.emit({id:e,type:e?"changed":"many-changed"})}describedBy(e,t=qr.JSONExt.emptyObject){var i;let n=this._commands.get(e);return Promise.resolve((i=n?.describedBy.call(void 0,t))!==null&&i!==void 0?i:{args:null})}label(e,t=qr.JSONExt.emptyObject){var i;let n=this._commands.get(e);return(i=n?.label.call(void 0,t))!==null&&i!==void 0?i:""}mnemonic(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.mnemonic.call(void 0,t):-1}icon(e,t=qr.JSONExt.emptyObject){var i;return(i=this._commands.get(e))===null||i===void 0?void 0:i.icon.call(void 0,t)}iconClass(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.iconClass.call(void 0,t):""}iconLabel(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.iconLabel.call(void 0,t):""}caption(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.caption.call(void 0,t):""}usage(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.usage.call(void 0,t):""}className(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.className.call(void 0,t):""}dataset(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.dataset.call(void 0,t):{}}isEnabled(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.isEnabled.call(void 0,t):!1}isToggled(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.isToggled.call(void 0,t):!1}isToggleable(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.isToggleable:!1}isVisible(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);return i?i.isVisible.call(void 0,t):!1}execute(e,t=qr.JSONExt.emptyObject){let i=this._commands.get(e);if(!i)return Promise.reject(new Error(`Command '${e}' not registered.`));let n;try{n=i.execute.call(void 0,t)}catch(o){n=Promise.reject(o)}let s=Promise.resolve(n);return this._commandExecuted.emit({id:e,args:t,result:s}),s}addKeyBinding(e){let t=Zn.createKeyBinding(e);return this._keyBindings.push(t),this._keyBindingChanged.emit({binding:t,type:"added"}),new Qi(()=>{W.removeFirstOf(this._keyBindings,t),this._keyBindingChanged.emit({binding:t,type:"removed"})})}processKeydownEvent(e){if(e.defaultPrevented||this._replaying)return;let t=Ai.keystrokeForKeydownEvent(e);if(!t){this._replayKeydownEvents(),this._clearPendingState();return}if(Ai.isModifierKeyPressed(e)){let{exact:o}=Zn.matchKeyBinding(this._keyBindings,[t],e);o?(e.preventDefault(),e.stopPropagation(),this._startModifierTimer(o)):this._clearModifierTimer();return}this._keystrokes.push(t);let{exact:i,partial:n}=Zn.matchKeyBinding(this._keyBindings,this._keystrokes,e),s=n.length!==0;if(!i&&!s){this._replayKeydownEvents(),this._clearPendingState();return}if((i?.preventDefault||n.some(o=>o.preventDefault))&&(e.preventDefault(),e.stopPropagation()),this._keydownEvents.push(e),i&&!s){this._executeKeyBinding(i),this._clearPendingState();return}i&&(this._exactKeyMatch=i),this._startTimer()}holdKeyBindingExecution(e,t){this._holdKeyBindingPromises.set(e,t)}processKeyupEvent(e){this._clearModifierTimer()}_startModifierTimer(e){this._clearModifierTimer(),this._timerModifierID=window.setTimeout(()=>{this._executeKeyBinding(e)},Zn.modifierkeyTimeOut)}_clearModifierTimer(){this._timerModifierID!==0&&(clearTimeout(this._timerModifierID),this._timerModifierID=0)}_startTimer(){this._clearTimer(),this._timerID=window.setTimeout(()=>{this._onPendingTimeout()},Zn.CHORD_TIMEOUT)}_clearTimer(){this._timerID!==0&&(clearTimeout(this._timerID),this._timerID=0)}
10_replayKeydownEvents(){this._keydownEvents.length!==0&&(this._replaying=!0,this._keydownEvents.forEach(Zn.replayKeyEvent),this._replaying=!1)}async _executeKeyBinding(e){if(this._holdKeyBindingPromises.size!==0){let s=[...this._keydownEvents],o=(await Promise.race([Promise.all(s.map(async a=>{var l;return(l=this._holdKeyBindingPromises.get(a))!==null&&l!==void 0?l:Promise.resolve(!0)})),new Promise(a=>{setTimeout(()=>a([!1]),Zn.KEYBINDING_HOLD_TIMEOUT)})])).every(Boolean);if(this._holdKeyBindingPromises.clear(),!o)return}let{command:t,args:i}=e,n={_luminoEvent:{type:"keybinding",keys:e.keys},...i};if(!this.hasCommand(t)||!this.isEnabled(t,n)){let s=this.hasCommand(t)?"enabled":"registered",a=`Cannot execute key binding '${e.keys.join(", ")}':`,l=`command '${t}' is not ${s}.`;console.warn(`${a} ${l}`);return}await this.execute(t,n)}_clearPendingState(){this._clearTimer(),this._clearModifierTimer(),this._exactKeyMatch=null,this._keystrokes.length=0,this._keydownEvents.length=0}_onPendingTimeout(){this._timerID=0,this._exactKeyMatch?this._executeKeyBinding(this._exactKeyMatch):this._replayKeydownEvents(),this._clearPendingState()}};(function(r){function e(a){let l="",c=!1,u=!1,d=!1,f=!1;for(let m of a.split(/\s+/))m==="Accel"?ei.IS_MAC?u=!0:d=!0:m==="Alt"?c=!0:m==="Cmd"?u=!0:m==="Ctrl"?d=!0:m==="Shift"?f=!0:m.length>0&&(l=m);return{cmd:u,ctrl:d,alt:c,shift:f,key:l}}r.parseKeystroke=e;function t(a){let l="",c=e(a);return c.ctrl&&(l+="Ctrl "),c.alt&&(l+="Alt "),c.shift&&(l+="Shift "),c.cmd&&ei.IS_MAC&&(l+="Cmd "),c.key?l+c.key:l.trim()}r.normalizeKeystroke=t;function i(a){let l;return ei.IS_WIN?l=a.winKeys||a.keys:ei.IS_MAC?l=a.macKeys||a.keys:l=a.linuxKeys||a.keys,l.map(t)}r.normalizeKeys=i;function n(a){return typeof a=="string"?l(a):a.map(l).join(", ");function l(c){let u=[],d=ei.IS_MAC?" ":"+",f=e(c);return f.ctrl&&u.push("Ctrl"),f.alt&&u.push("Alt"),f.shift&&u.push("Shift"),ei.IS_MAC&&f.cmd&&u.push("Cmd"),u.push(f.key),u.map(Zn.formatKey).join(d)}}r.formatKeystroke=n;function s(a){let l=gu(),c=l.keyForKeydownEvent(a);return l.isModifierKey(c)}r.isModifierKeyPressed=s;function o(a){let l=gu(),c=l.keyForKeydownEvent(a),u=[];return a.ctrlKey&&u.push("Ctrl"),a.altKey&&u.push("Alt"),a.shiftKey&&u.push("Shift"),a.metaKey&&ei.IS_MAC&&u.push("Cmd"),l.isModifierKey(c)||u.push(c),u.join(" ")}r.keystrokeForKeydownEvent=o})(Ai||(Ai={}));(function(r){r.CHORD_TIMEOUT=1e3,r.KEYBINDING_HOLD_TIMEOUT=1e3,r.modifierkeyTimeOut=500;function e(_){return{execute:_.execute,describedBy:g(typeof _.describedBy=="function"?_.describedBy:{args:null,..._.describedBy},()=>({args:null})),label:g(_.label,l),mnemonic:g(_.mnemonic,c),icon:g(_.icon,m),iconClass:g(_.iconClass,l),iconLabel:g(_.iconLabel,l),caption:g(_.caption,l),usage:g(_.usage,l),className:g(_.className,l),dataset:g(_.dataset,f),isEnabled:_.isEnabled||u,isToggled:_.isToggled||d,isToggleable:_.isToggleable||!!_.isToggled,isVisible:_.isVisible||u}}r.createCommand=e;function t(_){var E;return{keys:Ai.normalizeKeys(_),selector:b(_),command:_.command,args:_.args||qr.JSONExt.emptyObject,preventDefault:(E=_.preventDefault)!==null&&E!==void 0?E:!0}}r.createKeyBinding=t;function i(_,E,R){let P=null,T=[],O=1/0,I=0;for(let A=0,D=_.length;A<D;++A){let V=_[A],Z=v(V.keys,E);if(Z===0)continue;if(Z===2){S(V.selector,R)!==-1&&T.push(V);continue}let we=S(V.selector,R);if(we===-1||we>O)continue;let q=Jn.calculateSpecificity(V.selector);(!P||we<O||q>=I)&&(P=V,O=we,I=q)}return{exact:P,partial:T}}r.matchKeyBinding=i;function n(_){_.target.dispatchEvent(k(_))}r.replayKeyEvent=n;function s(_){return ei.IS_MAC?o.hasOwnProperty(_)?o[_]:_:a.hasOwnProperty(_)?a[_]:_}r.formatKey=s;let o={Backspace:"\u232B",Tab:"\u21E5",Enter:"\u23CE",Shift:"\u21E7",Ctrl:"\u2303",Alt:"\u2325",Escape:"\u238B",PageUp:"\u21DE",PageDown:"\u21DF",End:"\u2198",Home:"\u2196",ArrowLeft:"\u2190",ArrowUp:"\u2191",ArrowRight:"\u2192",ArrowDown:"\u2193",Delete:"\u2326",Cmd:"\u2318"},a={Escape:"Esc",PageUp:"Page Up",PageDown:"Page Down",ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",Delete:"Del"},l=()=>"",c=()=>-1,u=()=>!0,d=()=>!1,f=()=>({}),m=()=>{};function g(_,E){return _===void 0?E:typeof _=="function"?_:()=>_}function b(_){if(_.selector.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${_.selector}`);if(!Jn.isValid(_.selector))throw new Error(`Invalid selector: ${_.selector}`);return _.selector}function v(_,E){if(_.length<E.length)return 0;for(let R=0,P=E.length;R<P;++R)if(_[R]!==E[R])return 0;return _.length>E.length?2:1}function S(_,E){let R=E.target,P=E.currentTarget;for(let T=0;R!==null;R=R.parentElement,++T){if(R.hasAttribute("data-lm-suppress-shortcuts"))return-1;if(Jn.matches(R,_))return T;if(R===P)return-1}return-1}function k(_){let E=document.createEvent("Event"),R=_.bubbles||!0,P=_.cancelable||!0;
10return E.initEvent(_.type||"keydown",R,P),E.key=_.key||"",E.keyCode=_.keyCode||0,E.which=_.keyCode||0,E.ctrlKey=_.ctrlKey||!1,E.altKey=_.altKey||!1,E.shiftKey=_.shiftKey||!1,E.metaKey=_.metaKey||!1,E.view=_.view||window,E}})(Zn||(Zn={}))});var fo,Rs,nn,vh,B,Em,Os,dc,bu,Tr,yh,xh,Qn,uo,yy,Tm,sn,xy,Ri,_y,vu,wy,vr,uc,yu,Sy,ia,co,Si,wi,LR,Zse,Oi,In,Cy,tr,Ds,Ut,Am,ho,br,xu,Rm,NR,BR,Iy,jR,zR,Rt=p(()=>{Fr();fo=N(qe());km();ta();Cp();Xe();FR();vy();pu();Gn();by();Rs=class{constructor(){this.sizeHint=0,this.minSize=0,this.maxSize=1/0,this.stretch=1,this.size=0,this.done=!1}};(function(r){function e(s,o){let a=s.length;if(a===0)return o;let l=0,c=0,u=0,d=0,f=0;for(let b=0;b<a;++b){let v=s[b],S=v.minSize,k=v.maxSize,_=v.sizeHint;v.done=!1,v.size=Math.max(S,Math.min(_,k)),u+=v.size,l+=S,c+=k,v.stretch>0&&(d+=v.stretch,f++)}if(o===u)return 0;if(o<=l){for(let b=0;b<a;++b){let v=s[b];v.size=v.minSize}return o-l}if(o>=c){for(let b=0;b<a;++b){let v=s[b];v.size=v.maxSize}return o-c}let m=.01,g=a;if(o<u){let b=u-o;for(;f>0&&b>m;){let v=b,S=d;for(let k=0;k<a;++k){let _=s[k];if(_.done||_.stretch===0)continue;let E=_.stretch*v/S;_.size-E<=_.minSize?(b-=_.size-_.minSize,d-=_.stretch,_.size=_.minSize,_.done=!0,g--,f--):(b-=E,_.size-=E)}}for(;g>0&&b>m;){let v=b/g;for(let S=0;S<a;++S){let k=s[S];k.done||(k.size-v<=k.minSize?(b-=k.size-k.minSize,k.size=k.minSize,k.done=!0,g--):(b-=v,k.size-=v))}}}else{let b=o-u;for(;f>0&&b>m;){let v=b,S=d;for(let k=0;k<a;++k){let _=s[k];if(_.done||_.stretch===0)continue;let E=_.stretch*v/S;_.size+E>=_.maxSize?(b-=_.maxSize-_.size,d-=_.stretch,_.size=_.maxSize,_.done=!0,g--,f--):(b-=E,_.size+=E)}}for(;g>0&&b>m;){let v=b/g;for(let S=0;S<a;++S){let k=s[S];k.done||(k.size+v>=k.maxSize?(b-=k.maxSize-k.size,k.size=k.maxSize,k.done=!0,g--):(b-=v,k.size+=v))}}}return 0}r.calc=e;function t(s,o,a){s.length===0||a===0||(a>0?i(s,o,a):n(s,o,-a))}r.adjust=t;function i(s,o,a){let l=0;for(let f=0;f<=o;++f){let m=s[f];l+=m.maxSize-m.size}let c=0;for(let f=o+1,m=s.length;f<m;++f){let g=s[f];c+=g.size-g.minSize}a=Math.min(a,l,c);let u=a;for(let f=o;f>=0&&u>0;--f){let m=s[f],g=m.maxSize-m.size;g>=u?(m.sizeHint=m.size+u,u=0):(m.sizeHint=m.size+g,u-=g)}let d=a;for(let f=o+1,m=s.length;f<m&&d>0;++f){let g=s[f],b=g.size-g.minSize;b>=d?(g.sizeHint=g.size-d,d=0):(g.sizeHint=g.size-b,d-=b)}}function n(s,o,a){let l=0;for(let f=o+1,m=s.length;f<m;++f){let g=s[f];l+=g.maxSize-g.size}let c=0;for(let f=0;f<=o;++f){let m=s[f];c+=m.size-m.minSize}a=Math.min(a,l,c);let u=a;for(let f=o+1,m=s.length;f<m&&u>0;++f){let g=s[f],b=g.maxSize-g.size;b>=u?(g.sizeHint=g.size+u,u=0):(g.sizeHint=g.size+b,u-=b)}let d=a;for(let f=o;f>=0&&d>0;--f){let m=s[f],g=m.size-m.minSize;g>=d?(m.sizeHint=m.size-d,d=0):(m.sizeHint=m.size-g,d-=g)}}})(nn||(nn={}));vh=class{constructor(e){this._label="",this._caption="",this._mnemonic=-1,this._icon=void 0,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new te(this),this._isDisposed=!1,this.owner=e.owner,e.label!==void 0&&(this._label=e.label),e.mnemonic!==void 0&&(this._mnemonic=e.mnemonic),e.icon!==void 0&&(this._icon=e.icon),e.iconClass!==void 0&&(this._iconClass=e.iconClass),e.iconLabel!==void 0&&(this._iconLabel=e.iconLabel),e.caption!==void 0&&(this._caption=e.caption),e.className!==void 0&&(this._className=e.className),e.closable!==void 0&&(this._closable=e.closable),this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._changed.emit(void 0))}get mnemonic(){return this._mnemonic}set mnemonic(e){this._mnemonic!==e&&(this._mnemonic=e,this._changed.emit(void 0))}get icon(){return this._icon}set icon(e){this._icon!==e&&(this._icon=e,this._changed.emit(void 0))}get iconClass(){return this._iconClass}set iconClass(e){this._iconClass!==e&&(this._iconClass=e,this._changed.emit(void 0))}get iconLabel(){return this._iconLabel}set iconLabel(e){this._iconLabel!==e&&(this._iconLabel=e,this._changed.emit(void 0))}get caption(){return this._caption}set caption(e){this._caption!==e&&(this._caption=e,this._changed.emit(void 0))}get className(){return this._className}set className(e){this._className!==e&&(this._className=e,this._changed.emit(void 0))}get closable(){return this._closable}set closable(e){this._closable!==e&&(this._closable=e,this._changed.emit(void 0))}get dataset(){return this._dataset}set dataset(e){this._dataset!==e&&(this._dataset=e,this._changed.emit(void 0))}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,te.clearData(this))}},B=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new te(this),this._hiddenMode=B.HiddenMode.Display,this.node=Em.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(B.Flag.IsDisposed),this._disposed.emit
10(void 0),this.parent?this.parent=null:this.isAttached&&B.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),te.clearData(this),J.clearData(this),Cr.clearData(this))}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(B.Flag.IsDisposed)}get isAttached(){return this.testFlag(B.Flag.IsAttached)}get isHidden(){return this.testFlag(B.Flag.IsHidden)}get isVisible(){let e=this;do{if(e.isHidden||!e.isAttached)return!1;e=e.parent}while(e!=null);return!0}get title(){return Em.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this.isHidden&&this._toggleHidden(!1),e==B.HiddenMode.Scale?this.node.style.willChange="transform":this.node.style.willChange="auto",this._hiddenMode=e,this.isHidden&&this._toggleHidden(!0))}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(e&&this.contains(e))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){let t=new B.ChildMessage("child-removed",this);J.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new B.ChildMessage("child-added",this);J.sendMessage(this._parent,t)}this.isDisposed||J.sendMessage(this,B.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout!==e){if(this.testFlag(B.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(e.parent)throw new Error("Cannot change layout parent.");this._layout=e,e.parent=this}}*children(){this._layout&&(yield*this._layout)}contains(e){for(let t=e;t;t=t._parent)if(t===this)return!0;return!1}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){return t===!0?(this.node.classList.add(e),!0):t===!1?(this.node.classList.remove(e),!1):this.node.classList.toggle(e)}update(){J.postMessage(this,B.Msg.UpdateRequest)}fit(){J.postMessage(this,B.Msg.FitRequest)}activate(){J.postMessage(this,B.Msg.ActivateRequest)}close(){J.sendMessage(this,B.Msg.CloseRequest)}show(){if(this.testFlag(B.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&J.sendMessage(this,B.Msg.BeforeShow),this.clearFlag(B.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&J.sendMessage(this,B.Msg.AfterShow),this.parent)){let e=new B.ChildMessage("child-shown",this);J.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(B.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&J.sendMessage(this,B.Msg.BeforeHide),this.setFlag(B.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&J.sendMessage(this,B.Msg.AfterHide),this.parent)){let e=new B.ChildMessage("child-hidden",this);J.sendMessage(this.parent,e)}}setHidden(e){e?this.hide():this.show()}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e),this.onResize(e);break;case"update-request":this.notifyLayout(e),this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e),this.onFitRequest(e);break;case"before-show":this.notifyLayout(e),this.onBeforeShow(e);break;case"after-show":this.setFlag(B.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(B.Flag.IsVisible),this.notifyLayout(e),this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e),this.onBeforeAttach(e);break;case"after-attach":!this.isHidden&&(!this.parent||this.parent.isVisible)&&this.setFlag(B.Flag.IsVisible),this.setFlag(B.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(B.Flag.IsVisible),this.clearFlag(B.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;
10case"close-request":this.notifyLayout(e),this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e),this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e),this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){this._layout&&this._layout.processParentMessage(e)}onCloseRequest(e){this.parent?this.parent=null:this.isAttached&&B.detach(this)}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e)switch(this._hiddenMode){case B.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case B.HiddenMode.Scale:this.node.style.transform="scale(0)",this.node.setAttribute("aria-hidden","true");break;case B.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden",this.node.style.zIndex="-1";break}else switch(this._hiddenMode){case B.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case B.HiddenMode.Scale:this.node.style.transform="",this.node.removeAttribute("aria-hidden");break;case B.HiddenMode.ContentVisibility:this.node.style.contentVisibility="",this.node.style.zIndex="";break}}};(function(r){(function(s){s[s.Display=0]="Display",s[s.Scale=1]="Scale",s[s.ContentVisibility=2]="ContentVisibility"})(r.HiddenMode||(r.HiddenMode={})),function(s){s[s.IsDisposed=1]="IsDisposed",s[s.IsAttached=2]="IsAttached",s[s.IsHidden=4]="IsHidden",s[s.IsVisible=8]="IsVisible",s[s.DisallowLayout=16]="DisallowLayout"}(r.Flag||(r.Flag={})),function(s){s.BeforeShow=new zr("before-show"),s.AfterShow=new zr("after-show"),s.BeforeHide=new zr("before-hide"),s.AfterHide=new zr("after-hide"),s.BeforeAttach=new zr("before-attach"),s.AfterAttach=new zr("after-attach"),s.BeforeDetach=new zr("before-detach"),s.AfterDetach=new zr("after-detach"),s.ParentChanged=new zr("parent-changed"),s.UpdateRequest=new ea("update-request"),s.FitRequest=new ea("fit-request"),s.ActivateRequest=new ea("activate-request"),s.CloseRequest=new ea("close-request")}(r.Msg||(r.Msg={}));class e extends zr{constructor(o,a){super(o),this.child=a}}r.ChildMessage=e;class t extends zr{constructor(o,a){super("resize"),this.width=o,this.height=a}}r.ResizeMessage=t,function(s){s.UnknownSize=new s(-1,-1)}(t=r.ResizeMessage||(r.ResizeMessage={}));function i(s,o,a=null){if(s.parent)throw new Error("Cannot attach a child widget.");if(s.isAttached||s.node.isConnected)throw new Error("Widget is already attached.");if(!o.isConnected)throw new Error("Host is not attached.");J.sendMessage(s,r.Msg.BeforeAttach),o.insertBefore(s.node,a),J.sendMessage(s,r.Msg.AfterAttach)}r.attach=i;function n(s){if(s.parent)throw new Error("Cannot detach a child widget.");if(!s.isAttached||!s.node.isConnected)throw new Error("Widget is not attached.");J.sendMessage(s,r.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),J.sendMessage(s,r.Msg.AfterDetach)}r.detach=n})(B||(B={}));(function(r){r.titleProperty=new Cr({name:"title",create:t=>new vh({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}r.createNode=e})(Em||(Em={}));Os=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,te.clearData(this),Cr.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(this._parent)throw new Error("Cannot change parent widget.");if(e.layout!==this)throw new Error("Invalid parent widget.");this._parent=e,this.init()}}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy!==e&&(this._fitPolicy=e,this._parent)){let t=this._parent.node.style;t.minWidth="",t.minHeight="",t.maxWidth="",t.maxHeight="",this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(let e of this)e.parent=this.parent}onResize(e){for(let t of this)J.sendMessage(t,B.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)J.sendMessage(t,B.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)J.sendMessage(t,e)}onAfterAttach(e){for(let t of this)J.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)J.sendMessage(t,e)}onAfterDetach(e){for(let t of this)J.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||J.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||J.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||J.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||J.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(r){function e(s){return bu.horizontalAlignmentProperty.get(s)}r.getHorizontalAlignment=e;function t(s,o){bu.horizontalAlignmentProperty.set(s,o)}r.setHorizontalAlignment=t;function i(s){return bu.verticalAlignmentProperty.get(s)}r.getVerticalAlignment=i;function n(s,o){bu.verticalAlignmentProperty.set(s,o)}r.setVerticalAlignment=n})(Os||(Os={}));dc=class{constructor(e){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=e,this.widget.node.style.position="absolute",this.widget.node.style.contain="strict"}dispose(){if(this._disposed)return;this._disposed=!0;let e=this.widget.node.style;e.position="",e.top="",e.left="",e.width="",e.height="",e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=dt.sizeLimits(this.widget.node);this._minWidth=e.minWidth,this._minHeight=e.minHeight,this._maxWidth=e.maxWidth,this._maxHeight=e.maxHeight}update(e,t,i,n){let s=Math.max(this._minWidth,Math.min(i,this._maxWidth)),o=Math.max(this._minHeight,Math.min(n,this._maxHeight));if(s<i)switch(Os.getHorizontalAlignment(this.widget)){case"left":break;case"center":e+=(i-s)/2;break;case"right":e+=i-s;break;default:throw"unreachable"}if(o<n)switch(Os.getVerticalAlignment(this.widget)){case"top":break;case"center":t+=(n-o)/2;break;case"bottom":t+=n-o;break;default:throw"unreachable"}let a=!1,l=this.widget.node.style;if(this._top!==t&&(this._top=t,l.top=`${t}px`),this._left!==e&&(this._left=e,l.left=`${e}px`),this._width!==s&&(a=!0,this._width=s,l.width=`${s}px`),this._height!==o&&(a=!0,this._height=o,l.height=`${o}px`),a){let c=new B.ResizeMessage(s,o);J.sendMessage(this.widget,c)}}};(function(r){r.horizontalAlignmentProperty=new Cr({name:"horizontalAlignment",create:()=>"center",changed:e}),r.verticalAlignmentProperty=new Cr({name:"verticalAlignment",create:()=>"top",changed:e});
10function e(t){t.parent&&t.parent.layout&&t.parent.update()}})(bu||(bu={}));Tr=class extends Os{constructor(){super(...arguments),this._widgets=[]}dispose(){for(;this._widgets.length>0;)this._widgets.pop().dispose();super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let i=this._widgets.indexOf(t),n=Math.max(0,Math.min(e,this._widgets.length));if(i===-1){W.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,i!==n&&(W.move(this._widgets,i,n),this.parent&&this.moveWidget(i,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=W.removeAt(this._widgets,e);t&&this.parent&&this.detachWidget(e,t)}init(){super.init();let e=0;for(let t of this)this.attachWidget(e++,t)}attachWidget(e,t){let i=this.parent.node.children[e];this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,i),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterAttach)}moveWidget(e,t,i){this.parent.isAttached&&J.sendMessage(i,B.Msg.BeforeDetach),this.parent.node.removeChild(i.node),this.parent.isAttached&&J.sendMessage(i,B.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&J.sendMessage(i,B.Msg.BeforeAttach),this.parent.node.insertBefore(i.node,n),this.parent.isAttached&&J.sendMessage(i,B.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterDetach)}};(function(r){function e(t){return Math.max(0,Math.floor(t))}r.clampDimension=e})(yh||(yh={}));xh=yh,Qn=class extends Tr{constructor(e){super(),this.widgetOffset=0,this._fixed=0,this._spacing=4,this._dirty=!1,this._hasNormedSizes=!1,this._sizers=[],this._items=[],this._handles=[],this._box=null,this._alignment="start",this._orientation="horizontal",this.renderer=e.renderer,e.orientation!==void 0&&(this._orientation=e.orientation),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=yh.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,super.dispose()}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.parent&&(this.parent.dataset.orientation=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=yh.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get handles(){return this._handles}absoluteSizes(){return this._sizers.map(e=>e.size)}relativeSizes(){return uo.normalize(this._sizers.map(e=>e.size))}setRelativeSizes(e,t=!0){let i=this._sizers.length,n=e.slice(0,i);for(;n.length<i;)n.push(0);let s=uo.normalize(n);for(let o=0;o<i;++o){let a=this._sizers[o];a.sizeHint=s[o],a.size=s[o]}this._hasNormedSizes=!0,t&&this.parent&&this.parent.update()}moveHandle(e,t){let i=this._handles[e];if(!i||i.classList.contains("lm-mod-hidden"))return;let n;if(this._orientation==="horizontal"?n=t-i.offsetLeft:n=t-i.offsetTop,n!==0){for(let s of this._sizers)s.size>0&&(s.sizeHint=s.size);nn.adjust(this._sizers,e,n),this.parent&&this.parent.update()}}init(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){let i=new dc(t),n=uo.createHandle(this.renderer),s=uo.averageSize(this._sizers),o=uo.createSizer(s);W.insert(this._items,e,i),W.insert(this._sizers,e,o),W.insert(this._handles,e,n),this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,i){W.move(this._items,e,t),W.move(this._sizers,e,t),W.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let i=W.removeAt(this._items,e),n=W.removeAt(this._handles,e);W.removeAt(this._sizers,e),this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterDetach),i.dispose(),this.parent.fit()}
10onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}updateItemPosition(e,t,i,n,s,o,a){let l=this._items[e];if(l.isHidden)return;let c=this._handles[e].style;t?(i+=this.widgetOffset,l.update(i,n,a,s),i+=a,c.top=`${n}px`,c.left=`${i}px`,c.width=`${this._spacing}px`,c.height=`${s}px`):(n+=this.widgetOffset,l.update(i,n,o,a),n+=a,c.top=`${n}px`,c.left=`${i}px`,c.width=`${o}px`,c.height=`${this._spacing}px`)}_fit(){let e=0,t=-1;for(let l=0,c=this._items.length;l<c;++l)this._items[l].isHidden?this._handles[l].classList.add("lm-mod-hidden"):(this._handles[l].classList.remove("lm-mod-hidden"),t=l,e++);t!==-1&&this._handles[t].classList.add("lm-mod-hidden"),this._fixed=this._spacing*Math.max(0,e-1)+this.widgetOffset*this._items.length;let i=this._orientation==="horizontal",n=i?this._fixed:0,s=i?0:this._fixed;for(let l=0,c=this._items.length;l<c;++l){let u=this._items[l],d=this._sizers[l];if(d.size>0&&(d.sizeHint=d.size),u.isHidden){d.minSize=0,d.maxSize=0;continue}u.fit(),d.stretch=Qn.getStretch(u.widget),i?(d.minSize=u.minWidth,d.maxSize=u.maxWidth,n+=u.minWidth,s=Math.max(s,u.minHeight)):(d.minSize=u.minHeight,d.maxSize=u.maxHeight,s+=u.minHeight,n=Math.max(n,u.minWidth))}let o=this._box=dt.boxSizing(this.parent.node);n+=o.horizontalSum,s+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${n}px`,a.minHeight=`${s}px`,this._dirty=!0,this.parent.parent&&J.sendMessage(this.parent.parent,B.Msg.FitRequest),this._dirty&&J.sendMessage(this.parent,B.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let i=0;for(let d=0,f=this._items.length;d<f;++d)i+=+!this._items[d].isHidden;if(i===0&&this.widgetOffset===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=dt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l=0,c=0,u=this._orientation==="horizontal";if(i>0){let d;if(u?d=Math.max(0,o-this._fixed):d=Math.max(0,a-this._fixed),this._hasNormedSizes){for(let m of this._sizers)m.sizeHint*=d;this._hasNormedSizes=!1}let f=nn.calc(this._sizers,d);if(f>0)switch(this._alignment){case"start":break;case"center":l=0,c=f/2;break;case"end":l=0,c=f;break;case"justify":l=f/i,c=0;break;default:throw"unreachable"}}for(let d=0,f=this._items.length;d<f;++d){let g=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,u,u?s+c:s,u?n:n+c,a,o,g);let b=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);u?s+=g+b:n+=g+b}}};(function(r){function e(i){return uo.stretchProperty.get(i)}r.getStretch=e;function t(i,n){uo.stretchProperty.set(i,n)}r.setStretch=t})(Qn||(Qn={}));(function(r){r.stretchProperty=new Cr({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new Rs;return a.sizeHint=Math.floor(o),a}r.createSizer=e;function t(o){let a=o.createHandle();return a.style.position="absolute",a.style.contain="style",a}r.createHandle=t;function i(o){return o.reduce((a,l)=>a+l.size,0)/o.length||0}r.averageSize=i;function n(o){let a=o.length;if(a===0)return[];let l=o.reduce((c,u)=>c+Math.abs(u),0);return l===0?o.map(c=>1/a):o.map(c=>c/l)}r.normalize=n;function s(o){o.parent&&o.parent.layout instanceof Qn&&o.parent.fit()}})(uo||(uo={}));yy=class extends Qn{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=xh.clampDimension(e),this.widgetOffset!==e&&(this.widgetOffset=e,this.parent&&this.parent.fit())}get titles(){return this._titles}dispose(){this.isDisposed||(this._titles.length=0,super.dispose())}updateTitle(e,t){let i=this._titles[e],n=i.classList.contains("lm-mod-expanded"),s=Tm.createTitle(this.renderer,t.title,n);this._titles[e]=s,this.parent.node.replaceChild(s,i)}insertWidget(e,t){t.id||(t.id=`id-${fo.UUID.uuid4()}`),super.insertWidget(e,t)}attachWidget(e,t){let i=Tm.createTitle(this.renderer,t.title,!t.isHidden);W.insert(this._titles,e,i),this.parent.node.appendChild(i),t.node.setAttribute("role","regi
10on"),t.node.setAttribute("aria-labelledby",i.id),super.attachWidget(e,t)}moveWidget(e,t,i){W.move(this._titles,e,t),super.moveWidget(e,t,i)}detachWidget(e,t){let i=W.removeAt(this._titles,e);this.parent.node.removeChild(i),super.detachWidget(e,t)}updateItemPosition(e,t,i,n,s,o,a){let l=this._titles[e].style;l.top=`${n}px`,l.left=`${i}px`,l.height=`${this.widgetOffset}px`,t?l.width=`${s}px`:l.width=`${o}px`,super.updateItemPosition(e,t,i,n,s,o,a)}};(function(r){function e(t,i,n=!0){let s=t.createSectionTitle(i);return s.style.position="absolute",s.style.contain="strict",s.setAttribute("aria-label",`${i.label} Section`),s.setAttribute("aria-expanded",n?"true":"false"),s.setAttribute("aria-controls",i.owner.id),n&&s.classList.add("lm-mod-expanded"),s}r.createTitle=e})(Tm||(Tm={}));sn=class extends B{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=xy.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}};(function(r){function e(t){return t.layout||new Tr}r.createLayout=e})(xy||(xy={}));Ri=class extends sn{constructor(e={}){super({layout:_y.createLayout(e)}),this._handleMoved=new te(this),this._pressData=null,this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse(),super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=!0){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child"),this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child"),this._releaseMouse()}_evtKeyDown(e){this._pressData&&(e.preventDefault(),e.stopPropagation()),e.keyCode===27&&this._releaseMouse()}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,i=W.findFirstIndex(t.handles,c=>c.contains(e.target));if(i===-1)return;e.preventDefault(),e.stopPropagation(),document.addEventListener("pointerup",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);let n,s=t.handles[i],o=s.getBoundingClientRect();t.orientation==="horizontal"?n=e.clientX-o.left:n=e.clientY-o.top;let a=window.getComputedStyle(s),l=lr.overrideCursor(a.cursor);this._pressData={index:i,delta:n,override:l}}_evtPointerMove(e){e.preventDefault(),e.stopPropagation();let t,i=this.layout,n=this.node.getBoundingClientRect();i.orientation==="horizontal"?t=e.clientX-n.left-this._pressData.delta:t=e.clientY-n.top-this._pressData.delta,i.moveHandle(this._pressData.index,t)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse())}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._handleMoved.emit(),document.removeEventListener("keydown",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("contextmenu",this,!0))}};(function(r){class e{createHandle(){let s=document.createElement("div");return s.className="lm-SplitPanel-handle",s}}r.Renderer=e,r.defaultRenderer=new e;function t(n){return Qn.getStretch(n)}r.getStretch=t;function i(n,s){Qn.setStretch(n,s)}r.setStretch=i})(Ri||(Ri={}));(function(r){function e(t){return t.layout||new Qn({renderer:t.renderer||Ri.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}r.createLayout=e})(_y||(_y={}));vu=class extends Ri{constructor(e={}){super({...e,layout:wy.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new te(this),this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e),e.title.changed.connect(this._onTitleChanged,this)}collapse(e){let t=this.layout.widgets[e];t&&!t.isHidden&&this._toggleExpansion(e)}expand(e){let t=this.layout.widgets[e];t&&t.isHidden&&this._toggleExpansion(e)}insertWidget(e,t){super.insertWidget(e,t),t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){switch(super.handleEvent(e),e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e),this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this)}_onTitleChanged(e){let t=W.findFirstIndex(this.widgets,i=>i.contains(e.owner));t>=0&&(this.layout.updateTitle(t,e.owner),this.update())}_computeWidgetSize(e){let t=this.layout,i=t.widgets[e];if(!i)return;let n=i.isHidden,s=t.absoluteSizes(),o=(n?-1:1)*this.spacing,a=s.reduce((c,u)=>c+u),l=[...s];if(n){let c=this._widgetSizesCache.get(i);if(!c)return;l[e]+=c;let u=l.map(d=>d-c>0).lastIndexOf(!0);u===-1?l.forEach((d,f)=>{f!==e&&(l[f]-=s[f]/a*(c-o))}):l[u]-=c-o}else{let c=s[e];this._widgetSizesCache.set(i,c),l[e]=0;let u=l.map(d=>d>0).lastIndexOf(!0);if(u===-1)return;l[u]=s[u]+c+o}return l.map(c=>c/(a+o))}_evtClick(e){let t=e.target;if(t){let i=W.findFirstIndex(this.titles,n=>n.contains(t));i>=0&&(e.preventDefault(),e.stopPropagation(),this._toggleExpansion(i))}}
10_eventKeyDown(e){if(e.defaultPrevented)return;let t=e.target,i=!1;if(t){let n=W.findFirstIndex(this.titles,s=>s.contains(t));if(n>=0){let s=e.keyCode.toString();if(e.key.match(/Space|Enter/)||s.match(/13|32/))t.click(),i=!0;else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||s.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||s.match(/38|40/)){let o=e.key.match(/ArrowLeft|ArrowUp/)||s.match(/37|38/)?-1:1,a=this.titles.length,l=(n+a+o)%a;this.titles[l].focus(),i=!0}else e.key==="End"||s==="35"?(this.titles[this.titles.length-1].focus(),i=!0):(e.key==="Home"||s==="36")&&(this.titles[0].focus(),i=!0)}i&&e.preventDefault()}}_toggleExpansion(e){let t=this.titles[e],i=this.layout.widgets[e],n=this._computeWidgetSize(e);n&&this.setRelativeSizes(n,!1),i.isHidden?(t.classList.add("lm-mod-expanded"),t.setAttribute("aria-expanded","true"),i.show()):(t.classList.remove("lm-mod-expanded"),t.setAttribute("aria-expanded","false"),i.hide()),this._expansionToggled.emit(e)}};(function(r){class e extends Ri.Renderer{constructor(){super(),this.titleClassName="lm-AccordionPanel-title",this._titleID=0,this._titleKeys=new WeakMap,this._uuid=++e._nInstance}createCollapseIcon(i){return document.createElement("span")}createSectionTitle(i){let n=document.createElement("h3");n.setAttribute("tabindex","0"),n.id=this.createTitleKey(i),n.className=this.titleClassName;for(let a in i.dataset)n.dataset[a]=i.dataset[a];let s=n.appendChild(this.createCollapseIcon(i));s.className="lm-AccordionPanel-titleCollapser";let o=n.appendChild(document.createElement("span"));return o.className="lm-AccordionPanel-titleLabel",o.textContent=i.label,o.title=i.caption||i.label,n}createTitleKey(i){let n=this._titleKeys.get(i);return n===void 0&&(n=`title-key-${this._uuid}-${this._titleID++}`,this._titleKeys.set(i,n)),n}}e._nInstance=0,r.Renderer=e,r.defaultRenderer=new e})(vu||(vu={}));(function(r){function e(t){return t.layout||new yy({renderer:t.renderer||vu.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}r.createLayout=e})(wy||(wy={}));vr=class extends Tr{constructor(e={}){super(),this._fixed=0,this._spacing=4,this._dirty=!1,this._sizers=[],this._items=[],this._box=null,this._alignment="start",this._direction="top-to-bottom",e.direction!==void 0&&(this._direction=e.direction),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=xh.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,super.dispose()}get direction(){return this._direction}set direction(e){this._direction!==e&&(this._direction=e,this.parent&&(this.parent.dataset.direction=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=xh.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}init(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){W.insert(this._items,e,new dc(t)),W.insert(this._sizers,e,new Rs),this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,i){W.move(this._items,e,t),W.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let i=W.removeAt(this._items,e);W.removeAt(this._sizers,e),this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterDetach),i.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0;for(let a=0,l=this._items.length;a<l;++a)e+=+!this._items[a].isHidden;this._fixed=this._spacing*Math.max(0,e-1);let t=uc.isHorizontal(this._direction),i=t?this._fixed:0,n=t?0:this._fixed;for(let a=0,l=this._items.length;a<l;++a){let c=this._items[a],u=this._sizers[a];if(c.isHidden){u.minSize=0,u.maxSize=0;continue}c.fit(),u.sizeHint=vr.getSizeBasis(c.widget),u.stretch=vr.getStretch(c.widget),t?(u.minSize=c.minWidth,u.maxSize=c.maxWidth,i+=c.minWidth,n=Math.max(n,c.minHeight)):(u.minSize=c.minHeight,u.maxSize=c.maxHeight,n+=c.minHeight,i=Math.max(i,c.minWidth))}let s=this._box=dt.boxSizing(this.parent.node);i+=s.horizontalSum,n+=s.verticalSum;let o=this.parent.node.style;o.minWidth=`${i}px`,o.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&J.sendMessage(this.parent.parent,B.Msg.FitRequest),this._dirty&&J.sendMessage(this.parent,B.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let i=0;for(let d=0,f=this._items.length;d<f;++d)i+=+!this._items[d].isHidden;if(i===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=dt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l;switch(this._direction){case"left-to-right":l=nn.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=nn.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=nn.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=nn.calc(this._sizers,Math.max(0,a-this._fixed)),n+=a;break;default:throw"unreachable"}let c=0,u=0;if(l>0)switch(this._alignment){case"start":break;case"center":c=0,u=l/2;break;case"end":c=0,u=l;break;case"justify":c=l/i,u=0;break;default:throw"unreachable"}for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let g=this._sizers[d].size;switch(this._direction){case"left-to-right":m.update(s+u,n,g+c,a),s+=g+c+this._spacing;break;case"top-to-bottom":m.update(s,n+u,o,g+c),n+=g+c+this._spacing;break;case"right-to-left":m.update(s-u-g-c,n,g+c,a),s-=g+c+this._spacing;break;case"bottom-to-top":m.update(s,n-u-g-c,o,g+c),n-=g+c+this._spacing;break;default:throw"unreachable"}}}};(function(r){function e(s){return uc.stretchProperty.get(s)}r.getStretch=e;function t(s,o){uc.stretchProperty.set(s,o)}r.setStretch=t;function i(s){return uc.sizeBasisProperty.get(s)}r.getSizeBasis=i;function n(s,o){uc.sizeBasisProperty.set(s,o)}r.setSizeBasis=n})(vr||(vr={}));(function(r){r.stretchProperty=new Cr({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:i}),r.sizeBasisProperty=new Cr({name:"sizeBasis",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:i});function e(n){return n==="left-to-right"||n==="right-to-left"}r.isHorizontal=e;function t(n){return Math.max(0,Math.floor(n))}r.clampSpacing=t;function i(n){n.parent&&n.parent.layout instanceof vr&&n.parent.fit()}})(uc||(uc={}));yu=class extends sn{constructor(e={}){super({layout:Sy.createLayout(e)}),this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}};(function(r){function e(s){return vr.getStretch(s)}r.getStretch=e;function t(s,o){vr.setStretch(s,o)}r.setStretch=t;function i(s){return vr.getSizeBasis(s)}r.getSizeBasis=i;function n(s,o){vr.setSizeBasis(s,o)}r.setSizeBasis=n})(yu||(yu={}));(function(r){function e(t){return t.layout||new vr(t)}r.createLayout=e})(Sy||(Sy={}));ia=class extends B{constructor(e){super({node:co.createNode()}),this._activeIndex=-1,this._items=[],this._results=null,this.addClass("lm-CommandPalette"),this.setFlag(B.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||ia.defaultRenderer,this.commands.commandChanged.connect(this._onGenericChange,this),this.commands.keyBindingChanged.connect(this._onGenericChange,this)}
10dispose(){this._items.length=0,this._results=null,super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=co.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(i=>co.createItem(this.commands,i));return t.forEach(i=>this._items.push(i)),this.refresh(),t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){W.removeAt(this._items,e)&&this.refresh()}clearItems(){this._items.length!==0&&(this._items.length=0,this.refresh())}refresh(){if(this._results=null,this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)}onAfterDetach(e){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)}onAfterShow(e){this.update(),super.onAfterShow(e)}onActivateRequest(e){if(this.isAttached){let t=this.inputNode;t.focus(),t.select()}}onUpdateRequest(e){if(!this.isVisible){As.render(null,this.contentNode);return}let t=this.inputNode.value,i=this.contentNode,n=this._results;if(n||(n=this._results=co.search(this._items,t),this._activeIndex=t?W.findFirstIndex(n,co.canActivate):-1),!t&&n.length===0){As.render(null,i);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});As.render(l,i);return}let s=this.renderer,o=this._activeIndex,a=new Array(n.length);for(let l=0,c=n.length;l<c;++l){let u=n[l];if(u.type==="header"){let d=u.indices,f=u.category;a[l]=s.renderHeader({category:f,indices:d})}else{let d=u.item,f=u.indices,m=l===o;a[l]=s.renderItem({item:d,indices:f,active:m})}}if(As.render(a,i),o<0||o>=n.length)i.scrollTop=0;else{let l=i.children[o];dt.scrollIntoViewIfNeeded(i,l)}}_evtClick(e){if(e.button!==0)return;if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="",this.refresh();return}let t=W.findFirstIndex(this.contentNode.children,i=>i.contains(e.target));t!==-1&&(e.preventDefault(),e.stopPropagation(),this._execute(t))}_evtKeyDown(e){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.keyCode){case 13:e.preventDefault(),e.stopPropagation(),this._execute(this._activeIndex);break;case 38:e.preventDefault(),e.stopPropagation(),this._activatePreviousItem();break;case 40:e.preventDefault(),e.stopPropagation(),this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,i=e<t-1?e+1:0,n=i===0?t-1:i-1;this._activeIndex=W.findFirstIndex(this._results,co.canActivate,i,n),this.update()}_activatePreviousItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,i=e<=0?t-1:e-1,n=i===t-1?0:i+1;this._activeIndex=W.findLastIndex(this._results,co.canActivate,i,n),this.update()}_execute(e){if(!this._results)return;let t=this._results[e];if(t){if(t.type==="header"){let i=this.inputNode;i.value=`${t.category.toLowerCase()} `,i.focus(),this.refresh();return}t.item.isEnabled&&(this.commands.execute(t.item.command,t.item.args),this.inputNode.value="",this.refresh())}}_toggleFocused(){let e=document.activeElement===this.inputNode;this.toggleClass("lm-mod-focused",e)}_onGenericChange(){this.refresh()}};(function(r){class e{renderHeader(i){let n=this.formatHeader(i);return Ne.li({className:"lm-CommandPalette-header"},n)}renderItem(i){let n=this.createItemClass(i),s=this.createItemDataset(i);return i.item.isToggleable?Ne.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${i.item.isToggled}`},this.renderItemIcon(i),this.renderItemContent(i),this.renderItemShortcut(i)):Ne.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(i),this.renderItemContent(i),this.renderItemShortcut(i))}renderEmptyMessage(i){let n=this.formatEmptyMessage(i);return Ne.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(i){let n=this.createIconClass(i);return Ne.div({className:n},i.item.icon,i.item.iconLabel)}renderItemContent(i){return Ne.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(i),this.renderItemCaption(i))}renderItemLabel(i){let n=this.formatItemLabel(i);return Ne.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(i){let n=this.formatItemCaption(i);return Ne.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(i){let n=this.formatItemShortcut(i);return Ne.div({className:"lm-CommandPalette-itemShortcut"},n)}createItemClass(i){let n="lm-CommandPalette-item";i.item.isEnabled||(n+=" lm-mod-disabled"),i.item.isToggled&&(n+=" lm-mod-toggled"),i.active&&(n+=" lm-mod-active");let s=i.item.className;return s&&(n+=` ${s}`),n}createItemDataset(i){return{...i.item.dataset,command:i.item.command}}createIconClass(i){let n="lm-CommandPalette-itemIcon",s=i.item.iconClass;return s?`${n} ${s}`:n}formatHeader(i){return!i.indices||i.indices.length===0?i.category:Ho.highlight(i.category,i.indices,Ne.mark)}formatEmptyMessage(i){return`No commands found that match '${i.query}'`}formatItemShortcut(i){let n=i.item.keyBinding;return n?Ai.formatKeystroke(n.keys):null}formatItemLabel(i){return!i.indices||i.indices.length===0?i.item.label:Ho.highlight(i.item.label,i.indices,Ne.mark)}formatItemCaption(i){return i.item.caption}}r.Renderer=e,r.defaultRenderer=new e})(ia||(ia={}));(function(r){function e(){let f=document.createElement("div"),m=document.createElement("div"),g=document.createElement("div"),b=document.createElement("input"),v=document.createElement("ul"),S=document.createElement("button");return m.className="lm-CommandPalette-search",g.className="lm-CommandPalette-wrapper",b.className="lm-CommandPalette-input",S.className="lm-close-icon",v.className="lm-CommandPalette-content",v.setAttribute("role","menu"),b.spellcheck=!1,g.appendChild(b),g.appendChild(S),m.appendChild(g),f.appendChild(m),f.appendChild(v),f}r.createNode=e;function t(f,m){return new d(f,m)}r.createItem=t;function i(f,m){let g=a(f,m);return g.sort(c),u(g)}r.search=i;function n(f){return f.type==="item"&&f.item.isEnabled}r.canActivate=n;function s(f){return f.trim().replace(/\s+/g," ")}function o(f){return f.replace(/\s+/g,"").toLowerCase()}function a(f,m){m=o(m);let g=[];for(let b=0,v=f.length;b<v;++b){let S=f[b];if(!S.isVisible)continue;if(!m){g.push({matchType:3,categoryIndices:null,labelIndices:null,
10score:0,item:S});continue}let k=l(S,m);k&&(S.isEnabled||(k.score+=1e3),g.push(k))}return g}function l(f,m){let g=f.category.toLowerCase(),b=f.label.toLowerCase(),v=`${g} ${b}`,S=1/0,k=null,_=/\b\w/g;for(;;){let O=_.exec(v);if(!O)break;let I=Ho.matchSumOfDeltas(v,m,O.index);if(!I)break;I.score<=S&&(S=I.score,k=I.indices)}if(!k||S===1/0)return null;let E=g.length+1,R=W.lowerBound(k,E,(O,I)=>O-I),P=k.slice(0,R),T=k.slice(R);for(let O=0,I=T.length;O<I;++O)T[O]-=E;return P.length===0?{matchType:0,categoryIndices:null,labelIndices:T,score:S,item:f}:T.length===0?{matchType:1,categoryIndices:P,labelIndices:null,score:S,item:f}:{matchType:2,categoryIndices:P,labelIndices:T,score:S,item:f}}function c(f,m){let g=f.matchType-m.matchType;if(g!==0)return g;let b=f.score-m.score;if(b!==0)return b;let v=0,S=0;switch(f.matchType){case 0:v=f.labelIndices[0],S=m.labelIndices[0];break;case 1:case 2:v=f.categoryIndices[0],S=m.categoryIndices[0];break}if(v!==S)return v-S;let k=f.item.category.localeCompare(m.item.category);if(k!==0)return k;let _=f.item.rank,E=m.item.rank;return _!==E?_<E?-1:1:f.item.label.localeCompare(m.item.label)}function u(f){let m=[];for(let g=0,b=f.length;g<b;++g){let{item:v,categoryIndices:S,labelIndices:k}=f[g],_=v.category;(g===0||_!==f[g-1].item.category)&&m.push({type:"header",category:_,indices:S}),m.push({type:"item",item:v,indices:k})}return m}class d{constructor(m,g){this._commands=m,this.category=s(g.category),this.command=g.command,this.args=g.args||fo.JSONExt.emptyObject,this.rank=g.rank!==void 0?g.rank:1/0}get label(){return this._commands.label(this.command,this.args)}get icon(){return this._commands.icon(this.command,this.args)}get iconClass(){return this._commands.iconClass(this.command,this.args)}get iconLabel(){return this._commands.iconLabel(this.command,this.args)}get caption(){return this._commands.caption(this.command,this.args)}get className(){return this._commands.className(this.command,this.args)}get dataset(){return this._commands.dataset(this.command,this.args)}get isEnabled(){return this._commands.isEnabled(this.command,this.args)}get isToggled(){return this._commands.isToggled(this.command,this.args)}get isToggleable(){return this._commands.isToggleable(this.command,this.args)}get isVisible(){return this._commands.isVisible(this.command,this.args)}get keyBinding(){let{command:m,args:g}=this;return W.findLastValue(this._commands.keyBindings,b=>b.command===m&&fo.JSONExt.deepEqual(b.args,g))||null}}})(co||(co={}));Si=class extends B{constructor(e){super({node:wi.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new te(this),this._menuRequested=new te(this),this.addClass("lm-Menu"),this.setFlag(B.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Si.defaultRenderer}dispose(){this.close(),this._items.length=0,super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;for(;e._parentMenu;)e=e._parentMenu;return e}get leafMenu(){let e=this;for(;e._childMenu;)e=e._childMenu;return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._items.length)&&(e=-1),e!==-1&&!wi.canActivate(this._items[e])&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]&&this.contentNode.childNodes[this._activeIndex].focus(),this.update())}get items(){return this._items}activateNextItem(){let e=this._items.length,t=this._activeIndex,i=t<e-1?t+1:0,n=i===0?e-1:i-1;this.activeIndex=W.findFirstIndex(this._items,wi.canActivate,i,n)}activatePreviousItem(){let e=this._items.length,t=this._activeIndex,i=t<=0?e-1:t-1,n=i===e-1?0:i+1;this.activeIndex=W.findLastIndex(this._items,wi.canActivate,i,n)}triggerActiveItem(){if(!this.isAttached)return;let e=this.activeItem;if(!e)return;if(this._cancelOpenTimer(),this._cancelCloseTimer(),e.type==="submenu"){this._openChildMenu(!0);return}this.rootMenu.close();let{command:t,args:i}=e;this.commands.isEnabled(t,i)?this.commands.execute(t,i):console.log(`Command '${t}' is disabled.`)}addItem(e){return this.insertItem(this._items.length,e)}insertItem(e,t){this.isAttached&&this.close(),this.activeIndex=-1;let i=Math.max(0,Math.min(e,this._items.length)),n=wi.createItem(this,t);return W.insert(this._items,i,n),this.update(),n}removeItem(e){let t=this._items.indexOf(e);t!==-1&&this.removeItemAt(t)}removeItemAt(e){this.isAttached&&this.close(),this.activeIndex=-1,W.removeAt(this._items,e)&&this.update()}clearItems(){this.isAttached&&this.close(),this.activeIndex=-1,this._items.length!==0&&(this._items.length=0,this.update())}open(e,t,i={}){var n,s,o;if(this.isAttached)return;let a=i.forceX||!1,l=i.forceY||!1,c=(n=i.host)!==null&&n!==void 0?n:null,u=(s=i.ref)!==null&&s!==void 0?s:null,d=(o=i.horizontalAlignment)!==null&&o!==void 0?o:document.documentElement.dir==="rtl"?"right":"left";wi.openRootMenu(this,e,t,a,l,d,c,u),this.activate()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"pointerup":this._evtPointerUp(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerenter":this._evtPointerEnter(e);break;case"pointerleave":this._evtPointerLeave(e);break;case"pointerdown":this._evtPointerDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("pointerup",this),this.node.addEventListener("pointermove",this),this.node.addEventListener("pointerenter",this),this.node.addEventListener("pointerleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("pointerdown",this,
10!0)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("pointerup",this),this.node.removeEventListener("pointermove",this),this.node.removeEventListener("pointerenter",this),this.node.removeEventListener("pointerleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("pointerdown",this,!0)}onActivateRequest(e){this.isAttached&&this.node.focus()}onUpdateRequest(e){let t=this._items,i=this.renderer,n=this._activeIndex,s=wi.computeCollapsed(t),o=new Array(t.length);for(let a=0,l=t.length;a<l;++a){let c=t[a],u=a===n,d=s[a];o[a]=i.renderItem({item:c,active:u,collapsed:d,onfocus:()=>{this.activeIndex=a}})}As.render(o,this.contentNode)}onCloseRequest(e){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;let t=this._childMenu;t&&(this._childIndex=-1,this._childMenu=null,t._parentMenu=null,t.close());let i=this._parentMenu;i&&(this._parentMenu=null,i._childIndex=-1,i._childMenu=null,i.activate()),this.isAttached&&this._aboutToClose.emit(void 0),super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){this._parentMenu?this.close():this._menuRequested.emit("previous");return}if(t===38){this.activatePreviousItem();return}if(t===39){let o=this.activeItem;o&&o.type==="submenu"?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next");return}if(t===40){this.activateNextItem();return}let i=gu().keyForKeydownEvent(e);if(!i)return;let n=this._activeIndex+1,s=wi.findMnemonic(this._items,i,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.triggerActiveItem()):s.index!==-1?this.activeIndex=s.index:s.auto!==-1&&(this.activeIndex=s.auto)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this.triggerActiveItem())}_evtPointerMove(e){let t=W.findFirstIndex(this.contentNode.children,n=>dt.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex)return;if(this.activeIndex=t,t=this.activeIndex,t===this._childIndex){this._cancelOpenTimer(),this._cancelCloseTimer();return}this._childIndex!==-1&&this._startCloseTimer(),this._cancelOpenTimer();let i=this.activeItem;!i||i.type!=="submenu"||!i.submenu||this._startOpenTimer()}_evtPointerEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu)t._cancelOpenTimer(),t._cancelCloseTimer(),t.activeIndex=t._childIndex}_evtPointerLeave(e){if(this._cancelOpenTimer(),!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:i}=e;if(dt.hitTest(this._childMenu.node,t,i)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtPointerDown(e){this._parentMenu||(wi.hitTestMenus(this,e.clientX,e.clientY)?(e.preventDefault(),e.stopPropagation()):this.close())}_openChildMenu(e=!1){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let i=t.submenu;if(i===this._childMenu)return;Si.saveWindowData(),this._closeChildMenu(),this._childMenu=i,this._childIndex=this._activeIndex,i._parentMenu=this,J.sendMessage(this,B.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];wi.openSubmenu(i,n),e&&(i.activeIndex=-1,i.activateNextItem()),i.activate()}_closeChildMenu(){this._childMenu&&this._childMenu.close()}_startOpenTimer(){this._openTimerID===0&&(this._openTimerID=window.setTimeout(()=>{this._openTimerID=0,this._openChildMenu()},wi.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},wi.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){wi.saveWindowData()}};(function(r){class e{renderItem(i){let n=this.createItemClass(i),s=this.createItemDataset(i),o=this.createItemARIA(i);return Ne.li({className:n,dataset:s,tabindex:"0",onfocus:i.onfocus,...o},this.renderIcon(i),this.renderLabel(i),this.renderShortcut(i),this.renderSubmenu(i))}renderIcon(i){let n=this.createIconClass(i);return Ne.div({className:n},i.item.icon,i.item.iconLabel)}renderLabel(i){let n=this.formatLabel(i);return Ne.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(i){let n=this.formatShortcut(i);return Ne.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(i){return Ne.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(i){let n="lm-Menu-item";i.item.isEnabled||(n+=" lm-mod-disabled"),i.item.isToggled&&(n+=" lm-mod-toggled"),i.item.isVisible||(n+=" lm-mod-hidden"),i.active&&(n+=" lm-mod-active"),i.c
10ollapsed&&(n+=" lm-mod-collapsed");let s=i.item.className;return s&&(n+=` ${s}`),n}createItemDataset(i){let n,{type:s,command:o,dataset:a}=i.item;return s==="command"?n={...a,type:s,command:o}:n={...a,type:s},n}createIconClass(i){let n="lm-Menu-itemIcon",s=i.item.iconClass;return s?`${n} ${s}`:n}createItemARIA(i){let n={};switch(i.item.type){case"separator":n.role="presentation";break;case"submenu":n["aria-haspopup"]="true",i.item.isEnabled||(n["aria-disabled"]="true");break;default:i.item.isEnabled||(n["aria-disabled"]="true"),i.item.isToggled?(n.role="menuitemcheckbox",n["aria-checked"]="true"):n.role="menuitem"}return n}formatLabel(i){let{label:n,mnemonic:s}=i.item;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],c=Ne.span({className:"lm-Menu-itemMnemonic"},l);return[o,c,a]}formatShortcut(i){let n=i.item.keyBinding;return n?Ai.formatKeystroke(n.keys):null}}r.Renderer=e,r.defaultRenderer=new e})(Si||(Si={}));(function(r){r.TIMER_DELAY=300,r.SUBMENU_OVERLAP=3;let e=null,t=0;function i(){return t>0?(t--,e):u()}function n(){e=u(),t++}r.saveWindowData=n;function s(){let b=document.createElement("div"),v=document.createElement("ul");return v.className="lm-Menu-content",b.appendChild(v),v.setAttribute("role","menu"),b.tabIndex=0,b}r.createNode=s;function o(b){return b.type!=="separator"&&b.isEnabled&&b.isVisible}r.canActivate=o;function a(b,v){return new g(b.commands,v)}r.createItem=a;function l(b,v,S){for(let k=b;k;k=k.childMenu)if(dt.hitTest(k.node,v,S))return!0;return!1}r.hitTestMenus=l;function c(b){let v=new Array(b.length);W.fill(v,!1);let S=0,k=b.length;for(;S<k;++S){let R=b[S];if(R.isVisible){if(R.type!=="separator")break;v[S]=!0}}let _=k-1;for(;_>=0;--_){let R=b[_];if(R.isVisible){if(R.type!=="separator")break;v[_]=!0}}let E=!1;for(;++S<_;){let R=b[S];R.isVisible&&(R.type!=="separator"?E=!1:E?v[S]=!0:E=!0)}return v}r.computeCollapsed=c;function u(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(b,v,S,k,_,E,R,P){let T=i(),O=T.pageXOffset,I=T.pageYOffset,A=T.clientWidth,D=T.clientHeight;J.sendMessage(b,B.Msg.UpdateRequest);let V=D-(_?S:0),Z=b.node,we=Z.style;we.opacity="0",we.maxHeight=`${V}px`,B.attach(b,R||document.body,P);let{width:q,height:se}=Z.getBoundingClientRect();E==="right"&&(v-=q),!k&&v+q>O+A&&(v=O+A-q),!_&&S+se>I+D&&(S>I+D?S=I+D-se:S=S-se),we.transform=`translate(${Math.max(0,v)}px, ${Math.max(0,S)}px`,we.opacity="1"}r.openRootMenu=d;function f(b,v){let S=i(),k=S.pageXOffset,_=S.pageYOffset,E=S.clientWidth,R=S.clientHeight;J.sendMessage(b,B.Msg.UpdateRequest);let P=R,T=b.node,O=T.style;O.opacity="0",O.maxHeight=`${P}px`,B.attach(b,document.body);let{width:I,height:A}=T.getBoundingClientRect(),D=dt.boxSizing(b.node),V=v.getBoundingClientRect(),Z=V.right-r.SUBMENU_OVERLAP;Z+I>k+E&&(Z=V.left+r.SUBMENU_OVERLAP-I);let we=V.top-D.borderTop-D.paddingTop;we+A>_+R&&(we=V.bottom+D.borderBottom+D.paddingBottom-A),O.transform=`translate(${Math.max(0,Z)}px, ${Math.max(0,we)}px`,O.opacity="1"}r.openSubmenu=f;function m(b,v,S){let k=-1,_=-1,E=!1,R=v.toUpperCase();for(let P=0,T=b.length;P<T;++P){let O=(P+S)%T,I=b[O];if(!o(I))continue;let A=I.label;if(A.length===0)continue;let D=I.mnemonic;if(D>=0&&D<A.length){A[D].toUpperCase()===R&&(k===-1?k=O:E=!0);continue}_===-1&&A[0].toUpperCase()===R&&(_=O)}return{index:k,multiple:E,auto:_}}r.findMnemonic=m;class g{constructor(v,S){this._commands=v,this.type=S.type||"command",this.command=S.command||"",this.args=S.args||fo.JSONExt.emptyObject,this.submenu=S.submenu||null}get label(){return this.type==="command"?this._commands.label(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.label:""}get mnemonic(){return this.type==="command"?this._commands.mnemonic(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.mnemonic:-1}get icon(){if(this.type==="command")return this._commands.icon(this.command,this.args);if(this.type==="submenu"&&this.submenu)return this.submenu.title.icon}get iconClass(){return this.type==="command"?this._commands.iconClass(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconClass:""}get iconLabel(){return this.type==="command"?this._commands.iconLabel(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconLabel:""}get caption(){return this.type==="command"?this._commands.caption(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.caption:""}get className(){return this.type==="command"?this._commands.className(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.className:""}get dataset(){return this.type==="command"?this._commands.dataset(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.dataset:{}}get isEnabled(){return this.type==="command"?this._commands.isEnabled(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}get isToggled(){return this.type==="command"?this._commands.isToggled(this.command,this.args):!1}get isVisible(){return this.type==="command"?this._commands.isVisible(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}
10get keyBinding(){if(this.type==="command"){let{command:v,args:S}=this;return W.findLastValue(this._commands.keyBindings,k=>k.command===v&&fo.JSONExt.deepEqual(k.args,S))||null}return null}}})(wi||(wi={}));(function(r){function e(o,a){let l=i(o.selector),c=o.rank!==void 0?o.rank:1/0;return{...o,selector:l,rank:c,id:a}}r.createItem=e;function t(o,a,l,c){let u=a.target;if(!u)return null;let d=a.currentTarget;if(!d||!d.contains(u)&&(u=document.elementFromPoint(a.clientX,a.clientY),!u||!d.contains(u)))return null;let f=[],m=o.slice();for(;u!==null;){let g=[];for(let b=0,v=m.length;b<v;++b){let S=m[b];S&&Jn.matches(u,S.selector)&&(g.push(S),m[b]=null)}if(g.length!==0&&(l&&g.sort(c?s:n),f.push(...g)),u===d)break;u=u.parentElement}return l||f.sort(c?s:n),f}r.matchItems=t;function i(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!Jn.isValid(o))throw new Error(`Invalid selector: ${o}`);return o}function n(o,a){let l=o.rank,c=a.rank;return l!==c?l<c?-1:1:o.id-a.id}function s(o,a){let l=Jn.calculateSpecificity(o.selector),c=Jn.calculateSpecificity(a.selector);return l!==c?c-l:n(o,a)}})(LR||(LR={}));Zse=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],Oi=class extends B{constructor(e={}){super({node:In.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._tabSizeFrozen=!1,this._frozenTabWidths=null,this._unfreezeRunID=0,this._unfreezeFallbackTimerID=0,this._unfreezeTransitionListener=null,this._addButtonEnabled=!1,this._tabMoved=new te(this),this._currentChanged=new te(this),this._addRequested=new te(this),this._tabCloseRequested=new te(this),this._tabDetachRequested=new te(this),this._tabActivateRequested=new te(this),this.addClass("lm-TabBar"),this.contentNode.setAttribute("role","tablist"),this.setFlag(B.Flag.DisallowLayout),this._document=e.document||document,this.tabsMovable=e.tabsMovable||!1,this.titlesEditable=e.titlesEditable||!1,this.allowDeselect=e.allowDeselect||!1,this.addButtonEnabled=e.addButtonEnabled||!1,this.insertBehavior=e.insertBehavior||"select-tab-if-needed",this.name=e.name||"",this.orientation=e.orientation||"horizontal",this.removeBehavior=e.removeBehavior||"select-tab-after",this.renderer=e.renderer||Oi.defaultRenderer}dispose(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,super.dispose()}get currentChanged(){return this._currentChanged}get tabMoved(){return this._tabMoved}get tabActivateRequested(){return this._tabActivateRequested}get addRequested(){return this._addRequested}get tabCloseRequested(){return this._tabCloseRequested}get tabDetachRequested(){return this._tabDetachRequested}get document(){return this._document}get titlesEditable(){return this._titlesEditable}set titlesEditable(e){this._titlesEditable=e}get currentTitle(){return this._titles[this._currentIndex]||null}set currentTitle(e){this.currentIndex=e?this._titles.indexOf(e):-1}get currentIndex(){return this._currentIndex}set currentIndex(e){if((e<0||e>=this._titles.length)&&(e=-1),this._currentIndex===e)return;let t=this._currentIndex,i=this._titles[t]||null,n=e,s=this._titles[n]||null;this._currentIndex=n,this._previousTitle=i,this.update(),this._currentChanged.emit({previousIndex:t,previousTitle:i,currentIndex:n,currentTitle:s})}get name(){return this._name}set name(e){this._name=e,e?this.contentNode.setAttribute("aria-label",e):this.contentNode.removeAttribute("aria-label")}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._releaseMouse(),this._orientation=e,this.dataset.orientation=e,this.contentNode.setAttribute("aria-orientation",e))}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled!==e&&(this._addButtonEnabled=e,e?this.addButtonNode.classList.remove("lm-mod-hidden"):this.addButtonNode.classList.add("lm-mod-hidden"))}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let i=In.asTitle(t),n=this._titles.indexOf(i),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(W.insert(this._titles,s,i),i.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(s,i),i):(s===this._titles.length&&s--,n===s||(W.move(this._titles,n,s),this.update(),this._adjustCurrentForMove(n,s)),i)}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){let t=e>=0&&e<this._titles.length;if(this._tabSizeFrozen)if(t){let n=this.contentNode.children;this._frozenTabWidths=[];for(let s=0,o=n.length;s<o;++s)s!==e&&this._frozenTabWidths.push(n[s].offsetWidth)}else this._frozenTabWidths=null;this._releaseMouse();let i=W.removeAt(this._titles,e);i&&(i.changed.disconnect(this._onTitleChanged,this),i===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(e,i))}clearTabs(){if(this._titles.length===0)return;this._releaseMouse();for(let i of this._titles)i.changed.disconnect(this._onTitleChanged,this);let e=this.currentIndex,t=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),e!==-1&&this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
10currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"pointerleave":this._evtPointerLeave(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this),this.node.addEventListener("pointerleave",this),this.node.addEventListener("dblclick",this),this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this.node.removeEventListener("pointerleave",this),this.node.removeEventListener("dblclick",this),this.node.removeEventListener("keydown",this),this._clearUnfreezeTransitionState(),this._clearTabSizeFreezeState(),this._releaseMouse()}onUpdateRequest(e){var t;let i=this._titles,n=this.renderer,s=this.currentTitle,o=new Array(i.length),a=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let l=0,c=i.length;l<c;++l){let u=i[l],d=u===s,f=d?c:c-l-1,m=a===l?0:-1;o[l]=n.renderTab({title:u,current:d,zIndex:f,tabIndex:m})}if(As.render(o,this.contentNode),this._tabSizeFrozen){let l=this.contentNode.children;if(this._frozenTabWidths&&this._frozenTabWidths.length===l.length){for(let c=0,u=l.length;c<u;++c)this._setFrozenTabSize(l[c],this._frozenTabWidths[c]);this._frozenTabWidths=null}else{this._frozenTabWidths=null;for(let c=0,u=l.length;c<u;++c){let d=l[c];this._setFrozenTabSize(d,d.offsetWidth)}}}}_getCurrentTabindex(){let e=null,t=this.contentNode.querySelector('li[tabindex="0"]');return t?e=[...this.contentNode.children].indexOf(t):this._addButtonEnabled&&this.addButtonNode.getAttribute("tabindex")==="0"&&(e=-1),e}_evtDblClick(e){if(!this.titlesEditable)return;let t=this.contentNode.children,i=W.findFirstIndex(t,o=>dt.hitTest(o,e.clientX,e.clientY));if(i===-1)return;let n=this.titles[i],s=t[i].querySelector(".lm-TabBar-tabLabel");if(s&&s.contains(e.target)){let o=n.label||"",a=s.innerHTML;s.innerHTML="";let l=document.createElement("input");l.classList.add("lm-TabBar-tabInput"),l.value=o,s.appendChild(l);let c=()=>{l.removeEventListener("blur",c),s.innerHTML=a,this.node.addEventListener("keydown",this)};l.addEventListener("dblclick",u=>u.stopPropagation()),l.addEventListener("blur",c),l.addEventListener("keydown",u=>{u.key==="Enter"?(l.value!==""&&(n.label=n.caption=l.value),c()):u.key==="Escape"&&c()}),this.node.removeEventListener("keydown",this),l.select(),l.focus(),s.children.length>0&&s.children[0].focus()}}_evtKeyDownCapturing(e){e.eventPhase===Event.CAPTURING_PHASE&&(e.preventDefault(),e.stopPropagation(),e.key==="Escape"&&this._releaseMouse())}_evtKeyDown(e){var t,i,n;if(!(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE)){if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){let s=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(s))e.preventDefault(),e.stopPropagation(),this._addRequested.emit();else{let o=W.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if(Zse.includes(e.key)){let s=[...this.contentNode.children];if(this.addButtonEnabled&&s.push(this.addButtonNode),s.length<=1)return;e.preventDefault(),e.stopPropagation();let o=s.indexOf(document.activeElement);o===-1&&(o=this._currentIndex);let a;e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"?a=(t=s[o+1])!==null&&t!==void 0?t:s[0]:e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"?a=(i=s[o-1])!==null&&i!==void 0?i:s[s.length-1]:e.key==="Home"?a=s[0]:e.key==="End"&&(a=s[s.length-1]),a&&((n=s[o])===null||n===void 0||n.setAttribute("tabindex","-1"),a?.setAttribute("tabindex","0"),a.focus())}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1||this._dragData||e.target.classList.contains("lm-TabBar-tabInput"))return;let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target),i=this.contentNode.children,n=W.findFirstIndex(i,o=>dt.hitTest(o,e.clientX,e.clientY));if(n===-1&&!t||(e.preventDefault(),e.stopPropagation(),this._dragData={tab:i[n],index:n,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1}
10,this.document.addEventListener("pointerup",this,!0),e.button===1||t))return;let s=i[n].querySelector(this.renderer.closeIconSelector);s&&s.contains(e.target)||(this.tabsMovable&&(this.document.addEventListener("pointermove",this,!0),this.document.addEventListener("keydown",this,!0),this.document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,this.currentIndex!==-1&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}_evtPointerMove(e){let t=this._dragData;if(!t)return;e.preventDefault(),e.stopPropagation();let i=this.contentNode.children;if(!(!t.dragActive&&!In.dragExceeded(t,e))){if(!t.dragActive){let n=t.tab.getBoundingClientRect();this._orientation==="horizontal"?(t.tabPos=t.tab.offsetLeft,t.tabSize=n.width,t.tabPressPos=t.pressX-n.left):(t.tabPos=t.tab.offsetTop,t.tabSize=n.height,t.tabPressPos=t.pressY-n.top),t.tabPressOffset={x:t.pressX-n.left,y:t.pressY-n.top},t.tabLayout=In.snapTabLayout(i,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=lr.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&In.detachExceeded(t,e)){t.detachRequested=!0;let n=t.index,s=e.clientX,o=e.clientY,a=i[n],l=this._titles[n];if(this._tabDetachRequested.emit({index:n,title:l,tab:a,clientX:s,clientY:o,offset:t.tabPressOffset}),t.dragAborted)return}In.layoutTabs(i,t,e,this._orientation)}}_evtPointerUp(e){if(e.button!==0&&e.button!==1)return;let t=this._dragData;if(!t)return;if(e.preventDefault(),e.stopPropagation(),this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),!t.dragActive){if(this._dragData=null,this.addButtonEnabled&&this.addButtonNode.contains(e.target)){this._addRequested.emit(void 0);return}let s=this.contentNode.children,o=W.findFirstIndex(s,c=>dt.hitTest(c,e.clientX,e.clientY));if(o!==t.index)return;let a=this._titles[o];if(!a.closable)return;if(e.button===1){this._tabCloseRequested.emit({index:o,title:a});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabSizeFrozen=!0,this._tabCloseRequested.emit({index:o,title:a});return}return}if(e.button!==0)return;In.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let i=In.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,In.resetTabPositions(this.contentNode.children,this._orientation),t.override.dispose(),this.removeClass("lm-mod-dragging");let n=t.index,s=t.targetIndex;s===-1||n===s||(W.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),J.sendMessage(this,B.Msg.UpdateRequest))},i)}_releaseMouse(){let e=this._dragData;e&&(this._dragData=null,this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(In.resetTabPositions(this.contentNode.children,this._orientation),e.override.dispose(),e.tab.classList.remove("lm-mod-dragging"),this.removeClass("lm-mod-dragging")))}_adjustCurrentForInsert(e,t){let i=this.currentTitle,n=this._currentIndex,s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&n===-1){this._currentIndex=e,this._previousTitle=i,this._currentChanged.emit({previousIndex:n,previousTitle:i,currentIndex:e,currentTitle:t});return}n>=e&&this._currentIndex++}_adjustCurrentForMove(e,t){this._currentIndex===e?this._currentIndex=t:this._currentIndex<e&&this._currentIndex>=t?this._currentIndex++:this._currentIndex>e&&this._currentIndex<=t&&this._currentIndex--}_adjustCurrentForRemove(e,t){let i=this._currentIndex,n=this.removeBehavior;if(i!==e){i>e&&this._currentIndex--;return}if(this._titles.length===0){this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
10currentTitle:null});return}if(n==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-tab-before"){this._currentIndex=Math.max(0,e-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-previous-tab"){this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}_onTitleChanged(e){this.update()}_evtPointerLeave(e){if(!this._tabSizeFrozen)return;this._tabSizeFrozen=!1,this._frozenTabWidths=null,this._unfreezeRunID++;let t=this._unfreezeRunID;this._clearUnfreezeTransitionState(),this.addClass("lm-mod-unfreezing");let i=this.contentNode.children;for(let n=0,s=i.length;n<s;++n){let o=i[n];o.style.width="",o.style.flexBasis=""}if(i.length===0)this.removeClass("lm-mod-unfreezing");else{let n=s=>{let o=s.propertyName;(o==="width"||o==="flex-basis")&&this._finalizeUnfreezeRun(t)};this._unfreezeTransitionListener=n,this.node.addEventListener("transitionend",n),this.node.addEventListener("transitioncancel",n),this._unfreezeFallbackTimerID=window.setTimeout(()=>{this._finalizeUnfreezeRun(t)},2e3)}this.update()}_setFrozenTabSize(e,t){let i=`${t}px`;e.style.width=i,e.style.flexBasis=i}_finalizeUnfreezeRun(e){e===this._unfreezeRunID&&(this._clearUnfreezeTransitionState(),this.removeClass("lm-mod-unfreezing"))}_clearUnfreezeTransitionState(){this._unfreezeTransitionListener&&(this.node.removeEventListener("transitionend",this._unfreezeTransitionListener),this.node.removeEventListener("transitioncancel",this._unfreezeTransitionListener),this._unfreezeTransitionListener=null),this._unfreezeFallbackTimerID!==0&&(clearTimeout(this._unfreezeFallbackTimerID),this._unfreezeFallbackTimerID=0)}_clearTabSizeFreezeState(){this._tabSizeFrozen=!1,this._frozenTabWidths=null,this.removeClass("lm-mod-unfreezing");let e=this.contentNode.children;for(let t=0,i=e.length;t<i;++t){let n=e[t];n.style.width="",n.style.flexBasis=""}}};(function(r){class e{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap,this._uuid=++e._nInstance}renderTab(i){let n=i.title.caption,s=this.createTabKey(i),o=s,a=this.createTabStyle(i),l=this.createTabClass(i),c=this.createTabDataset(i),u=this.createTabARIA(i);return i.title.closable?Ne.li({id:o,key:s,className:l,title:n,style:a,dataset:c,...u},this.renderIcon(i),this.renderLabel(i),this.renderCloseIcon(i)):Ne.li({id:o,key:s,className:l,title:n,style:a,dataset:c,...u},this.renderIcon(i),this.renderLabel(i))}renderIcon(i){let{title:n}=i,s=this.createIconClass(i);return Ne.div({className:s},n.icon,n.iconLabel)}renderLabel(i){return Ne.div({className:"lm-TabBar-tabLabel"},i.title.label)}renderCloseIcon(i){return Ne.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(i){let n=this._tabKeys.get(i.title);return n===void 0&&(n=`tab-key-${this._uuid}-${this._tabID++}`,this._tabKeys.set(i.title,n)),n}createTabStyle(i){return{zIndex:`${i.zIndex}`}}createTabClass(i){let n="lm-TabBar-tab";return i.title.className&&(n+=` ${i.title.className}`),i.title.closable&&(n+=" lm-mod-closable"),i.current&&(n+=" lm-mod-current"),n}createTabDataset(i){return i.title.dataset}createTabARIA(i){var n;return{role:"tab","aria-selected":i.current.toString(),tabindex:`${(n=i.tabIndex)!==null&&n!==void 0?n:"-1"}`}}createIconClass(i){let n="lm-TabBar-tabIcon",s=i.title.iconClass;return s?`${n} ${s}`:n}}e._nInstance=0,r.Renderer=e,r.defaultRenderer=new e,r.addButtonSelector=".lm-TabBar-addButton"})(Oi||(Oi={}));(function(r){r.DRAG_THRESHOLD=5,r.DETACH_THRESHOLD=20;function e(){let u=document.createElement("div"),d=document.createElement("ul");d.setAttribute("role","tablist"),d.className="lm-TabBar-content",u.appendChild(d);let f=document.createElement("div");return f.className="lm-TabBar-addButton lm-mod-hidden",f.setAttribute("tabindex","-1"),f.setAttribute("role","button"),u.appendChild(f),u}r.createNode=e;function t(u){return u instanceof vh?u:new vh(u)}r.asTitle=t;function i(u){let d=window.getComputedStyle(u);return 1e3*(parseFloat(d.transitionDuration)||0)}r.parseTransitionDuration=i;function n(u,d){let f=new Array(u.length);for(let m=0,g=u.length;m<g;++m){let b=u[m],v=window.getComputedStyle(b);d==="horizontal"?f[m]={pos:b.offsetLeft,size:b.offsetWidth,margin:parseFloat(v.marginLeft)||0}:f[m]={pos:b.offsetTop,size:b.offsetHeight,margin:parseFloat(v.marginTop)||0}}return f}r.snapTabLayout=n;function s(u,d){let f=Math.abs(d.clientX-u.pressX),m=Math.abs(d.clientY-u.pressY);return f>=r.DRAG_THRESHOLD||m>=r.DRAG_THRESHOLD}r.dragExceeded=s;function o(u,d){let f=u.contentRect;return d.clientX<f.left-r.DETACH_THRESHOLD||d.clientX>=f.right+r.DETACH_THRESHOLD||d.clientY<f.top-r.DETACH_THRESHOLD||d.clientY>=f.bottom+r.DETACH_THRESHOLD}r.detachExceeded=o;function a(u,d,f,m){let g,b,v,S;m==="horizontal"?(g=d.pressX,b=f.clientX-d.contentRect.left,v=f.clientX,S=d.contentRect.width):(g=d.pressY,b=f.clientY-d.contentRect.top,v=f.clientY,S=d.contentRect.height);let k=d.index,_=b-d.tabPressPos,E=_+d.tabSize;
10for(let R=0,P=u.length;R<P;++R){let T,O=d.tabLayout[R],I=O.pos+(O.size>>1);if(R<d.index&&_<I)T=`${d.tabSize+d.tabLayout[R+1].margin}px`,k=Math.min(k,R);else if(R>d.index&&E>I)T=`${-d.tabSize-O.margin}px`,k=Math.max(k,R);else if(R===d.index){let A=v-g,D=S-(d.tabPos+d.tabSize);T=`${Math.max(-d.tabPos,Math.min(A,D))}px`}else T="";m==="horizontal"?u[R].style.left=T:u[R].style.top=T}d.targetIndex=k}r.layoutTabs=a;function l(u,d){let f;d==="horizontal"?f=u.contentRect.width:f=u.contentRect.height;let m;if(u.targetIndex===u.index)m=0;else if(u.targetIndex>u.index){let v=u.tabLayout[u.targetIndex];m=v.pos+v.size-u.tabSize-u.tabPos}else m=u.tabLayout[u.targetIndex].pos-u.tabPos;let g=f-(u.tabPos+u.tabSize),b=Math.max(-u.tabPos,Math.min(m,g));d==="horizontal"?u.tab.style.left=`${b}px`:u.tab.style.top=`${b}px`}r.finalizeTabPosition=l;function c(u,d){for(let f of u)d==="horizontal"?f.style.left="":f.style.top=""}r.resetTabPositions=c})(In||(In={}));Cy=class extends Os{constructor(e){super(),this._spacing=4,this._dirty=!1,this._root=null,this._box=null,this._items=new Map,this.renderer=e.renderer,e.spacing!==void 0&&(this._spacing=xh.clampDimension(e.spacing)),this._document=e.document||document,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:B.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();this._items.forEach(t=>{t.dispose()}),this._box=null,this._root=null,this._items.clear();for(let t of e)t.dispose();super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode!==e){this._hiddenMode=e;for(let t of this.tabBars())if(t.titles.length>1)for(let i of t.titles)i.owner.hiddenMode=this._hiddenMode}}get spacing(){return this._spacing}set spacing(e){e=xh.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():Ql()}widgets(){return this._root?this._root.iterUserWidgets():Ql()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Ql()}tabBars(){return this._root?this._root.iterTabBars():Ql()}handles(){return this._root?this._root.iterHandles():Ql()}moveHandle(e,t,i){let n=e.classList.contains("lm-mod-hidden");if(!this._root||n)return;let s=this._root.findSplitNode(e);if(!s)return;let o;s.node.orientation==="horizontal"?o=t-e.offsetLeft:o=i-e.offsetTop,o!==0&&(s.node.holdSizes(),nn.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update())}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,i;e.main?i=tr.normalizeAreaConfig(e.main,t):i=null;let n=this.widgets(),s=this.tabBars(),o=this.handles();this._root=null;for(let a of n)t.has(a)||(a.parent=null);for(let a of s)a.dispose();for(let a of o)a.parentNode&&a.parentNode.removeChild(a);for(let a of t)a.parent=this.parent;i?this._root=tr.realizeAreaConfig(i,{createTabBar:a=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document):this._root=null,this.parent&&(t.forEach(a=>{this.attachWidget(a)}),this.parent.fit())}addWidget(e,t={}){let i=t.ref||null,n=t.mode||"tab-after",s=null;if(this._root&&i&&(s=this._root.findTabNode(i)),i&&!s)throw new Error("Reference widget is not in the layout.");switch(e.parent=this.parent,n){case"tab-after":this._insertTab(e,i,s,!0);break;case"tab-before":this._insertTab(e,i,s,!1);break;case"split-top":this._insertSplit(e,i,s,"vertical",!1);break;case"split-left":this._insertSplit(e,i,s,"horizontal",!1);break;case"split-right":this._insertSplit(e,i,s,"horizontal",!0);break;case"split-bottom":this._insertSplit(e,i,s,"vertical",!0);break;case"merge-top":this._insertSplit(e,i,s,"vertical",!1,!0);break;case"merge-left":this._insertSplit(e,i,s,"horizontal",!1,!0);break;case"merge-right":this._insertSplit(e,i,s,"horizontal",!0,!0);break;case"merge-bottom":this._insertSplit(e,i,s,"vertical",!0,!0);break}this.parent&&(this.attachWidget(e),this.parent.fit())}removeWidget(e){this._removeWidget(e),this.parent&&(this.detachWidget(e),this.parent.fit())}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=dt.boxSizing(this.parent.node));let i=this.parent.node.getBoundingClientRect(),n=e-i.left-this._box.borderLeft,s=t-i.top-this._box.borderTop,o=this._root.hitTestTabNodes(n,s);if(!o)return null;let{tabBar:a,top:l,left:c,width:u,height:d}=o,f=this._box.borderLeft+this._box.borderRight,m=this._box.borderTop+this._box.borderBottom,g=i.width-f-(c+u),b=i.height-m-(l+d);return{tabBar:a,x:n,y:s,top:l,left:c,right:g,bottom:b,width:u,height:d}}init(){super.init();for(let e of this)this.attachWidget(e);for(let e of this.handles())this.parent.node.appendChild(e);this.parent.fit()}attachWidget(e){this.parent.node!==e.node.parentNode&&(this._items.set(e,new dc(e)),this.parent.isAttached&&J.sendMessage(e,B.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&J.sendMessage(e,B.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&J.sendMessage(e,B.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&J.sendMessage(e,B.Msg.AfterDetach);let t=this._items.get(e);t&&(this._items.delete(e),t.dispose())}
10onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_removeWidget(e){if(!this._root)return;let t=this._root.findTabNode(e);if(!t)return;if(tr.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===B.HiddenMode.Scale&&t.tabBar.titles.length==1){let f=t.tabBar.titles[0].owner;f.hiddenMode=B.HiddenMode.Display}return}if(t.tabBar.dispose(),this._root===t){this._root=null;return}this._root.holdAllSizes();let i=t.parent;t.parent=null;let n=W.removeFirstOf(i.children,t),s=W.removeAt(i.handles,n);if(W.removeAt(i.sizers,n),s.parentNode&&s.parentNode.removeChild(s),i.children.length>1){i.syncHandles();return}let o=i.parent;i.parent=null;let a=i.children[0],l=i.handles[0];if(i.children.length=0,i.handles.length=0,i.sizers.length=0,l.parentNode&&l.parentNode.removeChild(l),this._root===i){a.parent=null,this._root=a;return}let c=o,u=c.children.indexOf(i);if(a instanceof tr.TabLayoutNode){a.parent=c,c.children[u]=a;return}let d=W.removeAt(c.handles,u);W.removeAt(c.children,u),W.removeAt(c.sizers,u),d.parentNode&&d.parentNode.removeChild(d);for(let f=0,m=a.children.length;f<m;++f){let g=a.children[f],b=a.handles[f],v=a.sizers[f];W.insert(c.children,u+f,g),W.insert(c.handles,u+f,b),W.insert(c.sizers,u+f,v),g.parent=c}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,c.syncHandles()}_createTabNode(e){let t=new tr.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),tr.addAria(e,t.tabBar),t}_insertTab(e,t,i,n){if(e===t)return;if(!this._root){let o=new tr.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,tr.addAria(e,o.tabBar);return}i||(i=this._root.findFirstTabNode()),i.tabBar.titles.indexOf(e.title)===-1&&(this._removeWidget(e),e.hide());let s;
10if(t?s=i.tabBar.titles.indexOf(t.title):s=i.tabBar.currentIndex,this._hiddenMode===B.HiddenMode.Scale)if(i.tabBar.titles.length===0)e.hiddenMode=B.HiddenMode.Display;else if(i.tabBar.titles.length==1){let o=i.tabBar.titles[0].owner;o.hiddenMode=B.HiddenMode.Scale}else e.hiddenMode=B.HiddenMode.Scale;else e.hiddenMode=this._hiddenMode;i.tabBar.insertTab(s+(n?1:0),e.title),tr.addAria(e,i.tabBar)}_insertSplit(e,t,i,n,s,o=!1){if(e===t&&i&&i.tabBar.titles.length===1)return;if(this._removeWidget(e),!this._root){this._root=this._createTabNode(e);return}if(!i||!i.parent){let f=this._splitRoot(n),m=s?f.children.length:0;f.normalizeSizes();let g=tr.createSizer(i?1:tr.GOLDEN_RATIO),b=this._createTabNode(e);W.insert(f.children,m,b),W.insert(f.sizers,m,g),W.insert(f.handles,m,this._createHandle()),b.parent=f,f.normalizeSizes(),f.syncHandles();return}let a=i.parent;if(a.orientation===n){let f=a.children.indexOf(i);if(o){let v=f+(s?1:-1),S=a.children[v];if(S instanceof tr.TabLayoutNode){this._insertTab(e,null,S,!0),++S.tabBar.currentIndex;return}}a.normalizeSizes();let m=a.sizers[f].sizeHint/=2,g=f+(s?1:0),b=this._createTabNode(e);W.insert(a.children,g,b),W.insert(a.sizers,g,tr.createSizer(m)),W.insert(a.handles,g,this._createHandle()),b.parent=a,a.syncHandles();return}let l=W.removeFirstOf(a.children,i),c=new tr.SplitLayoutNode(n);c.normalized=!0,c.children.push(i),c.sizers.push(tr.createSizer(.5)),c.handles.push(this._createHandle()),i.parent=c;let u=s?1:0,d=this._createTabNode(e);W.insert(c.children,u,d),W.insert(c.sizers,u,tr.createSizer(.5)),W.insert(c.handles,u,this._createHandle()),d.parent=c,c.syncHandles(),W.insert(a.children,l,c),c.parent=a}_splitRoot(e){let t=this._root;if(t instanceof tr.SplitLayoutNode&&t.orientation===e)return t;let i=this._root=new tr.SplitLayoutNode(e);return t&&(i.children.push(t),i.sizers.push(tr.createSizer(0)),i.handles.push(this._createHandle()),t.parent=i),i}_fit(){let e=0,t=0;if(this._root){let s=this._root.fit(this._spacing,this._items);e=s.minWidth,t=s.minHeight}let i=this._box=dt.boxSizing(this.parent.node);e+=i.horizontalSum,t+=i.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&J.sendMessage(this.parent.parent,B.Msg.FitRequest),this._dirty&&J.sendMessage(this.parent,B.Msg.UpdateRequest)}_update(e,t){if(this._dirty=!1,!this._root)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=dt.boxSizing(this.parent.node));let i=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum;this._root.update(i,n,s,o,this._spacing,this._items)}_createTabBar(){let e=this.renderer.createTabBar(this._document);return e.orientation="horizontal",this.parent&&this.attachWidget(e),e}_createHandle(){let e=this.renderer.createHandle(),t=e.style;return t.position="absolute",t.contain="strict",t.top="0",t.left="0",t.width="0",t.height="0",this.parent&&this.parent.node.appendChild(e),e}};(function(r){r.GOLDEN_RATIO=.618;function e(f){let m=new Rs;return m.sizeHint=f,m.size=f,m}r.createSizer=e;function t(f,m){let g;return f.type==="tab-area"?g=l(f,m):g=c(f,m),g}r.normalizeAreaConfig=t;function i(f,m,g){let b;return f.type==="tab-area"?b=u(f,m,g):b=d(f,m,g),b}r.realizeAreaConfig=i;class n{constructor(m){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let g=new Rs,b=new Rs;g.stretch=0,b.stretch=1,this.tabBar=m,this.sizers=[g,b]}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}*iterAllWidgets(){yield this.tabBar,yield*this.iterUserWidgets()}*iterUserWidgets(){for(let m of this.tabBar.titles)yield m.owner}*iterSelectedWidgets(){let m=this.tabBar.currentTitle;m&&(yield m.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(m){return this.tabBar.titles.indexOf(m.title)!==-1?this:null}findSplitNode(m){return null}findFirstTabNode(){return this}hitTestTabNodes(m,g){return m<this._left||m>=this._left+this._width||g<this._top||g>=this._top+this._height?null:this}
10createConfig(){let m=this.tabBar.titles.map(b=>b.owner),g=this.tabBar.currentIndex;return{type:"tab-area",widgets:m,currentIndex:g}}holdAllSizes(){}fit(m,g){let b=0,v=0,S=1/0,k=1/0,_=g.get(this.tabBar),E=this.tabBar.currentTitle,R=E?g.get(E.owner):void 0,[P,T]=this.sizers;return _&&_.fit(),R&&R.fit(),_&&!_.isHidden?(b=Math.max(b,_.minWidth),v+=_.minHeight,P.minSize=_.minHeight,P.maxSize=_.maxHeight):(P.minSize=0,P.maxSize=0),R&&!R.isHidden?(b=Math.max(b,R.minWidth),v+=R.minHeight,T.minSize=R.minHeight,T.maxSize=1/0):(T.minSize=0,T.maxSize=1/0),{minWidth:b,minHeight:v,maxWidth:S,maxHeight:k}}update(m,g,b,v,S,k){this._top=g,this._left=m,this._width=b,this._height=v;let _=k.get(this.tabBar),E=this.tabBar.currentTitle,R=E?k.get(E.owner):void 0;if(nn.calc(this.sizers,v),_&&!_.isHidden){let P=this.sizers[0].size;_.update(m,g,b,P),g+=P}if(R&&!R.isHidden){let P=this.sizers[1].size;R.update(m,g,b,P)}}}r.TabLayoutNode=n;class s{constructor(m){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=m}*iterAllWidgets(){for(let m of this.children)yield*m.iterAllWidgets()}*iterUserWidgets(){for(let m of this.children)yield*m.iterUserWidgets()}*iterSelectedWidgets(){for(let m of this.children)yield*m.iterSelectedWidgets()}*iterTabBars(){for(let m of this.children)yield*m.iterTabBars()}*iterHandles(){yield*this.handles;for(let m of this.children)yield*m.iterHandles()}findTabNode(m){for(let g=0,b=this.children.length;g<b;++g){let v=this.children[g].findTabNode(m);if(v)return v}return null}findSplitNode(m){let g=this.handles.indexOf(m);if(g!==-1)return{index:g,node:this};for(let b=0,v=this.children.length;b<v;++b){let S=this.children[b].findSplitNode(m);if(S)return S}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(m,g){for(let b=0,v=this.children.length;b<v;++b){let S=this.children[b].hitTestTabNodes(m,g);if(S)return S}return null}createConfig(){let m=this.orientation,g=this.createNormalizedSizes(),b=this.children.map(v=>v.createConfig());return{type:"split-area",orientation:m,children:b,sizes:g}}syncHandles(){this.handles.forEach((m,g)=>{m.setAttribute("data-orientation",this.orientation),g===this.handles.length-1?m.classList.add("lm-mod-hidden"):m.classList.remove("lm-mod-hidden")})}holdSizes(){for(let m of this.sizers)m.sizeHint=m.size}holdAllSizes(){for(let m of this.children)m.holdAllSizes();this.holdSizes()}normalizeSizes(){let m=this.sizers.length;if(m===0)return;this.holdSizes();let g=this.sizers.reduce((b,v)=>b+v.sizeHint,0);if(g===0)for(let b of this.sizers)b.size=b.sizeHint=1/m;else for(let b of this.sizers)b.size=b.sizeHint/=g;this.normalized=!0}createNormalizedSizes(){let m=this.sizers.length;if(m===0)return[];let g=this.sizers.map(v=>v.size),b=g.reduce((v,S)=>v+S,0);if(b===0)for(let v=g.length-1;v>-1;v--)g[v]=1/m;else for(let v=g.length-1;v>-1;v--)g[v]/=b;return g}fit(m,g){let b=this.orientation==="horizontal",v=Math.max(0,this.children.length-1)*m,S=b?v:0,k=b?0:v,_=1/0,E=1/0;for(let R=0,P=this.children.length;R<P;++R){let T=this.children[R].fit(m,g);b?(k=Math.max(k,T.minHeight),S+=T.minWidth,this.sizers[R].minSize=T.minWidth):(S=Math.max(S,T.minWidth),k+=T.minHeight,this.sizers[R].minSize=T.minHeight)}return{minWidth:S,minHeight:k,maxWidth:_,maxHeight:E}}update(m,g,b,v,S,k){let _=this.orientation==="horizontal",E=Math.max(0,this.children.length-1)*S,R=Math.max(0,(_?b:v)-E);if(this.normalized){for(let P of this.sizers)P.sizeHint*=R;this.normalized=!1}nn.calc(this.sizers,R);for(let P=0,T=this.children.length;P<T;++P){let O=this.children[P],I=this.sizers[P].size,A=this.handles[P].style;_?(O.update(m,g,I,v,S,k),m+=I,A.top=`${g}px`,A.left=`${m}px`,A.width=`${S}px`,A.height=`${v}px`,m+=S):(O.update(m,g,b,I,S,k),g+=I,A.top=`${g}px`,A.left=`${m}px`,A.width=`${b}px`,A.height=`${S}px`,g+=S)}}}r.SplitLayoutNode=s;function o(f,m){f.node.setAttribute("role","tabpanel");let g=m.renderer;if(g instanceof Oi.Renderer){let b=g.createTabKey({title:f.title,current:!1,zIndex:0});f.node.setAttribute("aria-labelledby",b)}}r.addAria=o;function a(f){f.node.removeAttribute("role"),f.node.removeAttribute("aria-labelledby")}r.removeAria=a;function l(f,m){if(f.widgets.length===0)return null;let g=[];for(let v of f.widgets)m.has(v)||(m.add(v),g.push(v));if(g.length===0)return null;let b=f.currentIndex;return b!==-1&&(b<0||b>=g.length)&&(b=0),{type:"tab-area",widgets:g,currentIndex:b}}function c(f,m){let g=f.orientation,b=[],v=[];for(let S=0,k=f.children.length;S<k;++S){let _=t(f.children[S],m);_&&(_.type==="tab-area"||_.orientation!==g?(b.push(_),v.push(Math.abs(f.sizes[S]||0))):(b.push(..._.children),v.push(..._.sizes)))}return b.length===0?null:b.length===1?b[0]:{type:"split-area",orientation:g,children:b,sizes:v}}function u(f,m,g){let b=m.createTabBar(g);for(let v of f.widgets)v.hide(),b.addTab(v.title),r.addAria(v,b);return b.currentIndex=f.currentIndex,new n(b)}function d(f,m,g){let b=new s(f.orientation);
10return f.children.forEach((v,S)=>{let k=i(v,m,g),_=e(f.sizes[S]),E=m.createHandle();b.children.push(k),b.handles.push(E),b.sizers.push(_),k.parent=b}),b.syncHandles(),b.normalizeSizes(),b}})(tr||(tr={}));Ds=class extends B{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new te(this),this._addRequested=new te(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||Ds.defaultRenderer,this._edges=e.edges||Ut.DEFAULT_EDGES,e.tabsMovable!==void 0&&(this._tabsMovable=e.tabsMovable),e.tabsConstrained!==void 0&&(this._tabsConstrained=e.tabsConstrained),e.addButtonEnabled!==void 0&&(this._addButtonEnabled=e.addButtonEnabled),this.dataset.mode=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new Cy({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new Ds.Overlay,this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e)return;this._mode=e,this.dataset.mode=e;let t=this.layout;switch(e){case"multiple-document":for(let i of t.tabBars())i.show();break;case"single-document":t.restoreLayout(Ut.createSingleDocumentConfig(this));break;default:throw"unreachable"}J.postMessage(this,Ut.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(let t of this.tabBars())t.tabsMovable=e}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(let t of this.tabBars())t.addButtonEnabled=e}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=xn(this.tabBars(),i=>i.titles.indexOf(e.title)!==-1);if(!t)throw new Error("Widget is not contained in the dock panel.");t.currentTitle=e.title}activateWidget(e){this.selectWidget(e),e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document",this.layout.restoreLayout(e),(ei.IS_EDGE||ei.IS_IE)&&J.flush(),J.postMessage(this,Ut.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),J.postMessage(this,Ut.LayoutModified)}processMessage(e){e.type==="layout-modified"?this._layoutModified.emit(void 0):super.processMessage(e)}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this),this.node.addEventListener("lm-dragleave",this),this.node.addEventListener("lm-dragover",this),this.node.addEventListener("lm-drop",this),this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this),this.node.removeEventListener("lm-dragleave",this),this.node.removeEventListener("lm-dragover",this),this.node.removeEventListener("lm-drop",this),this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){Ut.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){Ut.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),J.postMessage(this,Ut.LayoutModified))}_evtDragEnter(e){e.mimeData.hasData("application/vnd.lumino.widget-factory")&&(e.preventDefault(),e.stopPropagation())}_evtDragLeave(e){e.preventDefault(),!(this._tabsConstrained&&e.source!==this)&&(e.stopPropagation(),this.overlay.hide(1))}_evtDragOver(e){e.preventDefault(),this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"?e.dropAction="none":(e.stopPropagation(),e.dropAction=e.proposedAction)}_evtDrop(e){if(e.preventDefault(),this.overlay.hide(0),e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:i}=e,{zone:n,target:s}=Ut.findDropTarget(this,t,i,this._edges);if(this._tabsConstrained&&e.source!==this||n==="invalid"){e.dropAction="none";return}let a=e.mimeData.getData("application/vnd.lumino.widget-factory");if(typeof a!="function"){e.dropAction="none";return}let l=a();if(!(l instanceof B)){e.dropAction="none";return}if(l.contains(this)){e.dropAction="none";return}let c=s?Ut.getDropRef(s.tabBar):null;switch(n){case"root-all":this.addWidget(l);break;case"root-top":this.addWidget(l,{mode:"split-top"});break;case"root-left":this.addWidget(l,{mode:"split-left"});break;case"root-right":this.addWidget(l,{mode:"split-right"});break;case"root-bottom":this.addWidget(l,{mode:"split-bottom"});break;case"widget-all":this.addWidget(l,{mode:"tab-after",ref:c});break;case"widget-top":this.addWidget(l,{mode:"split-top",ref:c});break;case"widget-left":this.addWidget(l,{mode:"split-left",ref:c});break;case"widget-right":this.addWidget(l,{mode:"split-right",ref:c});break;case"widget-bottom":this.addWidget(l,{mode:"split-bottom",ref:c});break;case"widget-tab":this.addWidget(l,{mode:"tab-after",ref:c});break;default:throw"unreachable"}e.dropAction=e.proposedAction,e.stopPropagation(),this.activateWidget(l)}
10_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&(this._releaseMouse(),J.postMessage(this,Ut.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,i=e.target,n=xn(t.handles(),u=>u.contains(i));if(!n)return;e.preventDefault(),e.stopPropagation(),this._document.addEventListener("keydown",this,!0),this._document.addEventListener("pointerup",this,!0),this._document.addEventListener("pointermove",this,!0),this._document.addEventListener("contextmenu",this,!0);let s=n.getBoundingClientRect(),o=e.clientX-s.left,a=e.clientY-s.top,l=window.getComputedStyle(n),c=lr.overrideCursor(l.cursor,this._document);this._pressData={handle:n,deltaX:o,deltaY:a,override:c}}_evtPointerMove(e){if(!this._pressData)return;e.preventDefault(),e.stopPropagation();let t=this.node.getBoundingClientRect(),i=e.clientX-t.left-this._pressData.deltaX,n=e.clientY-t.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,i,n)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse(),J.postMessage(this,Ut.LayoutModified))}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._document.removeEventListener("keydown",this,!0),this._document.removeEventListener("pointerup",this,!0),this._document.removeEventListener("pointermove",this,!0),this._document.removeEventListener("contextmenu",this,!0))}_showOverlay(e,t){let{zone:i,target:n}=Ut.findDropTarget(this,e,t,this._edges);if(i==="invalid")return this.overlay.hide(100),i;let s,o,a,l,c=dt.boxSizing(this.node),u=this.node.getBoundingClientRect();switch(i){case"root-all":s=c.paddingTop,o=c.paddingLeft,a=c.paddingRight,l=c.paddingBottom;break;case"root-top":s=c.paddingTop,o=c.paddingLeft,a=c.paddingRight,l=u.height*Ut.GOLDEN_RATIO;break;case"root-left":s=c.paddingTop,o=c.paddingLeft,a=u.width*Ut.GOLDEN_RATIO,l=c.paddingBottom;break;case"root-right":s=c.paddingTop,o=u.width*Ut.GOLDEN_RATIO,a=c.paddingRight,l=c.paddingBottom;break;case"root-bottom":s=u.height*Ut.GOLDEN_RATIO,o=c.paddingLeft,a=c.paddingRight,l=c.paddingBottom;break;case"widget-all":s=n.top,o=n.left,a=n.right,l=n.bottom;break;case"widget-top":s=n.top,o=n.left,a=n.right,l=n.bottom+n.height/2;break;case"widget-left":s=n.top,o=n.left,a=n.right+n.width/2,l=n.bottom;break;case"widget-right":s=n.top,o=n.left+n.width/2,a=n.right,l=n.bottom;break;case"widget-bottom":s=n.top+n.height/2,o=n.left,a=n.right,l=n.bottom;break;case"widget-tab":{let d=n.tabBar.node.getBoundingClientRect().height;s=n.top,o=n.left,a=n.right,l=n.bottom+n.height-d;break}default:throw"unreachable"}return this.overlay.show({top:s,left:o,right:a,bottom:l}),i}_createTabBar(){let e=this._renderer.createTabBar(this._document);return Ut.isGeneratedTabBarProperty.set(e,!0),this._mode==="single-document"&&e.hide(),e.tabsMovable=this._tabsMovable,e.allowDeselect=!1,e.addButtonEnabled=this._addButtonEnabled,e.removeBehavior="select-previous-tab",e.insertBehavior="select-tab-if-needed",e.tabMoved.connect(this._onTabMoved,this),e.currentChanged.connect(this._onCurrentChanged,this),e.tabCloseRequested.connect(this._onTabCloseRequested,this),e.tabDetachRequested.connect(this._onTabDetachRequested,this),e.tabActivateRequested.connect(this._onTabActivateRequested,this),e.addRequested.connect(this._onTabAddRequested,this),e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){J.postMessage(this,Ut.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:i,currentTitle:n}=t;i&&i.owner.hide(),n&&n.owner.show(),(ei.IS_EDGE||ei.IS_IE)&&J.flush(),J.postMessage(this,Ut.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag)return;e.releaseMouse();let{title:i,tab:n,clientX:s,clientY:o,offset:a}=t,l=new fo.MimeData,c=()=>i.owner;l.setData("application/vnd.lumino.widget-factory",c);let u=n.cloneNode(!0);a&&(u.style.top=`-${a.y}px`,u.style.left=`-${a.x}px`),this._drag=new lr({document:this._document,mimeData:l,dragImage:u,proposedAction:"move",supportedActions:"move",source:this}),n.classList.add("lm-mod-hidden");let d=()=>{this._drag=null,n.classList.remove("lm-mod-hidden")};this._drag.start(s,o).then(d)}};(function(r){class e{constructor(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("lm-DockPanel-overlay"),this.node.classList.add("lm-mod-hidden"),this.node.style.position="absolute",this.node.style.contain="strict"}show(n){let s=this.node.style;s.top=`${n.top}px`,s.left=`${n.left}px`,s.right=`${n.right}px`,s.bottom=`${n.bottom}px`,clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("lm-mod-hidden"))}hide(n){if(!this._hidden){if(n<=0){clearTimeout(this._timer),this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden");return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden")},n))}}}r.Overlay=e;class t{createTabBar(n){let s=new Oi({document:n});return s.addClass("lm-DockPanel-tabBar"),s}createHandle(){let n=document.createElement("div");return n.className="lm-DockPanel-handle",n}}r.Renderer=t,r.defaultRenderer=new t})(Ds||(Ds={}));(function(r){r.GOLDEN_RATIO=.618,r.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},r.LayoutModified=new ea("layout-modified"),r.isGeneratedTabBarProperty=new Cr({name:"isGeneratedTabBar",create:()=>!1});function e(n){if(n.isEmpty)return{main:null};let s=Array.from(n.widgets()),o=n.selectedWidgets().next().value,a=o?s.indexOf(o):-1;return{main:{type:"tab-area",widgets:s,currentIndex:a}}}r.createSingleDocumentConfig=e;function t(n,s,o,a){if(!dt.hitTest(n.node,s,o))return{zone:"invalid",target:null};let l=n.layout;if(l.isEmpty)return{zone:"root-all",target:null};if(n.mode==="multiple-document"){let _=n.node.getBoundingClientRect(),E=s-_.left+1,R=o-_.top+1,P=_.right-s,T=_.bottom-o;switch(Math.min(R,P,T,E)){case R:if(R<a.top)return{zone:"root-top",target:null};break;case P:if(P<a.right)return{zone:"root-right",target:null};break;case T:if(T<a.bottom)return{zone:"root-bottom",target:null};break;case E:if(E<a.left)return{zone:"root-left",target:null};break;default:throw"unreachable"}}let c=l.hitTestTabAreas(s,o);if(!c)return{zone:"invalid",target:null};if(n.mode==="single-document")return{zone:"widget-all",target:c};let u=c.x-c.left+1,d=c.y-c.top+1,f=c.left+c.width-c.x,m=c.top+c.height-c.y,g=c.tabBar.node.getBoundingClientRect().height;if(d<g)return{zone:"widget-tab",target:c};let b=Math.round(c.width/3),v=Math.round(c.height/3);if(u>b&&f>b&&d>v&&m>v)return{zone:"widget-all",target:c};u/=b,d/=v,f/=b,m/=v;let S=Math.min(u,d,f,m),k;switch(S){case u:k="widget-left";break;case d:k="widget-top";break;case f:k="widget-right";break;case m:k="widget-bottom";break;default:throw"unreachable"}return{zone:k,target:c}}r.findDropTarget=t;function i(n){return n.titles.length===0?null:n.currentTitle?n.currentTitle.owner:n.titles[n.titles.length-1].owner}r.getDropRef=i})(Ut||(Ut={}));Am=class{constructor(){this._counter=0,this._widgets=[],this._activeWidget=null,this._currentWidget=null,this._numbers=new Map,this._nodes=new Map,this._activeChanged=new te(this),this._currentChanged=new te(this)}dispose(){if(!(this._counter<0)){this._counter=-1,te.clearData(this);for(let e of this._widgets)e.node.removeEventListener("focus",this,!0),e.node.removeEventListener("blur",this,!0);this._activeWidget=null,this._currentWidget=null,this._nodes.clear(),this._numbers.clear(),this._widgets.length=0}}get currentChanged(){return this._currentChanged}get activeChanged(){return this._activeChanged}get isDisposed(){return this._counter<0}get currentWidget(){return this._currentWidget}get activeWidget(){return this._activeWidget}get widgets(){return this._widgets}focusNumber(e){let t=this._numbers.get(e);return t===void 0?-1:t}has(e){return this._numbers.has(e)}add(e){if(this._numbers.has(e))return;let t=e.node.contains(document.activeElement),i=t?this._counter++:-1;this._widgets.push(e),this._numbers.set(e,i),this._nodes.set(e.node,e),e.node.addEventListener("focus",this,!0),e.node.addEventListener("blur",this,!0),e.disposed.connect(this._onWidgetDisposed,this),t&&this._setWi
10dgets(e,e)}remove(e){if(!this._numbers.has(e)||(e.disposed.disconnect(this._onWidgetDisposed,this),e.node.removeEventListener("focus",this,!0),e.node.removeEventListener("blur",this,!0),W.removeFirstOf(this._widgets,e),this._nodes.delete(e.node),this._numbers.delete(e),this._currentWidget!==e))return;let t=this._widgets.filter(n=>this._numbers.get(n)!==-1),i=Wv(t,(n,s)=>{let o=this._numbers.get(n),a=this._numbers.get(s);return o-a})||null;this._setWidgets(i,null)}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break}}_setWidgets(e,t){let i=this._currentWidget;this._currentWidget=e;let n=this._activeWidget;this._activeWidget=t,i!==e&&this._currentChanged.emit({oldValue:i,newValue:e}),n!==t&&this._activeChanged.emit({oldValue:n,newValue:t})}_evtFocus(e){let t=this._nodes.get(e.currentTarget);t!==this._currentWidget&&this._numbers.set(t,this._counter++),this._setWidgets(t,t)}_evtBlur(e){let t=this._nodes.get(e.currentTarget),i=e.relatedTarget;if(!i){this._setWidgets(this._currentWidget,null);return}if(!t.node.contains(i)&&!xn(this._widgets,n=>n.node.contains(i))){this._setWidgets(this._currentWidget,null);return}}_onWidgetDisposed(e){this.remove(e)}},ho=class extends Os{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new Rs],this._columnSizers=[new Rs],this._box=null,e.rowCount!==void 0&&br.reallocSizers(this._rowSizers,e.rowCount),e.columnCount!==void 0&&br.reallocSizers(this._columnSizers,e.columnCount),e.rowSpacing!==void 0&&(this._rowSpacing=br.clampValue(e.rowSpacing)),e.columnSpacing!==void 0&&(this._columnSpacing=br.clampValue(e.columnSpacing))}dispose(){for(let e of this._items){let t=e.widget;e.dispose(),t.dispose()}this._box=null,this._items.length=0,this._rowStarts.length=0,this._rowSizers.length=0,this._columnStarts.length=0,this._columnSizers.length=0,super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){e!==this.rowCount&&(br.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())}get columnCount(){return this._columnSizers.length}set columnCount(e){e!==this.columnCount&&(br.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=br.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=br.clampValue(e),this._columnSpacing!==e&&(this._columnSpacing=e,this.parent&&this.parent.fit())}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let i=this._rowSizers[e];i&&(t=br.clampValue(t),i.stretch!==t&&(i.stretch=t,this.parent&&this.parent.update()))}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let i=this._columnSizers[e];i&&(t=br.clampValue(t),i.stretch!==t&&(i.stretch=t,this.parent&&this.parent.update()))}*[Symbol.iterator](){for(let e of this._items)yield e.widget}addWidget(e){W.findFirstIndex(this._items,i=>i.widget===e)===-1&&(this._items.push(new dc(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=W.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let i=W.removeAt(this._items,t);this.parent&&this.detachWidget(e),i.dispose()}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&J.sendMessage(e,B.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&J.sendMessage(e,B.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&J.sendMessage(e,B.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&J.sendMessage(e,B.Msg.AfterDetach),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){for(let l=0,c=this.rowCount;l<c;++l)this._rowSizers[l].minSize=0;for(let l=0,c=this.columnCount;l<c;++l)this._columnSizers[l].minSize=0;let e=this._items.filter(l=>!l.isHidden);for(let l=0,c=e.length;l<c;++l)e[l].fit();let t=this.rowCount-1,i=this.columnCount-1;e.sort(br.rowSpanCmp);for(let l=0,c=e.length;l<c;++l){let u=e[l],d=ho.getCellConfig(u.widget),f=Math.min(d.row,t),m=Math.min(d.row+d.rowSpan-1,t);br.distributeMin(this._rowSizers,f,m,u.minHeight)}e.sort(br.columnSpanCmp);for(let l=0,c=e.length;l<c;++l){let u=e[l],d=ho.getCellConfig(u.widget),f=Math.min(d.column,i),m=
10Math.min(d.column+d.columnSpan-1,i);br.distributeMin(this._columnSizers,f,m,u.minWidth)}if(this.fitPolicy==="set-no-constraint"){J.sendMessage(this.parent,B.Msg.UpdateRequest);return}let n=t*this._rowSpacing,s=i*this._columnSpacing;for(let l=0,c=this.rowCount;l<c;++l)n+=this._rowSizers[l].minSize;for(let l=0,c=this.columnCount;l<c;++l)s+=this._columnSizers[l].minSize;let o=this._box=dt.boxSizing(this.parent.node);s+=o.horizontalSum,n+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${s}px`,a.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&J.sendMessage(this.parent.parent,B.Msg.FitRequest),this._dirty&&J.sendMessage(this.parent,B.Msg.UpdateRequest)}_update(e,t){this._dirty=!1,e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=dt.boxSizing(this.parent.node));let i=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum,a=this.rowCount-1,l=this.columnCount-1,c=a*this._rowSpacing,u=l*this._columnSpacing;nn.calc(this._rowSizers,Math.max(0,o-c)),nn.calc(this._columnSizers,Math.max(0,s-u));for(let d=0,f=i,m=this.rowCount;d<m;++d)this._rowStarts[d]=f,f+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,f=n,m=this.columnCount;d<m;++d)this._columnStarts[d]=f,f+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let g=ho.getCellConfig(m.widget),b=Math.min(g.row,a),v=Math.min(g.column,l),S=Math.min(g.row+g.rowSpan-1,a),k=Math.min(g.column+g.columnSpan-1,l),_=this._columnStarts[v],E=this._rowStarts[b],R=this._columnStarts[k]+this._columnSizers[k].size-_,P=this._rowStarts[S]+this._rowSizers[S].size-E;m.update(_,E,R,P)}}};(function(r){function e(i){return br.cellConfigProperty.get(i)}r.getCellConfig=e;function t(i,n){br.cellConfigProperty.set(i,br.normalizeConfig(n))}r.setCellConfig=t})(ho||(ho={}));(function(r){r.cellConfigProperty=new Cr({name:"cellConfig",create:()=>({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function e(l){let c=Math.max(0,Math.floor(l.row||0)),u=Math.max(0,Math.floor(l.column||0)),d=Math.max(1,Math.floor(l.rowSpan||0)),f=Math.max(1,Math.floor(l.columnSpan||0));return{row:c,column:u,rowSpan:d,columnSpan:f}}r.normalizeConfig=e;function t(l){return Math.max(0,Math.floor(l))}r.clampValue=t;function i(l,c){let u=r.cellConfigProperty.get(l.widget),d=r.cellConfigProperty.get(c.widget);return u.rowSpan-d.rowSpan}r.rowSpanCmp=i;function n(l,c){let u=r.cellConfigProperty.get(l.widget),d=r.cellConfigProperty.get(c.widget);return u.columnSpan-d.columnSpan}r.columnSpanCmp=n;function s(l,c){for(c=Math.max(1,Math.floor(c));l.length<c;)l.push(new Rs);l.length>c&&(l.length=c)}r.reallocSizers=s;function o(l,c,u,d){if(u<c)return;if(c===u){let g=l[c];g.minSize=Math.max(g.minSize,d);return}let f=0;for(let g=c;g<=u;++g)f+=l[g].minSize;if(f>=d)return;let m=(d-f)/(u-c+1);for(let g=c;g<=u;++g)l[g].minSize+=m}r.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof ho&&l.parent.fit()}})(br||(br={}));xu=class extends B{constructor(e={}){super({node:Rm.createNode()}),this._activeIndex=-1,this._tabFocusIndex=0,this._menus=[],this._childMenu=null,this._overflowMenu=null,this._menuItemSizes=[],this._overflowIndex=-1,this.addClass("lm-MenuBar"),this.setFlag(B.Flag.DisallowLayout),this.renderer=e.renderer||xu.defaultRenderer,this._forceItemsPosition=e.forceItemsPosition||{forceX:!0,forceY:!0},this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:!0}}dispose(){this._closeChildMenu(),this._menus.length=0,super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._menus.length)&&(e=-1),e>-1&&this._menus[e].items.length===0&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this.update())}get menus(){return this._menus}openActiveMenu(){this._activeIndex!==-1&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))}addMenu(e,t=!0){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,i=!0){this._closeChildMenu();let n=this._menus.indexOf(t),s=Math.max(0,Math.min(e,this._menus.length));if(n===-1){W.insert(this._menus,s,t),t.addClass("lm-MenuBar-menu"),t.aboutToClose.connect(this._onMenuAboutToClose,this),t.menuRequested.connect(this._onMenuMenuRequested,this),t.title.changed.connect(this._onTitleChanged,this),i&&this.update();return}s===this._menus.length&&s--,n!==s&&(W.move(this._menus,n,s),i&&this.update())}removeMenu(e,t=!0){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=!0){this._closeChildMenu();let i=W.removeAt(this._menus,e);i&&(i.aboutToClose.disconnect(this._onMenuAboutToClose,this),i.menuRequested.disconnect(this._onMenuMenuRequested,this),i.title.changed.disconnect(this._onTitleChanged,this),i.removeClass("lm-MenuBar-menu"),t&&this.update())}clearMenus(){if(this._menus.length!==0){this._closeChildMenu();for(let e of this._menus)e.aboutToClose.disconnect(this._onMenuAboutToClose,this),e.menuRequested.disconnect(this._onMenuMenuRequested,this),e.t
10itle.changed.disconnect(this._onTitleChanged,this),e.removeClass("lm-MenuBar-menu");this._menus.length=0,this.update()}}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":case"pointerleave":this._evtPointerMove(e);break;case"focusout":this._evtFocusOut(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("pointerdown",this),this.node.addEventListener("pointermove",this),this.node.addEventListener("pointerleave",this),this.node.addEventListener("focusout",this),this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("pointerdown",this),this.node.removeEventListener("pointermove",this),this.node.removeEventListener("pointerleave",this),this.node.removeEventListener("focusout",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()}onActivateRequest(e){this.isAttached&&this._focusItemAt(0)}onResize(e){this.update(),super.onResize(e)}onUpdateRequest(e){var t;let i=this._menus,n=this.renderer,s=this._activeIndex,o=this._tabFocusIndex>=0&&this._tabFocusIndex<i.length?this._tabFocusIndex:0,a=this._overflowIndex>-1?this._overflowIndex:i.length,l=0,c=!1;a=this._overflowMenu!==null?a-1:a;let u=new Array(a);for(let d=0;d<a;++d)u[d]=n.renderItem({title:i[d].title,active:d===s,tabbable:d===o,disabled:i[d].items.length===0,onfocus:()=>{this._tabFocusIndex=d,this.activeIndex=d}}),l+=this._menuItemSizes[d],i[d].title.label===this._overflowMenuOptions.title&&(c=!0,a--);if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!c){if(this._overflowMenu===null){let d=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new Si({commands:new Ai}),this._overflowMenu.title.label=d,this._overflowMenu.title.mnemonic=0,this.addMenu(this._overflowMenu,!1)}for(let d=i.length-2;d>=a;d--){let f=this.menus[d];f.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:f}),this.removeMenu(f,!1)}u[a]=n.renderItem({title:this._overflowMenu.title,active:a===s&&i[a].items.length!==0,tabbable:a===o,disabled:i[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}else if(this._overflowMenu!==null){let d=this._overflowMenu.items,f=this.node.offsetWidth,m=this._overflowMenu.items.length;for(let g=0;g<m;++g){let b=i.length-1-g;if(f-l>this._menuItemSizes[b]){let v=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,v,!1),u[a]=n.renderItem({title:v.title,active:!1,tabbable:a===o,disabled:i[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}}this._overflowMenu.items.length===0&&(this.removeMenu(this._overflowMenu,!1),u.pop(),this._overflowMenu=null,this._overflowIndex=-1)}}As.render(u,this.contentNode),this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible)return;let e=this.contentNode.childNodes,t=this.node.offsetWidth,i=0,n=-1,s=e.length;if(this._menuItemSizes.length==0)for(let o=0;o<s;o++){let a=e[o];i+=a.offsetWidth,this._menuItemSizes.push(a.offsetWidth),i>t&&n===-1&&(n=o)}else for(let o=0;o<this._menuItemSizes.length;o++)if(i+=this._menuItemSizes[o],i>t){n=o;break}this._overflowIndex=n}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}if(e.preventDefault(),e.stopPropagation(),t===13||t===32||t===38||t===40){if(this.activeIndex=this._tabFocusIndex,this.activeIndex!==this._tabFocusIndex)return;this.openActiveMenu();return}if(t===27){this._closeChildMenu(),this._focusItemAt(this.activeIndex);return}if(t===37||t===39){let o=t===37?-1:1,a=this._tabFocusIndex+o,l=this._menus.length;for(let c=0;c<l;c++){let u=(l+a+o*c)%l;if(this._menus[u].items.length){this._focusItemAt(u);return}}return}let i=gu().keyForKeydownEvent(e);if(!i)return;let n=this._activeIndex+1,s=Rm.findMnemonic(this._menus,i,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.openActiveMenu()):s.index!==-1?(this.activeIndex=s.index,this._focusItemAt(this.activeIndex)):s.auto!==-1&&(this.activeIndex=s.auto,this._focusItemAt(this.activeIndex))}_evtPointerDown(e){if(!dt.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=W.findFirstIndex(this.contentNode.children,i=>dt.hitTest(i,e.clientX,e.clientY));if(t===-1){this._closeChildMenu();return}if(e.button===0)if(this._childMenu)this._closeChildMenu(),this.activeIndex=t;else{e.preventDefault();let i=this._positionForMenu(t);Si.saveWindowData(),this.activeIndex=t,this._openChildMenu(i)}}_evtPointerMove(e){let t=W.findFirstIndex(this.contentNode.children,n=>dt.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex||t===-1&&this._childMenu)return;let i=t>=0&&this._childMenu?this._positionForMenu(t):null;Si.saveWindowData(),this.activeIndex=t,i&&this._openChildMenu(i)}_positionForMenu(e){let t=this.contentNode.children[e],{left:i,bottom:n}=t.getBoundingClientRect();return{top:n,left:i}}_evtFocusOut(e){!this._childMenu&&!this.node.contains(e.relatedTarget)&&(this.activeIndex=-1)}_focusItemAt(e){let t=this.contentNode.childNodes[e];t&&t.focus()}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let i=this._childMenu;if(i===t)return;this._childMenu=t,i?i.close():document.addEventListener("pointerdown",this,
10!0),this._tabFocusIndex=this.activeIndex,J.sendMessage(this,B.Msg.UpdateRequest);let{left:n,top:s}=e;(typeof n>"u"||typeof s>"u")&&({left:n,top:s}=this._positionForMenu(this._activeIndex)),i||this.addClass("lm-mod-active"),t.items.length>0&&t.open(n,s,this._forceItemsPosition)}_closeChildMenu(){if(!this._childMenu)return;this.removeClass("lm-mod-active"),document.removeEventListener("pointerdown",this,!0);let e=this._childMenu;this._childMenu=null,e.close(),this.activeIndex=-1}_onMenuAboutToClose(e){e===this._childMenu&&(this.removeClass("lm-mod-active"),document.removeEventListener("pointerdown",this,!0),this._childMenu=null,this.activeIndex=-1)}_onMenuMenuRequested(e,t){if(e!==this._childMenu)return;let i=this._activeIndex,n=this._menus.length;switch(t){case"next":this.activeIndex=i===n-1?0:i+1;break;case"previous":this.activeIndex=i===0?n-1:i-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}};(function(r){class e{renderItem(i){let n=this.createItemClass(i),s=this.createItemDataset(i),o=this.createItemARIA(i);return Ne.li({className:n,dataset:s,...i.disabled?{}:{tabindex:i.tabbable?"0":"-1"},onfocus:i.onfocus,...o},this.renderIcon(i),this.renderLabel(i))}renderIcon(i){let n=this.createIconClass(i);return Ne.div({className:n},i.title.icon,i.title.iconLabel)}renderLabel(i){let n=this.formatLabel(i);return Ne.div({className:"lm-MenuBar-itemLabel"},n)}createItemClass(i){let n="lm-MenuBar-item";return i.title.className&&(n+=` ${i.title.className}`),i.active&&!i.disabled&&(n+=" lm-mod-active"),n}createItemDataset(i){return i.title.dataset}createItemARIA(i){return{role:"menuitem","aria-haspopup":"true","aria-disabled":i.disabled?"true":"false"}}createIconClass(i){let n="lm-MenuBar-itemIcon",s=i.title.iconClass;return s?`${n} ${s}`:n}formatLabel(i){let{label:n,mnemonic:s}=i.title;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],c=Ne.span({className:"lm-MenuBar-itemMnemonic"},l);return[o,c,a]}}r.Renderer=e,r.defaultRenderer=new e})(xu||(xu={}));(function(r){function e(){let i=document.createElement("div"),n=document.createElement("ul");return n.className="lm-MenuBar-content",i.appendChild(n),n.setAttribute("role","menubar"),i}r.createNode=e;function t(i,n,s){let o=-1,a=-1,l=!1,c=n.toUpperCase();for(let u=0,d=i.length;u<d;++u){let f=(u+s)%d,m=i[f].title;if(m.label.length===0)continue;let g=m.mnemonic;if(g>=0&&g<m.label.length){m.label[g].toUpperCase()===c&&(o===-1?o=f:l=!0);continue}a===-1&&m.label[0].toUpperCase()===c&&(a=f)}return{index:o,multiple:l,auto:a}}r.findMnemonic=t})(Rm||(Rm={}));(function(r){function e(){let i=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div");return n.className="lm-ScrollBar-button",s.className="lm-ScrollBar-button",n.dataset.action="decrement",s.dataset.action="increment",o.className="lm-ScrollBar-track",a.className="lm-ScrollBar-thumb",o.appendChild(a),i.appendChild(n),i.appendChild(o),i.appendChild(s),i}r.createNode=e;function t(i,n){return i.thumbNode.contains(n)?"thumb":i.trackNode.contains(n)?"track":i.decrementNode.contains(n)?"decrement":i.incrementNode.contains(n)?"increment":null}r.findPart=t})(NR||(NR={}));BR=class extends Os{constructor(){super(...arguments),this._widget=null}dispose(){if(this._widget){let e=this._widget;this._widget=null,e.dispose()}super.dispose()}get widget(){return this._widget}set widget(e){e&&(e.parent=this.parent),this._widget!==e&&(this._widget&&this._widget.dispose(),this._widget=e,this.parent&&e&&this.attachWidget(e))}*[Symbol.iterator](){this._widget&&(yield this._widget)}removeWidget(e){this._widget===e&&(this._widget=null,this.parent&&this.detachWidget(e))}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&J.sendMessage(e,B.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&J.sendMessage(e,B.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&J.sendMessage(e,B.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&J.sendMessage(e,B.Msg.AfterDetach)}},Iy=class extends Tr{constructor(e={}){super(e),this._dirty=!1,this._items=[],this._box=null,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:B.HiddenMode.Display}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this._hiddenMode=e,this.widgets.length>
101&&this.widgets.forEach(t=>{t.hiddenMode=this._hiddenMode}))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,super.dispose()}attachWidget(e,t){this._hiddenMode===B.HiddenMode.Scale&&this._items.length>0?(this._items.length===1&&(this.widgets[0].hiddenMode=B.HiddenMode.Scale),t.hiddenMode=B.HiddenMode.Scale):t.hiddenMode=B.HiddenMode.Display,W.insert(this._items,e,new dc(t)),this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,i){W.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let i=W.removeAt(this._items,e);this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterDetach),i.widget.node.style.zIndex="",this._hiddenMode===B.HiddenMode.Scale&&(t.hiddenMode=B.HiddenMode.Display,this._items.length===1&&(this._items[0].widget.hiddenMode=B.HiddenMode.Display)),i.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0,t=0;for(let s=0,o=this._items.length;s<o;++s){let a=this._items[s];a.isHidden||(a.fit(),e=Math.max(e,a.minWidth),t=Math.max(t,a.minHeight))}let i=this._box=dt.boxSizing(this.parent.node);e+=i.horizontalSum,t+=i.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&J.sendMessage(this.parent.parent,B.Msg.FitRequest),this._dirty&&J.sendMessage(this.parent,B.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let i=0;for(let l=0,c=this._items.length;l<c;++l)i+=+!this._items[l].isHidden;if(i===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=dt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum;for(let l=0,c=this._items.length;l<c;++l){let u=this._items[l];u.isHidden||(u.widget.node.style.zIndex=`${l}`,u.update(s,n,o,a))}}};(function(r){function e(t){return t.layout||new Iy}r.createLayout=e})(jR||(jR={}));(function(r){function e(s){return i[s]}r.orientationFromPlacement=e;function t(s){return n[s]}r.directionFromPlacement=t;let i={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},n={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}})(zR||(zR={}))});var Qse,qR,HR=p(()=>{pu();Rt();gh();ao();bh();Qse=CR.bindprops({stylesheet:"commandPaletteHeader",className:"jp-icon-hoverShow-content"});(function(r){class e extends ia.Renderer{renderHeader(i){let n=this.formatHeader(i);return Ne.li({className:er("lm-CommandPalette-header","jp-icon-hoverShow")},n,Ne.span(Qse))}renderItemIcon(i){let n=this.createIconClass(i);return i.item.isToggled?Ne.div({className:n},Cm,i.item.iconLabel):Ne.div({className:n},i.item.icon,i.item.iconLabel)}createIconClass(i){let n="lm-CommandPalette-itemIcon";return er(rn.styleClass({stylesheet:"commandPaletteItem"}),i.item.iconClass,n)}}r.Renderer=e,r.defaultRenderer=new e})(qR||(qR={}))});var eoe,hc,VR=p(()=>{Xe();pu();Rt();gh();ao();bh();eoe=xR.bindprops({stylesheet:"menuItem"}),hc=class extends Si{constructor(e){e.renderer=e.renderer||hc.defaultRenderer,super(e),this.addClass("jp-ThemedContainer")}insertItem(e,t){return t.submenu&&hc.overrideDefaultRenderer(t.submenu),super.insertItem(e,t)}};(function(r){function e(i){i.renderer===Si.defaultRenderer&&(i.renderer=r.defaultRenderer);let n=i.insertItem.bind(i);i.insertItem=(s,o)=>(o.submenu&&r.overrideDefaultRenderer(o.submenu),n(s,o));for(let s of i._items)s.submenu&&e(s.submenu)}r.overrideDefaultRenderer=e;class t extends Si.Renderer{renderIcon(n){let s=this.createIconClass(n);return n.item.isToggled?Ne.div({className:s}
10,Cm,n.item.iconLabel):Ne.div({className:s},n.item.icon,n.item.iconLabel)}createIconClass(n){let s="lm-Menu-itemIcon";return n.item.type==="separator"?er(n.item.iconClass,s):er(rn.styleClass({stylesheet:"menuItem"}),n.item.iconClass,s)}renderSubmenu(n){let s="lm-Menu-itemSubmenuIcon";return n.item.type==="submenu"?Ne.div({className:s},eoe):Ne.div({className:s})}}r.Renderer=t,r.defaultRenderer=new t})(hc||(hc={}))});var po,_u,UR=p(()=>{Sn();pu();Rt();gh();ao();bh();po=class extends Oi{constructor(e={}){var t;super({renderer:po.defaultRenderer,...e});let i=((t=po.translator)!==null&&t!==void 0?t:gt).load("jupyterlab");vR.element({container:this.addButtonNode,title:i.__("New Launcher")})}};po.translator=null;(function(r){class e extends Oi.Renderer{renderCloseIcon(i){var n;let s=((n=r.translator)!==null&&n!==void 0?n:gt).load("jupyterlab"),o=i.title.label?s.__("Close %1",i.title.label):s.__("Close tab"),a=er("jp-icon-hover lm-TabBar-tabCloseIcon",rn.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return $R("div",{className:a,title:o},Im)}}r.Renderer=e,r.defaultRenderer=new e})(po||(po={}));_u=class extends Ds{constructor(e={}){super({renderer:_u.defaultRenderer,...e})}};(function(r){class e extends Ds.Renderer{createTabBar(){let i=new po;return i.addClass("lm-DockPanel-tabBar"),i}}r.Renderer=e,r.defaultRenderer=new e})(_u||(_u={}))});var WR=p(()=>{HR();VR();UR()});var _h=p(()=>{bh();py();WR()});function tDe(r){let{className:e,inputRef:t,rightIcon:i,...n}=r;return wu.default.createElement("div",{className:er("jp-InputGroup",e)},wu.default.createElement("input",{ref:t,...n}),i&&wu.default.createElement("span",{className:"jp-InputGroupAction"},typeof i=="string"?wu.default.createElement(j.resolveReact,{icon:i,elementPosition:"center",tag:"span"}):wu.default.createElement(i.react,{elementPosition:"center",tag:"span"})))}var wu,GR=p(()=>{wu=N(re());_h();ao()});function YR(r){let{minimal:e,small:t,children:i,...n}=r;return KR.default.createElement("button",{...n,className:er(r.className,e?"jp-mod-minimal":"",t?"jp-mod-small":"","jp-Button")},i)}var KR,XR=p(()=>{KR=N(re());ao()});var JR=p(()=>{Xe();Rt()});var es=p(()=>{});var ZR=p(()=>{es()});var QR=p(()=>{});var wh,Ot=p(()=>{wh="$id"});var fc=p(()=>{Ot();es()});var rO=p(()=>{fc()});var iO=p(()=>{Ot()});var on=p(()=>{});var aO=w(Om=>{var toe=/~/,roe=/~[01]/g;function ioe(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function nO(r){return toe.test(r)?r.replace(roe,ioe):r}function noe(r,e,t){for(var i,n,s=1,o=e.length;s<o;){if(e[s]==="constructor"||e[s]==="prototype"||e[s]==="__proto__")return r;if(i=nO(e[s++]),n=o>s,typeof r[i]>"u"&&(Array.isArray(r)&&i==="-"&&(i=r.length),n&&(e[s]!==""&&e[s]<1/0||e[s]==="-"?r[i]=[]:r[i]={})),!n)break;r=r[i]}var a=r[i];return t===void 0?delete r[i]:r[i]=t,a}function Ey(r){if(typeof r=="string"){if(r=r.split("/"),r[0]==="")return r;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(r)){for(let e of r)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return r}throw new Error("Invalid JSON pointer.")}function sO(r,e){if(typeof r!="object")throw new Error("Invalid input object.");e=Ey(e);var t=e.length;if(t===1)return r;for(var i=1;i<t;){if(r=r[nO(e[i++])],t===i)return r;if(typeof r!="object"||r===null)return}}function oO(r,e,t){if(typeof r!="object")throw new Error("Invalid input object.");if(e=Ey(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return noe(r,e,t)}function soe(r){var e=Ey(r);return{get:function(t){return sO(t,e)},set:function(t,i){return oO(t,e,i)}}}Om.get=sO;Om.set=oO;Om.compile=soe});var ooe,Dm=p(()=>{ooe=N(aO());Ot()});var $m=p(()=>{Ot()});var Ty=p(()=>{Ot();$m()});var Mm=p(()=>{Ty()});var dO=w((ODe,uO)=>{function aoe(){this.__data__=[],this.size=0}uO.exports=aoe});var pc=w((DDe,hO)=>{function loe(r,e){return r===e||r!==r&&e!==e}hO.exports=loe});var Sh=w(($De,fO)=>{var coe=pc();function uoe(r,e){for(var t=r.length;t--;)if(coe(r[t][0],e))return t;return-1}fO.exports=uoe});var mO=w((MDe,pO)=>{var doe=Sh(),hoe=Array.prototype,foe=hoe.splice;function poe(r){var e=this.__data__,t=doe(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():foe.call(e,t,1),--this.size,!0}pO.exports=poe});var bO=w((PDe,gO)=>{var moe=Sh();function goe(r){var e=this.__data__,t=moe(e,r);return t<0?void 0:e[t][1]}gO.exports=goe});var yO=w((FDe,vO)=>{var boe=Sh();function voe(r){return boe(this.__data__,r)>-1}vO.exports=voe});var _O=w((LDe,xO)=>{var yoe=Sh();function xoe(r,e){var t=this.__data__,i=yoe(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}xO.exports=xoe});var Ch=w((NDe,wO)=>{var _oe=dO(),woe=mO(),Soe=bO(),Coe=yO(),Ioe=_O();function Su(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}Su.prototype.clear=_oe;Su.prototype.delete=woe;Su.prototype.get=Soe;Su.prototype.has=Coe;Su.prototype.set=Ioe;wO.exports=Su});var CO=w((BDe,SO)=>{var koe=Ch();function Eoe(){this.__data__=new koe,this.size=0}SO.exports=Eoe});var kO=w((jDe,IO)=>{function Toe(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}IO.exports=Toe});var TO=w((zDe,EO)=>{function Aoe(r){return this.__data__.get(r)}EO.exports=Aoe});var RO=w((qDe,AO)=>{function Roe(r){return this.__data__.has(r)}
vendor: 5,550 bytes, line 10
10AO.exports=Roe});var Ay=w((HDe,OO)=>{var Ooe=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;OO.exports=Ooe});var rs=w((VDe,DO)=>{var Doe=Ay(),$oe=typeof self=="object"&&self&&self.Object===Object&&self,Moe=Doe||$oe||Function("return this")();DO.exports=Moe});var mc=w((UDe,$O)=>{var Poe=rs(),Foe=Poe.Symbol;$O.exports=Foe});var LO=w((WDe,FO)=>{var MO=mc(),PO=Object.prototype,Loe=PO.hasOwnProperty,Noe=PO.toString,Ih=MO?MO.toStringTag:void 0;function Boe(r){var e=Loe.call(r,Ih),t=r[Ih];try{r[Ih]=void 0;var i=!0}catch{}var n=Noe.call(r);return i&&(e?r[Ih]=t:delete r[Ih]),n}FO.exports=Boe});var BO=w((GDe,NO)=>{var joe=Object.prototype,zoe=joe.toString;function qoe(r){return zoe.call(r)}NO.exports=qoe});var oa=w((KDe,qO)=>{var jO=mc(),Hoe=LO(),Voe=BO(),Uoe="[object Null]",Woe="[object Undefined]",zO=jO?jO.toStringTag:void 0;function Goe(r){return r==null?r===void 0?Woe:Uoe:zO&&zO in Object(r)?Hoe(r):Voe(r)}qO.exports=Goe});var is=w((YDe,HO)=>{function Koe(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}HO.exports=Koe});var Pm=w((XDe,VO)=>{var Yoe=oa(),Xoe=is(),Joe="[object AsyncFunction]",Zoe="[object Function]",Qoe="[object GeneratorFunction]",eae="[object Proxy]";function tae(r){if(!Xoe(r))return!1;var e=Yoe(r);return e==Zoe||e==Qoe||e==Joe||e==eae}VO.exports=tae});var WO=w((JDe,UO)=>{var rae=rs(),iae=rae["__core-js_shared__"];UO.exports=iae});var YO=w((ZDe,KO)=>{var Ry=WO(),GO=function(){var r=/[^.]+$/.exec(Ry&&Ry.keys&&Ry.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function nae(r){return!!GO&&GO in r}KO.exports=nae});var Oy=w((QDe,XO)=>{var sae=Function.prototype,oae=sae.toString;function aae(r){if(r!=null){try{return oae.call(r)}catch{}try{return r+""}catch{}}return""}XO.exports=aae});var ZO=w((e8e,JO)=>{var lae=Pm(),cae=YO(),uae=is(),dae=Oy(),hae=/[\\^$.*+?()[\]{}|]/g,fae=/^\[object .+?Constructor\]$/,pae=Function.prototype,mae=Object.prototype,gae=pae.toString,bae=mae.hasOwnProperty,vae=RegExp("^"+gae.call(bae).replace(hae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yae(r){if(!uae(r)||cae(r))return!1;var e=lae(r)?vae:fae;return e.test(dae(r))}JO.exports=yae});var eD=w((t8e,QO)=>{function xae(r,e){return r?.[e]}QO.exports=xae});var aa=w((r8e,tD)=>{var _ae=ZO(),wae=eD();function Sae(r,e){var t=wae(r,e);return _ae(t)?t:void 0}tD.exports=Sae});var Fm=w((i8e,rD)=>{var Cae=aa(),Iae=rs(),kae=Cae(Iae,"Map");rD.exports=kae});var kh=w((n8e,iD)=>{var Eae=aa(),Tae=Eae(Object,"create");iD.exports=Tae});var oD=w((s8e,sD)=>{var nD=kh();function Aae(){this.__data__=nD?nD(null):{},this.size=0}sD.exports=Aae});var lD=w((o8e,aD)=>{function Rae(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}aD.exports=Rae});var uD=w((a8e,cD)=>{var Oae=kh(),Dae="__lodash_hash_undefined__",$ae=Object.prototype,Mae=$ae.hasOwnProperty;function Pae(r){var e=this.__data__;if(Oae){var t=e[r];return t===Dae?void 0:t}return Mae.call(e,r)?e[r]:void 0}cD.exports=Pae});var hD=w((l8e,dD)=>{var Fae=kh(),Lae=Object.prototype,Nae=Lae.hasOwnProperty;function Bae(r){var e=this.__data__;return Fae?e[r]!==void 0:Nae.call(e,r)}dD.exports=Bae});var pD=w((c8e,fD)=>{var jae=kh(),zae="__lodash_hash_undefined__";function qae(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=jae&&e===void 0?zae:e,this}fD.exports=qae});var gD=w((u8e,mD)=>{var Hae=oD(),Vae=lD(),Uae=uD(),Wae=hD(),Gae=pD();function Cu(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}Cu.prototype.clear=Hae;Cu.prototype.delete=Vae;Cu.prototype.get=Uae;Cu.prototype.has=Wae;Cu.prototype.set=Gae;mD.exports=Cu});var yD=w((d8e,vD)=>{var bD=gD(),Kae=Ch(),Yae=Fm();function Xae(){this.size=0,this.__data__={hash:new bD,map:new(Yae||Kae),string:new bD}}vD.exports=Xae});var _D=w((h8e,xD)=>{function Jae(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}xD.exports=Jae});var Eh=w((f8e,wD)=>{var Zae=_D();function Qae(r,e){var t=r.__data__;return Zae(e)?t[typeof e=="string"?"string":"hash"]:t.map}wD.exports=Qae});var CD=w((p8e,SD)=>{var ele=Eh();function tle(r){var e=ele(this,r).delete(r);return this.size-=e?1:0,e}SD.exports=tle});var kD=w((m8e,ID)=>{var rle=Eh();function ile(r){return rle(this,r).get(r)}ID.exports=ile});var TD=w((g8e,ED)=>{var nle=Eh();function sle(r){return nle(this,r).has(r)}ED.exports=sle});var RD=w((b8e,AD)=>{var ole=Eh();function ale(r,e){var t=ole(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}AD.exports=ale});var Lm=w((v8e,OD)=>{var lle=yD(),cle=CD(),ule=kD(),dle=TD(),hle=RD();function Iu(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var i=r[e];this.set(i[0],i[1])}}Iu.prototype.clear=lle;Iu.prototype.delete=cle;Iu.prototype.get=ule;Iu.prototype.has=dle;Iu.prototype.set=hle;OD.exports=Iu});var $D=w((y8e,DD)=>{var fle=Ch(),ple=Fm(),mle=Lm(),gle=200;function ble(r,e){var t=this.__data__;if(t instanceof fle){var i=t.__data__;if(!ple||i.length<gle-1)return i.push([r,e]),this.size=++t.size,this;t=this.__data__=new mle(i)}return t.set(r,e),this.size=t.size,this}DD.exports=ble});var Th=w((x8e,MD)=>{var vle=Ch(),yle=CO(),xle=kO(),_le=TO(),wle=RO(),Sle=$D();function ku(r){var e=this.__data__=new vle(r);this.size=e.size}ku.prototype.clear=yle;ku.prototype.delete=xle;ku.prototype.get=_le;ku.prototype.has=wle;ku.prototype.set=Sle;MD.exports=ku});var Dy=w((_8e,PD)=>{function Cle(r,e){for(var t=-1,i=r==null?0:r.length;++t<i&&e(r[t],t,r)!==!1;);return r}PD.exports=Cle});var $y=w((w8e,FD)=>
vendor: 4,617 bytes, line 10
10{var Ile=aa(),kle=function(){try{var r=Ile(Object,"defineProperty");return r({},"",{}),r}catch{}}();FD.exports=kle});var Nm=w((S8e,ND)=>{var LD=$y();function Ele(r,e,t){e=="__proto__"&&LD?LD(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}ND.exports=Ele});var My=w((C8e,BD)=>{var Tle=Nm(),Ale=pc(),Rle=Object.prototype,Ole=Rle.hasOwnProperty;function Dle(r,e,t){var i=r[e];(!(Ole.call(r,e)&&Ale(i,t))||t===void 0&&!(e in r))&&Tle(r,e,t)}BD.exports=Dle});var Eu=w((I8e,jD)=>{var $le=My(),Mle=Nm();function Ple(r,e,t,i){var n=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=i?i(t[a],r[a],a,t,r):void 0;l===void 0&&(l=r[a]),n?Mle(t,a,l):$le(t,a,l)}return t}jD.exports=Ple});var qD=w((k8e,zD)=>{function Fle(r,e){for(var t=-1,i=Array(r);++t<r;)i[t]=e(t);return i}zD.exports=Fle});var ns=w((E8e,HD)=>{function Lle(r){return r!=null&&typeof r=="object"}HD.exports=Lle});var UD=w((T8e,VD)=>{var Nle=oa(),Ble=ns(),jle="[object Arguments]";function zle(r){return Ble(r)&&Nle(r)==jle}VD.exports=zle});var Ah=w((A8e,KD)=>{var WD=UD(),qle=ns(),GD=Object.prototype,Hle=GD.hasOwnProperty,Vle=GD.propertyIsEnumerable,Ule=WD(function(){return arguments}())?WD:function(r){return qle(r)&&Hle.call(r,"callee")&&!Vle.call(r,"callee")};KD.exports=Ule});var Di=w((R8e,YD)=>{var Wle=Array.isArray;YD.exports=Wle});var JD=w((O8e,XD)=>{function Gle(){return!1}XD.exports=Gle});var Oh=w((Rh,Tu)=>{var Kle=rs(),Yle=JD(),e8=typeof Rh=="object"&&Rh&&!Rh.nodeType&&Rh,ZD=e8&&typeof Tu=="object"&&Tu&&!Tu.nodeType&&Tu,Xle=ZD&&ZD.exports===e8,QD=Xle?Kle.Buffer:void 0,Jle=QD?QD.isBuffer:void 0,Zle=Jle||Yle;Tu.exports=Zle});var Bm=w((D8e,t8)=>{var Qle=9007199254740991,ece=/^(?:0|[1-9]\d*)$/;function tce(r,e){var t=typeof r;return e=e??Qle,!!e&&(t=="number"||t!="symbol"&&ece.test(r))&&r>-1&&r%1==0&&r<e}t8.exports=tce});var jm=w(($8e,r8)=>{var rce=9007199254740991;function ice(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=rce}r8.exports=ice});var n8=w((M8e,i8)=>{var nce=oa(),sce=jm(),oce=ns(),ace="[object Arguments]",lce="[object Array]",cce="[object Boolean]",uce="[object Date]",dce="[object Error]",hce="[object Function]",fce="[object Map]",pce="[object Number]",mce="[object Object]",gce="[object RegExp]",bce="[object Set]",vce="[object String]",yce="[object WeakMap]",xce="[object ArrayBuffer]",_ce="[object DataView]",wce="[object Float32Array]",Sce="[object Float64Array]",Cce="[object Int8Array]",Ice="[object Int16Array]",kce="[object Int32Array]",Ece="[object Uint8Array]",Tce="[object Uint8ClampedArray]",Ace="[object Uint16Array]",Rce="[object Uint32Array]",Dt={};Dt[wce]=Dt[Sce]=Dt[Cce]=Dt[Ice]=Dt[kce]=Dt[Ece]=Dt[Tce]=Dt[Ace]=Dt[Rce]=!0;Dt[ace]=Dt[lce]=Dt[xce]=Dt[cce]=Dt[_ce]=Dt[uce]=Dt[dce]=Dt[hce]=Dt[fce]=Dt[pce]=Dt[mce]=Dt[gce]=Dt[bce]=Dt[vce]=Dt[yce]=!1;function Oce(r){return oce(r)&&sce(r.length)&&!!Dt[nce(r)]}i8.exports=Oce});var la=w((P8e,s8)=>{function Dce(r){return function(e){return r(e)}}s8.exports=Dce});var zm=w((Dh,Au)=>{var $ce=Ay(),o8=typeof Dh=="object"&&Dh&&!Dh.nodeType&&Dh,$h=o8&&typeof Au=="object"&&Au&&!Au.nodeType&&Au,Mce=$h&&$h.exports===o8,Py=Mce&&$ce.process,Pce=function(){try{var r=$h&&$h.require&&$h.require("util").types;return r||Py&&Py.binding&&Py.binding("util")}catch{}}();Au.exports=Pce});var qm=w((F8e,c8)=>{var Fce=n8(),Lce=la(),a8=zm(),l8=a8&&a8.isTypedArray,Nce=l8?Lce(l8):Fce;c8.exports=Nce});var Fy=w((L8e,u8)=>{var Bce=qD(),jce=Ah(),zce=Di(),qce=Oh(),Hce=Bm(),Vce=qm(),Uce=Object.prototype,Wce=Uce.hasOwnProperty;function Gce(r,e){var t=zce(r),i=!t&&jce(r),n=!t&&!i&&qce(r),s=!t&&!i&&!n&&Vce(r),o=t||i||n||s,a=o?Bce(r.length,String):[],l=a.length;for(var c in r)(e||Wce.call(r,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Hce(c,l)))&&a.push(c);return a}u8.exports=Gce});var Hm=w((N8e,d8)=>{var Kce=Object.prototype;function Yce(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Kce;return r===t}d8.exports=Yce});var Ly=w((B8e,h8)=>{function Xce(r,e){return function(t){return r(e(t))}}h8.exports=Xce});var p8=w((j8e,f8)=>{var Jce=Ly(),Zce=Jce(Object.keys,Object);f8.exports=Zce});var g8=w((z8e,m8)=>{var Qce=Hm(),eue=p8(),tue=Object.prototype,rue=tue.hasOwnProperty;function iue(r){if(!Qce(r))return eue(r);var e=[];for(var t in Object(r))rue.call(r,t)&&t!="constructor"&&e.push(t);return e}m8.exports=iue});var gc=w((q8e,b8)=>{var nue=Pm(),sue=jm();function oue(r){return r!=null&&sue(r.length)&&!nue(r)}b8.exports=oue});var Ru=w((H8e,v8)=>{var aue=Fy(),lue=g8(),cue=gc();function uue(r){return cue(r)?aue(r):lue(r)}v8.exports=uue});var x8=w((V8e,y8)=>{var due=Eu(),hue=Ru();
vendor: 21,849 bytes, line 10
10function fue(r,e){return r&&due(e,hue(e),r)}y8.exports=fue});var w8=w((U8e,_8)=>{function pue(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}_8.exports=pue});var C8=w((W8e,S8)=>{var mue=is(),gue=Hm(),bue=w8(),vue=Object.prototype,yue=vue.hasOwnProperty;function xue(r){if(!mue(r))return bue(r);var e=gue(r),t=[];for(var i in r)i=="constructor"&&(e||!yue.call(r,i))||t.push(i);return t}S8.exports=xue});var bc=w((G8e,I8)=>{var _ue=Fy(),wue=C8(),Sue=gc();function Cue(r){return Sue(r)?_ue(r,!0):wue(r)}I8.exports=Cue});var E8=w((K8e,k8)=>{var Iue=Eu(),kue=bc();function Eue(r,e){return r&&Iue(e,kue(e),r)}k8.exports=Eue});var Ny=w((Mh,Ou)=>{var Tue=rs(),O8=typeof Mh=="object"&&Mh&&!Mh.nodeType&&Mh,T8=O8&&typeof Ou=="object"&&Ou&&!Ou.nodeType&&Ou,Aue=T8&&T8.exports===O8,A8=Aue?Tue.Buffer:void 0,R8=A8?A8.allocUnsafe:void 0;function Rue(r,e){if(e)return r.slice();var t=r.length,i=R8?R8(t):new r.constructor(t);return r.copy(i),i}Ou.exports=Rue});var Vm=w((Y8e,D8)=>{function Oue(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t<i;)e[t]=r[t];return e}D8.exports=Oue});var M8=w((X8e,$8)=>{function Due(r,e){for(var t=-1,i=r==null?0:r.length,n=0,s=[];++t<i;){var o=r[t];e(o,t,r)&&(s[n++]=o)}return s}$8.exports=Due});var By=w((J8e,P8)=>{function $ue(){return[]}P8.exports=$ue});var Um=w((Z8e,L8)=>{var Mue=M8(),Pue=By(),Fue=Object.prototype,Lue=Fue.propertyIsEnumerable,F8=Object.getOwnPropertySymbols,Nue=F8?function(r){return r==null?[]:(r=Object(r),Mue(F8(r),function(e){return Lue.call(r,e)}))}:Pue;L8.exports=Nue});var B8=w((Q8e,N8)=>{var Bue=Eu(),jue=Um();function zue(r,e){return Bue(r,jue(r),e)}N8.exports=zue});var Wm=w((e$e,j8)=>{function que(r,e){for(var t=-1,i=e.length,n=r.length;++t<i;)r[n+t]=e[t];return r}j8.exports=que});var Gm=w((t$e,z8)=>{var Hue=Ly(),Vue=Hue(Object.getPrototypeOf,Object);z8.exports=Vue});var jy=w((r$e,q8)=>{var Uue=Wm(),Wue=Gm(),Gue=Um(),Kue=By(),Yue=Object.getOwnPropertySymbols,Xue=Yue?function(r){for(var e=[];r;)Uue(e,Gue(r)),r=Wue(r);return e}:Kue;q8.exports=Xue});var V8=w((i$e,H8)=>{var Jue=Eu(),Zue=jy();function Que(r,e){return Jue(r,Zue(r),e)}H8.exports=Que});var zy=w((n$e,U8)=>{var ede=Wm(),tde=Di();function rde(r,e,t){var i=e(r);return tde(r)?i:ede(i,t(r))}U8.exports=rde});var qy=w((s$e,W8)=>{var ide=zy(),nde=Um(),sde=Ru();function ode(r){return ide(r,sde,nde)}W8.exports=ode});var K8=w((o$e,G8)=>{var ade=zy(),lde=jy(),cde=bc();function ude(r){return ade(r,cde,lde)}G8.exports=ude});var X8=w((a$e,Y8)=>{var dde=aa(),hde=rs(),fde=dde(hde,"DataView");Y8.exports=fde});var Z8=w((l$e,J8)=>{var pde=aa(),mde=rs(),gde=pde(mde,"Promise");J8.exports=gde});var Hy=w((c$e,Q8)=>{var bde=aa(),vde=rs(),yde=bde(vde,"Set");Q8.exports=yde});var t$=w((u$e,e$)=>{var xde=aa(),_de=rs(),wde=xde(_de,"WeakMap");e$.exports=wde});var Ph=w((d$e,l$)=>{var Vy=X8(),Uy=Fm(),Wy=Z8(),Gy=Hy(),Ky=t$(),a$=oa(),Du=Oy(),r$="[object Map]",Sde="[object Object]",i$="[object Promise]",n$="[object Set]",s$="[object WeakMap]",o$="[object DataView]",Cde=Du(Vy),Ide=Du(Uy),kde=Du(Wy),Ede=Du(Gy),Tde=Du(Ky),vc=a$;(Vy&&vc(new Vy(new ArrayBuffer(1)))!=o$||Uy&&vc(new Uy)!=r$||Wy&&vc(Wy.resolve())!=i$||Gy&&vc(new Gy)!=n$||Ky&&vc(new Ky)!=s$)&&(vc=function(r){var e=a$(r),t=e==Sde?r.constructor:void 0,i=t?Du(t):"";if(i)switch(i){case Cde:return o$;case Ide:return r$;case kde:return i$;case Ede:return n$;case Tde:return s$}return e});l$.exports=vc});var u$=w((h$e,c$)=>{var Ade=Object.prototype,Rde=Ade.hasOwnProperty;function Ode(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&Rde.call(r,"index")&&(t.index=r.index,t.input=r.input),t}c$.exports=Ode});var Yy=w((f$e,d$)=>{var Dde=rs(),$de=Dde.Uint8Array;d$.exports=$de});var Km=w((p$e,f$)=>{var h$=Yy();function Mde(r){var e=new r.constructor(r.byteLength);return new h$(e).set(new h$(r)),e}f$.exports=Mde});var m$=w((m$e,p$)=>{var Pde=Km();function Fde(r,e){var t=e?Pde(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}p$.exports=Fde});var b$=w((g$e,g$)=>{var Lde=/\w*$/;function Nde(r){var e=new r.constructor(r.source,Lde.exec(r));return e.lastIndex=r.lastIndex,e}g$.exports=Nde});var w$=w((b$e,_$)=>{var v$=mc(),y$=v$?v$.prototype:void 0,x$=y$?y$.valueOf:void 0;function Bde(r){return x$?Object(x$.call(r)):{}}_$.exports=Bde});var Xy=w((v$e,S$)=>{var jde=Km();function zde(r,e){var t=e?jde(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}S$.exports=zde});var I$=w((y$e,C$)=>{var qde=Km(),Hde=m$(),Vde=b$(),Ude=w$(),Wde=Xy(),Gde="[object Boolean]",Kde="[object Date]",Yde="[object Map]",Xde="[object Number]",Jde="[object RegExp]",Zde="[object Set]",Qde="[object String]",ehe="[object Symbol]",the="[object ArrayBuffer]",rhe="[object DataView]",ihe="[object Float32Array]",nhe="[object Float64Array]",she="[object Int8Array]",ohe="[object Int16Array]",ahe="[object Int32Array]",lhe="[object Uint8Array]",che="[object Uint8ClampedArray]",uhe="[object Uint16Array]",dhe="[object Uint32Array]";function hhe(r,e,t){var i=r.constructor;switch(e){case the:return qde(r);case Gde:case Kde:return new i(+r);case rhe:return Hde(r,t);case ihe:case nhe:case she:case ohe:case ahe:case lhe:case che:case uhe:case dhe:return Wde(r,t);case Yde:return new i;case Xde:case Qde:return new i(r);case Jde:return Vde(r);case Zde:return new i;case ehe:return Ude(r)}}C$.exports=hhe});var T$=w((x$e,E$)=>{var fhe=is(),k$=Object.create,phe=function(){function r(){}return function(e){if(!fhe(e))return{};if(k$)return k$(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();E$.exports=phe});var Jy=w((_$e,A$)=>{var mhe=T$(),ghe=Gm(),bhe=Hm();function vhe(r){return typeof r.constructor=="function"&&!bhe(r)?mhe(ghe(r)):{}}A$.exports=vhe});var O$=w((w$e,R$)=>{var yhe=Ph(),xhe=ns(),_he="[object Map]";function whe(r){return xhe(r)&&yhe(r)==_he}R$.exports=whe});var P$=w((S$e,M$)=>{var She=O$(),Che=la(),D$=zm(),$$=D$&&D$.isMap,Ihe=$$?Che($$):She;M$.exports=Ihe});var L$=w((C$e,F$)=>{var khe=Ph(),Ehe=ns(),The="[object Set]";function Ahe(r){return Ehe(r)&&khe(r)==The}F$.exports=Ahe});var z$=w((I$e,j$)=>{var Rhe=L$(),Ohe=la(),N$=zm(),B$=N$&&N$.isSet,Dhe=B$?Ohe(B$):Rhe;j$.exports=Dhe});var W$=w((k$e,U$)=>{var $he=Th(),Mhe=Dy(),Phe=My(),Fhe=x8(),Lhe=E8(),Nhe=Ny(),Bhe=Vm(),jhe=B8(),zhe=V8(),qhe=qy(),Hhe=K8(),Vhe=Ph(),Uhe=u$(),Whe=I$(),Ghe=Jy(),Khe=Di(),Yhe=Oh(),Xhe=P$(),Jhe=is(),Zhe=z$(),Qhe=Ru(),efe=bc(),tfe=1,rfe=2,ife=4,q$="[object Arguments]",nfe="[object Array]",sfe="[object Boolean]",ofe="[object Date]",afe="[object Error]",H$="[object Function]",lfe="[object GeneratorFunction]",cfe="[object Map]",ufe="[object Number]",V$="[object Object]",dfe="[object RegExp]",hfe="[object Set]",ffe="[object String]",pfe="[object Symbol]",mfe="[object WeakMap]",gfe="[object ArrayBuffer]",bfe="[object DataView]",vfe="[object Float32Array]",yfe="[object Float64Array]",xfe="[object Int8Array]",_fe="[object Int16Array]",wfe="[object Int32Array]",Sfe="[object Uint8Array]",Cfe="[object Uint8ClampedArray]",Ife="[object Uint16Array]",kfe="[object Uint32Array]",Tt={};Tt[q$]=Tt[nfe]=Tt[gfe]=Tt[bfe]=Tt[sfe]=Tt[ofe]=Tt[vfe]=Tt[yfe]=Tt[xfe]=Tt[_fe]=Tt[wfe]=Tt[cfe]=Tt[ufe]=Tt[V$]=Tt[dfe]=Tt[hfe]=Tt[ffe]=Tt[pfe]=Tt[Sfe]=Tt[Cfe]=Tt[Ife]=Tt[kfe]=!0;Tt[afe]=Tt[H$]=Tt[mfe]=!1;function Ym(r,e,t,i,n,s){var o,a=e&tfe,l=e&rfe,c=e&ife;if(t&&(o=n?t(r,i,n,s):t(r)),o!==void 0)return o;if(!Jhe(r))return r;var u=Khe(r);if(u){if(o=Uhe(r),!a)return Bhe(r,o)}else{var d=Vhe(r),f=d==H$||d==lfe;if(Yhe(r))return Nhe(r,a);if(d==V$||d==q$||f&&!n){if(o=l||f?{}:Ghe(r),!a)return l?zhe(r,Lhe(o,r)):jhe(r,Fhe(o,r))}else{if(!Tt[d])return n?r:{};o=Whe(r,d,a)}}s||(s=new $he);var m=s.get(r);if(m)return m;s.set(r,o),Zhe(r)?r.forEach(function(v){o.add(Ym(v,e,t,v,r,s))}):Xhe(r)&&r.forEach(function(v,S){o.set(S,Ym(v,e,t,S,r,s))});var g=c?l?Hhe:qhe:l?efe:Qhe,b=u?void 0:g(r);return Mhe(b||r,function(v,S){b&&(S=v,v=r[S]),Phe(o,S,Ym(v,e,t,S,r,s))}),o}U$.exports=Ym});var K$=w((E$e,G$)=>{var Efe=W$(),Tfe=1,Afe=4;function Rfe(r){return Efe(r,Tfe|Afe)}G$.exports=Rfe});var X$=w((T$e,Y$)=>{var Ofe="__lodash_hash_undefined__";function Dfe(r){return this.__data__.set(r,Ofe),this}Y$.exports=Dfe});var Z$=w((A$e,J$)=>{function $fe(r){return this.__data__.has(r)}J$.exports=$fe});var Fh=w((R$e,Q$)=>{var Mfe=Lm(),Pfe=X$(),Ffe=Z$();function Xm(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Mfe;++e<t;)this.add(r[e])}Xm.prototype.add=Xm.prototype.push=Pfe;Xm.prototype.has=Ffe;Q$.exports=Xm});var tM=w((O$e,eM)=>{function Lfe(r,e){for(var t=-1,i=r==null?0:r.length;++t<i;)if(e(r[t],t,r))return!0;return!1}eM.exports=Lfe});var Lh=w((D$e,rM)=>{function Nfe(r,e){return r.has(e)}rM.exports=Nfe});var Zy=w(($$e,iM)=>{var Bfe=Fh(),jfe=tM(),zfe=Lh(),qfe=1,Hfe=2;function Vfe(r,e,t,i,n,s){var o=t&qfe,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(r),u=s.get(e);if(c&&u)return c==e&&u==r;var d=-1,f=!0,m=t&Hfe?new Bfe:void 0;for(s.set(r,e),s.set(e,r);++d<a;){var g=r[d],b=e[d];if(i)var v=o?i(b,g,d,e,r,s):i(g,b,d,r,e,s);if(v!==void 0){if(v)continue;f=!1;break}if(m){if(!jfe(e,function(S,k){if(!zfe(m,k)&&(g===S||n(g,S,t,i,s)))return m.push(k)})){f=!1;break}}else if(!(g===b||n(g,b,t,i,s))){f=!1;break}}return s.delete(r),s.delete(e),f}iM.exports=Vfe});var sM=w((M$e,nM)=>{function Ufe(r){var e=-1,t=Array(r.size);return r.forEach(function(i,n){t[++e]=[n,i]}),t}nM.exports=Ufe});var Jm=w((P$e,oM)=>{function Wfe(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}oM.exports=Wfe});var dM=w((F$e,uM)=>{var aM=mc(),lM=Yy(),Gfe=pc(),Kfe=Zy(),Yfe=sM(),Xfe=Jm(),Jfe=1,Zfe=2,Qfe="[object Boolean]",epe="[object Date]",tpe="[object Error]",rpe="[object Map]",ipe="[object Number]",npe="[object RegExp]",spe="[object Set]",ope="[object String]",ape="[object Symbol]",lpe="[object ArrayBuffer]",cpe="[object DataView]",cM=aM?aM.prototype:void 0,Qy=cM?cM.valueOf:void 0;function upe(r,e,t,i,n,s,o){switch(t){case cpe:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case lpe:return!(r.byteLength!=e.byteLength||!s(new lM(r),new lM(e)));case Qfe:case epe:case ipe:return Gfe(+r,+e);case tpe:return r.name==e.name&&r.message==e.message;case npe:case ope:return r==e+"";case rpe:var a=Yfe;case spe:var l=i&Jfe;if(a||(a=Xfe),r.size!=e.size&&!l)return!1;var c=o.get(r);if(c)return c==e;i|=Zfe,o.set(r,e);var u=Kfe(a(r),a(e),i,n,s,o);return o.delete(r),u;case ape:if(Qy)return Qy.call(r)==Qy.call(e)}return!1}uM.exports=upe});var pM=w((L$e,fM)=>{var hM=qy(),dpe=1,hpe=Object.prototype,fpe=hpe.hasOwnProperty;function ppe(r,e,t,i,n,s){var o=t&dpe,a=hM(r),l=a.length,c=hM(e),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=a[d];if(!(o?f in e:fpe.call(e,f)))return!1}var m=s.get(r),g=s.get(e);if(m&&g)return m==e&&g==r;var b=!0;s.set(r,e),s.set(e,r);for(var v=o;++d<l;){f=a[d];var S=r[f],k=e[f];if(i)var _=o?i(k,S,f,e,r,s):i(S,k,f,r,e,s);if(!(_===void 0?S===k||n(S,k,t,i,s):_)){b=!1;break}v||(v=f=="constructor")}if(b&&!v){var E=r.constructor,R=e.constructor;E!=R&&"constructor"in r&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof R=="function"&&R instanceof R)&&(b=!1)}return s.delete(r),s.delete(e),b}fM.exports=ppe});var wM=w((N$e,_M)=>{var ex=Th(),mpe=Zy(),gpe=dM(),bpe=pM(),mM=Ph(),gM=Di(),bM=Oh(),vpe=qm(),ype=1,vM="[object Arguments]",yM="[object Array]",Zm="[object Object]",xpe=Object.prototype,xM=xpe.hasOwnProperty;function _pe(r,e,t,i,n,s){var o=gM(r),a=gM(e),l=o?yM:mM(r),c=a?yM:mM(e);l=l==vM?Zm:l,c=c==vM?Zm:c;var u=l==Zm,d=c==Zm,f=l==c;if(f&&bM(r)){if(!bM(e))return!1;o=!0,u=!1}if(f&&!u)return s||(s=new ex),o||vpe(r)?mpe(r,e,t,i,n,s):gpe(r,e,l,t,i,n,s);if(!(t&ype)){var m=u&&xM.call(r,"__wrapped__"),g=d&&xM.call(e,"__wrapped__");if(m||g){var b=m?r.value():r,v=g?e.value():e;return s||(s=new ex),n(b,v,t,i,s)}}return f?(s||(s=new ex),bpe(r,e,t,i,n,s)):!1}_M.exports=_pe});var Qm=w((B$e,IM)=>{var wpe=wM(),SM=ns();function CM(r,e,t,i,n){return r===e?!0:r==null||e==null||!SM(r)&&!SM(e)?r!==r&&e!==e:wpe(r,e,t,i,CM,n)}IM.exports=CM});var tx=w((j$e,kM)=>{var Spe=Qm();function Cpe(r,e){return Spe(r,e)}kM.exports=Cpe});var RM=w((z$e,AM)=>{var EM=mc(),Ipe=Ah(),kpe=Di(),TM=EM?EM.isConcatSpreadable:void 0;function Epe(r){return kpe(r)||Ipe(r)||!!(TM&&r&&r[TM])}AM.exports=Epe});var eg=w((q$e,DM)=>{var Tpe=Wm(),Ape=RM();function OM(r,e,t,i,n){var s=-1,o=r.length;for(t||(t=Ape),n||(n=[]);++s<o;){var a=r[s];e>0&&t(a)?e>1?OM(a,e-1,t,i,n):Tpe(n,a):i||(n[n.length]=a)}return n}DM.exports=OM});var ca=w((H$e,$M)=>{function Rpe(r,e){for(var t=-1,i=r==null?0:r.length,n=Array(i);++t<i;)n[t]=e(r[t],t,r);return n}$M.exports=Rpe});var Nh=w((V$e,MM)=>{var Ope=oa(),Dpe=ns(),$pe="[object Symbol]";function Mpe(r){return typeof r=="symbol"||Dpe(r)&&Ope(r)==$pe}MM.exports=Mpe});var tg=w((U$e,PM)=>{var Ppe=Di(),Fpe=Nh(),Lpe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Npe=/^\w*$/;function Bpe(r,e){if(Ppe(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||Fpe(r)?!0:Npe.test(r)||!Lpe.test(r)||e!=null&&r in Object(e)}PM.exports=Bpe});var NM=w((W$e,LM)=>{var FM=Lm(),jpe="Expected a function";function rx(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(jpe);var t=function(){var i=arguments,n=e?e.apply(this,i):i[0],s=t.cache;if(s.has(n))return s.get(n);var o=r.apply(this,i);return t.cache=s.set(n,o)||s,o};return t.cache=new(rx.Cache||FM),t}rx.Cache=FM;LM.exports=rx});var jM=w((G$e,BM)=>{var zpe=NM(),qpe=500;function Hpe(r){var e=zpe(r,function(i){return t.size===qpe&&t.clear(),i}),t=e.cache;return e}BM.exports=Hpe});var qM=w((K$e,zM)=>{var Vpe=jM(),Upe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wpe=/\\(\\)?/g,Gpe=Vpe(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(Upe,function(t,i,n,s){e.push(n?s.replace(Wpe,"$1"):i||t)}),e});zM.exports=Gpe});var KM=w((Y$e,GM)=>{var HM=mc(),Kpe=ca(),Ype=Di(),Xpe=Nh(),Jpe=1/0,VM=HM?HM.prototype:void 0,UM=VM?VM.toString:void 0;function WM(r){if(typeof r=="string")return r;if(Ype(r))return Kpe(r,WM)+"";if(Xpe(r))return UM?UM.call(r):"";var e=r+"";return e=="0"&&1/r==-Jpe?"-0":e}GM.exports=WM});var XM=w((X$e,YM)=>{var Zpe=KM();function Qpe(r){return r==null?"":Zpe(r)}YM.exports=Qpe});var ix=w((J$e,JM)=>{var eme=Di(),tme=tg(),rme=qM(),ime=XM();function nme(r,e){return eme(r)?r:tme(r,e)?[r]:rme(ime(r))}JM.exports=nme});var Bh=w((Z$e,ZM)=>{var sme=Nh(),ome=1/0;function ame(r){if(typeof r=="string"||sme(r))return r;var e=r+"";return e=="0"&&1/r==-ome?"-0":e}ZM.exports=ame});var rg=w((Q$e,QM)=>{var lme=ix(),cme=Bh();function ume(r,e){e=lme(e,r);for(var t=0,i=e.length;r!=null&&t<i;)r=r[cme(e[t++])];return t&&t==i?r:void 0}QM.exports=ume});var tP=w((eMe,eP)=>{var dme=Th(),hme=Qm(),fme=1,pme=2;function mme(r,e,t,i){var n=t.length,s=n,o=!i;if(r==null)return!s;for(r=Object(r);n--;){var a=t[n];if(o&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++n<s;){a=t[n];var l=a[0],c=r[l],u=a[1];if(o&&a[2]){if(c===void 0&&!(l in r))return!1}else{var d=new dme;if(i)var f=i(c,u,l,r,e,d);if(!(f===void 0?hme(u,c,fme|pme,i,d):f))return!1}}return!0}eP.exports=mme});var nx=w((tMe,rP)=>{var gme=is();function bme(r){return r===r&&!gme(r)}rP.exports=bme});var nP=w((rMe,iP)=>{var vme=nx(),yme=Ru();function xme(r){for(var e=yme(r),t=e.length;t--;){var i=e[t],n=r[i];e[t]=[i,n,vme(n)]}return e}iP.exports=xme});var sx=w((iMe,sP)=>{function _me(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}sP.exports=_me});var aP=w((nMe,oP)=>{var wme=tP(),Sme=nP(),Cme=sx();function Ime(r){var e=Sme(r);return e.length==1&&e[0][2]?Cme(e[0][0],e[0][1]):function(t){return t===r||wme(t,r,e)}}oP.exports=Ime});var cP=w((sMe,lP)=>{var kme=rg();function Eme(r,e,t){var i=r==null?void 0:kme(r,e);return i===void 0?t:i}lP.exports=Eme});var dP=w((oMe,uP)=>{function Tme(r,e){return r!=null&&e in Object(r)}uP.exports=Tme});var fP=w((aMe,hP)=>{var Ame=ix(),Rme=Ah(),Ome=Di(),Dme=Bm(),$me=jm(),Mme=Bh();function Pme(r,e,t){e=Ame(e,r);for(var i=-1,n=e.length,s=!1;++i<n;){var o=Mme(e[i]);if(!(s=r!=null&&t(r,o)))break;r=r[o]}return s||++i!=n?s:(n=r==null?0:r.length,!!n&&$me(n)&&Dme(o,n)&&(Ome(r)||Rme(r)))}hP.exports=Pme});var mP=w((lMe,pP)=>{var Fme=dP(),Lme=fP();function Nme(r,e){return r!=null&&Lme(r,e,Fme)}pP.exports=Nme});var bP=w((cMe,gP)=>{var Bme=Qm(),jme=cP(),zme=mP(),qme=tg(),Hme=nx(),Vme=sx(),Ume=Bh(),Wme=1,Gme=2;function Kme(r,e){return qme(r)&&Hme(e)?Vme(Ume(r),e):function(t){var i=jme(t,r);return i===void 0&&i===e?zme(t,r):Bme(e,i,Wme|Gme)}}gP.exports=Kme});var $u=w((uMe,vP)=>{function Yme(r){return r}vP.exports=Yme});var xP=w((dMe,yP)=>{function Xme(r){return function(e){return e?.[r]}}yP.exports=Xme});var wP=w((hMe,_P)=>{var Jme=rg();function Zme(r){return function(e){return Jme(e,r)}}_P.exports=Zme});var CP=w((fMe,SP)=>{var Qme=xP(),ege=wP(),tge=tg(),rge=Bh();function ige(r){return tge(r)?Qme(rge(r)):ege(r)}SP.exports=ige});var kP=w((pMe,IP)=>{var nge=aP(),sge=bP(),oge=$u(),age=Di(),lge=CP();function cge(r){return typeof r=="function"?r:r==null?oge:typeof r=="object"?age(r)?sge(r[0],r[1]):nge(r):lge(r)}IP.exports=cge});var TP=w((mMe,EP)=>{function uge(r){return function(e,t,i){for(var n=-1,s=Object(e),o=i(e),a=o.length;a--;){var l=o[r?a:++n];if(t(s[l],l,s)===!1)break}return e}}EP.exports=uge});var ox=w((gMe,AP)=>{var dge=TP(),hge=dge();AP.exports=hge});var OP=w((bMe,RP)=>{var fge=ox(),pge=Ru();function mge(r,e){return r&&fge(r,e,pge)}RP.exports=mge});var $P=w((vMe,DP)=>{var gge=gc();function bge(r,e){return function(t,i){if(t==null)return t;if(!gge(t))return r(t,i);for(var n=t.length,s=e?n:-1,o=Object(t);(e?s--:++s<n)&&i(o[s],s,o)!==!1;);return t}}DP.exports=bge});var ax=w((yMe,MP)=>{var vge=OP(),yge=$P(),xge=yge(vge);MP.exports=xge});var FP=w((xMe,PP)=>{var _ge=ax(),wge=gc();function Sge(r,e){var t=-1,i=wge(r)?Array(r.length):[];return _ge(r,function(n,s,o){i[++t]=e(n,s,o)}),i}PP.exports=Sge});var NP=w((_Me,LP)=>{function Cge(r,e){var t=r.length;for(r.sort(e);t--;)r[t]=r[t].value;return r}LP.exports=Cge});var zP=w((wMe,jP)=>{var BP=Nh();function Ige(r,e){if(r!==e){var t=r!==void 0,i=r===null,n=r===r,s=BP(r),o=e!==void 0,a=e===null,l=e===e,c=BP(e);if(!a&&!c&&!s&&r>e||s&&o&&l&&!a&&!c||i&&o&&l||!t&&l||!n)return 1;if(!i&&!s&&!c&&r<e||c&&t&&n&&!i&&!s||a&&t&&n||!o&&n||!l)return-1}return 0}jP.exports=Ige});var HP=w((SMe,qP)=>{var kge=zP();function Ege(r,e,t){for(var i=-1,n=r.criteria,s=e.criteria,o=n.length,a=t.length;++i<o;){var l=kge(n[i],s[i]);if(l){if(i>=a)return l;var c=t[i];return l*(c=="desc"?-1:1)}}return r.index-e.index}qP.exports=Ege});var UP=w((CMe,VP)=>{var lx=ca(),Tge=rg(),Age=kP(),Rge=FP(),Oge=NP(),Dge=la(),$ge=HP(),Mge=$u(),Pge=Di();function Fge(r,e,t){e.length?e=lx(e,function(s){return Pge(s)?function(o){return Tge(o,s.length===1?s[0]:s)}:s}):e=[Mge];var i=-1;e=lx(e,Dge(Age));var n=Rge(r,function(s,o,a){var l=lx(e,function(c){return c(s)});return{criteria:l,index:++i,value:s}});return Oge(n,function(s,o){return $ge(s,o,t)})}VP.exports=Fge});var cx=w((IMe,WP)=>{function Lge(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}WP.exports=Lge});var YP=w((kMe,KP)=>{var Nge=cx(),GP=Math.max;function Bge(r,e,t){return e=GP(e===void 0?r.length-1:e,0),function(){for(var i=arguments,n=-1,s=GP(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=t(o),Nge(r,this,a)}}KP.exports=Bge});var JP=w((EMe,XP)=>{function jge(r){return function(){return r}}XP.exports=jge});var e9=w((TMe,QP)=>{var zge=JP(),ZP=$y(),qge=$u(),Hge=ZP?function(r,e){return ZP(r,"toString",{configurable:!0,enumerable:!1,value:zge(e),writable:!0})}:qge;QP.exports=Hge});var r9=w((AMe,t9)=>{var Vge=800,Uge=16,Wge=Date.now;function Gge(r){var e=0,t=0;return function(){var i=Wge(),n=Uge-(i-t);if(t=i,n>0){if(++e>=Vge)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}t9.exports=Gge});var n9=w((RMe,i9)=>{var Kge=e9(),Yge=r9(),Xge=Yge(Kge);i9.exports=Xge});var ua=w((OMe,s9)=>{var Jge=$u(),Zge=YP(),Qge=n9();function e0e(r,e){return Qge(Zge(r,e,Jge),r+"")}s9.exports=e0e});var ig=w((DMe,o9)=>{var t0e=pc(),r0e=gc(),i0e=Bm(),n0e=is();function s0e(r,e,t){if(!n0e(t))return!1;var i=typeof e;return(i=="number"?r0e(t)&&i0e(e,t.length):i=="string"&&e in t)?t0e(t[e],r):!1}o9.exports=s0e});var ux=w(($Me,l9)=>{var o0e=eg(),a0e=UP(),l0e=ua(),a9=ig(),c0e=l0e(function(r,e){if(r==null)return[];var t=e.length;return t>1&&a9(r,e[0],e[1])?e=[]:t>2&&a9(e[0],e[1],e[2])&&(e=[e[0]]),a0e(r,o0e(e,1),[])});l9.exports=c0e});var u9=w((MMe,c9)=>{function u0e(r,e,t,i){for(var n=r.length,s=t+(i?1:-1);i?s--:++s<n;)if(e(r[s],s,r))return s;return-1}c9.exports=u0e});var h9=w((PMe,d9)=>{function d0e(r){return r!==r}d9.exports=d0e});var p9=w((FMe,f9)=>{function h0e(r,e,t){for(var i=t-1,n=r.length;++i<n;)if(r[i]===e)return i;return-1}f9.exports=h0e});var dx=w((LMe,m9)=>{var f0e=u9(),p0e=h9(),m0e=p9();function g0e(r,e,t){return e===e?m0e(r,e,t):f0e(r,p0e,t)}m9.exports=g0e});var ng=w((NMe,g9)=>{var b0e=dx();function v0e(r,e){var t=r==null?0:r.length;return!!t&&b0e(r,e,0)>-1}g9.exports=v0e});var sg=w((BMe,b9)=>{function y0e(r,e,t){for(var i=-1,n=r==null?0:r.length;++i<n;)if(t(e,r[i]))return!0;return!1}b9.exports=y0e});var y9=w((jMe,v9)=>{function x0e(){}v9.exports=x0e});var _9=w((zMe,x9)=>{var hx=Hy(),_0e=y9(),w0e=Jm(),S0e=1/0,C0e=hx&&1/w0e(new hx([,-0]))[1]==S0e?function(r){return new hx(r)}:_0e;x9.exports=C0e});var fx=w((qMe,w9)=>{var I0e=Fh(),k0e=ng(),E0e=sg(),T0e=Lh(),A0e=_9(),R0e=Jm(),O0e=200;function D0e(r,e,t){var i=-1,n=k0e,s=r.length,o=!0,a=[],l=a;if(t)o=!1,n=E0e;else if(s>=O0e){var c=e?null:A0e(r);if(c)return R0e(c);o=!1,n=T0e,l=new I0e}else l=e?[]:a;e:for(;++i<s;){var u=r[i],d=e?e(u):u;if(u=t||u!==0?u:0,o&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;e&&l.push(d),a.push(u)}else n(l,d,t)||(l!==a&&l.push(d),a.push(u))}return a}w9.exports=D0e});
10var og=w((HMe,S9)=>{var $0e=fx();function M0e(r){return r&&r.length?$0e(r):[]}S9.exports=M0e});var ag=w((VMe,C9)=>{var P0e=fx();function F0e(r,e){return e=typeof e=="function"?e:void 0,r&&r.length?P0e(r,void 0,e):[]}C9.exports=F0e});var E9=w((UMe,k9)=>{var L0e=ua(),N0e=pc(),B0e=ig(),j0e=bc(),I9=Object.prototype,z0e=I9.hasOwnProperty,q0e=L0e(function(r,e){r=Object(r);var t=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&B0e(e[0],e[1],n)&&(i=1);++t<i;)for(var s=e[t],o=j0e(s),a=-1,l=o.length;++a<l;){var c=o[a],u=r[c];(u===void 0||N0e(u,I9[c])&&!z0e.call(r,c))&&(r[c]=s[c])}return r});k9.exports=q0e});var px=w((WMe,A9)=>{var H0e=Fh(),V0e=ng(),U0e=sg(),W0e=ca(),G0e=la(),T9=Lh(),K0e=Math.min;function Y0e(r,e,t){for(var i=t?U0e:V0e,n=r[0].length,s=r.length,o=s,a=Array(s),l=1/0,c=[];o--;){var u=r[o];o&&e&&(u=W0e(u,G0e(e))),l=K0e(u.length,l),a[o]=!t&&(e||n>=120&&u.length>=120)?new H0e(o&&u):void 0}u=r[0];var d=-1,f=a[0];e:for(;++d<n&&c.length<l;){var m=u[d],g=e?e(m):m;if(m=t||m!==0?m:0,!(f?T9(f,g):i(c,g,t))){for(o=s;--o;){var b=a[o];if(!(b?T9(b,g):i(r[o],g,t)))continue e}f&&f.push(g),c.push(m)}}return c}A9.exports=Y0e});var lg=w((GMe,R9)=>{var X0e=gc(),J0e=ns();function Z0e(r){return J0e(r)&&X0e(r)}R9.exports=Z0e});var mx=w((KMe,O9)=>{var Q0e=lg();function ebe(r){return Q0e(r)?r:[]}O9.exports=ebe});var $9=w((YMe,D9)=>{function tbe(r){var e=r==null?0:r.length;return e?r[e-1]:void 0}D9.exports=tbe});var gx=w((XMe,M9)=>{var rbe=ca(),ibe=px(),nbe=ua(),sbe=mx(),obe=$9(),abe=nbe(function(r){var e=obe(r),t=rbe(r,sbe);return e=typeof e=="function"?e:void 0,e&&t.pop(),t.length&&t[0]===r[0]?ibe(t,void 0,e):[]});M9.exports=abe});var jh=w((JMe,F9)=>{var lbe=oa(),cbe=Gm(),ube=ns(),dbe="[object Object]",hbe=Function.prototype,fbe=Object.prototype,P9=hbe.toString,pbe=fbe.hasOwnProperty,mbe=P9.call(Object);function gbe(r){if(!ube(r)||lbe(r)!=dbe)return!1;var e=cbe(r);if(e===null)return!0;var t=pbe.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&P9.call(t)==mbe}F9.exports=gbe});var N9=w((ZMe,L9)=>{var bbe=oa(),vbe=ns(),ybe="[object Boolean]";function xbe(r){return r===!0||r===!1||vbe(r)&&bbe(r)==ybe}L9.exports=xbe});var fg=w((QMe,U9)=>{var ss=tx(),_be=ux(),_x=og(),B9=ag(),wbe=E9(),Sbe=gx(),hg=jh(),bx=N9(),j9=r=>Array.isArray(r)?r:[r],kn=r=>r===void 0,cg=r=>hg(r)||Array.isArray(r)?Object.keys(r):[],Mu=(r,e)=>r.hasOwnProperty(e),Pu=r=>_be(_x(r)),z9=r=>kn(r)||Array.isArray(r)&&r.length===0,Cbe=(r,e,t,i)=>e&&Mu(e,t)&&r&&Mu(r,t)&&i(r[t],e[t]),vx=(r,e)=>kn(r)&&e===0||kn(e)&&r===0||ss(r,e),Ibe=(r,e)=>kn(r)&&e===!1||kn(e)&&r===!1||ss(r,e),q9=r=>kn(r)||ss(r,{})||r===!0,ug=r=>kn(r)||ss(r,{}),H9=r=>kn(r)||hg(r)||r===!0||r===!1;function V9(r,e){return z9(r)&&z9(e)?!0:ss(Pu(r),Pu(e))}function kbe(r,e){return r=j9(r),e=j9(e),ss(Pu(r),Pu(e))}function dg(r,e,t,i){var n=_x(cg(r).concat(cg(e)));return ug(r)&&ug(e)?!0:ug(r)&&cg(e).length||ug(e)&&cg(r).length?!1:n.every(function(s){var o=r[s],a=e[s];return Array.isArray(o)&&Array.isArray(a)?ss(Pu(r),Pu(e)):Array.isArray(o)&&!Array.isArray(a)||Array.isArray(a)&&!Array.isArray(o)?!1:Cbe(r,e,s,i)})}function Ebe(r,e,t,i){return hg(r)&&hg(e)?i(r,e):Array.isArray(r)&&Array.isArray(e)?dg(r,e,t,i):ss(r,e)}function yx(r,e,t,i){var n=B9(r,i),s=B9(e,i),o=Sbe(n,s,i);return o.length===Math.max(n.length,s.length)}var Tbe={title:ss,uniqueItems:Ibe,minLength:vx,minItems:vx,minProperties:vx,required:V9,enum:V9,type:kbe,items:Ebe,anyOf:yx,allOf:yx,oneOf:yx,properties:dg,patternProperties:dg,dependencies:dg},Abe=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],Rbe=["additionalProperties","additionalItems","contains","propertyNames","not"];function xx(r,e,t){if(t=wbe(t,{ignore:[]}),q9(r)&&q9(e))return!0;if(!H9(r)||!H9(e))throw new Error("Either of the values are not a JSON schema.");if(r===e)return!0;if(bx(r)&&bx(e))return r===e;if(r===void 0&&e===!1||e===void 0&&r===!1||kn(r)&&!kn(e)||!kn(r)&&kn(e))return!1;var i=_x(Object.keys(r).concat(Object.keys(e)));if(t.ignore.length&&(i=i.filter(s=>t.ignore.indexOf(s)===-1)),!i.length)return!0;function n(s,o){return xx(s,o,t)}return i.every(function(s){var o=r[s],a=e[s];if(Rbe.indexOf(s)!==-1)return xx(o,a,t);var l=Tbe[s];if(l||(l=ss),ss(o,a))return!0;
10if(Abe.indexOf(s)===-1&&(!Mu(r,s)&&Mu(e,s)||Mu(r,s)&&!Mu(e,s)))return o===a;var c=l(o,a,s,n);if(!bx(c))throw new Error("Comparer must return true or false");return c})}U9.exports=xx});var pg=w((ePe,W9)=>{"use strict";function Obe(r){return Object.prototype.toString.call(r)==="[object Array]"}W9.exports=Array.isArray||Obe});var K9=w((tPe,G9)=>{"use strict";function Dbe(r){return(typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]")&&r.valueOf()===r.valueOf()}G9.exports=Dbe});var X9=w((rPe,Y9)=>{"use strict";var $be=K9();function Mbe(r){return $be(r)&&r%1===0}Y9.exports=Mbe});var wx=w((iPe,J9)=>{"use strict";var Pbe=pg(),Fbe=X9();function Lbe(r){var e;if(!Pbe(r)||(e=r.length,!e))return!1;for(var t=0;t<e;t++)if(!Fbe(r[t]))return!1;return!0}J9.exports=Lbe});var Sx=w((nPe,Z9)=>{"use strict";function Nbe(r){return typeof r=="function"}Z9.exports=Nbe});var iF=w((sPe,rF)=>{"use strict";var Bbe=pg(),Q9=wx(),jbe=Sx(),mg=Math.pow(2,31)-1;function eF(r,e){var t=1,i;if(r===0)return e;if(e===0)return r;for(;r%2===0&&e%2===0;)r=r/2,e=e/2,t=t*2;for(;r%2===0;)r=r/2;for(;e;){for(;e%2===0;)e=e/2;r>e&&(i=e,e=r,r=i),e=e-r}return t*r}function tF(r,e){var t=0,i;if(r===0)return e;if(e===0)return r;for(;!(r&1)&&!(e&1);)r>>>=1,e>>>=1,t++;for(;!(r&1);)r>>>=1;for(;e;){for(;!(e&1);)e>>>=1;r>e&&(i=e,e=r,r=i),e=e-r}return r<<t}function zbe(){var r=arguments.length,e,t,i,n,s,o,a;for(e=new Array(r),a=0;a<r;a++)e[a]=arguments[a];if(Q9(e)){if(r===2)return s=e[0],o=e[1],s<0&&(s=-s),o<0&&(o=-o),s<=mg&&o<=mg?tF(s,o):eF(s,o);i=e}else if(Bbe(e[0]))if(r>1){if(i=e[0],t=e[1],!jbe(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else i=e[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(n=i.length,n<2)return null;if(t){for(s=new Array(n),a=0;a<n;a++)s[a]=t(i[a],a);i=s}if(r<3&&!Q9(i))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+i+"`.");for(a=0;a<n;a++)s=i[a],s<0&&(i[a]=-s);for(s=i[0],a=1;a<n;a++)o=i[a],o<=mg&&s<=mg?s=tF(s,o):s=eF(s,o);return s}rF.exports=zbe});var aF=w((oPe,oF)=>{"use strict";var nF=iF(),qbe=pg(),sF=wx(),Hbe=Sx();function Vbe(){var r=arguments.length,e,t,i,n,s,o,a;for(e=new Array(r),a=0;a<r;a++)e[a]=arguments[a];if(sF(e)){if(r===2)return s=e[0],o=e[1],s<0&&(s=-s),o<0&&(o=-o),s===0||o===0?0:s/nF(s,o)*o;i=e}else if(qbe(e[0]))if(r>1){if(i=e[0],t=e[1],!Hbe(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else i=e[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(n=i.length,n<2)return null;if(t){for(s=new Array(n),a=0;a<n;a++)s[a]=t(i[a],a);i=s}if(r<3&&!sF(i))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+i+"`.");for(a=0;a<n;a++)s=i[a],s<0&&(i[a]=-s);for(s=i[0],a=1;a<n;a++){if(o=i[a],s===0||o===0)return 0;s=s/nF(s,o)*o}return s}oF.exports=Vbe});var Cx=w((aPe,lF)=>{var Ube=Nm(),Wbe=pc();function Gbe(r,e,t){(t!==void 0&&!Wbe(r[e],t)||t===void 0&&!(e in r))&&Ube(r,e,t)}lF.exports=Gbe});var Ix=w((lPe,cF)=>{function Kbe(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}cF.exports=Kbe});var dF=w((cPe,uF)=>{var Ybe=Eu(),Xbe=bc();function Jbe(r){return Ybe(r,Xbe(r))}uF.exports=Jbe});var bF=w((uPe,gF)=>{var hF=Cx(),Zbe=Ny(),Qbe=Xy(),eve=Vm(),tve=Jy(),fF=Ah(),pF=Di(),rve=lg(),ive=Oh(),nve=Pm(),sve=is(),ove=jh(),ave=qm(),mF=Ix(),lve=dF();function cve(r,e,t,i,n,s,o){var a=mF(r,t),l=mF(e,t),c=o.get(l);if(c){hF(r,t,c);return}var u=s?s(a,l,t+"",r,e,o):void 0,d=u===void 0;if(d){var f=pF(l),m=!f&&ive(l),g=!f&&!m&&ave(l);u=l,f||m||g?pF(a)?u=a:rve(a)?u=eve(a):m?(d=!1,u=Zbe(l,!0)):g?(d=!1,u=Qbe(l,!0)):u=[]:ove(l)||fF(l)?(u=a,fF(a)?u=lve(a):(!sve(a)||nve(a))&&(u=tve(l))):d=!1}d&&(o.set(l,u),n(u,l,i,s,o),o.delete(l)),hF(r,t,u)}gF.exports=cve});var kx=w((dPe,yF)=>{var uve=Th(),dve=Cx(),hve=ox(),fve=bF(),pve=is(),mve=bc(),gve=Ix();function vF(r,e,t,i,n){r!==e&&hve(e,function(s,o){if(n||(n=new uve),pve(s))fve(r,e,o,t,vF,i,n);else{var a=i?i(gve(r,o),s,o+"",r,e,n):void 0;a===void 0&&(a=s),dve(r,o,a)}},mve)}yF.exports=vF});var SF=w((hPe,wF)=>{var bve=kx(),xF=is();function _F(r,e,t,i,n,s){return xF(r)&&xF(e)&&(s.set(e,r),bve(r,e,void 0,_F,s),s.delete(e)),r}wF.exports=_F});var IF=w((fPe,CF)=>{var vve=ua(),yve=ig();function xve(r){return vve(function(e,t){var i=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=r.length>3&&typeof s=="function"?(n--,s):void 0,o&&yve(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++i<n;){var a=t[i];a&&r(e,a,i,s)}return e})}CF.exports=xve});var EF=w((pPe,kF)=>{var _ve=kx(),wve=IF(),Sve=wve(function(r,e,t,i){_ve(r,e,t,i)});kF.exports=Sve});var AF=w((mPe,TF)=>{var Cve=cx(),Ive=ua(),kve=SF(),Eve=EF(),Tve=Ive(function(r){return r.push(void 0,kve),Cve(Eve,void 0,r)});TF.exports=Tve});var Ex=w((gPe,RF)=>{var Ave=eg();function Rve(r){var e=r==null?0:r.length;return e?Ave(r,1):[]}RF.exports=Rve});var Tx=w((bPe,OF)=>{var Ove=eg(),Dve=1/0;function $ve(r){var e=r==null?0:r.length;return e?Ove(r,Dve):[]}OF.exports=$ve});var $F=w((vPe,DF)=>{var Mve=ca(),Pve=px(),Fve=ua(),Lve=mx(),Nve=Fve(function(r){var e=Mve(r,Lve);return e.length&&e[0]===r[0]?Pve(e):[]});DF.exports=Nve});var PF=w((yPe,MF)=>{function Bve(r,e,t,i){for(var n=t-1,s=r.length;++n<s;)if(i(r[n],e))return n;return-1}MF.exports=Bve});var NF=w((xPe,LF)=>{var jve=ca(),zve=dx(),qve=PF(),Hve=la(),Vve=Vm(),Uve=Array.prototype,FF=Uve.splice;function Wve(r,e,t,i){var n=i?qve:zve,s=-1,o=e.length,a=r;for(r===e&&(e=Vve(e)),t&&(a=jve(r,Hve(t)));++s<o;)for(var l=0,c=e[s],u=t?t(c):c;(l=n(a,u,l,i))>-1;)a!==r&&FF.call(a,l,1),FF.call(r,l,1);return r}LF.exports=Wve});var jF=w((_Pe,BF)=>{var Gve=NF();function Kve(r,e){return r&&r.length&&e&&e.length?Gve(r,e):r}BF.exports=Kve});var qF=w((wPe,zF)=>{var Yve=$u();function Xve(r){return typeof r=="function"?r:Yve}zF.exports=Xve});var Ax=w((SPe,HF)=>{var Jve=Dy(),Zve=ax(),Qve=qF(),e1e=Di();function t1e(r,e){var t=e1e(r)?Jve:Zve;return t(r,Qve(e))}HF.exports=t1e});var UF=w((CPe,VF)=>{var r1e=Fh(),i1e=ng(),n1e=sg(),s1e=ca(),o1e=la(),a1e=Lh(),l1e=200;function c1e(r,e,t,i){var n=-1,s=i1e,o=!0,a=r.length,l=[],c=e.length;if(!a)return l;t&&(e=s1e(e,o1e(t))),i?(s=n1e,o=!1):e.length>=l1e&&(s=a1e,o=!1,e=new r1e(e));e:for(;++n<a;){var u=r[n],d=t==null?u:t(u);if(u=i||u!==0?u:0,o&&d===d){for(var f=c;f--;)if(e[f]===d)continue e;l.push(u)}else s(e,d,i)||l.push(u)}return l}VF.exports=c1e});var GF=w((IPe,WF)=>{var u1e=UF(),d1e=ua(),h1e=lg(),f1e=d1e(function(r,e){return h1e(r)?u1e(r,e):[]});WF.exports=f1e});var Ox=w((kPe,JF)=>{var p1e=Ex(),m1e=Tx(),KF=jh(),g1e=og(),b1e=ag(),v1e=GF();function y1e(r){for(let e in r)YF(r,e)&&XF(r[e])&&delete r[e];return r}var x1e=r=>g1e(m1e(r.map(Rx))),_1e=(r,e)=>r.map(t=>t&&t[e]),YF=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),Rx=r=>KF(r)||Array.isArray(r)?Object.keys(r):[],w1e=r=>r!==void 0,S1e=r=>KF(r)||r===!0||r===!1,XF=r=>
10!Rx(r).length&&r!==!1&&r!==!0,C1e=(r,...e)=>v1e.apply(null,[r].concat(p1e(e)));JF.exports={allUniqueKeys:x1e,deleteUndefinedProps:y1e,getValues:_1e,has:YF,isEmptySchema:XF,isSchema:S1e,keys:Rx,notUndefined:w1e,uniqWith:b1e,withoutArr:C1e}});var t7=w((EPe,e7)=>{var I1e=fg(),k1e=Ax(),{allUniqueKeys:E1e,deleteUndefinedProps:T1e,getValues:A1e,keys:zh,notUndefined:R1e,uniqWith:O1e,withoutArr:ZF}=Ox();function D1e(r){k1e(r,function(e,t){e===!1&&delete r[t]})}function QF(r,e){return E1e(r).reduce(function(i,n){let s=A1e(r,n),o=O1e(s.filter(R1e),I1e);return i[n]=e(o,n),i},{})}e7.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(r,e,t,i){i.ignoreAdditionalProperties||(r.forEach(function(s){let o=r.filter(u=>u!==s),a=zh(s.properties),c=zh(s.patternProperties).map(u=>new RegExp(u));o.forEach(function(u){let d=zh(u.properties),f=d.filter(g=>c.some(b=>b.test(g)));ZF(d,a,f).forEach(function(g){u.properties[g]=t.properties([u.properties[g],s.additionalProperties],g)})})}),r.forEach(function(s){let o=r.filter(l=>l!==s),a=zh(s.patternProperties);s.additionalProperties===!1&&o.forEach(function(l){let c=zh(l.patternProperties);ZF(c,a).forEach(d=>delete l.patternProperties[d])})}));let n={additionalProperties:t.additionalProperties(r.map(s=>s.additionalProperties)),patternProperties:QF(r.map(s=>s.patternProperties),t.patternProperties),properties:QF(r.map(s=>s.properties),t.properties)};return n.additionalProperties===!1&&D1e(n.properties),T1e(n)}}});var s7=w((TPe,n7)=>{var $1e=fg(),M1e=Ax(),{allUniqueKeys:P1e,deleteUndefinedProps:F1e,has:L1e,isSchema:r7,notUndefined:i7,uniqWith:N1e}=Ox();function B1e(r){M1e(r,function(e,t){e===!1&&r.splice(t,1)})}function j1e(r,e){return r.map(function(t){if(t)if(Array.isArray(t.items)){let i=t.items[e];if(r7(i))return i;if(L1e(t,"additionalItems"))return t.additionalItems}else return t.items})}function z1e(r){return r.map(function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items})}function q1e(r,e,t){return P1e(t).reduce(function(n,s){let o=j1e(r,s),a=N1e(o.filter(i7),$1e);return n[s]=e(a,s),n},[])}n7.exports={keywords:["items","additionalItems"],resolver(r,e,t){let i=r.map(a=>a.items),n=i.filter(i7),s={};n.every(r7)?s.items=t.items(i):s.items=q1e(r,t.items,i);let o;return n.every(Array.isArray)?o=r.map(a=>a.additionalItems):n.some(Array.isArray)&&(o=z1e(r)),o&&(s.additionalItems=t.additionalItems(o)),s.additionalItems===!1&&Array.isArray(s.items)&&B1e(s.items),F1e(s)}}});var v7=w((APe,b7)=>{var o7=K$(),bg=fg(),H1e=aF(),V1e=AF(),a7=Ex(),Mx=Tx(),U1e=$F(),W1e=gx(),Dx=tx(),Lu=jh(),G1e=jF(),l7=ux(),Px=og(),Fu=ag(),c7=t7(),u7=s7(),gg=(r,e)=>r.indexOf(e)!==-1,K1e=r=>Lu(r)||r===!0||r===!1,Y1e=r=>r===!1,d7=r=>r===!0,yg=(r,e,t)=>t(r),h7=r=>l7(Px(Mx(r))),vg=r=>r!==void 0,f7=r=>Px(Mx(r.map(tye))),Nu=r=>r[0],X1e=r=>h7(r),qh=r=>Math.max.apply(Math,r),Hh=r=>Math.min.apply(Math,r),J1e=r=>r.some(d7),Z1e=r=>Fu(a7(r),Dx);function Q1e(r){return function(e,t){return bg({[r]:e},{[r]:t})}}function p7(r){let{allOf:e=[],...t}=r;return t=Lu(r)?t:r,[t,...e.map(p7)]}function m7(r,e){return r.map(t=>t&&t[e])}function eye(r,e){return r.map(function(t,i){try{return e(t,i)}catch{return}}).filter(vg)}function tye(r){return Lu(r)||Array.isArray(r)?Object.keys(r):[]}function $x(r,e){if(e=e||[],!r.length)return e;let t=r.slice(0).shift(),i=r.slice(1);return e.length?$x(i,a7(e.map(n=>t.map(s=>[s].concat(n))))):$x(i,t.map(n=>n))}function g7(r,e){let t;try{t=r.map(function(i){return JSON.stringify(i,null,2)}).join(`
11`)}catch{t=r.join(", ")}throw new Error('Could not resolve values for path:"'+e.join(".")+`". They are probably incompatible. Values: 
12`+t)}function rye(r,e,t,i,n,s){if(r.length){let o=n.complexResolvers[e];if(!o||!o.resolver)throw new Error("No resolver found for "+e);let a=t.map(d=>r.reduce((f,m)=>(d[m]!==void 0&&(f[m]=d[m]),f),{})),l=Fu(a,bg),c=o.keywords.reduce((d,f)=>({...d,[f]:(m,g=[])=>i(m,null,s.concat(f,g))}),{}),u=o.resolver(l,s.concat(e),c,n);return Lu(u)||g7(l,s.concat(e)),u}}function iye(r){return{required:r}}var nye=["properties","patternProperties","definitions","dependencies"],sye=["anyOf","oneOf"],oye=["additionalProperties","additionalItems","contains","propertyNames","not","items"],ct={type(r){if(r.some(Array.isArray)){let e=r.map(function(i){return Array.isArray(i)?i:[i]}),t=U1e.apply(null,e);if(t.length===1)return t[0];if(t.length>1)return Px(t)}},dependencies(r,e,t){return f7(r).reduce(function(n,s){let o=m7(r,s),a=Fu(o.filter(vg),Dx),l=a.filter(Array.isArray);if(l.length){if(l.length===a.length)n[s]=h7(a);else{let c=a.filter(K1e),u=l.map(iye);n[s]=t(c.concat(u),s)}return n}return a=Fu(a,bg),n[s]=t(a,s),n},{})},oneOf(r,e,t){let i=$x(o7(r)),n=eye(i,t),s=Fu(n,bg);if(s.length)return s},not(r){return{anyOf:r}},pattern(r){return r.map(e=>"(?="+e+")").join("")},multipleOf(r){let e=r.slice(0),t=1;for(;e.some(i=>!Number.isInteger(i));)e=e.map(i=>i*10),t=t*10;return H1e(e)/t},enum(r){let e=W1e.apply(null,r.concat(Dx));if(e.length)return l7(e)}};ct.$id=Nu;ct.$ref=Nu;ct.$schema=Nu;ct.additionalItems=yg;ct.additionalProperties=yg;ct.anyOf=ct.oneOf;ct.contains=yg;ct.default=Nu;ct.definitions=ct.dependencies;ct.description=Nu;ct.examples=Z1e;ct.exclusiveMaximum=Hh;ct.exclusiveMinimum=qh;ct.items=u7;ct.maximum=Hh;ct.maxItems=Hh;ct.maxLength=Hh;ct.maxProperties=Hh;ct.minimum=qh;ct.minItems=qh;ct.minLength=qh;ct.minProperties=qh;ct.properties=c7;ct.propertyNames=yg;ct.required=X1e;ct.title=Nu;ct.uniqueItems=J1e;var aye={properties:c7,items:u7};function Fx(r,e,t){t=t||[],e=V1e(e,{ignoreAdditionalProperties:!1,resolvers:ct,complexResolvers:aye,deep:!0});let i=Object.entries(e.complexResolvers);function n(a,l,c){a=o7(a.filter(vg)),c=c||[];let u=Lu(l)?l:{};if(!a.length)return;if(a.some(Y1e))return!1;if(a.every(d7))return!0;a=a.filter(Lu);let d=f7(a);if(e.deep&&gg(d,"allOf"))return Fx({allOf:a},e,t);let f=i.map(([m,g])=>d.filter(b=>g.keywords.includes(b)));return f.forEach(m=>G1e(d,m)),d.forEach(function(m){let g=m7(a,m),b=Fu(g.filter(vg),Q1e(m));if(b.length===1&&gg(sye,m))u[m]=b[0].map(v=>n([v],v));else if(b.length===1&&!gg(nye,m)&&!gg(oye,m))u[m]=b[0];else{let v=e.resolvers[m]||e.resolvers.defaultResolver;if(!v)throw new Error("No resolver found for key "+m+". You can provide a resolver for this keyword in the options, or provide a default resolver.");let S=(k,_=[])=>n(k,null,c.concat(m,_));u[m]=v(b,c.concat(m),S,e),u[m]===void 0?g7(b,c.concat(m)):u[m]===void 0&&delete u[m]}}),i.reduce((m,[g,b],v)=>({...m,...rye(f[v],g,a,n,e,c)}),u)}let s=Mx(p7(r));return n(s)}Fx.options={resolvers:ct};b7.exports=Fx});var Bu=p(()=>{});var Vh=p(()=>{});var yc=p(()=>{Vh()});var xg=p(()=>{Ot();yc();es()});var cye,$s=p(()=>{cye=N(v7());Ot();Dm();Bu();Vh();es();xg();Mm();on()});var Sg=p(()=>{Mm();$s();Ot();Vh();Bu();$m()});var qx=p(()=>{es()});var Hx=p(()=>{es()});var Kh=p(()=>{es()});var Cg=p(()=>{Ot()});var Ig=p(()=>{Cg();$s()});var kg=p(()=>{Ig()});
12var _7=p(()=>{Be()});var Wx=p(()=>{Ot()});var Gx=p(()=>{Wx();fc()});var w7,C7=p(()=>{Ot();Dm();Sg();Bu();yc();es();qx();Hx();Kh();xg();kg();Ig();$s();Cg();_7();Gx();on();(function(r){r[r.Ignore=0]="Ignore",r[r.Invert=1]="Invert",r[r.Fallback=2]="Fallback"})(w7||(w7={}))});var Xx=p(()=>{fc()});var Jx=p(()=>{Ot();$s()});var E7=p(()=>{Ot();yc();fc();Xx();Jx();kg()});var T7=p(()=>{Kh()});var uFe,A7=p(()=>{Ot();$s();uFe=Symbol("no Value")});var R7=p(()=>{Ot();es();$s();yc();on()});var O7=p(()=>{Ot();Bu();Sg();$s();on()});var Zx=p(()=>{C7();E7();Sg();Mm();Ty();Jx();kg();Ig();T7();$s();A7();R7();O7()});var D7=p(()=>{on();Zx()});var $7=p(()=>{});var Tg=p(()=>{});var P7=p(()=>{Tg()});var Qx=p(()=>{});var F7=p(()=>{Qx()});var Ag=p(()=>{});var L7=p(()=>{Ag();on()});var e_=p(()=>{on()});var N7=p(()=>{e_()});var B7=p(()=>{Ag()});var r_=p(()=>{Ot()});var j7=p(()=>{});var i_=p(()=>{});var z7=p(()=>{i_()});var q7=p(()=>{Ot();fc()});var H7=p(()=>{});var U7=w(bt=>{"use strict";var n_=Symbol.for("react.element"),s_=Symbol.for("react.portal"),Rg=Symbol.for("react.fragment"),Og=Symbol.for("react.strict_mode"),Dg=Symbol.for("react.profiler"),$g=Symbol.for("react.provider"),Mg=Symbol.for("react.context"),Sye=Symbol.for("react.server_context"),Pg=Symbol.for("react.forward_ref"),Fg=Symbol.for("react.suspense"),Lg=Symbol.for("react.suspense_list"),Ng=Symbol.for("react.memo"),Bg=Symbol.for("react.lazy"),Cye=Symbol.for("react.offscreen"),V7;V7=Symbol.for("react.module.reference");function En(r){if(typeof r=="object"&&r!==null){var e=r.$$typeof;switch(e){case n_:switch(r=r.type,r){case Rg:case Dg:case Og:case Fg:case Lg:return r;default:switch(r=r&&r.$$typeof,r){case Sye:case Mg:case Pg:case Bg:case Ng:case $g:return r;default:return e}}case s_:return e}}}bt.ContextConsumer=Mg;bt.ContextProvider=$g;bt.Element=n_;bt.ForwardRef=Pg;bt.Fragment=Rg;bt.Lazy=Bg;bt.Memo=Ng;bt.Portal=s_;bt.Profiler=Dg;bt.StrictMode=Og;bt.Suspense=Fg;bt.SuspenseList=Lg;bt.isAsyncMode=function(){return!1};bt.isConcurrentMode=function(){return!1};bt.isContextConsumer=function(r){return En(r)===Mg};bt.isContextProvider=function(r){return En(r)===$g};bt.isElement=function(r){return typeof r=="object"&&r!==null&&r.$$typeof===n_};bt.isForwardRef=function(r){return En(r)===Pg};bt.isFragment=function(r){return En(r)===Rg};bt.isLazy=function(r){return En(r)===Bg};bt.isMemo=function(r){return En(r)===Ng};bt.isPortal=function(r){return En(r)===s_};bt.isProfiler=function(r){return En(r)===Dg};bt.isStrictMode=function(r){return En(r)===Og};bt.isSuspense=function(r){return En(r)===Fg};bt.isSuspenseList=function(r){return En(r)===Lg};bt.isValidElementType=function(r){return typeof r=="string"||typeof r=="function"||r===Rg||r===Dg||r===Og||r===Fg||r===Lg||r===Cye||typeof r=="object"&&r!==null&&(r.$$typeof===Bg||r.$$typeof===Ng||r.$$typeof===$g||r.$$typeof===Mg||r.$$typeof===Pg||r.$$typeof===V7||r.getModuleId!==void 0)};bt.typeOf=En});var G7=w((m7e,W7)=>{"use strict";W7.exports=U7()});var Iye,kye,Eye,o_=p(()=>{Iye=N(Oe()),kye=N(re()),Eye=N(G7());yc()});var a_=p(()=>{});var K7=p(()=>{o_()});function jg(r,e){return`${Z6(r)?r:r[wh]}__${e}`}function ju(r){return jg(r,"description")}function l_(r){return jg(r,"error")}function c_(r){return jg(r,"examples")}function u_(r){return jg(r,"help")}function mo(r,e=!1){let t=e?` ${c_(r)}`:"";return`${l_(r)} ${ju(r)} ${u_(r)}${t}`}var Y7=p(()=>{KQ();Ot()});var X7=p(()=>{});var J7=p(()=>{});var Z7=p(()=>{});var Q7=p(()=>{});var eL=p(()=>{});var tL=p(()=>{on()});var rL=p(()=>{});var d_=p(()=>{Ot()});var iL=p(()=>{r_()});var nL=p(()=>{});var sL=p(()=>{Tg()});var aL=p(()=>{Kh();d_()});var lL=p(()=>{Ot()});var cL=p(()=>{on()});var uL=p(()=>{});var Mi,dL=p(()=>{(function(r){r.ArrayItemTitle="Item",r.MissingItems="Missing items definition",r.YesLabel="Yes",r.NoLabel="No",r.CloseLabel="Close",r.ErrorsLabel="Errors",r.NewStringDefault="New Value",r.AddButton="Add",r.AddItemButton="Add Item",r.CopyButton="Copy",r.MoveDownButton="Move down",r.MoveUpButton="Move up",r.RemoveButton="Remove",r.NowLabel="Now",r.ClearLabel="Clear",r.AriaDateLabel="Select a date",r.PreviewLabel="Preview",r.DecrementAriaLabel="Decrease value by 1",r.IncrementAriaLabel="Increase value by 1",r.UnknownFieldType="Unknown field type %1",r.OptionPrefix="Option %1",r.TitleOptionPrefix="%1 option %2",r.
12KeyLabel="%1 Key",r.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',r.UnsupportedField="Unsupported field schema.",r.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",r.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",r.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",r.FilesInfo="**%1** (%2, %3 bytes)"})(Mi||(Mi={}))});var hL=p(()=>{Ot();a_();on()});var fL=p(()=>{Ot();hL();$s();on()});var pL=p(()=>{fL()});var Be=p(()=>{ZR();QR();rO();iO();D7();$7();P7();on();F7();L7();N7();e_();B7();Ag();r_();Dm();j7();Bu();z7();yc();q7();H7();fc();o_();Vh();a_();K7();Y7();Cg();Xx();qx();es();X7();J7();Hx();Kh();xg();Gx();Z7();Tg();Q7();i_();Qx();eL();tL();Wx();rL();d_();iL();nL();sL();aL();lL();$m();cL();uL();dL();Ot();pL();Zx()});var txe,rxe,vL=p(()=>{txe=N(Oe()),rxe=N(re());Be()});var ixe,yL=p(()=>{ixe=N(Oe());Be()});var xL,nxe,_L=p(()=>{xL=N(Oe()),nxe=N(re());Be()});var sxe,wL,SL=p(()=>{sxe=N(Oe()),wL=N(re());Be()});var CL,oxe,IL=p(()=>{CL=N(Oe()),oxe=N(re());Be()});var h_,kL,EL=p(()=>{h_=N(Oe()),kL=N(re());Be()});var axe,TL=p(()=>{axe=N(Oe());Be()});var lxe,AL=p(()=>{lxe=N(re())});var RL=p(()=>{vL();yL();_L();SL();IL();EL();TL();AL()});var cxe,OL=p(()=>{cxe=N(Oe());Be()});var DL,$L=p(()=>{DL=N(Oe())});var ML,PL=p(()=>
12{ML=N(Oe());Be()});var uxe,FL=p(()=>{uxe=N(Oe());Be()});var f_,dxe,LL=p(()=>{f_=N(Oe()),dxe=N(re());Be()});var hxe,NL=p(()=>{hxe=N(Oe());Be()});var fxe,p_=p(()=>{fxe=N(Oe());Be()});var pxe,BL=p(()=>{pxe=N(Oe());Be();p_()});var jL=p(()=>{NL();BL();p_()});var mxe,zL=p(()=>{mxe=N(Oe())});var qL,HL=p(()=>{qL=N(Oe());Be()});var VL,m_=p(()=>{VL=N(Oe())});var UL,WL=p(()=>{UL=N(Oe());Be();m_()});var GL=p(()=>{WL()});var bxe,KL=p(()=>{bxe=N(Oe());Be()});var vxe,YL=p(()=>{vxe=N(Oe());Be()});var XL,JL=p(()=>{XL=N(Oe());Be()});var ZL,QL=p(()=>{ZL=N(Oe())});var eN,tN=p(()=>{eN=N(Oe());Be()});var rN,iN=p(()=>{rN=N(Oe());Be();m_()});var nN=p(()=>{OL();$L();PL();FL();LL();jL();zL();HL();GL();KL();YL();JL();QL();tN();iN()});var sN,zg,oN=p(()=>{sN=N(Oe()),zg=N(re());Be()});var yxe,aN=p(()=>{yxe=N(Oe())});var lN,xxe,cN=p(()=>{lN=N(Oe()),xxe=N(re());Be()});var uN,_xe,dN=p(()=>{uN=N(Oe()),_xe=N(re());Be()});var wxe,hN=p(()=>{wxe=N(Oe());Be()});var Sxe,Cxe,fN=p(()=>{Sxe=N(Oe()),Cxe=N(re());Be()});var Ixe,pN=p(()=>{Ixe=N(Oe());Be()});var kxe,mN=p(()=>{kxe=N(Oe());Be()});var g_,gN,bN=p(()=>{g_=N(Oe()),gN=N(re());Be()});var Exe,vN=p(()=>{Exe=N(Oe())});var Txe,yN=p(()=>{Txe=N(Oe());Be()});var xN,Axe,_N=p(()=>{xN=N(Oe()),Axe=N(re());Be()});var wN,SN=p(()=>{wN=N(Oe())});var CN,Rxe,IN=p(()=>{CN=N(Oe()),Rxe=N(re());Be()});function Oxe({id:r,options:e={},placeholder:t,value:i,required:n,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:c,onFocus:u}){let d=(0,qg.useCallback)(({target:{value:g}})=>l(g===""?e.emptyValue:g),[l,e.emptyValue]),f=(0,qg.useCallback)(({target:g})=>c(r,g&&g.value),[c,r]),m=(0,qg.useCallback)(({target:g})=>u(r,g&&g.value),[r,u]);return(0,kN.jsx)("textarea",{id:r,name:r,className:"form-control",value:i||"",placeholder:t,required:n,disabled:s,readOnly:o,autoFocus:a,rows:e.rows,onBlur:f,onFocus:m,onChange:d,"aria-describedby":mo(r)})}var kN,qg,EN=p(()=>{kN=N(Oe()),qg=N(re());Be();Oxe.defaultProps={autofocus:!1,options:{}}});var Dxe,TN=p(()=>{Dxe=N(Oe());Be()});var $xe,Mxe,AN=p(()=>{$xe=N(Oe()),Mxe=N(re());Be()});var Pxe,RN=p(()=>{Pxe=N(Oe());Be()});var Fxe,ON=p(()=>{Fxe=N(Oe());Be()});var DN=p(()=>{oN();aN();cN();dN();hN();fN();pN();mN();bN();vN();yN();_N();SN();IN();EN();TN();AN();RN();ON()});var b_=p(()=>{Be();RL();nN();DN()});var $N,MN,v_=p(()=>{$N=N(Oe()),MN=N(re());Be();b_()});var Bxe,jxe,PN=p(()=>{Bxe=N(Oe()),jxe=N(re());v_()});var FN=p(()=>{v_();PN();b_()});var zxe,qxe,LN=p(()=>{Sn();zxe=N(qe());FN();Be();qxe=N(re())});var NN=p(()=>{});var BN,jN=p(()=>{BN=N(re())});var zN,qN=p(()=>{Rt();(function(r){function e(){let t=document.createElement("div"),i=document.createElement("iframe");return i.setAttribute("sandbox",""),i.style.height="100%",i.style.width="100%",t.appendChild(i),t}r.createNode=e})(zN||(zN={}))});var HN,VN=p(()=>{Fr();Gn();Xe();Rt();(function(r){r.DEFAULT_RANK=100})(HN||(HN={}))});function Tn(r,e,t){return isNaN(r)||r<=e?e:r>=t?t:r}function Pi(r,e,t){return isNaN(r)||r<=e?0:r>=t?1:r/(t-e)}function ha(r,e,t){return isNaN(r)?e:e+r*(t-e)}function y_(r){return r*(Math.PI/180)}function UN(r){return r*(180/Math.PI)}function WN(r){let e=Math.round(Tn(r,0,255)).toString(16);return e.length===1?"0"+e:e}function Vr(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:e+r*(t-e)}function Hg(r,e,t){if(r<=0)return e%360;if(r>=1)return t%360;let i=(e-t+360)%360,n=(t-e+360)%360;return i<=n?(e-i*r+360)%360:(e+i*r+360)%360}function $t(r,e){let t=Math.pow(10,e);return Math.round(r*t)/t}var _qe,An=p(()=>{_qe=Math.PI*2});var ri,Zh=p(()=>{An();ri=class{constructor(e,t,i){this.h=e,this.s=t,this.l=i}static fromObject(e){return e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.l)?new ri(e.h,e.s,e.l):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new ri($t(this.h,e),$t(this.s,e),$t(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}});var go,Vg=p(()=>{An();go=class{constructor(e,t,i){this.h=e,this.s=t,this.v=i}static fromObject(e){return e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.v)?new go(e.h,e.s,e.v):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new go($t(this.h,e),$t(this.s,e),$t(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}});var ir,Ug=p(()=>{An();ir=class{constructor(e,t,i){this.l=e,this.a=t,this.b=i}static fromObject(e){return e&&!isNaN(e.l)&&!isNaN(e.a)&&!isNaN(e.b)?new ir(e.l,e.a,e.b):null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new ir($t(this.l,e),$t(this.a,e),$t(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}};ir.epsilon=216/24389;ir.kappa=24389/27});var os,Qh=p(()=>{An();os=class{constructor(e,t,i){this.l=e,this.c=t,this.h=i}static fromObject(e){return e&&!isNaN(e.l)&&!isNaN(e.c)&&!isNaN(e.h)?new os(e.l,e.c,e.h):null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new os($t(this.l,e),$t(this.c,e),$t(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}});
12var et,fa=p(()=>{An();et=class{constructor(e,t,i,n){this.r=e,this.g=t,this.b=i,this.a=typeof n=="number"&&!isNaN(n)?n:1}static fromObject(e){return e&&!isNaN(e.r)&&!isNaN(e.g)&&!isNaN(e.b)?new et(e.r,e.g,e.b,e.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(ha(this.r,0,255))},${Math.round(ha(this.g,0,255))},${Math.round(ha(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(ha(this.r,0,255))},${Math.round(ha(this.g,0,255))},${Math.round(ha(this.b,0,255))},${Tn(this.a,0,1)})`}roundToPrecision(e){return new et($t(this.r,e),$t(this.g,e),$t(this.b,e),$t(this.a,e))}clamp(){return new et(Tn(this.r,0,1),Tn(this.g,0,1),Tn(this.b,0,1),Tn(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return WN(ha(e,0,255))}}});var Ar,Wg=p(()=>{An();Ar=class{constructor(e,t,i){this.x=e,this.y=t,this.z=i}static fromObject(e){return e&&!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)?new Ar(e.x,e.y,e.z):null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new Ar($t(this.x,e),$t(this.y,e),$t(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}};Ar.whitePoint=new Ar(.95047,1,1.08883)});function Kg(r){return r.r*.2126+r.g*.7152+r.b*.0722}function Gg(r){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return Kg(new et(e(r.r),e(r.g),e(r.b),1))}function x_(r,e){let t=Gg(r),i=Gg(e);return t>i?GN(t,i):GN(i,t)}function an(r){let e=Math.max(r.r,r.g,r.b),t=Math.min(r.r,r.g,r.b),i=e-t,n=0;i!==0&&(e===r.r?n=60*((r.g-r.b)/i%6):e===r.g?n=60*((r.b-r.r)/i+2):n=60*((r.r-r.g)/i+4)),n<0&&(n+=360);let s=(e+t)/2,o=0;return i!==0&&(o=i/(1-Math.abs(2*s-1))),new ri(n,o,s)}function Ms(r,e=1){let t=(1-Math.abs(2*r.l-1))*r.s,i=t*(1-Math.abs(r.h/60%2-1)),n=r.l-t/2,s=0,o=0,a=0;return r.h<60?(s=t,o=i,a=0):r.h<120?(s=i,o=t,a=0):r.h<180?(s=0,o=t,a=i):r.h<240?(s=0,o=i,a=t):r.h<300?(s=i,o=0,a=t):r.h<360&&(s=t,o=0,a=i),new et(s+n,o+n,a+n,e)}function __(r){let e=Math.max(r.r,r.g,r.b),t=Math.min(r.r,r.g,r.b),i=e-t,n=0;i!==0&&(e===r.r?n=60*((r.g-r.b)/i%6):e===r.g?n=60*((r.b-r.r)/i+2):n=60*((r.r-r.g)/i+4)),n<0&&(n+=360);let s=0;return e!==0&&(s=i/e),new go(n,s,e)}function KN(r,e=1){let t=r.s*r.v,i=t*(1-Math.abs(r.h/60%2-1)),n=r.v-t,s=0,o=0,a=0;return r.h<60?(s=t,o=i,a=0):r.h<120?(s=i,o=t,a=0):r.h<180?(s=0,o=t,a=i):r.h<240?(s=0,o=i,a=t):r.h<300?(s=i,o=0,a=t):r.h<360&&(s=t,o=0,a=i),new et(s+n,o+n,a+n,e)}function Hxe(r){let e=0,t=0;return r.h!==0&&(e=Math.cos(y_(r.h))*r.c,t=Math.sin(y_(r.h))*r.c),new ir(r.l,e,t)}function Vxe(r){let e=0;(Math.abs(r.b)>.001||Math.abs(r.a)>.001)&&(e=UN(Math.atan2(r.b,r.a))),e<0&&(e+=360);let t=Math.sqrt(r.a*r.a+r.b*r.b);return new os(r.l,t,e)}function Uxe(r){let e=(r.l+16)/116,t=e+r.a/500,i=e-r.b/200,n=Math.pow(t,3),s=Math.pow(e,3),o=Math.pow(i,3),a=0;n>ir.epsilon?a=n:a=(116*t-16)/ir.kappa;let l=0;r.l>ir.epsilon*ir.kappa?l=s:l=r.l/ir.kappa;let c=0;return o>ir.epsilon?c=o:c=(116*i-16)/ir.kappa,a=Ar.whitePoint.x*a,l=Ar.whitePoint.y*l,c=Ar.whitePoint.z*c,new Ar(a,l,c)}function Wxe(r){function e(l){return l>ir.epsilon?Math.pow(l,1/3):(ir.kappa*l+16)/116}let t=e(r.x/Ar.whitePoint.x),i=e(r.y/Ar.whitePoint.y),n=e(r.z/Ar.whitePoint.z),s=116*i-16,o=500*(t-i),a=200*(i-n);return new ir(s,o,a)}function Yg(r){function e(l){return l<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}let t=e(r.r),i=e(r.g),n=e(r.b),s=t*.4124564+i*.3575761+n*.1804375,o=t*.2126729+i*.7151522+n*.072175,a=t*.0193339+i*.119192+n*.9503041;return new Ar(s,o,a)}function w_(r,e=1){function t(o){return o<=.0031308?o*12.92:1.055*Math.pow(o,1/2.4)-.055}let i=t(r.x*3.2404542-r.y*1.5371385-r.z*.4985314),n=t(r.x*-.969266+r.y*1.8760108+r.z*.041556),s=t(r.x*.0556434-r.y*.2040259+r.z*1.0572252);return new et(i,n,s,e)}function ef(r){return Wxe(Yg(r))}function Xg(r,e=1){return w_(Uxe(r),e)}function tf(r){return Vxe(ef(r))}function Jg(r,e=1){return Xg(Hxe(r),e)}var GN,_c=p(()=>{Zh();Vg();Ug();Qh();fa();Wg();An();GN=(r,e)=>(r+.05)/(e+.05)});function I_(r,e,t=18){let i=tf(r),n=i.c+e*t;return n<0&&(n=0),Jg(new os(i.l,n,i.h))}function S_(r,e){return r*e}function k_(r,e){return new et(S_(r.r,e.r),S_(r.g,e.g),S_(r.b,e.b),1)}function C_(r,e){return r<.5?Tn(2*e*r,0,1):Tn(1-2*(1-e)*(1-r),0,1)}function E_(r,e){return new et(C_(r.r,e.r),C_(r.g,e.g),C_(r.b,e.b),1)}var YN,T_=p(()=>{_c();Qh();fa();An();(function(r){r[r.Burn=0]="Burn",r[r.Color=1]="Color",r[r.Darken=2]="Darken",r[r.Dodge=3]="Dodge",r[r.Lighten=4]="Lighten",r[r.Multiply=5]="Multiply",r[r.Overlay=6]="Overlay",r[r.Screen=7]="Screen"})(YN||(YN={}))});function Gxe(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:new et(Vr(r,e.r,t.r),Vr(r,e.g,t.g),Vr(r,e.b,t.b),Vr(r,e.a,t.a))}function Kxe(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:new ri(Hg(r,e.h,t.h),Vr(r,e.s,t.s),Vr(r,e.l,t.l))}function Yxe(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:new go(Hg(r,e.h,t.h),Vr(r,e.s,t.s),Vr(r,e.v,t.v))}function Xxe(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:new Ar(Vr(r,e.x,t.x),Vr(r,e.y,t.y),Vr(r,e.z,t.z))}function Jxe(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:new ir(Vr(r,e.l,t.l),Vr(r,e.a,t.a),Vr(r,e.b,t.b))}function Zxe(r,e,t){return isNaN(r)||r<=0?e:r>=1?t:new os(Vr(r,e.l,t.l),Vr(r,e.c,t.c),Hg(r,e.h,t.h))}function wc(r,e,t,i){if(isNaN(r)||r<=0)return t;if(r>=1)return i;switch(e){case ii.HSL:return Ms(Kxe(r,an(t),an(i)));case ii.HSV:return KN(Yxe(r,__(t),__(i)));case ii.XYZ:return w_(Xxe(r,Yg(t),Yg(i)));case ii.LAB:return Xg(Jxe(r,ef(t),ef(i)));case ii.LCH:return Jg(Zxe(r,tf(t),tf(i)));default:return Gxe(r,t,i)}}var ii,rf=p(()=>{_c();Zh();Vg();Ug();Qh();fa();Wg();An();(function(r){r[r.RGB=0]="RGB",r[r.HSL=1]="HSL",r[r.HSV=2]="HSV",r[r.XYZ=3]="XYZ",r[r.LAB=4]="LAB",r[r.LCH=5]="LCH"})(ii||(ii={}))});var ni,Zg=p(()=>{_c();rf();ni=class{constructor(e){if(e==null||e.length===0)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(e==null||e.length===0)throw new Error("The colors argument must be non-empty");let t=new Array(e.length);for(let i=0;i<e.length;i++)i===0?t[i]={color:e[i],position:0}:i===e.length-1?t[i]={color:e[i],position:1}:t[i]={color:e[i],position:i*(1/(e.length-1))};return new ni(t)}
12getColor(e,t=ii.RGB){if(this.stops.length===1)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let i=0;for(let o=0;o<this.stops.length;o++)this.stops[o].position<=e&&(i=o);let n=i+1;n>=this.stops.length&&(n=this.stops.length-1);let s=(e-this.stops[i].position)*(1/(this.stops[n].position-this.stops[i].position));return wc(s,t,this.stops[i].color,this.stops[n].color)}trim(e,t,i=ii.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new ni([{color:this.getColor(e,i),position:0}]);let n=[];for(let a=0;a<this.stops.length;a++)this.stops[a].position>=e&&this.stops[a].position<=t&&n.push(this.stops[a]);if(n.length===0)return new ni([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);n[0].position!==e&&n.unshift({color:this.getColor(e),position:e}),n[n.length-1].position!==t&&n.push({color:this.getColor(t),position:t});let s=t-e,o=new Array(n.length);for(let a=0;a<n.length;a++)o[a]={color:n[a].color,position:(n[a].position-e)/s};return new ni(o)}findNextColor(e,t,i=!1,n=ii.RGB,s=.005,o=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);let a=this.getColor(e,n),l=i?0:1,c=this.getColor(l,n);if(x_(a,c)<=t)return l;let d=i?0:e,f=i?e:0,m=l,g=0;for(;g<=o;){m=Math.abs(f-d)/2+d;let b=this.getColor(m,n),v=x_(a,b);if(Math.abs(v-t)<=s)return m;v>t?i?d=m:f=m:i?f=m:d=m,g++}return m}clone(){let e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new ni(e)}sortColorScaleStops(e){return e.sort((t,i)=>{let n=t.position,s=i.position;return n<s?-1:n>s?1:0})}}});var A_,XN=p(()=>{A_={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431}
12,lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}}});function Qxe(r){return QN.test(r)}function e_e(r){return eB.test(r)}function t_e(r){return e_e(r)}function r_e(r){return JN.test(r)}function i_e(r){return ZN.test(r)}function n_e(r){return A_.hasOwnProperty(r)}function Fi(r){let e=QN.exec(r);if(e===null)return null;let t=e[1];if(t.length===3){let n=t.charAt(0),s=t.charAt(1),o=t.charAt(2);t=n.concat(n,s,s,o,o)}let i=parseInt(t,16);return isNaN(i)?null:new et(Pi((i&16711680)>>>16,0,255),Pi((i&65280)>>>8,0,255),Pi(i&255,0,255),1)}function s_e(r){let e=eB.exec(r);if(e===null)return null;let t=e[1];if(t.length===4){let n=t.charAt(0),s=t.charAt(1),o=t.charAt(2),a=t.charAt(3);t=n.concat(n,s,s,o,o,a,a)}let i=parseInt(t,16);return isNaN(i)?null:new et(Pi((i&16711680)>>>16,0,255),Pi((i&65280)>>>8,0,255),Pi(i&255,0,255),Pi((i&4278190080)>>>24,0,255))}function o_e(r){let e=JN.exec(r);if(e===null)return null;let t=e[1].split(",");return new et(Pi(Number(t[0]),0,255),Pi(Number(t[1]),0,255),Pi(Number(t[2]),0,255),1)}function a_e(r){let e=ZN.exec(r);if(e===null)return null;let t=e[1].split(",");return t.length===4?new et(Pi(Number(t[0]),0,255),Pi(Number(t[1]),0,255),Pi(Number(t[2]),0,255),Number(t[3])):null}function l_e(r){let e=A_[r.toLowerCase()];return e?new et(e.r,e.g,e.b,e.hasOwnProperty("a")?e.a:void 0):null}function nf(r){let e=r.toLowerCase();return Qxe(e)?Fi(e):t_e(e)?s_e(e):r_e(e)?o_e(e):i_e(e)?a_e(e):n_e(e)?l_e(e):null}var JN,ZN,QN,eB,Qg=p(()=>{fa();An();XN();JN=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,ZN=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,QN=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,eB=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i});var as,bHe,R_=p(()=>{T_();_c();rf();fa();Zg();Qg();as=class{constructor(e){this.config=Object.assign({},as.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(let i in e)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(e[i])||
12(this.config[i]=e[i],t=!0):e[i]!==this.config[i]&&(this.config[i]=e[i],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){let e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){let e=an(this.config.baseColor),i=new ni([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark),n=i.getColor(0),s=i.getColor(1),o=n,a=s;if(e.s>=this.config.saturationAdjustmentCutoff&&(o=I_(o,this.config.saturationLight),a=I_(a,this.config.saturationDark)),this.config.multiplyLight!==0){let l=k_(this.config.baseColor,o);o=wc(this.config.multiplyLight,this.config.interpolationMode,o,l)}if(this.config.multiplyDark!==0){let l=k_(this.config.baseColor,a);a=wc(this.config.multiplyDark,this.config.interpolationMode,a,l)}if(this.config.overlayLight!==0){let l=E_(this.config.baseColor,o);o=wc(this.config.overlayLight,this.config.interpolationMode,o,l)}if(this.config.overlayDark!==0){let l=E_(this.config.baseColor,a);a=wc(this.config.overlayDark,this.config.interpolationMode,a,l)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new ni([{position:0,color:this.config.baseColor},{position:1,color:a.clamp()}]):this.config.baseScalePosition>=1?new ni([{position:0,color:o.clamp()},{position:1,color:this.config.baseColor}]):new ni([{position:0,color:o.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:a.clamp()}]):new ni([{position:0,color:o.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:a.clamp()}])}};as.defaultPaletteConfig={baseColor:Fi("#808080"),steps:11,interpolationMode:ii.RGB,scaleColorLight:new et(1,1,1,1),scaleColorDark:new et(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};as.greyscalePaletteConfig={baseColor:Fi("#808080"),steps:11,interpolationMode:ii.RGB,scaleColorLight:new et(1,1,1,1),scaleColorDark:new et(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};bHe={targetSize:63,spacing:4,scaleColorLight:as.defaultPaletteConfig.scaleColorLight,scaleColorDark:as.defaultPaletteConfig.scaleColorDark}});var tB=p(()=>{});var rB=p(()=>{});var iB=p(()=>{});var Sc,nB=p(()=>{fa();R_();_c();Zg();Zh();rf();Qg();Sc=class{constructor(e){this.palette=[],this.config=Object.assign({},Sc.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);let t=.14,i=.06,n=new et(t,t,t,1),s=94,a=new as(Object.assign(Object.assign({},as.greyscalePaletteConfig),{baseColor:n,baseScalePosition:(1-t)*100/s,steps:e})).palette,l=Kg(this.config.baseColor),c=an(this.config.baseColor).l,u=(l+c)/2,f=this.matchRelativeLuminanceIndex(u,a)/(e-1),g=this.matchRelativeLuminanceIndex(t,a)/(e-1),b=an(this.config.baseColor),v=Ms(ri.fromObject({h:b.h,s:b.s,l:t})),S=Ms(ri.fromObject({h:b.h,s:b.s,l:i})),k=new Array(5);k[0]={position:0,color:new et(1,1,1,1)},k[1]={position:f,color:this.config.baseColor},k[2]={position:g,color:v},k[3]={position:.99,color:S},k[4]={position:1,color:new et(0,0,0,1)};let _=new ni(k);this.palette=new Array(e);for(let E=0;E<e;E++){let R=_.getColor(E/(e-1),ii.RGB);this.palette[E]=R}}matchRelativeLuminanceIndex(e,t){let i=Number.MAX_VALUE,n=0,s=0,o=t.length;for(;s<o;s++){let a=Math.abs(Kg(t[s])-e);a<i&&(i=a,n=s)}return n}};Sc.defaultPaletteConfig={baseColor:Fi("#808080"),steps:94}});var sB=p(()=>{});var oB=p(()=>{});var zu=p(()=>{T_();_c();Zh();Vg();rf();Ug();Qh();R_();iB();fa();Zg();Wg();nB();tB();An();sB();Qg();oB();rB()});function e0(r,e){let t=r.relativeLuminance>e.relativeLuminance?r:e,i=r.relativeLuminance>e.relativeLuminance?e:r;return(t.relativeLuminance+.05)/(i.relativeLuminance+.05)}var O_=p(()=>{});function aB(r){let e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(let t in e)if(typeof e[t]!=typeof r[t])return!1;return!0}var yr,qu,Hu=p(()=>{zu();O_();yr=Object.freeze({create(r,e,t){return new qu(r,e,t)},from(r){return new qu(r.r,r.g,r.b)}});qu=class extends et{constructor(e,t,i){super(e,t,i,1),this.toColorString=this.toStringHexRGB,this.contrast=e0.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=Gg(this)}static fromObject(e){return new qu(e.r,e.g,e.b)}}});function pa(r){return yr.create(r,r,r)}var sf,Cc=p(()=>{Hu();sf={LightMode:1,DarkMode:.23}});function Vu(r){return r.relativeLuminance<=c_e}var c_e,t0=p(()=>{c_e=(-.1+Math.sqrt(.21))/2});function r0(){let r=new WeakMap;return function(e){let t=r.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=r.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),r.set(e,t)}return t}}var ls,lB,Ic,Rn,bo=p(()=>{ls=function(){if(typeof globalThis<"u"||typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();ls.trustedTypes===void 0&&(ls.trustedTypes={createPolicy:(r,e)=>e});lB={configurable:!1,enumerable:!1,writable:!1};ls.FAST===void 0&&Reflect.defineProperty(ls,"FAST",Object.assign({value:Object.create(null)},lB));Ic=ls.FAST;if(Ic.getById===void 0){let r=Object.create(null);Reflect.defineProperty(Ic,"getById",Object.assign({value(e,t){let i=r[e];return i===void 0&&(i=t?r[e]=t():null),i}},lB))}Rn=Object.freeze([])});var D_,cB,$_,of,M_,i0,ie,On=p(()=>{bo();D_=ls.FAST.getById(1,()=>{let r=[],e=[];function t(){if(e.length)throw e.shift()}function i(o){try{o.call()}catch(a){e.push(a),setTimeout(t,0)}}function n(){let a=0;for(;a<r.length;)if(i(r[a]),a++,a>1024){for(let l=0,c=r.length-a;l<c;l++)r[l]=r[l+a];r.length-=a,a=0}r.length=0}function s(o){r.length<1&&ls.requestAnimationFrame(n),r.push(o)}return Object.freeze({enqueue:s,process:n})}),cB=ls.trustedTypes.createPolicy("fast-html",{createHTML:r=>r}),$_=cB,of=`fast-${Math.random().toString(36).substring(2,8)}
12`,M_=`${of}{`,i0=`}${of}`,ie=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(r){if($_!==cB)throw new Error("The HTML policy can only be set once.");$_=r},createHTML(r){return $_.createHTML(r)},isMarker(r){return r&&r.nodeType===8&&r.data.startsWith(of)},extractDirectiveIndexFromMarker(r){return parseInt(r.data.replace(`${of}:`,""))},createInterpolationPlaceholder(r){return`${M_}${r}${i0}`},createCustomAttributePlaceholder(r,e){return`${r}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(r){return`<!--${of}:${r}-->`},queueUpdate:D_.enqueue,processUpdates:D_.process,nextUpdate(){return new Promise(D_.enqueue)},setAttribute(r,e,t){t==null?r.removeAttribute(e):r.setAttribute(e,t)},setBooleanAttribute(r,e,t){t?r.setAttribute(e,""):r.removeAttribute(e)},removeChildNodes(r){for(let e=r.firstChild;e!==null;e=r.firstChild)r.removeChild(e)},createTemplateWalker(r){return document.createTreeWalker(r,133,null,!1)}})});var ma,Uu,af=p(()=>{ma=class{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){let t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){let t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{let i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){let t=this.spillover,i=this.source;if(t===void 0){let n=this.sub1,s=this.sub2;n!==void 0&&n.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let n=0,s=t.length;n<s;++n)t[n].handleChange(i,e)}},Uu=class{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;let i=this.subscribers[e];i!==void 0&&i.notify(e),(t=this.sourceSubscribers)===null||t===void 0||t.notify(e)}subscribe(e,t){var i;if(t){let n=this.subscribers[t];n===void 0&&(this.subscribers[t]=n=new ma(this.source)),n.subscribe(e)}else this.sourceSubscribers=(i=this.sourceSubscribers)!==null&&i!==void 0?i:new ma(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var i;if(t){let n=this.subscribers[t];n!==void 0&&n.unsubscribe(e)}else(i=this.sourceSubscribers)===null||i===void 0||i.unsubscribe(e)}}});function M(r,e){he.defineProperty(r,e)}function dB(r,e,t){return Object.assign({},t,{get:function(){return he.trackVolatile(),t.get.apply(this)}})}var he,uB,ga,ba,Ps=p(()=>{On();bo();af();he=Ic.getById(2,()=>{let r=/(:|&&|\|\||if)/,e=new WeakMap,t=ie.queueUpdate,i,n=c=>
12{throw new Error("Must call enableArrayObservation before observing arrays.")};function s(c){let u=c.$fastController||e.get(c);return u===void 0&&(Array.isArray(c)?u=n(c):e.set(c,u=new Uu(c))),u}let o=r0();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return i!==void 0&&i.watch(u,this.name),u[this.field]}setValue(u,d){let f=this.field,m=u[f];if(m!==d){u[f]=d;let g=u[this.callback];typeof g=="function"&&g.call(u,m,d),s(u).notify(this.name)}}}class l extends ma{constructor(u,d,f=!1){super(u,d),this.binding=u,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,d){this.needsRefresh&&this.last!==null&&this.disconnect();let f=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let m=this.binding(u,d);return i=f,m}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,d){let f=this.last,m=s(u),g=f===null?this.first:{};if(g.propertySource=u,g.propertyName=d,g.notifier=m,m.subscribe(this,d),f!==null){if(!this.needsRefresh){let b;i=void 0,b=f.propertySource[f.propertyName],i=this,u===b&&(this.needsRefresh=!0)}f.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,t(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{let d=u;return d===void 0?{value:void 0,done:!0}:(u=u.next,{value:d,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){n=c},getNotifier:s,track(c,u){i!==void 0&&i.watch(c,u)},trackVolatile(){i!==void 0&&(i.needsRefresh=!0)},notify(c,u){s(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new a(u)),o(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(d){u.setValue(this,d)}})},getAccessors:o,binding(c,u,d=this.isVolatileBinding(c)){return new l(c,u,d)},isVolatileBinding(c){return r.test(c.toString())}})});uB=Ic.getById(3,()=>{let r=null;return{get(){return r},set(e){r=e}}}),ga=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return uB.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){uB.set(e)}};he.defineProperty(ga.prototype,"index");he.defineProperty(ga.prototype,"length");ba=Object.seal(new ga)});var va,Wu,ya,xa=p(()=>{On();va=class{constructor(){this.targetIndex=0}},Wu=class extends va{constructor(){super(...arguments),this.createPlaceholder=ie.createInterpolationPlaceholder}},ya=class extends va{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return ie.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}});function u_e(r,e){this.source=r,this.context=e,this.bindingObserver===null&&(this.bindingObserver=he.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(r,e))}function d_e(r,e){this.source=r,this.context=e,this.target.addEventListener(this.targetName,this)}function h_e(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function f_e(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let r=this.target.$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}function p_e(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function m_e(r){ie.setAttribute(this.target,this.targetName,r)}function g_e(r){ie.setBooleanAttribute(this.target,this.targetName,r)}function b_e(r){if(r==null&&(r=""),r.create){this.target.textContent="";let e=this.target.$fastView;e===void 0?e=r.create():this.target.$fastTemplate!==r&&(e.isComposed&&(e.remove(),e.unbind()),e=r.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=r)}else{let e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=r}}function v_e(r){this.target[this.targetName]=r}function y_e(r){let e=this.classVersions||Object.create(null),t=this.target,i=this.version||0;if(r!=null&&r.length){let n=r.split(/\s+/);for(let s=0,o=n.length;s<o;++s){let a=n[s];a!==""&&(e[a]=i,t.classList.add(a))}}if(this.classVersions=e,this.version=i+1,i!==0){i-=1;for(let n in e)e[n]===i&&t.classList.remove(n)}}var kc,P_,n0=p(()=>{On();Ps();xa();kc=class extends Wu{constructor(e){super(),this.binding=e,this.bind=u_e,this.unbind=h_e,this.updateTarget=m_e,this.isBindingVolatile=he.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,e!==void 0)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=v_e,this.cleanedTargetName==="innerHTML"){let t=this.binding;this.binding=(i,n)=>ie.createHTML(t(i,n))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=g_e;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=d_e,this.unbind=p_e;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=y_e);break}}targetAtContent(){this.updateTarget=b_e,this.unbind=f_e}
12createBehavior(e){return new P_(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},P_=class{constructor(e,t,i,n,s,o,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=n,this.unbind=s,this.updateTarget=o,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){ga.setEvent(e);let t=this.binding(this.source,this.context);ga.setEvent(null),t!==!0&&e.preventDefault()}}});function x_e(r){if(r.length===1)return r[0];let e,t=r.length,i=r.map(o=>typeof o=="string"?()=>o:(e=o.targetName||e,o.binding)),n=(o,a)=>{let l="";for(let c=0;c<t;++c)l+=i[c](o,a);return l},s=new kc(n);return s.targetName=e,s}function fB(r,e){let t=e.split(M_);if(t.length===1)return null;let i=[];for(let n=0,s=t.length;n<s;++n){let o=t[n],a=o.indexOf(i0),l;if(a===-1)l=o;else{let c=parseInt(o.substring(0,a));i.push(r.directives[c]),l=o.substring(a+__e)}l!==""&&i.push(l)}return i}function hB(r,e,t=!1){let i=e.attributes;for(let n=0,s=i.length;n<s;++n){let o=i[n],a=o.value,l=fB(r,a),c=null;l===null?t&&(c=new kc(()=>a),c.targetName=o.name):c=x_e(l),c!==null&&(e.removeAttributeNode(o),n--,s--,r.addFactory(c))}}function w_e(r,e,t){let i=fB(r,e.textContent);if(i!==null){let n=e;for(let s=0,o=i.length;s<o;++s){let a=i[s],l=s===0?e:n.parentNode.insertBefore(document.createTextNode(""),n.nextSibling);typeof a=="string"?l.textContent=a:(l.textContent=" ",r.captureContentBinding(a)),n=l,r.targetIndex++,l!==e&&t.nextNode()}r.targetIndex--}}function pB(r,e){let t=r.content;document.adoptNode(t);let i=lf.borrow(e);hB(i,r,!0);let n=i.behaviorFactories;i.reset();let s=ie.createTemplateWalker(t),o;for(;o=s.nextNode();)switch(i.targetIndex++,o.nodeType){case 1:hB(i,o);break;case 3:w_e(i,o,s);break;case 8:ie.isMarker(o)&&i.addFactory(e[ie.extractDirectiveIndexFromMarker(o)])}let a=0;(ie.isMarker(t.firstChild)||t.childNodes.length===1&&e.length)&&(t.insertBefore(document.createComment(""),t.firstChild),a=-1);let l=i.behaviorFactories;return i.release(),{fragment:t,viewBehaviorFactories:l,hostBehaviorFactories:n,targetOffset:a}}var F_,lf,__e,L_=p(()=>{On();n0();F_=null,lf=class{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){F_=this}static borrow(e){let t=F_||new lf;return t.directives=e,t.reset(),F_=null,t}};__e=i0.length});var N_,Gu,s0=p(()=>{N_=document.createRange(),Gu=class{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{let t=this.lastChild;if(e.previousSibling===t)return;let i=e.parentNode,n=this.firstChild,s;for(;n!==t;)s=n.nextSibling,i.insertBefore(n,e),n=s;i.insertBefore(t,e)}}remove(){let e=this.fragment,t=this.lastChild,i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,e.appendChild(i),i=n;e.appendChild(t)}dispose(){let e=this.firstChild.parentNode,t=this.lastChild,i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,e.removeChild(i),i=n;e.removeChild(t);let s=this.behaviors,o=this.source;for(let a=0,l=s.length;a<l;++a)s[a].unbind(o)}bind(e,t){let i=this.behaviors;if(this.source!==e)if(this.source!==null){let n=this.source;this.source=e,this.context=t;for(let s=0,o=i.length;s<o;++s){let a=i[s];a.unbind(n),a.bind(e,t)}}else{this.source=e,this.context=t;for(let n=0,s=i.length;n<s;++n)i[n].bind(e,t)}}unbind(){if(this.source===null)return;let e=this.behaviors,t=this.source;for(let i=0,n=e.length;i<n;++i)e[i].unbind(t);this.source=null}static disposeContiguousBatch(e){if(e.length!==0){N_.setStartBefore(e[0].firstChild),N_.setEndAfter(e[e.length-1].lastChild),N_.deleteContents();for(let t=0,i=e.length;t<i;++t){let n=e[t],s=n.behaviors,o=n.source;for(let a=0,l=s.length;a<l;++a)s[a].unbind(o)}}}}});function z(r,...e){let t=[],i="";for(let n=0,s=r.length-1;n<s;++n){let o=r[n],a=e[n];
12if(i+=o,a instanceof o0){let l=a;a=()=>l}if(typeof a=="function"&&(a=new kc(a)),a instanceof Wu){let l=S_e.exec(o);l!==null&&(a.targetName=l[2])}a instanceof va?(i+=a.createPlaceholder(t.length),t.push(a)):i+=a}return i+=r[r.length-1],new o0(i,t)}var o0,S_e,mB=p(()=>{On();Ps();L_();s0();xa();n0();o0=class{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(this.fragment===null){let c,u=this.html;if(typeof u=="string"){c=document.createElement("template"),c.innerHTML=ie.createHTML(u);let f=c.content.firstElementChild;f!==null&&f.tagName==="TEMPLATE"&&(c=f)}else c=u;let d=pB(c,this.directives);this.fragment=d.fragment,this.viewBehaviorFactories=d.viewBehaviorFactories,this.hostBehaviorFactories=d.hostBehaviorFactories,this.targetOffset=d.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,n=new Array(this.behaviorCount),s=ie.createTemplateWalker(t),o=0,a=this.targetOffset,l=s.nextNode();for(let c=i.length;o<c;++o){let u=i[o],d=u.targetIndex;for(;l!==null;)if(a===d){n[o]=u.createBehavior(l);break}else l=s.nextNode(),a++}if(this.hasHostBehaviors){let c=this.hostBehaviorFactories;for(let u=0,d=c.length;u<d;++u,++o)n[o]=c[u].createBehavior(e)}return new Gu(t,n)}render(e,t,i){typeof t=="string"&&(t=document.getElementById(t)),i===void 0&&(i=t);let n=this.create(i);return n.bind(e,ba),n.appendTo(t),n}},S_e=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});function z_(r){return r.map(e=>e instanceof Wt?z_(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}function gB(r){return r.map(e=>e instanceof Wt?e.behaviors:null).reduce((e,t)=>t===null?e:(e===null&&(e=[]),e.concat(t)),null)}function bB(r){let e=[],t=[];return r.forEach(i=>(i[a0]?e:t).push(i)),{prepend:e,append:t}}function I_e(){return`fast-style-class-${++C_e}`}var Wt,a0,vB,yB,B_,C_e,j_,l0=p(()=>{On();Wt=class{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}};Wt.create=(()=>{if(ie.supportsAdoptedStyleSheets){let r=new Map;return e=>new B_(e,r)}return r=>new j_(r)})();a0=Symbol("prependToAdoptedStyleSheets");vB=(r,e)=>{let{prepend:t,append:i}=bB(e);r.adoptedStyleSheets=[...t,...r.adoptedStyleSheets,...i]},yB=(r,e)=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ie.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),vB=(r,e)=>{let{prepend:t,append:i}=bB(e);r.adoptedStyleSheets.splice(0,0,...t),r.adoptedStyleSheets.push(...i)},yB=(r,e)=>{for(let t of e){let i=r.adoptedStyleSheets.indexOf(t);i!==-1&&r.adoptedStyleSheets.splice(i,1)}}}catch{}B_=class extends Wt{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=gB(e)}get styleSheets(){if(this._styleSheets===void 0){let e=this.styles,t=this.styleSheetCache;this._styleSheets=z_(e).map(i=>{if(i instanceof CSSStyleSheet)return i;let n=t.get(i);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(i),t.set(i,n)),n})}return this._styleSheets}addStylesTo(e){vB(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){yB(e,this.styleSheets),super.removeStylesFrom(e)}},C_e=0;j_=class extends Wt{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=gB(e),this.styleSheets=z_(e),this.styleClass=I_e()}addStylesTo(e){let t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let n=0;n<t.length;n++){let s=document.createElement("style");s.innerHTML=t[n],s.className=i,e.append(s)}super.addStylesTo(e)}removeStylesFrom(e){e=this.normalizeTarget(e);let t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,n=t.length;i<n;++i)e.removeChild(t[i]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}});function x(r,e){let t;function i(n,s){arguments.length>1&&(t.property=s),cf.locate(n.constructor).push(t)}if(arguments.length>1){t={},i(r,e);return}return t=r===void 0?{}:r,i}var cf,Tc,le,Ec,q_=p(()=>{Ps();On();bo();cf=Object.freeze({locate:r0()}),Tc={toView(r){return r?"true":"false"},fromView(r){return!(r==null||r==="false"||r===!1||r===0)}},le={toView(r){if(r==null)return null;let e=r*1;return isNaN(e)?null:e.toString()},fromView(r){if(r==null)return null;let e=r*1;return isNaN(e)?null:e}},Ec=class{constructor(e,t,i=t.toLowerCase(),n="reflect",s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=n,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n==="boolean"&&s===void 0&&(this.converter=Tc)}setValue(e,t){let i=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return he.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){let t=this.mode,i=this.guards;i.has(e)||t==="fromView"||ie.queueUpdate(()=>{i.add(e);let n=e[this.fieldName];switch(t){case"reflect":let s=this.converter;ie.setAttribute(e,this.attribute,s!==void 0?s.toView(n):n);break;case"boolean":ie.setBooleanAttribute(e,this.attribute,n);break}i.delete(e)})}static collect(e,...t){let i=[];t.push(cf.locate(e));for(let n=0,s=t.length;n<s;++n){let o=t[n];if(o!==void 0)for(let a=0,l=o.length;a<l;++a){let c=o[a];typeof c=="string"?i.push(new Ec(e,c)):i.push(new Ec(e,c.property,c.attribute,c.mode,c.converter))}}return i}}});var xB,_B,H_,Fs,c0=p(()=>{bo();Ps();l0();q_();xB={mode:"open"},_B={},H_=Ic.getById(4,()=>{let r=new Map;return Object.freeze({register(e){return r.has(e.type)?!1:(r.set(e.type,e),!0)},getByType(e){return r.get(e)}})}),Fs=class{constructor(e,t=e.definition){typeof t=="string"&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;let i=Ec.collect(e,t.attributes),n=new Array(i.length),s={},o={};for(let a=0,l=i.length;a<l;++a){let c=i[a];n[a]=c.attribute,s[c.name]=c,o[c.attribute]=c}this.attributes=i,this.observedAttributes=n,this.propertyLookup=s,this.attributeLookup=o,this.shadowOptions=t.shadowOptions===void 0?xB:t.shadowOptions===null?void 0:Object.assign(Object.assign({},xB),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?_B:Object.assign(Object.assign({},_B),t.elementOptions),this.styles=t.styles===void 0?void 0:Array.isArray(t.styles)?Wt.create(t.styles):t.styles instanceof Wt?t.styles:Wt.create([t.styles])}get isDefined(){return!!H_.getByType(this.type)}
12define(e=customElements){let t=this.type;if(H_.register(this)){let i=this.attributes,n=t.prototype;for(let s=0,o=i.length;s<o;++s)he.defineProperty(n,i[s]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}};Fs.forType=H_.getByType});function V_(r){return r.shadowRoot||wB.get(r)||null}var wB,k_e,Ku,U_=p(()=>{On();af();Ps();c0();wB=new WeakMap,k_e={bubbles:!0,composed:!0,cancelable:!0};Ku=class extends Uu{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;let i=t.shadowOptions;if(i!==void 0){let s=e.attachShadow(i);i.mode==="closed"&&wB.set(e,s)}let n=he.getAccessors(e);if(n.length>0){let s=this.boundObservables=Object.create(null);for(let o=0,a=n.length;o<a;++o){let l=n[o].name,c=e[l];c!==void 0&&(delete e[l],s[l]=c)}}}get isConnected(){return he.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,he.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(this._styles!==null&&this.removeStyles(this._styles),this._styles=e,!this.needsInitialization&&e!==null&&this.addStyles(e))}addStyles(e){let t=V_(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){let i=e.behaviors;e.addStylesTo(t),i!==null&&this.addBehaviors(i)}}removeStyles(e){let t=V_(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){let i=e.behaviors;e.removeStylesFrom(t),i!==null&&this.removeBehaviors(i)}}addBehaviors(e){let t=this.behaviors||(this.behaviors=new Map),i=e.length,n=[];for(let s=0;s<i;++s){let o=e[s];t.has(o)?t.set(o,t.get(o)+1):(t.set(o,1),n.push(o))}if(this._isConnected){let s=this.element;for(let o=0;o<n.length;++o)n[o].bind(s,ba)}}removeBehaviors(e,t=!1){let i=this.behaviors;if(i===null)return;let n=e.length,s=[];for(let o=0;o<n;++o){let a=e[o];if(i.has(a)){let l=i.get(a)-1;l===0||t?i.delete(a)&&s.push(a):i.set(a,l)}}if(this._isConnected){let o=this.element;for(let a=0;a<s.length;++a)s[a].unbind(o)}}onConnectedCallback(){if(this._isConnected)return;let e=this.element;this.needsInitialization?this.finishInitialization():this.view!==null&&this.view.bind(e,ba);let t=this.behaviors;if(t!==null)for(let[i]of t)i.bind(e,ba);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);let e=this.view;e!==null&&e.unbind();let t=this.behaviors;if(t!==null){let i=this.element;for(let[n]of t)n.unbind(i)}}onAttributeChangedCallback(e,t,i){let n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.element,i)}emit(e,t,i){return this._isConnected?this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},k_e),i))):!1}finishInitialization(){let e=this.element,t=this.boundObservables;if(t!==null){let n=Object.keys(t);for(let s=0,o=n.length;s<o;++s){let a=n[s];e[a]=t[a]}this.boundObservables=null}let i=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){let t=this.element,i=V_(t)||t;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||ie.removeChildNodes(i),e&&(this.view=e.render(t,i,t))}static forCustomElement(e){let t=e.$fastController;if(t!==void 0)return t;let i=Fs.forType(e.constructor);if(i===void 0)throw new Error("Missing FASTElement definition.");return e.$fastController=new Ku(e,i)}}});function SB(r){return class extends r{constructor(){super(),Ku.forCustomElement(this)}$emit(e,t,i){return this.$fastController.emit(e,t,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,i){this.$fastController.onAttributeChangedCallback(e,t,i)}}}var _a,CB=p(()=>{U_();c0();_a=Object.assign(SB(HTMLElement),{from(r){return SB(r)},define(r,e){return new Fs(r,e).define().type}})});var wa,W_=p(()=>{wa=class{createCSS(){return""}createBehavior(){}}});function IB(r,e){let t=[],i="",n=[];for(let s=0,o=r.length-1;s<o;
12++s){i+=r[s];let a=e[s];if(a instanceof wa){let l=a.createBehavior();a=a.createCSS(),l&&n.push(l)}a instanceof Wt||a instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(a)):i+=a}return i+=r[r.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:n}}function F(r,...e){let{styles:t,behaviors:i}=IB(r,e),n=Wt.create(t);return i.length&&n.withBehaviors(...i),n}function uf(r,...e){let{styles:t,behaviors:i}=IB(r,e);return new G_(t,i)}var G_,kB=p(()=>{W_();l0();G_=class extends wa{constructor(e,t){super(),this.behaviors=t,this.css="";let i=e.reduce((n,s)=>(typeof s=="string"?this.css+=s:n.push(s),n),[]);i.length&&(this.styles=Wt.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}});function Dn(r,e,t){return{index:r,removed:e,addedCount:t}}function E_e(r,e,t,i,n,s){let o=s-n+1,a=t-e+1,l=new Array(o),c,u;for(let d=0;d<o;++d)l[d]=new Array(a),l[d][0]=d;for(let d=0;d<a;++d)l[0][d]=d;for(let d=1;d<o;++d)for(let f=1;f<a;++f)r[e+f-1]===i[n+d-1]?l[d][f]=l[d-1][f-1]:(c=l[d-1][f]+1,u=l[d][f-1]+1,l[d][f]=c<u?c:u);return l}function T_e(r){let e=r.length-1,t=r[0].length-1,i=r[e][t],n=[];for(;e>0||t>0;){if(e===0){n.push(K_),t--;continue}if(t===0){n.push(Y_),e--;continue}let s=r[e-1][t-1],o=r[e-1][t],a=r[e][t-1],l;o<a?l=o<s?o:s:l=a<s?a:s,l===s?(s===i?n.push(TB):(n.push(AB),i=s),e--,t--):l===o?(n.push(Y_),e--,i=o):(n.push(K_),t--,i=a)}return n.reverse(),n}function A_e(r,e,t){for(let i=0;i<t;++i)if(r[i]!==e[i])return i;return t}function R_e(r,e,t){let i=r.length,n=e.length,s=0;for(;s<t&&r[--i]===e[--n];)s++;return s}function O_e(r,e,t,i){return e<t||i<r?-1:e===t||i===r?0:r<t?e<i?e-t:i-t:i<e?i-r:e-r}function X_(r,e,t,i,n,s){let o=0,a=0,l=Math.min(t-e,s-n);if(e===0&&n===0&&(o=A_e(r,i,l)),t===r.length&&s===i.length&&(a=R_e(r,i,l-o)),e+=o,n+=o,t-=a,s-=a,t-e===0&&s-n===0)return Rn;if(e===t){let g=Dn(e,[],0);for(;n<s;)g.removed.push(i[n++]);return[g]}else if(n===s)return[Dn(e,[],t-e)];let c=T_e(E_e(r,e,t,i,n,s)),u=[],d,f=e,m=n;for(let g=0;g<c.length;++g)switch(c[g]){case TB:d!==void 0&&(u.push(d),d=void 0),f++,m++;break;case AB:d===void 0&&(d=Dn(f,[],0)),d.addedCount++,f++,d.removed.push(i[m]),m++;break;case K_:d===void 0&&(d=Dn(f,[],0)),d.addedCount++,f++;break;case Y_:d===void 0&&(d=Dn(f,[],0)),d.removed.push(i[m]),m++;break}return d!==void 0&&u.push(d),u}function D_e(r,e,t,i){let n=Dn(e,t,i),s=!1,o=0;for(let a=0;a<r.length;a++){let l=r[a];if(l.index+=o,s)continue;let c=O_e(n.index,n.index+n.removed.length,l.index,l.index+l.addedCount);if(c>=0){r.splice(a,1),a--,o-=l.addedCount-l.removed.length,n.addedCount+=l.addedCount-c;let u=n.removed.length+l.removed.length-c;if(!n.addedCount&&!u)s=!0;else{let d=l.removed;if(n.index<l.index){let f=n.removed.slice(0,l.index-n.index);EB.apply(f,d),d=f}if(n.index+n.removed.length>l.index+l.addedCount){let f=n.removed.slice(l.index+l.addedCount-n.index);EB.apply(d,f)}n.removed=d,l.index<n.index&&(n.index=l.index)}}else if(n.index<l.index){s=!0,r.splice(a,0,n),a++;let u=n.addedCount-n.removed.length;l.index+=u,o+=u}}s||r.push(n)}function $_e(r){let e=[];for(let t=0,i=r.length;t<i;t++){let n=r[t];D_e(e,n.index,n.removed,n.addedCount)}return e}function RB(r,e){let t=[],i=$_e(e);for(let n=0,s=i.length;n<s;++n){let o=i[n];if(o.addedCount===1&&o.removed.length===1){o.removed[0]!==r[o.index]&&t.push(o);continue}t=t.concat(X_(r,o.index,o.index+o.addedCount,o.removed,0,o.removed.length))}return t}var TB,AB,K_,Y_,EB,OB=p(()=>{bo();TB=0,AB=1,K_=2,Y_=3;EB=Array.prototype.push});function J_(r,e){let t=r.index,i=e.length;return t>i?t=i-r.addedCount:t<0&&(t=i+r.removed.length+t-r.addedCount),t<0&&(t=0),r.index=t,r}function $B(){if(DB)return;DB=!0,he.setArrayObserverFactory(l=>new Z_(l));let r=Array.prototype;if(r.$fastPatch)return;Reflect.defineProperty(r,"$fastPatch",{value:1,enumerable:!1});let e=r.pop,t=r.push,i=r.reverse,n=r.shift,s=r.sort,o=r.splice,a=r.unshift;r.pop=function(){let l=this.length>0,c=e.apply(this,arguments),u=this.$fastController;return u!==void 0&&l&&u.addSplice(Dn(this.length,[c],0)),c},r.push=function(){let l=t.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(J_(Dn(this.length-arguments.length,[],arguments.length),this)),l},r.reverse=function(){let l,c=this.$fastController;c!==void 0&&(c.flush(),l=this.slice());let u=i.apply(this,arguments);return c!==void 0&&c.reset(l),u},r.shift=function(){let l=this.length>0,c=n.apply(this,arguments),u=this.$fastController;return u!==void 0&&l&&u.addSplice(Dn(0,[c],0)),c},r.sort=function(){let l,c=this.$fastController;c!==void 0&&(c.flush(),l=this.slice());let u=s.apply(this,arguments);return c!==void 0&&c.reset(l),u},r.splice=function(){let l=o.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(J_(Dn(+arguments[0],l,arguments.length>2?arguments.length-2:0),this)),l},r.unshift=function(){let l=a.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(J_(Dn(0,[],arguments.length),this)),l}}var DB,Z_,MB=p(()=>{On();OB();af();Ps();DB=!1;Z_=class extends ma{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){this.splices===void 0?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,ie.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,ie.queueUpdate(this))}flush(){let e=this.splices,t=this.oldCollection;if(e===void 0&&t===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;let i=t===void 0?RB(this.source,e):X_(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}});function Se(r){return new ya("fast-ref",Q_,r)}var Q_,PB=p(()=>{xa();Q_=class{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}});var ew,FB=p(()=>{ew=r=>typeof r=="function"});function LB(r){return r===void 0?M_e:ew(r)?r:()=>r}function He(r,e,t){let i=ew(r)?r:()=>r,n=LB(e),s=LB(t);return(o,a)=>i(o,a)?n(o,a):s(o,a)}var M_e,NB=p(()=>{FB();M_e=()=>null});function P_e(r,e,t,i){r.bind(e[t],i)}function F_e(r,e,t,i){let n=Object.create(i);n.index=t,n.length=e.length,r.bind(e[t],n)}var vUe,tw,vo,BB=p(()=>{On();Ps();MB();bo();xa();s0();vUe=Object.freeze({positioning:!1,recycle:!0});tw=class{constructor(e,t,i,n,s,o){this.location=e,this.itemsBinding=t,this.templateBinding=n,this.options=o,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=P_e,this.itemsBindingObserver=he.binding(t,this,i),this.templateBindingObserver=he.binding(n,this,s),o.positioning&&(this.bindView=F_e)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items){this.items=Rn;return}let t=this.itemsObserver,i=this.itemsObserver=he.getNotifier(this.items),n=t!==i;
12n&&t!==null&&t.unsubscribe(this),(n||e)&&i.subscribe(this)}updateViews(e){let t=this.childContext,i=this.views,n=this.bindView,s=this.items,o=this.template,a=this.options.recycle,l=[],c=0,u=0;for(let d=0,f=e.length;d<f;++d){let m=e[d],g=m.removed,b=0,v=m.index,S=v+m.addedCount,k=i.splice(m.index,g.length),_=u=l.length+k.length;for(;v<S;++v){let E=i[v],R=E?E.firstChild:this.location,P;a&&u>0?(b<=_&&k.length>0?(P=k[b],b++):(P=l[c],c++),u--):P=o.create(),i.splice(v,0,P),n(P,s,v,t),P.insertBefore(R)}k[b]&&l.push(...k.slice(b))}for(let d=c,f=l.length;d<f;++d)l[d].dispose();if(this.options.positioning)for(let d=0,f=i.length;d<f;++d){let m=i[d].context;m.length=f,m.index=d}}refreshAllViews(e=!1){let t=this.items,i=this.childContext,n=this.template,s=this.location,o=this.bindView,a=t.length,l=this.views,c=l.length;if((a===0||e||!this.options.recycle)&&(Gu.disposeContiguousBatch(l),c=0),c===0){this.views=l=new Array(a);for(let u=0;u<a;++u){let d=n.create();o(d,t,u,i),l[u]=d,d.insertBefore(s)}}else{let u=0;for(;u<a;++u)if(u<c){let f=l[u];o(f,t,u,i)}else{let f=n.create();o(f,t,u,i),l.push(f),f.insertBefore(s)}let d=l.splice(u,c-u);for(u=0,a=d.length;u<a;++u)d[u].dispose()}}unbindAllViews(){let e=this.views;for(let t=0,i=e.length;t<i;++t)e[t].unbind()}},vo=class extends va{constructor(e,t,i){super(),this.itemsBinding=e,this.templateBinding=t,this.options=i,this.createPlaceholder=ie.createBlockPlaceholder,$B(),this.isItemsBindingVolatile=he.isVolatileBinding(e),this.isTemplateBindingVolatile=he.isVolatileBinding(t)}createBehavior(e){return new tw(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}});function si(r){return r?function(e,t,i){return e.nodeType===1&&e.matches(r)}:function(e,t,i){return e.nodeType===1}}var Yu,u0=p(()=>{Ps();bo();Yu=class{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){let t=this.options.property;this.shouldUpdate=he.getAccessors(e).some(i=>i.name===t),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Rn),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return this.options.filter!==void 0&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}});function ke(r){return typeof r=="string"&&(r={property:r}),new ya("fast-slotted",rw,r)}var rw,jB=p(()=>{xa();u0();rw=class extends Yu{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}});function Sa(r){return typeof r=="string"&&(r={property:r}),new ya("fast-children",iw,r)}var iw,zB=p(()=>{xa();u0();iw=class extends Yu{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}});var L=p(()=>{bo();mB();CB();c0();q_();U_();L_();l0();kB();W_();s0();Ps();af();On();n0();xa();PB();NB();BB();jB();zB();u0()});var it,ht,ft,QUe,eWe,Mt=p(()=>{L();it=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},ht=(r,e)=>z`
13    <span
14        part="end"
15        ${Se("endContainer")}
16        class=${t=>e.end?"end":void 0}
17    >
18        <slot name="end" ${Se("end")} @slotchange="${t=>t.handleEndContentChange()}">
19            ${e.end||""}
20        </slot>
21    </span>
22`,ft=(r,e)=>z`
23    <span
24        part="start"
25        ${Se("startContainer")}
26        class="${t=>e.start?"start":void 0}"
27    >
28        <slot
29            name="start"
30            ${Se("start")}
31            @slotchange="${t=>t.handleStartContentChange()}"
32        >
33            ${e.start||""}
34        </slot>
35    </span>
36`,QUe=z`
37    <span part="end" ${Se("endContainer")}>
38        <slot
39            name="end"
40            ${Se("end")}
41            @slotchange="${r=>r.handleEndContentChange()}"
42        ></slot>
43    </span>
44`,eWe=z`
45    <span part="start" ${Se("startContainer")}>
46        <slot
47            name="start"
48            ${Se("start")}
49            @slotchange="${r=>r.handleStartContentChange()}"
50        ></slot>
51    </span>
52`});var qB,HB=p(()=>{L();Mt();qB=(r,e)=>z`
53    <template class="${t=>t.expanded?"expanded":""}">
54        <div
55            class="heading"
56            part="heading"
57            role="heading"
58            aria-level="${t=>t.headinglevel}"
59        >
60            <button
61                class="button"
62                part="button"
63                ${Se("expandbutton")}
64                aria-expanded="${t=>t.expanded}"
65                aria-controls="${t=>t.id}-panel"
66                id="${t=>t.id}"
67                @click="${(t,i)=>t.clickHandler(i.event)}"
68            >
69                <span class="heading-content" part="heading-content">
70                    <slot name="heading"></slot>
71                </span>
72            </button>
73            ${ft(r,e)}
74            ${ht(r,e)}
75            <span class="icon" part="icon" aria-hidden="true">
76                <slot name="expanded-icon" part="expanded-icon">
77                    ${e.expandedIcon||""}
78                </slot>
79                <slot name="collapsed-icon" part="collapsed-icon">
80                    ${e.collapsedIcon||""}
81                </slot>
82            <span>
83        </div>
84        <div
85            class="region"
86            part="region"
87            id="${t=>t.id}-panel"
88            role="region"
89            aria-labelledby="${t=>t.id}"
90        >
91            <slot></slot>
92        </div>
93    </template>
94`});function y(r,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(o=r[a])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s}var Ee=p(()=>{});function df(r){let e=r.slice(),t=Object.keys(r),i=t.length,n;for(let s=0;s<i;++s)n=t[s],tj(n)||(e[n]=r[n]);return e}function UB(r){return e=>Reflect.getOwnMetadata(r,e)}function p0(r){return function(e){let t=function(i,n,s){yt.inject(t)(i,n,s)};return t.$isResolver=!0,t.resolve=function(i,n){return r(e,i,n)},t}}function j_e(r){return function(e,t){t=!!t;let i=function(n,s,o){yt.inject(i)(n,s,o)};return i.$isResolver=!0,i.resolve=function(n,s){return r(e,n,s,t)},i}}function uw(r,e,t){yt.inject(uw)(r,e,t)}function ZB(r,e){return e.getFactory(r).construct(e)}function GB(r){return this.get(r)}function z_e(r,e){return e(r)}function f0(r){return typeof r.register=="function"}function H_e(r){return f0(r)&&typeof r.registerInRequestor=="boolean"}function KB(r){return H_e(r)&&r.registerInRequestor}function V_e(r){return r.prototype!==void 0}function ej(r){return function(e,t,i){if(aw.has(i))return aw.get(i);let n=r(e,t,i);return aw.set(i,n),n}}function d0(r){if(r==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function YB(r,e,t){if(r instanceof Ci&&r.strategy===4){let i=r.state,n=i.length,s=new Array(n);for(;n--;)s[n]=i[n].resolve(e,t);return s}return[r.resolve(e,t)]}function JB(r){return typeof r=="object"&&r!==null||typeof r=="function"}function tj(r){switch(typeof r){case"number":return r>=0&&(r|0)===r;case"string":{let e=h0[r];if(e!==void 0)return e;let t=r.length;if(t===0)return h0[r]=!1;let i=0;for(let n=0;n<t;++n)if(i=r.charCodeAt(n),n===0&&i===48&&t>1||i<48||i>57)return h0[r]=!1;return h0[r]=!0}default:return!1}}var nw,lw,L_e,sw,VB,WB,yt,N_e,aWe,B_e,lWe,cWe,uWe,dWe,hWe,Ci,cw,q_e,U_e,QB,ow,Ac,aw,Rc,XB,W_e,h0,m0=p(()=>{L();nw=new Map;"metadata"in Reflect||(Reflect.metadata=function(r,e){return function(t){Reflect.defineMetadata(r,e,t)}},Reflect.defineMetadata=function(r,e,t){let i=nw.get(t);i===void 0&&nw.set(t,i=new Map),i.set(r,e)},Reflect.getOwnMetadata=function(r,e){let t=nw.get(e);if(t!==void 0)return t.get(r)});lw=class{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,ej(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){let{container:i,key:n}=this;return this.container=this.key=void 0,i.registerResolver(n,new Ci(n,e,t))}};L_e=Object.freeze({none(r){throw Error(`${r.toString()} not registered, did you forget to add @singleton()?`)},singleton(r){return new Ci(r,1,r)},transient(r){return new Ci(r,2,r)}}),sw=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:L_e.singleton})}),VB=new Map;WB=null,yt=Object.freeze({createContainer(r){return new Ac(null,Object.assign({},sw.default,r))},findResponsibleContainer(r){let e=r.$$container$$;return e&&e.responsibleForOwnerRequests?e:yt.findParentContainer(r)},findParentContainer(r){let e=new CustomEvent(QB,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return r.dispatchEvent(e),e.detail.container||yt.getOrCreateDOMContainer()},getOrCreateDOMContainer(r,e){return r?r.$$container$$||new Ac(r,Object.assign({},sw.default,e,{parentLocator:yt.findParentContainer})):WB||(WB=new Ac(null,Object.assign({},sw.default,e,{parentLocator:()=>null})))},getDesignParamtypes:UB("design:paramtypes"),getAnnotationParamtypes:UB("di:paramtypes"),getOrCreateAnnotationParamTypes(r){let e=this.getAnnotationParamtypes(r);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],r),e},getDependencies(r){let e=VB.get(r);if(e===void 0){let t=r.inject;if(t===void 0){let i=yt.getDesignParamtypes(r),n=yt.getAnnotationParamtypes(r);if(i===void 0)if(n===void 0){let s=Object.getPrototypeOf(r);typeof s=="function"&&s!==Function.prototype?e=df(yt.getDependencies(s)):e=[]}else e=df(n);else if(n===void 0)e=df(i);else{e=df(i);let s=n.length,o;for(let c=0;c<s;++c)o=n[c],o!==void 0&&(e[c]=o);let a=Object.keys(n);s=a.length;let l;for(let c=0;c<s;++c)l=a[c],tj(l)||(e[l]=n[l])}}else e=df(t);VB.set(r,e)}return e},defineProperty(r,e,t,i=!1){let n=`$di_${e}`;Reflect.defineProperty(r,e,{get:function(){let s=this[n];if(s===void 0&&(s=(this instanceof HTMLElement?yt.findResponsibleContainer(this):yt.getOrCreateDOMContainer()).get(t),this[n]=s,i&&this instanceof _a)){let a=this.$fastController,l=()=>{let u=yt.findResponsibleContainer(this).get(t),d=this[n];u!==d&&(this[n]=s,a.notify(e))};a.subscribe({handleChange:l},"isConnected")}return s}})},createInterface(r,e){let t=typeof r=="function"?r:e,i=typeof r=="string"?r:r&&"friendlyName"in r&&r.friendlyName||XB,n=typeof r=="string"?!1:r&&"respectConnection"in r&&r.respectConnection||!1,s=function(o,a,l){if(o==null||new.target!==void 0)throw new Error(`No registration for interface: '${s.friendlyName}'`);if(a)yt.defineProperty(o,a,s,n);else{let c=yt.getOrCreateAnnotationParamTypes(o);c[l]=s}};return s.$isInterface=!0,s.friendlyName=i??"(anonymous)",t!=null&&(s.register=function(o,a){return t(new lw(o,a??s))}),s.toString=function(){return`InterfaceSymbol<${s.friendlyName}>`},s},inject(...r){return function(e,t,i){if(typeof i=="number"){let n=yt.getOrCreateAnnotationParamTypes(e),s=r[0];s!==void 0&&(n[i]=s)}else if(t)yt.defineProperty(e,t,r[0]);else{let n=i?yt.getOrCreateAnnotationParamTypes(i.value):yt.getOrCreateAnnotationParamTypes(e),s;for(let o=0;o<r.length;++o)s=r[o],s!==void 0&&(n[o]=s)}}},transient(r){return r.register=function(t){return Rc.transient(r,r).register(t)},r.registerInRequestor=!1,r},singleton(r,e=B_e){return r.register=function(i){return Rc.singleton(r,r).register(i)},r.registerInRequestor=e.scoped,r}}),N_e=yt.createInterface("Container");aWe=yt.inject,B_e={scoped:!1};lWe=j_e((r,e,t,i)=>t.getAll(r,i)),cWe=p0((r,e,t)=>()=>t.get(r)),uWe=p0((r,e,t)=>{if(t.has(r,!0))return t.get(r)});uw.$isResolver=!0;uw.resolve=()=>{};dWe=p0((r,e,t)=>{let i=ZB(r,e),n=new Ci(r,0,i);return t.registerResolver(r,n),i}),hWe=p0((r,e,t)=>ZB(r,e));Ci=class{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency foun
94d: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state}case 2:{let i=e.getFactory(this.state);if(i===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,n;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return(n=(i=(t=e.getResolver(this.state))===null||t===void 0?void 0:t.getFactory)===null||i===void 0?void 0:i.call(t,e))!==null&&n!==void 0?n:null;default:return null}}};cw=class{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return t===void 0?i=new this.Type(...this.dependencies.map(GB,e)):i=new this.Type(...this.dependencies.map(GB,e),...t),this.transformers==null?i:this.transformers.reduce(z_e,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}},q_e={$isResolver:!0,resolve(r,e){return e}};U_e=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),QB="__DI_LOCATE_PARENT__",ow=new Map,Ac=class{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,e!==null&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(N_e,q_e),e instanceof Node&&e.addEventListener(QB,i=>{i.composedPath()[0]!==this.owner&&(i.detail.container=this,i.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let t,i,n,s,o,a=this.context;for(let l=0,c=e.length;l<c;++l)if(t=e[l],!!JB(t))if(f0(t))t.register(this,a);else if(V_e(t))Rc.singleton(t,t).register(this);else for(i=Object.keys(t),s=0,o=i.length;s<o;++s)n=t[i[s]],JB(n)&&(f0(n)?n.register(this,a):this.register(n));return--this.registerDepth,this}registerResolver(e,t){d0(e);let i=this.resolvers,n=i.get(e);return n==null?i.set(e,t):n instanceof Ci&&n.strategy===4?n.state.push(t):i.set(e,new Ci(e,4,[n,t])),t}registerTransformer(e,t){let i=this.getResolver(e);if(i==null)return!1;if(i.getFactory){let n=i.getFactory(this);return n==null?!1:(n.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(d0(e),e.resolve!==void 0)return e;let i=this,n;for(;i!=null;)if(n=i.resolvers.get(e),n==null){if(i.parent==null){let s=KB(e)?this:i;return t?this.jitRegister(e,s):null}i=i.parent}else return n;return null}has(e,t=!1){return this.resolvers.has(e)?!0:t&&this.parent!=null?this.parent.has(e,!0):!1}get(e){if(d0(e),e.$isResolver)return e.resolve(this,this);let t=this,i;for(;t!=null;)if(i=t.resolvers.get(e),i==null){if(t.parent==null){let n=KB(e)?this:t;return i=this.jitRegister(e,n),i.resolve(t,this)}t=t.parent}else return i.resolve(t,this);throw new Error(`Unable to resolve key: ${String(e)}`)}getAll(e,t=!1){d0(e);let i=this,n=i,s;if(t){let o=Rn;for(;n!=null;)s=n.resolvers.get(e),s!=null&&(o=o.concat(YB(s,n,i))),n=n.parent;return o}else for(;n!=null;)if(s=n.resolvers.get(e),s==null){if(n=n.parent,n==null)return Rn}else return YB(s,n,i);return Rn}getFactory(e){let t=ow.get(e);if(t===void 0){if(W_e(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);ow.set(e,t=new cw(e,yt.getDependencies(e)))}return t}registerFactory(e,t){ow.set(e,t)}createChild(e){return new Ac(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if(typeof e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(U_e.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(f0(e)){let i=e.register(t);if(!(i instanceof Object)||i.resolve==null){let n=t.resolvers.get(e);if(n!=null)return n;throw new Error("A valid resolver was not returned from the static register method")}return i}else{if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{let i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}},aw=new WeakMap;Rc=Object.freeze({instance(r,e){return new Ci(r,0,e)},singleton(r,e){return new Ci(r,1,e)},transient(r,e){return new Ci(r,2,e)},callback(r,e){return new Ci(r,3,e)},cachedCallback(r,e){return new Ci(r,3,ej(e))},aliasTo(r,e){return new Ci(e,5,r)}});XB="(anonymous)";W_e=function(){let r=new WeakMap,e=!1,t="",i=0;return function(n){return e=r.get(n),e===void 0&&(t=n.toString(),i=t.length,e=i>=29&&i<=100&&t.charCodeAt(i-1)===125&&t.charCodeAt(i-2)<=32&&t.charCodeAt(i-3)===93&&t.charCodeAt(i-4)===101&&t.charCodeAt(i-5)===100&&t.charCodeAt(i-6)===111&&t.charCodeAt(i-7)===99&&t.charCodeAt(i-8)===32&&t.charCodeAt(i-9)===101&&t.charCodeAt(i-10)===118&&t.charCodeAt(i-11)===105&&t.charCodeAt(i-12)===116&&t.charCodeAt(i-13)===97&&t.charCodeAt(i-14)===110&&t.charCodeAt(i-15)===88,r.set(n,e)),e}}(),h0={}});function rj(r){return`${r.toLowerCase()}:presentation`}var g0,v0,b0,y0=p(()=>{L();m0();g0=new Map,v0=Object.freeze({define(r,e,t){let i=rj(r);g0.get(i)===void 0?g0.set(i,e):g0.set(i,!1),t.register(Rc.instance(i,e))},forTag(r,e){let t=rj(r),i=g0.get(t);return i===!1?yt.findResponsibleContainer(e).get(t):i||null}}),b0=class{constructor(e,t){this.template=e||null,this.styles=t===void 0?null:Array.isArray(t)?Wt.create(t):t instanceof Wt?t:Wt.create([t])}applyTo(e){let t=e.$fastController;t.template===null&&(t.template=this.template),t.styles===null&&(t.styles=this.styles)}}});function hf(r,e,t){return typeof r=="function"?r(e,t):r}var X,dw,Ae=p(()=>{Ee();L();y0();X=class extends _a{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=v0.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new dw(this===X?class extends X{}:this,e,t)}};y([M],X.prototype,"template",void 0);y([M],X.prototype,"styles",void 0);dw=class{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){let i=this.definition,n=this.overrideDefinition,o=`${i.prefix||t.elementPrefix}-${i.baseName}`;
94t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let l=new b0(hf(i.template,a,i),hf(i.styles,a,i));a.definePresentation(l);let c=hf(i.shadowOptions,a,i);a.shadowRootMode&&(c?n.shadowOptions||(c.mode=a.shadowRootMode):c!==null&&(c={mode:a.shadowRootMode})),a.defineElement({elementOptions:hf(i.elementOptions,a,i),shadowOptions:c,attributes:hf(i.attributes,a,i)})}})}}});function Fe(r,...e){let t=cf.locate(r);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(r.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),cf.locate(i).forEach(s=>t.push(s))})}var Rr=p(()=>{L()});var $n,hw=p(()=>{Ee();L();Ae();Mt();Rr();$n=class extends X{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}};y([x({attribute:"heading-level",mode:"fromView",converter:le})],$n.prototype,"headinglevel",void 0);y([x({mode:"boolean"})],$n.prototype,"expanded",void 0);y([x],$n.prototype,"id",void 0);Fe($n,it)});var ij=p(()=>{HB();hw()});var nj,sj=p(()=>{L();nj=(r,e)=>z`
95    <template>
96        <slot ${ke({property:"accordionItems",filter:si()})}></slot>
97        <slot name="item" part="item" ${ke("accordionItems")}></slot>
98    </template>
99`});var Ge,oj=p(()=>{Ge={horizontal:"horizontal",vertical:"vertical"}});function aj(r,e){let t=r.length;for(;t--;)if(e(r[t],t,r))return t;return-1}var lj=p(()=>{});var cj=p(()=>{});function x0(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var uj=p(()=>{});var dj=p(()=>{});var hj=p(()=>{});var fj=p(()=>{});var fw=p(()=>{uj();dj();hj();fj()});function Ls(...r){return r.every(e=>e instanceof HTMLElement)}function pj(r,e){return!r||!e||!Ls(r)?void 0:Array.from(r.querySelectorAll(e)).filter(i=>i.offsetParent!==null)}function G_e(){let r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}function mj(){if(typeof Oc=="boolean")return Oc;if(!x0())return Oc=!1,Oc;let r=document.createElement("style"),e=G_e();e!==null&&r.setAttribute("nonce",e),document.head.appendChild(r);try{r.sheet.insertRule("foo:focus-visible {color:inherit}",0),Oc=!0}catch{Oc=!1}finally{document.head.removeChild(r)}return Oc}var Oc,gj=p(()=>{fw()});var pw,mw,yo,xo,gw,bw,bj=p(()=>{pw="focus",mw="focusin",yo="focusout",xo="keydown",gw="resize",bw="scroll"});var vj=p(()=>{});var yj,Ct,oi,ai,It,Gt,Li,cr,ur,xj,_j,wj,Ni,Ca,Sj,Cj,Bi,Ij=p(()=>{(function(r){r[r.alt=18]="alt",r[r.arrowDown=40]="arrowDown",r[r.arrowLeft=37]="arrowLeft",r[r.arrowRight=39]="arrowRight",r[r.arrowUp=38]="arrowUp",r[r.back=8]="back",r[r.backSlash=220]="backSlash",r[r.break=19]="break",r[r.capsLock=20]="capsLock",r[r.closeBracket=221]="closeBracket",r[r.colon=186]="colon",r[r.colon2=59]="colon2",r[r.comma=188]="comma",r[r.ctrl=17]="ctrl",r[r.delete=46]="delete",r[r.end=35]="end",r[r.enter=13]="enter",r[r.equals=187]="equals",r[r.equals2=61]="equals2",r[r.equals3=107]="equals3",r[r.escape=27]="escape",r[r.forwardSlash=191]="forwardSlash",r[r.function1=112]="function1",r[r.function10=121]="function10",r[r.function11=122]="function11",r[r.function12=123]="function12",r[r.function2=113]="function2",r[r.function3=114]="function3",r[r.function4=115]="function4",r[r.function5=116]="function5",r[r.function6=117]="function6",r[r.function7=118]="function7",r[r.function8=119]="function8",r[r.function9=120]="function9",r[r.home=36]="home",r[r.insert=45]="insert",r[r.menu=93]="menu",r[r.minus=189]="minus",r[r.minus2=109]="minus2",r[r.numLock=144]="numLock",r[r.numPad0=96]="numPad0",r[r.numPad1=97]="numPad1",r[r.numPad2=98]="numPad2",r[r.numPad3=99]="numPad3",r[r.numPad4=100]="numPad4",r[r.numPad5=101]="numPad5",r[r.numPad6=102]="numPad6",r[r.numPad7=103]="numPad7",r[r.numPad8=104]="numPad8",r[r.numPad9=105]="numPad9",r[r.numPadDivide=111]="numPadDivide",r[r.numPadDot=110]="numPadDot",r[r.numPadMinus=109]="numPadMinus",r[r.numPadMultiply=106]="numPadMultiply",r[r.numPadPlus=107]="numPadPlus",r[r.openBracket=219]="openBracket",r[r.pageDown=34]="pageDown",r[r.pageUp=33]="pageUp",r[r.period=190]="period",r[r.print=44]="print",r[r.quote=222]="quote",r[r.scrollLock=145]="scrollLock",r[r.shift=16]="shift",r[r.space=32]="space",r[r.tab=9]="tab",r[r.tilde=192]="tilde",r[r.windowsLeft=91]="windowsLeft",r[r.windowsOpera=219]="windowsOpera",r[r.windowsRight=92]="windowsRight"})(yj||(yj={}));Ct="ArrowDown",oi="ArrowLeft",ai="ArrowRight",It="ArrowUp",Gt="Enter",Li="Escape",cr="Home",ur="End",xj="F2",_j="PageDown",wj="PageUp",Ni=" ",Ca="Tab",Sj="Backspace",Cj="Delete",Bi={ArrowDown:Ct,ArrowLeft:oi,ArrowRight:ai,ArrowUp:It}});var Le,vw=p(()=>{(function(r){r.ltr="ltr",r.rtl="rtl"})(Le||(Le={}))});function kj(r,e,t){return t<r?e:t>e?r:t}function Ns(r,e,t){return Math.min(Math.max(t,r),e)}function ff(r,e,t=0){return[e,t]=[e,t].sort((i,n)=>i-n),e<=r&&r<t}var Ej=p(()=>{});function ln(r=""){return`${r}${K_e++}`}var K_e,Tj=p(()=>{K_e=0});var Aj=p(()=>{});var nt,Rj=p(()=>{fw();vw();nt=class{static getScrollLeft(e,t){return t===Le.rtl?nt.getRtlScrollLeftConverter(e):e.scrollLeft}static setScrollLeft(e,t,i){if(i===Le.rtl){nt.setRtlScrollLeftConverter(e,t);return}e.scrollLeft=t}static initialGetRtlScrollConverter(e){return nt.initializeRtlScrollConverters(),nt.getRtlScrollLeftConverter(e)}static directGetRtlScrollConverter(e){return e.scrollLeft}static invertedGetRtlScrollConverter(e){return-Math.abs(e.scrollLeft)}static reverseGetRtlScrollConverter(e){return e.scrollLeft-(e.scrollWidth-e.clientWidth)}static initialSetRtlScrollConverter(e,t){nt.initializeRtlScrollConverters(),nt.setRtlScrollLeftConverter(e,t)}static directSetRtlScrollConverter(e,t){e.scrollLeft=t}static invertedSetRtlScrollConverter(e,t){e.scrollLeft=Math.abs(t)}static reverseSetRtlScrollConverter(e,t){let i=e.scrollWidth-e.clientWidth;e.scrollLeft=i+t}static initializeRtlScrollConverters(){if(!x0()){nt.applyDirectScrollConverters();return}let e=nt.getTestElement();document.body.appendChild(e),nt.checkForScrollType(e),document.body.removeChild(e)}static checkForScrollType(e){nt.isReverse(e)?nt.applyReverseScrollC
99onverters():nt.isDirect(e)?nt.applyDirectScrollConverters():nt.applyInvertedScrollConverters()}static isReverse(e){return e.scrollLeft>0}static isDirect(e){return e.scrollLeft=-1,e.scrollLeft<0}static applyDirectScrollConverters(){nt.setRtlScrollLeftConverter=nt.directSetRtlScrollConverter,nt.getRtlScrollLeftConverter=nt.directGetRtlScrollConverter}static applyInvertedScrollConverters(){nt.setRtlScrollLeftConverter=nt.invertedSetRtlScrollConverter,nt.getRtlScrollLeftConverter=nt.invertedGetRtlScrollConverter}static applyReverseScrollConverters(){nt.setRtlScrollLeftConverter=nt.reverseSetRtlScrollConverter,nt.getRtlScrollLeftConverter=nt.reverseGetRtlScrollConverter}static getTestElement(){let e=document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",e}};nt.getRtlScrollLeftConverter=nt.initialGetRtlScrollConverter;nt.setRtlScrollLeftConverter=nt.initialSetRtlScrollConverter});var C,Oj=p(()=>{(function(r){r.Canvas="Canvas",r.CanvasText="CanvasText",r.LinkText="LinkText",r.VisitedText="VisitedText",r.ActiveText="ActiveText",r.ButtonFace="ButtonFace",r.ButtonText="ButtonText",r.Field="Field",r.FieldText="FieldText",r.Highlight="Highlight",r.HighlightText="HighlightText",r.GrayText="GrayText"})(C||(C={}))});var fe=p(()=>{oj();lj();cj();gj();bj();vj();Ij();vw();Ej();Tj();Aj();Rj();Oj()});var Dj,Dc,$j=p(()=>{Ee();L();fe();Ae();hw();Dj={single:"single",multi:"multi"},Dc=class extends X{constructor(){super(...arguments),this.expandmode=Dj.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var e;this.accordionItems.length!==0&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,i)=>{t instanceof $n&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==i?t.expanded=!1:t.expanded=!0));let n=this.accordionIds[i];t.setAttribute("id",typeof n!="string"?`accordion-${i+1}`:n),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode()&&((e=this.findExpandedItem())!==null&&e!==void 0?e:this.accordionItems[0]).setAttribute("aria-disabled","true"))},this.removeItemListeners=e=>{e.forEach((t,i)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget)return;e.preventDefault();let t=e.target;this.activeid=t.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),t.expanded=!0,t.setAttribute("aria-disabled","true"),this.accordionItems.forEach(i=>{!i.hasAttribute("disabled")&&i.id!==this.activeid&&i.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(t),this.change()},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case It:e.preventDefault(),this.adjust(-1);break;case Ct:e.preventDefault(),this.adjust(1);break;case cr:this.activeItemIndex=0,this.focusItem();break;case ur:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){let t=e.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==i&&i!==-1&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(e,t){this.$fastController.isConnected&&(this.removeItemListeners(e),this.setItems())}findExpandedItem(){for(let e=0;e<this.accordionItems.length;e++)if(this.accordionItems[e].getAttribute("expanded")==="true")return this.accordionItems[e];return null}resetItems(){this.accordionItems.forEach((e,t)=>{e.expanded=!1})}getItemIds(){return this.accordionItems.map(e=>e.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Dj.single}adjust(e){this.activeItemIndex=kj(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){let e=this.accordionItems[this.activeItemIndex];e instanceof $n&&e.expandbutton.focus()}};y([x({attribute:"expand-mode"})],Dc.prototype,"expandmode",void 0);y([M],Dc.prototype,"accordionItems",void 0)});var Mj=p(()=>{sj();$j()});var _0,yw=p(()=>{L();Mt();_0=(r,e)=>z`
100    <a
101        class="control"
102        part="control"
103        download="${t=>t.download}"
104        href="${t=>t.href}"
105        hreflang="${t=>t.hreflang}"
106        ping="${t=>t.ping}"
107        referrerpolicy="${t=>t.referrerpolicy}"
108        rel="${t=>t.rel}"
109        target="${t=>t.target}"
110        type="${t=>t.type}"
111        aria-atomic="${t=>t.ariaAtomic}"
112        aria-busy="${t=>t.ariaBusy}"
113        aria-controls="${t=>
113t.ariaControls}"
114        aria-current="${t=>t.ariaCurrent}"
115        aria-describedby="${t=>t.ariaDescribedby}"
116        aria-details="${t=>t.ariaDetails}"
117        aria-disabled="${t=>t.ariaDisabled}"
118        aria-errormessage="${t=>t.ariaErrormessage}"
119        aria-expanded="${t=>t.ariaExpanded}"
120        aria-flowto="${t=>t.ariaFlowto}"
121        aria-haspopup="${t=>t.ariaHaspopup}"
122        aria-hidden="${t=>t.ariaHidden}"
123        aria-invalid="${t=>t.ariaInvalid}"
124        aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
125        aria-label="${t=>t.ariaLabel}"
126        aria-labelledby="${t=>t.ariaLabelledby}"
127        aria-live="${t=>t.ariaLive}"
128        aria-owns="${t=>t.ariaOwns}"
129        aria-relevant="${t=>t.ariaRelevant}"
130        aria-roledescription="${t=>t.ariaRoledescription}"
131        ${Se("control")}
132    >
133        ${ft(r,e)}
134        <span class="content" part="content">
135            <slot ${ke("defaultSlottedContent")}></slot>
136        </span>
137        ${ht(r,e)}
138    </a>
139`});var Je,pf=p(()=>{Ee();L();Je=class{};y([x({attribute:"aria-atomic"})],Je.prototype,"ariaAtomic",void 0);y([x({attribute:"aria-busy"})],Je.prototype,"ariaBusy",void 0);y([x({attribute:"aria-controls"})],Je.prototype,"ariaControls",void 0);y([x({attribute:"aria-current"})],Je.prototype,"ariaCurrent",void 0);y([x({attribute:"aria-describedby"})],Je.prototype,"ariaDescribedby",void 0);y([x({attribute:"aria-details"})],Je.prototype,"ariaDetails",void 0);y([x({attribute:"aria-disabled"})],Je.prototype,"ariaDisabled",void 0);y([x({attribute:"aria-errormessage"})],Je.prototype,"ariaErrormessage",void 0);y([x({attribute:"aria-flowto"})],Je.prototype,"ariaFlowto",void 0);y([x({attribute:"aria-haspopup"})],Je.prototype,"ariaHaspopup",void 0);y([x({attribute:"aria-hidden"})],Je.prototype,"ariaHidden",void 0);y([x({attribute:"aria-invalid"})],Je.prototype,"ariaInvalid",void 0);y([x({attribute:"aria-keyshortcuts"})],Je.prototype,"ariaKeyshortcuts",void 0);y([x({attribute:"aria-label"})],Je.prototype,"ariaLabel",void 0);y([x({attribute:"aria-labelledby"})],Je.prototype,"ariaLabelledby",void 0);y([x({attribute:"aria-live"})],Je.prototype,"ariaLive",void 0);y([x({attribute:"aria-owns"})],Je.prototype,"ariaOwns",void 0);y([x({attribute:"aria-relevant"})],Je.prototype,"ariaRelevant",void 0);y([x({attribute:"aria-roledescription"})],Je.prototype,"ariaRoledescription",void 0)});var $c=p(()=>{pf();Mt()});var Ur,Mc,xw=p(()=>{Ee();L();Ae();$c();Rr();Ur=class extends X{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||e===void 0)&&e.delegatesFocus)&&(this.focus=()=>{var t;(t=this.control)===null||t===void 0||t.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}};y([x],Ur.prototype,"download",void 0);y([x],Ur.prototype,"href",void 0);y([x],Ur.prototype,"hreflang",void 0);y([x],Ur.prototype,"ping",void 0);y([x],Ur.prototype,"referrerpolicy",void 0);y([x],Ur.prototype,"rel",void 0);y([x],Ur.prototype,"target",void 0);y([x],Ur.prototype,"type",void 0);y([M],Ur.prototype,"defaultSlottedContent",void 0);Mc=class{};y([x({attribute:"aria-expanded"})],Mc.prototype,"ariaExpanded",void 0);Fe(Mc,Je);Fe(Ur,it,Mc)});var Pj=p(()=>{yw();xw()});var Fj,Lj=p(()=>{L();Fj=(r,e)=>z`
140    <template class="${t=>t.initialLayoutComplete?"loaded":""}">
141        ${He(t=>t.initialLayoutComplete,z`
142                <slot></slot>
143            `)}
144    </template>
145`});var Ii,Ia=p(()=>{fe();Ii=r=>{let e=r.closest("[dir]");return e!==null&&e.dir==="rtl"?Le.rtl:Le.ltr}});var w0,Nj=p(()=>{L();w0=class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var i;if(this.intersectionDetector!==null){if(this.observedElements.has(e)){(i=this.observedElements.get(e))===null||i===void 0||i.push(t);return}this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)}},this.cancelRequestPosition=(e,t)=>{let i=this.observedElements.get(e);if(i!==void 0){let n=i.indexOf(t);n!==-1&&i.splice(n,1)}},this.initializeIntersectionDetector=()=>{ls.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(this.intersectionDetector===null)return;let t=[],i=[];e.forEach(n=>{var s;(s=this.intersectionDetector)===null||s===void 0||s.unobserve(n.target);let o=this.observedElements.get(n.target);
145o!==void 0&&(o.forEach(a=>{let l=t.indexOf(a);l===-1&&(l=t.length,t.push(a),i.push([])),i[l].push(n)}),this.observedElements.delete(n.target))}),t.forEach((n,s)=>{n(i[s])})},this.initializeIntersectionDetector()}}});var je,mf=p(()=>{Ee();L();fe();Ae();Ia();Nj();je=class extends X{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Le.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),this.anchorElement!==null&&(this.requestPositionUpdates(),this.resizeDetector!==null&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{this.anchorElement===null||this.pendingPositioningUpdate||(je.intersectionService.requestPosition(this,this.handleIntersection),je.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&je.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,je.intersectionService.cancelRequestPosition(this,this.handleIntersection),this.anchorElement!==null&&je.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&je.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),this.resizeDetector!==null&&this.resizeDetector.disconnect()},this.getViewport=()=>typeof this.viewport!="string"||this.viewport===""?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{let t=e.find(s=>s.target===this),i=e.find(s=>s.target===this.anchorElement),n=e.find(s=>s.target===this.viewportElement);return t===void 0||n===void 0||i===void 0?!1:!this.regionVisible||this.forceUpdate||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,n.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)?(this.regionRect=t.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(n.boundingClientRect.x+document.documentElement.scrollLeft,n.boundingClientRect.y+document.documentElement.scrollTop,n.boundingClientRect.width,n.boundingClientRect.height):this.viewportRect=n.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0):!1},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.viewportElement===null&&(this.viewportElement=this.getViewport()),this.currentDirection=Ii(this),this.startObservers())},this.updateLayout=()=>{let e,t;if(this.horizontalPositioningMode!=="uncontrolled"){let s=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center")t="center";else if(this.horizontalDefaultPosition!=="unset"){let f=this.horizontalDefaultPosition;if(f==="start"||f==="end"){let m=Ii(this);if(m!==this.currentDirection){this.currentDirection=m,this.initialize();return}
145this.currentDirection===Le.ltr?f=f==="start"?"left":"right":f=f==="start"?"right":"left"}switch(f){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}let o=this.horizontalThreshold!==void 0?this.horizontalThreshold:this.regionRect!==void 0?this.regionRect.width:0,a=this.anchorRect!==void 0?this.anchorRect.left:0,l=this.anchorRect!==void 0?this.anchorRect.right:0,c=this.anchorRect!==void 0?this.anchorRect.width:0,u=this.viewportRect!==void 0?this.viewportRect.left:0,d=this.viewportRect!==void 0?this.viewportRect.right:0;(t===void 0||this.horizontalPositioningMode!=="locktodefault"&&this.getAvailableSpace(t,a,l,c,u,d)<o)&&(t=this.getAvailableSpace(s[0],a,l,c,u,d)>this.getAvailableSpace(s[1],a,l,c,u,d)?s[0]:s[1])}if(this.verticalPositioningMode!=="uncontrolled"){let s=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center")e="center";else if(this.verticalDefaultPosition!=="unset")switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}let o=this.verticalThreshold!==void 0?this.verticalThreshold:this.regionRect!==void 0?this.regionRect.height:0,a=this.anchorRect!==void 0?this.anchorRect.top:0,l=this.anchorRect!==void 0?this.anchorRect.bottom:0,c=this.anchorRect!==void 0?this.anchorRect.height:0,u=this.viewportRect!==void 0?this.viewportRect.top:0,d=this.viewportRect!==void 0?this.viewportRect.bottom:0;(e===void 0||this.verticalPositioningMode!=="locktodefault"&&this.getAvailableSpace(e,a,l,c,u,d)<o)&&(e=this.getAvailableSpace(s[0],a,l,c,u,d)>this.getAvailableSpace(s[1],a,l,c,u,d)?s[0]:s[1])}let i=this.getNextRegionDimension(t,e),n=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,i),this.setVerticalPosition(e,i),this.updateRegionStyle(),!this.initialLayoutComplete){this.initialLayoutComplete=!0,this.requestPositionUpdates();return}this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),n&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start"),this.classList.toggle("bottom",this.verticalPosition==="end"),this.classList.toggle("inset-top",this.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd"),this.classList.toggle("vertical-center",this.verticalPosition==="center"),this.classList.toggle("left",this.horizontalPosition==="start"),this.classList.toggle("right",this.horizontalPosition==="end"),this.classList.toggle("inset-left",this.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd"),this.classList.toggle("horizontal-center",this.horizontalPosition==="center")},this.setHorizontalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width,this.regionWidth="unset";break}let n=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(n=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+n,this.horizontalViewportLock){let s=this.anchorRect.left+n,o=this.anchorRect.right-n;s<this.viewportRect.left&&!(o>this.viewportRect.right)?this.translateX=this.translateX-(s-this.viewportRect.left):o>this.viewportRect.right&&!(s<this.viewportRect.left)&&(this.translateX=this.translateX-(o-this.viewportRect.right))}break}this.horizontalPosition=e},this.setVerticalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height,this.regionHeight="unset";break}let n=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(n=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+n,this.verticalViewportLock){let s=this.anchorRect.top+n,o=this.anchorRect.bottom-n;s<this.viewportRect.top&&!(o>this.viewportRect.bottom)?this.translateY=this.translateY-(s-this.viewportRect.top):o>
145this.viewportRect.bottom&&!(s<this.viewportRect.top)&&(this.translateY=this.translateY-(o-this.viewportRect.bottom))}}this.verticalPosition=e},this.getPositioningOptions=e=>e?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,i,n,s,o)=>{let a=t-s,l=o-(t+n);switch(e){case"start":return a;case"insetStart":return a+n;case"insetEnd":return l+n;case"end":return l;case"center":return Math.min(a,l)*2+n}},this.getNextRegionDimension=(e,t)=>{let i={height:this.regionRect!==void 0?this.regionRect.height:0,width:this.regionRect!==void 0?this.regionRect.width:0};return e!==void 0&&this.horizontalScaling==="fill"?i.width=this.getAvailableSpace(e,this.anchorRect!==void 0?this.anchorRect.left:0,this.anchorRect!==void 0?this.anchorRect.right:0,this.anchorRect!==void 0?this.anchorRect.width:0,this.viewportRect!==void 0?this.viewportRect.left:0,this.viewportRect!==void 0?this.viewportRect.right:0):this.horizontalScaling==="anchor"&&(i.width=this.anchorRect!==void 0?this.anchorRect.width:0),t!==void 0&&this.verticalScaling==="fill"?i.height=this.getAvailableSpace(t,this.anchorRect!==void 0?this.anchorRect.top:0,this.anchorRect!==void 0?this.anchorRect.bottom:0,this.anchorRect!==void 0?this.anchorRect.height:0,this.viewportRect!==void 0?this.viewportRect.top:0,this.viewportRect!==void 0?this.viewportRect.bottom:0):this.verticalScaling==="anchor"&&(i.height=this.anchorRect!==void 0?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener(gw,this.update,{passive:!0}),window.addEventListener(bw,this.update,{passive:!0,capture:!0}),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(gw,this.update),window.removeEventListener(bw,this.update),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&(e==="auto"&&this.stopAutoUpdateEventListeners(),t==="auto"&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),this.autoUpdateMode==="auto"&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),this.autoUpdateMode==="auto"&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){this.resizeDetector!==null&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&this.pendingReset===!1&&(this.setInitialState(),ie.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}};je.intersectionService=new w0;y([x],je.prototype,"anchor",void 0);y([x],je.prototype,"viewport",void 0);y([x({attribute:"horizontal-positioning-mode"})],je.prototype,"horizontalPositioningMode",void 0);y([x({attribute:"horizontal-default-position"})],je.prototype,"horizontalDefaultPosition",void 0);y([x({attribute:"horizontal-viewport-lock",mode:"boolean"})],je.prototype,"horizontalViewportLock",void 0);y([x({attribute:"horizontal-inset",mode:"boolean"})],je.prototype,"horizontalInset",void 0);y([x({attribute:"horizontal-threshold"})],je.prototype,"horizontalThreshold",void 0);y([x({attribute:"horizontal-scaling"})],je.prototype,"horizontalScaling",void 0);y([x({attribute:"vertical-positioning-mode"})],je.prototype,"verticalPositioningMode",void 0);y([x({attribute:"vertical-default-position"})],je.prototype,"verticalDefaultPosition",void 0);y([x({attribute:"vertical-viewport-lock",mode:"boolean"})],je.prototype,"verticalViewportLock",void 0);y([x({attribute:"vertical-inset",mode:"boolean"})],je.prototype,"verticalInset",void 0);y([x({attribute:"vertical-threshold"})],je.prototype,"verticalThreshold",void 0);y([x({attribute:"vertical-scaling"})],je.prototype,"verticalScaling",void 0);y([x({attribute:"fixed-placement",mode:"boolean"})],je.prototype,"fixedPlacement",void 0);y([x({attribute:"auto-update-mode"})],je.prototype,"autoUpdateMode",void 0);y([M],je.prototype,"anchorElement",void 0);y([M],je.prototype,"viewportElement",void 0);y([M],je.prototype,"initialLayoutComplete",void 0)});var _w,ww,Sw,Cw,Bj,Iw,jj,zj=p(()=>{_w={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},ww=Object.assign(Object.assign({},_w),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Sw=Object.assign(Object.assign({},_w),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Cw=Object.assign(Object.assign({},_w),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),Bj=Object.assign(Object.assign({},ww),{verticalScaling:"fill"}),Iw=Object.assign(Object.assign({},Sw),{verticalScaling:"fill"}),jj=Object.assign(Object.assign({},Cw),{verticalScaling:"fill"})});var kw=p(()=>{Lj();mf();zj()});var qj,Hj=p(()=>{L();qj=(r,e)=>z`
146    <div
147        class="backplate ${t=>t.shape}"
148        part="backplate"
149        style="${t=>t.fill?`background-color: var(--avatar-fill-${t.fill});`:void 0}"
150    >
151        <a
152            class="link"
153            part="link"
154            href="${t=>t.link?t.link:void 0}"
155            style="${t=>t.color?`color: var(--avatar-color-${t.color});`:void 0}"
156        >
157            <slot name="media" part="media">${e.media||""}</slot>
158            <slot class="content" part="content"><slot>
159        </a>
160    </div>
161    <slot name="badge" part="badge"></slot>
162`});var _o,Vj=p(()=>{Ee();L();Ae();_o=class extends X{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}};
162y([x],_o.prototype,"fill",void 0);y([x],_o.prototype,"color",void 0);y([x],_o.prototype,"link",void 0);y([x],_o.prototype,"shape",void 0)});var Uj=p(()=>{Hj();Vj()});var Wj,Gj=p(()=>{L();Wj=(r,e)=>z`
163    <template class="${t=>t.circular?"circular":""}">
164        <div class="control" part="control" style="${t=>t.generateBadgeStyle()}">
165            <slot></slot>
166        </div>
167    </template>
168`});var Mn,Kj=p(()=>{Ee();L();Ae();Mn=class extends X{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;let e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}};y([x({attribute:"fill"})],Mn.prototype,"fill",void 0);y([x({attribute:"color"})],Mn.prototype,"color",void 0);y([x({mode:"boolean"})],Mn.prototype,"circular",void 0)});var Yj=p(()=>{Gj();Kj()});var Xj,Jj=p(()=>{L();yw();Mt();Xj=(r,e)=>z`
169    <div role="listitem" class="listitem" part="listitem">
170        ${He(t=>t.href&&t.href.length>0,z`
171                ${_0(r,e)}
172            `)}
173        ${He(t=>!t.href,z`
174                ${ft(r,e)}
175                <slot></slot>
176                ${ht(r,e)}
177            `)}
178        ${He(t=>t.separator,z`
179                <span class="separator" part="separator" aria-hidden="true">
180                    <slot name="separator">${e.separator||""}</slot>
181                </span>
182            `)}
183    </div>
184`});var Bs,Ew=p(()=>{Ee();L();xw();$c();Rr();Bs=class extends Ur{constructor(){super(...arguments),this.separator=!0}};y([M],Bs.prototype,"separator",void 0);Fe(Bs,it,Mc)});var Zj=p(()=>{Jj();Ew()});var Qj,ez=p(()=>{L();Qj=(r,e)=>z`
185    <template role="navigation">
186        <div role="list" class="list" part="list">
187            <slot
188                ${ke({property:"slottedBreadcrumbItems",filter:si()})}
189            ></slot>
190        </div>
191    </template>
192`});var Xu,tz=p(()=>{Ee();L();Ew();Ae();Xu=class extends X{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===void 0||this.slottedBreadcrumbItems.length===0)return;let e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(t=>{let i=t===e;this.setItemSeparator(t,i),this.setAriaCurrent(t,i)})}}setItemSeparator(e,t){e instanceof Bs&&(e.separator=!t)}findChildWithHref(e){var t,i;return e.childElementCount>0?e.querySelector("a[href]"):!((t=e.shadowRoot)===null||t===void 0)&&t.childElementCount?(i=e.shadowRoot)===null||i===void 0?void 0:i.querySelector("a[href]"):null}setAriaCurrent(e,t){let i=this.findChildWithHref(e);i===null&&e.hasAttribute("href")&&e instanceof Bs?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):i!==null&&(t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}};y([M],Xu.prototype,"slottedBreadcrumbItems",void 0)});var rz=p(()=>{ez();tz()});var iz,nz=p(()=>{L();Mt();iz=(r,e)=>z`
193    <button
194        class="control"
195        part="control"
196        ?autofocus="${t=>t.autofocus}"
197        ?disabled="${t=>t.disabled}"
198        form="${t=>t.formId}"
199        formaction="${t=>t.formaction}"
200        formenctype="${t=>t.formenctype}"
201        formmethod="${t=>t.formmethod}"
202        formnovalidate="${t=>t.formnovalidate}"
203        formtarget="${t=>t.formtarget}"
204        name="${t=>t.name}"
205        type="${t=>t.type}"
206        value="${t=>t.value}"
207        aria-atomic="${t=>t.ariaAtomic}"
208        aria-busy="${t=>t.ariaBusy}"
209        aria-controls="${t=>t.ariaControls}"
210        aria-current="${t=>t.ariaCurrent}"
211        aria-describedby="${t=>t.ariaDescribedby}"
212        aria-details="${t=>t.ariaDetails}"
213        aria-disabled="${t=>t.ariaDisabled}"
214        aria-errormessage="${t=>t.ariaErrormessage}"
215        aria-expanded="${t=>t.ariaExpanded}"
216        aria-flowto="${t=>t.ariaFlowto}"
217        aria-haspopup="${t=>t.ariaHaspopup}"
218        aria-hidden="${t=>t.ariaHidden}"
219        aria-invalid="${t=>t.ariaInvalid}"
220        aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
221        aria-label="${t=>t.ariaLabel}"
222        aria-labelledby="${t=>t.ariaLabelledby}"
223        aria-live="${t=>t.ariaLive}"
224        aria-owns="${t=>t.ariaOwns}"
225        aria-pressed="${t=>t.ariaPressed}"
226        aria-relevant="${t=>t.ariaRelevant}"
227        aria-roledescription="${t=>t.ariaRoledescription}"
228        ${Se("control")}
229    >
230        ${ft(r,e)}
231        <span class="content" part="content">
232            <slot ${ke("defaultSlottedContent")}></slot>
233        </span>
234        ${ht(r,e)}
235    </button>
236`});function nr(r){let e=class extends r{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return az}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){let t=this.proxy.labels,i=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),n=t?i.concat(Array.from(t)):i;return Object.freeze(n)}else return Rn}valueChanged(t,i){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,i){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,i){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),ie.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,i){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,i){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),ie.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!az)return null;let t=lz.get(this);return t||(t=this.attachInternals(),lz.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,i,n){this.elementInternals?this.elementInternals.setValidity(t,i,n):typeof i=="string"&&this.proxy.setCustomValidity(i)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(i=>this.proxy.addEventListener(i,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",sz),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",sz)),(t=this.shadowRoot)===null||t===void 0||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),(t=this.shadowRoot)===null||t===void 0||t.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,i){this.elementInternals&&this.elementInternals.setFormValue(t,i||t)}_keypressHandler(t){switch(t.key){case Gt:if(this.form instanceof HTMLFormElement){let i=this.form.querySelector("[type=submit]");i?.click()}break}}stopPropagation(t){t.stopPropagation()}};return x({mode:"boolean"})(e.prototype,"disabled"),x({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),x({attribute:"current-value"})(e.prototype,"currentValue"),x(e.prototype,"name"),x({mode:"boolean"})(e.prototype,"required"),M(e.prototype,"value"),e}function Ju(r){class e extends nr(r){}class t extends e{constructor(...n){super(n),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}
236checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(n,s){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),n!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(n,s){this.checked=this.currentChecked}updateForm(){let n=this.checked?this.value:null;this.setFormValue(n,n)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return x({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),x({attribute:"current-checked",converter:Tc})(t.prototype,"currentChecked"),M(t.prototype,"defaultChecked"),M(t.prototype,"checked"),t}var sz,oz,az,lz,ji=p(()=>{L();fe();sz="form-associated-proxy",oz="ElementInternals",az=oz in window&&"setFormValue"in window[oz].prototype,lz=new WeakMap});var Tw,S0,cz=p(()=>{ji();Ae();Tw=class extends X{},S0=class extends nr(Tw){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var ki,Zu,uz=p(()=>{Ee();L();$c();Rr();cz();ki=class extends S0{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&((t=this.defaultSlottedContent)===null||t===void 0?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let e=this.proxy.isConnected;e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||e===void 0)&&e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.t
236ype),t==="submit"&&this.addEventListener("click",this.handleSubmission),e==="submit"&&this.removeEventListener("click",this.handleSubmission),t==="reset"&&this.addEventListener("click",this.handleFormReset),e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(i=>{i.addEventListener("click",this.handleClick)})}disconnectedCallback(){var e;super.disconnectedCallback();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(i=>{i.removeEventListener("click",this.handleClick)})}};y([x({mode:"boolean"})],ki.prototype,"autofocus",void 0);y([x({attribute:"form"})],ki.prototype,"formId",void 0);y([x],ki.prototype,"formaction",void 0);y([x],ki.prototype,"formenctype",void 0);y([x],ki.prototype,"formmethod",void 0);y([x({mode:"boolean"})],ki.prototype,"formnovalidate",void 0);y([x],ki.prototype,"formtarget",void 0);y([x],ki.prototype,"type",void 0);y([M],ki.prototype,"defaultSlottedContent",void 0);Zu=class{};y([x({attribute:"aria-expanded"})],Zu.prototype,"ariaExpanded",void 0);y([x({attribute:"aria-pressed"})],Zu.prototype,"ariaPressed",void 0);Fe(Zu,Je);Fe(ki,it,Zu)});var dz=p(()=>{nz();uz()});var C0,Aw=p(()=>{C0=class{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(let t in e){let i=e[t];t==="date"?this.date=this.getDateObject(i):this[t]=i}}getDateObject(e){if(typeof e=="string"){let t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){let{day:t,month:i,year:n}=e;return new Date(n,i-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){let n=this.getDateObject(e);if(!n.getTime())return"";let s=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(i,s).format(n)}getDay(e=this.date.getDate(),t=this.dayFormat,i=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},i)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,i=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},i)}getYear(e=this.date.getFullYear(),t=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},i)}getWeekday(e=0,t=this.weekdayFormat,i=this.locale){let n=`1-${e+1}-2017`;return this.getDate(n,{weekday:t},i)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map((i,n)=>this.getWeekday(n,e,t))}}});var cn,hz=p(()=>{Ee();L();fe();Ae();Aw();cn=class extends X{constructor(){super(...arguments),this.dateFormatter=new C0,this.readonly=!1,this.locale="en-US",this.month=new Date().getMonth()+1,this.year=new Date().getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){let i=l=>new Date(l.getFullYear(),l.getMonth(),1).getDay(),n=l=>{let c=new Date(l.getFullYear(),l.getMonth()+1,1);return new Date(c.getTime()-this.oneDayInMs).getDate()},s=new Date(t,e-1),o=new Date(t,e),a=new Date(t,e-2);return{length:n(s),month:e,start:i(s),year:t,previous:{length:n(a),month:a.getMonth()+1,start:i(a),year:a.getFullYear()},next:{length:n(o),month:o.getMonth()+1,start:i(o),year:o.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;let{start:i,length:n,previous:s,next:o}=e,a=[],l=1-i;for(;l<n+1||a.length<t||a[a.length-1].length%7!==0;){let{month:c,year:u}=l<1?s:l>n?o:e,d=l<1?s.length+l:l>n?l-n:l,f=`${c}-${d}-${u}`,m=this.dateInString(f,this.disabledDates),g=this.dateInString(f,this.selectedDates),b={day:d,month:c,year:u,disabled:m,selected:g},v=a[a.length-1];a.length===0||v.length%7===0?a.push([b]):v.push(b),l++}return a}dateInString(e,t){let i=t.split(",").map(n=>n.trim());return e=typeof e=="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,i.some(n=>n===e)}getDayClassNames(e,t){let{day:i,month:n,year:s,disabled:o,selected:a}=e,l=t===`${n}-${i}-${s}`,c=this.month!==n;return["day",l&&"today",c&&"inactive",o&&"disabled",a&&"selected"].filter(
236Boolean).join(" ")}getWeekdayText(){let e=this.dateFormatter.getWeekdays().map(t=>({text:t}));if(this.weekdayFormat!=="long"){let t=this.dateFormatter.getWeekdays("long");e.forEach((i,n)=>{i.abbr=t[n]})}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===Gt&&this.handleDateSelect(e,t),!0}};y([x({mode:"boolean"})],cn.prototype,"readonly",void 0);y([x],cn.prototype,"locale",void 0);y([x({converter:le})],cn.prototype,"month",void 0);y([x({converter:le})],cn.prototype,"year",void 0);y([x({attribute:"day-format",mode:"fromView"})],cn.prototype,"dayFormat",void 0);y([x({attribute:"weekday-format",mode:"fromView"})],cn.prototype,"weekdayFormat",void 0);y([x({attribute:"month-format",mode:"fromView"})],cn.prototype,"monthFormat",void 0);y([x({attribute:"year-format",mode:"fromView"})],cn.prototype,"yearFormat",void 0);y([x({attribute:"min-weeks",converter:le})],cn.prototype,"minWeeks",void 0);y([x({attribute:"disabled-dates"})],cn.prototype,"disabledDates",void 0);y([x({attribute:"selected-dates"})],cn.prototype,"selectedDates",void 0)});var gf,wo,Pc,I0=p(()=>{gf={none:"none",default:"default",sticky:"sticky"},wo={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},Pc={default:"default",header:"header",stickyHeader:"sticky-header"}});var dr,Rw=p(()=>{Ee();L();fe();Ae();I0();dr=class extends X{constructor(){super(...arguments),this.rowType=Pc.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new vo(e=>e.columnDefinitions,e=>e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(yo,this.handleFocusout),this.addEventListener(xo,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(yo,this.handleFocusout),this.removeEventListener(xo,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case oi:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case ai:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case cr:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case ur:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Pc.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===Pc.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};y([x({attribute:"grid-template-columns"})],dr.prototype,"gridTemplateColumns",void 0);y([x({attribute:"row-type"})],dr.prototype,"rowType",void 0);y([M],dr.prototype,"rowData",void 0);y([M],dr.prototype,"columnDefinitions",void 0);y([M],dr.prototype,"cellItemTemplate",void 0);y([M],dr.prototype,"headerCellItemTemplate",void 0);y([M],dr.prototype,"rowIndex",void 0);y([M],dr.prototype,"isActiveRow",void 0);y([M],dr.prototype,"activeCellItemTemplate",void 0);y([M],dr.prototype,"defaultCellItemTemplate",void 0);y([M],dr.prototype,"defaultHeaderCellItemTemplate",void 0);y([M],dr.prototype,"cellElements",void 0)});function Y_e(r){let e=r.tagFor(dr);return z`
237    <${e}
238        :rowData="${t=>t}"
239        :cellItemTemplate="${(t,i)=>i.parent.cellItemTemplate}"
240        :headerCellItemTemplate="${(t,i)=>i.parent.headerCellItemTemplate}"
241    ></${e}>
242`}var fz,pz=p(()=>{L();Rw();fz=(r,e)=>{let t=Y_e(r),i=r.tagFor(dr);return z`
243        <template
244            role="grid"
245            tabindex="0"
246            :rowElementTag="${()=>i}"
247            :defaultRowItemTemplate="${t}"
248            ${Sa({property:"rowElements",filter:si("[role=row]")})}
249        >
250            <slot></slot>
251        </template>
252    `}});var Kt,mz=p(()=>{Ee();L();fe();Ae();I0();Kt=class extends X{constructor(){super(),this.noTabbing=!1,this.generateHeader=gf.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,i)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}let n=Math.max(0,Math.min(this.rowElements.length-1,e)),o=this.rowElements[n].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),a=Math.max(0,Math.min(o.length-1,t)),l=o[a];i&&this.scrollHeight!==this.clientHeight&&(n<this.focusRowIndex&&this.scrollTop>0||n>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&l.scrollIntoView({block:"center",inline:"center"}),l.focus()},this.onChildListChange=(e,t)=>
252{e&&e.length&&(e.forEach(i=>{i.addedNodes.forEach(n=>{n.nodeType===1&&n.getAttribute("role")==="row"&&(n.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,ie.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){let t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach((t,i)=>{let n=t;n.rowIndex=i,n.gridTemplateColumns=e,this.columnDefinitionsStale&&(n.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach(i=>{t=`${t}${t===""?"":" "}1fr`}),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Kt.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Kt.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new vo(e=>e.rowsData,e=>e.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(pw,this.handleFocus),this.addEventListener(xo,this.handleKeydown),this.addEventListener(yo,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),ie.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(pw,this.handleFocus),this.removeEventListener(xo,this.handleKeydown),this.removeEventListener(yo,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;let t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t,i=this.rowElements.length-1,n=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(e.key){case It:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case Ct:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case wj:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex-1,t;t>=0;t--){let o=this.rowElements[t];if(o.offsetTop<this.scrollTop){this.scrollTop=o.offsetTop+o.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case _j:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=n){this.focusOnCell(i,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex+1,t;t<=i;t++){let o=this.rowElements[t];if(o.offsetTop+o.offsetHeight>n){let a=0;this.generateHeader===gf.sticky&&this.generatedHeader!==null&&(a=this.generatedHeader.clientHeight),this.scrollTop=o.offsetTop-a;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case cr:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case ur:e.ctrlKey&&this.columnDefinitions!==null&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,ie.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}
252toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==gf.none&&this.rowsData.length>0){let e=document.createElement(this.rowElementTag);this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===gf.sticky?Pc.stickyHeader:Pc.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};Kt.generateColumns=r=>Object.getOwnPropertyNames(r).map((e,t)=>({columnDataKey:e,gridColumn:`${t}`}));y([x({attribute:"no-tabbing",mode:"boolean"})],Kt.prototype,"noTabbing",void 0);y([x({attribute:"generate-header"})],Kt.prototype,"generateHeader",void 0);y([x({attribute:"grid-template-columns"})],Kt.prototype,"gridTemplateColumns",void 0);y([M],Kt.prototype,"rowsData",void 0);y([M],Kt.prototype,"columnDefinitions",void 0);y([M],Kt.prototype,"rowItemTemplate",void 0);y([M],Kt.prototype,"cellItemTemplate",void 0);y([M],Kt.prototype,"headerCellItemTemplate",void 0);y([M],Kt.prototype,"focusRowIndex",void 0);y([M],Kt.prototype,"focusColumnIndex",void 0);y([M],Kt.prototype,"defaultRowItemTemplate",void 0);y([M],Kt.prototype,"rowElementTag",void 0);y([M],Kt.prototype,"rowElements",void 0)});var X_e,J_e,Pn,Ow=p(()=>{Ee();L();fe();Ae();I0();X_e=z`
253    <template>
254        ${r=>r.rowData===null||r.columnDefinition===null||r.columnDefinition.columnDataKey===null?null:r.rowData[r.columnDefinition.columnDataKey]}
255    </template>
256`,J_e=z`
257    <template>
258        ${r=>r.columnDefinition===null?null:r.columnDefinition.title===void 0?r.columnDefinition.columnDataKey:r.columnDefinition.title}
259    </template>
260`,Pn=class extends X{constructor(){super(...arguments),this.cellType=wo.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(mw,this.handleFocusin),this.addEventListener(yo,this.handleFocusout),this.addEventListener(xo,this.handleKeydown),this.style.gridColumn=`${((e=this.columnDefinition)===null||e===void 0?void 0:e.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(mw,this.handleFocusin),this.removeEventListener(yo,this.handleFocusout),this.removeEventListener(xo,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case wo.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){let t=this.columnDefinition.headerCellFocusTargetCallback(this);t!==null&&t.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){let t=this.columnDefinition.cellFocusTargetCallback(this);t!==null&&t.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(e){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||this.columnDefinition===null||this.cellType===wo.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===wo.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(e.key){case Gt:case xj:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case wo.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){let t=this.columnDefinition.headerCellFocusTargetCallback(this);t!==null&&t.focus(),e.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){let t=this.columnDefinition.cellFocusTargetCallback(this);t!==null&&t.focus(),e.preventDefault()}break}break;case Li:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case wo.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=J_e.render(this,this);break;case void 0:case wo.rowHeader:case wo.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=X_e.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};y([x({attribute:"cell-type"})],Pn.prototype,"cellType",void 0);y([x({attribute:"grid-column"})],Pn.prototype,"gridColumn",void 0);y([M],Pn.prototype,"rowData",void 0);y([M],Pn.prototype,"columnDefinition",void 0)});function Z_e(r){let e=r.tagFor(Pn);return z`
261    <${e}
262        cell-type="${t=>t.isRowHeader?"rowheader":void 0}"
263        grid-column="${(t,i)=>i.index+1}"
264        :rowData="${(t,i)=>i.parent.rowData}"
265        :columnDefinition="${t=>t}"
266    ></${e}>
267`}function Q_e(r){let e=r.tagFor(Pn);return z`
268    <${e}
269        cell-type="columnheader"
270        grid-column="${(t,i)=>i.index+1}"
271        :columnDefinition="${t=>t}"
272    ></${e}>
273`}var gz,bz=p(()=>{L();Ow();gz=(r,e)=>{let t=Z_e(r),i=Q_e(r);return z`
274        <template
275            role="row"
276            class="${n=>n.rowType!=="default"?n.rowType:""}"
277            :defaultCellItemTemplate="${t}"
278            :defaultHeaderCellItemTemplate="${i}"
279            ${Sa({property:"cellElements",filter:si('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}
280        >
281            <slot ${ke("slottedCellElements")}></slot>
282        </template>
283    `}});var vz,yz=p(()=>{L();vz=(r,e)=>z`
284        <template
285            tabindex="-1"
286            role="${t=>!t.cellType||t.cellType==="default"?"gridcell":t.cellType}"
287            class="
288            ${t=>t.cellType==="columnheader"?"column-header":t.cellType==="rowheader"?"row-header":""}
289            "
290        >
291            <slot></slot>
292        </template>
293    `});var xz=p(()=>{pz();mz();bz();Rw();yz();Ow()});var oXe,_z=p(()=>{L();oXe=z`
294    <div
295        class="title"
296        part="title"
297        aria-label="${r=>r.dateFormatter.getDate(`${r.month}-2-${r.year}`,{month:"long",year:"numeric"})}"
298    >
299        <span part="month">
300            ${r=>r.dateFormatter.getMonth(r.month)}
301        </span>
302        <span part="year">${r=>r.dateFormatter.getYear(r.year)}</span>
303    </div>
304`});var wz=p(()=>{hz();_z();Aw()});var Sz,Cz=p(()=>{L();Sz=(r,e)=>z`
305    <slot></slot>
306`});var bf,Iz=p(()=>{Ae();bf=class extends X{}});var kz=p(()=>{Cz();Iz()});var Ez=p(()=>{});var Dw,k0,Tz=p(()=>{ji();Ae();Dw=class extends X{},k0=class extends Ju(Dw){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var ka,Az=p(()=>{Ee();L();fe();Tz();ka=class extends k0{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case Ni:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};y([x({attribute:"readonly",mode:"boolean"})],ka.prototype,"readOnly",void 0);y([M],ka.prototype,"defaultSlottedNodes",void 0);y([M],ka.prototype,"indeterminate",void 0)});var Rz=p(()=>{Ez();Az()});function $w(r){return Ls(r)&&(r.getAttribute("role")==="option"||r instanceof HTMLOptionElement)}var Wr,Ea,Mw=p(()=>{Ee();L();fe();Ae();pf();Mt();Rr();Wr=class extends X{constructor(e,t,i,n){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),n&&(this.selected=n),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){if(typeof t=="boolean"){this.ariaChecked=t?"true":"false";return}this.ariaChecked=null}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return(e=this.value)!==null&&e!==void 0?e:this.text}get text(){var e,t;return(t=(e=this.textContent)===null||e===void 0?void 0:e.replace(/\s+/g," ").trim())!==null&&t!==void 0?t:""}set value(e){let t=`${e??""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),he.notify(this,"value")}get value(){var e;return he.track(this,"value"),(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}};y([M],Wr.prototype,"checked",void 0);y([M],Wr.prototype,"content",void 0);y([M],Wr.prototype,"defaultSelected",void 0);y([x({mode:"boolean"})],Wr.prototype,"disabled",void 0);y([x({attribute:"selected",mode:"boolean"})],Wr.prototype,"selectedAttribute",void 0);y([M],Wr.prototype,"selected",void 0);y([x({attribute:"value",mode:"fromView"})],Wr.prototype,"initialValue",void 0);Ea=class{};y([M],Ea.prototype,"ariaChecked",void 0);y([M],Ea.prototype,"ariaPosInSet",void 0);y([M],Ea.prototype,"ariaSelected",void 0);y([M],Ea.prototype,"ariaSetSize",void 0);Fe(Ea,Je);Fe(Wr,it,Ea)});var Lt,Fn,Ta=p(()=>{Ee();L();fe();Ae();Mw();pf();Rr();Lt=class extends X{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return(e=this.selectedOptions[0])!==null&&e!==void 0?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(e=>e.disabled)}get length(){var e,t;return(t=(e=this.options)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}get options(){return he.track(this,"options"),this._options}set options(e){this._options=e,he.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){let t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}focusinHandler(e){!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){let e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter(i=>i.text.trim().match(t))}getSelectableIndex(e=this.selectedIndex,t){let i=e>t?-1:e<t?1:0,n=e+i,s=null;switch(i){case-1:{s=this.options.reduceRight((o,a,l)=>!o&&!a.disabled&&l<n?a:o,s);break}case 1:{s=this.options.reduce((o,a,l)=>!o&&!a.disabled&&l>n?a:o,s);break}}return this.options.indexOf(s)}handleChange(e,t){switch(t){case"selected":{Lt.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions();break}}}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>
306this.typeaheadExpired=!0,Lt.TYPE_AHEAD_TIMEOUT_MS),!(e.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;let t=e.key;switch(t){case cr:{e.shiftKey||(e.preventDefault(),this.selectFirstOption());break}case Ct:{e.shiftKey||(e.preventDefault(),this.selectNextOption());break}case It:{e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break}case ur:{e.preventDefault(),this.selectLastOption();break}case Ca:return this.focusAndScrollOptionIntoView(),!0;case Gt:case Li:return!0;case Ni:if(this.typeaheadExpired)return!0;default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((i=this.options[this.selectedIndex])===null||i===void 0)&&i.disabled&&typeof e=="number"){let n=this.getSelectableIndex(e,t),s=n>-1?n:e;this.selectedIndex=s,t===s&&this.selectedIndexChanged(t,s);return}this.setSelectedOptions()}selectedOptionsChanged(e,t){var i;let n=t.filter(Lt.slottedOptionFilter);(i=this.options)===null||i===void 0||i.forEach(s=>{let o=he.getNotifier(s);o.unsubscribe(this,"selected"),s.selected=n.includes(s),o.subscribe(this,"selected")})}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex(i=>!i.disabled))!==null&&t!==void 0?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=aj(this.options,e=>!e.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex(i=>i.defaultSelected))!==null&&t!==void 0?t:-1}setSelectedOptions(){var e,t,i;!((e=this.options)===null||e===void 0)&&e.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(i=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce((n,s)=>($w(s)&&n.push(s),n),[]);let i=`${this.options.length}`;this.options.forEach((n,s)=>{n.id||(n.id=ln("option-")),n.ariaPosInSet=`${s+1}`,n.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){let i=this.getTypeaheadMatches();if(i.length){let n=this.options.indexOf(i[0]);n>-1&&(this.selectedIndex=n)}this.typeaheadExpired=!1}}};Lt.slottedOptionFilter=r=>$w(r)&&!r.hidden;Lt.TYPE_AHEAD_TIMEOUT_MS=1e3;y([x({mode:"boolean"})],Lt.prototype,"disabled",void 0);y([M],Lt.prototype,"selectedIndex",void 0);y([M],Lt.prototype,"selectedOptions",void 0);y([M],Lt.prototype,"slottedOptions",void 0);y([M],Lt.prototype,"typeaheadBuffer",void 0);Fn=class{};y([M],Fn.prototype,"ariaActiveDescendant",void 0);y([M],Fn.prototype,"ariaDisabled",void 0);y([M],Fn.prototype,"ariaExpanded",void 0);y([M],Fn.prototype,"ariaMultiSelectable",void 0);Fe(Fn,Je);Fe(Lt,Fn)});var Aa,E0=p(()=>{Aa={above:"above",below:"below"}});var Pw,T0,Oz=p(()=>{ji();Ta();Pw=class extends Lt{},T0=class extends nr(Pw){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var vf,Fw=p(()=>{vf={inline:"inline",list:"list",both:"both",none:"none"}});var Ln,Qu,Dz=p(()=>{Ee();L();fe();Ta();Mt();E0();Rr();Oz();Fw();Ln=class extends T0{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=ln("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===vf.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===vf.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===vf.both}
306openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),ie.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}get options(){return he.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,he.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return he.track(this,"value"),this._value}set value(e){var t,i,n;let s=`${this._value}`;if(this.$fastController.isConnected&&this.options){let o=this.options.findIndex(c=>c.text.toLowerCase()===e.toLowerCase()),a=(t=this.options[this.selectedIndex])===null||t===void 0?void 0:t.text,l=(i=this.options[o])===null||i===void 0?void 0:i.text;this.selectedIndex=a!==l?o:this.selectedIndex,e=((n=this.firstSelectedOption)===null||n===void 0?void 0:n.text)||e}s!==e&&(this._value=e,super.valueChanged(s,e),he.notify(this,"value"))}clickHandler(e){let t=e.target.closest("option,[role=option]");if(!(this.disabled||t?.disabled)){if(this.open){if(e.composedPath()[0]===this.control)return;t&&(this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0))}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){(!this.autocomplete||this.autocomplete===vf.none)&&(this.filter="");let e=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(!this.filteredOptions.length&&!e&&(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var e;(e=this.firstSelectedOption)===null||e===void 0||e.scrollIntoView({block:"nearest"})}))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;let t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}(!this.options||!this.options.includes(t))&&(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map(t=>t.text).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){let t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":{this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break}case"Escape":{if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break}
306case"Tab":{if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break}case"ArrowUp":case"ArrowDown":{if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break}default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":{this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions();break}}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if(t=Ns(-1,this.options.length-1,t),t!==this.selectedIndex){this.selectedIndex=t;return}super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){let e=this.options.findIndex(t=>t.getAttribute("selected")!==null||t.selected);this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;let t=this.selectedIndex>-1?(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){let e=this.getBoundingClientRect(),i=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>i?Aa.above:Aa.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Aa.above?~~e.top:~~i}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach(i=>{i.selected=t.includes(i)})}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=((t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){let e=this.control.value.length;this.control.setSelectionRange(e,e)}};y([x({attribute:"autocomplete",mode:"fromView"})],Ln.prototype,"autocomplete",void 0);y([M],Ln.prototype,"maxHeight",void 0);y([x({attribute:"open",mode:"boolean"})],Ln.prototype,"open",void 0);y([x],Ln.prototype,"placeholder",void 0);y([x({attribute:"position"})],Ln.prototype,"positionAttribute",void 0);y([M],Ln.prototype,"position",void 0);Qu=class{};y([M],Qu.prototype,"ariaAutoComplete",void 0);y([M],Qu.prototype,"ariaControls",void 0);Fe(Qu,Fn);Fe(Ln,it,Qu)});var $z,Mz=p(()=>{L();Ta();Mt();$z=(r,e)=>z`
307    <template
308        aria-disabled="${t=>t.ariaDisabled}"
309        autocomplete="${t=>t.autocomplete}"
310        class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}"
311        ?open="${t=>t.open}"
312        tabindex="${t=>t.disabled?null:"0"}"
313        @click="${(t,i)=>t.clickHandler(i.event)}"
314        @focusout="${(t,i)=>t.focusoutHandler(i.event)}"
315        @keydown="${(t,i)=>t.keydownHandler(i.event)}"
316    >
317        <div class="control" part="control">
318            ${ft(r,e)}
319            <slot name="control">
320                <input
321                    aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}"
322                    aria-autocomplete="${t=>t.ariaAutoComplete}"
323                    aria-controls="${t=>t.ariaControls}"
324                    aria-disabled="${t=>t.ariaDisabled}"
325                    aria-expanded="${t=>t.ariaExpanded}"
326                    aria-haspopup="listbox"
327                    class="selected-value"
328                    part="selected-value"
329                    placeholder="${t=>t.placeholder}"
330                    role="combobox"
331                    type="text"
332                    ?disabled="${t=>t.disabled}"
333                    :value="${t=>t.value}"
334                    @input="${(t,i)=>t.inputHandler(i.event)}"
335                    @keyup="${(t,i)=>t.keyupHandler(i.event)}"
336                    ${Se("control")}
337                />
338                <div class="indicator" part="indicator" aria-hidden="true">
339                    <slot name="indicator">
340                        ${e.indicator||""}
341                    </slot>
342                </div>
343            </slot>
344            ${ht(r,e)}
345        </div>
346        <div
347            class="listbox"
348            id="${t=>t.listboxId}"
349            part="listbox"
350            role="listbox"
351            ?disabled="${t=>t.disabled}"
352            ?hidden="${t=>!t.open}"
353            ${Se("listbox")}
354        >
355            <slot
356                ${ke({filter:Lt.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
357            ></slot>
358        </div>
359    </template>
360`});var Pz=p(()=>{Dz();Fw();Mz()});function So(r){let e=r.parentElement;if(e)return e;{let t=r.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}var A0=p(()=>{});function Fz(r,e){let t=e;for(;t!==null;){if(t===r)return!0;t=So(t)}return!1}var Lz=p(()=>{A0()});function ewe(r){return r instanceof _a}var js,yf,Nw,Bw,jw,R0,zw,sr,Lw,twe,Fc,qw=p(()=>{Ee();L();js=document.createElement("div");yf=class{setProperty(e,t){ie.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){ie.queueUpdate(()=>this.target.removeProperty(e))}},Nw=class extends yf{constructor(e){super();let t=new CSSStyleSheet;t[a0]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(Wt.create([t]))}},Bw=class extends yf{constructor(){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}},jw=class extends yf{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:e}=this.style;if(e){let t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}},R0=class{constructor(e){this.store=new Map,this.target=null;let t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),he.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(this.target!==null)for(let[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),ie.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),ie.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(e)})}handleChange(e,t){let{sheet:i}=this.style;if(i){let n=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[n].style}else this.target=null}};y([M],R0.prototype,"target",void 0);zw=class{constructor(e){this.target=e.style}setProperty(e,t){ie.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){ie.queueUpdate(()=>this.target.removeProperty(e))}},sr=class{setProperty(e,t){sr.properties[e]=t;for(let i of sr.roots.values())Fc.getOrCreate(sr.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete sr.properties[e];for(let t of sr.roots.values())Fc.getOrCreate(sr.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){let{roots:t}=sr;if(!t.has(e)){t.add(e);let i=Fc.getOrCreate(this.normalizeRoot(e));for(let n in sr.properties)i.setProperty(n,sr.properties[n])}}static unregisterRoot(e){let{roots:t}=sr;if(t.has(e)){t.delete(e);let i=Fc.getOrCreate(sr.normalizeRoot(e));for(let n in sr.properties)i.removeProperty(n)}}static normalizeRoot(e){return e===js?document:e}};sr.roots=new Set;sr.properties={};Lw=new WeakMap,twe=ie.supportsAdoptedStyleSheets?Nw:R0,Fc=Object.freeze({getOrCreate(r){if(Lw.has(r))return Lw.get(r);let e;return r===js?e=new sr:r instanceof Document?e=ie.supportsAdoptedStyleSheets?new Bw:new jw:ewe(r)?e=new twe(r):e=new zw(r),Lw.set(r,e),e}})});function rwe(r){return Gr.from(r)}var Gr,Hw,Vw,Uw,xf,_f,qt,un,Ww=p(()=>{Ee();L();A0();Lz();qw();qw();Gr=class extends wa{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Gr.uniqueId(),Gr.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Gr({name:typeof e=="string"?e:e.name,cssCustomPropertyName:typeof e=="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(e){return typeof e=="function"}static getTokenById(e){return Gr.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){let t=qt.getOrCreate(e).get(this);if(t!==void 0)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof Gr&&(t=this.alias(t)),qt.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),qt.existsFor(e)&&qt.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(js,e),this}subscribe(e,t){let i=this.getOrCreateSubscriberSet(t);t&&!qt.existsFor(t)&&qt.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){let i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){let t=Object.freeze({token:this,target:e});
360this.subscribers.has(this)&&this.subscribers.get(this).forEach(i=>i.handleChange(t)),this.subscribers.has(e)&&this.subscribers.get(e).forEach(i=>i.handleChange(t))}alias(e){return t=>e.getValueFor(t)}};Gr.uniqueId=(()=>{let r=0;return()=>(r++,r.toString(16))})();Gr.tokensById=new Map;Hw=class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){let{token:t,target:i}=e;this.add(t,i)}add(e,t){Fc.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(qt.getOrCreate(t).get(e)))}remove(e,t){Fc.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}},Vw=class{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=he.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,ba))}catch(e){console.error(e)}}},Uw=class{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),he.getNotifier(this).notify(e.id))}get(e){return he.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e),he.getNotifier(this).notify(e.id)}all(){return this.values.entries()}},xf=new WeakMap,_f=new WeakMap,qt=class{constructor(e){this.target=e,this.store=new Uw,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,i)=>{let n=Gr.getTokenById(i);n&&(n.notify(this.target),this.updateCSSTokenReflection(t,n))}},xf.set(e,this),he.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof _a?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return xf.get(e)||new qt(e)}static existsFor(e){return xf.has(e)}static findParent(e){if(js!==e.target){let t=So(e.target);for(;t!==null;){if(xf.has(t))return xf.get(t);t=So(t)}return qt.getOrCreate(js)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==js?qt.getOrCreate(js):null}while(i!==null);return null}get parent(){return _f.get(this)||null}updateCSSTokenReflection(e,t){if(Gr.isCSSDesignToken(t)){let i=this.parent,n=this.isReflecting(t);if(i){let s=i.get(t),o=e.get(t);s!==o&&!n?this.reflectToCSS(t):s===o&&n&&this.stopReflectToCSS(t)}else n||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){let t=this.store.get(e);if(t!==void 0)return t;let i=this.getRaw(e);if(i!==void 0)return this.hydrate(e,i),this.get(e)}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):(t=qt.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){Gr.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Gr.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);let t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){let e=qt.findParent(this);e&&e.appendChild(this);for(let t of this.assignedValues.keys())t.notify(this.target)}unbind(){this.parent&&_f.get(this).removeChild(this);for(let e of this.bindingObservers.keys())this.tearDownBindingObserver(e)}appendChild(e){e.parent&&_f.get(e).removeChild(e);let t=this.children.filter(i=>e.contains(i));_f.set(e,this),this.children.push(e),t.forEach(i=>e.appendChild(i)),he.getNotifier(this.store).subscribe(e);for(let[i,n]of this.store.all())e.hydrate(i,this.bindingObservers.has(i)?this.getRaw(i):n),e.updateCSSTokenReflection(e.store,i)}removeChild(e){let t=this.children.indexOf(e);if(t!==-1&&this.children.splice(t,1),he.getNotifier(this.store).unsubscribe(e),e.parent!==this)return!1;let i=_f.delete(e);for(let[n]of this.store.all())e.hydrate(n,e.getRaw(n)),e.updateCSSTokenReflection(e.store,n);return i}contains(e){return Fz(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),qt.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),qt.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){let i=Gr.getTokenById(t);i&&(this.hydrate(i,this.getRaw(i)),this.updateCSSTokenReflection(this.store,i))}hydrate(e,t){if(!this.has(e)){let i=this.bindingObservers.get(e);Gr.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){let i=new Vw(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return this.bindingObservers.has(e)?(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0):!1}};qt.cssCustomPropertyReflector=new Hw;y([M],qt.prototype,"children",void 0);un=Object.freeze({create:rwe,notifyConnection(r){return!r.isConnected||!qt.existsFor(r)?!1:(qt.getOrCreate(r).bind(),!0)},notifyDisconnection(r){return r.isConnected||!qt.existsFor(r)?!1:(qt.getOrCreate(r).unbind(),!0)},registerRoot(r=js){sr.registerRoot(r)},unregisterRoot(r=js){sr.unregisterRoot(r)}})});function iwe(r,e,t){return typeof r=="string"?{name:r,type:e,callback:t}:r}var Gw,Kw,O0,ed,wf,Xw,D0,Yw,Nz=p(()=>{L();Ae();m0();Ww();y0();Gw=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Kw=new Map,O0=new Map,ed=null,wf=yt.createInterface(r=>r.cachedCallback(e=>(ed===null&&(ed=new D0(null,e)),ed))),Xw=Object.freeze({tagFor(r){return O0.get(r)},responsibleFor(r){let e=r.$$designSystem$$;return e||yt.findResponsibleContainer(r).get(wf)},getOrCreate(r){if(!r)return ed===null&&(ed=yt.getOrCreateDOMContainer().get(wf)),ed;let e=r.$$designSystem$$;if(e)return e;let t=yt.getOrCreateDOMContainer(r);if(t.has(wf,!1))return t.get(wf);{let i=new D0(r,t);return t.register(Rc.instance(wf,i)),i}}});D0=class{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Gw.definitionCallbackOnly,e!==null&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}
360withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){let t=this.container,i=[],n=this.disambiguate,s=this.shadowRootMode,o={elementPrefix:this.prefix,tryDefineElement(a,l,c){let u=iwe(a,l,c),{name:d,callback:f,baseClass:m}=u,{type:g}=u,b=d,v=Kw.get(b),S=!0;for(;v;){let k=n(b,g,v);switch(k){case Gw.ignoreDuplicate:return;case Gw.definitionCallbackOnly:S=!1,v=void 0;break;default:b=k,v=Kw.get(b);break}}S&&((O0.has(g)||g===X)&&(g=class extends g{}),Kw.set(b,g),O0.set(g,b),m&&O0.set(m,b)),i.push(new Yw(t,b,g,s,f,S))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&un.registerRoot(this.designTokenRoot)),t.registerWithContext(o,...e);for(let a of i)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},Yw=class{constructor(e,t,i,n,s,o){this.container=e,this.name=t,this.type=i,this.shadowRootMode=n,this.callback=s,this.willDefine=o,this.definition=null}definePresentation(e){v0.define(this.name,e,this.container)}defineElement(e){this.definition=new Fs(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Xw.tagFor(e)}}});var Bz=p(()=>{});var jz=p(()=>{Nz();y0();Bz()});var zz=p(()=>{m0()});var qz,Hz=p(()=>{L();qz=(r,e)=>z`
361    <div class="positioning-region" part="positioning-region">
362        ${He(t=>t.modal,z`
363                <div
364                    class="overlay"
365                    part="overlay"
366                    role="presentation"
367                    @click="${t=>t.dismiss()}"
368                ></div>
369            `)}
370        <div
371            role="dialog"
372            tabindex="-1"
373            class="control"
374            part="control"
375            aria-modal="${t=>t.modal}"
376            aria-describedby="${t=>t.ariaDescribedby}"
377            aria-labelledby="${t=>t.ariaLabelledby}"
378            aria-label="${t=>t.ariaLabel}"
379            ${Se("dialog")}
380        >
381            <slot></slot>
382        </div>
383    </div>
384`});var Uz,nwe,Wz,Sf,Jw,swe,Gz,owe,awe,lwe,cwe,uwe,dwe,Vz,hwe,fwe,Kz,pwe,Zw,mwe,td,$0=p(()=>{Uz=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],nwe=Uz.join(","),Wz=typeof Element>"u",Sf=Wz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jw=!Wz&&Element.prototype.getRootNode?function(r){return r.getRootNode()}:function(r){return r.ownerDocument},swe=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Gz=function(e){return e.tagName==="INPUT"},owe=function(e){return Gz(e)&&e.type==="hidden"},awe=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},lwe=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},cwe=function(e){if(!e.name)return!0;var t=e.form||Jw(e),i=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=i(window.CSS.escape(e.name));else try{n=i(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=lwe(n,e.form);return!s||s===e},uwe=function(e){return Gz(e)&&e.type==="radio"},dwe=function(e){return uwe(e)&&!cwe(e)},Vz=function(e){var t=e.getBoundingClientRect(),i=t.width,n=t.height;return i===0&&n===0},hwe=function(e,t){var i=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Sf.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(Sf.call(o,"details:not([open]) *"))return!0;var a=Jw(e).host,l=a?.ownerDocument.contains(a)||e.ownerDocument.contains(e);if(!i||i==="full"){if(typeof n=="function"){for(var c=e;e;){var u=e.parentElement,d=Jw(e);if(u&&!u.shadowRoot&&n(u)===!0)return Vz(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(l)return!e.getClientRects().length}else if(i==="non-zero-area")return Vz(e);return!1}
384,fwe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var n=t.children.item(i);if(n.tagName==="LEGEND")return Sf.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},Kz=function(e,t){return!(t.disabled||owe(t)||hwe(t,e)||awe(t)||fwe(t))},pwe=function(e,t){return!(dwe(t)||swe(t)<0||!Kz(e,t))},Zw=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Sf.call(e,nwe)===!1?!1:pwe(t,e)},mwe=Uz.concat("iframe").join(","),td=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Sf.call(e,mwe)===!1?!1:Kz(t,e)}});var li,Yz=p(()=>{Ee();L();fe();$0();Ae();li=class extends X{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case Li:this.dismiss(),e.preventDefault();break;case Ca:this.handleTabKeyDown(e);break}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;let t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>{let e=[];return li.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{let e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{let t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),ie.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=he.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break;default:break}}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:Zw(t)||li.isFocusableFastElement(t)&&li.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(li.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,i;return!!(!((i=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||i===void 0)&&i.delegatesFocus)}static hasTabbableShadow(e){var t,i;return Array.from((i=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some(n=>Zw(n))}};y([x({mode:"boolean"})],li.prototype,"modal",void 0);y([x({mode:"boolean"})],li.prototype,"hidden",void 0);y([x({attribute:"trap-focus",mode:"boolean"})],li.prototype,"trapFocus",void 0);y([x({attribute:"aria-describedby"})],li.prototype,"ariaDescribedby",void 0);y([x({attribute:"aria-labelledby"})],li.prototype,"ariaLabelledby",void 0);y([x({attribute:"aria-label"})],li.prototype,"ariaLabel",void 0)});var Xz=p(()=>{Hz();Yz()});var Jz,Zz=p(()=>{L();Jz=(r,e)=>z`
385    <details class="disclosure" ${Se("details")}>
386        <summary
387            class="invoker"
388            role="button"
389            aria-controls="disclosure-content"
390            aria-expanded="${t=>t.expanded}"
391        >
392            <slot name="start"></slot>
393            <slot name="title">${t=>t.title}</slot>
394            <slot name="end"></slot>
395        </summary>
396        <div id="disclosure-content"><slot></slot></div>
397    </details>
398`});var Lc,Qz=p(()=>{Ee();L();Ae();Lc=class extends X{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}
398onToggle(){this.expanded=this.details.open,this.$emit("toggle")}};y([x({mode:"boolean"})],Lc.prototype,"expanded",void 0);y([x],Lc.prototype,"title",void 0)});var eq=p(()=>{Zz();Qz()});var tq,rq=p(()=>{L();tq=(r,e)=>z`
399    <template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template>
400`});var iq,nq=p(()=>{iq={separator:"separator",presentation:"presentation"}});var Nc,sq=p(()=>{Ee();L();fe();Ae();nq();Nc=class extends X{constructor(){super(...arguments),this.role=iq.separator,this.orientation=Ge.horizontal}};y([x],Nc.prototype,"role",void 0);y([x],Nc.prototype,"orientation",void 0)});var oq=p(()=>{rq();sq()});var aq,lq=p(()=>{aq={next:"next",previous:"previous"}});var cq=p(()=>{});var Cf,uq=p(()=>{Ee();L();Ae();lq();Cf=class extends X{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=aq.next}keyupHandler(e){if(!this.hiddenFromAT){let t=e.key;(t==="Enter"||t==="Space")&&this.$emit("click",e),t==="Escape"&&this.blur()}}};y([x({mode:"boolean"})],Cf.prototype,"disabled",void 0);y([x({attribute:"aria-hidden",converter:Tc})],Cf.prototype,"hiddenFromAT",void 0);y([x],Cf.prototype,"direction",void 0)});var dq=p(()=>{cq();uq()});var hq=p(()=>{ji()});var fq=p(()=>{Ae()});var pq,mq=p(()=>{L();Mt();pq=(r,e)=>z`
401    <template
402        aria-checked="${t=>t.ariaChecked}"
403        aria-disabled="${t=>t.ariaDisabled}"
404        aria-posinset="${t=>t.ariaPosInSet}"
405        aria-selected="${t=>t.ariaSelected}"
406        aria-setsize="${t=>t.ariaSetSize}"
407        class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}"
408        role="option"
409    >
410        ${ft(r,e)}
411        <span class="content" part="content">
412            <slot ${ke("content")}></slot>
413        </span>
414        ${ht(r,e)}
415    </template>
416`});var gq=p(()=>{Mw();mq()});var zi,M0=p(()=>{Ee();L();fe();Ta();zi=class extends Lt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return(e=this.options)===null||e===void 0?void 0:e.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var i,n;this.ariaActiveDescendant=(n=(i=this.options[t])===null||i===void 0?void 0:i.id)!==null&&n!==void 0?n:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;let e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,i)=>{t.checked=ff(i,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,i)=>{t.checked=ff(i,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,i)=>{t.checked=ff(i,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.checkedOptions.length===1&&(this.rangeStartIndex+=1),this.options.forEach((t,i)=>{t.checked=ff(i,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple)return super.clickHandler(e);let i=(t=e.target)===null||t===void 0?void 0:t.closest("[role=option]");if(!(!i||i.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}
416focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;let{key:t,shiftKey:i}=e;switch(this.shouldSkipFocus=!1,t){case cr:{this.checkFirstOption(i);return}case Ct:{this.checkNextOption(i);return}case It:{this.checkPreviousOption(i);return}case ur:{this.checkLastOption(i);return}case Ca:return this.focusAndScrollOptionIntoView(),!0;case Li:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Ni:if(e.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var i;this.ariaMultiSelectable=t?"true":null,(i=this.options)===null||i===void 0||i.forEach(n=>{n.checked=t?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(e=>e.selected),this.focusAndScrollOptionIntoView())}sizeChanged(e,t){var i;let n=Math.max(0,parseInt((i=t?.toFixed())!==null&&i!==void 0?i:"",10));n!==t&&ie.queueUpdate(()=>{this.size=n})}toggleSelectedForAllCheckedOptions(){let e=this.checkedOptions.filter(i=>!i.disabled),t=!e.every(i=>i.selected);e.forEach(i=>i.selected=t),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(!this.multiple){super.typeaheadBufferChanged(e,t);return}if(this.$fastController.isConnected){let i=this.getTypeaheadMatches(),n=this.options.indexOf(i[0]);n>-1&&(this.activeIndex=n,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(e=!1){this.options.forEach(t=>t.checked=this.multiple?!1:void 0),e||(this.rangeStartIndex=-1)}};y([M],zi.prototype,"activeIndex",void 0);y([x({mode:"boolean"})],zi.prototype,"multiple",void 0);y([x({converter:le})],zi.prototype,"size",void 0)});var bq,vq=p(()=>{L();M0();bq=(r,e)=>z`
417    <template
418        aria-activedescendant="${t=>t.ariaActiveDescendant}"
419        aria-multiselectable="${t=>t.ariaMultiSelectable}"
420        class="listbox"
421        role="listbox"
422        tabindex="${t=>t.disabled?null:"0"}"
423        @click="${(t,i)=>t.clickHandler(i.event)}"
424        @focusin="${(t,i)=>t.focusinHandler(i.event)}"
425        @keydown="${(t,i)=>t.keydownHandler(i.event)}"
426        @mousedown="${(t,i)=>t.mousedownHandler(i.event)}"
427    >
428        <slot
429            ${ke({filter:zi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
430        ></slot>
431    </template>
432`});var yq=p(()=>{Ta();M0();vq()});var cs,Qw=p(()=>{Ee();fe();L();Ae();cs=class extends X{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(e){e!==void 0&&e.forEach(t=>{t.nodeType===1&&t.getAttribute("role")==="listitem"&&(t.id=t.id||ln("option-"),this.optionElements.push(t))})}};y([M],cs.prototype,"menuElements",void 0);y([M],cs.prototype,"headerElements",void 0);y([M],cs.prototype,"footerElements",void 0);y([M],cs.prototype,"suggestionsAvailableText",void 0)});var gwe,us,P0=p(()=>{Ee();L();Ae();gwe=z`
433    <template>
434        ${r=>r.value}
435    </template>
436`,us=class extends X{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView(),this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:gwe.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};y([x({attribute:"value"})],us.prototype,"value",void 0);y([M],us.prototype,"contentsTemplate",void 0)});var Ra,e2=p(()=>{Ae();Ra=class extends X{}});var bwe,ds,F0=p(()=>{Ee();L();fe();Ae();bwe=z`
437    <template>
438        ${r=>r.value}
439    </template>
440`,ds=class extends X{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(e){return e.defaultPrevented?!1:e.key===Gt?(this.handleInvoke(),!1):!0}handleClick(e){return e.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var e,t;this.disconnectView(),this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:bwe.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};y([x({attribute:"value"})],ds.prototype,"value",void 0);y([M],ds.prototype,"contentsTemplate",void 0)});function vwe(r){let e=r.tagFor(ds);return z`
441    <${e}
442        value="${t=>t}"
443        :contentsTemplate="${(t,i)=>i.parent.listItemContentsTemplate}"
444    >
445    </${e}>
446    `}function ywe(r){let e=r.tagFor(us);return z`
447    <${e}
448        value="${t=>t}"
449        :contentsTemplate="${(t,i)=>i.parent.menuOptionContentsTemplate}"
450    >
451    </${e}>
452    `}var xq,_q=p(()=>{L();mf();Qw();P0();e2();F0();xq=(r,e)=>{let t=r.tagFor(je),i=r.tagFor(cs),n=r.tagFor(Ra),s=r.tagFor(Ra),o=vwe(r),a=ywe(r);return z`
453        <template
454            :selectedListTag="${()=>n}"
455            :menuTag="${()=>i}"
456            :defaultListItemTemplate="${o}"
457            :defaultMenuOptionTemplate="${a}"
458            @focusin="${(l,c)=>l.handleFocusIn(c.event)}"
459            @focusout="${(l,c)=>l.handleFocusOut(c.event)}"
460            @keydown="${(l,c)=>l.handleKeyDown(c.event)}"
461            @pickeriteminvoked="${(l,c)=>l.handleItemInvoke(c.event)}"
462            @pickeroptioninvoked="${(l,c)=>l.handleOptionInvoke(c.event)}"
463        >
464            <slot name="list-region"></slot>
465
466            ${He(l=>l.flyoutOpen,z`
467                <${t}
468                    class="region"
469                    part="region"
470                    auto-update-mode="${l=>l.menuConfig.autoUpdateMode}"
471                    fixed-placement="${l=>l.menuConfig.fixedPlacement}"
472                    vertical-positioning-mode="${l=>l.menuConfig.verticalPositioningMode}"
473                    vertical-default-position="${l=>l.menuConfig.verticalDefaultPosition}"
474                    vertical-scaling="${l=>l.menuConfig.verticalScaling}"
475                    vertical-inset="${l=>l.menuConfig.verticalInset}"
476                    vertical-viewport-lock="${l=>l.menuConfig.verticalViewportLock}"
477                    horizontal-positioning-mode="${l=>l.menuConfig.horizontalPositioningMode}"
478                    horizontal-default-position="${l=>l.menuConfig.horizontalDefaultPosition}"
479                    horizontal-scaling="${l=>l.menuConfig.horizontalScaling}"
480                    horizontal-inset="${l=>l.menuConfig.horizontalInset}"
481                    horizontal-viewport-lock="${l=>l.menuConfig.horizontalViewportLock}"
482                    @loaded="${(l,c)=>l.handleRegionLoaded(c.event)}"
483                    ${Se("region")}
484                >
485                    ${He(l=>!l.showNoOptions&&!l.showLoading,z`
486                            <slot name="menu-region"></slot>
487                        `)}
488                    ${He(l=>l.showNoOptions&&!l.showLoading,z`
489                            <div class="no-options-display" part="no-options-display">
490                                <slot name="no-options-region">
491                                    ${l=>l.noSuggestionsText}
492                                </slot>
493                            </div>
494                        `)}
495                    ${He(l=>l.showLoading,z`
496                            <div class="loading-display" part="loading-display">
497                                <slot name="loading-region">
498                                    <${s}
499                                        part="loading-progress"
500                                        class="loading-progress
501                                        slot="loading-region"
502                                    ></${s}>
503                                        ${l=>l.loadingText}
504                                </slot>
505                            </div>
506                        `)}
507                </${t}>
508            `)}
509        </template>
510    `}});var t2,L0,wq=p(()=>{ji();Ae();t2=class extends X{},L0=class extends nr(t2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var xwe,Ke,Sq=p(()=>{Ee();L();fe();kw();P0();F0();wq();xwe=z`
511    <input
512        slot="input-region"
513        role="combobox"
514        type="text"
515        autocapitalize="off"
516        autocomplete="off"
517        haspopup="list"
518        aria-label="${r=>r.label}"
519        aria-labelledby="${r=>r.labelledBy}"
520        placeholder="${r=>r.placeholder}"
521        ${Se("inputElement")}
522    ></input>
523`,Ke=class extends L0{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{if(this.flyoutOpen){if(this.region===null||this.region===void 0){ie.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:ww,bottom:Sw,tallest:Cw,"top-fill":Bj,"bottom-fill":Iw,"tallest-fill":jj}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(e=>e.trim()).filter(e=>e!=="")}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&ie.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll('[role="listitem"]').length===0,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(ie.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&ie.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=xwe.render(this,this.listElement);let e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(t=>t.tagName===e),this.menuElement===void 0&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),this.menuElement.id===""&&(this.menuElement.id=ln("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),ie.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),this.inputElementView!==null&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new vo(e=>e.selectedItems,e=>e.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new vo(e=>e.filteredOptionsList,e=>e.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e,ie.queueUpdate(()=>{this.menuElement!==void 0?this.setFocusedOption(0):this.disableMenu()});return}this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case Ct:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}return!1}case It:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}return!1}case Li:return this.toggleFlyout(!1),!1;case Gt:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case ai:return document.activeElement!==this.inputElement?(this.incrementFocusedItem(1),!1):!0;case oi:return this.inputElement.selectionStart===0?(this.incrementFocusedItem(-1),!1):!0;case Cj:case Sj:{if(document.activeElement===null)return!0;
523if(document.activeElement===this.inputElement)return this.inputElement.selectionStart===0?(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1):!0;let t=Array.from(this.listElement.children),i=t.indexOf(document.activeElement);return i>-1?(this.selection=this.selectedItems.splice(i,1).toString(),ie.queueUpdate(()=>{t[Math.min(t.length,i)].focus()}),!1):!0}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return(this.menuElement===void 0||!this.menuElement.contains(e.relatedTarget))&&this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=this.selection===""?[]:this.selection.split(","),this.updateFilteredOptions(),ie.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){ie.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(this.inputElement!==void 0)if(this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){let e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof ds){let i=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(i!==-1){let n=this.selectedItems.slice();n.splice(i,1),this.selection=n.toString(),ie.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof us?(e.target.value!==void 0&&(this.selection=`${this.selection}${this.selection===""?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1):!0}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}let t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(document.activeElement!==null){let i=t.indexOf(document.activeElement);i===-1&&(i=t.length);let n=Math.min(t.length,Math.max(0,i+e));n===t.length?this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected?t[n-1].focus():this.inputElement.focus():t[n].focus()}}disableMenu(){var e,t,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,(e=this.inputElement)===null||e===void 0||e.removeAttribute("aria-activedescendant"),(t=this.inputElement)===null||t===void 0||t.removeAttribute("aria-owns"),(i=this.inputElement)===null||i===void 0||i.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0)return;this.menuElement.optionElements.forEach(i=>{i.setAttribute("aria-selected","false")}),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);let t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=(e=this.listItemTemplate)!==null&&e!==void 0?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=(e=this.menuOptionTemplate)!==null&&e!==void 0?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>this.selectedItems.indexOf(e)===-1)),this.filterQuery&&this.query!==""&&this.query!==void 0&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>e.indexOf(this.query)!==-1))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];e===null&&(e=Iw),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};y([x({attribute:"selection"})],Ke.prototype,"selection",void 0);y([x({attribute:"options"})],Ke.prototype,"options",void 0);y([x({attribute:"filter-selected",mode:"boolean"})],Ke.prototype,"filterSelected",void 0);y([x({attribute:"filter-query",mode:"boolean"})],Ke.prototype,"filterQuery",void 0);y([x({attribute:"max-selected"})],Ke.prototype,"maxSelected",void 0);y([x({attribute:"no-suggestions-text"})],Ke.prototype,"noSuggestionsText",void 0);y([x({attribute:"suggestions-available-text"})],Ke.prototype,"suggestionsAvailableText",void 0);y([x({attribute:"loading-text"})],Ke.prototype,"loadingText",void 0);y([x({attribute:"label"})],Ke.prototype,"label",void 0);y([x({attribute:"labelledby"})],Ke.prototype,"labelledBy",void 0);y([x({attribute:"placeholder"})],Ke.prototype,"placeholder",void 0);y([x({attribute:"menu-placement"})],Ke.prototype,"menuPlacement",void 0);y([M],Ke.prototype,"showLoading",void 0);y([M],Ke.prototype,"listItemTemplate",void 0);y([M],Ke.prototype,"defaultListItemTemplate",void 0);y([M],Ke.prototype,"activeListItemTemplate",void 0);y([M],Ke.prototype,"menuOptionTemplate",void 0);y([M],Ke.prototype,"defaultMenuOptionTemplate",void 0);y([M],Ke.prototype,"activeMenuOptionTemplate",void 0);y([M],Ke.prototype,"listItemContentsTemplate",void 0);y([M],Ke.prototype,"menuOptionContentsTemplate",void 0);y([M],Ke.prototype,"optionsList",void 0);y([M],Ke.prototype,"query",void 0);y([M],Ke.prototype,"filteredOptionsList",void 0);y([M],Ke.prototype,"flyoutOpen",void 0);y([M],Ke.prototype,"menuId",void 0);y([M],Ke.prototype,"selectedListTag",void 0);y([M],Ke.prototype,"menuTag",void 0);y([M],Ke.prototype,"menuFocusIndex",void 0);y([M],Ke.prototype,"menuFocusOptionId",void 0);y([M],Ke.prototype,"showNoOptions",void 0);y([M],Ke.prototype,"menuConfig",void 0);y([M],Ke.prototype,"selectedItems",void 0)});var Cq,Iq=p(()=>{L();Cq=(r,e)=>z`
524        <template role="list" slot="menu-region">
525            <div class="options-display" part="options-display">
526                <div class="header-region" part="header-region">
527                    <slot name="header-region" ${ke("headerElements")}></slot>
528                </div>
529
530                <slot ${ke("menuElements")}></slot>
531                <div class="footer-region" part="footer-region">
532                    <slot name="footer-region" ${ke("footerElements")}></slot>
533                </div>
534                <div
535                    role="alert"
536                    aria-live="polite"
537                    part="suggestions-available-alert"
538                    class="suggestions-available-alert"
539                >
540                    ${t=>t.suggestionsAvailableText}
541                </div>
542            </div>
543        </template>
544    `});var kq,Eq=p(()=>{L();kq=(r,e)=>z`
545        <template
546            role="listitem"
547            tabindex="-1"
548            @click="${(t,i)=>t.handleClick(i.event)}"
549        >
550            <slot></slot>
551        </template>
552    `});var Tq,Aq=p(()=>{L();Tq=(r,e)=>z`
553        <template slot="list-region" role="list" class="picker-list">
554            <slot></slot>
555            <slot name="input-region"></slot>
556        </template>
557    `});var Rq,Oq=p(()=>{L();Rq=(r,e)=>z`
558        <template
559            role="listitem"
560            tabindex="0"
561            @click="${(t,i)=>t.handleClick(i.event)}"
562            @keydown="${(t,i)=>t.handleKeyDown(i.event)}"
563        >
564            <slot></slot>
565        </template>
566    `});var Dq=p(()=>{_q();Sq();Iq();Qw();Eq();P0();Aq();e2();Oq();F0()});var Or,r2,$q=p(()=>{Or={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},r2={[Or.menuitem]:"menuitem",[Or.menuitemcheckbox]:"menuitemcheckbox",[Or.menuitemradio]:"menuitemradio"}});var Kr,i2=p(()=>{Ee();L();fe();Ae();Mt();Ia();Rr();$q();Kr=class extends X{constructor(){super(...arguments),this.role=Or.menuitem,this.hasSubmenu=!1,this.currentDirection=Le.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case Gt:case Ni:return this.invoke(),!1;case ai:return this.expandAndFocus(),!1;case oi:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Or.menuitemcheckbox:this.checked=!this.checked;break;case Or.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Or.menuitemradio:this.checked||(this.checked=!0);break}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(e=>e.getAttribute("role")==="menu"),this.hasSubmenu=this.submenu!==void 0}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===void 0)return;this.expanded===!1?this.submenu.collapseExpandedItem():this.currentDirection=Ii(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),ie.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,this.observer!==void 0&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}};y([x({mode:"boolean"})],Kr.prototype,"disabled",void 0);y([x({mode:"boolean"})],Kr.prototype,"expanded",void 0);y([M],Kr.prototype,"startColumnCount",void 0);y([x],Kr.prototype,"role",void 0);y([x({mode:"boolean"})],Kr.prototype,"checked",void 0);y([M],Kr.prototype,"submenuRegion",void 0);y([M],Kr.prototype,"hasSubmenu",void 0);y([M],Kr.prototype,"currentDirection",void 0);y([M],Kr.prototype,"submenu",void 0);Fe(Kr,it)});var Mq,Pq=p(()=>{L();mf();Mt();i2();Mq=(r,e)=>z`
567    <template
568        role="${t=>t.role}"
569        aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}"
570        aria-checked="${t=>t.role!==Or.menuitem?t.checked:void 0}"
571        aria-disabled="${t=>t.disabled}"
572        aria-expanded="${t=>t.expanded}"
573        @keydown="${(t,i)=>t.handleMenuItemKeyDown(i.event)}"
574        @click="${(t,i)=>t.handleMenuItemClick(i.event)}"
575        @mouseover="${(t,i)=>t.handleMouseOver(i.event)}"
576        @mouseout="${(t,i)=>t.handleMouseOut(i.event)}"
577        class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>`indent-${t.startColumnCount}`}"
578    >
579            ${He(t=>t.role===Or.menuitemcheckbox,z`
580                    <div part="input-container" class="input-container">
581                        <span part="checkbox" class="checkbox">
582                            <slot name="checkbox-indicator">
583                                ${e.checkboxIndicator||""}
584                            </slot>
585                        </span>
586                    </div>
587                `)}
588            ${He(t=>t.role===Or.menuitemradio,z`
589                    <div part="input-container" class="input-container">
590                        <span part="radio" class="radio">
591                            <slot name="radio-indicator">
592                                ${e.radioIndicator||""}
593                            </slot>
594                        </span>
595                    </div>
596                `)}
597        </div>
598        ${ft(r,e)}
599        <span class="content" part="content">
600            <slot></slot>
601        </span>
602        ${ht(r,e)}
603        ${He(t=>t.hasSubmenu,z`
604                <div
605                    part="expand-collapse-glyph-container"
606                    class="expand-collapse-glyph-container"
607                >
608                    <span part="expand-collapse" class="expand-collapse">
609                        <slot name="expand-collapse-indicator">
610                            ${e.expandCollapseGlyph||""}
611                        </slot>
612                    </span>
613                </div>
614            `)}
615        ${He(t=>t.expanded,z`
616                <${r.tagFor(je)}
617                    :anchorElement="${t=>t}"
618                    vertical-positioning-mode="dynamic"
619                    vertical-default-position="bottom"
620                    vertical-inset="true"
621                    horizontal-positioning-mode="dynamic"
622                    horizontal-default-position="end"
623                    class="submenu-region"
624                    dir="${t=>t.currentDirection}"
625                    @loaded="${t=>t.submenuLoaded()}"
626                    ${Se("submenuRegion")}
627                    part="submenu-region"
628                >
629                    <slot name="submenu"></slot>
630                </${r.tagFor(je)}>
631            `)}
632    </template>
633`});var n2=p(()=>{Pq();i2()});var Fq,Lq=p(()=>{L();Fq=(r,e)=>z`
634    <template
635        slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}"
636        role="menu"
637        @keydown="${(t,i)=>t.handleMenuKeyDown(i.event)}"
638        @focusout="${(t,i)=>t.handleFocusOut(i.event)}"
639    >
640        <slot ${ke("items")}></slot>
641    </template>
642`});var Co,Nq=p(()=>{Ee();L();fe();n2();Ae();Co=class extends X{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Ls(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();let t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{let t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();let t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.removeItemListeners=()=>{this.menuItems!==void 0&&this.menuItems.forEach(e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{let e=this.domChildren();this.removeItemListeners(),this.menuItems=e;let t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);function i(s){let o=s.getAttribute("role"),a=s.querySelector("[slot=start]");return o!==Or.menuitem&&a===null||o===Or.menuitem&&a!==null?1:o!==Or.menuitem&&a!==null?2:0}let n=t.reduce((s,o)=>{let a=i(o);return s>a?s:a},0);t.forEach((s,o)=>{s.setAttribute("tabindex",o===0?"0":"-1"),s.addEventListener("expanded-change",this.handleExpandedChanged),s.addEventListener("focus",this.handleItemFocus),(s instanceof Kr||"startColumnCount"in s)&&(s.startColumnCount=n)})},this.changeHandler=e=>{if(this.menuItems===void 0)return;let t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){let o=this.menuItems[s],a=o.getAttribute("role");
642if(a===Or.menuitemradio&&(o.checked=!1),a==="separator")break}let n=this.menuItems.length-1;for(let s=i+1;s<=n;++s){let o=this.menuItems[s],a=o.getAttribute("role");if(a===Or.menuitemradio&&(o.checked=!1),a==="separator")break}}},this.isMenuItemElement=e=>Ls(e)&&Co.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),ie.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case Ct:this.setFocus(this.focusIndex+1,1);return;case It:this.setFocus(this.focusIndex-1,-1);return;case ur:this.setFocus(this.menuItems.length-1,-1);return;case cr:this.setFocus(0,1);return;default:return!0}}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){let i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};Co.focusableElementRoles=r2;y([M],Co.prototype,"items",void 0)});var Bq=p(()=>{Lq();Nq()});var jq,zq=p(()=>{L();Mt();jq=(r,e)=>z`
643    <template class="${t=>t.readOnly?"readonly":""}">
644        <label
645            part="label"
646            for="control"
647            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
648        >
649            <slot ${ke("defaultSlottedNodes")}></slot>
650        </label>
651        <div class="root" part="root">
652            ${ft(r,e)}
653            <input
654                class="control"
655                part="control"
656                id="control"
657                @input="${t=>t.handleTextInput()}"
658                @change="${t=>t.handleChange()}"
659                @keydown="${(t,i)=>t.handleKeyDown(i.event)}"
660                @blur="${(t,i)=>t.handleBlur()}"
661                ?autofocus="${t=>t.autofocus}"
662                ?disabled="${t=>t.disabled}"
663                list="${t=>t.list}"
664                maxlength="${t=>t.maxlength}"
665                minlength="${t=>t.minlength}"
666                placeholder="${t=>t.placeholder}"
667                ?readonly="${t=>t.readOnly}"
668                ?required="${t=>t.required}"
669                size="${t=>t.size}"
670                type="text"
671                inputmode="numeric"
672                min="${t=>t.min}"
673                max="${t=>t.max}"
674                step="${t=>t.step}"
675                aria-atomic="${t=>t.ariaAtomic}"
676                aria-busy="${t=>t.ariaBusy}"
677                aria-controls="${t=>t.ariaControls}"
678                aria-current="${t=>t.ariaCurrent}"
679                aria-describedby="${t=>t.ariaDescribedby}"
680                aria-details="${t=>t.ariaDetails}"
681                aria-disabled="${t=>t.ariaDisabled}"
682                aria-errormessage="${t=>t.ariaErrormessage}"
683                aria-flowto="${t=>t.ariaFlowto}"
684                aria-haspopup="${t=>t.ariaHaspopup}"
685                aria-hidden="${t=>t.ariaHidden}"
686                aria-invalid="${t=>t.ariaInvalid}"
687                aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
688                aria-label="${t=>t.ariaLabel}"
689                aria-labelledby="${t=>t.ariaLabelledby}"
690                aria-live="${t=>t.ariaLive}"
691                aria-owns="${t=>t.ariaOwns}"
692                aria-relevant="${t=>t.ariaRelevant}"
693                aria-roledescription="${t=>t.ariaRoledescription}"
694                ${Se("control")}
695            />
696            ${He(t=>!t.hideStep&&!t.readOnly&&!t.disabled,z`
697                    <div class="controls" part="controls">
698                        <div class="step-up" part="step-up" @click="${t=>t.stepUp()}">
699                            <slot name="step-up-glyph">
700                                ${e.stepUpGlyph||""}
701                            </slot>
702                        </div>
703                        <div
704                            class="step-down"
705                            part="step-down"
706                            @click="${t=>t.stepDown()}"
707                        >
708                            <slot name="step-down-glyph">
709                                ${e.stepDownGlyph||""}
710                            </slot>
711                        </div>
712                    </div>
713                `)}
714            ${ht(r,e)}
715        </div>
716    </template>
717`});var s2,N0,qq=p(()=>{ji();Ae();s2=class extends X{},N0=class extends nr(s2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Hq,Vq=p(()=>{Hq={email:"email",password:"password",tel:"tel",text:"text",url:"url"}});var Yr,zs,B0=p(()=>{Ee();L();$c();Rr();qq();Vq();Yr=class extends N0{constructor(){super(...arguments),this.type=Hq.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.t
717ype,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&ie.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};y([x({attribute:"readonly",mode:"boolean"})],Yr.prototype,"readOnly",void 0);y([x({mode:"boolean"})],Yr.prototype,"autofocus",void 0);y([x],Yr.prototype,"placeholder",void 0);y([x],Yr.prototype,"type",void 0);y([x],Yr.prototype,"list",void 0);y([x({converter:le})],Yr.prototype,"maxlength",void 0);y([x({converter:le})],Yr.prototype,"minlength",void 0);y([x],Yr.prototype,"pattern",void 0);y([x({converter:le})],Yr.prototype,"size",void 0);y([x({mode:"boolean"})],Yr.prototype,"spellcheck",void 0);y([M],Yr.prototype,"defaultSlottedNodes",void 0);zs=class{};Fe(zs,Je);Fe(Yr,it,zs)});var o2,j0,Uq=p(()=>{ji();Ae();o2=class extends X{},j0=class extends nr(o2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Dr,Wq=p(()=>{Ee();L();fe();Mt();Rr();B0();Uq();Dr=class extends j0{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(e,t){var i;this.max=Math.max(t,(i=this.min)!==null&&i!==void 0?i:t);let n=Math.min(this.min,this.max);this.min!==void 0&&this.min!==n&&(this.min=n),this.value=this.getValidValue(this.value)}minChanged(e,t){var i;this.min=Math.min(t,(i=this.max)!==null&&i!==void 0?i:t);let n=Math.max(this.min,this.max);this.max!==void 0&&this.max!==n&&(this.max=n),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(e){var t,i;let n=parseFloat(parseFloat(e).toPrecision(12));return isNaN(n)?n="":(n=Math.min(n,(t=this.max)!==null&&t!==void 0?t:n),n=Math.max(n,(i=this.min)!==null&&i!==void 0?i:n).toString()),n}stepUp(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString()}stepDown(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&ie.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){switch(e.key){case It:return this.stepUp(),!1;case Ct:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};y([x({attribute:"readonly",mode:"boolean"})],Dr.prototype,"readOnly",void 0);y([x({mode:"boolean"})],Dr.prototype,"autofocus",void 0);y([x({attribute:"hide-step",mode:"boolean"})],Dr.prototype,"hideStep",void 0);y([x],Dr.prototype,"placeholder",void 0);y([x],Dr.prototype,"list",void 0);y([x({converter:le})],Dr.prototype,"maxlength",void 0);y([x({converter:le})],Dr.prototype,"minlength",void 0);y([x({converter:le})],Dr.prototype,"size",void 0);y([x({converter:le})],Dr.prototype,"step",void 0);y([x({converter:le})],Dr.prototype,"max",void 0);y([x({converter:le})],Dr.prototype,"min",void 0);y([M],Dr.prototype,"defaultSlottedNodes",void 0);Fe(Dr,it,zs)});var Gq=p(()=>{zq();Wq()});var Kq,Yq,Xq=p(()=>{L();Kq=44,Yq=(r,e)=>z`
718    <template
719        role="progressbar"
720        aria-valuenow="${t=>t.value}"
721        aria-valuemin="${t=>t.min}"
722        aria-valuemax="${t=>t.max}"
723        class="${t=>t.paused?"paused":""}"
724    >
725        ${He(t=>typeof t.value=="number",z`
726                <svg
727                    class="progress"
728                    part="progress"
729                    viewBox="0 0 16 16"
730                    slot="determinate"
731                >
732                    <circle
733                        class="background"
734                        part="background"
735                        cx="8px"
736                        cy="8px"
737                        r="7px"
738                    ></circle>
739                    <circle
740                        class="determinate"
741                        part="determinate"
742                        style="stroke-dasharray: ${t=>Kq*t.percentComplete/100}px ${Kq}px"
743                        cx="8px"
744                        cy="8px"
745                        r="7px"
746                    ></circle>
747                </svg>
748            `,z`
749                <slot name="indeterminate" slot="indeterminate">
750                    ${e.indeterminateIndicator||""}
751                </slot>
752            `)}
753    </template>
754`});var Jq=p(()=>{Xq()});var dn,Zq=p(()=>{Ee();L();Ae();dn=class extends X{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){let e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,i=typeof this.value=="number"?this.value:0,n=t-e;this.percentComplete=n===0?0:Math.fround((i-e)/n*100)}};y([x({converter:le})],dn.prototype,"value",void 0);y([x({converter:le})],dn.prototype,"min",void 0);y([x({converter:le})],dn.prototype,"max",void 0);y([x({mode:"boolean"})],dn.prototype,"paused",void 0);y([M],dn.prototype,"percentComplete",void 0)});var Qq,eH=p(()=>{L();Qq=(r,e)=>z`
755    <template
756        role="progressbar"
757        aria-valuenow="${t=>t.value}"
758        aria-valuemin="${t=>t.min}"
759        aria-valuemax="${t=>t.max}"
760        class="${t=>t.paused?"paused":""}"
761    >
762        ${He(t=>typeof t.value=="number",z`
763                <div class="progress" part="progress" slot="determinate">
764                    <div
765                        class="determinate"
766                        part="determinate"
767                        style="width: ${t=>t.percentComplete}%"
768                    ></div>
769                </div>
770            `,z`
771                <div class="progress" part="progress" slot="indeterminate">
772                    <slot class="indeterminate" name="indeterminate">
773                        ${e.indeterminateIndicator1||""}
774                        ${e.indeterminateIndicator2||""}
775                    </slot>
776                </div>
777            `)}
778    </template>
779`});var tH=p(()=>{Zq();eH()});var rH,iH=p(()=>{L();fe();rH=(r,e)=>z`
780    <template
781        role="radiogroup"
782        aria-disabled="${t=>t.disabled}"
783        aria-readonly="${t=>t.readOnly}"
784        @click="${(t,i)=>t.clickHandler(i.event)}"
785        @keydown="${(t,i)=>t.keydownHandler(i.event)}"
786        @focusout="${(t,i)=>t.focusOutHandler(i.event)}"
787    >
788        <slot name="label"></slot>
789        <div
790            class="positioning-region ${t=>t.orientation===Ge.horizontal?"horizontal":"vertical"}"
791            part="positioning-region"
792        >
793            <slot
794                ${ke({property:"slottedRadioButtons",filter:si("[role=radio]")})}
795            ></slot>
796        </div>
797    </template>
798`});var Nn,nH=p(()=>{Ee();L();fe();Ia();Ae();Nn=class extends X{constructor(){super(...arguments),this.orientation=Ge.horizontal,this.radioChangeHandler=e=>{let t=e.target;t.checked&&(this.slottedRadioButtons.forEach(i=>{i!==t&&(i.checked=!1,this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{let i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(n=>{n!==i&&n.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)===null||e===void 0||e.focus()},this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)===null||e===void 0||e.focus()},this.focusOutHandler=e=>{let t=this.slottedRadioButtons,i=e.target,n=i!==null?t.indexOf(i):0,s=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(s===0&&n===s||s===t.length-1&&s===n)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(o=>{o!==this.selectedRadio&&o.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(o=>{o!==this.focusedRadio&&o.setAttribute("tabindex","-1")}))),!0},this.clickHandler=e=>{let t=e.target;if(t){let i=this.slottedRadioButtons;t.checked||i.indexOf(t)===0?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===ai,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===oi,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{let t=this.slottedRadioButtons,i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key)){this.moveRightOffGroup();return}else i===t.length&&(i=0);for(;i<t.length&&t.length>1;)if(t[i].disabled){if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;
798i=0}else i+=1}else{this.moveToRadioByIndex(t,i);break}},this.moveLeft=e=>{let t=this.slottedRadioButtons,i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;i>=0&&t.length>1;)if(t[i].disabled){if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}else{this.moveToRadioByIndex(t,i);break}},this.keydownHandler=e=>{let t=e.key;if(t in Bi&&this.isInsideFoundationToolbar)return!0;switch(t){case Gt:{this.checkFocusedRadio();break}case ai:case Ct:{this.direction===Le.ltr?this.moveRight(e):this.moveLeft(e);break}case oi:case It:{this.direction===Le.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{this.disabled?e.disabled=!0:e.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return(e=this.parentToolbar)!==null&&e!==void 0?e:!1}get isInsideFoundationToolbar(){var e;return!!(!((e=this.parentToolbar)===null||e===void 0)&&e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=Ii(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){let e=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),t=e?e.length:0;if(t>1){let n=e[t-1];n.checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(n=>{this.name!==void 0&&n.setAttribute("name",this.name),this.disabled&&(n.disabled=!0),this.readOnly&&(n.readOnly=!0),this.value&&this.value===n.value?(this.selectedRadio=n,this.focusedRadio=n,n.checked=!0,n.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||n.setAttribute("tabindex","-1"),n.checked=!1),n.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){let n=this.slottedRadioButtons.filter(o=>o.hasAttribute("checked")),s=n!==null?n.length:0;if(s>0&&!i){let o=n[s-1];o.checked=!0,this.focusedRadio=o,o.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};y([x({attribute:"readonly",mode:"boolean"})],Nn.prototype,"readOnly",void 0);y([x({attribute:"disabled",mode:"boolean"})],Nn.prototype,"disabled",void 0);y([x],Nn.prototype,"name",void 0);y([x],Nn.prototype,"value",void 0);y([x],Nn.prototype,"orientation",void 0);y([M],Nn.prototype,"childItems",void 0);y([M],Nn.prototype,"slottedRadioButtons",void 0)});var sH=p(()=>{iH();nH()});var oH=p(()=>{});var a2,z0,aH=p(()=>{ji();Ae();a2=class extends X{},z0=class extends Ju(a2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Oa,lH=p(()=>{Ee();L();fe();aH();Oa=class extends z0{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{switch(e.key){case Ni:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(e=this.defaultChecked)!==null&&e!==void 0?e:!1,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),((e=this.parentElement)===null||e===void 0?void 0:e.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(e){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};y([x({attribute:"readonly",mode:"boolean"})],Oa.prototype,"readOnly",void 0);y([M],Oa.prototype,"name",void 0);y([M],Oa.prototype,"defaultSlottedNodes",void 0)});var cH=p(()=>{oH();lH()});var Io,uH=p(()=>{Ee();L();Ae();Io=class extends X{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){let i=this.scrolling==!0?"scrollstart":"scrollend";this.$emit(i,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(e,t){t&&!this.updatingItems&&ie.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;let e=this.scrollItems.reduce((t,i)=>i instanceof HTMLSlotElement?t.concat(i.assignedElements()):(t.push(i),t),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();let{scrollContainer:e}=this,{scrollLeft:t}=e,{width:i,left:n}=e.getBoundingClientRect();this.width=i;let s=0,o=this.scrollItems.map((a,l)=>{let{left:c,width:u}=a.getBoundingClientRect(),d=Math.round(c+t-n),f=Math.round(d+u);return this.isRtl?-f:(s=f,l===0?0:d)}).concat(s);o=this.fixScrollMisalign(o),o.sort((a,l)=>Math.abs(a)-Math.abs(l)),this.scrollStops=o,this.setFlippers()}validateStops(e=!0){let t=()=>!!this.scrollStops.find(i=>i>0);return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some(t=>t>0)){e.sort((i,n)=>n-i);let t=e[0];e=e.map(i=>i-t)}return e}
798setFlippers(){var e,t;let i=this.scrollContainer.scrollLeft;if((e=this.previousFlipperContainer)===null||e===void 0||e.classList.toggle("disabled",i===0),this.scrollStops){let n=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)===null||t===void 0||t.classList.toggle("disabled",this.validateStops(!1)&&Math.abs(i)+this.width>=n)}}scrollInView(e,t=0,i){var n;if(typeof e!="number"&&e&&(e=this.scrollItems.findIndex(s=>s===e||s.contains(e))),e!==void 0){i=i??t;let{scrollContainer:s,scrollStops:o,scrollItems:a}=this,{scrollLeft:l}=this.scrollContainer,{width:c}=s.getBoundingClientRect(),u=o[e],{width:d}=a[e].getBoundingClientRect(),f=u+d,m=l+t>u;if(m||l+c-i<f){let b=(n=[...o].sort((v,S)=>m?S-v:v-S).find(v=>m?v+t<u:v+c-(i??0)>f))!==null&&n!==void 0?n:0;this.scrollToPosition(b)}}}keyupHandler(e){switch(e.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext();break}}scrollToPrevious(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((s,o)=>s>=e&&(this.isRtl||o===this.scrollStops.length-1||this.scrollStops[o+1]>e)),i=Math.abs(this.scrollStops[t+1]),n=this.scrollStops.findIndex(s=>Math.abs(s)+this.width>i);(n>=t||n===-1)&&(n=t>0?t-1:0),this.scrollToPosition(this.scrollStops[n],e)}scrollToNext(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(s=>Math.abs(s)>=Math.abs(e)),i=this.scrollStops.findIndex(s=>Math.abs(e)+this.width<=Math.abs(s)),n=t;i>t+2?n=i-2:t<this.scrollStops.length-2&&(n=t+1),this.scrollToPosition(this.scrollStops[n],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;let n=(i=this.duration)!==null&&i!==void 0?i:`${Math.abs(e-t)/this.speed}s`;this.content.style.setProperty("transition-duration",n);let s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),o=c=>{c&&c.target!==c.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener("transitionend",o),this.scrolling=!1)};if(s===0){o();return}this.content.addEventListener("transitionend",o);let a=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth,l=this.scrollContainer.scrollLeft-Math.min(e,a);this.isRtl&&(l=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),a)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${l}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}};y([x({converter:le})],Io.prototype,"speed",void 0);y([x],Io.prototype,"duration",void 0);y([x],Io.prototype,"easing",void 0);y([x({attribute:"flippers-hidden-from-at",converter:Tc})],Io.prototype,"flippersHiddenFromAT",void 0);y([M],Io.prototype,"scrolling",void 0);y([M],Io.prototype,"scrollItems",void 0);y([x({attribute:"view"})],Io.prototype,"view",void 0)});var dH=p(()=>{});var hH=p(()=>{uH();dH()});function rd(r,e,t){return r.nodeType!==Node.TEXT_NODE?!0:typeof r.nodeValue=="string"&&!!r.nodeValue.trim().length}var q0=p(()=>{});var fH,pH=p(()=>{L();Mt();q0();fH=(r,e)=>z`
799    <template
800        class="
801            ${t=>t.readOnly?"readonly":""}
802        "
803    >
804        <label
805            part="label"
806            for="control"
807            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
808        >
809            <slot
810                ${ke({property:"defaultSlottedNodes",filter:rd})}
811            ></slot>
812        </label>
813        <div class="root" part="root" ${Se("root")}>
814            ${ft(r,e)}
815            <div class="input-wrapper" part="input-wrapper">
816                <input
817                    class="control"
818                    part="control"
819                    id="control"
820                    @input="${t=>t.handleTextInput()}"
821                    @change="${t=>t.handleChange()}"
822                    ?autofocus="${t=>t.autofocus}"
823                    ?disabled="${t=>t.disabled}"
824                    list="${t=>t.list}"
825                    maxlength="${t=>t.maxlength}"
826                    minlength="${t=>t.minlength}"
827                    pattern="${t=>t.pattern}"
828                    placeholder="${t=>t.placeholder}"
829                    ?readonly="${t=>t.readOnly}"
830                    ?required="${t=>t.required}"
831                    size="${t=>t.size}"
832                    ?spellcheck="${t=>t.spellcheck}"
833                    :value="${t=>t.value}"
834                    type="search"
835                    aria-atomic="${t=>t.ariaAtomic}"
836                    aria-busy="${t=>t.ariaBusy}"
837                    aria-controls="${t=>t.ariaControls}"
838                    aria-current="${t=>t.ariaCurrent}"
839                    aria-describedby="${t=>t.ariaDescribedby}"
840                    aria-details="${t=>t.ariaDetails}"
841                    aria-disabled="${t=>t.ariaDisabled}"
842                    aria-errormessage="${t=>t.ariaErrormessage}"
843                    aria-flowto="${t=>t.ariaFlowto}"
844                    aria-haspopup="${t=>t.ariaHaspopup}"
845                    aria-hidden="${t=>t.ariaHidden}"
846                    aria-invalid="${t=>t.ariaInvalid}"
847                    aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
848                    aria-label="${t=>t.ariaLabel}"
849                    aria-labelledby="${t=>t.ariaLabelledby}"
850                    aria-live="${t=>t.ariaLive}"
851                    aria-owns="${t=>t.ariaOwns}"
852                    aria-relevant="${t=>t.ariaRelevant}"
853                    aria-roledescription="${t=>t.ariaRoledescription}"
854                    ${Se("control")}
855                />
856                <slot name="close-button">
857                    <button
858                        class="clear-button ${t=>t.value?"":"clear-button__hidden"}"
859                        part="clear-button"
860                        tabindex="-1"
861                        @click=${t=>t.handleClearInput()}
862                    >
863                        <slot name="close-glyph">
864                            <svg
865                                width="9"
866                                height="9"
867                                viewBox="0 0 9 9"
868                                xmlns="http://www.w3.org/2000/svg"
869                            >
870                                <path
871                                    d="M0.146447 0.146447C0.338683 -0.0478972 0.645911 -0.0270359 0.853553 0.146447L4.5 3.793L8.14645 0.146447C8.34171 -0.0488155 8.65829 -0.0488155 8.85355 0.146447C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L5.207 4.5L8.85355 8.14645C9.05934 8.35223 9.03129 8.67582 8.85355 8.85355C8.67582 9.03129 8.35409 9.02703 8.14645 8.85355L4.5 5.207L0.853553 8.85355C0.658291 9.04882 0.341709 9.04882 0.146447 8.85355C-0.0488155 8.65829 -0.0488155 8.34171 0.146447 8.14645L3.793 4.5L0.146447 0.853553C-0.0268697 0.680237 -0.0457894 0.34079 0.146447 0.146447Z"
872                                />
873                            </svg>
874                        </slot>
875                    </button>
876                </slot>
877            </div>
878            ${ht(r,e)}
879        </div>
880    </template>
881`});var l2,H0,mH=p(()=>{ji();Ae();l2=class extends X{},H0=class extends nr(l2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var ci,V0,gH=p(()=>{Ee();L();$c();Rr();mH();ci=class extends H0{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&ie.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}};y([x({attribute:"readonly",mode:"boolean"})],ci.prototype,"readOnly",void 0);y([x({mode:"boolean"})],ci.prototype,"autofocus",void 0);y([x],ci.prototype,"placeholder",void 0);y([x],ci.prototype,"list",void 0);y([x({converter:le})],ci.prototype,"maxlength",void 0);y([x({converter:le})],ci.prototype,"minlength",void 0);y([x],ci.prototype,"pattern",void 0);y([x({converter:le})],ci.prototype,"size",void 0);y([x({mode:"boolean"})],ci.prototype,"spellcheck",void 0);y([M],ci.prototype,"defaultSlottedNodes",void 0);V0=class{};Fe(V0,Je);Fe(ci,it,V0)});var bH=p(()=>{pH();gH()});var c2,U0,vH=p(()=>{M0();ji();c2=class extends zi{},U0=class extends nr(c2){constructor(){super(...arguments),this.proxy=document.createElement("select")}}});var qi,If,yH=p(()=>{Ee();L();fe();Ta();Mt();Rr();vH();E0();qi=class extends U0{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=ln("listbox-"),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,ie.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return he.track(this,"value"),this._value}set value(e){var t,i,n,s,o,a,l;let c=`${this._value}`;if(!((t=this._options)===null||t===void 0)&&t.length){let u=this._options.findIndex(m=>m.value===e),d=(n=(i=this._options[this.selectedIndex])===null||i===void 0?void 0:i.value)!==null&&n!==void 0?n:null,f=(o=(s=this._options[u])===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:null;(u===-1||d!==f)&&(e="",this.selectedIndex=u),e=(l=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:e}c!==e&&(this._value=e,super.valueChanged(c,e),he.notify(this,"value"),this.updateDisplayValue())}updateValue(e){var t,i;this.$fastController.isConnected&&(this.value=(i=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateV
881alue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){let e=this.getBoundingClientRect(),i=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>i?Aa.above:Aa.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Aa.above?~~e.top:~~i}get displayValue(){var e,t;return he.track(this,"displayValue"),(t=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text)!==null&&t!==void 0?t:""}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(e){var t;if(super.focusoutHandler(e),!this.open)return!0;let i=e.relatedTarget;if(this.isSameNode(i)){this.focus();return}!((t=this.options)===null||t===void 0)&&t.includes(i)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),t==="value"&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach(i=>{he.getNotifier(i).unsubscribe(this,"value")}),super.slottedOptionsChanged(e,t),this.options.forEach(i=>{he.getNotifier(i).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){var t;return e.offsetX>=0&&e.offsetX<=((t=this.listbox)===null||t===void 0?void 0:t.scrollWidth)?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var i;super.selectedOptionsChanged(e,t),(i=this.options)===null||i===void 0||i.forEach((n,s)=>{var o;let a=(o=this.proxy)===null||o===void 0?void 0:o.options.item(s);a&&(a.selected=n.selected)})}setDefaultSelectedOption(){var e;let t=(e=this.options)!==null&&e!==void 0?e:Array.from(this.children).filter(Lt.slottedOptionFilter),i=t?.findIndex(n=>n.hasAttribute("selected")||n.selected||n.value===this.value);if(i!==-1){this.selectedIndex=i;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(e=>{let t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)}))}keydownHandler(e){super.keydownHandler(e);let t=e.key||e.key.charCodeAt(0);switch(t){case Ni:{e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case cr:case ur:{e.preventDefault();break}case Gt:{e.preventDefault(),this.open=!this.open;break}case Li:{this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break}case Ca:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===Ct||t===It)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&he.notify(this,"displayValue")}};y([x({attribute:"open",mode:"boolean"})],qi.prototype,"open",void 0);y([dB],qi.prototype,"collapsible",null);y([M],qi.prototype,"control",void 0);y([x({attribute:"position"})],qi.prototype,"positionAttribute",void 0);y([M],qi.prototype,"position",void 0);y([M],qi.prototype,"maxHeight",void 0);If=class{};y([M],If.prototype,"ariaControls",void 0);Fe(If,Fn);Fe(qi,it,If)});var xH,_H=p(()=>{L();Ta();Mt();xH=(r,e)=>z`
882    <template
883        class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(
883Boolean).join(" ")}"
884        aria-activedescendant="${t=>t.ariaActiveDescendant}"
885        aria-controls="${t=>t.ariaControls}"
886        aria-disabled="${t=>t.ariaDisabled}"
887        aria-expanded="${t=>t.ariaExpanded}"
888        aria-haspopup="${t=>t.collapsible?"listbox":null}"
889        aria-multiselectable="${t=>t.ariaMultiSelectable}"
890        ?open="${t=>t.open}"
891        role="combobox"
892        tabindex="${t=>t.disabled?null:"0"}"
893        @click="${(t,i)=>t.clickHandler(i.event)}"
894        @focusin="${(t,i)=>t.focusinHandler(i.event)}"
895        @focusout="${(t,i)=>t.focusoutHandler(i.event)}"
896        @keydown="${(t,i)=>t.keydownHandler(i.event)}"
897        @mousedown="${(t,i)=>t.mousedownHandler(i.event)}"
898    >
899        ${He(t=>t.collapsible,z`
900                <div
901                    class="control"
902                    part="control"
903                    ?disabled="${t=>t.disabled}"
904                    ${Se("control")}
905                >
906                    ${ft(r,e)}
907                    <slot name="button-container">
908                        <div class="selected-value" part="selected-value">
909                            <slot name="selected-value">${t=>t.displayValue}</slot>
910                        </div>
911                        <div aria-hidden="true" class="indicator" part="indicator">
912                            <slot name="indicator">
913                                ${e.indicator||""}
914                            </slot>
915                        </div>
916                    </slot>
917                    ${ht(r,e)}
918                </div>
919            `)}
920        <div
921            class="listbox"
922            id="${t=>t.listboxId}"
923            part="listbox"
924            role="listbox"
925            ?disabled="${t=>t.disabled}"
926            ?hidden="${t=>t.collapsible?!t.open:!1}"
927            ${Se("listbox")}
928        >
929            <slot
930                ${ke({filter:Lt.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
931            ></slot>
932        </div>
933    </template>
934`});var wH=p(()=>{yH();E0();_H()});var SH,CH=p(()=>{L();SH=(r,e)=>z`
935    <template
936        class="${t=>t.shape==="circle"?"circle":"rect"}"
937        pattern="${t=>t.pattern}"
938        ?shimmer="${t=>t.shimmer}"
939    >
940        ${He(t=>t.shimmer===!0,z`
941                <span class="shimmer"></span>
942            `)}
943        <object type="image/svg+xml" data="${t=>t.pattern}" role="presentation">
944            <img class="pattern" src="${t=>t.pattern}" />
945        </object>
946        <slot></slot>
947    </template>
948`});var ko,IH=p(()=>{Ee();L();Ae();ko=class extends X{constructor(){super(...arguments),this.shape="rect"}};y([x],ko.prototype,"fill",void 0);y([x],ko.prototype,"shape",void 0);y([x],ko.prototype,"pattern",void 0);y([x({mode:"boolean"})],ko.prototype,"shimmer",void 0)});var kH=p(()=>{CH();IH()});var EH,TH=p(()=>{L();fe();EH=(r,e)=>z`
949    <template
950        aria-disabled="${t=>t.disabled}"
951        class="${t=>t.sliderOrientation||Ge.horizontal}
952            ${t=>t.disabled?"disabled":""}"
953    >
954        <div ${Se("root")} part="root" class="root" style="${t=>t.positionStyle}">
955            <div class="container">
956                ${He(t=>!t.hideMark,z`
957                        <div class="mark"></div>
958                    `)}
959                <div class="label">
960                    <slot></slot>
961                </div>
962            </div>
963        </div>
964    </template>
965`});function kf(r,e,t,i){let n=Ns(0,1,(r-e)/(t-e));return i===Le.rtl&&(n=1-n),n}var u2=p(()=>{fe()});var W0,hn,AH=p(()=>{Ee();L();fe();u2();Ae();W0={min:0,max:0,direction:Le.ltr,orientation:Ge.horizontal,disabled:!1},hn=class extends X{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Le.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=W0.direction||Le.ltr,this.sliderOrientation=W0.orientation||Ge.horizontal,this.sliderMaxPosition=W0.max,this.sliderMinPosition=W0.min;else{let e=this.parentNode,{min:t,max:i,direction:n,orientation:s,disabled:o}=e;o!==void 0&&(this.disabled=o),this.sliderDirection=n||Le.ltr,this.sliderOrientation=s||Ge.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=t}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:Le.ltr,t=kf(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition)),i=Math.round((1-t)*100),n=Math.round(t*100);return Number.isNaN(n)&&Number.isNaN(i)&&(i=50,n=50),this.sliderOrientation===Ge.horizontal?e===Le.rtl?`right: ${n}%; left: ${i}%;`:`left: ${n}%; right: ${i}%;`:`top: ${n}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}
965connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=he.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min;break;default:break}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==void 0&&e.min!==void 0}};y([M],hn.prototype,"positionStyle",void 0);y([x],hn.prototype,"position",void 0);y([x({attribute:"hide-mark",mode:"boolean"})],hn.prototype,"hideMark",void 0);y([x({attribute:"disabled",mode:"boolean"})],hn.prototype,"disabled",void 0);y([M],hn.prototype,"sliderOrientation",void 0);y([M],hn.prototype,"sliderMinPosition",void 0);y([M],hn.prototype,"sliderMaxPosition",void 0);y([M],hn.prototype,"sliderDirection",void 0)});var RH=p(()=>{TH();AH()});var OH,DH=p(()=>{L();fe();OH=(r,e)=>z`
966    <template
967        role="slider"
968        class="${t=>t.readOnly?"readonly":""}
969        ${t=>t.orientation||Ge.horizontal}"
970        tabindex="${t=>t.disabled?null:0}"
971        aria-valuetext="${t=>t.valueTextFormatter(t.value)}"
972        aria-valuenow="${t=>t.value}"
973        aria-valuemin="${t=>t.min}"
974        aria-valuemax="${t=>t.max}"
975        aria-disabled="${t=>t.disabled?!0:void 0}"
976        aria-readonly="${t=>t.readOnly?!0:void 0}"
977        aria-orientation="${t=>t.orientation}"
978        class="${t=>t.orientation}"
979    >
980        <div part="positioning-region" class="positioning-region">
981            <div ${Se("track")} part="track-container" class="track">
982                <slot name="track"></slot>
983                <div part="track-start" class="track-start" style="${t=>t.position}">
984                    <slot name="track-start"></slot>
985                </div>
986            </div>
987            <slot></slot>
988            <div
989                ${Se("thumb")}
990                part="thumb-container"
991                class="thumb-container"
992                style="${t=>t.position}"
993            >
994                <slot name="thumb">${e.thumb||""}</slot>
995            </div>
996        </div>
997    </template>
998`});var d2,G0,$H=p(()=>{ji();Ae();d2=class extends X{},G0=class extends nr(d2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var _we,hr,MH=p(()=>{Ee();L();fe();Ia();u2();$H();_we={singleValue:"single-value"},hr=class extends G0{constructor(){super(...arguments),this.direction=Le.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=Ge.horizontal,this.mode=_we.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===cr)e.preventDefault(),this.value=`${this.min}`;else if(e.key===ur)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case ai:case It:e.preventDefault(),this.increment();break;case oi:case Ct:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=`${e?"remove":"add"}EventListener`;this[t]("keydown",this.keypressHandler),this[t]("mousedown",this.handleMouseDown),this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;
998e.target.focus()}let t=`${e!==null?"add":"remove"}EventListener`;window[t]("mouseup",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove,{passive:!0}),window[t]("touchmove",this.handleMouseMove,{passive:!0}),window[t]("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.orientation===Ge.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`},this.calculateNewValue=e=>{let t=kf(e,this.orientation===Ge.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Ge.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=`${e!==null?"add":"remove"}EventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t]("mouseup",this.handleWindowMouseUp),window.document[t]("mouseleave",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();let i=this.orientation===Ge.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min,i=Math.round(t/this.step),n=t-i*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=n>=Number(this.step)/2?t-n+Number(this.step):t-n,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=Ii(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==Le.rtl&&this.orientation!==Ge.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),i=t<Number(this.max)?`${t}`:`${this.max}`;this.value=i}decrement(){let e=this.direction!==Le.rtl&&this.orientation!==Ge.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),t=this.convertToConstrainedValue(e),i=t>Number(this.min)?`${t}`:`${this.min}`;this.value=i}setThumbPositionForOrientation(e){let i=(1-kf(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===Ge.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){let e=this.step+"",t=this.step%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}};y([x({attribute:"readonly",mode:"boolean"})],hr.prototype,"readOnly",void 0);y([M],hr.prototype,"direction",void 0);y([M],hr.prototype,"isDragging",void 0);y([M],hr.prototype,"position",void 0);y([M],hr.prototype,"trackWidth",void 0);y([M],hr.prototype,"trackMinWidth",void 0);y([M],hr.prototype,"trackHeight",void 0);y([M],hr.prototype,"trackLeft",void 0);y([M],hr.prototype,"trackMinHeight",void 0);y([M],hr.prototype,"valueTextFormatter",void 0);y([x({converter:le})],hr.prototype,"min",void 0);y([x({converter:le})],hr.prototype,"max",void 0);y([x({converter:le})],hr.prototype,"step",void 0);y([x],hr.prototype,"orientation",void 0);y([x],hr.prototype,"mode",void 0)});var PH=p(()=>{DH();MH()});var FH,LH=p(()=>{L();FH=(r,e)=>z`
999    <template
1000        role="switch"
1001        aria-checked="${t=>t.checked}"
1002        aria-disabled="${t=>t.disabled}"
1003        aria-readonly="${t=>t.readOnly}"
1004        tabindex="${t=>t.disabled?null:0}"
1005        @keypress="${(t,i)=>t.keypressHandler(i.event)}"
1006        @click="${(t,i)=>t.clickHandler(i.event)}"
1007        class="${t=>t.checked?"checked":""}"
1008    >
1009        <label
1010            part="label"
1011            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
1012        >
1013            <slot ${ke("defaultSlottedNodes")}></slot>
1014        </label>
1015        <div part="switch" class="switch">
1016            <slot name="switch">${e.switch||""}</slot>
1017        </div>
1018        <span class="status-message" part="status-message">
1019            <span class="checked-message" part="checked-message">
1020                <slot name="checked-message"></slot>
1021            </span>
1022            <span class="unchecked-message" part="unchecked-message">
1023                <slot name="unchecked-message"></slot>
1024            </span>
1025        </span>
1026    </template>
1027`});var h2,K0,NH=p(()=>{ji();Ae();h2=class extends X{},K0=class extends Ju(h2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Bc,BH=p(()=>{Ee();L();fe();NH();Bc=class extends K0{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case Gt:case Ni:this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t),this.checked?this.classList.add("checked"):this.classList.remove("checked")}};y([x({attribute:"readonly",mode:"boolean"})],Bc.prototype,"readOnly",void 0);y([M],Bc.prototype,"defaultSlottedNodes",void 0)});var jH=p(()=>{LH();BH()});var zH,qH=p(()=>{L();zH=(r,e)=>z`
1028    <template slot="tabpanel" role="tabpanel">
1029        <slot></slot>
1030    </template>
1031`});var Ef,HH=p(()=>{Ae();Ef=class extends X{}});var VH=p(()=>{qH();HH()});var UH,WH=p(()=>{L();UH=(r,e)=>z`
1032    <template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">
1033        <slot></slot>
1034    </template>
1035`});var id,GH=p(()=>{Ee();L();Ae();id=class extends X{};y([x({mode:"boolean"})],id.prototype,"disabled",void 0)});var KH=p(()=>{WH();GH()});var YH,XH=p(()=>{L();Mt();YH=(r,e)=>z`
1036    <template class="${t=>t.orientation}">
1037        ${ft(r,e)}
1038        <div class="tablist" part="tablist" role="tablist">
1039            <slot class="tab" name="tab" part="tab" ${ke("tabs")}></slot>
1040
1041            ${He(t=>t.showActiveIndicator,z`
1042                    <div
1043                        ${Se("activeIndicatorRef")}
1044                        class="activeIndicator"
1045                        part="activeIndicator"
1046                    ></div>
1047                `)}
1048        </div>
1049        ${ht(r,e)}
1050        <div class="tabpanel" part="tabpanel">
1051            <slot name="tabpanel" ${ke("tabpanels")}></slot>
1052        </div>
1053    </template>
1054`});var JH,fn,ZH=p(()=>{Ee();L();fe();Mt();Rr();Ae();JH={vertical:"vertical",horizontal:"horizontal"},fn=class extends X{constructor(){super(...arguments),this.orientation=JH.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{let e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEac
1054h((n,s)=>{if(n.slot==="tab"){let o=this.activeTabIndex===s&&this.isFocusableElement(n);this.activeindicator&&this.isFocusableElement(n)&&(this.showActiveIndicator=!0);let a=this.tabIds[s],l=this.tabpanelIds[s];n.setAttribute("id",a),n.setAttribute("aria-selected",o?"true":"false"),n.setAttribute("aria-controls",l),n.addEventListener("click",this.handleTabClick),n.addEventListener("keydown",this.handleTabKeyDown),n.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=n,this.activeid=a)}n.style[e]="",n.style[t]="",n.style[i]=`${s+1}`,this.isHorizontal()?n.classList.remove("vertical"):n.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let i=this.tabIds[t],n=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})},this.handleTabClick=e=>{let t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case oi:e.preventDefault(),this.adjustBackward(e);break;case ai:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case It:e.preventDefault(),this.adjustBackward(e);break;case Ct:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case cr:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case ur:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=e=>{let t=this.tabs,i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}},this.adjustBackward=e=>{let t=this.tabs,i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1},this.moveToTabByIndex=(e,t)=>{let i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`tab-${ln()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`panel-${ln()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===JH.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;let e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",n=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;let s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;let o=s-n;this.activeIndicatorRef.style.transform=`${t}(${o}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(e){let t=this.tabs.filter(o=>this.isFocusableElement(o)),i=t.indexOf(this.activetab),n=Ns(0,t.length-1,i+e),s=this.tabs.indexOf(t[n]);s>-1&&this.moveToTabByIndex(this.tabs,s)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}};y([x],fn.prototype,"orientation",void 0);y([x],fn.prototype,"activeid",void 0);y([M],fn.prototype,"tabs",void 0);y([M],fn.prototype,"tabpanels",void 0);y([x({mode:"boolean"})],fn.prototype,"activeindicator",void 0);y([M],fn.prototype,"activeIndicatorRef",void 0);y([M],fn.prototype,"showActiveIndicator",void 0);Fe(fn,it)});var QH=p(()=>{XH();ZH()});var f2,Y0,eV=p(()=>{ji();Ae();f2=class extends X{},Y0=class extends nr(f2){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}});var X0,tV=p(()=>{X0={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"}});var xr,p2=p(()=>{Ee();L();B0();Rr();eV();tV();xr=class extends Y0{constructor(){super(...arguments),this.resize=X0.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};y([x({mode:"boolean"})],xr.prototype,"readOnly",void 0);y([x],xr.prototype,"resize",void 0);y([x({mode:"boolean"})],xr.prototype,"autofocus",void 0);y([x({attribute:"form"})],xr.prototype,"formId",void 0);y([x],xr.prototype,"list",void 0);y([x({converter:le})],xr.prototype,"maxlength",void 0);y([x({converter:le})],xr.prototype,"minlength",void 0);y([x],xr.prototype,"name",void 0);y([x],xr.prototype,"placeholder",void 0);y([x({converter:le,mode:"fromView"})],xr.prototype,"cols",void 0);y([x({converter:le,mode:"fromView"})],xr.prototype,"rows",void 0);y([x({mode:"boolean"})],xr.prototype,"spellcheck",void 0);y([M],xr.prototype,"defaultSlottedNodes",void 0);Fe(xr,zs)});var rV,iV=p(()=>{L();p2();rV=(r,e)=>z`
1055    <template
1056        class="
1057            ${t=>t.readOnly?"readonly":""}
1058            ${t=>t.resize!==X0.none?`resize-${t.resize}`:""}"
1059    >
1060        <label
1061            part="label"
1062            for="control"
1063            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
1064        >
1065            <slot ${ke("defaultSlottedNodes")}></slot>
1066        </label>
1067        <textarea
1068            part="control"
1069            class="control"
1070            id="control"
1071            ?autofocus="${t=>t.autofocus}"
1072            cols="${t=>t.cols}"
1073            ?disabled="${t=>t.disabled}"
1074            form="${t=>t.form}"
1075            list="${t=>t.list}"
1076            maxlength="${t=>t.maxlength}"
1077            minlength="${t=>t.minlength}"
1078            name="${t=>t.name}"
1079            placeholder="${t=>t.placeholder}"
1080            ?readonly="${t=>t.readOnly}"
1081            ?required="${t=>t.required}"
1082            rows="${t=>t.rows}"
1083            ?spellcheck="${t=>t.spellcheck}"
1084            :value="${t=>t.value}"
1085            aria-atomic="${t=>t.ariaAtomic}"
1086            aria-busy="${t=>t.ariaBusy}"
1087            aria-controls="${t=>
1087t.ariaControls}"
1088            aria-current="${t=>t.ariaCurrent}"
1089            aria-describedby="${t=>t.ariaDescribedby}"
1090            aria-details="${t=>t.ariaDetails}"
1091            aria-disabled="${t=>t.ariaDisabled}"
1092            aria-errormessage="${t=>t.ariaErrormessage}"
1093            aria-flowto="${t=>t.ariaFlowto}"
1094            aria-haspopup="${t=>t.ariaHaspopup}"
1095            aria-hidden="${t=>t.ariaHidden}"
1096            aria-invalid="${t=>t.ariaInvalid}"
1097            aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
1098            aria-label="${t=>t.ariaLabel}"
1099            aria-labelledby="${t=>t.ariaLabelledby}"
1100            aria-live="${t=>t.ariaLive}"
1101            aria-owns="${t=>t.ariaOwns}"
1102            aria-relevant="${t=>t.ariaRelevant}"
1103            aria-roledescription="${t=>t.ariaRoledescription}"
1104            @input="${(t,i)=>t.handleTextInput()}"
1105            @change="${t=>t.handleChange()}"
1106            ${Se("control")}
1107        ></textarea>
1108    </template>
1109`});var nV=p(()=>{iV();p2()});var sV,oV=p(()=>{L();Mt();q0();sV=(r,e)=>z`
1110    <template
1111        class="
1112            ${t=>t.readOnly?"readonly":""}
1113        "
1114    >
1115        <label
1116            part="label"
1117            for="control"
1118            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
1119        >
1120            <slot
1121                ${ke({property:"defaultSlottedNodes",filter:rd})}
1122            ></slot>
1123        </label>
1124        <div class="root" part="root">
1125            ${ft(r,e)}
1126            <input
1127                class="control"
1128                part="control"
1129                id="control"
1130                @input="${t=>t.handleTextInput()}"
1131                @change="${t=>t.handleChange()}"
1132                ?autofocus="${t=>t.autofocus}"
1133                ?disabled="${t=>t.disabled}"
1134                list="${t=>t.list}"
1135                maxlength="${t=>t.maxlength}"
1136                minlength="${t=>t.minlength}"
1137                pattern="${t=>t.pattern}"
1138                placeholder="${t=>t.placeholder}"
1139                ?readonly="${t=>t.readOnly}"
1140                ?required="${t=>t.required}"
1141                size="${t=>t.size}"
1142                ?spellcheck="${t=>t.spellcheck}"
1143                :value="${t=>t.value}"
1144                type="${t=>t.type}"
1145                aria-atomic="${t=>t.ariaAtomic}"
1146                aria-busy="${t=>t.ariaBusy}"
1147                aria-controls="${t=>t.ariaControls}"
1148                aria-current="${t=>t.ariaCurrent}"
1149                aria-describedby="${t=>t.ariaDescribedby}"
1150                aria-details="${t=>t.ariaDetails}"
1151                aria-disabled="${t=>t.ariaDisabled}"
1152                aria-errormessage="${t=>t.ariaErrormessage}"
1153                aria-flowto="${t=>t.ariaFlowto}"
1154                aria-haspopup="${t=>t.ariaHaspopup}"
1155                aria-hidden="${t=>t.ariaHidden}"
1156                aria-invalid="${t=>t.ariaInvalid}"
1157                aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
1158                aria-label="${t=>t.ariaLabel}"
1159                aria-labelledby="${t=>t.ariaLabelledby}"
1160                aria-live="${t=>t.ariaLive}"
1161                aria-owns="${t=>t.ariaOwns}"
1162                aria-relevant="${t=>t.ariaRelevant}"
1163                aria-roledescription="${t=>t.ariaRoledescription}"
1164                ${Se("control")}
1165            />
1166            ${ht(r,e)}
1167        </div>
1168    </template>
1169`});var aV=p(()=>{oV();B0()});var lV,cV=p(()=>{L();Mt();lV=(r,e)=>z`
1170    <template
1171        aria-label="${t=>t.ariaLabel}"
1172        aria-labelledby="${t=>t.ariaLabelledby}"
1173        aria-orientation="${t=>t.orientation}"
1174        orientation="${t=>t.orientation}"
1175        role="toolbar"
1176        @mousedown="${(t,i)=>t.mouseDownHandler(i.event)}"
1177        @focusin="${(t,i)=>t.focusinHandler(i.event)}"
1178        @keydown="${(t,i)=>t.keydownHandler(i.event)}"
1179        ${Sa({property:"childItems",attributeFilter:["disabled","hidden"],filter:si(),subtree:!0})}
1180    >
1181        <slot name="label"></slot>
1182        <div class="positioning-region" part="positioning-region">
1183            ${ft(r,e)}
1184            <slot
1185                ${ke({filter:si(),property:"slottedItems"})}
1186            ></slot>
1187            ${ht(r,e)}
1188        </div>
1189    </template>
1190`});function uV(r){let e=r.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}var dV=p(()=>{});var hV,hs,nd,fV=p(()=>{Ee();L();fe();$0();Ae();pf();Mt();Rr();Ia();dV();hV=Object.freeze({[Bi.ArrowUp]:{[Ge.vertical]:-1},[Bi.ArrowDown]:{[Ge.vertical]:1},[Bi.ArrowLeft]:{[Ge.horizontal]:{[Le.ltr]:-1,[Le.rtl]:1}},[Bi.ArrowRight]:{[Ge.horizontal]:{[Le.ltr]:1,[Le.rtl]:-1}}}),hs=class extends X{constructor(){super(...arguments),this._activeIndex=0,this.direction=Le.ltr,this.orientation=Ge.horizontal}get activeIndex(){return he.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=Ns(0,this.focusableElements.length-1,e),he.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;let i=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex(n=>n.contains(e.target));return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=Ii(this)}focusinHandler(e){let t=e.relatedTarget;!t||this.contains(t)||this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,n,s,o;return(o=(n=(i=(t=hV[e])===null||t===void 0?void 0:t[this.orientation])===null||i===void 0?void 0:i[this.direction])!==null&&n!==void 0?n:(s=hV[e])===null||s===void 0?void 0:s[this.orientation])!==null&&o!==void 0?o:0}keydownHandler(e){let t=e.key;if(!(t in Bi)||e.defaultPrevented||e.shiftKey)return!0;let i=this.getDirectionalIncrementer(t);if(!i)return!e.target.closest("[role=radiogroup]");let n=this.activeIndex+i;return this.focusableElements[n]&&e.preventDefault(),this.setFocusedElement(n),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;let t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(hs.reduceFocusableItems,[]);let i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(uV(this))&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(e,t){var i,n,s,o;let a=t.getAttribute("role")==="radio",l=(n=(i=t.$fastController)===null||i===void 0?void 0:i.definition.shadowOptions)===null||n===void 0?void 0:n.delegatesFocus,c=Array.from((o=(s=t.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll("*"))!==null&&o!==void 0?o:[]).some(u=>td(u));return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&(td(t)||a||l||c)?(e.pu
1190sh(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(hs.reduceFocusableItems,[])):e}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};y([M],hs.prototype,"direction",void 0);y([x],hs.prototype,"orientation",void 0);y([M],hs.prototype,"slottedItems",void 0);y([M],hs.prototype,"slottedLabel",void 0);y([M],hs.prototype,"childItems",void 0);nd=class{};y([x({attribute:"aria-labelledby"})],nd.prototype,"ariaLabelledby",void 0);y([x({attribute:"aria-label"})],nd.prototype,"ariaLabel",void 0);Fe(nd,Je);Fe(hs,it,nd)});var pV=p(()=>{cV();fV()});var mV,gV=p(()=>{L();mf();mV=(r,e)=>z`
1191        ${He(t=>t.tooltipVisible,z`
1192            <${r.tagFor(je)}
1193                fixed-placement="true"
1194                auto-update-mode="${t=>t.autoUpdateMode}"
1195                vertical-positioning-mode="${t=>t.verticalPositioningMode}"
1196                vertical-default-position="${t=>t.verticalDefaultPosition}"
1197                vertical-inset="${t=>t.verticalInset}"
1198                vertical-scaling="${t=>t.verticalScaling}"
1199                horizontal-positioning-mode="${t=>t.horizontalPositioningMode}"
1200                horizontal-default-position="${t=>t.horizontalDefaultPosition}"
1201                horizontal-scaling="${t=>t.horizontalScaling}"
1202                horizontal-inset="${t=>t.horizontalInset}"
1203                vertical-viewport-lock="${t=>t.horizontalViewportLock}"
1204                horizontal-viewport-lock="${t=>t.verticalViewportLock}"
1205                dir="${t=>t.currentDirection}"
1206                ${Se("region")}
1207            >
1208                <div class="tooltip" part="tooltip" role="tooltip">
1209                    <slot></slot>
1210                </div>
1211            </${r.tagFor(je)}>
1212        `)}
1213    `});var Ei,bV=p(()=>{Ei={top:"top",right:"right",bottom:"bottom",left:"left",start:"start",end:"end",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",topStart:"top-start",topEnd:"top-end",bottomStart:"bottom-start",bottomEnd:"bottom-end"}});var Nt,vV=p(()=>{Ee();L();fe();Ia();Ae();bV();Nt=class extends X{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Le.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle("top",this.region.verticalPosition==="start"),this.classList.toggle("bottom",this.region.verticalPosition==="end"),this.classList.toggle("inset-top",this.region.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.region.verticalPosition==="insetEnd"),this.classList.toggle("center-vertical",this.region.verticalPosition==="center"),this.classList.toggle("left",this.region.horizontalPosition==="start"),this.classList.toggle("right",this.region.horizontalPosition==="end"),this.classList.toggle("inset-left",this.region.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.region.horizontalPosition==="insetEnd"),this.classList.toggle("center-horizontal",this.region.horizontalPosition==="center")},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=!0;return}this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{this.hideDelayTimer!==null&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{if(!this.isAnchorHoveredFocused){if(this.delay>1){this.showDelayTimer===null&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay));return}this.startHover()}},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{this.showDelayTimer!==null&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{let e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible)switch(e.key){case Li:this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss");break}},this.updateTooltipVisibility=()=>
1213{if(this.visible===!1)this.hideTooltip();else if(this.visible===!0){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=Ii(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),ie.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),this.region!==null&&this.region!==void 0&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!=null&&(e.removeEventListener("mouseover",this.handleAnchorMouseOver),e.removeEventListener("mouseout",this.handleAnchorMouseOut),e.removeEventListener("focusin",this.handleAnchorFocusIn),e.removeEventListener("focusout",this.handleAnchorFocusOut)),this.anchorElement!==null&&this.anchorElement!==void 0){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});let t=this.anchorElement.id;this.anchorElement.parentElement!==null&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(i=>{i.id===t&&this.startShowDelayTimer()})}this.region!==null&&this.region!==void 0&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){this.region!==null&&this.region!==void 0&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case Ei.top:case Ei.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Ei.right:case Ei.left:case Ei.start:case Ei.end:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case Ei.topLeft:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case Ei.topRight:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case Ei.bottomLeft:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case Ei.bottomRight:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Ei.topStart:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Ei.topEnd:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Ei.bottomStart:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Ei.bottomEnd:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center";break}}};y([x({mode:"boolean"})],Nt.prototype,"visible",void 0);y([x],Nt.prototype,"anchor",void 0);y([x],Nt.prototype,"delay",void 0);y([x],Nt.prototype,"position",void 0);y([x({attribute:"auto-update-mode"})],Nt.prototype,"autoUpdateMode",void 0);y([x({attribute:"horizontal-viewport-lock"})],Nt.prototype,"horizontalViewportLock",void 0);y([x({attribute:"vertical-viewport-lock"})],Nt.prototype,"verticalViewportLock",void 0);y([M],Nt.prototype,"anchorElement",void 0);y([M],Nt.prototype,"viewportElement",void 0);y([M],Nt.prototype,"verticalPositioningMode",void 0);y([M],Nt.prototype,"horizontalPositioningMode",void 0);y([M],Nt.prototype,"horizontalInset",void 0);y([M],Nt.prototype,"verticalInset",void 0);y([M],Nt.prototype,"horizontalScaling",void 0);y([M],Nt.prototype,"verticalScaling",void 0);y([M],Nt.prototype,"verticalDefaultPosition",void 0);y([M],Nt.prototype,"horizontalDefaultPosition",void 0);y([M],Nt.prototype,"tooltipVisible",void 0);y([M],Nt.prototype,"currentDirection",void 0)});var yV=p(()=>{gV();vV()});var xV,_V=p(()=>{L();Mt();xV=(r,e)=>z`
1214    <template
1215        role="treeitem"
1216        slot="${t=>t.isNestedItem()?"item":void 0}"
1217        tabindex="-1"
1218        class="${t=>t.expanded?"expanded":""} ${t=>
1218t.selected?"selected":""} ${t=>t.nested?"nested":""}
1219            ${t=>t.disabled?"disabled":""}"
1220        aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}"
1221        aria-selected="${t=>t.selected}"
1222        aria-disabled="${t=>t.disabled}"
1223        @focusin="${(t,i)=>t.handleFocus(i.event)}"
1224        @focusout="${(t,i)=>t.handleBlur(i.event)}"
1225        ${Sa({property:"childItems",filter:si()})}
1226    >
1227        <div class="positioning-region" part="positioning-region">
1228            <div class="content-region" part="content-region">
1229                ${He(t=>t.childItems&&t.childItemLength()>0,z`
1230                        <div
1231                            aria-hidden="true"
1232                            class="expand-collapse-button"
1233                            part="expand-collapse-button"
1234                            @click="${(t,i)=>t.handleExpandCollapseButtonClick(i.event)}"
1235                            ${Se("expandCollapseButton")}
1236                        >
1237                            <slot name="expand-collapse-glyph">
1238                                ${e.expandCollapseGlyph||""}
1239                            </slot>
1240                        </div>
1241                    `)}
1242                ${ft(r,e)}
1243                <slot></slot>
1244                ${ht(r,e)}
1245            </div>
1246        </div>
1247        ${He(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),z`
1248                <div role="group" class="items" part="items">
1249                    <slot name="item" ${ke("items")}></slot>
1250                </div>
1251            `)}
1252    </template>
1253`});function fs(r){return Ls(r)&&r.getAttribute("role")==="treeitem"}var kt,m2=p(()=>{Ee();L();fe();Mt();Rr();Ae();kt=class extends X{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>fs(this.parentElement),this.handleExpandCollapseButtonClick=e=>{!this.disabled&&!e.defaultPrevented&&(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute("tabindex","0")},this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach(i=>{fs(i)&&(i.nested=!0)})}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){let e=this.childItems.filter(t=>fs(t));return e?e.length:0}};y([x({mode:"boolean"})],kt.prototype,"expanded",void 0);y([x({mode:"boolean"})],kt.prototype,"selected",void 0);y([x({mode:"boolean"})],kt.prototype,"disabled",void 0);y([M],kt.prototype,"focusable",void 0);y([M],kt.prototype,"childItems",void 0);y([M],kt.prototype,"items",void 0);y([M],kt.prototype,"nested",void 0);y([M],kt.prototype,"renderCollapsedChildren",void 0);Fe(kt,it)});var wV=p(()=>{_V();m2()});var SV,CV=p(()=>{L();SV=(r,e)=>z`
1254    <template
1255        role="tree"
1256        ${Se("treeView")}
1257        @keydown="${(t,i)=>t.handleKeyDown(i.event)}"
1258        @focusin="${(t,i)=>t.handleFocus(i.event)}"
1259        @focusout="${(t,i)=>t.handleBlur(i.event)}"
1260        @click="${(t,i)=>t.handleClick(i.event)}"
1261        @selected-change="${(t,i)=>t.handleSelectedChange(i.event)}"
1262    >
1263        <slot ${ke("slottedTreeItems")}></slot>
1264    </template>
1265`});var Da,IV=p(()=>{Ee();L();fe();m2();Ae();Da=class extends X{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1)){if(e.target===this){this.currentFocused===null&&(this.currentFocused=this.getValidFocusableItem()),this.currentFocused!==null&&kt.focusItem(this.currentFocused);return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}},this.handleBlur=e=>{e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;let t=this.getVisibleNodes();switch(e.key){case cr:t.length&&kt.focusItem(t[0]);return;case ur:t.length&&kt.focusItem(t[t.length-1]);return;case oi:if(e.target&&this.isFocusableElement(e.target)){let i=e.target;i instanceof kt&&i.childItemLength()>0&&i.expanded?i.expanded=!1:i instanceof kt&&i.parentElement instanceof kt&&kt.focusItem(i.parentElement)}return!1;case ai:if(e.target&&this.isFocusableElement(e.target)){let i=e.target;i instanceof kt&&i.childItemLength()>0&&!i.expanded?i.expanded=!0:i instanceof kt&&i.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case Ct:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target);return;case It:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target);return;case Gt:this.handleClick(e);return}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!fs(e.target))return!0;let t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)},this.setItems=()=>{let e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems(),this.getVisibleNodes().forEac
1265h(i=>{fs(i)&&(i.nested=this.nested)})},this.isFocusableElement=e=>fs(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),ie.queueUpdate(()=>{this.setItems()})}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!fs(e.target))return!0;let t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){let i=this.getVisibleNodes();if(!i)return;let n=i[i.indexOf(t)+e];Ls(n)&&kt.focusItem(n)}getValidFocusableItem(){let e=this.getVisibleNodes(),t=e.findIndex(this.isSelectedElement);return t===-1&&(t=e.findIndex(this.isFocusableElement)),t!==-1?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some(e=>fs(e)&&e.querySelector("[role='treeitem']"))}getVisibleNodes(){return pj(this,"[role='treeitem']")||[]}};y([x({attribute:"render-collapsed-nodes"})],Da.prototype,"renderCollapsedNodes",void 0);y([M],Da.prototype,"currentSelected",void 0);y([M],Da.prototype,"slottedTreeItems",void 0)});var kV=p(()=>{CV();IV()});var g2,jc,de,Rst,Ost,EV=p(()=>{g2=class{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){let{query:t}=this,i=this.constructListener(e);i.bind(t)(),t.addListener(i),this.listenerCache.set(e,i)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}},jc=class extends g2{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new jc(e,t)}constructListener(e){let t=!1,i=this.styles;return function(){let{matches:s}=this;s&&!t?(e.$fastController.addStyles(i),t=s):!s&&t&&(e.$fastController.removeStyles(i),t=s)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}},de=jc.with(window.matchMedia("(forced-colors)")),Rst=jc.with(window.matchMedia("(prefers-color-scheme: dark)")),Ost=jc.with(window.matchMedia("(prefers-color-scheme: light)"))});var J0,TV=p(()=>{L();J0=class{constructor(e,t,i){this.propertyName=e,this.value=t,this.styles=i}bind(e){he.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){he.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}});var ot,AV=p(()=>{ot="not-allowed"});function me(r){return`${wwe}:host{display:${r}}`}var wwe,RV=p(()=>{wwe=":host([hidden]){display:none}"});var U,OV=p(()=>{fe();U=mj()?"focus-visible":"focus"});var DV=p(()=>{AV();RV();OV()});var $V=p(()=>{Rr();A0();EV();TV();DV();Ia();q0()});var ee=p(()=>{ij();Mj();Pj();kw();Uj();Yj();Zj();rz();dz();wz();kz();Rz();Pz();xz();jz();Ww();zz();Xz();eq();oq();dq();hq();fq();gq();yq();Dq();n2();Bq();Gq();$c();Jq();tH();sH();cH();hH();bH();wH();kH();RH();PH();jH();VH();KH();QH();nV();aV();pV();yV();wV();kV();$V()});function Z0(r,e,t=0,i=r.length-1){if(i===t)return r[t];let n=Math.floor((i-t)/2)+t;return e(r[n])?Z0(r,e,t,n):Z0(r,e,n+1,i)}var MV=p(()=>{});function Hi(r){return Vu(r)?-1:1}var $a=p(()=>{t0()});function Swe(r,e,t){return typeof r=="number"?sd.from(yr.create(r,e,t)):sd.from(r)}function Cwe(r){return aB(r)?od.from(r):od.from(yr.create(r.r,r.g,r.b))}var sd,od,PV=p(()=>{zu();Hu();MV();$a();O_();sd=Object.freeze({create:Swe,from:Cwe}),od=class{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,i,n){i===void 0&&(i=this.closestIndexOf(e));let s=this.swatches,o=this.lastIndex,a=i;n===void 0&&(n=Hi(e));let l=c=>e0(e,c)>=t;return n===-1&&(s=this.reversedSwatches,a=o-a),Z0(s,l,a,o)}get(e){return this.swatches[e]||this.swatches[Tn(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(t!==-1)return this.closestIndexCache.set(e.relativeLuminance,t),t;let i=this.swatches.reduce((n,s)=>Math.abs(s.relativeLuminance-e.relativeLuminance)<Math.abs(n.relativeLuminance-e.relativeLuminance)?s:n);return t=this.swatches.indexOf(i),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new od(e,Object.freeze(new Sc({baseColor:et.fromObject(e)}).palette.map(t=>{let i=Fi(t.toStringHexRGB());return yr.create(i.r,i.g,i.b)})))}}});function FV(r,e,t,i,n,s,o,a,l){let c=r.source,u=e.closestIndexOf(t),d=Math.max(o,a,l),f=u>=d?-1:1,g=r.closestIndexOf(c),b=g+f*-1*i,v=b+f*n,S=b+f*s;return{rest:r.get(b),hover:r.get(g),active:r.get(v),focus:r.get(S)}}var LV=p(()=>{});function NV(r,e,t,i,n,s,o){let a=r.source,l=r.closestIndexOf(a),c=Hi(e),u=l+(c===1?Math.min(i,n):Math.max(c*i,c*n)),d=r.colorContrast(e,t,u,c),f=r.closestIndexOf(d),m=f+c*Math.abs(i-n),g=c===1?i<n:c*i>c*n,b,v;return g?(b=f,v=m):(b=m,v=f),{rest:r.get(b),hover:r.get(v),active:r.get(b+c*s),focus:r.get(b+c*o)}}var BV=p(()=>{$a()});var ad,Q0,jV,zV,qV,eb=p(()=>{zu();Hu();ad=yr.create(1,1,1),Q0=yr.create(0,0,0),jV=yr.from(Fi("#808080")),zV=yr.from(Fi("#DA1A5F")),qV=yr.from(Fi("#D32F2F"))});function HV(r,e){return r.contrast(ad)>=e?ad:Q0}var VV=p(()=>{eb()});function UV(r,e,t,i,n,s){let o=r.closestIndexOf(e),a=Math.max(t,i,n,s),l=o>=a?-1:1;return{rest:r.get(o+l*t),hover:r.get(o+l*i),active:r.get(o+l*n),focus:r.get(o+l*s)}}var WV=p(()=>{});function GV(r,e,t,i,n,s){let o=Hi(e),a=r.closestIndexOf(e);return{rest:r.get(a-o*t),hover:r.get(a-o*i),active:r.get(a-o*n),focus:r.get(a-o*s)}}var KV=p(()=>{$a()});function YV(r,e,t){let i=r.closestIndexOf(e);return r.get(i-(i<t?t*-1:t))}var XV=p(()=>{});function JV(r,e,t,i,n,s,o,a,l,c){let u=Math.max(t,i,n,s,o,a,l,c),d=r.closestIndexOf(e),f=d>=u?-1:1;return{rest:r.get(d+f*t),hover:r.get(d+f*i),active:r.get(d+f*n),focus:r.get(d+f*s)}}var ZV=p(()=>{});function QV(r,e,t,i,n,s){let o=Hi(e),a=r.closestIndexOf(r.colorContrast(e,4.5)),l=a+o*Math.abs(t-i),c=o===1?t<i:o*t>o*i,u,d;return c?(u=a,d=l):(u=l,d=a),{rest:r.get(u),hover:r.get(d),active:r.get(u+o*n),focus:r.get(u+o*s)}}var eU=p(()=>{$a()});function tU(r,e){return r.colorContrast(e,3.5)}function rU(r,e,t){return r.colorContrast(t,3.5,r.closestIndexOf(r.source),Hi(e)*-1)}var iU=p(()=>{$a()});function nU(r,e){return r.colorContrast(e,14)}var sU=p(()=>{});function oU(r,e){return r.colorContrast(e,4.5)}var aU=p(()=>{});function lU(r,e,t){return r.get(r.closestIndexOf(pa(e))+t)}var cU=p(()=>{Cc()});function uU(r,e,t){let i=r.closestIndexOf(pa(e))-t;return r.get(i-t)}var dU=p(()=>{Cc()});function hU(r,e){return r.get(r.closestIndexOf(pa(e)))}var fU=p(()=>{Cc()});function Tf(r,e,t,i,n,s){return Math.max(r.closestIndexOf(pa(e))+t,i,n,s)}function pU(r,e,t,i,n,s){return r.get(Tf(r,e,t,i,n,s))}var tb=p(()=>{Cc()});function mU(r,e,t,i,n,s){return r.get(Tf(r,e,t,i,n,s)+t)}var gU=p(()=>{tb()});function bU(r,e,t,i,n,s){return r.get(Tf(r,e,t,i,n,s)+t*2)}var vU=p(()=>{tb()});
1265function yU(r,e,t,i,n,s){let o=r.closestIndexOf(e),a=Hi(e),l=o+a*t,c=l+a*(i-t),u=l+a*(n-t),d=l+a*(s-t);return{rest:r.get(l),hover:r.get(c),active:r.get(u),focus:r.get(d)}}var xU=p(()=>{$a()});function _U(r,e,t){return r.get(r.closestIndexOf(e)+Hi(e)*t)}var wU=p(()=>{$a()});function SU(r,e,t,i,n,s,o,a,l){let c=r.source,u=e.closestIndexOf(t),d=Math.max(o,a,l),f=u>=d?-1:1,g=r.closestIndexOf(c),b=g+f*-1*i,v=b+f*n,S=b+f*s;return{rest:r.get(b),hover:r.get(g),active:r.get(v),focus:r.get(S)}}function CU(r,e,t,i,n,s,o){let a=r.source,l=r.closestIndexOf(a),c=Vu(e)?-1:1,u=l+(c===1?Math.min(i,n):Math.max(c*i,c*n)),d=r.colorContrast(e,t,u,c),f=r.closestIndexOf(d),m=f+c*Math.abs(i-n),g=c===1?i<n:c*i>c*n,b,v;return g?(b=f,v=m):(b=m,v=f),{rest:r.get(b),hover:r.get(v),active:r.get(b+c*s),focus:r.get(b+c*o)}}var IU=p(()=>{t0()});function kU(r,e){return r.contrast(ad)>=e?ad:Q0}var EU=p(()=>{eb()});function De(r){return un.create({name:r,cssCustomPropertyName:null})}var Y,Ce,pn,TU,qs,ce,ut,H,Pa,ld,pt,ne,ue,xe,Re,Fa,La,AU,RU,Na,OU,DU,$U,MU,PU,FU,LU,NU,BU,jU,zU,qU,zc,rb,ib,nb,sb,ob,ab,Eo,To,Ao,lb,b2,v2,y2,x2,_2,w2,S2,C2,Iwe,I2,k2,E2,Ba,T2,A2,R2,O2,D2,Af,$r,Rf,$2,kwe,mlt,Ewe,cd,Twe,Awe,Rwe,glt,Owe,blt,Dwe,vlt,$e,Ma,cb,Qe,fr,Bt,Me,HU,ub,pr,Xr,_r,VU,db,ylt,xlt,_lt,wlt,$we,hb,Yt,Ro,Hs,UU,Oo,xt,Bn,ja,Slt,fb,Vi,ui,Vs,Clt,Us,di,Ui,Wi,ud,pb,dd,hd,fd,WU,Of,Ilt,Mwe,wr,Pwe,GU,Fwe,Do,Lwe,ae,mb,hi,$o,pd,klt,
1265Nwe,ps,gb,Df,KU,bb,Et,Xt,mr,_t,YU,vb,Elt,Tlt,Alt,Rlt,yb,Olt,Dlt,$lt,Mlt,Bwe,xb,Plt,Flt,XU,Llt,_e=p(()=>{ee();fe();PV();LV();BV();VV();WV();KV();XV();ZV();eU();iU();sU();aU();cU();dU();fU();tb();gU();vU();xU();wU();Cc();eb();IU();EU();({create:Y}=un);Ce=Y("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),pn=Y("base-height-multiplier").withDefault(10),TU=Y("base-horizontal-spacing-multiplier").withDefault(3),qs=Y("base-layer-luminance").withDefault(sf.DarkMode),ce=Y("control-corner-radius").withDefault(4),ut=Y("density").withDefault(0),H=Y("design-unit").withDefault(4),Pa=Y("element-scale").withDefault(0),ld=Y("direction").withDefault(Le.ltr),pt=Y("disabled-opacity").withDefault(.4),ne=Y("stroke-width").withDefault(1),ue=Y("focus-stroke-width").withDefault(2),xe=Y("type-ramp-base-font-size").withDefault("14px"),Re=Y("type-ramp-base-line-height").withDefault("20px"),Fa=Y("type-ramp-minus-1-font-size").withDefault("12px"),La=Y("type-ramp-minus-1-line-height").withDefault("16px"),AU=Y("type-ramp-minus-2-font-size").withDefault("10px"),RU=Y("type-ramp-minus-2-line-height").withDefault("16px"),Na=Y("type-ramp-plus-1-font-size").withDefault("16px"),OU=Y("type-ramp-plus-1-line-height").withDefault("24px"),DU=Y("type-ramp-plus-2-font-size").withDefault("20px"),$U=Y("type-ramp-plus-2-line-height").withDefault("28px"),MU=Y("type-ramp-plus-3-font-size").withDefault("28px"),PU=Y("type-ramp-plus-3-line-height").withDefault("36px"),FU=Y("type-ramp-plus-4-font-size").withDefault("34px"),LU=Y("type-ramp-plus-4-line-height").withDefault("44px"),NU=Y("type-ramp-plus-5-font-size").withDefault("46px"),BU=Y("type-ramp-plus-5-line-height").withDefault("56px"),jU=Y("type-ramp-plus-6-font-size").withDefault("60px"),zU=Y("type-ramp-plus-6-line-height").withDefault("72px"),qU=De("accent-fill-rest-delta").withDefault(0),zc=De("accent-fill-hover-delta").withDefault(4),rb=De("accent-fill-active-delta").withDefault(-5),ib=De("accent-fill-focus-delta").withDefault(0),nb=De("accent-foreground-rest-delta").withDefault(0),sb=De("accent-foreground-hover-delta").withDefault(6),ob=De("accent-foreground-active-delta").withDefault(-4),ab=De("accent-foreground-focus-delta").withDefault(0),Eo=De("neutral-fill-rest-delta").withDefault(7),To=De("neutral-fill-hover-delta").withDefault(10),Ao=De("neutral-fill-active-delta").withDefault(5),lb=De("neutral-fill-focus-delta").withDefault(0),b2=De("neutral-fill-input-rest-delta").withDefault(0),v2=De("neutral-fill-input-hover-delta").withDefault(0),y2=De("neutral-fill-input-active-delta").withDefault(0),x2=De("neutral-fill-input-focus-delta").withDefault(0),_2=De("neutral-fill-stealth-rest-delta").withDefault(0),w2=De("neutral-fill-stealth-hover-delta").withDefault(5),S2=De("neutral-fill-stealth-active-delta").withDefault(3),C2=De("neutral-fill-stealth-focus-delta").withDefault(0),Iwe=De("neutral-fill-strong-rest-delta").withDefault(0),I2=De("neutral-fill-strong-hover-delta").withDefault(8),k2=De("neutral-fill-strong-active-delta").withDefault(-5),E2=De("neutral-fill-strong-focus-delta").withDefault(0),Ba=De("neutral-fill-layer-rest-delta").withDefault(3),T2=De("neutral-stroke-rest-delta").withDefault(25),A2=De("neutral-stroke-hover-delta").withDefault(40),R2=De("neutral-stroke-active-delta").withDefault(16),O2=De("neutral-stroke-focus-delta").withDefault(25),D2=De("neutral-stroke-divider-rest-delta").withDefault(8),Af=Y("neutral-color").withDefault(jV),$r=De("neutral-palette").withDefault(r=>sd.from(Af.getValueFor(r))),Rf=Y("accent-color").withDefault(zV),$2=De("accent-palette").withDefault(r=>sd.from(Rf.getValueFor(r))),kwe=De("neutral-layer-card-container-recipe").withDefault({evaluate:r=>lU($r.getValueFor(r),qs.getValueFor(r),Ba.getValueFor(r))}),mlt=Y("neutral-layer-card-container").withDefault(r=>kwe.getValueFor(r).evaluate(r)),Ewe=De("neutral-layer-floating-recipe").withDefault({evaluate:r=>uU($r.getValueFor(r),qs.getValueFor(r),Ba.getValueFor(r))}),cd=Y("neutral-layer-floating").withDefault(r=>Ewe.getValueFor(r).evaluate(r)),Twe=De("neutral-layer-1-recipe").withDefault({evaluate:r=>hU($r.getValueFor(r),qs.getValueFor(r))}),Awe=Y("neutral-layer-1").withDefault(r=>Twe.getValueFor(r).evaluate(r)),Rwe=De("neutral-layer-2-recipe").withDefault({evaluate:r=>pU($r.getValueFor(r),qs.getValueFor(r),Ba.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r))}),glt=Y("neutral-layer-2").withDefault(r=>Rwe.getValueFor(r).evaluate(r)),Owe=De("neutral-layer-3-recipe").withDefault({evaluate:r=>mU($r.getValueFor(r),qs.getValueFor(r),Ba.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r))}),blt=Y("neutral-layer-3").withDefault(r=>Owe.getValueFor(r).evaluate(r)),Dwe=De("neutral-layer-4-recipe").withDefault({evaluate:r=>bU($r.getValueFor(r),qs.getValueFor(r),Ba.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r))}),vlt=Y("neutral-layer-4").withDefault(r=>Dwe.getValueFor(r).evaluate(r)),$e=Y("fill-color").withDefault(r=>Awe.getValueFor(r));(function(r){r[r.normal=4.5]="normal",r[r.large=7]="large"}
1265)(Ma||(Ma={}));cb=Y({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>FV($2.getValueFor(r),$r.getValueFor(r),e||$e.getValueFor(r),zc.getValueFor(r),rb.getValueFor(r),ib.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r))}),Qe=Y("accent-fill-rest").withDefault(r=>cb.getValueFor(r).evaluate(r).rest),fr=Y("accent-fill-hover").withDefault(r=>cb.getValueFor(r).evaluate(r).hover),Bt=Y("accent-fill-active").withDefault(r=>cb.getValueFor(r).evaluate(r).active),Me=Y("accent-fill-focus").withDefault(r=>cb.getValueFor(r).evaluate(r).focus),HU=r=>(e,t)=>HV(t||Qe.getValueFor(e),r),ub=De("foreground-on-accent-recipe").withDefault({evaluate:(r,e)=>HU(Ma.normal)(r,e)}),pr=Y("foreground-on-accent-rest").withDefault(r=>ub.getValueFor(r).evaluate(r,Qe.getValueFor(r))),Xr=Y("foreground-on-accent-hover").withDefault(r=>ub.getValueFor(r).evaluate(r,fr.getValueFor(r))),_r=Y("foreground-on-accent-active").withDefault(r=>ub.getValueFor(r).evaluate(r,Bt.getValueFor(r))),VU=Y("foreground-on-accent-focus").withDefault(r=>ub.getValueFor(r).evaluate(r,Me.getValueFor(r))),db=De("foreground-on-accent-large-recipe").withDefault({evaluate:(r,e)=>HU(Ma.large)(r,e)}),ylt=Y("foreground-on-accent-rest-large").withDefault(r=>db.getValueFor(r).evaluate(r,Qe.getValueFor(r))),xlt=Y("foreground-on-accent-hover-large").withDefault(r=>db.getValueFor(r).evaluate(r,fr.getValueFor(r))),_lt=Y("foreground-on-accent-active-large").withDefault(r=>db.getValueFor(r).evaluate(r,Bt.getValueFor(r))),wlt=Y("foreground-on-accent-focus-large").withDefault(r=>db.getValueFor(r).evaluate(r,Me.getValueFor(r))),$we=r=>(e,t)=>NV($2.getValueFor(e),t||$e.getValueFor(e),r,nb.getValueFor(e),sb.getValueFor(e),ob.getValueFor(e),ab.getValueFor(e)),hb=Y({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>$we(Ma.normal)(r,e)}),Yt=Y("accent-foreground-rest").withDefault(r=>hb.getValueFor(r).evaluate(r).rest),Ro=Y("accent-foreground-hover").withDefault(r=>hb.getValueFor(r).evaluate(r).hover),Hs=Y("accent-foreground-active").withDefault(r=>hb.getValueFor(r).evaluate(r).active),UU=Y("accent-foreground-focus").withDefault(r=>hb.getValueFor(r).evaluate(r).focus),Oo=Y({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>UV($r.getValueFor(r),e||$e.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r),lb.getValueFor(r))}),xt=Y("neutral-fill-rest").withDefault(r=>Oo.getValueFor(r).evaluate(r).rest),Bn=Y("neutral-fill-hover").withDefault(r=>Oo.getValueFor(r).evaluate(r).hover),ja=Y("neutral-fill-active").withDefault(r=>Oo.getValueFor(r).evaluate(r).active),Slt=Y("neutral-fill-focus").withDefault(r=>Oo.getValueFor(r).evaluate(r).focus),fb=Y({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>GV($r.getValueFor(r),e||$e.getValueFor(r),b2.getValueFor(r),v2.getValueFor(r),y2.getValueFor(r),x2.getValueFor(r))}),Vi=Y("neutral-fill-input-rest").withDefault(r=>fb.getValueFor(r).evaluate(r).rest),ui=Y("neutral-fill-input-hover").withDefault(r=>fb.getValueFor(r).evaluate(r).hover),Vs=Y("neutral-fill-input-active").withDefault(r=>fb.getValueFor(r).evaluate(r).active),Clt=Y("neutral-fill-input-focus").withDefault(r=>fb.getValueFor(r).evaluate(r).focus),Us=Y({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>JV($r.getValueFor(r),e||$e.getValueFor(r),_2.getValueFor(r),w2.getValueFor(r),S2.getValueFor(r),C2.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r),lb.getValueFor(r))}),di=Y("neutral-fill-stealth-rest").withDefault(r=>Us.getValueFor(r).evaluate(r).rest),Ui=Y("neutral-fill-stealth-hover").withDefault(r=>Us.getValueFor(r).evaluate(r).hover),Wi=Y("neutral-fill-stealth-active").withDefault(r=>Us.getValueFor(r).evaluate(r).active),ud=Y("neutral-fill-stealth-focus").withDefault(r=>Us.getValueFor(r).evaluate(r).focus),pb=Y({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>QV($r.getValueFor(r),e||$e.getValueFor(r),Iwe.getValueFor(r),I2.getValueFor(r),k2.getValueFor(r),E2.getValueFor(r))}),dd=Y("neutral-fill-strong-rest").withDefault(r=>pb.getValueFor(r).evaluate(r).rest),hd=Y("neutral-fill-strong-hover").withDefault(r=>pb.getValueFor(r).evaluate(r).hover),fd=Y("neutral-fill-strong-active").withDefault(r=>pb.getValueFor(r).evaluate(r).active),WU=Y("neutral-fill-strong-focus").withDefault(r=>
1265pb.getValueFor(r).evaluate(r).focus),Of=De("neutral-fill-layer-recipe").withDefault({evaluate:(r,e)=>YV($r.getValueFor(r),e||$e.getValueFor(r),Ba.getValueFor(r))}),Ilt=Y("neutral-fill-layer-rest").withDefault(r=>Of.getValueFor(r).evaluate(r)),Mwe=De("focus-stroke-outer-recipe").withDefault({evaluate:r=>tU($r.getValueFor(r),$e.getValueFor(r))}),wr=Y("focus-stroke-outer").withDefault(r=>Mwe.getValueFor(r).evaluate(r)),Pwe=De("focus-stroke-inner-recipe").withDefault({evaluate:r=>rU($2.getValueFor(r),$e.getValueFor(r),wr.getValueFor(r))}),GU=Y("focus-stroke-inner").withDefault(r=>Pwe.getValueFor(r).evaluate(r)),Fwe=De("neutral-foreground-hint-recipe").withDefault({evaluate:r=>oU($r.getValueFor(r),$e.getValueFor(r))}),Do=Y("neutral-foreground-hint").withDefault(r=>Fwe.getValueFor(r).evaluate(r)),Lwe=De("neutral-foreground-recipe").withDefault({evaluate:r=>nU($r.getValueFor(r),$e.getValueFor(r))}),ae=Y("neutral-foreground-rest").withDefault(r=>Lwe.getValueFor(r).evaluate(r)),mb=Y({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:r=>yU($r.getValueFor(r),$e.getValueFor(r),T2.getValueFor(r),A2.getValueFor(r),R2.getValueFor(r),O2.getValueFor(r))}),hi=Y("neutral-stroke-rest").withDefault(r=>mb.getValueFor(r).evaluate(r).rest),$o=Y("neutral-stroke-hover").withDefault(r=>mb.getValueFor(r).evaluate(r).hover),pd=Y("neutral-stroke-active").withDefault(r=>mb.getValueFor(r).evaluate(r).active),klt=Y("neutral-stroke-focus").withDefault(r=>mb.getValueFor(r).evaluate(r).focus),Nwe=De("neutral-stroke-divider-recipe").withDefault({evaluate:(r,e)=>_U($r.getValueFor(r),e||$e.getValueFor(r),D2.getValueFor(r))}),ps=Y("neutral-stroke-divider-rest").withDefault(r=>Nwe.getValueFor(r).evaluate(r)),gb=un.create({name:"height-number",cssCustomPropertyName:null}).withDefault(r=>(pn.getValueFor(r)+ut.getValueFor(r))*H.getValueFor(r)),Df=Y("error-color").withDefault(qV),KU=De("error-palette").withDefault(r=>sd.from(Df.getValueFor(r))),bb=Y({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>SU(KU.getValueFor(r),$r.getValueFor(r),e||$e.getValueFor(r),zc.getValueFor(r),rb.getValueFor(r),ib.getValueFor(r),Eo.getValueFor(r),To.getValueFor(r),Ao.getValueFor(r))}),Et=Y("error-fill-rest").withDefault(r=>bb.getValueFor(r).evaluate(r).rest),Xt=Y("error-fill-hover").withDefault(r=>bb.getValueFor(r).evaluate(r).hover),mr=Y("error-fill-active").withDefault(r=>bb.getValueFor(r).evaluate(r).active),_t=Y("error-fill-focus").withDefault(r=>bb.getValueFor(r).evaluate(r).focus),YU=r=>(e,t)=>kU(t||Et.getValueFor(e),r),vb=Y({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>YU(Ma.normal)(r,e)}),Elt=Y("foreground-on-error-rest").withDefault(r=>vb.getValueFor(r).evaluate(r,Et.getValueFor(r))),Tlt=Y("foreground-on-error-hover").withDefault(r=>vb.getValueFor(r).evaluate(r,Xt.getValueFor(r))),Alt=Y("foreground-on-error-active").withDefault(r=>vb.getValueFor(r).evaluate(r,mr.getValueFor(r))),Rlt=Y("foreground-on-error-focus").withDefault(r=>vb.getValueFor(r).evaluate(r,_t.getValueFor(r))),yb=Y({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>YU(Ma.large)(r,e)}),Olt=Y("foreground-on-error-rest-large").withDefault(r=>yb.getValueFor(r).evaluate(r,Et.getValueFor(r))),Dlt=Y("foreground-on-error-hover-large").withDefault(r=>yb.getValueFor(r).evaluate(r,Xt.getValueFor(r))),$lt=Y("foreground-on-error-active-large").withDefault(r=>yb.getValueFor(r).evaluate(r,mr.getValueFor(r))),Mlt=Y("foreground-on-error-focus-large").withDefault(r=>yb.getValueFor(r).evaluate(r,_t.getValueFor(r))),Bwe=r=>(e,t)=>
1265CU(KU.getValueFor(e),t||$e.getValueFor(e),r,nb.getValueFor(e),sb.getValueFor(e),ob.getValueFor(e),ab.getValueFor(e)),xb=Y({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(r,e)=>Bwe(Ma.normal)(r,e)}),Plt=Y("error-foreground-rest").withDefault(r=>xb.getValueFor(r).evaluate(r).rest),Flt=Y("error-foreground-hover").withDefault(r=>xb.getValueFor(r).evaluate(r).hover),XU=Y("error-foreground-active").withDefault(r=>xb.getValueFor(r).evaluate(r).active),Llt=Y("error-foreground-focus").withDefault(r=>xb.getValueFor(r).evaluate(r).focus)});function F2(){JU||(JU=!0,qwe())}function qwe(){let r=()=>{new MutationObserver(()=>{P2()}).observe(document.body,{attributes:!0,attributeFilter:[jwe],childList:!1,characterData:!1}),P2()};document.readyState==="complete"?r():window.addEventListener("load",r)}function P2(){var r;let e=getComputedStyle(document.body),t=document.body.getAttribute(zwe),i=!1;if(t)i=t==="false";else{let n=e.getPropertyValue(M2).toString();if(n){let s=nf(n);s&&(i=Vu(yr.create(s.r,s.g,s.b)),console.debug(`Theme is ${i?"dark":"light"} based on '${M2}' value: ${n}.`))}}qs.setValueFor(document.body,i?sf.DarkMode:sf.LightMode);for(let n in QU){let s=QU[n],o=e.getPropertyValue(n).toString();if(document.body&&o!==""){let a=((r=s.converter)!==null&&r!==void 0?r:l=>l)(o.trim(),i);a!==null?s.token.setValueFor(document.body,a):console.error(`Fail to parse value '${o}' for '${n}' as FAST design token.`)}}}var jwe,zwe,M2,JU,ZU,QU,eW=p(()=>{zu();Hu();Cc();t0();_e();jwe="data-jp-theme-name",zwe="data-jp-theme-light",M2="--jp-layout-color1",JU=!1;ZU=r=>{let e=parseInt(r,10);return isNaN(e)?null:e},QU={"--jp-border-width":{converter:ZU,token:ne},"--jp-border-radius":{converter:ZU,token:ce},[M2]:{converter:(r,e)=>{let t=nf(r);if(t){let i=an(t),n=ri.fromObject({h:i.h,s:i.s,l:.5}),s=Ms(n);return yr.create(s.r,s.g,s.b)}else return null},token:Af},"--jp-brand-color1":{converter:(r,e)=>{let t=nf(r);if(t){let i=an(t),n=e?1:-1,s=ri.fromObject({h:i.h,s:i.s,l:i.l+n*zc.getValueFor(document.body)/94}),o=Ms(s);return yr.create(o.r,o.g,o.b)}else return null},token:Rf},"--jp-error-color1":{converter:(r,e)=>{let t=nf(r);if(t){let i=an(t),n=e?1:-1,s=ri.fromObject({h:i.h,s:i.s,l:i.l+n*zc.getValueFor(document.body)/94}),o=Ms(s);return yr.create(o.r,o.g,o.b)}else return null},token:Df},"--jp-ui-font-family":{token:Ce},"--jp-ui-font-size1":{token:xe}}});var tW,rW=p(()=>{L();ee();_e();tW=(r,e)=>F`
1266  ${me("flex")} :host {
1267    box-sizing: border-box;
1268    flex-direction: column;
1269    font-family: ${Ce};
1270    font-size: ${Fa};
1271    line-height: ${La};
1272    color: ${ae};
1273    border-top: calc(${ne} * 1px) solid ${ps};
1274  }
1275`});var pe,Ws=p(()=>{L();_e();pe=uf`(${pn} + ${ut} + ${Pa}) * ${H}`});var iW,nW=p(()=>{L();ee();fe();_e();Ws();iW=(r,e)=>F`
1276    ${me("flex")} :host {
1277      box-sizing: border-box;
1278      font-family: ${Ce};
1279      flex-direction: column;
1280      font-size: ${Fa};
1281      line-height: ${La};
1282      border-bottom: calc(${ne} * 1px) solid
1283        ${ps};
1284    }
1285
1286    .region {
1287      display: none;
1288      padding: calc((6 + (${H} * 2 * ${ut})) * 1px);
1289    }
1290
1291    div.heading {
1292      display: grid;
1293      position: relative;
1294      grid-template-columns: calc(${pe} * 1px) auto 1fr auto;
1295      color: ${ae};
1296    }
1297
1298    .button {
1299      appearance: none;
1300      border: none;
1301      background: none;
1302      grid-column: 3;
1303      outline: none;
1304      padding: 0 calc((6 + (${H} * 2 * ${ut})) * 1px);
1305      text-align: left;
1306      height: calc(${pe} * 1px);
1307      color: currentcolor;
1308      cursor: pointer;
1309      font-family: inherit;
1310    }
1311
1312    .button:hover {
1313      color: currentcolor;
1314    }
1315
1316    .button:active {
1317      color: currentcolor;
1318    }
1319
1320    .button::before {
1321      content: '';
1322      position: absolute;
1323      top: 0;
1324      left: 0;
1325      right: 0;
1326      bottom: 0;
1327      cursor: pointer;
1328    }
1329
1330    /* prettier-ignore */
1331    .button:${U}::before {
1332      outline: none;
1333      border: calc(${ue} * 1px) solid ${Me};
1334      border-radius: calc(${ce} * 1px);
1335    }
1336
1337    :host([expanded]) .region {
1338      display: block;
1339    }
1340
1341    .icon {
1342      display: flex;
1343      align-items: center;
1344      justify-content: center;
1345      grid-column: 1;
1346      grid-row: 1;
1347      pointer-events: none;
1348      position: relative;
1349    }
1350
1351    slot[name='expanded-icon'],
1352    slot[name='collapsed-icon'] {
1353      fill: currentcolor;
1354    }
1355
1356    slot[name='collapsed-icon'] {
1357      display: flex;
1358    }
1359
1360    :host([expanded]) slot[name='collapsed-icon'] {
1361      display: none;
1362    }
1363
1364    slot[name='expanded-icon'] {
1365      display: none;
1366    }
1367
1368    :host([expanded]) slot[name='expanded-icon'] {
1369      display: flex;
1370    }
1371
1372    .start {
1373      display: flex;
1374      align-items: center;
1375      padding-inline-start: calc(${H} * 1px);
1376      justify-content: center;
1377      grid-column: 2;
1378      position: relative;
1379    }
1380
1381    .end {
1382      display: flex;
1383      align-items: center;
1384      justify-content: center;
1385      grid-column: 4;
1386      position: relative;
1387    }
1388  `.withBehaviors(de(F`
1389      /* prettier-ignore */
1390      .button:${U}::before {
1391          border-color: ${C.Highlight};
1392        }
1393      :host slot[name='collapsed-icon'],
1394      :host([expanded]) slot[name='expanded-icon'] {
1395        fill: ${C.ButtonText};
1396      }
1397    `))});var L2,N2,B2=p(()=>{ee();nW();L2=class extends $n{},N2=L2.compose({baseName:"accordion-item",baseClass:$n,template:qB,styles:iW,collapsedIcon:`
1398        <svg
1399            width="20"
1400            height="20"
1401            viewBox="0 0 16 16"
1402            xmlns="http://www.w3.org/2000/svg"
1403        >
1404            <path
1405                fill-rule="evenodd"
1406                clip-rule="evenodd"
1407                d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"
1408            />
1409        </svg>
1410    `,expandedIcon:`
1411        <svg
1412            width="20"
1413            height="20"
1414            viewBox="0 0 16 16"
1415            xmlns="http://www.w3.org/2000/svg"
1416        >
1417            <path
1418                fill-rule="evenodd"
1419                clip-rule="evenodd"
1420                transform="rotate(90,8,8)"
1421          d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"
1422            />
1423        </svg>
1424    `})});var j2,z2,q2=p(()=>{ee();rW();B2();j2=class extends Dc{},z2=j2.compose({baseName:"accordion",baseClass:Dc,template:nj,styles:tW})});var Wwe={};Zl(Wwe,{__addDisposableResource:()=>TW,__assign:()=>_b,__asyncDelegator:()=>xW,__asyncGenerator:()=>yW,__asyncValues:()=>_W,__await:()=>md,__awaiter:()=>fW,__classPrivateFieldGet:()=>IW,__classPrivateFieldIn:()=>EW,__classPrivateFieldSet:()=>kW,__createBinding:()=>Sb,__decorate:()=>K,__disposeResources:()=>AW,__esDecorate:()=>lW,__exportStar:()=>mW,__extends:()=>sW,__generator:()=>pW,__importDefault:()=>CW,__importStar:()=>
vendor: 10,427 bytes, line 1424
1424SW,__makeTemplateObject:()=>wW,__metadata:()=>hW,__param:()=>aW,__propKey:()=>uW,__read:()=>U2,__rest:()=>oW,__rewriteRelativeImportExtension:()=>RW,__runInitializers:()=>cW,__setFunctionName:()=>dW,__spread:()=>gW,__spreadArray:()=>vW,__spreadArrays:()=>bW,__values:()=>wb,default:()=>Uwe});function sW(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");H2(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function oW(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t}function K(r,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,i);else for(var a=r.length-1;a>=0;a--)(o=r[a])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s}function aW(r,e){return function(t,i){e(t,i,r)}}function lW(r,e,t,i,n,s){function o(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}for(var a=i.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!e&&r?i.static?r:r.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,i.name):{}),d,f=!1,m=t.length-1;m>=0;m--){var g={};for(var b in i)g[b]=b==="access"?{}:i[b];for(var b in i.access)g.access[b]=i.access[b];g.addInitializer=function(S){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(S||null))};var v=(0,t[m])(a==="accessor"?{get:u.get,set:u.set}:u[l],g);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(d=o(v.get))&&(u.get=d),(d=o(v.set))&&(u.set=d),(d=o(v.init))&&n.unshift(d)}else(d=o(v))&&(a==="field"?n.unshift(d):u[l]=d)}c&&Object.defineProperty(c,i.name,u),f=!0}function cW(r,e,t){for(var i=arguments.length>2,n=0;n<e.length;n++)t=i?e[n].call(r,t):e[n].call(r);return i?t:void 0}function uW(r){return typeof r=="symbol"?r:"".concat(r)}function dW(r,e,t){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(r,"name",{configurable:!0,value:t?"".concat(t," ",e):e})}function hW(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}function fW(r,e,t,i){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):n(u.value).then(a,l)}c((i=i.apply(r,e||[])).next())})}function pW(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(t=0)),t;)try{if(i=1,n&&(s=c[0]&2?n.return:c[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,c[1])).done)return s;switch(n=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){t.label=c[1];break}if(c[0]===6&&t.label<s[1]){t.label=s[1],s=c;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(c);break}s[2]&&t.ops.pop(),t.trys.pop();continue}c=e.call(r,t)}catch(u){c=[6,u],n=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function mW(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Sb(e,r,t)}function wb(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function U2(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return s}function gW(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(U2(arguments[e]));return r}function bW(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var i=Array(r),n=0,e=0;e<t;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i}function vW(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,s;i<n;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return r.concat(s||Array.prototype.slice.call(e))}function md(r){return this instanceof md?(this.v=r,this):new md(r)}function yW(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t.apply(r,e||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(m){return function(g){return Promise.resolve(g).then(m,d)}}function a(m,g){i[m]&&(n[m]=function(b){return new Promise(function(v,S){s.push([m,b,v,S])>1||l(m,b)})},g&&(n[m]=g(n[m])))}function l(m,g){try{c(i[m](g))}catch(b){f(s[0][3],b)}}function c(m){m.value instanceof md?Promise.resolve(m.value.v).then(u,d):f(s[0][2],m)}function u(m){l("next",m)}function d(m){l("throw",m)}function f(m,g){m(g),s.shift(),s.length&&l(s[0][0],s[0][1])}}function xW(r){var e,t;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,s){e[n]=r[n]?function(o){return(t=!t)?{value:md(r[n](o)),done:!1}:s?s(o):o}:s}}function _W(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof wb=="function"?wb(r):r[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=r[s]&&function(o){return new Promise(function(a,l){o=r[s](o),n(a,l,o.done,o.value)})}}function n(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function wW(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}function SW(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t=V2(r),i=0;i<t.length;i++)t[i]!=="default"&&Sb(e,r,t[i]);return Hwe(e,r),e}function CW(r){return r&&r.__esModule?r:{default:r}}function IW(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)}function kW(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t}function EW(r,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r=="function"?e===r:r.has(e)}function TW(r,e,t){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var i,n;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=e[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=e[Symbol.dispose],t&&(n=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(s){return Promise.reject(s)}}),r.stack.push({value:e,dispose:i,async:t})}else t&&r.stack.push({async:!0});return e}function AW(r){function e(s){r.error=r.hasError?new Vwe(s,r.error,"An error was suppressed during disposal."):s,r.hasError=!0}var t,i=0;function n(){for(;t=r.stack.pop();)try{if(!t.async&&i===1)return i=0,r.stack.push(t),Promise.resolve().then(n);if(t.dispose){var s=t.dispose.call(t.value);if(t.async)return i|=2,Promise.resolve(s).then(n,function(o){return e(o),n()})}else i|=1}catch(o){e(o)}if(i===1)return r.hasError?Promise.reject(r.error):Promise.resolve();if(r.hasError)throw r.error}return n()}function RW(r,e){return typeof r=="string"&&/^\.\.?\//.test(r)?r.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(t,i,n,s,o){return i?e?".jsx":".js":n&&(!s||!o)?t:n+s+"."+o.toLowerCase()+"js"}):r}var H2,_b,Sb,Hwe,V2,Vwe,Uwe,Gi=p(()=>{H2=function(r,e){return H2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},H2(r,e)};_b=function(){return _b=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},_b.apply(this,arguments)};Sb=Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]};Hwe=Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e},V2=function(r){return V2=Object.getOwnPropertyNames||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[t.length]=i);return t},V2(r)};Vwe=typeof SuppressedError=="function"?SuppressedError:function(r,e,t){var i=new Error(t);return i.name="SuppressedError",i.error=r,i.suppressed=e,i};Uwe={__extends:sW,__assign:_b,__rest:oW,__decorate:K,__param:aW,__esDecorate:lW,__runInitializer
1424s:cW,__propKey:uW,__setFunctionName:dW,__metadata:hW,__awaiter:fW,__generator:pW,__createBinding:Sb,__exportStar:mW,__values:wb,__read:U2,__spread:gW,__spreadArrays:bW,__spreadArray:vW,__await:md,__asyncGenerator:yW,__asyncDelegator:xW,__asyncValues:_W,__makeTemplateObject:wW,__importStar:SW,__importDefault:CW,__classPrivateFieldGet:IW,__classPrivateFieldSet:kW,__classPrivateFieldIn:EW,__addDisposableResource:TW,__disposeResources:AW,__rewriteRelativeImportExtension:RW}});var Gwe,Kwe,ms,Cb=p(()=>{Gwe="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))",Kwe="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))",ms=`box-shadow: ${Gwe}, ${Kwe};`});var Ib,kb,OW,DW,Eb,Tb,Ab,W2=p(()=>{L();ee();fe();_e();Ws();Ib=F`
1425  ${me("inline-flex")} :host {
1426    font-family: ${Ce};
1427    outline: none;
1428    font-size: ${xe};
1429    line-height: ${Re};
1430    height: calc(${pe} * 1px);
1431    min-width: calc(${pe} * 1px);
1432    background-color: ${xt};
1433    color: ${ae};
1434    border-radius: calc(${ce} * 1px);
1435    fill: currentcolor;
1436    cursor: pointer;
1437    margin: calc((${ue} + 2) * 1px);
1438  }
1439
1440  .control {
1441    background: transparent;
1442    height: inherit;
1443    flex-grow: 1;
1444    box-sizing: border-box;
1445    display: inline-flex;
1446    justify-content: center;
1447    align-items: center;
1448    padding: 0
1449      max(
1450        1px,
1451        calc((10 + (${H} * 2 * (${ut} + ${Pa})))) * 1px
1452      );
1453    white-space: nowrap;
1454    outline: none;
1455    text-decoration: none;
1456    border: calc(${ne} * 1px) solid transparent;
1457    color: inherit;
1458    border-radius: inherit;
1459    fill: inherit;
1460    cursor: inherit;
1461    font-family: inherit;
1462    font-size: inherit;
1463    line-height: inherit;
1464  }
1465
1466  :host(:hover) {
1467    background-color: ${Bn};
1468  }
1469
1470  :host(:active) {
1471    background-color: ${ja};
1472  }
1473
1474  :host([aria-pressed='true']) {
1475    box-shadow: inset 0px 0px 2px 2px ${fd};
1476  }
1477
1478  :host([minimal]),
1479  :host([scale='xsmall']) {
1480    --element-scale: -4;
1481  }
1482
1483  :host([scale='small']) {
1484    --element-scale: -2;
1485  }
1486
1487  :host([scale='medium']) {
1488    --element-scale: 0;
1489  }
1490
1491  :host([scale='large']) {
1492    --element-scale: 2;
1493  }
1494
1495  :host([scale='xlarge']) {
1496    --element-scale: 4;
1497  }
1498
1499  /* prettier-ignore */
1500  .control:${U} {
1501      outline: calc(${ue} * 1px) solid ${WU};
1502      outline-offset: 2px;
1503      -moz-outline-radius: 0px;
1504    }
1505
1506  .control::-moz-focus-inner {
1507    border: 0;
1508  }
1509
1510  .start,
1511  .end {
1512    display: flex;
1513  }
1514
1515  .control.icon-only {
1516    padding: 0;
1517    line-height: 0;
1518  }
1519
1520  ::slotted(svg) {
1521    ${""} width: 16px;
1522    height: 16px;
1523    pointer-events: none;
1524  }
1525
1526  .start {
1527    margin-inline-end: 11px;
1528  }
1529
1530  .end {
1531    margin-inline-start: 11px;
1532  }
1533`.withBehaviors(de(F`
1534    :host .control {
1535      background-color: ${C.ButtonFace};
1536      border-color: ${C.ButtonText};
1537      color: ${C.ButtonText};
1538      fill: currentColor;
1539    }
1540
1541    :host(:hover) .control {
1542      forced-color-adjust: none;
1543      background-color: ${C.Highlight};
1544      color: ${C.HighlightText};
1545    }
1546
1547    /* prettier-ignore */
1548    .control:${U} {
1549          forced-color-adjust: none;
1550          background-color: ${C.Highlight};
1551          outline-color: ${C.ButtonText};
1552          color: ${C.HighlightText};
1553        }
1554
1555    .control:hover,
1556    :host([appearance='outline']) .control:hover {
1557      border-color: ${C.ButtonText};
1558    }
1559
1560    :host([href]) .control {
1561      border-color: ${C.LinkText};
1562      color: ${C.LinkText};
1563    }
1564
1565    :host([href]) .control:hover,
1566        :host([href]) .control:${U} {
1567      forced-color-adjust: none;
1568      background: ${C.ButtonFace};
1569      outline-color: ${C.LinkText};
1570      color: ${C.LinkText};
1571      fill: currentColor;
1572    }
1573  `)),kb=F`
1574  :host([appearance='accent']) {
1575    background: ${Qe};
1576    color: ${pr};
1577  }
1578
1579  :host([appearance='accent']:hover) {
1580    background: ${fr};
1581    color: ${Xr};
1582  }
1583
1584  :host([appearance='accent'][aria-pressed='true']) {
1585    box-shadow: inset 0px 0px 2px 2px ${Hs};
1586  }
1587
1588  :host([appearance='accent']:active) .control:active {
1589    background: ${Bt};
1590    color: ${_r};
1591  }
1592
1593  :host([appearance="accent"]) .control:${U} {
1594    outline-color: ${Me};
1595  }
1596`.withBehaviors(de(F`
1597    :host([appearance='accent']) .control {
1598      forced-color-adjust: none;
1599      background: ${C.Highlight};
1600      color: ${C.HighlightText};
1601    }
1602
1603    :host([appearance='accent']) .control:hover,
1604    :host([appearance='accent']:active) .control:active {
1605      background: ${C.HighlightText};
1606      border-color: ${C.Highlight};
1607      color: ${C.Highlight};
1608    }
1609
1610    :host([appearance="accent"]) .control:${U} {
1611      outline-color: ${C.Highlight};
1612    }
1613
1614    :host([appearance='accent'][href]) .control {
1615      background: ${C.LinkText};
1616      color: ${C.HighlightText};
1617    }
1618
1619    :host([appearance='accent'][href]) .control:hover {
1620      background: ${C.ButtonFace};
1621      border-color: ${C.LinkText};
1622      box-shadow: none;
1623      color: ${C.LinkText};
1624      fill: currentColor;
1625    }
1626
1627    :host([appearance="accent"][href]) .control:${U} {
1628      outline-color: ${C.HighlightText};
1629    }
1630  `)),OW=F`
1631  :host([appearance='error']) {
1632    background: ${Et};
1633    color: ${pr};
1634  }
1635
1636  :host([appearance='error']:hover) {
1637    background: ${Xt};
1638    color: ${Xr};
1639  }
1640
1641  :host([appearance='error'][aria-pressed='true']) {
1642    box-shadow: inset 0px 0px 2px 2px ${XU};
1643  }
1644
1645  :host([appearance='error']:active) .control:active {
1646    background: ${mr};
1647    color: ${_r};
1648  }
1649
1650  :host([appearance="error"]) .control:${U} {
1651    outline-color: ${_t};
1652  }
1653`.withBehaviors(de(F`
1654    :host([appearance='error']) .control {
1655      forced-color-adjust: none;
1656      background: ${C.Highlight};
1657      color: ${C.HighlightText};
1658    }
1659
1660    :host([appearance='error']) .control:hover,
1661    :host([appearance='error']:active) .control:active {
1662      background: ${C.HighlightText};
1663      border-color: ${C.Highlight};
1664      color: ${C.Highlight};
1665    }
1666
1667    :host([appearance="error"]) .control:${U} {
1668      outline-color: ${C.Highlight};
1669    }
1670
1671    :host([appearance='error'][href]) .control {
1672      background: ${C.LinkText};
1673      color: ${C.HighlightText};
1674    }
1675
1676    :host([appearance='error'][href]) .control:hover {
1677      background: ${C.ButtonFace};
1678      border-color: ${C.LinkText};
1679      box-shadow: none;
1680      color: ${C.LinkText};
1681      fill: currentColor;
1682    }
1683
1684    :host([appearance="error"][href]) .control:${U} {
1685      outline-color: ${C.HighlightText};
1686    }
1687  `)),DW=F`
1688  :host([appearance='hypertext']) {
1689    font-size: inherit;
1690    line-height: inherit;
1691    height: auto;
1692    min-width: 0;
1693    background: transparent;
1694  }
1695
1696  :host([appearance='hypertext']) .control {
1697    display: inline;
1698    padding: 0;
1699    border: none;
1700    box-shadow: none;
1701    border-radius: 0;
1702    line-height: 1;
1703  }
1704
1705  :host a.control:not(:link) {
1706    background-color: transparent;
1707    cursor: default;
1708  }
1709  :host([appearance='hypertext']) .control:link,
1710  :host([appearance='hypertext']) .control:visited {
1711    background: transparent;
1712    color: ${Yt};
1713    border-bottom: calc(${ne} * 1px) solid ${Yt};
1714  }
1715
1716  :host([appearance='hypertext']:hover),
1717  :host([appearance='hypertext']) .control:hover {
1718    background: transparent;
1719    border-bottom-color: ${Ro};
1720  }
1721
1722  :host([appearance='hypertext']:active),
1723  :host([appearance='hypertext']) .control:active {
1724    background: transparent;
1725    border-bottom-color: ${Hs};
1726  }
1727
1728  :host([appearance="hypertext"]) .control:${U} {
1729    outline-color: transparent;
1730    border-bottom: calc(${ue} * 1px) solid ${wr};
1731    margin-bottom: calc(calc(${ne} - ${ue}) * 1px);
1732  }
1733`.withBehaviors(de(F`
1734    :host([appearance='hypertext']:hover) {
1735      background-color: ${C.ButtonFace};
1736      color: ${C.ButtonText};
1737    }
1738    :host([appearance="hypertext"][href]) .control:hover,
1739        :host([appearance="hypertext"][href]) .control:active,
1740        :host([appearance="hypertext"][href]) .control:${U} {
1741      color: ${C.LinkText};
1742      border-bottom-color: ${C.LinkText};
1743      box-shadow: none;
1744    }
1745  `)),Eb=F`
1746  :host([appearance='lightweight']) {
1747    background: transparent;
1748    color: ${Yt};
1749  }
1750
1751  :host([appearance='lightweight']) .control {
1752    padding: 0;
1753    height: initial;
1754    border: none;
1755    box-shadow: none;
1756    border-radius: 0;
1757  }
1758
1759  :host([appearance='lightweight']:hover) {
1760    background: transparent;
1761    color: ${Ro};
1762  }
1763
1764  :host([appearance='lightweight']:active) {
1765    background: transparent;
1766    color: ${Hs};
1767  }
1768
1769  :host([appearance='lightweight']) .content {
1770    position: relative;
1771  }
1772
1773  :host([appearance='lightweight']) .content::before {
1774    content: '';
1775    display: block;
1776    height: calc(${ne} * 1px);
1777    position: absolute;
1778    top: calc(1em + 4px);
1779    width: 100%;
1780  }
1781
1782  :host([appearance='lightweight']:hover) .content::before {
1783    background: ${Ro};
1784  }
1785
1786  :host([appearance='lightweight']:active) .content::before {
1787    background: ${Hs};
1788  }
1789
1790  :host([appearance="lightweight"]) .control:${U} {
1791    outline-color: transparent;
1792  }
1793
1794  :host([appearance="lightweight"]) .control:${U} .content::before {
1795    background: ${ae};
1796    height: calc(${ue} * 1px);
1797  }
1798`.withBehaviors(de(F`
1799    :host([appearance="lightweight"]) .control:hover,
1800        :host([appearance="lightweight"]) .control:${U} {
1801      forced-color-adjust: none;
1802      background: ${C.ButtonFace};
1803      color: ${C.Highlight};
1804    }
1805    :host([appearance="lightweight"]) .control:hover .content::before,
1806        :host([appearance="lightweight"]) .control:${U} .content::before {
1807      background: ${C.Highlight};
1808    }
1809
1810    :host([appearance="lightweight"][href]) .control:hover,
1811        :host([appearance="lightweight"][href]) .control:${U} {
1812      background: ${C.ButtonFace};
1813      box-shadow: none;
1814      color: ${C.LinkText};
1815    }
1816
1817    :host([appearance="lightweight"][href]) .control:hover .content::before,
1818        :host([appearance="lightweight"][href]) .control:${U} .content::before {
1819      background: ${C.LinkText};
1820    }
1821  `)),Tb=F`
1822  :host([appearance='outline']) {
1823    background: transparent;
1824    border-color: ${Qe};
1825  }
1826
1827  :host([appearance='outline']:hover) {
1828    border-color: ${fr};
1829  }
1830
1831  :host([appearance='outline']:active) {
1832    border-color: ${Bt};
1833  }
1834
1835  :host([appearance='outline']) .control {
1836    border-color: inherit;
1837  }
1838
1839  :host([appearance="outline"]) .control:${U} {
1840    outline-color: ${Me};
1841  }
1842`.withBehaviors(de(F`
1843    :host([appearance='outline']) .control {
1844      border-color: ${C.ButtonText};
1845    }
1846    :host([appearance="outline"]) .control:${U} {
1847      forced-color-adjust: none;
1848      background-color: ${C.Highlight};
1849      outline-color: ${C.ButtonText};
1850      color: ${C.HighlightText};
1851      fill: currentColor;
1852    }
1853    :host([appearance='outline'][href]) .control {
1854      background: ${C.ButtonFace};
1855      border-color: ${C.LinkText};
1856      color: ${C.LinkText};
1857      fill: currentColor;
1858    }
1859    :host([appearance="outline"][href]) .control:hover,
1860        :host([appearance="outline"][href]) .control:${U} {
1861      forced-color-adjust: none;
1862      outline-color: ${C.LinkText};
1863    }
1864  `)),Ab=F`
1865  :host([appearance='stealth']),
1866  :host([appearance='stealth'][disabled]:active),
1867  :host([appearance='stealth'][disabled]:hover) {
1868    background: transparent;
1869  }
1870
1871  :host([appearance='stealth']:hover) {
1872    background: ${Ui};
1873  }
1874
1875  :host([appearance='stealth']:active) {
1876    background: ${Wi};
1877  }
1878
1879  :host([appearance='stealth']) .control:${U} {
1880    outline-color: ${Me};
1881  }
1882
1883  /* Make the focus outline displayed within the button if
1884     it is in a start or end slot; e.g. in a tree item
1885     This will make the focus outline bounded within the container.
1886   */
1887  :host([appearance='stealth'][slot="end"]) .control:${U},
1888  :host([appearance='stealth'][slot="start"]) .control:${U} {
1889    outline-offset: -2px;
1890  }
1891`.withBehaviors(de(F`
1892    :host([appearance='stealth']),
1893    :host([appearance='stealth']) .control {
1894      forced-color-adjust: none;
1895      background: ${C.ButtonFace};
1896      border-color: transparent;
1897      color: ${C.ButtonText};
1898      fill: currentColor;
1899    }
1900
1901    :host([appearance='stealth']:hover) .control {
1902      background: ${C.Highlight};
1903      border-color: ${C.Highlight};
1904      color: ${C.HighlightText};
1905      fill: currentColor;
1906    }
1907
1908    :host([appearance="stealth"]:${U}) .control {
1909      outline-color: ${C.Highlight};
1910      color: ${C.HighlightText};
1911      fill: currentColor;
1912    }
1913
1914    :host([appearance='stealth'][href]) .control {
1915      color: ${C.LinkText};
1916    }
1917
1918    :host([appearance="stealth"][href]:hover) .control,
1919        :host([appearance="stealth"][href]:${U}) .control {
1920      background: ${C.LinkText};
1921      border-color: ${C.LinkText};
1922      color: ${C.HighlightText};
1923      fill: currentColor;
1924    }
1925
1926    :host([appearance="stealth"][href]:${U}) .control {
1927      forced-color-adjust: none;
1928      box-shadow: 0 0 0 1px ${C.LinkText};
1929    }
1930  `))});var za,$W=p(()=>{L();ee();fe();_e();Ws();za=F`
1931  ${me("inline-block")} :host {
1932    font-family: ${Ce};
1933    outline: none;
1934    user-select: none;
1935    /* Ensure to display focus highlight */
1936    margin: calc((${ue} - ${ne}) * 1px);
1937  }
1938
1939  .root {
1940    box-sizing: border-box;
1941    position: relative;
1942    display: flex;
1943    flex-direction: row;
1944    color: ${ae};
1945    background: ${Vi};
1946    border-radius: calc(${ce} * 1px);
1947    border: calc(${ne} * 1px) solid ${dd};
1948    height: calc(${pe} * 1px);
1949  }
1950
1951  :host([aria-invalid='true']) .root {
1952    border-color: ${Et};
1953  }
1954
1955  .control {
1956    -webkit-appearance: none;
1957    font: inherit;
1958    background: transparent;
1959    border: 0;
1960    color: inherit;
1961    height: calc(100% - 4px);
1962    width: 100%;
1963    margin-top: auto;
1964    margin-bottom: auto;
1965    border: none;
1966    padding: 0 calc(${H} * 2px + 1px);
1967    font-size: ${xe};
1968    line-height: ${Re};
1969  }
1970
1971  .control:placeholder-shown {
1972    text-overflow: ellipsis;
1973  }
1974
1975  .control:hover,
1976  .control:${U},
1977  .control:disabled,
1978  .control:active {
1979    outline: none;
1980  }
1981
1982  .label {
1983    display: block;
1984    color: ${ae};
1985    cursor: pointer;
1986    font-size: ${xe};
1987    line-height: ${Re};
1988    margin-bottom: 4px;
1989  }
1990
1991  .label__hidden {
1992    display: none;
1993    visibility: hidden;
1994  }
1995
1996  .start,
1997  .end {
1998    margin: auto;
1999    fill: currentcolor;
2000  }
2001
2002  ::slotted(svg) {
2003    /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
2004    width: 16px;
2005    height: 16px;
2006  }
2007
2008  .start {
2009    margin-inline-start: 11px;
2010  }
2011
2012  .end {
2013    margin-inline-end: 11px;
2014  }
2015
2016  :host(:hover:not([disabled])) .root {
2017    background: ${ui};
2018    border-color: ${hd};
2019  }
2020
2021  :host([aria-invalid='true']:hover:not([disabled])) .root {
2022    border-color: ${Xt};
2023  }
2024
2025  :host(:active:not([disabled])) .root {
2026    background: ${ui};
2027    border-color: ${fd};
2028  }
2029
2030  :host([aria-invalid='true']:active:not([disabled])) .root {
2031    border-color: ${mr};
2032  }
2033
2034  :host(:focus-within:not([disabled])) .root {
2035    border-color: ${Me};
2036    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2037      ${Me};
2038  }
2039
2040  :host([aria-invalid='true']:focus-within:not([disabled])) .root {
2041    border-color: ${_t};
2042    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2043      ${_t};
2044  }
2045
2046  :host([appearance='filled']) .root {
2047    background: ${xt};
2048  }
2049
2050  :host([appearance='filled']:hover:not([disabled])) .root {
2051    background: ${Bn};
2052  }
2053
2054  :host([disabled]) .label,
2055  :host([readonly]) .label,
2056  :host([readonly]) .control,
2057  :host([disabled]) .control {
2058    cursor: ${ot};
2059  }
2060
2061  :host([disabled]) {
2062    opacity: ${pt};
2063  }
2064
2065  :host([disabled]) .control {
2066    border-color: ${hi};
2067  }
2068`.withBehaviors(de(F`
2069    .root,
2070    :host([appearance='filled']) .root {
2071      forced-color-adjust: none;
2072      background: ${C.Field}
2072;
2073      border-color: ${C.FieldText};
2074    }
2075    :host([aria-invalid='true']) .root {
2076      border-style: dashed;
2077    }
2078    :host(:hover:not([disabled])) .root,
2079    :host([appearance='filled']:hover:not([disabled])) .root,
2080    :host([appearance='filled']:hover) .root {
2081      background: ${C.Field};
2082      border-color: ${C.Highlight};
2083    }
2084    .start,
2085    .end {
2086      fill: currentcolor;
2087    }
2088    :host([disabled]) {
2089      opacity: 1;
2090    }
2091    :host([disabled]) .root,
2092    :host([appearance='filled']:hover[disabled]) .root {
2093      border-color: ${C.GrayText};
2094      background: ${C.Field};
2095    }
2096    :host(:focus-within:enabled) .root {
2097      border-color: ${C.Highlight};
2098      box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2099        ${C.Highlight};
2100    }
2101    input::placeholder {
2102      color: ${C.GrayText};
2103    }
2104  `))});var MW=p(()=>{W2();$W()});var jn,G2,Rb=p(()=>{_e();jn=class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){let t=this.cache.get(e);t&&ld.unsubscribe(t)}attach(e){let t=this.cache.get(e)||new G2(this.ltr,this.rtl,e),i=ld.getValueFor(e);ld.subscribe(t),t.attach(i),this.cache.set(e,t)}},G2=class{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(this.attached!==null&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],this.attached!==null&&this.source.$fastController.addStyles(this.attached))}}});var jt=p(()=>{Cb();MW();Ws();Rb()});function zn(r,e){return new J0("appearance",r,e)}var K2=p(()=>{ee()});var PW,FW=p(()=>{L();jt();K2();PW=(r,e)=>F`
2105    ${Ib}
2106  `.withBehaviors(zn("accent",kb),zn("hypertext",DW),zn("lightweight",Eb),zn("outline",Tb),zn("stealth",Ab))});var Ob,Y2,X2=p(()=>{Gi();L();ee();FW();Ob=class extends Ur{appearanceChanged(e,t){this.$fastController.isConnected&&(this.classList.remove(e),this.classList.add(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(e,t){let i=this.defaultSlottedContent.filter(n=>n.nodeType===Node.ELEMENT_NODE);i.length===1&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}};K([x],Ob.prototype,"appearance",void 0);Y2=Ob.compose({baseName:"anchor",baseClass:Ur,template:_0,styles:PW,shadowOptions:{delegatesFocus:!0}})});var LW,NW=p(()=>{L();LW=(r,e)=>F`
2107  :host {
2108    contain: layout;
2109    display: block;
2110  }
2111`});var J2,Z2,Q2=p(()=>{ee();NW();J2=class extends je{},Z2=J2.compose({baseName:"anchored-region",baseClass:je,template:Fj,styles:LW})});var Ywe,Xwe,BW,jW=p(()=>{L();ee();_e();Rb();Ywe=(r,e)=>F`
2112  ::slotted(${r.tagFor(Mn)}) {
2113    left: 0;
2114  }
2115`,Xwe=(r,e)=>F`
2116  ::slotted(${r.tagFor(Mn)}) {
2117    right: 0;
2118  }
2119`,BW=(r,e)=>F`
2120    ${me("flex")} :host {
2121      position: relative;
2122      height: var(--avatar-size, var(--avatar-size-default));
2123      width: var(--avatar-size, var(--avatar-size-default));
2124      --avatar-size-default: calc(
2125        (
2126            (${pn} + ${ut}) * ${H} +
2127              ((${H} * 8) - 40)
2128          ) * 1px
2129      );
2130      --avatar-text-size: ${xe};
2131      --avatar-text-ratio: ${H};
2132    }
2133
2134    .link {
2135      text-decoration: none;
2136      color: ${ae};
2137      display: flex;
2138      flex-direction: row;
2139      justify-content: center;
2140      align-items: center;
2141      min-width: 100%;
2142    }
2143
2144    .square {
2145      border-radius: calc(${ce} * 1px);
2146      min-width: 100%;
2147      overflow: hidden;
2148    }
2149
2150    .circle {
2151      border-radius: 100%;
2152      min-width: 100%;
2153      overflow: hidden;
2154    }
2155
2156    .backplate {
2157      position: relative;
2158      display: flex;
2159      background-color: ${Qe};
2160    }
2161
2162    .media,
2163    ::slotted(img) {
2164      max-width: 100%;
2165      position: absolute;
2166      display: block;
2167    }
2168
2169    .content {
2170      font-size: calc(
2171        (
2172            var(--avatar-text-size) +
2173              var(--avatar-size, var(--avatar-size-default))
2174          ) / var(--avatar-text-ratio)
2175      );
2176      line-height: var(--avatar-size, var(--avatar-size-default));
2177      display: block;
2178      min-height: var(--avatar-size, var(--avatar-size-default));
2179    }
2180
2181    ::slotted(${r.tagFor(Mn)}) {
2182      position: absolute;
2183      display: block;
2184    }
2185  `.withBehaviors(new jn(Xwe(r,e),Ywe(r,e)))});var $f,Jwe,eS,tS=p(()=>{Gi();L();ee();jW();
2185$f=class extends _o{};K([x({attribute:"src"})],$f.prototype,"imgSrc",void 0);K([x],$f.prototype,"alt",void 0);Jwe=z`
2186  ${He(r=>r.imgSrc,z`
2187      <img
2188        src="${r=>r.imgSrc}"
2189        alt="${r=>r.alt}"
2190        slot="media"
2191        class="media"
2192        part="media"
2193      />
2194    `)}
2195`,eS=$f.compose({baseName:"avatar",baseClass:_o,template:qj,styles:BW,media:Jwe,shadowOptions:{delegatesFocus:!0}})});var zW,qW=p(()=>{L();ee();_e();jt();zW=(r,e)=>F`
2196  ${me("inline-block")} :host {
2197    box-sizing: border-box;
2198    font-family: ${Ce};
2199    font-size: ${Fa};
2200    line-height: ${La};
2201  }
2202
2203  .control {
2204    border-radius: calc(${ce} * 1px);
2205    padding: calc(((${H} * 0.5) - ${ne}) * 1px)
2206      calc((${H} - ${ne}) * 1px);
2207    color: ${ae};
2208    font-weight: 600;
2209    border: calc(${ne} * 1px) solid transparent;
2210    background-color: ${xt};
2211  }
2212
2213  .control[style] {
2214    font-weight: 400;
2215  }
2216
2217  :host([circular]) .control {
2218    border-radius: 100px;
2219    padding: 0 calc(${H} * 1px);
2220    height: calc((${pe} - (${H} * 3)) * 1px);
2221    min-width: calc((${pe} - (${H} * 3)) * 1px);
2222    display: flex;
2223    align-items: center;
2224    justify-content: center;
2225    box-sizing: border-box;
2226  }
2227`});var rS,iS,nS=p(()=>{ee();qW();rS=class extends Mn{},iS=rS.compose({baseName:"badge",baseClass:Mn,template:Wj,styles:zW})});var HW,VW=p(()=>{L();ee();_e();HW=(r,e)=>F`
2228  ${me("inline-block")} :host {
2229    box-sizing: border-box;
2230    font-family: ${Ce};
2231    font-size: ${xe};
2232    line-height: ${Re};
2233  }
2234
2235  .list {
2236    display: flex;
2237    flex-wrap: wrap;
2238  }
2239`});var sS,oS,aS=p(()=>{ee();VW();sS=class extends Xu{},oS=sS.compose({baseName:"breadcrumb",baseClass:Xu,template:Qj,styles:HW})});var UW,WW=p(()=>{L();ee();fe();_e();jt();UW=(r,e)=>F`
2240    ${me("inline-flex")} :host {
2241        background: transparent;
2242        box-sizing: border-box;
2243        font-family: ${Ce};
2244        font-size: ${xe};
2245        fill: currentColor;
2246        line-height: ${Re};
2247        min-width: calc(${pe} * 1px);
2248        outline: none;
2249        color: ${ae}
2250    }
2251
2252    .listitem {
2253        display: flex;
2254        align-items: center;
2255        width: max-content;
2256    }
2257
2258    .separator {
2259        margin: 0 6px;
2260        display: flex;
2261    }
2262
2263    .control {
2264        align-items: center;
2265        box-sizing: border-box;
2266        color: ${Yt};
2267        cursor: pointer;
2268        display: flex;
2269        fill: inherit;
2270        outline: none;
2271        text-decoration: none;
2272        white-space: nowrap;
2273    }
2274
2275    .control:hover {
2276        color: ${Ro};
2277    }
2278
2279    .control:active {
2280        color: ${Hs};
2281    }
2282
2283    .control .content {
2284        position: relative;
2285    }
2286
2287    .control .content::before {
2288        content: "";
2289        display: block;
2290        height: calc(${ne} * 1px);
2291        left: 0;
2292        position: absolute;
2293        right: 0;
2294        top: calc(1em + 4px);
2295        width: 100%;
2296    }
2297
2298    .control:hover .content::before {
2299        background: ${Ro};
2300    }
2301
2302    .control:active .content::before {
2303        background: ${Hs};
2304    }
2305
2306    .control:${U} .content::before {
2307        background: ${UU};
2308        height: calc(${ue} * 1px);
2309    }
2310
2311    .control:not([href]) {
2312        color: ${ae};
2313        cursor: default;
2314    }
2315
2316    .control:not([href]) .content::before {
2317        background: none;
2318    }
2319
2320    .start,
2321    .end {
2322        display: flex;
2323    }
2324
2325    ::slotted(svg) {
2326        /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
2327        width: 16px;
2328        height: 16px;
2329    }
2330
2331    .start {
2332        margin-inline-end: 6px;
2333    }
2334
2335    .end {
2336        margin-inline-start: 6px;
2337    }
2338`.withBehaviors(de(F`
2339      .control:hover .content::before,
2340                .control:${U} .content::before {
2341        background: ${C.LinkText};
2342      }
2343      .start,
2344      .end {
2345        fill: ${C.ButtonText};
2346      }
2347    `))});var lS,cS,uS=p(()=>{ee();WW();lS=class extends Bs{},cS=lS.compose({baseName:"breadcrumb-item",baseClass:Bs,template:Xj,styles:UW,separator:"/",shadowOptions:{delegatesFocus:!0}})});var GW,KW=p(()=>{L();ee();fe();_e();W2();K2();GW=(r,e)=>F`
2348    :host([disabled]),
2349    :host([disabled]:hover),
2350    :host([disabled]:active) {
2351      opacity: ${pt};
2352      background-color: ${xt};
2353      cursor: ${ot};
2354    }
2355
2356    ${Ib}
2357  `.withBehaviors(de(F`
2358      :host([disabled]),
2359      :host([disabled]) .control,
2360      :host([disabled]:hover),
2361      :host([disabled]:active) {
2362        forced-color-adjust: none;
2363        background-color: ${C.ButtonFace};
2364        outline-color: ${C.GrayText};
2365        color: ${C.GrayText};
2366        cursor: ${ot};
2367        opacity: 1;
2368      }
2369    `),zn("accent",F`
2370        :host([appearance='accent'][disabled]),
2371        :host([appearance='accent'][disabled]:hover),
2372        :host([appearance='accent'][disabled]:active) {
2373          background: ${Qe};
2374        }
2375
2376        ${kb}
2377      `.withBehaviors(de(F`
2378          :host([appearance='accent'][disabled]) .control,
2379          :host([appearance='accent'][disabled]) .control:hover {
2380            background: ${C.ButtonFace};
2381            border-color: ${C.GrayText};
2382            color: ${C.GrayText};
2383          }
2384        `))),zn("error",F`
2385        :host([appearance='error'][disabled]),
2386        :host([appearance='error'][disabled]:hover),
2387        :host([appearance='error'][disabled]:active) {
2388          background: ${Et};
2389        }
2390
2391        ${OW}
2392      `.withBehaviors(de(F`
2393          :host([appearance='error'][disabled]) .control,
2394          :host([appearance='error'][disabled]) .control:hover {
2395            background: ${C.ButtonFace};
2396            border-color: ${C.GrayText};
2397            color: ${C.GrayText};
2398          }
2399        `))),zn("lightweight",F`
2400        :host([appearance='lightweight'][disabled]:hover),
2401        :host([appearance='lightweight'][disabled]:active) {
2402          background-color: transparent;
2403          color: ${Yt};
2404        }
2405
2406        :host([appearance='lightweight'][disabled]) .content::before,
2407        :host([appearance='lightweight'][disabled]:hover) .content::before,
2408        :host([appearance='lightweight'][disabled]:active) .content::before {
2409          background: transparent;
2410        }
2411
2412        ${Eb}
2413      `.withBehaviors(de(F`
2414          :host([appearance='lightweight'].disabled) .control {
2415            forced-color-adjust: none;
2416            color: ${C.GrayText};
2417          }
2418
2419          :host([appearance='lightweight'].disabled)
2420            .control:hover
2421            .content::before {
2422            background: none;
2423          }
2424        `))),zn("outline",F`
2425        :host([appearance='outline'][disabled]),
2426        :host([appearance='outline'][disabled]:hover),
2427        :host([appearance='outline'][disabled]:active) {
2428          background: transparent;
2429          border-color: ${Qe};
2430        }
2431
2432        ${Tb}
2433      `.withBehaviors(de(F`
2434          :host([appearance='outline'][disabled]) .control {
2435            border-color: ${C.GrayText};
2436          }
2437        `))),zn("stealth",F`
2438        ${Ab}
2439      `.withBehaviors(de(F`
2440          :host([appearance='stealth'][disabled]) {
2441            background: ${C.ButtonFace};
2442          }
2443
2444          :host([appearance='stealth'][disabled]) .control {
2445            background: ${C.ButtonFace};
2446            border-color: transparent;
2447            color: ${C.GrayText};
2448          }
2449        `))))});var gd,Mf,dS=p(()=>{Gi();L();ee();KW();gd=class extends ki{constructor(){super(...arguments),this.appearance="neutral"}defaultSlottedContentChanged(e,t){let i=this.defaultSlottedContent.filter(n=>n.nodeType===Node.ELEMENT_NODE);i.length===1&&(i[0]instanceof SVGElement||i[0].classList.contains("fa")||i[0].classList.contains("fas"))?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}};K([x],gd.prototype,"appearance",void 0);K([x({attribute:"minimal",mode:"boolean"})],gd.prototype,"minimal",void 0);K([x],gd.prototype,"scale",void 0);Mf=gd.compose({baseName:"button",baseClass:ki,template:iz,styles:GW,shadowOptions:{delegatesFocus:!0}})});var YW,XW=p(()=>{L();ee();fe();_e();jt();YW=(r,e)=>F`
2450    ${me("block")} :host {
2451      --elevation: 4;
2452      display: block;
2453      contain: content;
2454      height: var(--card-height, 100%);
2455      width: var(--card-width, 100%);
2456      box-sizing: border-box;
2457      background: ${$e};
2458      border-radius: calc(${ce} * 1px);
2459      ${ms}
2460    }
2461  `.withBehaviors(de(F`
2462      :host {
2463        forced-color-adjust: none;
2464        background: ${C.Canvas};
2465        box-shadow: 0 0 0 1px ${C.CanvasText};
2466      }
2467    `))});var hS,fS,pS=p(()=>{ee();_e();XW();hS=class extends bf{connectedCallback(){super.connectedCallback();let e=So(this);e&&$e.setValueFor(this,t=>Of.getValueFor(t).evaluate(t,$e.getValueFor(e)))}},fS=hS.compose({baseName:"card",baseClass:bf,template:Sz,styles:YW})});var JW,ZW=p(()=>{L();ee();fe();_e();jt();JW=(r,e)=>F`
2468    ${me("inline-flex")} :host {
2469      align-items: center;
2470      outline: none;
2471      margin: calc(${H} * 1px) 0;
2472      /* Chromium likes to select label text or the default slot when the checkbox is
2473            clicked. Maybe there is a better solution here? */
2474      user-select: none;
2475    }
2476
2477    .control {
2478      position: relative;
2479      width: calc((${pe} / 2 + ${H}) * 1px);
2480      height: calc((${pe} / 2 + ${H}) * 1px);
2481      box-sizing: border-box;
2482      border-radius: calc(${ce} * 1px);
2483      border: calc(${ne} * 1px) solid ${hi};
2484      background: ${Vi};
2485      outline: none;
2486      cursor: pointer;
2487    }
2488
2489    :host([aria-invalid='true']) .control {
2490      border-color: ${Et};
2491    }
2492
2493    .label {
2494      font-family: ${Ce};
2495      color: ${ae};
2496      /* Need to discuss with Brian how HorizontalSpacingNumber can work.
2497            https://github.com/microsoft/fast/issues/2766 */
2498      padding-inline-start: calc(${H} * 2px + 2px);
2499      margin-inline-end: calc(${H} * 2px + 2px);
2500      cursor: pointer;
2501      font-size: ${xe};
2502      line-height: ${Re};
2503    }
2504
2505    .label__hidden {
2506      display: none;
2507      visibility: hidden;
2508    }
2509
2510    .checked-indicator {
2511      width: 100%;
2512      height: 100%;
2513      display: block;
2514      fill: ${pr};
2515      opacity: 0;
2516      pointer-events: none;
2517    }
2518
2519    .indeterminate-indicator {
2520      border-radius: calc(${ce} * 1px);
2521      background: ${pr};
2522      position: absolute;
2523      top: 50%;
2524      left: 50%;
2525      width: 50%;
2526      height: 50%;
2527      transform: translate(-50%, -50%);
2528      opacity: 0;
2529    }
2530
2531    :host(:not([disabled])) .control:hover {
2532      background: ${ui};
2533      border-color: ${$o};
2534    }
2535
2536    :host(:not([disabled])) .control:active {
2537      background: ${Vs};
2538      border-color: ${pd};
2539    }
2540
2541    :host([aria-invalid='true']:not([disabled])) .control:hover {
2542      border-color: ${Xt};
2543    }
2544
2545    :host([aria-invalid='true']:not([disabled])) .control:active {
2546      border-color: ${mr};
2547    }
2548
2549    :host(:${U}) .control {
2550      outline: calc(${ue} * 1px) solid ${Me};
2551      outline-offset: 2px;
2552    }
2553
2554    :host([aria-invalid='true']:${U}) .control {
2555      outline-color: ${_t};
2556    }
2557
2558    :host([aria-checked='true']) .control {
2559      background: ${Qe};
2560      border: calc(${ne} * 1px) solid ${Qe};
2561    }
2562
2563    :host([aria-checked='true']:not([disabled])) .control:hover {
2564      background: ${fr};
2565      border: calc(${ne} * 1px) solid ${fr};
2566    }
2567
2568    :host([aria-invalid='true'][aria-checked='true']) .control {
2569      background-color: ${Et};
2570      border-color: ${Et};
2571    }
2572
2573    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
2574      .control:hover {
2575      background-color: ${Xt};
2576      border-color: ${Xt};
2577    }
2578
2579    :host([aria-checked='true']:not([disabled]))
2580      .control:hover
2581      .checked-indicator {
2582      fill: ${Xr};
2583    }
2584
2585    :host([aria-checked='true']:not([disabled]))
2586      .control:hover
2587      .indeterminate-indicator {
2588      background: ${Xr};
2589    }
2590
2591    :host([aria-checked='true']:not([disabled])) .control:active {
2592      background: ${Bt};
2593      border: calc(${ne} * 1px) solid ${Bt};
2594    }
2595
2596    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
2597      .control:active {
2598      background-color: ${mr};
2599      border-color: ${mr};
2600    }
2601
2602    :host([aria-checked='true']:not([disabled]))
2603      .control:active
2604      .checked-indicator {
2605      fill: ${_r};
2606    }
2607
2608    :host([aria-checked='true']:not([disabled]))
2609      .control:active
2610      .indeterminate-indicator {
2611      background: ${_r};
2612    }
2613
2614    :host([aria-checked="true"]:${U}:not([disabled])) .control {
2615      outline: calc(${ue} * 1px) solid ${Me};
2616      outline-offset: 2px;
2617    }
2618
2619    :host([aria-invalid='true'][aria-checked="true"]:${U}:not([disabled])) .control {
2620      outline-color: ${_t};
2621    }
2622
2623    :host([disabled]) .label,
2624    :host([readonly]) .label,
2625    :host([readonly]) .control,
2626    :host([disabled]) .control {
2627      cursor: ${ot};
2628    }
2629
2630    :host([aria-checked='true']:not(.indeterminate)) .checked-indicator,
2631    :host(.indeterminate) .indeterminate-indicator {
2632      opacity: 1;
2633    }
2634
2635    :host([disabled]) {
2636      opacity: ${pt};
2637    }
2638  `.withBehaviors(de(F`
2639      .control {
2640        forced-color-adjust: none;
2641        border-color: ${C.FieldText};
2642        background: ${C.Field};
2643      }
2644      :host([aria-invalid='true']) .control {
2645        border-style: dashed;
2646      }
2647      .checked-indicator {
2648        fill: ${C.FieldText};
2649      }
2650      .indeterminate-indicator {
2651        background: ${C.FieldText};
2652      }
2653      :host(:not([disabled])) .control:hover,
2654      .control:active {
2655        border-color: ${C.Highlight};
2656        background: ${C.Field};
2657      }
2658      :host(:${U}) .control {
2659        outline: calc(${ue} * 1px) solid ${C.FieldText};
2660        outline-offset: 2px;
2661      }
2662      :host([aria-checked="true"]:${U}:not([disabled])) .control {
2663        outline: calc(${ue} * 1px) solid ${C.FieldText};
2664        outline-offset: 2px;
2665      }
2666      :host([aria-checked='true']) .control {
2667        background: ${C.Highlight};
2668        border-color: ${C.Highlight};
2669      }
2670      :host([aria-checked='true']:not([disabled])) .control:hover,
2671      .control:active {
2672        border-color: ${C.Highlight};
2673        background: ${C.HighlightText};
2674      }
2675      :host([aria-checked='true']) .checked-indicator {
2676        fill: ${C.HighlightText};
2677      }
2678      :host([aria-checked='true']:not([disabled]))
2679        .control:hover
2680        .checked-indicator {
2681        fill: ${C.Highlight};
2682      }
2683      :host([aria-checked='true']) .indeterminate-indicator {
2684        background: ${C.HighlightText};
2685      }
2686      :host([aria-checked='true']) .control:hover .indeterminate-indicator {
2687        background: ${C.Highlight};
2688      }
2689      :host([disabled]) {
2690        opacity: 1;
2691      }
2692      :host([disabled]) .control {
2693        forced-color-adjust: none;
2694        border-color: ${C.GrayText};
2695        background: ${C.Field}
2695;
2696      }
2697      :host([disabled]) .indeterminate-indicator,
2698      :host([aria-checked='true'][disabled])
2699        .control:hover
2700        .indeterminate-indicator {
2701        forced-color-adjust: none;
2702        background: ${C.GrayText};
2703      }
2704      :host([disabled]) .checked-indicator,
2705      :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
2706        forced-color-adjust: none;
2707        fill: ${C.GrayText};
2708      }
2709    `))});var Zwe,mS,gS,bS=p(()=>{ee();ZW();L();Zwe=(r,e)=>z`
2710  <template
2711    role="checkbox"
2712    aria-checked="${t=>t.checked}"
2713    aria-required="${t=>t.required}"
2714    aria-disabled="${t=>t.disabled}"
2715    aria-readonly="${t=>t.readOnly}"
2716    tabindex="${t=>t.disabled?null:0}"
2717    @keypress="${(t,i)=>t.keypressHandler(i.event)}"
2718    @click="${(t,i)=>t.clickHandler(i.event)}"
2719  >
2720    <div part="control" class="control">
2721      <slot name="checked-indicator">
2722        ${e.checkedIndicator||""}
2723      </slot>
2724      <slot name="indeterminate-indicator">
2725        ${e.indeterminateIndicator||""}
2726      </slot>
2727    </div>
2728    <label
2729      part="label"
2730      class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
2731    >
2732      <slot ${ke("defaultSlottedNodes")}></slot>
2733    </label>
2734  </template>
2735`,mS=class extends ka{indeterminateChanged(e,t){this.indeterminate?this.classList.add("indeterminate"):this.classList.remove("indeterminate")}},gS=mS.compose({baseName:"checkbox",baseClass:ka,template:Zwe,styles:JW,checkedIndicator:`
2736        <svg
2737            part="checked-indicator"
2738            class="checked-indicator"
2739            viewBox="0 0 20 20"
2740            xmlns="http://www.w3.org/2000/svg"
2741        >
2742            <path
2743                fill-rule="evenodd"
2744                clip-rule="evenodd"
2745                d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"
2746            />
2747        </svg>
2748    `,indeterminateIndicator:`
2749        <div part="indeterminate-indicator" class="indeterminate-indicator"></div>
2750    `})});var Db,vS=p(()=>{L();ee();fe();_e();Ws();Db=(r,e)=>{let t=r.tagFor(Wr),i=r.name===r.tagFor(zi)?"":".listbox";return F`
2751        ${i?"":me("inline-flex")}
2752
2753        :host ${i} {
2754            background: ${$e};
2755            border: calc(${ne} * 1px) solid ${hi};
2756            border-radius: calc(${ce} * 1px);
2757            box-sizing: border-box;
2758            flex-direction: column;
2759            padding: calc(${H} * 1px) 0;
2760        }
2761
2762        ${i?"":F`
2763:host(:${U}:not([disabled])) {
2764                outline: none;
2765            }
2766
2767            :host(:focus-within:not([disabled])) {
2768                border-color: ${wr};
2769                box-shadow: 0 0 0
2770                    calc((${ue} - ${ne}) * 1px)
2771                    ${wr} inset;
2772            }
2773
2774            :host([disabled]) ::slotted(*) {
2775                cursor: ${ot};
2776                opacity: ${pt};
2777                pointer-events: none;
2778            }
2779        `}
2780
2781        ${i||":host([size])"} {
2782            max-height: calc(
2783                (var(--size) * ${pe} + (${H} * ${ne} * 2)) * 1px
2784            );
2785            overflow-y: auto;
2786        }
2787
2788        :host([size="0"]) ${i} {
2789            max-height: none;
2790        }
2791    `.withBehaviors(de(F`
2792                :host(:not([multiple]):${U}) ::slotted(${t}[aria-selected="true"]),
2793                :host([multiple]:${U}) ::slotted(${t}[aria-checked="true"]) {
2794                    border-color: ${C.ButtonText};
2795                    box-shadow: 0 0 0 calc(${ue} * 1px) inset ${C.HighlightText};
2796                }
2797
2798                :host(:not([multiple]):${U}) ::slotted(${t}[aria-selected="true"]) {
2799                    background: ${C.Highlight};
2800                    color: ${C.HighlightText};
2801                    fill: currentcolor;
2802                }
2803
2804                ::slotted(${t}[aria-selected="true"]:not([aria-checked="true"])) {
2805                    background: ${C.Highlight};
2806                    border-color: ${C.HighlightText};
2807                    color: ${C.HighlightText};
2808                }
2809            `))}});var $b,yS=p(()=>{L();ee();fe();_e();vS();Cb();Ws();$b=(r,e)=>{let t=r.name===r.tagFor(qi);return F`
2810  ${me("inline-flex")}
2811  
2812  :host {
2813    --elevation: 14;
2814    background: ${Vi};
2815    border-radius: calc(${ce} * 1px);
2816    border: calc(${ne} * 1px) solid ${dd};
2817    box-sizing: border-box;
2818    color: ${ae};
2819    font-family: ${Ce};
2820    height: calc(${pe} * 1px);
2821    position: relative;
2822    user-select: none;
2823    min-width: 250px;
2824    outline: none;
2825    vertical-align: top;
2826  }
2827
2828  :host([aria-invalid='true']) {
2829    border-color: ${Et};
2830  }
2831  
2832  :host(:not([autowidth])) {
2833    min-width: 250px;
2834  }
2835  
2836  ${t?F`
2837  :host(:not([aria-haspopup])) {
2838    --elevation: 0;
2839    border: 0;
2840    height: auto;
2841    min-width: 0;
2842  }
2843  `:""}
2844  
2845  ${Db(r,e)}
2846  
2847  :host .listbox {
2848    ${ms}
2849    border: none;
2850    display: flex;
2851    left: 0;
2852    position: absolute;
2853    width: 100%;
2854    z-index: 1;
2855  }
2856  
2857  .control + .listbox {
2858    --stroke-size: calc(${H} * ${ne} * 2);
2859    max-height: calc(
2860      (var(--listbox-max-height) * ${pe} + var(--stroke-size)) * 1px
2861      );
2862  }
2863  
2864  ${t?F`
2865  :host(:not([aria-haspopup])) .listbox {
2866    left: auto;
2867    position: static;
2868    z-index: auto;
2869  }
2870  `:""}
2871  
2872  :host(:not([autowidth])) .listbox {
2873    width: 100%;
2874  }
2875  
2876  :host([autowidth]) ::slotted([role='option']),
2877  :host([autowidth]) ::slotted(option) {
2878    padding: 0 calc(1em + ${H} * 1.25px + 1px);
2879  }
2880  
2881  .listbox[hidden] {
2882    display: none;
2883  }
2884  
2885  .control {
2886    align-items: center;
2887    box-sizing: border-box;
2888    cursor: pointer;
2889    display: flex;
2890    font-size: ${xe};
2891    font-family: inherit;
2892    line-height: ${Re};
2893    min-height: 100%;
2894    padding: 0 calc(${H} * 2.25px);
2895    width: 100%;
2896  }
2897
2898  :host([minimal]),
2899  :host([scale='xsmall']) {
2900    --element-scale: -4;
2901  }
2902
2903  :host([scale='small']) {
2904    --element-scale: -2;
2905  }
2906
2907  :host([scale='medium']) {
2908    --element-scale: 0;
2909  }
2910
2911  :host([scale='large']) {
2912    --element-scale: 2;
2913  }
2914
2915  :host([scale='xlarge']) {
2916    --element-scale: 4;
2917  }
2918  
2919  :host(:not([disabled]):hover) {
2920    background: ${ui};
2921    border-color: ${hd};
2922  }
2923  
2924  :host([aria-invalid='true']:not([disabled]):hover) {
2925    border-color: ${Xt};
2926  }
2927  
2928  :host(:${U}) {
2929    border-color: ${Me};
2930    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2931    ${Me};
2932  }
2933  
2934  :host([aria-invalid='true']:${U}) {
2935    border-color: ${_t};
2936    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2937    ${_t};
2938  }
2939  
2940  :host(:not([size]):not([multiple]):not([open]):${U}),
2941  :host([multiple]:${U}),
2942  :host([size]:${U}) {
2943    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2944    ${Me};
2945  }
2946  
2947  :host([aria-invalid='true']:not([size]):not([multiple]):not([open]):${U}),
2948  :host([aria-invalid='true'][multiple]:${U}),
2949  :host([aria-invalid='true'][size]:${U}) {
2950    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
2951    ${_t};
2952  }
2953  
2954  :host(:not([multiple]):not([size]):${U}) ::slotted(${r.tagFor(Wr)}[aria-selected="true"]:not([disabled])) {
2955    box-shadow: 0 0 0 calc(${ue} * 1px) inset ${Me};
2956    border-color: ${Me};
2957    background: ${Me};
2958    color: ${VU};
2959  }
2960    
2961  :host([disabled]) {
2962    cursor: ${ot};
2963    opacity: ${pt};
2964  }
2965  
2966  :host([disabled]) .control {
2967    cursor: ${ot};
2968    user-select: none;
2969  }
2970  
2971  :host([disabled]:hover) {
2972    background: ${di};
2973    color: ${ae};
2974    fill: currentcolor;
2975  }
2976  
2977  :host(:not([disabled])) .control:active {
2978    background: ${Vs};
2979    border-color: ${Bt};
2980    border-radius: calc(${ce} * 1px);
2981  }
2982  
2983  :host([open][position="above"]) .listbox {
2984    border-bottom-left-radius: 0;
2985    border-bottom-right-radius: 0;
2986    border-bottom: 0;
2987    bottom: calc(${pe} * 1px);
2988  }
2989  
2990  :host([open][position="below"]) .listbox {
2991    border-top-left-radius: 0;
2992    border-top-right-radius: 0;
2993    border-top: 0;
2994    top: calc(${pe} * 1px);
2995  }
2996  
2997  .selected-value {
2998    flex: 1 1 auto;
2999    font-family: inherit;
3000    overflow: hidden;
3001    text-align: start;
3002    text-overflow: ellipsis;
3003    white-space: nowrap;
3004  }
3005  
3006  .indicator {
3007    flex: 0 0 auto;
3008    margin-inline-start: 1em;
3009  }
3010  
3011  slot[name="listbox"] {
3012    display: none;
3013    width: 100%;
3014  }
3015  
3016  :host([open]) slot[name="listbox"] {
3017    display: flex;
3018    position: absolute;
3019    ${ms}
3020  }
3021  
3022  .end {
3023    margin-inline-start: auto;
3024  }
3025  
3026  .start,
3027  .end,
3028  .indicator,
3029  .select-indicator,
3030  ::slotted(svg) {
3031    /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3032    fill: currentcolor;
3033    height: 1em;
3034    min-height: calc(${H} * 4px);
3035    min-width: calc(${H} * 4px);
3036    width: 1em;
3037  }
3038  
3039  ::slotted([role="option"]),
3040  ::slotted(option) {
3041    flex: 0 0 auto;
3042  }
3043  `.withBehaviors(de(F`
3044      :host(:not([disabled]):hover),
3045      :host(:not([disabled]):active) {
3046        border-color: ${C.Highlight};
3047      }
3048
3049      :host([aria-invalid='true']) {
3050        border-style: dashed;
3051      }
3052      
3053      :host(:not([disabled]):${U}) {
3054        background-color: ${C.ButtonFace};
3055        box-shadow: 0 0 0 calc(${ue} * 1px) ${C.Highlight};
3056        color: ${C.ButtonText};
3057        fill: currentcolor;
3058        forced-color-adjust: none;
3059      }
3060      
3061      :host(:not([disabled]):${U}) .listbox {
3062        background: ${C.ButtonFace};
3063      }
3064      
3065      :host([disabled]) {
3066        border-color: ${C.GrayText};
3067        background-color: ${C.ButtonFace};
3068        color: ${C.GrayText};
3069        fill: currentcolor;
3070        opacity: 1;
3071        forced-color-adjust: none;
3072      }
3073      
3074      :host([disabled]:hover) {
3075        background: ${C.ButtonFace};
3076      }
3077      
3078      :host([disabled]) .control {
3079        color: ${C.GrayText};
3080        border-color: ${C.GrayText};
3081      }
3082      
3083      :host([disabled]) .control .select-indicator {
3084        fill: ${C.GrayText};
3085      }
3086      
3087      :host(:${U}) ::slotted([aria-selected="true"][role="option"]),
3088      :host(:${U}) ::slotted(option[aria-selected="true"]),
3089      :host(:${U}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
3090        background: ${C.Highlight};
3091        border-color: ${C.ButtonText};
3092        box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
3093        ${C.HighlightText};
3094        color: ${C.HighlightText};
3095        fill: currentcolor;
3096      }
3097      
3098      .start,
3099      .end,
3100      .indicator,
3101      .select-indicator,
3102      ::slotted(svg) {
3103        color: ${C.ButtonText};
3104        fill: currentcolor;
3105      }
3106      `))}});var QW,eG=p(()=>{L();ee();_e();yS();QW=(r,e)=>F`
3107  ${$b(r,e)}
3108
3109  :host(:empty) .listbox {
3110    display: none;
3111  }
3112
3113  :host([disabled]) *,
3114  :host([disabled]) {
3115    cursor: ${ot};
3116    user-select: none;
3117  }
3118
3119  :host(:focus-within:not([disabled])) {
3120    border-color: ${Me};
3121    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
3122      ${Me};
3123  }
3124
3125  :host([aria-invalid='true']:focus-within:not([disabled])) {
3126    border-color: ${_t};
3127    box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
3128      ${_t};
3129  }
3130
3131  .selected-value {
3132    -webkit-appearance: none;
3133    background: transparent;
3134    border: none;
3135    color: inherit;
3136    font-size: ${xe};
3137    line-height: ${Re};
3138    height: calc(100% - (${ne} * 1px));
3139    margin: auto 0;
3140    width: 100%;
3141  }
3142
3143  .selected-value:hover,
3144    .selected-value:${U},
3145    .selected-value:disabled,
3146    .selected-value:active {
3147    outline: none;
3148  }
3149`});var bd,xS,_S=p(()=>{Gi();L();ee();_e();eG();bd=class extends Ln{connectedCallback(){super.connectedCallback(),this.setAutoWidth()}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setAutoWidth()}autoWidthChanged(e,t){t?this.setAutoWidth():this.style.removeProperty("width")}setAutoWidth(){if(!this.autoWidth||!this.isConnected)return;let e=this.listbox.getBoundingClientRect().width;e===0&&this.listbox.hidden&&(Object.assign(this.listbox.style,{visibility:"hidden"}),this.listbox.removeAttribute("hidden"),e=this.listbox.getBoundingClientRect().width,this.listbox.setAttribute("hidden",""),this.listbox.style.removeProperty("visibility")),e>0&&Object.assign(this.style,{width:`${e}px`})}maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=Math.floor(this.maxHeight/gb.getValueFor(this)).toString();this.computedStylesheet=F`
3150      :host {
3151        --listbox-max-height: ${e};
3152      }
3153    `,this.$fastController.addStyles(this.computedStylesheet)}};K([x({attribute:"autowidth",mode:"boolean"})],bd.prototype,"autoWidth",void 0);K([x({attribute:"minimal",mode:"boolean"})],bd.prototype,"minimal",void 0);K([x],bd.prototype,"scale",void 0);xS=bd.compose({baseName:"combobox",baseClass:Ln,template:$z,styles:QW,shadowOptions:{delegatesFocus:!0},indicator:`
3154        <svg
3155            class="select-indicator"
3156            part="select-indicator"
3157            viewBox="0 0 12 7"
3158            xmlns="http://www.w3.org/2000/svg"
3159        >
3160            <path
3161                d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"
3162            />
3163        </svg>
3164    `})});var tG,rG=p(()=>{L();tG=(r,e)=>F`
3165  :host {
3166    display: flex;
3167    position: relative;
3168    flex-direction: column;
3169  }
3170`});var iG,nG=p(()=>{L();_e();iG=(r,e)=>F`
3171  :host {
3172    display: grid;
3173    padding: 1px 0;
3174    box-sizing: border-box;
3175    width: 100%;
3176    border-bottom: calc(${ne} * 1px) solid ${ps};
3177  }
3178
3179  :host(.header) {
3180  }
3181
3182  :host(.sticky-header) {
3183    background: ${xt};
3184    position: sticky;
3185    top: 0;
3186  }
3187`});var sG,oG=p(()=>{L();fe();ee();_e();sG=(r,e)=>F`
3188    :host {
3189      padding: calc(${H} * 1px) calc(${H} * 3px);
3190      color: ${ae};
3191      box-sizing: border-box;
3192      font-family: ${Ce};
3193      font-size: ${xe};
3194      line-height: ${Re};
3195      font-weight: 400;
3196      border: transparent calc(${ue} * 1px) solid;
3197      overflow: hidden;
3198      white-space: nowrap;
3199      border-radius: calc(${ce} * 1px);
3200    }
3201
3202    :host(.column-header) {
3203      font-weight: 600;
3204    }
3205
3206    :host(:${U}) {
3207      outline: calc(${ue} * 1px) solid ${Me};
3208      color: ${ae};
3209    }
3210  `.withBehaviors(de(F`
3211      :host {
3212        forced-color-adjust: none;
3213        border-color: transparent;
3214        background: ${C.Field};
3215        color: ${C.FieldText};
3216      }
3217
3218      :host(:${U}) {
3219        border-color: ${C.FieldText};
3220        box-shadow: 0 0 0 2px inset ${C.Field};
3221        color: ${C.FieldText};
3222      }
3223    `))});var wS,IS,SS,kS,CS,ES,TS=p(()=>{ee();rG();nG();oG();wS=class extends Pn{},IS=wS.compose({baseName:"data-grid-cell",baseClass:Pn,template:vz,styles:sG}),SS=class extends dr{},kS=SS.compose({baseName:"data-grid-row",baseClass:dr,template:gz,styles:iG}),CS=class extends Kt{},ES=CS.compose({baseName:"data-grid",baseClass:Kt,template:fz,styles:tG})});var AS,Mb,aG=p(()=>{ee();AS=class extends X{},Mb=class extends nr(AS){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var RS,lG=p(()=>{RS={toView(r){if(r==null)return null;let e=new Date(r);return e.toString()==="Invalid Date"?null:`${e.getFullYear().toString().padStart(4,"0")}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`},fromView(r){if(r==null)return null;let e=new Date(r);return e.toString()==="Invalid Date"?null:e}}});var OS,mn,DS=p(()=>{Gi();L();fe();ee();aG();lG();OS="Invalid Date",mn=class extends Mb{constructor(){super(...arguments),this.step=1,this.isUserInput=!1}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxChanged(e,t){var i;this.max=t<((i=this.min)!==null&&i!==void 0?i:t)?this.min:t,this.value=this.getValidValue(this.value)}minChanged(e,t){var i;this.min=t>((i=this.max)!==null&&i!==void 0?i:t)?this.max:t,this.value=this.getValidValue(this.value)}get valueAsNumber(){return new Date(super.value).valueOf()}set valueAsNumber(e){this.value=new Date(e).toString()}get valueAsDate(){return new Date(super.value)}set valueAsDate(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&this.$emit("change"),this.isUserInput=!1)}getValidValue(e){var t,i;let n=new Date(e);return n.toString()===OS?n="":(n=n>((t=this.max)!==null&&t!==void 0?t:n)?this.max:n,n=n<((i=this.min)!==null&&i!==void 0?i:n)?this.min:n,n=`${n.getFullYear().toString().padStart(4,"0")}-${(n.getMonth()+1).toString().padStart(2,"0")}-${n.getDate().toString().padStart(2,"0")}`),n}stepUp(){let e=864e5*this.step,t=new Date(this.value);this.value=new Date(t.toString()!==OS?t.valueOf()+e:0).toString()}stepDown(){let e=864e5*this.step,t=new Date(this.value);this.value=new Date(t.toString()!==OS?Math.max(t.valueOf()-e,0):0).toString()}connectedCallback(){super.connectedCallback(),this.validate(),this.control.value=this.value,this.autofocus&&ie.queueUpdate(()=>{this.focus()}),this.appearance||(this.appearance="outline")}handleTextInput(){this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){switch(e.key){case It:return this.stepUp(),!1;case Ct:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};K([x],mn.prototype,"appearance",void 0);K([x({attribute:"readonly",mode:"boolean"})],mn.prototype,"readOnly",void 0);K([x({mode:"boolean"})],mn.prototype,"autofocus",void 0);K([x],mn.prototype,"list",void 0);K([x({converter:le})],mn.prototype,"step",void 0);K([x({converter:RS})],mn.prototype,"max",void 0);K([x({converter:RS})],mn.prototype,"min",void 0);K([M],mn.prototype,"defaultSlottedNodes",void 0);Fe(mn,it,zs)});var cG,uG=p(()=>{L();jt();cG=(r,e)=>F`
3224  ${za}
3225`});var dG,$S=p(()=>{L();ee();dG=(r,e)=>z`
3226  <template class="${t=>t.readOnly?"readonly":""}">
3227    <label
3228      part="label"
3229      for="control"
3230      class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
3231    >
3232      <slot
3233        ${ke({property:"defaultSlottedNodes",filter:rd})}
3234      ></slot>
3235    </label>
3236    <div class="root" part="root">
3237      ${ft(r,e)}
3238      <input
3239        class="control"
3240        part="control"
3241        id="control"
3242        @input="${t=>t.handleTextInput()}"
3243        @change="${t=>t.handleChange()}"
3244        ?autofocus="${t=>t.autofocus}"
3245        ?disabled="${t=>t.disabled}"
3246        list="${t=>t.list}"
3247        ?readonly="${t=>t.readOnly}"
3248        ?required="${t=>t.required}"
3249        :value="${t=>t.value}"
3250        type="date"
3251        aria-atomic="${t=>t.ariaAtomic}"
3252        aria-busy="${t=>t.ariaBusy}"
3253        aria-controls="${t=>t.ariaControls}"
3254        aria-current="${t=>t.ariaCurrent}"
3255        aria-describedby="${t=>t.ariaDescribedby}"
3256        aria-details="${t=>t.ariaDetails}"
3257        aria-disabled="${t=>t.ariaDisabled}"
3258        aria-errormessage="${t=>t.ariaErrormessage}"
3259        aria-flowto="${t=>t.ariaFlowto}"
3260        aria-haspopup="${t=>t.ariaHaspopup}"
3261        aria-hidden="${t=>t.ariaHidden}"
3262        aria-invalid="${t=>t.ariaInvalid}"
3263        aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
3264        aria-label="${t=>t.ariaLabel}"
3265        aria-labelledby="${t=>t.ariaLabelledby}"
3266        aria-live="${t=>t.ariaLive}"
3267        aria-owns="${t=>t.ariaOwns}"
3268        aria-relevant="${t=>t.ariaRelevant}"
3269        aria-roledescription="${t=>t.ariaRoledescription}"
3270        ${Se("control")}
3271      />
3272      ${ht(r,e)}
3273    </div>
3274  </template>
3275`});var MS,PS=p(()=>{DS();uG();$S();DS();$S();MS=mn.compose({baseName:"date-field",styles:cG,template:dG,shadowOptions:{delegatesFocus:!0}})});function ve(r){return(e,t)=>{e[t+"Changed"]=function(i,n){n!=null?r.setValueFor(this,n):r.deleteValueFor(this)}}}var Pb,hG,be,Qwe,e2e,Sht,FS=p(()=>{Gi();zu();L();ee();fe();Hu();_e();Pb={toView(r){return r==null?null:r?.toColorString()},fromView(r){if(r==null)return null;let e=Fi(r);return e?yr.create(e.r,e.g,e.b):null}},hG=F`
3276  :host {
3277    background-color: ${$e};
3278    color: ${ae};
3279  }
3280`.withBehaviors(de(F`
3281    :host {
3282      background-color: ${C.ButtonFace};
3283      box-shadow: 0 0 0 1px ${C.CanvasText};
3284      color: ${C.ButtonText};
3285    }
3286  `));be=class extends X{constructor(){super(),this.noPaint=!1;let e={handleChange:this.noPaintChanged.bind(this)};he.getNotifier(this).subscribe(e,"fillColor"),he.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)?this.$fastController.addStyles(hG):this.$fastController.removeStyles(hG)}};K([x({attribute:"no-paint",mode:"boolean"})],be.prototype,"noPaint",void 0);K([x({attribute:"fill-color",converter:Pb}),ve($e)],be.prototype,"fillColor",void 0);K([x({attribute:"accent-color",converter:Pb,mode:"fromView"}),ve(Rf)],be.prototype,"accentColor",void 0);K([x({attribute:"neutral-color",converter:Pb,mode:"fromView"}),ve(Af)],be.prototype,"neutralColor",void 0);K([x({attribute:"error-color",converter:Pb,mode:"fromView"}),ve(Df)],be.prototype,"errorColor",void 0);K([x({converter:le}),ve(ut)],be.prototype,"density",void 0);K([x({attribute:"design-unit",converter:le}),ve(H)],be.prototype,"designUnit",void 0);K([x({attribute:"direction"}),ve(ld)],be.prototype,"direction",void 0);K([x({attribute:"base-height-multiplier",converter:le}),ve(pn)],be.prototype,"baseHeightMultiplier",void 0);K([x({attribute:"base-horizontal-spacing-multiplier",converter:le}),ve(TU)],be.prototype,"baseHorizontalSpacingMultiplier",void 0);K([x({attribute:"control-corner-radius",converter:le}),ve(ce)],be.prototype,"controlCornerRadius",void 0);K([x({attribute:"stroke-width",converter:le}),ve(ne)],be.prototype,"strokeWidth",void 0);K([x({attribute:"focus-stroke-width",converter:le}),ve(ue)],be.prototype,"focusStrokeWidth",void 0);K([x({attribute:"disabled-opacity",converter:le}),ve(pt)],be.prototype,"disabledOpacity",void 0);K([x({attribute:"type-ramp-minus-2-font-size"}),ve(AU)],be.prototype,"typeRampMinus2FontSize",void 0);K([x({attribute:"type-ramp-minus-2-line-height"}),ve(RU)],be.prototype,"typeRampMinus2LineHeight",void 0);K([x({attribute:"type-ramp-minus-1-font-size"}),ve(Fa)],be.prototype,"typeRampMinus1FontSize",void 0);K([x({attribute:"type-ramp-minus-1-line-height"}),ve(La)],be.prototype,"typeRampMinus1LineHeight",void 0);K([x({attribute:"type-ramp-base-font-size"}),ve(xe)],be.prototype,"typeRampBaseFontSize",void 0);K([x({attribute:"type-ramp-base-line-height"}),ve(Re)],be.prototype,"typeRampBaseLineHeight",void 0);K([x({attribute:"type-ramp-plus-1-font-size"}),ve(Na)],be.prototype,"typeRampPlus1FontSize",void 0);K([x({attribute:"type-ramp-plus-1-line-height"}),ve(OU)],be.prototype,"typeRampPlus1LineHeight",void 0);K([x({attribute:"type-ramp-plus-2-font-size"}),ve(DU)],be.prototype,"typeRampPlus2FontSize",void 0);K([x({attribute:"type-ramp-plus-2-line-height"}),ve($U)],be.prototype,"typeRampPlus2LineHeight",void 0);K([x({attribute:"type-ramp-plus-3-font-size"}),ve(MU)],be.prototype,"typeRampPlus3FontSize",void 0);K([x({attribute:"type-ramp-plus-3-line-height"}),ve(PU)],be.prototype,"typeRampPlus3LineHeight",void 0);K([x({attribute:"type-ramp-plus-4-font-size"}),ve(FU)],be.prototype,"typeRampPlus4FontSize",void 0);K([x({attribute:"type-ramp-plus-4-line-height"}),ve(LU)],be.prototype,"typeRampPlus4LineHeight",void 0);K([x({attribute:"type-ramp-plus-5-font-size"}),ve(NU)],be.prototype,"typeRampPlus5FontSize",void 0);K([x({attribute:"type-ramp-plus-5-line-height"}),ve(BU)],be.prototype,"typeRampPlus5LineHeight",void 0);K([x({attribute:"type-ramp-plus-6-font-size"}),ve(jU)],be.prototype,"typeRampPlus6FontSize",void 0);K([x({attribute:"type-ramp-plus-6-line-height"}),ve(zU)],be.prototype,"typeRampPlus6LineHeight",void 0);K([x({attribute:"accent-fill-rest-delta",converter:le}),ve(qU)],be.prototype,"accentFillRestDelta",void 0);K([x({attribute:"accent-fill-hover-delta",converter:le}),ve(zc)],be.prototype,"accentFillHoverDelta",void 0);K([x({attribute:"accent-fill-active-delta",converter:le}),ve(rb)],be.prototype,"accentFillActiveDelta",void 0);K([x({attribute:"accent-fill-focus-delta",converter:le}),ve(ib)],be.prototype,"accentFillFocusDelta",void 0);K([x({attribute:"accent-foreground-rest-delta",converter:le}),ve(nb)],be.prototype,"accentForegroundRestDelta",void 0);K([x({attribute:"accent-foreground-hover-delta",converter:le}),ve(sb)],be.prototype,"accentForegroundHoverDelta",void 0);K([x({attribute:"accent-foreground-active-delta",converter:le}),ve(ob)],be.prototype,"accentForegroundActiveDelta",void 0);K([x({attribute:"accent-foreground-focus-delta",converter:le}),ve(ab)],be.prototype,"accentForegroundFocusDelta",void 0);K([x({attribute:"neutral-fill-rest-delta",converter:le}),ve(Eo)],be.prototype,"neutralFillRestDelta",void 0);K([x({attribute:"neutral-fill-hover-delta",converter:le}),ve(To)],be.prototype,"neutralFillHoverDelta",void 0);K([x({attribute:"neutral-fill-active-delta",converter:le}),ve(Ao)],be.prototype,"neutralFillActiveDelta",void 0);K([x({attribute:"neutral-fill-focus-delta",converter:le}),ve(lb)],be.prototype,"neutralFillFocusDelta",void 0);K([x({attribute:"neutral-fill-input-rest-delta",converter:le}),ve(b2)],be.prototype,"neutralFillInputRestDelta",void 0);K([x({attribute:"neutral-fill-input-hover-delta",converter:le}),ve(v2)],be.prototype,"neutralFillInputHoverDelta",void 0);K([x({attribute:"neutral-fill-input-active-delta",converter:le}),ve(y2)],be.prototype,"neutralFillInputActiveDelta",void 0);K([x({attribute:"neutral-fill-input-focus-delta",converter:le}),ve(x2)],be.prototype,"neutralFillInputFocusDelta",void 0);K([x({attribute:"neutral-fill-stealth-rest-delta",converter:le}),ve(_2)],be.prototype,"neutralFillStealthRestDelta",void 0);K([x({attribute:"neutral-fill-stealth-hover-delta",converter:le}),ve(w2)],be.prototype,"neutralFillStealthHoverDelta",void 0);K([x({attribute:"neutral-fill-stealth-active-delta",converter:le}),ve(S2)],be.prototype,"neutralFillStealthActiveDelta",void 0);K([x({attribute:"neutral-fill-stealth-focus-delta",converter:le}),ve(C2)],be.prototype,"neutralFillStealthFocusDelta",void 0);K([x({attribute:"neutral-fill-strong-hover-delta",converter:le}),ve(I2)],be.prototype,"neutralFillStrongHoverDelta",void 0);K([x({attribute:"neutral-fill-strong-active-delta",converter:le}),ve(k2)],be.prototype,"neutralFillStrongActiveDelta",void 0);K([x({attribute:"neutral-fill-strong-focus-delta",converter:le}),ve(E2)],be.prototype,"neutralFillStrongFocusDelta",void 0);K([x({attribute:"base-layer-luminance",converter:le}),ve(qs)],be.prototype,"baseLayerLuminance",void 0);
3286K([x({attribute:"neutral-fill-layer-rest-delta",converter:le}),ve(Ba)],be.prototype,"neutralFillLayerRestDelta",void 0);K([x({attribute:"neutral-stroke-divider-rest-delta",converter:le}),ve(D2)],be.prototype,"neutralStrokeDividerRestDelta",void 0);K([x({attribute:"neutral-stroke-rest-delta",converter:le}),ve(T2)],be.prototype,"neutralStrokeRestDelta",void 0);K([x({attribute:"neutral-stroke-hover-delta",converter:le}),ve(A2)],be.prototype,"neutralStrokeHoverDelta",void 0);K([x({attribute:"neutral-stroke-active-delta",converter:le}),ve(R2)],be.prototype,"neutralStrokeActiveDelta",void 0);K([x({attribute:"neutral-stroke-focus-delta",converter:le}),ve(O2)],be.prototype,"neutralStrokeFocusDelta",void 0);Qwe=(r,e)=>z` <slot></slot> `,e2e=(r,e)=>F`
3287  ${me("block")}
3288`,Sht=be.compose({baseName:"design-system-provider",template:Qwe,styles:e2e})});var fG,pG=p(()=>{L();_e();Cb();fG=(r,e)=>F`
3289  :host([hidden]) {
3290    display: none;
3291  }
3292
3293  :host {
3294    --elevation: 14;
3295    --dialog-height: 480px;
3296    --dialog-width: 640px;
3297    display: block;
3298  }
3299
3300  .overlay {
3301    position: fixed;
3302    top: 0;
3303    left: 0;
3304    right: 0;
3305    bottom: 0;
3306    background: rgba(0, 0, 0, 0.3);
3307    touch-action: none;
3308  }
3309
3310  .positioning-region {
3311    display: flex;
3312    justify-content: center;
3313    position: fixed;
3314    top: 0;
3315    bottom: 0;
3316    left: 0;
3317    right: 0;
3318    overflow: auto;
3319  }
3320
3321  .control {
3322    ${ms}
3323    margin-top: auto;
3324    margin-bottom: auto;
3325    width: var(--dialog-width);
3326    height: var(--dialog-height);
3327    background-color: ${$e};
3328    z-index: 1;
3329    border-radius: calc(${ce} * 1px);
3330    border: calc(${ne} * 1px) solid transparent;
3331  }
3332`});var LS,NS,BS=p(()=>{ee();pG();LS=class extends li{},NS=LS.compose({baseName:"dialog",baseClass:li,template:qz,styles:fG})});var mG,gG=p(()=>{L();_e();mG=(r,e)=>F`
3333  .disclosure {
3334    transition: height 0.35s;
3335  }
3336
3337  .disclosure .invoker::-webkit-details-marker {
3338    display: none;
3339  }
3340
3341  .disclosure .invoker {
3342    list-style-type: none;
3343  }
3344
3345  :host([appearance='accent']) .invoker {
3346    background: ${Qe};
3347    color: ${pr};
3348    font-family: ${Ce};
3349    font-size: ${xe};
3350    border-radius: calc(${ce} * 1px);
3351    outline: none;
3352    cursor: pointer;
3353    margin: 16px 0;
3354    padding: 12px;
3355    max-width: max-content;
3356  }
3357
3358  :host([appearance='accent']) .invoker:active {
3359    background: ${Bt};
3360    color: ${_r};
3361  }
3362
3363  :host([appearance='accent']) .invoker:hover {
3364    background: ${fr};
3365    color: ${Xr};
3366  }
3367
3368  :host([appearance='lightweight']) .invoker {
3369    background: transparent;
3370    color: ${Yt};
3371    border-bottom: calc(${ne} * 1px) solid ${Yt};
3372    cursor: pointer;
3373    width: max-content;
3374    margin: 16px 0;
3375  }
3376
3377  :host([appearance='lightweight']) .invoker:active {
3378    border-bottom-color: ${Hs};
3379  }
3380
3381  :host([appearance='lightweight']) .invoker:hover {
3382    border-bottom-color: ${Ro};
3383  }
3384
3385  .disclosure[open] .invoker ~ * {
3386    animation: fadeIn 0.5s ease-in-out;
3387  }
3388
3389  @keyframes fadeIn {
3390    0% {
3391      opacity: 0;
3392    }
3393    100% {
3394      opacity: 1;
3395    }
3396  }
3397`});var Fb,jS,zS=p(()=>{Gi();L();ee();gG();Fb=class extends Lc{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="accent")}appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}onToggle(){super.onToggle(),this.details.style.setProperty("height",`${this.disclosureHeight}px`)}setup(){super.setup();let e=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=e(),this.hide(),this.height=e(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}};K([x],Fb.prototype,"appearance",void 0);jS=Fb.compose({baseName:"disclosure",baseClass:Lc,template:Jz,styles:mG})});var bG,vG=p(()=>{L();ee();_e();bG=(r,e)=>F`
3398  ${me("block")} :host {
3399    box-sizing: content-box;
3400    height: 0;
3401    margin: calc(${H} * 1px) 0;
3402    border-top: calc(${ne} * 1px) solid ${ps};
3403    border-left: none;
3404  }
3405
3406  :host([orientation='vertical']) {
3407    height: 100%;
3408    margin: 0 calc(${H} * 1px);
3409    border-top: none;
3410    border-left: calc(${ne} * 1px) solid ${ps};
3411  }
3412`});var qS,HS,VS=p(()=>{ee();vG();qS=class extends Nc{},HS=qS.compose({baseName:"divider",baseClass:Nc,template:tq,styles:bG})});var US,WS,GS=p(()=>{L();ee();vS();US=class extends zi{sizeChanged(e,t){super.sizeChanged(e,t),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=`${this.size}`;this.computedStylesheet=F`
3413      :host {
3414        --size: ${e};
3415      }
3416    `,this.$fastController.addStyles(this.computedStylesheet)}},WS=US.compose({baseName:"listbox",baseClass:zi,template:bq,styles:Db})});var yG,xG=p(()=>{L();ee();fe();_e();jt();yG=(r,e)=>F`
3417    ${me("block")} :host {
3418      --elevation: 11;
3419      background: ${$e};
3420      border: calc(${ne} * 1px) solid transparent;
3421      ${ms}
3422      margin: 0;
3423      border-radius: calc(${ce} * 1px);
3424      padding: calc(${H} * 1px) 0;
3425      max-width: 368px;
3426      min-width: 64px;
3427    }
3428
3429    :host([slot='submenu']) {
3430      width: max-content;
3431      margin: 0 calc(${H} * 1px);
3432    }
3433
3434    ::slotted(hr) {
3435      box-sizing: content-box;
3436      height: 0;
3437      margin: 0;
3438      border: none;
3439      border-top: calc(${ne} * 1px) solid ${ps};
3440    }
3441  `.withBehaviors(de(F`
3442      :host {
3443        background: ${C.Canvas};
3444        border-color: ${C.CanvasText};
3445      }
3446    `))});var KS,YS,XS=p(()=>{ee();_e();xG();KS=class extends Co{connectedCallback(){super.connectedCallback(),$e.setValueFor(this,cd)}},YS=KS.compose({baseName:"menu",baseClass:Co,template:Fq,styles:yG})});var _G,wG=p(()=>{L();ee();fe();_e();jt();_G=(r,e)=>F`
3447    ${me("grid")} :host {
3448      contain: layout;
3449      overflow: visible;
3450      font-family: ${Ce};
3451      outline: none;
3452      box-sizing: border-box;
3453      height: calc(${pe} * 1px);
3454      grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto);
3455      grid-template-rows: auto;
3456      justify-items: center;
3457      align-items: center;
3458      padding: 0;
3459      margin: 0 calc(${H} * 1px);
3460      white-space: nowrap;
3461      background: ${di};
3462      color: ${ae};
3463      fill: currentcolor;
3464      cursor: pointer;
3465      font-size: ${xe};
3466      line-height: ${Re};
3467      border-radius: calc(${ce} * 1px);
3468      border: calc(${ue} * 1px) solid transparent;
3469    }
3470
3471    :host(:hover) {
3472      position: relative;
3473      z-index: 1;
3474    }
3475
3476    :host(.indent-0) {
3477      grid-template-columns: auto 1fr minmax(42px, auto);
3478    }
3479    :host(.indent-0) .content {
3480      grid-column: 1;
3481      grid-row: 1;
3482      margin-inline-start: 10px;
3483    }
3484    :host(.indent-0) .expand-collapse-glyph-container {
3485      grid-column: 5;
3486      grid-row: 1;
3487    }
3488    :host(.indent-2) {
3489      grid-template-columns:
3490        minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto)
3491        minmax(42px, auto);
3492    }
3493    :host(.indent-2) .content {
3494      grid-column: 3;
3495      grid-row: 1;
3496      margin-inline-start: 10px;
3497    }
3498    :host(.indent-2) .expand-collapse-glyph-container {
3499      grid-column: 5;
3500      grid-row: 1;
3501    }
3502    :host(.indent-2) .start {
3503      grid-column: 2;
3504    }
3505    :host(.indent-2) .end {
3506      grid-column: 4;
3507    }
3508
3509    :host(:${U}) {
3510      border-color: ${Me};
3511      background: ${ud};
3512      color: ${ae};
3513    }
3514
3515    :host(:hover) {
3516      background: ${Ui};
3517      color: ${ae};
3518    }
3519
3520    :host(:active) {
3521      background: ${Wi};
3522    }
3523
3524    :host([aria-checked='true']),
3525    :host(.expanded) {
3526      background: ${xt};
3527      color: ${ae};
3528    }
3529
3530    :host([disabled]) {
3531      cursor: ${ot};
3532      opacity: ${pt};
3533    }
3534
3535    :host([disabled]:hover) {
3536      color: ${ae};
3537      fill: currentcolor;
3538      background: ${di};
3539    }
3540
3541    :host([disabled]:hover) .start,
3542    :host([disabled]:hover) .end,
3543    :host([disabled]:hover)::slotted(svg) {
3544      fill: ${ae};
3545    }
3546
3547    .expand-collapse-glyph {
3548      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3549      width: calc((16 + ${ut}) * 1px);
3550      height: calc((16 + ${ut}) * 1px);
3551      fill: currentcolor;
3552    }
3553
3554    .content {
3555      grid-column-start: 2;
3556      justify-self: start;
3557      overflow: hidden;
3558      text-overflow: ellipsis;
3559    }
3560
3561    .start,
3562    .end {
3563      display: flex;
3564      justify-content: center;
3565    }
3566
3567    ::slotted(svg) {
3568      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3569      width: 16px;
3570      height: 16px;
3571
3572      /* Something like that would do if the typography is adaptive
3573      font-size: inherit;
3574      width: ${Na};
3575      height: ${Na};
3576      */
3577    }
3578
3579    :host(:hover) .start,
3580    :host(:hover) .end,
3581    :host(:hover)::slotted(svg),
3582    :host(:active) .start,
3583    :host(:active) .end,
3584    :host(:active)::slotted(svg) {
3585      fill: ${ae};
3586    }
3587
3588    :host(.indent-0[aria-haspopup='menu']) {
3589      display: grid;
3590      grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
3591          42px,
3592          auto
3593        );
3594      align-items: center;
3595      min-height: 32px;
3596    }
3597
3598    :host(.indent-1[aria-haspopup='menu']),
3599    :host(.indent-1[role='menuitemcheckbox']),
3600    :host(.indent-1[role='menuitemradio']) {
3601      display: grid;
3602      grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
3603          42px,
3604          auto
3605        );
3606      align-items: center;
3607      min-height: 32px;
3608    }
3609
3610    :host(.indent-2:not([aria-haspopup='menu'])) .end {
3611      grid-column: 5;
3612    }
3613
3614    :host .input-container,
3615    :host .expand-collapse-glyph-container {
3616      display: none;
3617    }
3618
3619    :host([aria-haspopup='menu']) .expand-collapse-glyph-container,
3620    :host([role='menuitemcheckbox']) .input-container,
3621    :host([role='menuitemradio']) .input-container {
3622      display: grid;
3623      margin-inline-end: 10px;
3624    }
3625
3626    :host([aria-haspopup='menu']) .content,
3627    :host([role='menuitemcheckbox']) .content,
3628    :host([role='menuitemradio']) .content {
3629      grid-column-start: 3;
3630    }
3631
3632    :host([aria-haspopup='menu'].indent-0) .content {
3633      grid-column-start: 1;
3634    }
3635
3636    :host([aria-haspopup='menu']) .end,
3637    :host([role='menuitemcheckbox']) .end,
3638    :host([role='menuitemradio']) .end {
3639      grid-column-start: 4;
3640    }
3641
3642    :host .expand-collapse,
3643    :host .checkbox,
3644    :host .radio {
3645      display: flex;
3646      align-items: center;
3647      justify-content: center;
3648      position: relative;
3649      width: 20px;
3650      height: 20px;
3651      box-sizing: border-box;
3652      outline: none;
3653      margin-inline-start: 10px;
3654    }
3655
3656    :host .checkbox,
3657    :host .radio {
3658      border: calc(${ne} * 1px) solid ${ae};
3659    }
3660
3661    :host([aria-checked='true']) .checkbox,
3662    :host([aria-checked='true']) .radio {
3663      background: ${Qe};
3664      border-color: ${Qe};
3665    }
3666
3667    :host .checkbox {
3668      border-radius: calc(${ce} * 1px);
3669    }
3670
3671    :host .radio {
3672      border-radius: 999px;
3673    }
3674
3675    :host .checkbox-indicator,
3676    :host .radio-indicator,
3677    :host .expand-collapse-indicator,
3678    ::slotted([slot='checkbox-indicator']),
3679    ::slotted([slot='radio-indicator']),
3680    ::slotted([slot='expand-collapse-indicator']) {
3681      display: none;
3682    }
3683
3684    ::slotted([slot='end']:not(svg)) {
3685      margin-inline-end: 10px;
3686      color: ${Do};
3687    }
3688
3689    :host([aria-checked='true']) .checkbox-indicator,
3690    :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']) {
3691      width: 100%;
3692      height: 100%;
3693      display: block;
3694      fill: ${pr};
3695      pointer-events: none;
3696    }
3697
3698    :host([aria-checked='true']) .radio-indicator {
3699      position: absolute;
3700      top: 4px;
3701      left: 4px;
3702      right: 4px;
3703      bottom: 4px;
3704      border-radius: 999px;
3705      display: block;
3706      background: ${pr};
3707      pointer-events: none;
3708    }
3709
3710    :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
3711      display: block;
3712      pointer-events: none;
3713    }
3714  `.withBehaviors(de(F`
3715      :host {
3716        border-color: transparent;
3717        color: ${C.ButtonText};
3718        forced-color-adjust: none;
3719      }
3720
3721      :host(:hover) {
3722        background: ${C.Highlight};
3723        color: ${C.HighlightText};
3724      }
3725
3726      :host(:hover) .start,
3727      :host(:hover) .end,
3728      :host(:hover)::slotted(svg),
3729      :host(:active) .start,
3730      :host(:active) .end,
3731      :host(:active)::slotted(svg) {
3732        fill: ${C.HighlightText};
3733      }
3734
3735      :host(.expanded) {
3736        background: ${C.Highlight};
3737        border-color: ${C.Highlight};
3738        color: ${C.HighlightText};
3739      }
3740
3741      :host(:${U}) {
3742        background: ${C.Highlight};
3743        border-color: ${C.ButtonText};
3744        box-shadow: 0 0 0 calc(${ue} * 1px) inset
3745          ${C.HighlightText};
3746        color: ${C.HighlightText};
3747        fill: currentcolor;
3748      }
3749
3750      :host([disabled]),
3751      :host([disabled]:hover),
3752      :host([disabled]:hover) .start,
3753      :host([disabled]:hover) .end,
3754      :host([disabled]:hover)::slotted(svg) {
3755        background: ${C.Canvas};
3756        color: ${C.GrayText};
3757        fill: currentcolor;
3758        opacity: 1;
3759      }
3760
3761      :host .expanded-toggle,
3762      :host .checkbox,
3763      :host .radio {
3764        border-color: ${C.ButtonText};
3765        background: ${C.HighlightText};
3766      }
3767
3768      :host([checked='true']) .checkbox,
3769      :host([checked='true']) .radio {
3770        background: ${C.HighlightText};
3771        border-color: ${C.HighlightText};
3772      }
3773
3774      :host(:hover) .expanded-toggle,
3775            :host(:hover) .checkbox,
3776            :host(:hover) .radio,
3777            :host(:${U}) .expanded-toggle,
3778            :host(:${U}) .checkbox,
3779            :host(:${U}) .radio,
3780            :host([checked="true"]:hover) .checkbox,
3781            :host([checked="true"]:hover) .radio,
3782            :host([checked="true"]:${U}) .checkbox,
3783            :host([checked="true"]:${U}) .radio {
3784        border-color: ${C.HighlightText};
3785      }
3786
3787      :host([aria-checked='true']) {
3788        background: ${C.Highlight};
3789        color: ${C.HighlightText};
3790      }
3791
3792      :host([aria-checked='true']) .checkbox-indicator,
3793      :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),
3794      :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
3795        fill: ${C.Highlight};
3796      }
3797
3798      :host([aria-checked='true']) .radio-indicator {
3799        background: ${C.Highlight};
3800      }
3801
3802      ::slotted([slot='end']:not(svg)) {
3803        color: ${C.ButtonText};
3804      }
3805
3806      :host(:hover) ::slotted([slot="end"]:not(svg)),
3807            :host(:${U}) ::slotted([slot="end"]:not(svg)) {
3808        color: ${C.HighlightText};
3809      }
3810    `),new jn(F`
3811        .expand-collapse-glyph {
3812          transform: rotate(0deg);
3813        }
3814      `,F`
3815        .expand-collapse-glyph {
3816          transform: rotate(180deg);
3817        }
3818      `))});var JS,ZS,QS=p(()=>{ee();wG();JS=class extends Kr{},ZS=JS.compose({baseName:"menu-item",baseClass:Kr,template:Mq,styles:_G,checkboxIndicator:`
3819        <svg
3820            part="checkbox-indicator"
3821            class="checkbox-indicator"
3822            viewBox="0 0 20 20"
3823            xmlns="http://www.w3.org/2000/svg"
3824        >
3825            <path
3826                fill-rule="evenodd"
3827                clip-rule="evenodd"
3828                d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"
3829            />
3830        </svg>
3831    `,expandCollapseGlyph:`
3832        <svg
3833            viewBox="0 0 16 16"
3834            xmlns="http://www.w3.org/2000/svg"
3835            class="expand-collapse-glyph"
3836            part="expand-collapse-glyph"
3837        >
3838            <path
3839                d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"
3840            />
3841        </svg>
3842    `,radioIndicator:`
3843        <span part="radio-indicator" class="radio-indicator"></span>
3844    `})});var SG,CG=p(()=>{L();_e();jt();SG=(r,e)=>F`
3845  ${za}
3846
3847  .controls {
3848    opacity: 0;
3849    margin: auto 0;
3850  }
3851
3852  .step-up-glyph,
3853  .step-down-glyph {
3854    display: block;
3855    padding: calc(
3856        (${H} + 0.5 * ${ut} + 0.5 * ${Pa}) * 1px
3857      )
3858      calc((2 + 2 * ${H} + ${ut} + ${Pa}) * 1px);
3859    cursor: pointer;
3860  }
3861
3862  .step-up-glyph:before,
3863  .step-down-glyph:before {
3864    content: '';
3865    display: block;
3866    border: solid transparent
3867      calc((2 + ${H} + 0.5 * ${ut} + 0.5 * ${Pa}) * 1px);
3868  }
3869
3870  .step-up-glyph:hover:before,
3871  .step-down-glyph:hover:before {
3872    background-color: ${Bn};
3873  }
3874
3875  .step-up-glyph:active:before,
3876  .step-down-glyph:active:before {
3877    background-color: ${ja};
3878  }
3879
3880  .step-up-glyph:before {
3881    border-bottom-color: ${ae};
3882  }
3883
3884  .step-down-glyph:before {
3885    border-top-color: ${ae};
3886  }
3887
3888  :host(:hover:not([disabled])) .controls,
3889  :host(:focus-within:not([disabled])) .controls {
3890    opacity: 1;
3891  }
3892`});var Lb,eC,tC=p(()=>{Gi();L();ee();CG();Lb=class extends Dr{constructor(){super(...arguments),this.appearance="outline"}};K([x],Lb.prototype,"appearance",void 0);eC=Lb.compose({baseName:"number-field",baseClass:Dr,styles:SG,template:jq,shadowOptions:{delegatesFocus:!0},stepDownGlyph:`
3893        <span class="step-down-glyph" part="step-down-glyph"></span>
3894    `,stepUpGlyph:`
3895        <span class="step-up-glyph" part="step-up-glyph"></span>
3896    `})});var IG,kG=p(()=>{L();ee();fe();_e();Ws();IG=(r,e)=>F`
3897    ${me("inline-flex")} :host {
3898      align-items: center;
3899      font-family: ${Ce};
3900      border-radius: calc(${ce} * 1px);
3901      border: calc(${ue} * 1px) solid transparent;
3902      box-sizing: border-box;
3903      background: ${di};
3904      color: ${ae};
3905      cursor: pointer;
3906      flex: 0 0 auto;
3907      fill: currentcolor;
3908      font-size: ${xe};
3909      height: calc(${pe} * 1px);
3910      line-height: ${Re};
3911      margin: 0 calc((${H} - ${ue}) * 1px);
3912      outline: none;
3913      overflow: hidden;
3914      padding: 0 1ch;
3915      user-select: none;
3916      white-space: nowrap;
3917    }
3918
3919    :host(:not([disabled]):not([aria-selected='true']):hover) {
3920      background: ${Ui};
3921    }
3922
3923    :host(:not([disabled]):not([aria-selected='true']):active) {
3924      background: ${Wi};
3925    }
3926
3927    :host([aria-selected='true']) {
3928      background: ${Qe};
3929      color: ${pr};
3930    }
3931
3932    :host(:not([disabled])[aria-selected='true']:hover) {
3933      background: ${fr};
3934      color: ${Xr};
3935    }
3936
3937    :host(:not([disabled])[aria-selected='true']:active) {
3938      background: ${Bt};
3939      color: ${_r};
3940    }
3941
3942    :host([disabled]) {
3943      cursor: ${ot};
3944      opacity: ${pt};
3945    }
3946
3947    .content {
3948      grid-column-start: 2;
3949      justify-self: start;
3950      overflow: hidden;
3951      text-overflow: ellipsis;
3952    }
3953
3954    .start,
3955    .end,
3956    ::slotted(svg) {
3957      display: flex;
3958    }
3959
3960    ::slotted(svg) {
3961      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3962      height: calc(${H} * 4px);
3963      width: calc(${H} * 4px);
3964    }
3965
3966    ::slotted([slot='end']) {
3967      margin-inline-start: 1ch;
3968    }
3969
3970    ::slotted([slot='start']) {
3971      margin-inline-end: 1ch;
3972    }
3973
3974    :host([aria-checked='true'][aria-selected='false']) {
3975      border-color: ${wr};
3976    }
3977
3978    :host([aria-checked='true'][aria-selected='true']) {
3979      border-color: ${wr};
3980      box-shadow: 0 0 0 calc(${ue} * 2 * 1px) inset
3981        ${GU};
3982    }
3983  `.withBehaviors(de(F`
3984      :host {
3985        border-color: transparent;
3986        forced-color-adjust: none;
3987        color: ${C.ButtonText};
3988        fill: currentcolor;
3989      }
3990
3991      :host(:not([aria-selected='true']):hover),
3992      :host([aria-selected='true']) {
3993        background: ${C.Highlight};
3994        color: ${C.HighlightText};
3995      }
3996
3997      :host([disabled]),
3998      :host([disabled][aria-selected='false']:hover) {
3999        background: ${C.Canvas};
4000        color: ${C.GrayText};
4001        fill: currentcolor;
4002        opacity: 1;
4003      }
4004
4005      :host([aria-checked='true'][aria-selected='false']) {
4006        background: ${C.ButtonFace};
4007        color: ${C.ButtonText};
4008        border-color: ${C.ButtonText};
4009      }
4010
4011      :host([aria-checked='true'][aria-selected='true']),
4012      :host([aria-checked='true'][aria-selected='true']:hover) {
4013        background: ${C.Highlight};
4014        color: ${C.HighlightText};
4015        border-color: ${C.ButtonText};
4016      }
4017    `))});var rC,iC,nC=p(()=>{ee();kG();rC=class extends Wr{},iC=rC.compose({baseName:"option",baseClass:Wr,template:pq,styles:IG})});var EG,TG=p(()=>{L();ee();fe();_e();EG=(r,e)=>F`
4018    ${me("flex")} :host {
4019      align-items: center;
4020      outline: none;
4021      height: calc(${H} * 1px);
4022      margin: calc(${H} * 1px) 0;
4023    }
4024
4025    .progress {
4026      background-color: ${xt};
4027      border-radius: calc(${H} * 1px);
4028      width: 100%;
4029      height: 100%;
4030      display: flex;
4031      align-items: center;
4032      position: relative;
4033    }
4034
4035    .determinate {
4036      background-color: ${Yt};
4037      border-radius: calc(${H} * 1px);
4038      height: 100%;
4039      transition: all 0.2s ease-in-out;
4040      display: flex;
4041    }
4042
4043    .indeterminate {
4044      height: 100%;
4045      border-radius: calc(${H} * 1px);
4046      display: flex;
4047      width: 100%;
4048      position: relative;
4049      overflow: hidden;
4050    }
4051
4052    .indeterminate-indicator-1 {
4053      position: absolute;
4054      opacity: 0;
4055      height: 100%;
4056      background-color: ${Yt};
4057      border-radius: calc(${H} * 1px);
4058      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
4059      width: 40%;
4060      animation: indeterminate-1 2s infinite;
4061    }
4062
4063    .indeterminate-indicator-2 {
4064      position: absolute;
4065      opacity: 0;
4066      height: 100%;
4067      background-color: ${Yt};
4068      border-radius: calc(${H} * 1px);
4069      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
4070      width: 60%;
4071      animation: indeterminate-2 2s infinite;
4072    }
4073
4074    :host([paused]) .indeterminate-indicator-1,
4075    :host([paused]) .indeterminate-indicator-2 {
4076      animation-play-state: paused;
4077      background-color: ${xt};
4078    }
4079
4080    :host([paused]) .determinate {
4081      background-color: ${Do};
4082    }
4083
4084    @keyframes indeterminate-1 {
4085      0% {
4086        opacity: 1;
4087        transform: translateX(-100%);
4088      }
4089      70% {
4090        opacity: 1;
4091        transform: translateX(300%);
4092      }
4093      70.01% {
4094        opacity: 0;
4095      }
4096      100% {
4097        opacity: 0;
4098        transform: translateX(300%);
4099      }
4100    }
4101
4102    @keyframes indeterminate-2 {
4103      0% {
4104        opacity: 0;
4105        transform: translateX(-150%);
4106      }
4107      29.99% {
4108        opacity: 0;
4109      }
4110      30% {
4111        opacity: 1;
4112        transform: translateX(-150%);
4113      }
4114      100% {
4115        transform: translateX(166.66%);
4116        opacity: 1;
4117      }
4118    }
4119  `.withBehaviors(de(F`
4120      .progress {
4121        forced-color-adjust: none;
4122        background-color: ${C.Field};
4123        box-shadow: 0 0 0 1px inset ${C.FieldText};
4124      }
4125      .determinate,
4126      .indeterminate-indicator-1,
4127      .indeterminate-indicator-2 {
4128        forced-color-adjust: none;
4129        background-color: ${C.FieldText};
4130      }
4131      :host([paused]) .determinate,
4132      :host([paused]) .indeterminate-indicator-1,
4133      :host([paused]) .indeterminate-indicator-2 {
4134        background-color: ${C.GrayText};
4135      }
4136    `))});var sC,oC,aC=p(()=>{ee();TG();sC=class extends dn{},oC=sC.compose({baseName:"progress",baseClass:dn,template:Qq,styles:EG,indeterminateIndicator1:`
4137        <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>
4138    `,indeterminateIndicator2:`
4139        <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>
4140    `})});var AG,RG=p(()=>{L();ee();fe();_e();Ws();AG=(r,e)=>F`
4141    ${me("flex")} :host {
4142      align-items: center;
4143      outline: none;
4144      height: calc(${pe} * 1px);
4145      width: calc(${pe} * 1px);
4146      margin: calc(${pe} * 1px) 0;
4147    }
4148
4149    .progress {
4150      height: 100%;
4151      width: 100%;
4152    }
4153
4154    .background {
4155      stroke: ${xt};
4156      fill: none;
4157      stroke-width: 2px;
4158    }
4159
4160    .determinate {
4161      stroke: ${Yt};
4162      fill: none;
4163      stroke-width: 2px;
4164      stroke-linecap: round;
4165      transform-origin: 50% 50%;
4166      transform: rotate(-90deg);
4167      transition: all 0.2s ease-in-out;
4168    }
4169
4170    .indeterminate-indicator-1 {
4171      stroke: ${Yt};
4172      fill: none;
4173      stroke-width: 2px;
4174      stroke-linecap: round;
4175      transform-origin: 50% 50%;
4176      transform: rotate(-90deg);
4177      transition: all 0.2s ease-in-out;
4178      animation: spin-infinite 2s linear infinite;
4179    }
4180
4181    :host([paused]) .indeterminate-indicator-1 {
4182      animation-play-state: paused;
4183      stroke: ${xt};
4184    }
4185
4186    :host([paused]) .determinate {
4187      stroke: ${Do};
4188    }
4189
4190    @keyframes spin-infinite {
4191      0% {
4192        stroke-dasharray: 0.01px 43.97px;
4193        transform: rotate(0deg);
4194      }
4195      50% {
4196        stroke-dasharray: 21.99px 21.99px;
4197        transform: rotate(450deg);
4198      }
4199      100% {
4200        stroke-dasharray: 0.01px 43.97px;
4201        transform: rotate(1080deg);
4202      }
4203    }
4204  `.withBehaviors(de(F`
4205      .indeterminate-indicator-1,
4206      .determinate {
4207        stroke: ${C.FieldText};
4208      }
4209      .background {
4210        stroke: ${C.Field};
4211      }
4212      :host([paused]) .indeterminate-indicator-1 {
4213        stroke: ${C.Field};
4214      }
4215      :host([paused]) .determinate {
4216        stroke: ${C.GrayText};
4217      }
4218    `))});var lC,cC,uC=p(()=>{ee();RG();lC=class extends dn{},cC=lC.compose({baseName:"progress-ring",baseClass:dn,template:Yq,styles:AG,indeterminateIndicator:`
4219        <svg class="progress" part="progress" viewBox="0 0 16 16">
4220            <circle
4221                class="background"
4222                part="background"
4223                cx="8px"
4224                cy="8px"
4225                r="7px"
4226            ></circle>
4227            <circle
4228                class="indeterminate-indicator-1"
4229                part="indeterminate-indicator-1"
4230                cx="8px"
4231                cy="8px"
4232                r="7px"
4233            ></circle>
4234        </svg>
4235    `})});var OG,DG=p(()=>{L();ee();fe();_e();jt();OG=(r,e)=>F`
4236    ${me("inline-flex")} :host {
4237      --input-size: calc((${pe} / 2) + ${H});
4238      align-items: center;
4239      outline: none;
4240      margin: calc(${H} * 1px) 0;
4241      /* Chromium likes to select label text or the default slot when
4242                the radio is clicked. Maybe there is a better solution here? */
4243      user-select: none;
4244      position: relative;
4245      flex-direction: row;
4246      transition: all 0.2s ease-in-out;
4247    }
4248
4249    .control {
4250      position: relative;
4251      width: calc((${pe} / 2 + ${H}) * 1px);
4252      height: calc((${pe} / 2 + ${H}) * 1px);
4253      box-sizing: border-box;
4254      border-radius: 999px;
4255      border: calc(${ne} * 1px) solid ${hi};
4256      background: ${Vi};
4257      outline: none;
4258      cursor: pointer;
4259    }
4260
4261    :host([aria-invalid='true']) .control {
4262      border-color: ${Et};
4263    }
4264
4265    .label {
4266      font-family: ${Ce};
4267      color: ${ae};
4268      padding-inline-start: calc(${H} * 2px + 2px);
4269      margin-inline-end: calc(${H} * 2px + 2px);
4270      cursor: pointer;
4271      font-size: ${xe};
4272      line-height: ${Re};
4273    }
4274
4275    .label__hidden {
4276      display: none;
4277      visibility: hidden;
4278    }
4279
4280    .control,
4281    .checked-indicator {
4282      flex-shrink: 0;
4283    }
4284
4285    .checked-indicator {
4286      position: absolute;
4287      top: 5px;
4288      left: 5px;
4289      right: 5px;
4290      bottom: 5px;
4291      border-radius: 999px;
4292      display: inline-block;
4293      background: ${pr};
4294      fill: ${pr};
4295      opacity: 0;
4296      pointer-events: none;
4297    }
4298
4299    :host(:not([disabled])) .control:hover {
4300      background: ${ui};
4301      border-color: ${$o};
4302    }
4303
4304    :host([aria-invalid='true']:not([disabled])) .control:hover {
4305      border-color: ${Xt};
4306    }
4307
4308    :host(:not([disabled])) .control:active {
4309      background: ${Vs};
4310      border-color: ${pd};
4311    }
4312
4313    :host([aria-invalid='true']:not([disabled])) .control:active {
4314      border-color: ${mr};
4315    }
4316
4317    :host(:${U}) .control {
4318      outline: solid calc(${ue} * 1px) ${Me};
4319    }
4320
4321    :host([aria-invalid='true']:${U}) .control {
4322      outline-color: ${_t};
4323    }
4324
4325    :host([aria-checked='true']) .control {
4326      background: ${Qe};
4327      border: calc(${ne} * 1px) solid ${Qe};
4328    }
4329
4330    :host([aria-invalid='true'][aria-checked='true']) .control {
4331      background-color: ${Et};
4332      border-color: ${Et};
4333    }
4334
4335    :host([aria-checked='true']:not([disabled])) .control:hover {
4336      background: ${fr};
4337      border: calc(${ne} * 1px) solid ${fr};
4338    }
4339
4340    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
4341      .control:hover {
4342      background-color: ${Xt};
4343      border-color: ${Xt};
4344    }
4345
4346    :host([aria-checked='true']:not([disabled]))
4347      .control:hover
4348      .checked-indicator {
4349      background: ${Xr};
4350      fill: ${Xr};
4351    }
4352
4353    :host([aria-checked='true']:not([disabled])) .control:active {
4354      background: ${Bt};
4355      border: calc(${ne} * 1px) solid ${Bt};
4356    }
4357
4358    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
4359      .control:active {
4360      background-color: ${mr};
4361      border-color: ${mr};
4362    }
4363
4364    :host([aria-checked='true']:not([disabled]))
4365      .control:active
4366      .checked-indicator {
4367      background: ${_r};
4368      fill: ${_r};
4369    }
4370
4371    :host([aria-checked="true"]:${U}:not([disabled])) .control {
4372      outline-offset: 2px;
4373      outline: solid calc(${ue} * 1px) ${Me};
4374    }
4375
4376    :host([aria-invalid='true'][aria-checked="true"]:${U}:not([disabled])) .control {
4377      outline-color: ${_t};
4378    }
4379
4380    :host([disabled]) .label,
4381    :host([readonly]) .label,
4382    :host([readonly]) .control,
4383    :host([disabled]) .control {
4384      cursor: ${ot};
4385    }
4386
4387    :host([aria-checked='true']) .checked-indicator {
4388      opacity: 1;
4389    }
4390
4391    :host([disabled]) {
4392      opacity: ${pt};
4393    }
4394  `.withBehaviors(de(F`
4395      .control,
4396      :host([aria-checked='true']:not([disabled])) .control {
4397        forced-color-adjust: none;
4398        border-color: ${C.FieldText};
4399        background: ${C.Field}
4399;
4400      }
4401      :host([aria-invalid='true']) {
4402        border-style: dashed;
4403      }
4404      :host(:not([disabled])) .control:hover {
4405        border-color: ${C.Highlight};
4406        background: ${C.Field};
4407      }
4408      :host([aria-checked='true']:not([disabled])) .control:hover,
4409      :host([aria-checked='true']:not([disabled])) .control:active {
4410        border-color: ${C.Highlight};
4411        background: ${C.Highlight};
4412      }
4413      :host([aria-checked='true']) .checked-indicator {
4414        background: ${C.Highlight};
4415        fill: ${C.Highlight};
4416      }
4417      :host([aria-checked='true']:not([disabled]))
4418        .control:hover
4419        .checked-indicator,
4420      :host([aria-checked='true']:not([disabled]))
4421        .control:active
4422        .checked-indicator {
4423        background: ${C.HighlightText};
4424        fill: ${C.HighlightText};
4425      }
4426      :host(:${U}) .control {
4427        border-color: ${C.Highlight};
4428        outline-offset: 2px;
4429        outline: solid calc(${ue} * 1px) ${C.FieldText};
4430      }
4431      :host([aria-checked="true"]:${U}:not([disabled])) .control {
4432        border-color: ${C.Highlight};
4433        outline: solid calc(${ue} * 1px) ${C.FieldText};
4434      }
4435      :host([disabled]) {
4436        forced-color-adjust: none;
4437        opacity: 1;
4438      }
4439      :host([disabled]) .label {
4440        color: ${C.GrayText};
4441      }
4442      :host([disabled]) .control,
4443      :host([aria-checked='true'][disabled]) .control:hover,
4444      .control:active {
4445        background: ${C.Field};
4446        border-color: ${C.GrayText};
4447      }
4448      :host([disabled]) .checked-indicator,
4449      :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
4450        fill: ${C.GrayText};
4451        background: ${C.GrayText};
4452      }
4453    `))});var t2e,dC,hC,fC=p(()=>{ee();DG();L();t2e=(r,e)=>z`
4454  <template
4455    role="radio"
4456    aria-checked="${t=>t.checked}"
4457    aria-required="${t=>t.required}"
4458    aria-disabled="${t=>t.disabled}"
4459    aria-readonly="${t=>t.readOnly}"
4460    @keypress="${(t,i)=>t.keypressHandler(i.event)}"
4461    @click="${(t,i)=>t.clickHandler(i.event)}"
4462  >
4463    <div part="control" class="control">
4464      <slot name="checked-indicator">
4465        ${e.checkedIndicator||""}
4466      </slot>
4467    </div>
4468    <label
4469      part="label"
4470      class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
4471    >
4472      <slot ${ke("defaultSlottedNodes")}></slot>
4473    </label>
4474  </template>
4475`,dC=class extends Oa{},hC=dC.compose({baseName:"radio",baseClass:Oa,template:t2e,styles:OG,checkedIndicator:`
4476        <div part="checked-indicator" class="checked-indicator"></div>
4477    `})});var $G,MG=p(()=>{L();ee();_e();$G=(r,e)=>F`
4478  ${me("flex")} :host {
4479    align-items: flex-start;
4480    margin: calc(${H} * 1px) 0;
4481    flex-direction: column;
4482  }
4483  .positioning-region {
4484    display: flex;
4485    flex-wrap: wrap;
4486  }
4487  :host([orientation='vertical']) .positioning-region {
4488    flex-direction: column;
4489  }
4490  :host([orientation='horizontal']) .positioning-region {
4491    flex-direction: row;
4492  }
4493`});var pC,mC,gC=p(()=>{ee();MG();L();pC=class extends Nn{constructor(){super();let e=he.getNotifier(this),t={handleChange(i,n){n==="slottedRadioButtons"&&i.ariaInvalidChanged()}};e.subscribe(t,"slottedRadioButtons")}ariaInvalidChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{var t;e.setAttribute("aria-invalid",(t=this.getAttribute("aria-invalid"))!==null&&t!==void 0?t:"false")})}},mC=pC.compose({baseName:"radio-group",baseClass:Nn,template:rH,styles:$G})});var r2e,i2e,PG,FG=p(()=>{L();ee();_e();jt();r2e=un.create("clear-button-hover").withDefault(r=>{let e=Us.getValueFor(r),t=Oo.getValueFor(r);return e.evaluate(r,t.evaluate(r).hover).hover}),i2e=un.create("clear-button-active").withDefault(r=>{let e=Us.getValueFor(r),t=Oo.getValueFor(r);return e.evaluate(r,t.evaluate(r).hover).active}),PG=(r,e)=>F`
4494  ${za}
4495
4496  .control::-webkit-search-cancel-button {
4497    -webkit-appearance: none;
4498  }
4499
4500  .control:hover,
4501    .control:${U},
4502    .control:disabled,
4503    .control:active {
4504    outline: none;
4505  }
4506
4507  .clear-button {
4508    height: calc(100% - 2px);
4509    opacity: 0;
4510    margin: 1px;
4511    background: transparent;
4512    color: ${ae};
4513    fill: currentcolor;
4514    border: none;
4515    border-radius: calc(${ce} * 1px);
4516    min-width: calc(${pe} * 1px);
4517    font-size: ${xe};
4518    line-height: ${Re};
4519    outline: none;
4520    font-family: ${Ce};
4521    padding: 0 calc((10 + (${H} * 2 * ${ut})) * 1px);
4522  }
4523
4524  .clear-button:hover {
4525    background: ${Ui};
4526  }
4527
4528  .clear-button:active {
4529    background: ${Wi};
4530  }
4531
4532  :host([appearance='filled']) .clear-button:hover {
4533    background: ${r2e};
4534  }
4535
4536  :host([appearance='filled']) .clear-button:active {
4537    background: ${i2e};
4538  }
4539
4540  .input-wrapper {
4541    display: flex;
4542    position: relative;
4543    width: 100%;
4544  }
4545
4546  .start,
4547  .end {
4548    display: flex;
4549    margin: 1px;
4550    fill: currentcolor;
4551  }
4552
4553  ::slotted([slot='end']) {
4554    height: 100%;
4555  }
4556
4557  .end {
4558    margin-inline-end: 1px;
4559    height: calc(100% - 2px);
4560  }
4561
4562  ::slotted(svg) {
4563    /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
4564    width: 16px;
4565    height: 16px;
4566    margin-inline-end: 11px;
4567    margin-inline-start: 11px;
4568    margin-top: auto;
4569    margin-bottom: auto;
4570  }
4571
4572  .clear-button__hidden {
4573    opacity: 0;
4574  }
4575
4576  :host(:hover:not([disabled], [readOnly])) .clear-button,
4577  :host(:active:not([disabled], [readOnly])) .clear-button,
4578  :host(:focus-within:not([disabled], [readOnly])) .clear-button {
4579    opacity: 1;
4580  }
4581
4582  :host(:hover:not([disabled], [readOnly])) .clear-button__hidden,
4583  :host(:active:not([disabled], [readOnly])) .clear-button__hidden,
4584  :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden {
4585    opacity: 0;
4586  }
4587`});var Nb,bC,vC=p(()=>{Gi();L();ee();FG();Nb=class extends ci{constructor(){super(...arguments),this.appearance="outline"}};K([x],Nb.prototype,"appearance",void 0);bC=Nb.compose({baseName:"search",baseClass:ci,template:fH,styles:PG,shadowOptions:{delegatesFocus:!0}})});var qc,yC,xC=p(()=>{Gi();L();ee();_e();yS();qc=class extends qi{constructor(){super(...arguments),this.listboxScrollWidth=""}autoWidthChanged(e,t){t?this.setAutoWidth():this.style.removeProperty("width")}setAutoWidth(){if(!this.autoWidth||!this.isConnected)return;let e=this.listbox.getBoundingClientRect().width;e===0&&this.listbox.hidden&&(Object.assign(this.listbox.style,{visibility:"hidden"}),this.listbox.removeAttribute("hidden"),e=this.listbox.getBoundingClientRect().width,this.listbox.setAttribute("hidden",""),this.listbox.style.removeProperty("visibility")),e>0&&Object.assign(this.style,{width:`${e}px`})}connectedCallback(){super.connectedCallback(),this.setAutoWidth(),this.listbox&&$e.setValueFor(this.listbox,cd)}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setAutoWidth()}get listboxMaxHeight(){return Math.floor(this.maxHeight/gb.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var e;return`${(e=this.size)!==null&&e!==void 0?e:this.multiple?4:0}`}multipleChanged(e,t){super.multipleChanged(e,t),this.updateComputedStylesheet()}maxHeightChanged(e,t){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(e,t){if(super.sizeChanged(e,t),this.updateComputedStylesheet(),this.collapsible){requestAnimationFrame(()=>{this.listbox.style.setProperty("display","flex"),this.listbox.style.setProperty("overflow","visible"),this.listbox.style.setProperty("visibility","hidden"),this.listbox.style.setProperty("width","auto"),this.listbox.hidden=!1,this.listboxScrollWidth=`${this.listbox.scrollWidth}`,this.listbox.hidden=!0,this.listbox.style.removeProperty("display"),this.listbox.style.removeProperty("overflow"),this.listbox.style.removeProperty("visibility"),this.listbox.style.removeProperty("width")});return}this.listboxScrollWidth=""}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=F`
4588      :host {
4589        --listbox-max-height: ${this.listboxMaxHeight};
4590        --listbox-scroll-width: ${this.listboxScrollWidth};
4591        --size: ${this.selectSize};
4592      }
4593    `,this.$fastController.addStyles(this.computedStylesheet)}};K([x({attribute:"autowidth",mode:"boolean"})],qc.prototype,"autoWidth",void 0);K([x({attribute:"minimal",mode:"boolean"})],qc.prototype,"minimal",void 0);K([x],qc.prototype,"scale",void 0);K([M],qc.prototype,"listboxScrollWidth",void 0);yC=qc.compose({baseName:"select",baseClass:qi,template:xH,styles:$b,indicator:`
4594        <svg
4595            class="select-indicator"
4596            part="select-indicator"
4597            viewBox="0 0 12 7"
4598            xmlns="http://www.w3.org/2000/svg"
4599        >
4600            <path
4601                d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"
4602            />
4603        </svg>
4604    `})});var LG,NG=p(()=>{L();ee();fe();ee();_e();LG=(r,e)=>F`
4605    ${me("block")} :host {
4606      --skeleton-fill-default: #e1dfdd;
4607      overflow: hidden;
4608      width: 100%;
4609      position: relative;
4610      background-color: var(--skeleton-fill, var(--skeleton-fill-default));
4611      --skeleton-animation-gradient-default: linear-gradient(
4612        270deg,
4613        var(--skeleton-fill, var(--skeleton-fill-default)) 0%,
4614        #f3f2f1 51.13%,
4615        var(--skeleton-fill, var(--skeleton-fill-default)) 100%
4616      );
4617      --skeleton-animation-timing-default: ease-in-out;
4618    }
4619
4620    :host([shape='rect']) {
4621      border-radius: calc(${ce} * 1px);
4622    }
4623
4624    :host([shape='circle']) {
4625      border-radius: 100%;
4626      overflow: hidden;
4627    }
4628
4629    object {
4630      position: absolute;
4631      width: 100%;
4632      height: auto;
4633      z-index: 2;
4634    }
4635
4636    object img {
4637      width: 100%;
4638      height: auto;
4639    }
4640
4641    ${me("block")} span.shimmer {
4642      position: absolute;
4643      width: 100%;
4644      height: 100%;
4645      background-image: var(
4646        --skeleton-animation-gradient,
4647        var(--skeleton-animation-gradient-default)
4648      );
4649      background-size: 0px 0px / 90% 100%;
4650      background-repeat: no-repeat;
4651      background-color: var(--skeleton-animation-fill, ${xt});
4652      animation: shimmer 2s infinite;
4653      animation-timing-function: var(
4654        --skeleton-animation-timing,
4655        var(--skeleton-timing-default)
4656      );
4657      animation-direction: normal;
4658      z-index: 1;
4659    }
4660
4661    ::slotted(svg) {
4662      z-index: 2;
4663    }
4664
4665    ::slotted(.pattern) {
4666      width: 100%;
4667      height: 100%;
4668    }
4669
4670    @keyframes shimmer {
4671      0% {
4672        transform: translateX(-100%);
4673      }
4674      100% {
4675        transform: translateX(100%);
4676      }
4677    }
4678  `.withBehaviors(de(F`
4679      :host {
4680        forced-color-adjust: none;
4681        background-color: ${C.ButtonFace};
4682        box-shadow: 0 0 0 1px ${C.ButtonText};
4683      }
4684
4685      ${me("block")} span.shimmer {
4686        display: none;
4687      }
4688    `))});var _C,wC,SC=p(()=>{ee();NG();_C=class extends ko{},wC=_C.compose({baseName:"skeleton",baseClass:ko,template:SH,styles:LG})});var n2e,s2e,BG,jG=p(()=>{L();ee();fe();_e();jt();n2e=F`
4689  .track-start {
4690    left: 0;
4691  }
4692`,s2e=F`
4693  .track-start {
4694    right: 0;
4695  }
4696`,BG=(r,e)=>F`
4697    :host([hidden]) {
4698      display: none;
4699    }
4700
4701    ${me("inline-grid")} :host {
4702      --thumb-size: calc(${pe} * 0.5 - ${H});
4703      --thumb-translate: calc(
4704        var(--thumb-size) * -0.5 + var(--track-width) / 2
4705      );
4706      --track-overhang: calc((${H} / 2) * -1);
4707      --track-width: ${H};
4708      --jp-slider-height: calc(var(--thumb-size) * 10);
4709      align-items: center;
4710      width: 100%;
4711      margin: calc(${H} * 1px) 0;
4712      user-select: none;
4713      box-sizing: border-box;
4714      border-radius: calc(${ce} * 1px);
4715      outline: none;
4716      cursor: pointer;
4717    }
4718    :host([orientation='horizontal']) .positioning-region {
4719      position: relative;
4720      margin: 0 8px;
4721      display: grid;
4722      grid-template-rows: calc(var(--thumb-size) * 1px) 1fr;
4723    }
4724    :host([orientation='vertical']) .positioning-region {
4725      position: relative;
4726      margin: 0 8px;
4727      display: grid;
4728      height: 100%;
4729      grid-template-columns: calc(var(--thumb-size) * 1px) 1fr;
4730    }
4731
4732    :host(:${U}) .thumb-cursor {
4733      box-shadow:
4734        0 0 0 2px ${$e},
4735        0 0 0 calc((2 + ${ue}) * 1px) ${Me};
4736    }
4737
4738    :host([aria-invalid='true']:${U}) .thumb-cursor {
4739      box-shadow:
4740        0 0 0 2px ${$e},
4741        0 0 0 calc((2 + ${ue}) * 1px) ${_t};
4742    }
4743
4744    .thumb-container {
4745      position: absolute;
4746      height: calc(var(--thumb-size) * 1px);
4747      width: calc(var(--thumb-size) * 1px);
4748      transition: all 0.2s ease;
4749      color: ${ae};
4750      fill: currentcolor;
4751    }
4752    .thumb-cursor {
4753      border: none;
4754      width: calc(var(--thumb-size) * 1px);
4755      height: calc(var(--thumb-size) * 1px);
4756      background: ${ae};
4757      border-radius: calc(${ce} * 1px);
4758    }
4759    .thumb-cursor:hover {
4760      background: ${ae};
4761      border-color: ${$o};
4762    }
4763    .thumb-cursor:active {
4764      background: ${ae};
4765    }
4766    .track-start {
4767      background: ${Yt};
4768      position: absolute;
4769      height: 100%;
4770      left: 0;
4771      border-radius: calc(${ce} * 1px);
4772    }
4773    :host([aria-invalid='true']) .track-start {
4774      background-color: ${Et};
4775    }
4776    :host([orientation='horizontal']) .thumb-container {
4777      transform: translateX(calc(var(--thumb-size) * 0.5px))
4778        translateY(calc(var(--thumb-translate) * 1px));
4779    }
4780    :host([orientation='vertical']) .thumb-container {
4781      transform: translateX(calc(var(--thumb-translate) * 1px))
4782        translateY(calc(var(--thumb-size) * 0.5px));
4783    }
4784    :host([orientation='horizontal']) {
4785      min-width: calc(var(--thumb-size) * 1px);
4786    }
4787    :host([orientation='horizontal']) .track {
4788      right: calc(var(--track-overhang) * 1px);
4789      left: calc(var(--track-overhang) * 1px);
4790      align-self: start;
4791      height: calc(var(--track-width) * 1px);
4792    }
4793    :host([orientation='vertical']) .track {
4794      top: calc(var(--track-overhang) * 1px);
4795      bottom: calc(var(--track-overhang) * 1px);
4796      width: calc(var(--track-width) * 1px);
4797      height: 100%;
4798    }
4799    .track {
4800      background: ${hi};
4801      position: absolute;
4802      border-radius: calc(${ce} * 1px);
4803    }
4804    :host([orientation='vertical']) {
4805      height: calc(var(--fast-slider-height) * 1px);
4806      min-height: calc(var(--thumb-size) * 1px);
4807      min-width: calc(${H} * 20px);
4808    }
4809    :host([orientation='vertical']) .track-start {
4810      height: auto;
4811      width: 100%;
4812      top: 0;
4813    }
4814    :host([disabled]),
4815    :host([readonly]) {
4816      cursor: ${ot};
4817    }
4818    :host([disabled]) {
4819      opacity: ${pt};
4820    }
4821  `.withBehaviors(new jn(n2e,s2e),de(F`
4822      .thumb-cursor {
4823        forced-color-adjust: none;
4824        border-color: ${C.FieldText};
4825        background: ${C.FieldText};
4826      }
4827      .thumb-cursor:hover,
4828      .thumb-cursor:active {
4829        background: ${C.Highlight};
4830      }
4831      .track {
4832        forced-color-adjust: none;
4833        background: ${C.FieldText};
4834      }
4835      :host(:${U}) .thumb-cursor {
4836        border-color: ${C.Highlight};
4837      }
4838      :host([disabled]) {
4839        opacity: 1;
4840      }
4841      :host([disabled]) .track,
4842      :host([disabled]) .thumb-cursor {
4843        forced-color-adjust: none;
4844        background: ${C.GrayText};
4845      }
4846
4847      :host(:${U}) .thumb-cursor {
4848        background: ${C.Highlight};
4849        border-color: ${C.Highlight};
4850        box-shadow:
4851          0 0 0 2px ${C.Field},
4852          0 0 0 4px ${C.FieldText};
4853      }
4854    `))});var CC,IC,kC=p(()=>{ee();jG();CC=class extends hr{},IC=CC.compose({baseName:"slider",baseClass:hr,template:OH,styles:BG,thumb:`
4855        <div class="thumb-cursor"></div>
4856    `})});var EC,TC,zG,qG=p(()=>{L();ee();fe();_e();jt();EC=F`
4857  :host {
4858    align-self: start;
4859    grid-row: 2;
4860    margin-top: -2px;
4861    height: calc((${pe} / 2 + ${H}) * 1px);
4862    width: auto;
4863  }
4864  .container {
4865    grid-template-rows: auto auto;
4866    grid-template-columns: 0;
4867  }
4868  .label {
4869    margin: 2px 0;
4870  }
4871`,TC=F`
4872  :host {
4873    justify-self: start;
4874    grid-column: 2;
4875    margin-left: 2px;
4876    height: auto;
4877    width: calc((${pe} / 2 + ${H}) * 1px);
4878  }
4879  .container {
4880    grid-template-columns: auto auto;
4881    grid-template-rows: 0;
4882    min-width: calc(var(--thumb-size) * 1px);
4883    height: calc(var(--thumb-size) * 1px);
4884  }
4885  .mark {
4886    transform: rotate(90deg);
4887    align-self: center;
4888  }
4889  .label {
4890    margin-left: calc((${H} / 2) * 3px);
4891    align-self: center;
4892  }
4893`,zG=(r,e)=>F`
4894    ${me("block")} :host {
4895      font-family: ${Ce};
4896      color: ${ae};
4897      fill: currentcolor;
4898    }
4899    .root {
4900      position: absolute;
4901      display: grid;
4902    }
4903    .container {
4904      display: grid;
4905      justify-self: center;
4906    }
4907    .label {
4908      justify-self: center;
4909      align-self: center;
4910      white-space: nowrap;
4911      max-width: 30px;
4912    }
4913    .mark {
4914      width: calc((${H} / 4) * 1px);
4915      height: calc(${pe} * 0.25 * 1px);
4916      background: ${hi};
4917      justify-self: center;
4918    }
4919    :host(.disabled) {
4920      opacity: ${pt};
4921    }
4922  `.withBehaviors(de(F`
4923      .mark {
4924        forced-color-adjust: none;
4925        background: ${C.FieldText};
4926      }
4927      :host(.disabled) {
4928        forced-color-adjust: none;
4929        opacity: 1;
4930      }
4931      :host(.disabled) .label {
4932        color: ${C.GrayText};
4933      }
4934      :host(.disabled) .mark {
4935        background: ${C.GrayText};
4936      }
4937    `))});var AC,RC,OC=p(()=>{ee();fe();qG();AC=class extends hn{sliderOrientationChanged(){this.sliderOrientation===Ge.horizontal?(this.$fastController.addStyles(EC),this.$fastController.removeStyles(TC)):(this.$fastController.addStyles(TC),this.$fastController.removeStyles(EC))}},RC=AC.compose({baseName:"slider-label",baseClass:hn,template:EH,styles:zG})});var HG,VG=p(()=>{L();ee();fe();_e();jt();HG=(r,e)=>F`
4938    :host([hidden]) {
4939      display: none;
4940    }
4941
4942    ${me("inline-flex")} :host {
4943      align-items: center;
4944      outline: none;
4945      font-family: ${Ce};
4946      margin: calc(${H} * 1px) 0;
4947      ${""} user-select: none;
4948    }
4949
4950    :host([disabled]) {
4951      opacity: ${pt};
4952    }
4953
4954    :host([disabled]) .label,
4955    :host([readonly]) .label,
4956    :host([readonly]) .switch,
4957    :host([disabled]) .switch {
4958      cursor: ${ot};
4959    }
4960
4961    .switch {
4962      position: relative;
4963      outline: none;
4964      box-sizing: border-box;
4965      width: calc(${pe} * 1px);
4966      height: calc((${pe} / 2 + ${H}) * 1px);
4967      background: ${Vi};
4968      border-radius: calc(${ce} * 1px);
4969      border: calc(${ne} * 1px) solid ${hi};
4970    }
4971
4972    :host([aria-invalid='true']) .switch {
4973      border-color: ${Et};
4974    }
4975
4976    .switch:hover {
4977      background: ${ui};
4978      border-color: ${$o};
4979      cursor: pointer;
4980    }
4981
4982    :host([disabled]) .switch:hover,
4983    :host([readonly]) .switch:hover {
4984      background: ${ui};
4985      border-color: ${$o};
4986      cursor: ${ot};
4987    }
4988
4989    :host([aria-invalid='true'][disabled]) .switch:hover,
4990    :host([aria-invalid='true'][readonly]) .switch:hover {
4991      border-color: ${Xt};
4992    }
4993
4994    :host(:not([disabled])) .switch:active {
4995      background: ${Vs};
4996      border-color: ${pd};
4997    }
4998
4999    :host([aria-invalid='true']:not([disabled])) .switch:active {
5000      border-color: ${mr};
5001    }
5002
5003    :host(:${U}) .switch {
5004      outline-offset: 2px;
5005      outline: solid calc(${ue} * 1px) ${Me};
5006    }
5007
5008    :host([aria-invalid='true']:${U}) .switch {
5009      outline-color: ${_t};
5010    }
5011
5012    .checked-indicator {
5013      position: absolute;
5014      top: 5px;
5015      bottom: 5px;
5016      background: ${ae};
5017      border-radius: calc(${ce} * 1px);
5018      transition: all 0.2s ease-in-out;
5019    }
5020
5021    .status-message {
5022      color: ${ae};
5023      cursor: pointer;
5024      font-size: ${xe};
5025      line-height: ${Re};
5026    }
5027
5028    :host([disabled]) .status-message,
5029    :host([readonly]) .status-message {
5030      cursor: ${ot};
5031    }
5032
5033    .label {
5034      color: ${ae};
5035      margin-inline-end: calc(${H} * 2px + 2px);
5036      font-size: ${xe};
5037      line-height: ${Re};
5038      cursor: pointer;
5039    }
5040
5041    .label__hidden {
5042      display: none;
5043      visibility: hidden;
5044    }
5045
5046    ::slotted([slot='checked-message']),
5047    ::slotted([slot='unchecked-message']) {
5048      margin-inline-start: calc(${H} * 2px + 2px);
5049    }
5050
5051    :host([aria-checked='true']) .checked-indicator {
5052      background: ${pr};
5053    }
5054
5055    :host([aria-checked='true']) .switch {
5056      background: ${Qe};
5057      border-color: ${Qe};
5058    }
5059
5060    :host([aria-checked='true']:not([disabled])) .switch:hover {
5061      background: ${fr};
5062      border-color: ${fr};
5063    }
5064
5065    :host([aria-invalid='true'][aria-checked='true']) .switch {
5066      background-color: ${Et};
5067      border-color: ${Et};
5068    }
5069
5070    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
5071      .switch:hover {
5072      background-color: ${Xt};
5073      border-color: ${Xt};
5074    }
5075
5076    :host([aria-checked='true']:not([disabled]))
5077      .switch:hover
5078      .checked-indicator {
5079      background: ${Xr};
5080    }
5081
5082    :host([aria-checked='true']:not([disabled])) .switch:active {
5083      background: ${Bt};
5084      border-color: ${Bt};
5085    }
5086
5087    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
5088      .switch:active {
5089      background-color: ${mr};
5090      border-color: ${mr};
5091    }
5092
5093    :host([aria-checked='true']:not([disabled]))
5094      .switch:active
5095      .checked-indicator {
5096      background: ${_r};
5097    }
5098
5099    :host([aria-checked="true"]:${U}:not([disabled])) .switch {
5100      outline: solid calc(${ue} * 1px) ${Me};
5101    }
5102
5103    :host([aria-invalid='true'][aria-checked="true"]:${U}:not([disabled])) .switch {
5104      outline-color: ${_t};
5105    }
5106
5107    .unchecked-message {
5108      display: block;
5109    }
5110
5111    .checked-message {
5112      display: none;
5113    }
5114
5115    :host([aria-checked='true']) .unchecked-message {
5116      display: none;
5117    }
5118
5119    :host([aria-checked='true']) .checked-message {
5120      display: block;
5121    }
5122  `.withBehaviors(de(F`
5123      .checked-indicator,
5124      :host(:not([disabled])) .switch:active .checked-indicator {
5125        forced-color-adjust: none;
5126        background: ${C.FieldText};
5127      }
5128      .switch {
5129        forced-color-adjust: none;
5130        background: ${C.Field}
5130;
5131        border-color: ${C.FieldText};
5132      }
5133      :host([aria-invalid='true']) .switch {
5134        border-style: dashed;
5135      }
5136      :host(:not([disabled])) .switch:hover {
5137        background: ${C.HighlightText};
5138        border-color: ${C.Highlight};
5139      }
5140      :host([aria-checked='true']) .switch {
5141        background: ${C.Highlight};
5142        border-color: ${C.Highlight};
5143      }
5144      :host([aria-checked='true']:not([disabled])) .switch:hover,
5145      :host(:not([disabled])) .switch:active {
5146        background: ${C.HighlightText};
5147        border-color: ${C.Highlight};
5148      }
5149      :host([aria-checked='true']) .checked-indicator {
5150        background: ${C.HighlightText};
5151      }
5152      :host([aria-checked='true']:not([disabled]))
5153        .switch:hover
5154        .checked-indicator {
5155        background: ${C.Highlight};
5156      }
5157      :host([disabled]) {
5158        opacity: 1;
5159      }
5160      :host(:${U}) .switch {
5161        border-color: ${C.Highlight};
5162        outline-offset: 2px;
5163        outline: solid calc(${ue} * 1px) ${C.FieldText};
5164      }
5165      :host([aria-checked="true"]:${U}:not([disabled])) .switch {
5166        outline: solid calc(${ue} * 1px) ${C.FieldText};
5167      }
5168      :host([disabled]) .checked-indicator {
5169        background: ${C.GrayText};
5170      }
5171      :host([disabled]) .switch {
5172        background: ${C.Field};
5173        border-color: ${C.GrayText};
5174      }
5175    `),new jn(F`
5176        .checked-indicator {
5177          left: 5px;
5178          right: calc(((${pe} / 2) + 1) * 1px);
5179        }
5180
5181        :host([aria-checked='true']) .checked-indicator {
5182          left: calc(((${pe} / 2) + 1) * 1px);
5183          right: 5px;
5184        }
5185      `,F`
5186        .checked-indicator {
5187          right: 5px;
5188          left: calc(((${pe} / 2) + 1) * 1px);
5189        }
5190
5191        :host([aria-checked='true']) .checked-indicator {
5192          right: calc(((${pe} / 2) + 1) * 1px);
5193          left: 5px;
5194        }
5195      `))});var DC,$C,MC=p(()=>{ee();VG();DC=class extends Bc{},$C=DC.compose({baseName:"switch",baseClass:Bc,template:FH,styles:HG,switch:`
5196        <span class="checked-indicator" part="checked-indicator"></span>
5197    `})});var UG,WG=p(()=>{L();ee();_e();UG=(r,e)=>F`
5198  ${me("block")} :host {
5199    box-sizing: border-box;
5200    font-size: ${xe};
5201    line-height: ${Re};
5202    padding: 0 calc((6 + (${H} * 2 * ${ut})) * 1px);
5203  }
5204`});var PC,FC,LC=p(()=>{ee();WG();PC=class extends Ef{},FC=PC.compose({baseName:"tab-panel",baseClass:Ef,template:zH,styles:UG})});var GG,KG=p(()=>{L();ee();fe();_e();Ws();GG=(r,e)=>F`
5205    ${me("inline-flex")} :host {
5206      box-sizing: border-box;
5207      font-family: ${Ce};
5208      font-size: ${xe};
5209      line-height: ${Re};
5210      height: calc(${pe} * 1px);
5211      padding: calc(${H} * 5px) calc(${H} * 4px);
5212      color: ${Do};
5213      fill: currentcolor;
5214      border-radius: 0 0 calc(${ce} * 1px)
5215        calc(${ce} * 1px);
5216      border: calc(${ne} * 1px) solid transparent;
5217      align-items: center;
5218      justify-content: center;
5219      grid-row: 2;
5220      cursor: pointer;
5221    }
5222
5223    :host(:hover) {
5224      color: ${ae};
5225      fill: currentcolor;
5226    }
5227
5228    :host(:active) {
5229      color: ${ae};
5230      fill: currentcolor;
5231    }
5232
5233    :host([disabled]) {
5234      cursor: ${ot};
5235      opacity: ${pt};
5236    }
5237
5238    :host([disabled]:hover) {
5239      color: ${Do};
5240      background: ${di};
5241    }
5242
5243    :host([aria-selected='true']) {
5244      background: ${xt};
5245      color: ${ae};
5246      fill: currentcolor;
5247    }
5248
5249    :host([aria-selected='true']:hover) {
5250      background: ${Bn};
5251      color: ${ae};
5252      fill: currentcolor;
5253    }
5254
5255    :host([aria-selected='true']:active) {
5256      background: ${ja};
5257      color: ${ae};
5258      fill: currentcolor;
5259    }
5260
5261    :host(:${U}) {
5262      outline: none;
5263      border-color: ${Me};
5264      box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
5265        ${Me};
5266    }
5267
5268    :host(:focus) {
5269      outline: none;
5270    }
5271
5272    :host(.vertical) {
5273      justify-content: end;
5274      grid-column: 2;
5275      border-bottom-left-radius: 0;
5276      border-top-right-radius: calc(${ce} * 1px);
5277    }
5278
5279    :host(.vertical[aria-selected='true']) {
5280      z-index: 2;
5281    }
5282
5283    :host(.vertical:hover) {
5284      color: ${ae};
5285    }
5286
5287    :host(.vertical:active) {
5288      color: ${ae};
5289    }
5290
5291    :host(.vertical:hover[aria-selected='true']) {
5292    }
5293  `.withBehaviors(de(F`
5294      :host {
5295        forced-color-adjust: none;
5296        border-color: transparent;
5297        color: ${C.ButtonText};
5298        fill: currentcolor;
5299      }
5300      :host(:hover),
5301      :host(.vertical:hover),
5302      :host([aria-selected='true']:hover) {
5303        background: ${C.Highlight};
5304        color: ${C.HighlightText};
5305        fill: currentcolor;
5306      }
5307      :host([aria-selected='true']) {
5308        background: ${C.HighlightText};
5309        color: ${C.Highlight};
5310        fill: currentcolor;
5311      }
5312      :host(:${U}) {
5313        border-color: ${C.ButtonText};
5314        box-shadow: none;
5315      }
5316      :host([disabled]),
5317      :host([disabled]:hover) {
5318        opacity: 1;
5319        color: ${C.GrayText};
5320        background: ${C.ButtonFace};
5321      }
5322    `))});var NC,BC,jC=p(()=>{ee();KG();NC=class extends id{},BC=NC.compose({baseName:"tab",baseClass:id,template:UH,styles:GG})});var YG,XG=p(()=>{L();ee();fe();_e();jt();YG=(r,e)=>F`
5323    ${me("grid")} :host {
5324      box-sizing: border-box;
5325      font-family: ${Ce};
5326      font-size: ${xe};
5327      line-height: ${Re};
5328      color: ${ae};
5329      grid-template-columns: auto 1fr auto;
5330      grid-template-rows: auto 1fr;
5331    }
5332
5333    .tablist {
5334      display: grid;
5335      grid-template-rows: auto auto;
5336      grid-template-columns: auto;
5337      position: relative;
5338      width: max-content;
5339      align-self: end;
5340      padding: calc(${H} * 4px) calc(${H} * 4px) 0;
5341      box-sizing: border-box;
5342    }
5343
5344    .start,
5345    .end {
5346      align-self: center;
5347    }
5348
5349    .activeIndicator {
5350      grid-row: 1;
5351      grid-column: 1;
5352      width: 100%;
5353      height: 4px;
5354      justify-self: center;
5355      background: ${Qe};
5356      margin-top: 0;
5357      border-radius: calc(${ce} * 1px)
5358        calc(${ce} * 1px) 0 0;
5359    }
5360
5361    .activeIndicatorTransition {
5362      transition: transform 0.01s ease-in-out;
5363    }
5364
5365    .tabpanel {
5366      grid-row: 2;
5367      grid-column-start: 1;
5368      grid-column-end: 4;
5369      position: relative;
5370    }
5371
5372    :host([orientation='vertical']) {
5373      grid-template-rows: auto 1fr auto;
5374      grid-template-columns: auto 1fr;
5375    }
5376
5377    :host([orientation='vertical']) .tablist {
5378      grid-row-start: 2;
5379      grid-row-end: 2;
5380      display: grid;
5381      grid-template-rows: auto;
5382      grid-template-columns: auto 1fr;
5383      position: relative;
5384      width: max-content;
5385      justify-self: end;
5386      align-self: flex-start;
5387      width: 100%;
5388      padding: 0 calc(${H} * 4px)
5389        calc((${pe} - ${H}) * 1px) 0;
5390    }
5391
5392    :host([orientation='vertical']) .tabpanel {
5393      grid-column: 2;
5394      grid-row-start: 1;
5395      grid-row-end: 4;
5396    }
5397
5398    :host([orientation='vertical']) .end {
5399      grid-row: 3;
5400    }
5401
5402    :host([orientation='vertical']) .activeIndicator {
5403      grid-column: 1;
5404      grid-row: 1;
5405      width: 4px;
5406      height: 100%;
5407      margin-inline-end: 0px;
5408      align-self: center;
5409      background: ${Qe};
5410      border-radius: calc(${ce} * 1px) 0 0
5411        calc(${ce} * 1px);
5412    }
5413
5414    :host([orientation='vertical']) .activeIndicatorTransition {
5415      transition: transform 0.01s ease-in-out;
5416    }
5417  `.withBehaviors(de(F`
5418      .activeIndicator,
5419      :host([orientation='vertical']) .activeIndicator {
5420        forced-color-adjust: none;
5421        background: ${C.Highlight};
5422      }
5423    `))});var zC,qC,HC=p(()=>{ee();XG();jC();LC();zC=class extends fn{},qC=zC.compose({baseName:"tabs",baseClass:fn,template:YH,styles:YG})});var JG,ZG=p(()=>{L();ee();_e();jt();JG=(r,e)=>F`
5424    ${me("inline-block")} :host {
5425      font-family: ${Ce};
5426      outline: none;
5427      user-select: none;
5428    }
5429
5430    .control {
5431      box-sizing: border-box;
5432      position: relative;
5433      color: ${ae};
5434      background: ${Vi};
5435      border-radius: calc(${ce} * 1px);
5436      border: calc(${ne} * 1px) solid ${dd};
5437      height: calc(${pe} * 2px);
5438      font: inherit;
5439      font-size: ${xe};
5440      line-height: ${Re};
5441      padding: calc(${H} * 2px + 1px);
5442      width: 100%;
5443      resize: none;
5444    }
5445
5446    :host([aria-invalid='true']) .control {
5447      border-color: ${Et};
5448    }
5449
5450    .control:hover:enabled {
5451      background: ${ui};
5452      border-color: ${hd};
5453    }
5454
5455    :host([aria-invalid='true']) .control:hover:enabled {
5456      border-color: ${Xt};
5457    }
5458
5459    .control:active:enabled {
5460      background: ${Vs};
5461      border-color: ${fd};
5462    }
5463
5464    :host([aria-invalid='true']) .control:active:enabled {
5465      border-color: ${mr};
5466    }
5467
5468    .control:hover,
5469    .control:${U},
5470    .control:disabled,
5471    .control:active {
5472      outline: none;
5473    }
5474
5475    :host(:focus-within) .control {
5476      border-color: ${Me};
5477      box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
5478        ${Me};
5479    }
5480
5481    :host([aria-invalid='true']:focus-within) .control {
5482      border-color: ${_t};
5483      box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
5484        ${_t};
5485    }
5486
5487    :host([appearance='filled']) .control {
5488      background: ${xt};
5489    }
5490
5491    :host([appearance='filled']:hover:not([disabled])) .control {
5492      background: ${Bn};
5493    }
5494
5495    :host([resize='both']) .control {
5496      resize: both;
5497    }
5498
5499    :host([resize='horizontal']) .control {
5500      resize: horizontal;
5501    }
5502
5503    :host([resize='vertical']) .control {
5504      resize: vertical;
5505    }
5506
5507    .label {
5508      display: block;
5509      color: ${ae};
5510      cursor: pointer;
5511      font-size: ${xe};
5512      line-height: ${Re};
5513      margin-bottom: 4px;
5514    }
5515
5516    .label__hidden {
5517      display: none;
5518      visibility: hidden;
5519    }
5520
5521    :host([disabled]) .label,
5522    :host([readonly]) .label,
5523    :host([readonly]) .control,
5524    :host([disabled]) .control {
5525      cursor: ${ot};
5526    }
5527    :host([disabled]) {
5528      opacity: ${pt};
5529    }
5530    :host([disabled]) .control {
5531      border-color: ${hi};
5532    }
5533
5534    :host([cols]) {
5535      width: initial;
5536    }
5537
5538    :host([rows]) .control {
5539      height: initial;
5540    }
5541  `.withBehaviors(de(F`
5542      :host([disabled]) {
5543        opacity: 1;
5544      }
5545
5546      :host([aria-invalid='true']) .control {
5547        border-style: dashed;
5548      }
5549    `))});var Bb,VC,UC=p(()=>{Gi();L();ee();ZG();Bb=class extends xr{constructor(){super(...arguments),this.appearance="outline"}};K([x],Bb.prototype,"appearance",void 0);VC=Bb.compose({baseName:"text-area",baseClass:xr,template:rV,styles:JG,shadowOptions:{delegatesFocus:!0}})});var QG,eK=p(()=>{L();jt();QG=(r,e)=>F`
5550  ${za}
5551
5552  .start,
5553    .end {
5554    display: flex;
5555  }
5556`});var jb,WC,GC=p(()=>{Gi();L();ee();eK();jb=class extends Yr{constructor(){super(...arguments),this.appearance="outline"}};K([x],jb.prototype,"appearance",void 0);WC=jb.compose({baseName:"text-field",baseClass:Yr,template:sV,styles:QG,shadowOptions:{delegatesFocus:!0}})});var tK,rK=p(()=>{L();ee();fe();_e();tK=(r,e)=>F`
5557    ${me("inline-flex")} :host {
5558      --toolbar-item-gap: calc(
5559        (var(--design-unit) + calc(var(--density) + 2)) * 1px
5560      );
5561      background-color: ${$e};
5562      border-radius: calc(${ce} * 1px);
5563      fill: currentcolor;
5564      padding: var(--toolbar-item-gap);
5565    }
5566
5567    :host(${U}) {
5568      outline: calc(${ne} * 1px) solid ${Me};
5569    }
5570
5571    .positioning-region {
5572      align-items: flex-start;
5573      display: inline-flex;
5574      flex-flow: row wrap;
5575      justify-content: flex-start;
5576      width: 100%;
5577      height: 100%;
5578    }
5579
5580    :host([orientation='vertical']) .positioning-region {
5581      flex-direction: column;
5582    }
5583
5584    ::slotted(:not([slot])) {
5585      flex: 0 0 auto;
5586      margin: 0 var(--toolbar-item-gap);
5587    }
5588
5589    :host([orientation='vertical']) ::slotted(:not([slot])) {
5590      margin: var(--toolbar-item-gap) 0;
5591    }
5592
5593    .start,
5594    .end {
5595      display: flex;
5596      margin: auto;
5597      margin-inline: 0;
5598    }
5599
5600    ::slotted(svg) {
5601      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5602      width: 16px;
5603      height: 16px;
5604    }
5605  `.withBehaviors(de(F`
5606      :host(:${U}) {
5607        box-shadow: 0 0 0 calc(${ue} * 1px)
5608          ${C.Highlight};
5609        color: ${C.ButtonText};
5610        forced-color-adjust: none;
5611      }
5612    `))});var iK,gn,vd,KC,Pf,YC=p(()=>{Gi();L();ee();fe();$0();_e();rK();iK=Object.freeze({[Bi.ArrowUp]:{[Ge.vertical]:-1},[Bi.ArrowDown]:{[Ge.vertical]:1},[Bi.ArrowLeft]:{[Ge.horizontal]:{[Le.ltr]:-1,[Le.rtl]:1}},[Bi.ArrowRight]:{[Ge.horizontal]:{[Le.ltr]:1,[Le.rtl]:-1}}}),gn=class extends X{constructor(){super(...arguments),this._activeIndex=0,this.direction=Le.ltr,this.orientation=Ge.horizontal}get activeIndex(){return he.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=Ns(0,this.focusableElements.length-1,e),he.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;let i=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex(n=>n.contains(e.target));return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=Ii(this)}focusinHandler(e){let t=e.relatedTarget;!t||this.contains(t)||this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,n,s,o;return(o=(n=(i=(t=iK[e])===null||t===void 0?void 0:t[this.orientation])===null||i===void 0?void 0:i[this.direction])!==null&&n!==void 0?n:(s=iK[e])===null||s===void 0?void 0:s[this.orientation])!==null&&o!==void 0?o:0}keydownHandler(e){let t=e.key;if(!(t in Bi)||e.defaultPrevented||e.shiftKey)return!0;let i=this.getDirectionalIncrementer(t);if(!i)return!e.target.closest("[role=radiogroup]");let n=this.activeIndex+i;return this.focusableElements[n]&&e.preventDefault(),this.setFocusedElement(n),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;let t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(gn.reduceFocusableItems,[]);let i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(document.activeElement)&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(e,t){var i,n,s,o;let a=t.getAttribute("role")==="radio",l=(n=(i=t.$fastController)===null||i===void 0?void 0:i.definition.shadowOptions)===null||n===void 0?void 0:n.delegatesFocus,c=Array.from((o=(s=t.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll("*"))!==null&&o!==void 0?o:[]).some(u=>td(u));return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&(td(t)||a||l||c)?(e.pu
5612sh(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(gn.reduceFocusableItems,[])):e}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};K([M],gn.prototype,"direction",void 0);K([x],gn.prototype,"orientation",void 0);K([M],gn.prototype,"slottedItems",void 0);K([M],gn.prototype,"slottedLabel",void 0);K([M],gn.prototype,"childItems",void 0);vd=class{};K([x({attribute:"aria-labelledby"})],vd.prototype,"ariaLabelledby",void 0);K([x({attribute:"aria-label"})],vd.prototype,"ariaLabel",void 0);Fe(vd,Je);Fe(gn,it,vd);KC=class extends gn{connectedCallback(){super.connectedCallback();let e=So(this);e&&$e.setValueFor(this,t=>Of.getValueFor(t).evaluate(t,$e.getValueFor(e)))}},Pf=KC.compose({baseName:"toolbar",baseClass:gn,template:lV,styles:tK,shadowOptions:{delegatesFocus:!0}})});var nK,sK=p(()=>{L();ee();_e();nK=(r,e)=>{let t=r.tagFor(je);return F`
5613    :host {
5614      contain: size;
5615      overflow: visible;
5616      height: 0;
5617      width: 0;
5618    }
5619
5620    .tooltip {
5621      box-sizing: border-box;
5622      border-radius: calc(${ce} * 1px);
5623      border: calc(${ne} * 1px) solid ${wr};
5624      box-shadow: 0 0 0 1px ${wr} inset;
5625      background: ${xt};
5626      color: ${ae};
5627      padding: 4px;
5628      height: fit-content;
5629      width: fit-content;
5630      font-family: ${Ce};
5631      font-size: ${xe};
5632      line-height: ${Re};
5633      white-space: nowrap;
5634      /* TODO: a mechanism to manage z-index across components
5635                    https://github.com/microsoft/fast/issues/3813 */
5636      z-index: 10000;
5637    }
5638
5639    ${t} {
5640      display: flex;
5641      justify-content: center;
5642      align-items: center;
5643      overflow: visible;
5644      flex-direction: row;
5645    }
5646
5647    ${t}.right,
5648    ${t}.left {
5649      flex-direction: column;
5650    }
5651
5652    ${t}.top .tooltip {
5653      margin-bottom: 4px;
5654    }
5655
5656    ${t}.bottom .tooltip {
5657      margin-top: 4px;
5658    }
5659
5660    ${t}.left .tooltip {
5661      margin-right: 4px;
5662    }
5663
5664    ${t}.right .tooltip {
5665      margin-left: 4px;
5666    }
5667
5668    ${t}.top.left .tooltip,
5669            ${t}.top.right .tooltip {
5670      margin-bottom: 0px;
5671    }
5672
5673    ${t}.bottom.left .tooltip,
5674            ${t}.bottom.right .tooltip {
5675      margin-top: 0px;
5676    }
5677
5678    ${t}.top.left .tooltip,
5679            ${t}.bottom.left .tooltip {
5680      margin-right: 0px;
5681    }
5682
5683    ${t}.top.right .tooltip,
5684            ${t}.bottom.right .tooltip {
5685      margin-left: 0px;
5686    }
5687  `.withBehaviors(de(F`
5688      :host([disabled]) {
5689        opacity: 1;
5690      }
5691    `))}});var XC,JC,ZC=p(()=>{ee();sK();XC=class extends Nt{},JC=XC.compose({baseName:"tooltip",baseClass:Nt,template:mV,styles:nK})});var yd,o2e,a2e,l2e,c2e,oK,aK=p(()=>{L();ee();fe();_e();jt();yd=uf`(((${pn} + ${ut}) * 0.5 + 2) * ${H})`,o2e=F`
5692  .expand-collapse-glyph {
5693    transform: rotate(0deg);
5694  }
5695  :host(.nested) .expand-collapse-button {
5696    left: var(
5697      --expand-collapse-button-nested-width,
5698      calc(
5699        (
5700            ${yd} +
5701              ((${pn} + ${ut}) * 1.25)
5702          ) * -1px
5703      )
5704    );
5705  }
5706  :host([selected])::after {
5707    left: calc(${ue} * 1px);
5708  }
5709  :host([expanded]) > .positioning-region .expand-collapse-glyph {
5710    transform: rotate(90deg);
5711  }
5712`,a2e=F`
5713  .expand-collapse-glyph {
5714    transform: rotate(180deg);
5715  }
5716  :host(.nested) .expand-collapse-button {
5717    right: var(
5718      --expand-collapse-button-nested-width,
5719      calc(
5720        (
5721            ${yd} +
5722              ((${pn} + ${ut}) * 1.25)
5723          ) * -1px
5724      )
5725    );
5726  }
5727  :host([selected])::after {
5728    right: calc(${ue} * 1px);
5729  }
5730  :host([expanded]) > .positioning-region .expand-collapse-glyph {
5731    transform: rotate(90deg);
5732  }
5733`,l2e=un.create("tree-item-expand-collapse-hover").withDefault(r=>{let e=Us.getValueFor(r);return e.evaluate(r,e.evaluate(r).hover).hover}),c2e=un.create("tree-item-expand-collapse-selected-hover").withDefault(r=>{let e=Oo.getValueFor(r);return Us.getValueFor(r).evaluate(r,e.evaluate(r).rest).hover}),oK=(r,e)=>F`
5734    /**
5735     * This animation exists because when tree item children are conditionally loaded
5736     * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC).
5737     * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue.
5738     */
5739    @keyframes treeItemLoading {
5740      0% {
5741        opacity: 0;
5742      }
5743      100% {
5744        opacity: 1;
5745      }
5746    }
5747
5748    ${me("block")} :host {
5749      contain: content;
5750      position: relative;
5751      outline: none;
5752      color: ${ae};
5753      background: ${di};
5754      cursor: pointer;
5755      font-family: ${Ce};
5756      --tree-item-nested-width: 0;
5757    }
5758
5759    :host(:focus) > .positioning-region {
5760      outline: none;
5761    }
5762
5763    :host(:focus) .content-region {
5764      outline: none;
5765    }
5766
5767    :host(:${U}) .positioning-region {
5768      border-color: ${Me};
5769      box-shadow: 0 0 0 calc((${ue} - ${ne}) * 1px)
5770        ${Me} inset;
5771      color: ${ae};
5772    }
5773
5774    .positioning-region {
5775      display: flex;
5776      position: relative;
5777      box-sizing: border-box;
5778      background: ${di};
5779      border: transparent calc(${ne} * 1px) solid;
5780      border-radius: calc(${ce} * 1px);
5781      height: calc((${pe} + 1) * 1px);
5782    }
5783
5784    .positioning-region::before {
5785      content: '';
5786      display: block;
5787      width: var(--tree-item-nested-width);
5788      flex-shrink: 0;
5789    }
5790
5791    :host(:not([disabled])) .positioning-region:hover {
5792      background: ${Ui};
5793    }
5794
5795    :host(:not([disabled])) .positioning-region:active {
5796      background: ${Wi};
5797    }
5798
5799    .content-region {
5800      display: inline-flex;
5801      align-items: center;
5802      white-space: nowrap;
5803      width: 100%;
5804      min-width: 0;
5805      height: calc(${pe} * 1px);
5806      margin-inline-start: calc(${H} * 2px + 8px);
5807      font-size: ${xe};
5808      line-height: ${Re};
5809      font-weight: 400;
5810    }
5811
5812    .items {
5813      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5814      font-size: calc(1em + (${H} + 16) * 1px);
5815    }
5816
5817    .expand-collapse-button {
5818      background: none;
5819      border: none;
5820      outline: none;
5821      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5822      width: calc(${yd} * 1px);
5823      height: calc(${yd} * 1px);
5824      padding: 0;
5825      display: flex;
5826      justify-content: center;
5827      align-items: center;
5828      cursor: pointer;
5829      margin-left: 6px;
5830      margin-right: 6px;
5831    }
5832
5833    .expand-collapse-glyph {
5834      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5835      width: calc((16 + ${ut}) * 1px);
5836      height: calc((16 + ${ut}) * 1px);
5837      transition: transform 0.1s linear;
5838
5839      pointer-events: none;
5840      fill: currentcolor;
5841    }
5842
5843    .start,
5844    .end {
5845      display: flex;
5846      fill: currentcolor;
5847    }
5848
5849    ::slotted(svg) {
5850      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5851      width: 16px;
5852      height: 16px;
5853
5854      /* Something like that would do if the typography is adaptive
5855      font-size: inherit;
5856      width: ${Na};
5857      height: ${Na};
5858      */
5859    }
5860
5861    .start {
5862      /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
5863      margin-inline-end: calc(${H} * 2px + 2px);
5864    }
5865
5866    .end {
5867      /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
5868      margin-inline-start: calc(${H} * 2px + 2px);
5869    }
5870
5871    :host([expanded]) > .items {
5872      animation: treeItemLoading ease-in 10ms;
5873      animation-iteration-count: 1;
5874      animation-fill-mode: forwards;
5875    }
5876
5877    :host([disabled]) .content-region {
5878      opacity: ${pt};
5879      cursor: ${ot};
5880    }
5881
5882    :host(.nested) .content-region {
5883      position: relative;
5884      /* Add left margin to collapse button size */
5885      margin-inline-start: calc(
5886        (
5887            ${yd} +
5888              ((${pn} + ${ut}) * 1.25)
5889          ) * 1px
5890      );
5891    }
5892
5893    :host(.nested) .expand-collapse-button {
5894      position: absolute;
5895    }
5896
5897    :host(.nested:not([disabled])) .expand-collapse-button:hover {
5898      background: ${l2e};
5899    }
5900
5901    :host([selected]) .positioning-region {
5902      background: ${xt};
5903    }
5904
5905    :host([selected]:not([disabled])) .positioning-region:hover {
5906      background: ${Bn};
5907    }
5908
5909    :host([selected]:not([disabled])) .positioning-region:active {
5910      background: ${ja};
5911    }
5912
5913    :host([selected]:not([disabled])) .expand-collapse-button:hover {
5914      background: ${c2e};
5915    }
5916
5917    :host([selected])::after {
5918      /* The background needs to be calculated based on the selected background state
5919         for this control. We currently have no way of changing that, so setting to
5920         accent-foreground-rest for the time being */
5921      background: ${Yt};
5922      border-radius: calc(${ce} * 1px);
5923      content: '';
5924      display: block;
5925      position: absolute;
5926      top: calc((${pe} / 4) * 1px);
5927      width: 3px;
5928      height: calc((${pe} / 2) * 1px);
5929    }
5930
5931    ::slotted(${r.tagFor(kt)}) {
5932      --tree-item-nested-width: 1em;
5933      --expand-collapse-button-nested-width: calc(
5934        (
5935            ${yd} +
5936              ((${pn} + ${ut}) * 1.25)
5937          ) * -1px
5938      );
5939    }
5940  `.withBehaviors(new jn(o2e,a2e),de(F`
5941      :host {
5942        forced-color-adjust: none;
5943        border-color: transparent;
5944        background: ${C.Field}
5944;
5945        color: ${C.FieldText};
5946      }
5947      :host .content-region .expand-collapse-glyph {
5948        fill: ${C.FieldText};
5949      }
5950      :host .positioning-region:hover,
5951      :host([selected]) .positioning-region {
5952        background: ${C.Highlight};
5953      }
5954      :host .positioning-region:hover .content-region,
5955      :host([selected]) .positioning-region .content-region {
5956        color: ${C.HighlightText};
5957      }
5958      :host .positioning-region:hover .content-region .expand-collapse-glyph,
5959      :host .positioning-region:hover .content-region .start,
5960      :host .positioning-region:hover .content-region .end,
5961      :host([selected]) .content-region .expand-collapse-glyph,
5962      :host([selected]) .content-region .start,
5963      :host([selected]) .content-region .end {
5964        fill: ${C.HighlightText};
5965      }
5966      :host([selected])::after {
5967        background: ${C.Field};
5968      }
5969      :host(:${U}) .positioning-region {
5970        border-color: ${C.FieldText};
5971        box-shadow: 0 0 0 2px inset ${C.Field};
5972        color: ${C.FieldText};
5973      }
5974      :host([disabled]) .content-region,
5975      :host([disabled]) .positioning-region:hover .content-region {
5976        opacity: 1;
5977        color: ${C.GrayText};
5978      }
5979      :host([disabled]) .content-region .expand-collapse-glyph,
5980      :host([disabled]) .content-region .start,
5981      :host([disabled]) .content-region .end,
5982      :host([disabled])
5983        .positioning-region:hover
5984        .content-region
5985        .expand-collapse-glyph,
5986      :host([disabled]) .positioning-region:hover .content-region .start,
5987      :host([disabled]) .positioning-region:hover .content-region .end {
5988        fill: ${C.GrayText};
5989      }
5990      :host([disabled]) .positioning-region:hover {
5991        background: ${C.Field};
5992      }
5993      .expand-collapse-glyph,
5994      .start,
5995      .end {
5996        fill: ${C.FieldText};
5997      }
5998      :host(.nested) .expand-collapse-button:hover {
5999        background: ${C.Field};
6000      }
6001      :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph {
6002        fill: ${C.FieldText};
6003      }
6004    `))});var QC,e3,t3=p(()=>{ee();aK();QC=class extends kt{},e3=QC.compose({baseName:"tree-item",baseClass:kt,template:xV,styles:oK,expandCollapseGlyph:`
6005        <svg
6006            viewBox="0 0 16 16"
6007            xmlns="http://www.w3.org/2000/svg"
6008            class="expand-collapse-glyph"
6009        >
6010            <path
6011                d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"
6012            />
6013        </svg>
6014    `})});var lK,cK=p(()=>{L();ee();lK=(r,e)=>F`
6015  ${me("flex")} :host {
6016    flex-direction: column;
6017    align-items: stretch;
6018    min-width: fit-content;
6019    font-size: 0;
6020  }
6021
6022  :host:focus-visible {
6023    outline: none;
6024  }
6025`});var r3,i3,n3=p(()=>{ee();cK();r3=class extends Da{handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element))return!0;let t=e.target;for(;t&&!fs(t);)t=t.parentElement,t===this&&(t=null);t&&!t.disabled&&(t.selected=!0)}},i3=r3.compose({baseName:"tree-view",baseClass:Da,template:SV,styles:lK})});var uK,dK=p(()=>{L();_e();jt();uK=(r,e)=>F`
6026  .region {
6027    z-index: 1000;
6028    overflow: hidden;
6029    display: flex;
6030    font-family: ${Ce};
6031    font-size: ${xe};
6032  }
6033
6034  .loaded {
6035    opacity: 1;
6036    pointer-events: none;
6037  }
6038
6039  .loading-display,
6040  .no-options-display {
6041    background: ${$e};
6042    width: 100%;
6043    min-height: calc(${pe} * 1px);
6044    display: flex;
6045    flex-direction: column;
6046    align-items: center;
6047    justify-items: center;
6048    padding: calc(${H} * 1px);
6049  }
6050
6051  .loading-progress {
6052    width: 42px;
6053    height: 42px;
6054  }
6055
6056  .bottom {
6057    flex-direction: column;
6058  }
6059
6060  .top {
6061    flex-direction: column-reverse;
6062  }
6063`});var hK,fK=p(()=>{L();ee();fe();_e();jt();hK=(r,e)=>F`
6064    :host {
6065      background: ${$e};
6066      --elevation: 11;
6067      /* TODO: a mechanism to manage z-index across components
6068            https://github.com/microsoft/fast/issues/3813 */
6069      z-index: 1000;
6070      display: flex;
6071      width: 100%;
6072      max-height: 100%;
6073      min-height: 58px;
6074      box-sizing: border-box;
6075      flex-direction: column;
6076      overflow-y: auto;
6077      overflow-x: hidden;
6078      pointer-events: auto;
6079      border-radius: calc(${ce} * 1px);
6080      padding: calc(${H} * 1px) 0;
6081      border: calc(${ne} * 1px) solid transparent;
6082      ${ms}
6083    }
6084
6085    .suggestions-available-alert {
6086      height: 0;
6087      opacity: 0;
6088      overflow: hidden;
6089    }
6090  `.withBehaviors(de(F`
6091      :host {
6092        background: ${C.Canvas};
6093        border-color: ${C.CanvasText};
6094      }
6095    `))});var pK,mK=p(()=>{L();ee();fe();_e();jt();pK=(r,e)=>F`
6096    :host {
6097      display: flex;
6098      align-items: center;
6099      justify-items: center;
6100      font-family: ${Ce};
6101      border-radius: calc(${ce} * 1px);
6102      border: calc(${ue} * 1px) solid transparent;
6103      box-sizing: border-box;
6104      background: ${di};
6105      color: ${ae};
6106      cursor: pointer;
6107      fill: currentcolor;
6108      font-size: ${xe};
6109      min-height: calc(${pe} * 1px);
6110      line-height: ${Re};
6111      margin: 0 calc(${H} * 1px);
6112      outline: none;
6113      overflow: hidden;
6114      padding: 0 calc(${H} * 2.25px);
6115      user-select: none;
6116      white-space: nowrap;
6117    }
6118
6119    :host(:${U}[role="listitem"]) {
6120      border-color: ${wr};
6121      background: ${ud};
6122    }
6123
6124    :host(:hover) {
6125      background: ${Ui};
6126    }
6127
6128    :host(:active) {
6129      background: ${Wi};
6130    }
6131
6132    :host([aria-selected='true']) {
6133      background: ${Qe};
6134      color: ${pr};
6135    }
6136
6137    :host([aria-selected='true']:hover) {
6138      background: ${fr};
6139      color: ${Xr};
6140    }
6141
6142    :host([aria-selected='true']:active) {
6143      background: ${Bt};
6144      color: ${_r};
6145    }
6146  `.withBehaviors(de(F`
6147      :host {
6148        border-color: transparent;
6149        forced-color-adjust: none;
6150        color: ${C.ButtonText};
6151        fill: currentcolor;
6152      }
6153
6154      :host(:not([aria-selected='true']):hover),
6155      :host([aria-selected='true']) {
6156        background: ${C.Highlight};
6157        color: ${C.HighlightText};
6158      }
6159
6160      :host([disabled]),
6161      :host([disabled]:not([aria-selected='true']):hover) {
6162        background: ${C.Canvas};
6163        color: ${C.GrayText};
6164        fill: currentcolor;
6165        opacity: 1;
6166      }
6167    `))});var gK,bK=p(()=>{L();ee();fe();_e();jt();gK=(r,e)=>F`
6168        :host {
6169            display: flex;
6170            flex-direction: row;
6171            column-gap: calc(${H} * 1px);
6172            row-gap: calc(${H} * 1px);
6173            flex-wrap: wrap;
6174        }
6175
6176        ::slotted([role="combobox"]) {
6177            min-width: 260px;
6178            width: auto;
6179            box-sizing: border-box;
6180            color: ${ae};
6181            background: ${Vi};
6182            border-radius: calc(${ce} * 1px);
6183            border: calc(${ne} * 1px) solid ${Qe};
6184            height: calc(${pe} * 1px);
6185            font-family: ${Ce};
6186            outline: none;
6187            user-select: none;
6188            font-size: ${xe};
6189            line-height: ${Re};
6190            padding: 0 calc(${H} * 2px + 1px);
6191        }
6192
6193        ::slotted([role="combobox"]:active) { {
6194            background: ${ui};
6195            border-color: ${Bt};
6196        }
6197
6198        ::slotted([role="combobox"]:focus-within) {
6199            border-color: ${wr};
6200            box-shadow: 0 0 0 1px ${wr} inset;
6201        }
6202    `.withBehaviors(de(F`
6203      ::slotted([role='combobox']:active) {
6204        background: ${C.Field}
6204;
6205        border-color: ${C.Highlight};
6206      }
6207      ::slotted([role='combobox']:focus-within) {
6208        border-color: ${C.Highlight};
6209        box-shadow: 0 0 0 1px ${C.Highlight} inset;
6210      }
6211      ::slotted(input:placeholder) {
6212        color: ${C.GrayText};
6213      }
6214    `))});var vK,yK=p(()=>{L();ee();fe();_e();jt();vK=(r,e)=>F`
6215    :host {
6216      display: flex;
6217      align-items: center;
6218      justify-items: center;
6219      font-family: ${Ce};
6220      border-radius: calc(${ce} * 1px);
6221      border: calc(${ue} * 1px) solid transparent;
6222      box-sizing: border-box;
6223      background: ${di};
6224      color: ${ae};
6225      cursor: pointer;
6226      fill: currentcolor;
6227      font-size: ${xe};
6228      height: calc(${pe} * 1px);
6229      line-height: ${Re};
6230      outline: none;
6231      overflow: hidden;
6232      padding: 0 calc(${H} * 2.25px);
6233      user-select: none;
6234      white-space: nowrap;
6235    }
6236
6237    :host(:hover) {
6238      background: ${Ui};
6239    }
6240
6241    :host(:active) {
6242      background: ${Wi};
6243    }
6244
6245    :host(:${U}) {
6246      background: ${ud};
6247      border-color: ${wr};
6248    }
6249
6250    :host([aria-selected='true']) {
6251      background: ${Qe};
6252      color: ${_r};
6253    }
6254  `.withBehaviors(de(F`
6255      :host {
6256        border-color: transparent;
6257        forced-color-adjust: none;
6258        color: ${C.ButtonText};
6259        fill: currentcolor;
6260      }
6261
6262      :host(:not([aria-selected='true']):hover),
6263      :host([aria-selected='true']) {
6264        background: ${C.Highlight};
6265        color: ${C.HighlightText};
6266      }
6267
6268      :host([disabled]),
6269      :host([disabled]:not([aria-selected='true']):hover) {
6270        background: ${C.Canvas};
6271        color: ${C.GrayText};
6272        fill: currentcolor;
6273        opacity: 1;
6274      }
6275    `))});var s3,u3,o3,d3,a3,h3,l3,f3,c3,p3,m3=p(()=>{ee();_e();dK();fK();mK();bK();yK();s3=class extends Ke{},u3=s3.compose({baseName:"draft-picker",baseClass:Ke,template:xq,styles:uK,shadowOptions:{}}),o3=class extends cs{connectedCallback(){$e.setValueFor(this,cd),super.connectedCallback()}},d3=o3.compose({baseName:"draft-picker-menu",baseClass:cs,template:Cq,styles:hK}),a3=class extends us{},h3=a3.compose({baseName:"draft-picker-menu-option",baseClass:us,template:kq,styles:pK}),l3=class extends Ra{},f3=l3.compose({baseName:"draft-picker-list",baseClass:Ra,template:Tq,styles:gK}),c3=class extends ds{},p3=c3.compose({baseName:"draft-picker-list-item",baseClass:ds,template:Rq,styles:vK})});var xK=p(()=>{q2();B2();X2();Q2();tS();nS();aS();uS();dS();pS();bS();_S();TS();PS();BS();zS();VS();GS();XS();QS();tC();nC();aC();uC();fC();gC();vC();xC();SC();kC();OC();MC();LC();jC();HC();UC();GC();YC();ZC();t3();n3();m3()});function Q(r){return Xw.getOrCreate(r).withPrefix("jp")}var _K=p(()=>{ee()});var Te=p(()=>{eW();xK();_K();q2();X2();Q2();tS();nS();aS();uS();dS();pS();bS();_S();PS();TS();FS();FS();_e();BS();zS();VS();GS();XS();QS();tC();nC();aC();uC();fC();gC();vC();xC();SC();kC();OC();Rb();MC();HC();UC();GC();YC();ZC();n3();t3();m3()});function $(r,e,t){(0,zb.useEffect)(()=>{if(t!==void 0&&r.current&&r.current[e]!==t)try{r.current[e]=t}catch(i){console.warn(i)}},[t,r.current])}function ye(r,e,t){(0,zb.useLayoutEffect)(()=>(t!==void 0&&r?.current?.addEventListener(e,t),()=>{t?.cancel&&t.cancel(),r?.current?.removeEventListener(e,t)}),[e,t,r.current])}var zb,Ve=p(()=>
6275{zb=N(re())});var qa,dvt,wK=p(()=>{Te();qa=N(re());Ve();Q().register(z2());dvt=(0,qa.forwardRef)((r,e)=>{let t=(0,qa.useRef)(null),{className:i,expandMode:n,...s}=r;return ye(t,"change",r.onChange),(0,qa.useImperativeHandle)(e,()=>t.current,[t.current]),qa.default.createElement("jp-accordion",{ref:t,...s,"expand-mode":r.expandMode||r["expand-mode"],class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Ha,gvt,SK=p(()=>{Te();Ha=N(re());Ve();Q().register(N2());gvt=(0,Ha.forwardRef)((r,e)=>{let t=(0,Ha.useRef)(null),{className:i,headingLevel:n,id:s,expanded:o,...a}=r;return ye(t,"change",r.onChange),$(t,"expanded",r.expanded),(0,Ha.useImperativeHandle)(e,()=>t.current,[t.current]),Ha.default.createElement("jp-accordion-item",{ref:t,...a,"heading-level":r.headingLevel||r["heading-level"],id:r.id,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Va,_vt,CK=p(()=>{Te();Va=N(re());Ve();Q().register(Z2());_vt=(0,Va.forwardRef)((r,e)=>{let t=(0,Va.useRef)(null),{className:i,horizontalViewportLock:n,horizontalInset:s,verticalViewportLock:o,verticalInset:a,fixedPlacement:l,anchor:c,viewport:u,horizontalPositioningMode:d,horizontalDefaultPosition:f,horizontalThreshold:m,horizontalScaling:g,verticalPositioningMode:b,verticalDefaultPosition:v,verticalThreshold:S,verticalScaling:k,autoUpdateMode:_,anchorElement:E,viewportElement:R,verticalPosition:P,horizontalPosition:T,update:O,...I}=r;return ye(t,"loaded",r.onLoaded),ye(t,"positionchange",r.onPositionchange),$(t,"anchorElement",r.anchorElement),$(t,"viewportElement",r.viewportElement),$(t,"verticalPosition",r.verticalPosition),$(t,"horizontalPosition",r.horizontalPosition),$(t,"update",r.update),(0,Va.useImperativeHandle)(e,()=>t.current,[t.current]),Va.default.createElement("jp-anchored-region",{ref:t,...I,anchor:r.anchor,viewport:r.viewport,"horizontal-positioning-mode":r.horizontalPositioningMode||r["horizontal-positioning-mode"],"horizontal-default-position":r.horizontalDefaultPosition||r["horizontal-default-position"],"horizontal-threshold":r.horizontalThreshold||r["horizontal-threshold"],"horizontal-scaling":r.horizontalScaling||r["horizontal-scaling"],"vertical-positioning-mode":r.verticalPositioningMode||r["vertical-positioning-mode"],"vertical-default-position":r.verticalDefaultPosition||r["vertical-default-position"],"vertical-threshold":r.verticalThreshold||r["vertical-threshold"],"vertical-scaling":r.verticalScaling||r["vertical-scaling"],"auto-update-mode":r.autoUpdateMode||r["auto-update-mode"],class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"horizontal-viewport-lock":r.horizontalViewportLock?"":void 0,"horizontal-inset":r.horizontalInset?"":void 0,"vertical-viewport-lock":r.verticalViewportLock?"":void 0,"vertical-inset":r.verticalInset?"":void 0,"fixed-placement":r.fixedPlacement?"":void 0,style:{...r.style}},r.children)})});var Ua,kvt,IK=p(()=>{Te();Ua=N(re());Ve();Q().register(Y2());kvt=(0,Ua.forwardRef)((r,e)=>{let t=(0,Ua.useRef)(null),{className:i,appearance:n,download:s,href:o,hreflang:a,ping:l,referrerpolicy:c,rel:u,target:d,type:f,control:m,...g}=r;return $(t,"control",r.control),(0,Ua.useImperativeHandle)(e,()=>t.current,[t.current]),Ua.default.createElement("jp-anchor",{ref:t,...g,appearance:r.appearance,download:r.download,href:r.href,hreflang:r.hreflang,ping:r.ping,referrerpolicy:r.referrerpolicy,rel:r.rel,target:r.target,type:r.type,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Wa,Rvt,kK=p(()=>{Te();Wa=N(re());Q().register(eS());Rvt=(0,Wa.forwardRef)((r,e)=>{let t=(0,Wa.useRef)(null),{className:i,src:n,alt:s,fill:o,color:a,link:l,shape:c,...u}=r;return(0,Wa.useImperativeHandle)(e,()=>t.current,[t.current]),Wa.default.createElement("jp-avatar",{ref:t,...u,src:r.src,alt:r.alt,fill:r.fill,color:r.color,link:r.link,shape:r.shape,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Ga,Pvt,EK=p(()=>{Te();Ga=N(re());Ve();Q().register(iS());Pvt=(0,Ga.forwardRef)((r,e)=>{let t=(0,Ga.useRef)(null),{className:i,fill:n,color:s,circular:o,...a}=r;return $(t,"circular",r.circular),(0,Ga.useImperativeHandle)(e,()=>t.current,[t.current]),Ga.default.createElement("jp-badge",{ref:t,...a,fill:r.fill,color:r.color,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Ka,Bvt,TK=p(()=>{Te();Ka=N(re());Q().register(oS());Bvt=(0,Ka.forwardRef)((r,e)=>{let t=(0,Ka.useRef)(null),{className:i,...n}=r;return(0,Ka.useImperativeHandle)(e,()=>t.current,[t.current]),Ka.default.createElement("jp-breadcrumb",{ref:t,...n,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Ya,Vvt,AK=p(()=>{Te();Ya=N(re());Ve();Q().register(cS());Vvt=(0,Ya.forwardRef)((r,e)=>{let t=(0,Ya.useRef)(null),{className:i,download:n,href:s,hreflang:o,ping:a,referrerpolicy:l,rel:c,target:u,type:d,control:f,...m}=r;return $(t,"control",r.control),(0,Ya.useImperativeHandle)(e,()=>t.current,[t.current]),Ya.default.createElement("jp-breadcrumb-item",{ref:t,...m,download:r.download,href:r.href,hreflang:r.hreflang,ping:r.ping,referrerpolicy:r.referrerpolicy,rel:r.rel,target:r.target,type:r.type,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Xa,RK,OK=p(()=>{Te();Xa=N(re());Ve();Q().register(Mf());RK=(0,Xa.forwardRef)((r,e)=>{let t=(0,Xa.useRef)(null),{className:i,minimal:n,appearance:s,form:o,formaction:a,formenctype:l,formmethod:c,formtarget:u,type:d,autofocus:f,formnovalidate:m,defaultSlottedContent:g,disabled:b,required:v,...S}=r;return $(t,"autofocus",r.autofocus),$(t,"formnovalidate",r.formnovalidate),$(t,"defaultSlottedContent",r.defaultSlottedContent),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,Xa.useImperativeHandle)(e,()=>t.current,[t.current]),Xa.default.createElement("jp-button",{ref:t,...S,appearance:r.appearance,form:r.form,formaction:r.formaction,formenctype:r.formenctype,formmethod:r.formmethod,formtarget:r.formtarget,type:r.type,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,minimal:r.minimal?"":void 0,style:{...r.style}},r.children)})});var Ja,Zvt,DK=p(()=>{Te();Ja=N(re());Q().register(fS());Zvt=(0,Ja.forwardRef)((r,e)=>{let t=(0,Ja.useRef)(null),{className:i,...n}=r;return(0,Ja.useImperativeHandle)(e,()=>t.current,[t.current]),Ja.default.createElement("jp-card",{ref:t,...n,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Za,i1t,$K=p(()=>{Te();Za=N(re());Ve();Q().register(gS());i1t=(0,Za.forwardRef)((r,e)=>{let t=(0,Za.useRef)(null),{className:i,readonly:n,readOnly:s,indeterminate:o,checked:a,disabled:l,required:c,...u}=r;ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"indeterminate",r.indeterminate),$(t,"checked",r.checked),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,Za.useImperativeHandle)(e,()=>t.current,[t.current]);let d=i??"";return t.current?.indeterminate&&(d+=" indeterminate"),Za.default.createElement("jp-checkbox",{ref:t,...u,class:d.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,style:{...r.style}},r.children)})});var Qa,a1t,MK=p(()=>{Te();Qa=N(re());Ve();Q().register(xS());a1t=(0,Qa.forwardRef)((r,e)=>{let t=(0,Qa.useRef)(null),{className:i,autowidth:n,minimal:s,open:o,autocomplete:a,placeholder:l,position:c,autoWidth:u,filteredOptions:d,options:f,value:m,length:g,disabled:b,selectedIndex:v,selectedOptions:S,required:k,..._}=r;return ye(t,"input",r.onInput),ye(t,"change",r.onChange),$(t,"autoWidth",r.autoWidth),$(t,"filteredOptions",r.filteredOptions),$(t,"options",r.options),$(t,"value",r.value),$(t,"length",r.length),$(t,"disabled",r.disabled),$(t,"selectedIndex",r.selectedIndex),$(t,"selectedOptions",r.selectedOptions),$(t,"required",r.required),(0,Qa.useImperativeHandle)(e,()=>t.current,[t.current]),Qa.default.createElement("jp-combobox",{ref:t,..._,autocomplete:r.autocomplete,placeholder:r.placeholder,position:r.position,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,autowidth:r.autowidth?"":void 0,minimal:r.minimal?"":void 0,open:r.open?"":void 0,style:{...r.style}},r.children)})});var el,h1t,PK=p(()=>{Te();el=N(re());Ve();Q().register(MS());h1t=(0,el.forwardRef)((r,e)=>{let t=(0,el.useRef)(null),{className:i,autofocus:n,step:s,max:o,min:a,disabled:l,required:c,...u}=r;return ye(t,"input",r.onInput),ye(t,"change",r.onChange),$(t,"autofocus",r.autofocus),$(t,"step",r.step),$(t,"max",r.max),$(t,"min",r.min),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,el.useImperativeHandle)(e,()=>t.current,[t.current]),el.default.createElement("jp-date-field",{ref:t,...u,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var tl,b1t,FK=p(()=>{Te();tl=N(re());Ve();Q().register(IS());b1t=(0,tl.forwardRef)((r,e)=>{let t=(0,tl.useRef)(null),{className:i,cellType:n,gridColumn:s,rowData:o,columnDefinition:a,...l}=r;ye(t,"cell-focused",r.onCellFocused),$(t,"rowData",r.rowData),$(t,"columnDefinition",r.columnDefinition),(0,tl.useImperativeHandle)(e,()=>t.current,[t.current]);let c=i??"";return t.current?.cellType==="columnheader"&&(c+=" column-header"),tl.default.createElement("jp-data-grid-cell",{ref:t,...l,"cell-type":r.cellType||r["cell-type"],"grid-column":r.gridColumn||r["grid-column"],class:c.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var rl,w1t,LK=p(()=>{Te();rl=N(re());Ve();Q().register(kS());w1t=(0,rl.forwardRef)((r,e)=>{let t=(0,rl.useRef)(null),{className:i,gridTemplateColumns:n,rowType:s,rowData:o,columnDefinitions:a,cellItemTemplate:l,headerCellItemTemplate:c,rowIndex:u,...d}=r;ye(t,"row-focused",r.onRowFocused),$(t,"rowData",r.rowData),$(t,"columnDefinitions",r.columnDefinitions),$(t,"cellItemTemplate",r.cellItemTemplate),$(t,"headerCellItemTemplate",r.headerCellItemTemplate),$(t,"rowIndex",r.rowIndex),(0,rl.useImperativeHandle)(e,()=>t.current,[t.current]);let f=i??"";return t.current&&t.current.rowType!=="default"&&(f+=` ${t.current.rowType}`),rl.default.createElement("jp-data-grid-row",{ref:t,...d,"grid-template-columns":r.gridTemplateColumns||r["grid-template-columns"],"row-type":r.rowType||r["row-type"],class:f.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var il,E1t,NK=p(()=>{Te();il=N(re());Ve();Q().register(ES());E1t=(0,il.forwardRef)((r,e)=>{let t=(0,il.useRef)(null),{className:i,noTabbing:n,generateHeader:s,gridTemplateColumns:o,rowsData:a,columnDefinitions:l,rowItemTemplate:c,cellItemTemplate:u,headerCellItemTemplate:d,focusRowIndex:f,focusColumnIndex:m,rowElementTag:g,...b}=r;return $(t,"rowsData",r.rowsData),$(t,"columnDefinitions",r.columnDefinitions),$(t,"rowItemTemplate",r.rowItemTemplate),$(t,"cellItemTemplate",r.cellItemTemplate),$(t,"headerCellItemTemplate",r.headerCellItemTemplate),$(t,"focusRowIndex",r.focusRowIndex),$(t,"focusColumnIndex",r.focusColumnIndex),$(t,"rowElementTag",r.rowElementTag),(0,il.useImperativeHandle)(e,()=>t.current,[t.current]),il.default.createElement("jp-data-grid",{ref:t,...b,"generate-header":r.generateHeader||r["generate-header"],"grid-template-columns":r.gridTemplateColumns||r["grid-template-columns"],class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"no-tabbing":r.noTabbing?"":void 0,style:{...r.style}},r.children)})});var nl,D1t,BK=p(()=>{Te();nl=N(re());Ve();Q().register(NS());D1t=(0,nl.forwardRef)((r,e)=>{let t=(0,nl.useRef)(null),{className:i,trapFocus:n,ariaDescribedby:s,ariaLabelledby:o,ariaLabel:a,modal:l,hidden:c,...u}=r;return ye(t,"cancel",r.onCancel),ye(t,"close",r.onClose),$(t,"modal",r.modal),$(t,"hidden",r.hidden),(0,nl.useImperativeHandle)(e,()=>({show:()=>t.current.show(),hide:()=>t.current.hide(),compose:(d,f)=>t.current.compose(d,f)})),nl.default.createElement("jp-dialog",{ref:t,...u,"aria-describedby":r.ariaDescribedby||r["aria-describedby"],"aria-labelledby":r.ariaLabelledby||r["aria-labelledby"],"aria-label":r.ariaLabel||r["aria-label"],class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"trap-focus":r.trapFocus?"":void 0,style:{...r.style}},r.children)})});var sl,L1t,jK=p(()=>{Te();sl=N(re());Ve();Q().register(jS());L1t=(0,sl.forwardRef)((r,e)=>{let t=(0,sl.useRef)(null),{className:i,appearance:n,title:s,expanded:o,...a}=r;return ye(t,"toggle",r.onToggle),$(t,"expanded",r.expanded),(0,sl.useImperativeHandle)(e,()=>t.current,[t.current]),sl.default.createElement("jp-disclosure",{ref:t,...a,appearance:r.appearance,title:r.title,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var ol,z1t,zK=p(()=>{Te();
6275ol=N(re());Q().register(HS());z1t=(0,ol.forwardRef)((r,e)=>{let t=(0,ol.useRef)(null),{className:i,role:n,orientation:s,...o}=r;return(0,ol.useImperativeHandle)(e,()=>t.current,[t.current]),ol.default.createElement("jp-divider",{ref:t,...o,role:r.role,orientation:r.orientation,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var al,W1t,qK=p(()=>{Te();al=N(re());Ve();Q().register(WS());W1t=(0,al.forwardRef)((r,e)=>{let t=(0,al.useRef)(null),{className:i,multiple:n,size:s,length:o,options:a,disabled:l,selectedIndex:c,selectedOptions:u,...d}=r;return ye(t,"change",r.onChange),$(t,"multiple",r.multiple),$(t,"size",r.size),$(t,"length",r.length),$(t,"options",r.options),$(t,"disabled",r.disabled),$(t,"selectedIndex",r.selectedIndex),$(t,"selectedOptions",r.selectedOptions),(0,al.useImperativeHandle)(e,()=>t.current,[t.current]),al.default.createElement("jp-listbox",{ref:t,...d,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var ll,J1t,HK=p(()=>{Te();ll=N(re());Ve();Q().register(ZS());J1t=(0,ll.forwardRef)((r,e)=>{let t=(0,ll.useRef)(null),{className:i,role:n,disabled:s,expanded:o,checked:a,...l}=r;ye(t,"expanded-change",r.onExpand),ye(t,"change",r.onChange),$(t,"disabled",r.disabled),$(t,"expanded",r.expanded),$(t,"checked",r.checked),(0,ll.useImperativeHandle)(e,()=>t.current,[t.current]);let c=i??"";return t.current&&(c+=` indent-${t.current.startColumnCount}`,t.current.expanded&&(c+=" expanded")),ll.default.createElement("jp-menu-item",{ref:t,...l,role:r.role,class:c.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var cl,tyt,VK=p(()=>{Te();cl=N(re());Q().register(YS());tyt=(0,cl.forwardRef)((r,e)=>{let t=(0,cl.useRef)(null),{className:i,...n}=r;return(0,cl.useImperativeHandle)(e,()=>t.current,[t.current]),cl.default.createElement("jp-menu",{ref:t,...n,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var ul,oyt,UK=p(()=>{Te();ul=N(re());Ve();Q().register(eC());oyt=(0,ul.forwardRef)((r,e)=>{let t=(0,ul.useRef)(null),{className:i,readonly:n,hideStep:s,appearance:o,placeholder:a,list:l,readOnly:c,autofocus:u,maxlength:d,minlength:f,size:m,step:g,max:b,min:v,disabled:S,required:k,..._}=r;return ye(t,"input",r.onInput),ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"autofocus",r.autofocus),$(t,"maxlength",r.maxlength),$(t,"minlength",r.minlength),$(t,"size",r.size),$(t,"step",r.step),$(t,"max",r.max),$(t,"min",r.min),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,ul.useImperativeHandle)(e,()=>t.current,[t.current]),ul.default.createElement("jp-number-field",{ref:t,..._,appearance:r.appearance,placeholder:r.placeholder,list:r.list,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,"hide-step":r.hideStep?"":void 0,style:{...r.style}},r.children)})});var dl,uyt,WK=p(()=>{Te();dl=N(re());Ve();Q().register(iC());uyt=(0,dl.forwardRef)((r,e)=>{let t=(0,dl.useRef)(null),{className:i,selected:n,value:s,checked:o,content:a,defaultSelected:l,disabled:c,selectedAttribute:u,dirtyValue:d,...f}=r;return $(t,"checked",r.checked),$(t,"content",r.content),$(t,"defaultSelected",r.defaultSelected),$(t,"disabled",r.disabled),$(t,"selectedAttribute",r.selectedAttribute),$(t,"dirtyValue",r.dirtyValue),(0,dl.useImperativeHandle)(e,()=>t.current,[t.current]),dl.default.createElement("jp-option",{ref:t,...f,value:r.value,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,selected:r.selected?"":void 0,style:{...r.style}},r.children)})});var hl,myt,GK=p(()=>{Te();hl=N(re());Ve();Q().register(cC());myt=(0,hl.forwardRef)((r,e)=>{let t=(0,hl.useRef)(null),{className:i,value:n,min:s,max:o,paused:a,...l}=r;return $(t,"value",r.value),$(t,"min",r.min),$(t,"max",r.max),$(t,"paused",r.paused),(0,hl.useImperativeHandle)(e,()=>t.current,[t.current]),hl.default.createElement("jp-progress-ring",{ref:t,...l,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var fl,xyt,KK=p(()=>{Te();fl=N(re());Ve();Q().register(oC());xyt=(0,fl.forwardRef)((r,e)=>{let t=(0,fl.useRef)(null),{className:i,value:n,min:s,max:o,paused:a,...l}=r;return $(t,"value",r.value),$(t,"min",r.min),$(t,"max",r.max),$(t,"paused",r.paused),(0,fl.useImperativeHandle)(e,()=>t.current,[t.current]),fl.default.createElement("jp-progress",{ref:t,...l,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var pl,Iyt,YK=p(()=>{Te();
6275pl=N(re());Ve();Q().register(hC());Iyt=(0,pl.forwardRef)((r,e)=>{let t=(0,pl.useRef)(null),{className:i,readonly:n,readOnly:s,name:o,checked:a,disabled:l,required:c,...u}=r;return ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"name",r.name),$(t,"checked",r.checked),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,pl.useImperativeHandle)(e,()=>t.current,[t.current]),pl.default.createElement("jp-radio",{ref:t,...u,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,style:{...r.style}},r.children)})});var ml,Ryt,XK=p(()=>{Te();ml=N(re());Ve();Q().register(mC());Ryt=(0,ml.forwardRef)((r,e)=>{let t=(0,ml.useRef)(null),{className:i,readonly:n,disabled:s,name:o,value:a,orientation:l,readOnly:c,...u}=r;return ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),(0,ml.useImperativeHandle)(e,()=>t.current,[t.current]),ml.default.createElement("jp-radio-group",{ref:t,...u,name:r.name,value:r.value,orientation:r.orientation,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,disabled:r.disabled?"":void 0,style:{...r.style}},r.children)})});var gl,Pyt,JK=p(()=>{Te();gl=N(re());Ve();Q().register(bC());Pyt=(0,gl.forwardRef)((r,e)=>{let t=(0,gl.useRef)(null),{className:i,readonly:n,appearance:s,placeholder:o,list:a,pattern:l,readOnly:c,autofocus:u,maxlength:d,minlength:f,size:m,spellcheck:g,disabled:b,required:v,...S}=r;return ye(t,"input",r.onInput),ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"autofocus",r.autofocus),$(t,"maxlength",r.maxlength),$(t,"minlength",r.minlength),$(t,"size",r.size),$(t,"spellcheck",r.spellcheck),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,gl.useImperativeHandle)(e,()=>t.current,[t.current]),gl.default.createElement("jp-search",{ref:t,...S,appearance:r.appearance,placeholder:r.placeholder,list:r.list,pattern:r.pattern,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,style:{...r.style}},r.children)})});var bl,jyt,ZK=p(()=>{Te();bl=N(re());Ve();Q().register(yC());jyt=(0,bl.forwardRef)((r,e)=>{let t=(0,bl.useRef)(null),{className:i,autowidth:n,minimal:s,open:o,position:a,autoWidth:l,value:c,displayValue:u,multiple:d,size:f,length:m,options:g,disabled:b,selectedIndex:v,selectedOptions:S,required:k,..._}=r;return ye(t,"input",r.onInput),ye(t,"change",r.onChange),$(t,"autoWidth",r.autoWidth),$(t,"value",r.value),$(t,"displayValue",r.displayValue),$(t,"multiple",r.multiple),$(t,"size",r.size),$(t,"length",r.length),$(t,"options",r.options),$(t,"disabled",r.disabled),$(t,"selectedIndex",r.selectedIndex),$(t,"selectedOptions",r.selectedOptions),$(t,"required",r.required),(0,bl.useImperativeHandle)(e,()=>t.current,[t.current]),bl.default.createElement("jp-select",{ref:t,..._,position:r.position,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,autowidth:r.autowidth?"":void 0,minimal:r.minimal?"":void 0,open:r.open?"":void 0,style:{...r.style}},r.children)})});var vl,Uyt,QK=p(()=>{Te();vl=N(re());Ve();Q().register(wC());Uyt=(0,vl.forwardRef)((r,e)=>{let t=(0,vl.useRef)(null),{className:i,fill:n,shape:s,pattern:o,shimmer:a,...l}=r;return $(t,"shimmer",r.shimmer),(0,vl.useImperativeHandle)(e,()=>t.current,[t.current]),vl.default.createElement("jp-skeleton",{ref:t,...l,fill:r.fill,shape:r.shape,pattern:r.pattern,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var yl,Xyt,eY=p(()=>{Te();yl=N(re());Ve();Q().register(IC());Xyt=(0,yl.forwardRef)((r,e)=>{let t=(0,yl.useRef)(null),{className:i,readonly:n,orientation:s,mode:o,readOnly:a,valueAsNumber:l,valueTextFormatter:c,min:u,max:d,step:f,disabled:m,required:g,...b}=r;return ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"valueAsNumber",r.valueAsNumber),$(t,"valueTextFormatter",r.valueTextFormatter),$(t,"min",r.min),$(t,"max",r.max),$(t,"step",r.step),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,yl.useImperativeHandle)(e,()=>t.current,[t.current]),yl.default.createElement("jp-slider",{ref:t,...b,orientation:r.orientation,mode:r.mode,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,style:{...r.style}},r.children)})});var xl,ext,tY=p(()=>{Te();
6275xl=N(re());Q().register(RC());ext=(0,xl.forwardRef)((r,e)=>{let t=(0,xl.useRef)(null),{className:i,hideMark:n,disabled:s,position:o,...a}=r;(0,xl.useImperativeHandle)(e,()=>t.current,[t.current]);let l=i??"";return t.current?.disabled&&(l+=" disabled"),xl.default.createElement("jp-slider-label",{ref:t,...a,position:r.position,class:l.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"hide-mark":r.hideMark?"":void 0,disabled:r.disabled?"":void 0,style:{...r.style}},r.children)})});var _l,sxt,rY=p(()=>{Te();_l=N(re());Ve();Q().register($C());sxt=(0,_l.forwardRef)((r,e)=>{let t=(0,_l.useRef)(null),{className:i,readonly:n,readOnly:s,checked:o,disabled:a,required:l,...c}=r;return ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"checked",r.checked),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,_l.useImperativeHandle)(e,()=>t.current,[t.current]),_l.default.createElement("jp-switch",{ref:t,...c,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,style:{...r.style}},r.children)})});var wl,uxt,iY=p(()=>{Te();wl=N(re());Ve();Q().register(BC());uxt=(0,wl.forwardRef)((r,e)=>{let t=(0,wl.useRef)(null),{className:i,disabled:n,...s}=r;$(t,"disabled",r.disabled),(0,wl.useImperativeHandle)(e,()=>t.current,[t.current]);let o=i??"";return t.current?.classList.contains("vertical")&&(o+=" vertical"),wl.default.createElement("jp-tab",{ref:t,...s,class:o.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Sl,pxt,nY=p(()=>{Te();Sl=N(re());Q().register(FC());pxt=(0,Sl.forwardRef)((r,e)=>{let t=(0,Sl.useRef)(null),{className:i,...n}=r;return(0,Sl.useImperativeHandle)(e,()=>t.current,[t.current]),Sl.default.createElement("jp-tab-panel",{ref:t,...n,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Cl,yxt,sY=p(()=>{Te();Cl=N(re());Ve();Q().register(qC());yxt=(0,Cl.forwardRef)((r,e)=>{let t=(0,Cl.useRef)(null),{className:i,orientation:n,activeid:s,activeindicator:o,activetab:a,...l}=r;return ye(t,"change",r.onChange),$(t,"activeindicator",r.activeindicator),$(t,"activetab",r.activetab),(0,Cl.useImperativeHandle)(e,()=>t.current,[t.current]),Cl.default.createElement("jp-tabs",{ref:t,...l,orientation:r.orientation,activeid:r.activeid,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Il,Cxt,oY=p(()=>{Te();Il=N(re());Ve();Q().register(VC());Cxt=(0,Il.forwardRef)((r,e)=>{let t=(0,Il.useRef)(null),{className:i,appearance:n,resize:s,form:o,list:a,name:l,placeholder:c,readOnly:u,autofocus:d,maxlength:f,minlength:m,cols:g,rows:b,spellcheck:v,disabled:S,required:k,..._}=r;return ye(t,"select",r.onSelect),ye(t,"change",r.onChange),$(t,"readOnly",r.readOnly),$(t,"autofocus",r.autofocus),$(t,"maxlength",r.maxlength),$(t,"minlength",r.minlength),$(t,"cols",r.cols),$(t,"rows",r.rows),$(t,"spellcheck",r.spellcheck),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,Il.useImperativeHandle)(e,()=>t.current,[t.current]),Il.default.createElement("jp-text-area",{ref:t,..._,appearance:r.appearance,resize:r.resize,form:r.form,list:r.list,name:r.name,placeholder:r.placeholder,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var kl,Axt,aY=p(()=>{Te();kl=N(re());Ve();Q().register(WC());Axt=(0,kl.forwardRef)((r,e)=>{let t=(0,kl.useRef)(null),{className:i,readonly:n,appearance:s,placeholder:o,type:a,list:l,pattern:c,readOnly:u,autofocus:d,maxlength:f,minlength:m,size:g,spellcheck:b,disabled:v,required:S,...k}=r;return ye(t,"change",r.onChange),ye(t,"input",r.onInput),$(t,"readOnly",r.readOnly),$(t,"autofocus",r.autofocus),$(t,"maxlength",r.maxlength),$(t,"minlength",r.minlength),$(t,"size",r.size),$(t,"spellcheck",r.spellcheck),$(t,"disabled",r.disabled),$(t,"required",r.required),(0,kl.useImperativeHandle)(e,()=>t.current,[t.current]),kl.default.createElement("jp-text-field",{ref:t,...k,appearance:r.appearance,placeholder:r.placeholder,type:r.type,list:r.list,pattern:r.pattern,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,readonly:r.readonly?"":void 0,style:{...r.style}},r.children)})});var El,$xt,lY=p(()=>{Te();El=N(re());Q().register(Pf());$xt=(0,El.forwardRef)((r,e)=>{let t=(0,El.useRef)(null),{className:i,...n}=r;return(0,El.useImperativeHandle)(e,()=>t.current,[t.current]),El.default.createElement("jp-toolbar",{ref:t,...n,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Tl,Nxt,cY=p(()=>{Te();Tl=N(re());Ve();Q().register(JC());Nxt=(0,Tl.forwardRef)((r,e)=>{let t=(0,Tl.useRef)(null),{className:i,horizontalViewportLock:n,verticalViewportLock:s,anch
6275or:o,delay:a,position:l,autoUpdateMode:c,visible:u,anchorElement:d,...f}=r;return ye(t,"dismiss",r.onDismiss),$(t,"visible",r.visible),$(t,"anchorElement",r.anchorElement),(0,Tl.useImperativeHandle)(e,()=>t.current,[t.current]),Tl.default.createElement("jp-tooltip",{ref:t,...f,anchor:r.anchor,delay:r.delay,position:r.position,"auto-update-mode":r.autoUpdateMode||r["auto-update-mode"],class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"horizontal-viewport-lock":r.horizontalViewportLock?"":void 0,"vertical-viewport-lock":r.verticalViewportLock?"":void 0,style:{...r.style}},r.children)})});var Al,qxt,uY=p(()=>{Te();Al=N(re());Ve();Q().register(e3());qxt=(0,Al.forwardRef)((r,e)=>{let t=(0,Al.useRef)(null),{className:i,expanded:n,selected:s,disabled:o,...a}=r;ye(t,"expanded-change",r.onExpand),ye(t,"selected-change",r.onSelect),$(t,"expanded",r.expanded),$(t,"selected",r.selected),$(t,"disabled",r.disabled),(0,Al.useImperativeHandle)(e,()=>t.current,[t.current]);let l=i??"";return t.current?.nested&&(l+=" nested"),Al.default.createElement("jp-tree-item",{ref:t,...a,class:l.trim(),exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Gs,Wxt,dY=p(()=>{Te();Gs=N(re());Ve();Q().register(i3());Wxt=(0,Gs.forwardRef)((r,e)=>{let t=(0,Gs.useRef)(null),{className:i,renderCollapsedNodes:n,currentSelected:s,...o}=r;return(0,Gs.useLayoutEffect)(()=>{t.current?.setItems()},[t.current]),$(t,"currentSelected",r.currentSelected),(0,Gs.useImperativeHandle)(e,()=>t.current,[t.current]),Gs.default.createElement("jp-tree-view",{ref:t,...o,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"render-collapsed-nodes":r.renderCollapsedNodes?"":void 0,style:{...r.style}},r.children)})});var Rl,Jxt,hY=p(()=>{Te();Rl=N(re());Ve();Q().register(u3());Jxt=(0,Rl.forwardRef)((r,e)=>{let t=(0,Rl.useRef)(null),{className:i,filterSelected:n,filterQuery:s,selection:o,options:a,maxSelected:l,noSuggestionsText:c,suggestionsAvailableText:u,loadingText:d,label:f,labelledby:m,placeholder:g,menuPlacement:b,showLoading:v,listItemTemplate:S,defaultListItemTemplate:k,menuOptionTemplate:_,defaultMenuOptionTemplate:E,listItemContentsTemplate:R,menuOptionContentsTemplate:P,optionsList:T,query:O,itemsPlaceholderElement:I,...A}=r;return $(t,"showLoading",r.showLoading),$(t,"listItemTemplate",r.listItemTemplate),$(t,"defaultListItemTemplate",r.defaultListItemTemplate),$(t,"menuOptionTemplate",r.menuOptionTemplate),$(t,"defaultMenuOptionTemplate",r.defaultMenuOptionTemplate),$(t,"listItemContentsTemplate",r.listItemContentsTemplate),$(t,"menuOptionContentsTemplate",r.menuOptionContentsTemplate),$(t,"optionsList",r.optionsList),$(t,"query",r.query),$(t,"itemsPlaceholderElement",r.itemsPlaceholderElement),(0,Rl.useImperativeHandle)(e,()=>t.current,[t.current]),Rl.default.createElement("jp-draft-picker",{ref:t,...A,selection:r.selection,options:r.options,"max-selected":r.maxSelected||r["max-selected"],"no-suggestions-text":r.noSuggestionsText||r["no-suggestions-text"],"suggestions-available-text":r.suggestionsAvailableText||r["suggestions-available-text"],"loading-text":r.loadingText||r["loading-text"],label:r.label,labelledby:r.labelledby,placeholder:r.placeholder,"menu-placement":r.menuPlacement||r["menu-placement"],class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,"filter-selected":r.filterSelected?"":void 0,"filter-query":r.filterQuery?"":void 0,style:{...r.style}},r.children)})});var Ol,r_t,fY=p(()=>{Te();Ol=N(re());Ve();Q().register(d3());r_t=(0,Ol.forwardRef)((r,e)=>{let t=(0,Ol.useRef)(null),{className:i,suggestionsAvailableText:n,...s}=r;return $(t,"suggestionsAvailableText",r.suggestionsAvailableText),(0,Ol.useImperativeHandle)(e,()=>t.current,[t.current]),Ol.default.createElement("jp-draft-picker-menu",{ref:t,...s,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Dl,a_t,pY=p(()=>{Te();Dl=N(re());Ve();Q().register(h3());a_t=(0,Dl.forwardRef)((r,e)=>{let t=(0,Dl.useRef)(null),{className:i,value:n,contentsTemplate:s,...o}=r;return $(t,"contentsTemplate",r.contentsTemplate),(0,Dl.useImperativeHandle)(e,()=>t.current,[t.current]),Dl.default.createElement("jp-draft-picker-menu-option",{ref:t,...o,value:r.value,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var $l,d_t,mY=p(()=>{Te();$l=N(re());Q().register(f3());d_t=(0,$l.forwardRef)((r,e)=>{let t=(0,$l.useRef)(null),{className:i,...n}=r;return(0,$l.useImperativeHandle)(e,()=>t.current,[t.current]),$l.default.createElement("jp-draft-picker-list",{ref:t,...n,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var Ml,g_t,gY=p(()=>{Te();
6275Ml=N(re());Ve();Q().register(p3());g_t=(0,Ml.forwardRef)((r,e)=>{let t=(0,Ml.useRef)(null),{className:i,value:n,contentsTemplate:s,...o}=r;return $(t,"contentsTemplate",r.contentsTemplate),(0,Ml.useImperativeHandle)(e,()=>t.current,[t.current]),Ml.default.createElement("jp-draft-picker-list-item",{ref:t,...o,value:r.value,class:r.className,exportparts:r.exportparts,for:r.htmlFor,part:r.part,tabindex:r.tabIndex,style:{...r.style}},r.children)})});var bY=p(()=>{wK();SK();CK();IK();kK();EK();TK();AK();OK();DK();$K();MK();PK();FK();LK();NK();BK();jK();zK();qK();HK();VK();UK();WK();GK();KK();YK();XK();JK();ZK();QK();eY();tY();rY();iY();nY();sY();oY();aY();lY();cY();uY();dY();hY();fY();pY();mY();gY()});var vY,yY,fi,Ks,Ff,Pl,g3=p(()=>{ta();Xe();Rt();vY=N(re()),yY=N(J6()),fi=class extends B{constructor(){super(),this._rootDOM=null}static create(e){return new class extends fi{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){J.sendMessage(this,B.Msg.UpdateRequest)}onBeforeDetach(e){this._rootDOM!==null&&(this._rootDOM.unmount(),this._rootDOM=null)}renderDOM(){return new Promise(e=>{let t=this.render();this._rootDOM===null&&(this._rootDOM=(0,yY.createRoot)(this.node)),Array.isArray(t)?(this._rootDOM.render(t),requestIdleCallback(()=>e())):t?(this._rootDOM.render(t),requestIdleCallback(()=>e())):(this._rootDOM.unmount(),this._rootDOM=null,requestIdleCallback(()=>e()))})}},Ks=class extends fi{constructor(e){super(),this._modelChanged=new te(this),this.model=e??null}get modelChanged(){return this._modelChanged}set model(e){this._model!==e&&(this._model&&this._model.stateChanged.disconnect(this.update,this),this._model=e,e&&e.stateChanged.connect(this.update,this),this.update(),this._modelChanged.emit(void 0))}get model(){return this._model}dispose(){this.isDisposed||(this._model=null,super.dispose())}},Ff=class extends vY.Component{constructor(e){super(e),this.slot=(t,i)=>{this.props.shouldUpdate&&!this.props.shouldUpdate(t,i)||this.setState({value:[t,i]})},this.state={value:[this.props.initialSender,this.props.initialArgs]}}componentDidMount(){this.props.signal.connect(this.slot)}componentWillUnmount(){this.props.signal.disconnect(this.slot)}render(){return this.props.children(...this.state.value)}},Pl=class{constructor(){this.stateChanged=new te(this),this._isDisposed=!1}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,te.clearData(this))}}});function y3(r){var e,t,i;let n=(e=r.noFocusOnClick)!==null&&e!==void 0&&e?void 0:u=>{var d;u.button===0&&((d=r.onClick)===null||d===void 0||d.call(r),u.target.focus())},s=(t=r.noFocusOnClick)!==null&&t!==void 0&&t?u=>{var d;u.button===0&&(u.preventDefault(),(d=r.onClick)===null||d===void 0||d.call(r))}:void 0,o=u=>{var d;let{key:f}=u;(f==="Enter"||f===" ")&&((d=r.onClick)===null||d===void 0||d.call(r))},l=(()=>r.enabled===!1&&r.disabledTooltip?r.disabledTooltip:r.pressed&&r.pressedTooltip?r.pressedTooltip:r.tooltip||r.iconLabel)(),c=r.enabled===!1;return Lf.createElement(RK,{appearance:"stealth",className:r.className?r.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-disabled":c,"aria-label":r.label||l,"aria-pressed":r.pressed,"aria-haspopup":r["aria-haspopup"],"aria-expanded":r["aria-expanded"],"aria-controls":r["aria-controls"],...gs.normalizeDataset(r.dataset),disabled:c,onClick:n,onMouseDown:s,onKeyDown:o,title:l},(r.icon||r.iconClass)&&Lf.createElement(j.resolveReact,{icon:r.pressed&&(i=r.pressedIcon)!==null&&i!==void 0?i:r.icon,iconClass:er(r.iconClass,"jp-Icon"),tag:null}),r.label&&Lf.createElement("span",{className:"jp-ToolbarButtonComponent-label"},r.label))}function h2e(r){return r.addClass("jp-ToolbarButton"),r}var Lf,u2e,d2e,qb,xY,b3,Fl,Hb,xd,v3,Vb,gs,_Y=p(()=>{bY();Te();Sn();Fr();vy();ta();Cp();Rt();oo();Lf=N(re());_h();ao();g3();Q().register([Mf(),Pf()]);F2();u2e="jp-Toolbar",d2e="jp-Toolbar-item",qb="toolbar-popup-opener",xY="jp-Toolbar-spacer",b3=class extends Tr{constructor(){super(...arguments),this._dirty=!1}onFitRequest(e){super.onFitRequest(e),this.parent.isAttached&&(Bd(this.widgets,t=>!t.isHidden)?(this.parent.node.style.minHeight="var(--jp-private-toolbar-height)",this.parent.removeClass("jp-Toolbar-micro")):(this.parent.node.style.minHeight="",this.parent.addClass("jp-Toolbar-micro"))),this._dirty=!0,this.parent.parent&&J.sendMessage(this.parent.parent,B.Msg.FitRequest),this._dirty&&J.sendMessage(this.parent,B.Msg.UpdateRequest)}onUpdateRequest(e){super.onUpdateRequest(e),this.parent.isVisible&&(this._dirty=!1)}onChildShown(e){super.onChildShown(e),this.parent.fit()}onChildHidden(e){super.onChildHidden(e),this.parent.fit()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}attachWidget(e,t){super.attachWidget(e,t),this.parent.fit()}detachWidget(e,t){super.detachWidget(e,t),this.parent.fit()}},Fl=class extends B{constructor(e={}){var t,i;super({node:document.createElement("jp-toolbar")}),this.addClass(u2e),this.layout=(t=e.layout)!==null&&t!==void 0?t:new b3,this.noFocusOnClick=(i=e.noFocusOnClick)!==null&&i!==void 0?i:!1}names(){let e=this.layout;return _p(e.widgets,t=>gs.nameProperty.get(t))}addItem(e,t){let i=this.layout;return this.insertItem(i.widgets.length,e,t)}insertItem(e,t,i){if(xn(this.names(),a=>a===t))return!1;i.addClass(d2e);let s=this.layout,o=Math.max(0,Math.min(e,s.widgets.length));return s.insertWidget(o,i),gs.nameProperty.set(i,t),i.node.dataset.jpItemName=t,this.noFocusOnClick&&(i.node.dataset.noFocusOnClick="true"),!0}insertAfter(e,t,i){return this.insertRelative(e,1,t,i)}insertBefore(e,t,i){return this.insertRelative(e,0,t,i)}insertRelative(e,t,i,n){let s=_p(this.names(),(a,l)=>({name:a,index:l})),o=xn(s,a=>a.name===e);return o?this.insertItem(o.index+t,i,n):!1}handleEvent(e){switch(e.type){case"click":this.handleClick(e);break;default:break}}handleClick(e){if(e.stopPropagation(),e.target instanceof HTMLLabelElement){let t=e.target.getAttribute("for");
6275if(t&&this.node.querySelector(`#${t}`))return}this.node.contains(document.activeElement)||this.parent&&this.parent.activate()}onAfterAttach(e){this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this)}},Hb=class extends Fl{constructor(e={}){super(e),this.popupOpener=new Vb,this._widgetWidths=new Map,this._widgetPositions=new Map,this._zoomChanged=!0,this.insertItem(0,qb,this.popupOpener),this.popupOpener.hide(),this._resizer=new ic(async(t=!1)=>{await this._onResize(t)},500)}dispose(){this.isDisposed||(this._resizer&&this._resizer.dispose(),super.dispose())}insertAfter(e,t,i){return e===qb?!1:super.insertAfter(e,t,i)}insertRelative(e,t,i,n){let s=this._widgetPositions.get(e),o=(s??0)+t;return this.insertItem(o,i,n)}insertItem(e,t,i){var n;let s;if(i instanceof Vb)s=super.insertItem(e,t,i);else{let o=Math.max(0,Math.min(e,this.layout.widgets.length-1));s=super.insertItem(o,t,i),o!==e&&(e=Math.max(0,Math.min(e,this._widgetPositions.size)))}if(t!==qb&&this._widgetPositions.get(t)!==e){let o=(n=this._widgetPositions.get(t))!==null&&n!==void 0?n:this._widgetPositions.size;this._widgetPositions.forEach((a,l)=>{l!==qb&&(a>=e&&a<o?this._widgetPositions.set(l,a+1):a<=e&&a>o&&this._widgetPositions.set(l,a-1))}),this._widgetPositions.set(t,e),this.isVisible&&this._resizer.invoke(!0)}return s}onAfterShow(e){this._resizer.stop().then(()=>void this._resizer.invoke(!0))}onBeforeHide(e){this.popupOpener.hidePopup(),super.onBeforeHide(e)}onResize(e){super.onResize(e);let t=Math.round(window.outerWidth/window.innerWidth*100);t!==this._zoom&&(this._zoomChanged=!0,this._zoom=t),e.width>0&&this._resizer&&this._resizer.invoke()}async _onResize(e=!1){if(!(this.parent&&this.parent.isAttached))return;let t=this.node.clientWidth,i=this.popupOpener,n=32,s=2+5,o=i.isHidden?s:s+n;return this._getWidgetsToRemove(o,t,n).then(async a=>{var l,c;let{width:u,widgetsToRemove:d}=a;for(;d.length>0;){let f=d.pop(),m=gs.nameProperty.get(f);u-=this._widgetWidths.get(m)||0;let g=(l=this._widgetPositions.get(m))!==null&&l!==void 0?l:0,b=this._widgetPositions.size,v=i.widgetAt(0);if(v){let k=gs.nameProperty.get(v);b=(c=this._widgetPositions.get(k))!==null&&c!==void 0?c:b}let S=g-b;i.insertWidget(S,f)}if(i.widgetCount()>0){let f=[],m=0,g=i.widgetCount();for(;m<g;){let b=i.widgetAt(m);
6275if(b)u+=this._getWidgetWidth(b),g-f.length===1&&(u-=n);else break;if(u<t)f.push(b);else break;m++}for(;f.length>0;){let b=f.shift(),v=gs.nameProperty.get(b);this._widgetPositions.has(v)?this.insertItem(this._widgetPositions.get(v),v,b):this.addItem(v,b)}}i.widgetCount()>0?(i.updatePopup(),i.show()):i.hide(),e&&await this._onResize()}).catch(a=>{console.error("Error while computing the ReactiveToolbar",a)})}async _getWidgetsToRemove(e,t,i){var n;let s=this.popupOpener,o=[...this.layout.widgets],a=o.length-1,l=[],c=0;for(;c<a;){let u=o[c],d=gs.nameProperty.get(u),f;this._zoomChanged?f=await this._saveWidgetWidth(d,u):f=this._getWidgetWidth(u)||await this._saveWidgetWidth(d,u),e+=f,l.length===0&&s.isHidden&&e+i>t&&(e+=i),(e>t||((n=this._widgetPositions.get(d))!==null&&n!==void 0?n:0)>c)&&l.push(u),c++}return this._zoomChanged=!1,{width:e,widgetsToRemove:l}}async _saveWidgetWidth(e,t){t instanceof fi&&await t.renderPromise;let i=t.hasClass(xY)?2:t.node.clientWidth;return this._widgetWidths.set(e,i),i}_getWidgetWidth(e){let t=gs.nameProperty.get(e);return this._widgetWidths.get(t)||0}};(function(r){function e(){return new gs.Spacer}r.createSpacerItem=e})(Fl||(Fl={}));xd=class extends fi{constructor(e={}){var t,i;super(),this.props=e,h2e(this),this._enabled=(t=e.enabled)!==null&&t!==void 0?t:!0,this._pressed=this._enabled&&((i=e.pressed)!==null&&i!==void 0?i:!1),this._onClick=e.onClick}set pressed(e){this.enabled&&e!==this._pressed&&(this._pressed=e,this.update())}get pressed(){return this._pressed}set enabled(e){e!=this._enabled&&(this._enabled=e,this._enabled||(this._pressed=!1),this.update())}get enabled(){return this._enabled}set onClick(e){e!==this._onClick&&(this._onClick=e,this.update())}get onClick(){return this._onClick}render(){return Lf.createElement(y3,{...this.props,noFocusOnClick:this.props.noFocusOnClick,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}},v3=class extends B{constructor(){super({node:document.createElement("jp-toolbar")}),this.width=0,this.node.setAttribute("aria-label","Responsive popup toolbar"),this.addClass("jp-Toolbar"),this.addClass("jp-Toolbar-responsive-popup"),this.addClass("jp-ThemedContainer"),this.layout=new Tr,B.attach(this,document.body),this.hide()}updateWidth(e){e>0&&(this.width=e,this.node.style.width=`${e}px`)}alignTo(e){let{height:t,width:i,x:n,y:s}=e.node.getBoundingClientRect(),o=this.width;this.node.style.left=`${n+i-o+1}px`,this.node.style.top=`${s+t+1}px`}insertWidget(e,t){this.layout.insertWidget(e,t)}widgetCount(){return this.layout.widgets.length}widgetAt(e){return this.layout.widgets[e]}},Vb=class extends xd{constructor(e={}){let t=(e.translator||gt).load("jupyterlab");super({icon:SR,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")}),this.addClass("jp-Toolbar-responsive-opener"),this.popup=new v3}addWidget(e){this.popup.insertWidget(0,e)}insertWidget(e,t){this.popup.insertWidget(e,t)}dispose(){this.isDisposed||(this.popup.dispose(),super.dispose())}hide(){super.hide(),this.hidePopup()}hidePopup(){this.popup.hide()}updatePopup(){this.popup.updateWidth(this.parent.node.clientWidth),this.popup.alignTo(this.parent)}widgetAt(e){return this.popup.widgetAt(e)}widgetCount(){return this.popup.widgetCount()}handleClick(){this.updatePopup(),this.popup.setHidden(!this.popup.isHidden)}};(function(r){function e(n){if(!n)return;let s={};for(let[o,a]of Object.entries(n)){let l=o.startsWith("data-")?o:`data-${o}`;s[l]=a}return s}r.normalizeDataset=e;function t(n){var s,o;let{commands:a,id:l,args:c}=n,u=a.iconClass(l,c),d=a.iconLabel(l,c),f=(s=n.icon)!==null&&s!==void 0?s:a.icon(l,c),m=a.label(l,c),g=a.className(l,c),b;a.isToggleable(l,c)&&(b=a.isToggled(l,c),b&&(g+=" lm-mod-toggled")),a.isVisible(l,c)||(g+=" lm-mod-hidden");let v=typeof n.label=="function"?n.label(c??{}):n.label,S=a.caption(l,c)||v||m||d,k=a.keyBindings.find(I=>I.command===l);if(k){let I=k.keys.map(Ai.formatKeystroke).join(", ");S=`${S} (${I})`}let _=()=>{a.execute(l,c)},E=a.isEnabled(l,c),R=n,{"aria-haspopup":P,"aria-expanded":T,"aria-controls":O}=R;return{className:g,dataset:{"data-command":n.id},noFocusOnClick:n.noFocusOnClick,icon:f,iconClass:u,tooltip:(o=n.caption)!==null&&o!==void 0?o:S,onClick:_,enabled:E,label:v??m,pressed:b,"aria-haspopup":P,"aria-expanded":T,"aria-controls":O}}r.propsFromCommand=t,r.nameProperty=new Cr({name:"name",create:()=>""});class i extends B{constructor(){super(),this.addClass(xY)}}r.Spacer=i})(gs||(gs={}))});var wY=p(()=>{Rt()});var Nf,SY=p(()=>{Fr();Nf=N(re())});var CY=p(()=>{Sn();Rt()});var Ub,IY=p(()=>{Rt();Ub=class extends B{constructor(){super(),this.addClass("jp-Spinner"),this.node.tabIndex=-1;let e=document.createElement("div");e.className="jp-SpinnerContent",this.node.appendChild(e)}onActivateRequest(e){this.node.focus()}}});var Ll,Wb,kY=p(()=>{_h();(function(r){function e(n,s=""){t(n,"select",s),t(n,"textarea",s),t(n,"input",s),t(n,"button",s)}r.styleNode=e;function t(n,s,o=""){if(n.localName===s&&n.classList.add("jp-mod-styled"),n.localName==="select"){let l=n.hasAttribute("multiple");i(n,l)}let a=n.getElementsByTagName(s);for(let l=0;l<a.length;l++){let c=a[l];if(c.classList.add("jp-mod-styled"),o&&c.classList.add(o),s==="select"){let u=c.hasAttribute("multiple");i(c,u)}}}r.styleNodeByTag=t;function i(n,s){let o=document.createElement("div");return o.classList.add("jp-select-wrapper"),n.addEventListener("focus",Wb.onFocus),n.addEventListener("blur",Wb.onFocus),n.classList.add("jp-mod-styled"),n.parentElement&&n.parentElement.replaceChild(o,n),o.appendChild(n),s?o.classList.add("multiple"):o.appendChild(yR.element
6275({tag:"span",stylesheet:"select",right:"8px",top:"5px",width:"18px"})),o}r.wrapSelect=i})(Ll||(Ll={}));(function(r){function e(t){let n=t.target.parentElement;n&&(t.type==="focus"?n.classList.add("jp-mod-focused"):n.classList.remove("jp-mod-focused"))}r.onFocus=e})(Wb||(Wb={}))});var EY=p(()=>{Xe();Rt()});var TY,AY=p(()=>{TY=N(re())});var RY,f2e,OY,Nl,x3,DY=p(()=>{Fr();RY=N(qe());ta();oo();Xe();Rt();f2e=3e3,OY=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){OY={passive:!0}}}))}catch{}Nl=class extends B{constructor(e){var t,i;let n=(t=e.renderer)!==null&&t!==void 0?t:Nl.defaultRenderer,s=document.createElement("div");s.className="jp-WindowedPanel";let o=s.appendChild(document.createElement("div"));o.classList.add("jp-WindowedPanel-scrollbar");let a=o.appendChild(n.createScrollbarViewportIndicator?n.createScrollbarViewportIndicator():Nl.defaultRenderer.createScrollbarViewportIndicator());a.classList.add("jp-WindowedPanel-scrollbar-viewportIndicator"),o.appendChild(n.createScrollbar()).classList.add("jp-WindowedPanel-scrollbar-content");let c=s.appendChild(n.createOuter());c.classList.add("jp-WindowedPanel-outer");let u=c.appendChild(document.createElement("div"));u.className="jp-WindowedPanel-inner";let d=u.appendChild(n.createViewport());d.classList.add("jp-WindowedPanel-viewport"),super({node:s}),this.jumped=new te(this),this._scrollbarItems={},this._viewportPaddingTop=0,this._viewportPaddingBottom=0,this._needsUpdate=!1,this._requiresTotalSizeUpdate=!1,this._timerToClearScrollStatus=null,super.layout=(i=e.layout)!==null&&i!==void 0?i:new x3,this.renderer=n,this._viewportIndicator=a,this._innerElement=u,this._isScrolling=null,this._outerElement=c,this._itemsResizeObserver=null,this._scrollbarElement=o,this._scrollToItem=null,this._scrollRepaint=null,this._scrollUpdateWasRequested=!1,this._updater=new ic(()=>this.update(),50),this._viewModel=e.model,this._viewport=d,e.scrollbar&&s.classList.add("jp-mod-virtual-scrollbar"),this.viewModel.stateChanged.connect(this.onStateChanged,this)}get isParentHidden(){return this._isParentHidden}set isParentHidden(e){this._isParentHidden=e}get layout(){return super.layout}get outerNode(){return this._outerElement}get viewportNode(){return this._viewport}get scrollbar(){return this.node.classList.contains("jp-mod-virtual-scrollbar")}set scrollbar(e){e?this.node.classList.add("jp-mod-virtual-scrollbar"):this.node.classList.remove("jp-mod-virtual-scrollbar"),this._adjustDimensionsForScrollbar(),this.update()}get viewModel(){return this._viewModel}dispose(){this._updater.dispose(),super.dispose()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e),e.stopPropagation();break;case"scrollend":this._onScrollEnd();break;case"scroll":this.onScroll(e);break}}scrollTo(e){if(this._renderScrollbar(),!this.viewModel.windowingActive){this._outerElement.scrollTo({top:e}),this._markProgrammaticScrollingDone();return}e=Math.max(0,e),e!==this.viewModel.scrollOffset?(this.viewModel.scrollOffset=e,this._scrollUpdateWasRequested=!0,this.update()):this._markProgrammaticScrollingDone()}scrollToItem(e,t="auto",i=.25,n){let s;!this._isScrolling||this._scrollToItem===null||this._scrollToItem[0]!==e||this._scrollToItem[1]!==t?(this._isScrolling&&this._isScrolling.reject("Scrolling to a new item is requested."),s=new RY.PromiseDelegate,this._isScrolling=s,s.promise.catch(console.debug)):s=this._isScrolling,this._scrollToItem=[e,t,i,n],this._resetScrollToItem();let o;if(!this.viewModel.windowingActive){let a=this._innerElement.querySelector(`[data-windowed-list-index="${e}"]`);if(!a||!(a instanceof HTMLElement))return console.debug(`Element with index ${e} not found`),Promise.resolve();o={totalSize:this._outerElement.scrollHeight,itemMetadata:{offset:a.offsetTop,size:a.clientHeight},currentOffset:this._outerElement.scrollTop}}return this.scrollTo(this.viewModel.getOffsetForIndexAndAlignment(Math.max(0,Math.min(e,this.viewModel.widgetCount-1)),t,i,o,n)),s.promise}onAfterAttach(e){super.onAfterAttach(e),this.viewModel.windowingActive?this._applyWindowingStyles():this._applyNoWindowingStyles(),this._addListeners(),this.viewModel.height=this.node.getBoundingClientRect().height;let t=window.getComputedStyle(this._viewport);this.viewModel.paddingTop=parseFloat(t.paddingTop),this._viewportPaddingTop=this.viewModel.paddingTop,this._viewportPaddingBottom=parseFloat(t.paddingBottom),this._scrollbarElement.addEventListener("pointerdown",this),this._outerElement.addEventListener("scrollend",this)}onBeforeDetach(e){this._removeListeners(),this._scrollbarElement.removeEventListener("pointerdown",this),this._outerElement.removeEventListener("scrollend",this),super.onBeforeDetach(e)}onScroll(e){let{clientHeight:t,scrollHeight:i,scrollTop:n}=e.currentTarget;if(!this._scrollUpdateWasRequested&&Math.abs(this.viewModel.scrollOffset-n)>1){let s=Math.max(0,Math.min(n,i-t));this.viewModel.scrollOffset=s,this._renderScrollbar(),this.viewModel.windowingActive&&(this._scrollUpdateWasRequested=!1,this._viewport.dataset.isScrolling!="true"&&(this._viewport.dataset.isScrolling="true"),this._timerToClearScrollStatus&&window.clearTimeout(this._timerToClearScrollStatus),this._timerToClearScrollStatus=window.setTimeout(()=>{this._onScrollEnd()},750),this.update())}}onResize(e){let t=this.viewModel.height;this.viewModel.height=e.height>=0?e.height:this.node.getBoundingClientRect().height,this.viewModel.height!==t&&this._updater.invoke(),super.onResize(e),this._updater.invoke()}onStateChanged(e,t){switch(t.name){case"windowingActive":if(this._removeListeners(),this.viewModel.windowingActive){this._applyWindowingStyles(),this.onScroll({currentTarget:this.node}),this._addListeners();return}else this._applyNoWindowingStyles(),this._addListeners();break;case"estimatedWidgetSize":this._updateTotalSize();return}this.update()}onUpdateRequest(e){this.viewModel.windowingActive?this._scrollRepaint===null?(this._needsUpdate=!1,this._scrollRepaint=window.requestAnimationFrame(()=>{this._scrollRepaint=null,this._update(),this._needsUpdate&&this.update()})):this._needsUpdate=!0:this._update()}_adjustDimensionsForScrollbar(){let e=this._outerElement,t=this._scrollbarElement;if(this.scrollbar){let i=e.offsetWidth-e.clientWidth;
6275i==0?(i=1e3,e.style.paddingRight=`${i}px`,e.style.boxSizing="border-box"):e.style.paddingRight="0",e.style.width=`calc(100% + ${i}px)`,this._innerElement.style.marginRight=`${t.offsetWidth}px`}else e.style.width="100%",this._innerElement.style.marginRight="",e.style.paddingRight="0",e.style.boxSizing=""}_addListeners(){this._scrollbarResizeObserver||(this._scrollbarResizeObserver=new ResizeObserver(this._adjustDimensionsForScrollbar.bind(this)),this._scrollbarResizeObserver.observe(this._outerElement),this._scrollbarResizeObserver.observe(this._scrollbarElement)),this._itemsResizeObserver||(this._itemsResizeObserver=new ResizeObserver(this._onItemResize.bind(this)));for(let e of this.layout.widgets)this._itemsResizeObserver.observe(e.node),e.disposed.connect(()=>{var t;return(t=this._itemsResizeObserver)===null||t===void 0?void 0:t.unobserve(e.node)});!this._areaResizeObserver&&this.viewModel.windowingActive&&(this._areaResizeObserver=new ResizeObserver(this._onAreaResize.bind(this)),this._areaResizeObserver.observe(this._innerElement)),this._outerElement.addEventListener("scroll",this,OY)}_applyNoWindowingStyles(){this._outerElement.style.removeProperty("overflow-anchor"),this._viewport.style.position="relative",this._viewport.style.contain="",this._viewport.style.top="0px",this._viewport.style.minHeight="",this._innerElement.style.height=""}_applyWindowingStyles(){this._outerElement.style.setProperty("overflow-anchor","none"),this._viewport.style.position="absolute",this._viewport.style.contain="layout"}_removeListeners(){var e,t,i;this._outerElement.removeEventListener("scroll",this),(e=this._areaResizeObserver)===null||e===void 0||e.disconnect(),this._areaResizeObserver=null,(t=this._itemsResizeObserver)===null||t===void 0||t.disconnect(),this._itemsResizeObserver=null,(i=this._scrollbarResizeObserver)===null||i===void 0||i.disconnect(),this._scrollbarResizeObserver=null}_update(){var e;if(this.isDisposed||!this.layout)return;let t=this.viewModel.getRangeToRender();if(t!==null){let[n,s]=t;this._renderScrollbar();let o=[];if(s>=0)for(let l=n;l<=s;l++){let c=this.viewModel.widgetRenderer(l);c.dataset.windowedListIndex=`${l}`,o.push(c)}let a=this.layout.widgets.length;for(let l=a-1;l>=0;l--)o.includes(this.layout.widgets[l])||((e=this._itemsResizeObserver)===null||e===void 0||e.unobserve(this.layout.widgets[l].node),this.layout.removeWidget(this.layout.widgets[l]));for(let l=0;l<o.length;l++){let c=o[l];this._itemsResizeObserver&&!this.layout.widgets.includes(c)&&(this._itemsResizeObserver.observe(c.node),c.disposed.connect(()=>{var u;return(u=this._itemsResizeObserver)===null||u===void 0?void 0:u.unobserve(c.node)})),this.layout.insertWidget(l,c)}if(this.viewModel.windowingActive){if(s>=0){this._updateTotalSize();let[l,c]=this.viewModel.getSpan(n,s);this._viewport.style.transform=`translateY(${l}px)`}else this._innerElement.style.height="0px",this._viewport.style.top="0px",this._viewport.style.minHeight="0px";this._scrollUpdateWasRequested&&(this._outerElement.scrollTop=this.viewModel.scrollOffset,this._scrollUpdateWasRequested=!1,this._markProgrammaticScrollingDone())}}let i=-1;for(let n of this._viewport.children){let s=parseInt(n.dataset.windowedListIndex,10);if(s<i)throw new Error("Inconsistent dataset index");i=s}}_onAreaResize(e){this._scrollBackToItemOnResize()}_onItemResize(e){if(this._resetScrollToItem(),this.isHidden||this.isParentHidden)return;let t=[];for(let i of e)i.target.isConnected&&t.push({index:parseInt(i.target.dataset.windowedListIndex,10),size:i.borderBoxSize[0].blockSize});this.viewModel.setWidgetSize(t)&&(this._scrollBackToItemOnResize(),this.update())}_scrollBackToItemOnResize(){this.viewModel.windowingActive&&this._scrollToItem&&this.scrollToItem(...this._scrollToItem).catch(e=>{console.log(e)})}_resetScrollToItem(){this._resetScrollToItemTimeout&&clearTimeout(this._resetScrollToItemTimeout),this._scrollToItem&&(this._resetScrollToItemTimeout=window.setTimeout(()=>{this._scrollToItem=null,this._markProgrammaticScrollingDone()},f2e))}_markProgrammaticScrollingDone(){this._isScrolling&&(this._isScrolling.resolve(),this._isScrolling=null)}_renderScrollbar(){var e,t;if(!this.scrollbar)return[];let{node:i,renderer:n,viewModel:s}=this,o=i.querySelector(".jp-WindowedPanel-scrollbar-content"),a=[],l=new Set,c=(g,b)=>{if(g instanceof HTMLElement)return g;l.add(g.key);let v={index:b},S=this._scrollbarItems[g.key];if(S&&!S.isDisposed)try{return S.render(v)}catch{return document.createElement("div")}else{this._scrollbarItems[g.key]=g;try{return g.render(v)}catch{return document.createElement("div")}}},u=s.itemsList,d=(e=u?.length)!==null&&e!==void 0?e:s.widgetCount;for(let g=0;g<d;g++){let b=(t=u?.get)===null||t===void 0?void 0:t.call(u,g),v=n.createScrollbarItem(this,g,b),S=c(v,g);S.classList.add("jp-WindowedPanel-scrollbar-item"),S.dataset.index=`${g}`,a.push(S)}let f=Object.keys(this._scrollbarItems).filter(g=>!l.has(g));for(let g of f)this._scrollbarItems[g].dispose(),delete this._scrollbarItems[g];let m=[...o.childNodes];if((m.length!==a.length||!m.every((g,b)=>a[b]===g))&&o.replaceChildren(...a),this.scrollbar){let g=this.viewModel.getRangeToRender({virtual:!0});if(g!==null){let[b,v]=g,S=a[b],k=a[v];this._viewportIndicator.style.top=S.offsetTop-1+"px",this._viewportIndicator.style.height=k.offsetTop-S.offsetTop+k.offsetHeight+"px"}}return a}_evtPointerDown(e){let t=e.target;for(;t&&t.parentElement;){if(t.hasAttribute("data-index")){let i=parseInt(t.getAttribute("data-index"),10);return void(async()=>
6275{await this.scrollToItem(i),this.jumped.emit(i)})()}t=t.parentElement}}_onScrollEnd(){this._timerToClearScrollStatus&&window.clearTimeout(this._timerToClearScrollStatus),this._viewport.dataset.isScrolling="false",this._requiresTotalSizeUpdate&&this._updateTotalSize(),this._requiresTotalSizeUpdate=!1}_updateTotalSize(){if(this.viewModel.windowingActive){if(this._viewport.dataset.isScrolling=="true"){this._requiresTotalSizeUpdate=!0;return}let t=this.viewModel.getEstimatedTotalSize()+this._viewportPaddingTop+this._viewportPaddingBottom;this._innerElement.style.height=`${t}px`}}};Nl.DEFAULT_WIDGET_SIZE=50;x3=class extends Tr{constructor(){super({fitPolicy:"set-no-constraint"})}get parent(){return super.parent}set parent(e){super.parent=e}attachWidget(e,t){let i=this.parent.viewportNode.children[e];this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeAttach),this.parent.viewportNode.insertBefore(t.node,i),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&J.sendMessage(t,B.Msg.BeforeDetach),this.parent.viewportNode.removeChild(t.node),this.parent.isAttached&&J.sendMessage(t,B.Msg.AfterDetach)}moveWidget(e,t,i){let n=this.parent.viewportNode.children[t];e<t?n.insertAdjacentElement("afterend",i.node):n.insertAdjacentElement("beforebegin",i.node)}onUpdateRequest(e){}};(function(r){class e{createOuter(){return document.createElement("div")}createScrollbar(){return document.createElement("ol")}createScrollbarViewportIndicator(){return document.createElement("div")}createScrollbarItem(i,n){let s=document.createElement("li");return s.appendChild(document.createTextNode(`${n}`)),s}createViewport(){return document.createElement("div")}}r.Renderer=e,r.defaultRenderer=new e})(Nl||(Nl={}))});var $Y=p(()=>{XR();JR();LN();jN();qN();GR();NN();VN();wY();SY();CY();IY();kY();EY();AY();_Y();g3();DY()});var MY,PY,Gb,FY=p(()=>{MY="jp-HoverBox",PY="-1000";(function(r){function e(t){let{anchor:i,host:n,node:s,privilege:o,outOfViewDisplay:a}=t,l=n.getBoundingClientRect();s.classList.contains(MY)||s.classList.add(MY),s.style.visibility&&(s.style.visibility=""),s.style.zIndex===""&&(s.style.zIndex=""),s.style.maxHeight="",s.style.marginTop="";let c=t.style||window.getComputedStyle(s),u=i.top-l.top,d=l.bottom-i.bottom,f=parseInt(c.marginTop,10)||0,m=parseInt(c.marginLeft,10)||0,g=parseInt(c.minHeight,10)||t.minHeight,b=parseInt(c.maxHeight,10)||t.maxHeight,v=o==="forceAbove"?!1:o==="forceBelow"?!0:o==="above"?u<b&&u<d:d>=b||d>=u;if(v?b=Math.min(d-f,b):(b=Math.min(u,b),s.style.marginTop="0px"),s.style.maxHeight=`${b}px`,!(b>=g&&(d>=g||u>=g))){s.style.zIndex=PY,s.style.visibility="hidden";return}t.size?(s.style.width=`${t.size.width}px`,s.style.height=`${t.size.height}px`,s.style.contain="strict"):(s.style.contain="",s.style.width="auto",s.style.height="");let k=t.size?t.size.height:s.getBoundingClientRect().height,_=t.offset&&t.offset.vertical&&t.offset.vertical.above||0,E=t.offset&&t.offset.vertical&&t.offset.vertical.below||0,R=v?l.bottom-d+E:l.top+u-k+_;s.style.top=`${Math.floor(R)}px`;let P=t.offset&&t.offset.horizontal||0,T=i.left+P;s.style.left=`${Math.ceil(T)}px`;let O=s.getBoundingClientRect(),I=O.right;I>window.innerWidth&&(T-=I-window.innerWidth,I=window.innerWidth,s.style.left=`${Math.ceil(T)}px`),T<P-m&&(T=P-m,s.style.left=`${Math.ceil(T)}px`),s.style.zIndex="-1000";let A=O.bottom,D=n.contains(document.elementFromPoint(T,R)),V=n.contains(document.elementFromPoint(I,R)),Z=n.contains(document.elementFromPoint(I,A)),we=n.contains(document.elementFromPoint(T,A));s.style.zIndex="";let q=D||V,se=we||Z,oe=D||we,Pe=Z||V,or=A-R,At=I-T,mt=R<l.top,tt=A>l.bottom,qn=T+m<l.left,lt=I>l.right,We=!1,Ji=!1,pi=!1;if(mt)switch(a?.top||"hidden-inside"){case"hidden-inside":q||(We=!0);break;case"hidden-outside":se||(We=!0);break;case"stick-inside":l.top>R&&(R=l.top,pi=!0);break;case"stick-outside":l.top>A&&(R=l.top-or,pi=!0);break}if(tt)switch(a?.bottom||"hidden-outside"){case"hidden-inside":se||(We=!0);break;case"hidden-outside":q||(We=!0);break;case"stick-inside":l.bottom<A&&(R=l.bottom-or,pi=!0);break;case"stick-outside":l.bottom<R&&(R=l.bottom,pi=!0);break}if(qn)switch(a?.left||"hidden-inside"){case"hidden-inside":oe||(We=!0);break;case"hidden-outside":Pe||(We=!0);break;case"stick-inside":l.left>T+m&&(T=l.left-m,Ji=!0);break;case"stick-outside":l.left>I&&(T=l.left-m-At,Ji=!0);break}if(lt)switch(a?.right||"hidden-outside"){case"hidden-inside":Pe||(We=!0);break;case"hidden-outside":oe||(We=!0);break;case"stick-inside":l.right<I&&(T=l.right-At,Ji=!0);break;case"stick-outside":l.right<T&&(T=l.right,Ji=!0);break}We&&(s.style.zIndex=PY,s.style.visibility="hidden"),Ji&&(s.style.left=`${Math.ceil(T)}px`),pi&&(s.style.top=`${Math.ceil(R)}px`)}r.setGeometry=e})(Gb||(Gb={}))});var _3,v2t,y2t,LY=p(()=>{_3=N(qe()),v2t=new _3.Token("@jupyterlab/ui-components:IFormRendererRegistry","A service for settings form renderer registration."),y2t=new _3.Token("@jupyterlab/ui-components:ILabIconManager","A service to register and request icons.")});var NY=p(()=>{});var Ys=p(()=>{$Y();_h();FY();LY();ao();NY()});function Hc(r){return Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hc(r)}var w3=p(()=>{});function BY(r,e){if(Hc(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Hc(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var jY=p(()=>{w3()});function zY(r){var e=BY(r,"string");return Hc(e)=="symbol"?e:e+""}var qY=p(()=>{w3();jY()});function F2t(r,e,t){return(e=zY(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var p2e=p(()=>{qY()});function HY(){return HY=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)({}).hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},HY.apply(null,arguments)}var m2e=p(()=>{});function S3(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=Array(e);t<e;t++)i[t]=r[t];return i}var VY=p(()=>{});function z2t(r,e){if(r){if(typeof r=="string")return S3(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S3(r,e):void 0}}var g2e=p(()=>{VY()});var Kb,C3,I3=p(()=>{Xe();Kb=class{constructor(e={}){if(this._map=new Map,this._changed=new te(this),this._isDisposed=!1,this._itemCmp=e.itemCmp||C3.itemCmp,e.values)for(let t in e.values)this._map.set(t,e.values[t])}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,t){let i=this._map.get(e);if(t===void 0)throw Error("Cannot set an undefined value, use remove");let n=this._itemCmp;return i!==void 0&&n(i,t)||(this._map.set(e,t),this._changed.emit({type:i?"change":"add",key:e,oldValue:i,newValue:t})),i}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){let e=[];
6275return this._map.forEach((t,i)=>{e.push(i)}),e}values(){let e=[];return this._map.forEach((t,i)=>{e.push(t)}),e}delete(e){let t=this._map.get(e);return this._map.delete(e)&&this._changed.emit({type:"remove",key:e,oldValue:t,newValue:void 0}),t}clear(){let e=this.keys();for(let t=0;t<e.length;t++)this.delete(e[t])}dispose(){this.isDisposed||(this._isDisposed=!0,te.clearData(this),this._map.clear())}};(function(r){function e(t,i){return t===i}r.itemCmp=e})(C3||(C3={}))});var k3,Yb,UY=p(()=>{k3=N(qe());ta();I3();Yb=class extends Kb{constructor(e={}){super({itemCmp:k3.JSONExt.deepEqual,values:e.values})}toJSON(){let e=Object.create(null),t=this.keys();for(let i of t){let n=this.get(i);n!==void 0&&(e[i]=k3.JSONExt.deepCopy(n))}return e}};(function(r){class e extends zr{constructor(i,n){super(i),this.args=n}}r.ChangeMessage=e})(Yb||(Yb={}))});var WY,GY=p(()=>{Xe();WY=class{constructor(e=""){this._text="",this._isDisposed=!1,this._changed=new te(this),this._text=e}get type(){return"String"}get changed(){return this._changed}set text(e){e.length===this._text.length&&e===this._text||(this._text=e,this._changed.emit({type:"set",start:0,end:e.length,value:e}))}get text(){return this._text}insert(e,t,i){this._text=this._text.slice(0,e)+t+this._text.slice(e),this._changed.emit({type:"insert",start:e,end:e+t.length,value:t,options:i})}remove(e,t,i){let n=this._text.slice(e,t);this._text=this._text.slice(0,e)+this._text.slice(t),this._changed.emit({type:"remove",start:e,end:t,value:n,options:i})}clear(){this.text=""}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,te.clearData(this),this.clear())}}});var Xb,E3,T3=p(()=>{Fr();Xe();Xb=class{constructor(e={}){if(this._array=[],this._isDisposed=!1,this._changed=new te(this),e.values)for(let t of e.values)this._array.push(t);this._itemCmp=e.itemCmp||E3.itemCmp}get type(){return"List"}get changed(){return this._changed}get length(){return this._array.length}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,te.clearData(this),this.clear())}[Symbol.iterator](){return this._array[Symbol.iterator]()}get(e){return this._array[e]}set(e,t){let i=this._array[e];if(t===void 0)throw new Error("Cannot set an undefined item");let n=this._itemCmp;n(i,t)||(this._array[e]=t,this._changed.emit({type:"set",oldIndex:e,newIndex:e,oldValues:[i],newValues:[t]}))}push(e){let t=this._array.push(e);return this._changed.emit({type:"add",oldIndex:-1,newIndex:this.length-1,oldValues:[],newValues:[e]}),t}insert(e,t){e===this._array.length?this._array.push(t):W.insert(this._array,e,t),this._changed.emit({type:"add",oldIndex:-2,newIndex:e,oldValues:[],newValues:[t]})}removeValue(e){let t=this._itemCmp,i=W.findFirstIndex(this._array,n=>t(n,e));return i<0||this.remove(i),i}remove(e){let t=W.removeAt(this._array,e);if(t!==void 0)return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[t]}),t}clear(){let e=this._array.slice();this._array.length=0,this._changed.emit({type:"clear",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t)return;let i=[this._array[e]];W.move(this._array,e,t),this._changed.emit({type:"move",oldIndex:e,newIndex:t,oldValues:i,newValues:i})}pushAll(e){let t=this.length;for(let i of e)this._array.push(i);return this._changed.emit({type:"add",oldIndex:-1,newIndex:t,oldValues:[],newValues:Array.from(e)}),this.length}insertAll(e,t){let i=e;for(let n of t)W.insert(this._array,e++,n);this._changed.emit({type:"add",oldIndex:-2,newIndex:i,oldValues:[],newValues:Array.from(t)})}removeRange(e,t){let i=this._array.slice(e,t);for(let n=e;n<t;n++)W.removeAt(this._array,e);return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,oldValues:i,newValues:[]}),this.length}};(function(r){function e(t,i){return t===i}r.itemCmp=e})(E3||(E3={}))});var Jb,KY=p(()=>{T3();Jb=class extends Xb{constructor(e){super(),this._inCompound=!1,this._isUndoable=!0,this._madeCompoundChange=!1,this._index=-1,this._stack=[],this._serializer=e,this.changed.connect(this._onListChanged,this)}get canRedo(){return this._index<this._stack.length-1}get canUndo(){return this._index>=0}beginCompoundOperation(e){this._inCompound=!0,this._isUndoable=e!==!1,this._madeCompoundChange=!1}endCompoundOperation(){this._inCompound=!1,this._isUndoable=!0,this._madeCompoundChange&&this._index++}undo(){if(!this.canUndo)return;let e=this._stack[this._index];this._isUndoable=!1;
6275for(let t of e.reverse())this._undoChange(t);this._isUndoable=!0,this._index--}redo(){if(!this.canRedo)return;this._index++;let e=this._stack[this._index];this._isUndoable=!1;for(let t of e)this._redoChange(t);this._isUndoable=!0}clearUndo(){this._index=-1,this._stack=[]}_onListChanged(e,t){if(this.isDisposed||!this._isUndoable)return;(!this._inCompound||!this._madeCompoundChange)&&(this._stack=this._stack.slice(0,this._index+1));let i=this._copyChange(t);this._stack[this._index+1]?this._stack[this._index+1].push(i):this._stack.push([i]),this._inCompound?this._madeCompoundChange=!0:this._index++}_undoChange(e){let t=0,i=this._serializer;switch(e.type){case"add":for(let n=e.newValues.length;n>0;n--)this.remove(e.newIndex);break;case"set":t=e.oldIndex;for(let n of e.oldValues)this.set(t++,i.fromJSON(n));break;case"remove":t=e.oldIndex;for(let n of e.oldValues)this.insert(t++,i.fromJSON(n));break;case"move":this.move(e.newIndex,e.oldIndex);break;case"clear":t=0;for(let n of e.oldValues)this.insert(t++,i.fromJSON(n));break;default:return}}_redoChange(e){let t=0,i=this._serializer;switch(e.type){case"add":t=e.newIndex;for(let n of e.newValues)this.insert(t++,i.fromJSON(n));break;case"set":t=e.newIndex;for(let n of e.newValues)this.set(e.newIndex++,i.fromJSON(n));break;case"remove":for(let n=e.oldValues.length;n>0;n--)this.remove(e.oldIndex);break;case"move":this.move(e.oldIndex,e.newIndex);break;case"clear":this.clear();break;default:return}}_copyChange(e){let t=[];for(let n of e.oldValues)t.push(this._serializer.toJSON(n));let i=[];for(let n of e.newValues)i.push(this._serializer.toJSON(n));return{type:e.type,oldIndex:e.oldIndex,newIndex:e.newIndex,oldValues:t,newValues:i}}};(function(r){class e{toJSON(i){return i}fromJSON(i){return i}}r.IdentitySerializer=e})(Jb||(Jb={}))});var YY,Zb,XY=p(()=>{YY=N(qe());Gn();Xe();Zb=class{constructor(e=null){this._value=null,this._changed=new te(this),this._isDisposed=!1,this._value=e}get type(){return"Value"}get isDisposed(){return this._isDisposed}get changed(){return this._changed}get(){return this._value}set(e){let t=this._value;YY.JSONExt.deepEqual(t,e)||(this._value=e,this._changed.emit({oldValue:t,newValue:e}))}dispose(){this._isDisposed||(this._isDisposed=!0,te.clearData(this),this._value=null)}};(function(r){class e{}r.IChangedArgs=e})(Zb||(Zb={}))});var b2e=p(()=>{XY();UY();T3();I3();GY();KY()});function fSt(r){let e=new A3(r);return r.startHidden||e.launch(),e}var A3,JY=p(()=>{Ys();Rt();A3=class extends B{constructor(e){super(),this.addClass("jp-ThemedContainer"),this._body=e.body,this._body.addClass("jp-StatusBar-HoverItem"),this._anchor=e.anchor,this._align=e.align,e.hasDynamicSize&&(this._observer=new ResizeObserver(()=>{this.update()})),(this.layout=new Tr).addWidget(e.body),this._body.node.addEventListener("resize",()=>{this.update()})}launch(){this._setGeometry(),B.attach(this,document.body),this.update(),this._anchor.addClass("jp-mod-clicked"),this._anchor.removeClass("jp-mod-highlight")}onUpdateRequest(e){this._setGeometry(),super.onUpdateRequest(e)}onAfterAttach(e){var t;document.addEventListener("click",this,!1),this.node.addEventListener("keydown",this,!1),window.addEventListener("resize",this,!1),(t=this._observer)===null||t===void 0||t.observe(this._body.node)}onBeforeDetach(e){var t;(t=this._observer)===null||t===void 0||t.disconnect(),document.removeEventListener("click",this,!1),this.node.removeEventListener("keydown",this,!1),window.removeEventListener("resize",this,!1)}onResize(){this.update()}dispose(){var e;(e=this._observer)===null||e===void 0||e.disconnect(),super.dispose(),this._anchor.removeClass("jp-mod-clicked"),this._anchor.addClass("jp-mod-highlight")}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"resize":this.onResize();break;default:break}}_evtClick(e){e.target&&!(this._body.node.contains(e.target)||this._anchor.node.contains(e.target))&&this.dispose()}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation(),e.preventDefault(),this.dispose();break;default:break}}_setGeometry(){let e=0,t=this._anchor.node.getBoundingClientRect(),i=this._body.node.getBoundingClientRect();this._align==="right"&&(e=-(i.width-t.width));let n=window.getComputedStyle(this._body.node);Gb.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:n})}}});function Bf(r){let{title:e,source:t,className:i,...n}=r;return ZY.createElement("span",{className:i?`jp-StatusBar-TextItem ${i}`:"jp-StatusBar-TextItem",title:e,...n},t)}var ZY,QY=p(()=>{ZY=N(re())});function Qb(r){let{spacing:e,children:t,className:i,...n}
6275=r,s=Vc.Children.toArray(t).filter(Boolean),o=s.length;return Vc.createElement("div",{className:`jp-StatusBar-GroupItem ${i||""}`,...n},s.map((a,l)=>{let c=`group-item-${l}`;return l===0?Vc.createElement("div",{key:c,style:{marginRight:`${e}px`}},a):l===o-1?Vc.createElement("div",{key:c,style:{marginLeft:`${e}px`}},a):Vc.createElement("div",{key:c,style:{margin:`0px ${e}px`}},a)}))}var Vc,eX=p(()=>{Vc=N(re())});var v2e,tX=p(()=>{v2e=N(re())});var y2e,rX=p(()=>{y2e=N(re())});var iX=p(()=>{eX();JY();tX();QY();rX()});var nX,sX=p(()=>{Fr();Gn();Rt();(function(r){r.statusItemDefaults={align:"left",rank:0,priority:0,isActive:()=>!0,activeStateChanged:void 0}})(nX||(nX={}))});var oX,ASt,aX=p(()=>{oX=N(qe()),ASt=new oX.Token("@jupyterlab/statusbar:IStatusBar","A service for the status bar on the application. Use this if you want to add new status bar items.")});var R3=p(()=>{iX();sX();aX()});var lX,jf,O3=p(()=>{Fr();lX=N(qe());km();(function(r){function e(o,a,l){return W.findFirstIndex(o,c=>dt.hitTest(c,a,l))}r.hitTestNodes=e;function t(o,a){return o.querySelector(`.${a}`)}r.findElement=t;function i(o,a){return o.getElementsByClassName(a)}r.findElements=i;function n(){return`id-${lX.UUID.uuid4()}`}r.createDomID=n;function s(o,a=document){let l=a.activeElement;return!!(l&&o.contains(l)&&(l.matches(":read-write")||l.shadowRoot&&s(l.shadowRoot,l.shadowRoot)))}r.hasActiveEditableElement=s})(jf||(jf={}))});var cX,ev,D3=p(()=>{cX=N(Ap());Xe();Rt();ev=class{constructor(e){this._currentChanged=new te(this),this._deferred=null,this._isDisposed=!1,this._widgetAdded=new te(this),this._widgetUpdated=new te(this);let t=this._focusTracker=new Am,i=this._pool=new cX.RestorablePool(e);this.namespace=e.namespace,t.currentChanged.connect((n,s)=>{s.newValue!==this.currentWidget&&(i.current=s.newValue)},this),i.added.connect((n,s)=>{this._widgetAdded.emit(s)},this),i.currentChanged.connect((n,s)=>{if(s===null&&t.currentWidget){i.current=t.currentWidget;return}this.onCurrentChanged(s),this._currentChanged.emit(s)},this),i.updated.connect((n,s)=>{this._widgetUpdated.emit(s)},this)}get currentChanged(){return this._currentChanged}get currentWidget(){return this._pool.current||null}get restored(){return this._deferred?Promise.resolve():this._pool.restored}get size(){return this._pool.size}get widgetAdded(){return this._widgetAdded}get widgetUpdated(){return this._widgetUpdated}async add(e){this._focusTracker.add(e),await this._pool.add(e),this._focusTracker.activeWidget||(this._pool.current=e)}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,this._pool.dispose(),this._focusTracker.dispose(),te.clearData(this))}find(e){return this._pool.find(e)}forEach(e){return this._pool.forEach(e)}filter(e){return this._pool.filter(e)}inject(e){return this._pool.inject(e)}has(e){return this._pool.has(e)}async restore(e){let t=this._deferred;if(t)return this._deferred=null,this._pool.restore(t);if(e)return this._pool.restore(e);console.warn("No options provided to restore the tracker.")}defer(e){this._deferred=e}async save(e){return this._pool.save(e)}onCurrentChanged(e){}}});function Mo(r={}){return new st(r).launch()}var $3,_d,st,Bl,tv=p(()=>{Sn();Ys();Fr();$3=N(qe());ta();Rt();_d=N(re());D3();st=class extends B{constructor(e={}){let t=document.createElement("dialog");t.ariaModal="true",super({node:t}),this._hasValidationErrors=!1,this._ready=new $3.PromiseDelegate,this._focusNodeSelector="",this.addClass("jp-Dialog"),this.addClass("jp-ThemedContainer");let i=Bl.handleOptions(e),n=i.renderer;if(this._host=i.host,this._defaultButton=i.defaultButton,this._buttons=i.buttons,this._hasClose=i.hasClose,this._buttonNodes=this._buttons.map(u=>n.createButtonNode(u)),this._checkboxNode=null,this._lastMouseDownInDialog=!1,i.checkbox){let{label:u="",caption:d="",checked:f=!1,className:m=""}=i.checkbox;this._checkboxNode=n.createCheckboxNode({label:u,caption:d??u,checked:f,className:m})}let s=this.layout=new Tr,o=new sn;o.addClass("jp-Dialog-content"),typeof e.body=="string"&&(o.addClass("jp-Dialog-content-small"),t.ariaLabel=[i.title,e.body].join(" ")),s.addWidget(o),this._body=i.body;let a=n.createHeader(i.title,()=>this.reject(),e),l=n.createBody(i.body),c=n.createFooter(this._buttonNodes,this._checkboxNode);o.addWidget(a),o.addWidget(l),o.addWidget(c),this._bodyWidget=l,this._primary=this._buttonNodes[this._defaultButton],this._focusNodeSelector=e.focu
6275sNodeSelector,st.tracker.add(this)}get ready(){return this._ready.promise}dispose(){let e=this._promise;e&&(this._promise=null,e.reject(void 0),W.removeFirstOf(Bl.launchQueue,e.promise)),super.dispose()}launch(){if(this._promise)return this._promise.promise;let e=this._promise=new $3.PromiseDelegate,t=Promise.all(Bl.launchQueue);return Bl.launchQueue.push(this._promise.promise),t.then(()=>this._promise?(B.attach(this,this._host),e.promise):Promise.resolve({button:st.cancelButton(),isChecked:null,value:null}))}resolve(e){this._promise&&(e===void 0&&(e=this._defaultButton),this._resolve(this._buttons[e]))}reject(){this._promise&&this._resolve(st.cancelButton())}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"mousedown":this._evtMouseDown(e);break;case"click":this._evtClick(e);break;case"input":this._evtInput(e);break;case"focus":this._evtFocus(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break;default:break}}onAfterAttach(e){let t=this.node;t.addEventListener("keydown",this,!0),t.addEventListener("contextmenu",this,!0),t.addEventListener("click",this,!0),document.addEventListener("mousedown",this,!0),document.addEventListener("focus",this,!0),document.addEventListener("input",this,!0),this._first=Bl.findFirstFocusable(this.node),this._original=document.activeElement;let i=()=>{var n;if(this._focusNodeSelector){let s=this.node.querySelector(".jp-Dialog-body"),o=s?.querySelector(this._focusNodeSelector);o&&(this._primary=o)}(n=this._primary)===null||n===void 0||n.focus(),this._ready.resolve()};this._bodyWidget instanceof fi&&this._bodyWidget.renderPromise!==void 0?this._bodyWidget.renderPromise.then(()=>{i()}).catch(()=>{console.error("Error while loading Dialog's body")}):i()}onAfterDetach(e){let t=this.node;t.removeEventListener("keydown",this,!0),t.removeEventListener("contextmenu",this,!0),t.removeEventListener("click",this,!0),document.removeEventListener("focus",this,!0),document.removeEventListener("mousedown",this,!0),document.removeEventListener("input",this,!0),this._original.focus()}onCloseRequest(e){this._promise&&this.reject(),super.onCloseRequest(e)}_evtInput(e){this._hasValidationErrors=!!this.node.querySelector(":invalid");for(let t=0;t<this._buttons.length;t++)this._buttons[t].accept&&(this._buttonNodes[t].disabled=this._hasValidationErrors)}_evtClick(e){if(!this.node.getElementsByClassName("jp-Dialog-content")[0].contains(e.target)){e.stopPropagation(),e.preventDefault(),this._hasClose&&!this._lastMouseDownInDialog&&this.reject();return}for(let i of this._buttonNodes)if(i.contains(e.target)){let n=this._buttonNodes.indexOf(i);this.resolve(n)}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation(),e.preventDefault(),this._hasClose&&this.reject();break;case 37:{let t=document.activeElement;if(t instanceof HTMLButtonElement){let i=this._buttonNodes.indexOf(t)-1;i<0&&(i=this._buttonNodes.length-1);let n=this._buttonNodes[i];e.stopPropagation(),e.preventDefault(),n.focus()}break}case 39:{let t=document.activeElement;if(t instanceof HTMLButtonElement){let i=this._buttonNodes.indexOf(t)+1;i==this._buttons.length&&(i=0);let n=this._buttonNodes[i];e.stopPropagation(),e.preventDefault(),n.focus()}break}case 9:{let t=this._buttonNodes[this._buttons.length-1];document.activeElement===t&&!e.shiftKey&&(e.stopPropagation(),e.preventDefault(),this._first.focus());break}case 13:{e.stopPropagation(),e.preventDefault();let t=document.activeElement;if(t instanceof HTMLButtonElement){let i=this._buttonNodes.indexOf(t);i!==-1&&this.resolve(i)}else if(!(t instanceof HTMLTextAreaElement)){let i=this._defaultButton;this.resolve(i)}break}default:break}}_evtFocus(e){var t,i;let n=e.target;this.node.contains(n)||(e.stopPropagation(),(i=(t=this._primary)!==null&&t!==void 0?t:this._buttonNodes[this._defaultButton])===null||i===void 0||i.focus())}_evtMouseDown(e){let t=this.node.getElementsByClassName("jp-Dialog-content")[0],i=e.target;this._lastMouseDownInDialog=t.contains(i)}_resolve(e){var t,i,n;if(this._hasValidationErrors&&e.accept)return;let s=this._promise;if(!s){this.dispose();return}this._promise=null,W.removeFirstOf(Bl.launchQueue,s.promise);let o=this._body,a=null;if(e.accept&&o instanceof B&&typeof o.getValue=="function")try{a=o.getValue()}catch(l){this.dispose(),s.reject(l);return}this.dispose(),s.resolve({button:e,isChecked:(n=(i=(t=this._checkboxNode)===null||t===void 0?void 0:t.querySelector("input"))===null||i===void 0?void 0:i.checked)!==null&&n!==void 0?n:null,value:a})}};(function(r){r.translator=gt;function e(a){a.accept=a.accept!==!1;let l=r.translator.load("jupyterlab"),c=a.accept?l.__("Ok"):l.__("Cancel");return{ariaLabel:a.ariaLabel||a.label||c,label:a.label||c,iconClass:a.iconClass||"",iconLabel:a.iconLabel||"",caption:a.caption||"",className:a.className||"",accept:a.accept,actions:a.actions||[],displayType:a.displayType||"default"}}r.createButton=e;function t(a={}
6275){return a.accept=!1,e(a)}r.cancelButton=t;function i(a={}){return a.accept=!0,e(a)}r.okButton=i;function n(a={}){return a.displayType="warn",e(a)}r.warnButton=n;function s(){r.tracker.forEach(a=>{a.dispose()})}r.flush=s;class o{createHeader(l,c=()=>{},u={}){let d,f=g=>{g.button===0&&(g.preventDefault(),c())},m=g=>{let{key:b}=g;(b==="Enter"||b===" ")&&c()};if(typeof l=="string"){let g=r.translator.load("jupyterlab");d=fi.create(_d.createElement(_d.Fragment,null,l,u.hasClose&&_d.createElement(YR,{className:"jp-Dialog-close-button",onMouseDown:f,onKeyDown:m,title:g.__("Cancel"),minimal:!0},_d.createElement(j.resolveReact,{icon:Im,tag:"span"}))))}else d=fi.create(l);return d.addClass("jp-Dialog-header"),Ll.styleNode(d.node),d}createBody(l){let c=d=>{d.renderPromise!==void 0?d.renderPromise.then(()=>{Ll.styleNode(d.node)}).catch(()=>{console.error("Error while loading Dialog's body")}):Ll.styleNode(d.node)},u;return typeof l=="string"?(u=new B({node:document.createElement("span")}),u.node.textContent=l):l instanceof B?(u=l,u instanceof fi?c(u):Ll.styleNode(u.node)):(u=fi.create(l),J.sendMessage(u,B.Msg.UpdateRequest),c(u)),u.addClass("jp-Dialog-body"),u}createFooter(l,c){let u=new B;u.addClass("jp-Dialog-footer"),c&&(u.node.appendChild(c),u.node.insertAdjacentHTML("beforeend",'<div class="jp-Dialog-spacer"></div>'));let d=document.createElement("div");d.classList.add("jp-Dialog-footerButtons");for(let f of l)d.appendChild(f);return u.node.appendChild(d),Ll.styleNode(u.node),u}createButtonNode(l){let c=document.createElement("button");return c.className=this.createItemClass(l),c.appendChild(this.renderIcon(l)),c.appendChild(this.renderLabel(l)),c}createCheckboxNode(l){let c=document.createElement("label");c.className="jp-Dialog-checkbox",l.className&&c.classList.add(l.className),c.title=l.caption,c.textContent=l.label;let u=document.createElement("input");return u.type="checkbox",u.checked=!!l.checked,c.insertAdjacentElement("afterbegin",u),c}createItemClass(l){let c="jp-Dialog-button";l.accept?c+=" jp-mod-accept":c+=" jp-mod-reject",l.displayType==="warn"&&(c+=" jp-mod-warn");let u=l.className;return u&&(c+=` ${u}`),c}renderIcon(l){let c=document.createElement("div");return c.className=this.createIconClass(l),c.appendChild(document.createTextNode(l.iconLabel)),c}createIconClass(l){let c="jp-Dialog-buttonIcon",u=l.iconClass;return u?`${c} ${u}`:c}renderLabel(l){let c=document.createElement("div");return c.className="jp-Dialog-buttonLabel",c.title=l.caption,c.ariaLabel=l.ariaLabel,c.appendChild(document.createTextNode(l.label)),c}}r.Renderer=o,r.defaultRenderer=new o,r.tracker=new ev({namespace:"@jupyterlab/apputils:Dialog"})})(st||(st={}));(function(r){r.launchQueue=[],r.errorMessagePromiseCache=new Map;function e(i={}){var n,s,o,a,l,c,u,d,f;let m=(n=i.buttons)!==null&&n!==void 0?n:[st.cancelButton(),st.okButton()];return{title:(s=i.title)!==null&&s!==void 0?s:"",body:(o=i.body)!==null&&o!==void 0?o:"",host:(a=i.host)!==null&&a!==void 0?a:document.body,checkbox:(l=i.checkbox)!==null&&l!==void 0?l:null,buttons:m,defaultButton:(c=i.defaultButton)!==null&&c!==void 0?c:m.length-1,renderer:(u=i.renderer)!==null&&u!==void 0?u:st.defaultRenderer,focusNodeSelector:(d=i.focusNodeSelector)!==null&&d!==void 0?d:"",hasClose:(f=i.hasClose)!==null&&f!==void 0?f:!0}}r.handleOptions=e;function t(i){let n=["input","select","a[href]","textarea","button","[tabindex]"].join(",");return i.querySelectorAll(n)[0]}r.findFirstFocusable=t})(Bl||(Bl={}))});var x2e,uX=p(()=>{Fr();x2e=N(qe())});var dX=p(()=>{Rt();Xe()});var rv,Xs,zf,iv,jl,qf,M3=p(()=>{rv=N(Jt());Sn();Fr();Xs=N(qe());Xe();Rt();zf=N(re());tv();iv=class{constructor(e){var t,i,n,s;this._path="",this._name="",this._type="",this._prevKernelName="",this._isDisposed=!1,this._disposed=new te(this),this._session=null,this._ready=new Xs.PromiseDelegate,this._initializing=!1,this._initStarted=new Xs.PromiseDelegate,this._initPromise=new Xs.PromiseDelegate,this._isReady=!1,this._isTerminating=!1,this._isRestarting=!1,this._kernelChanged=new te(this),this._preferenceChanged=new te(this),this._sessionChanged=new te(this),this._statusChanged=new te(this),this._connectionStatusChanged=new te(this),this._pendingInput=!1,this._iopubMessage=new te(this),this._unhandledMessage=new te(this),this._propertyChanged=new te(this),this._dialog=null,this._busyDisposable=null,this._pendingKernelName="",this._pendingSessionRequest="",this.kernelManager=e.kernelManager,this.sessionManager=e.sessionManager,this.specsManager=e.specsManager,this.translator=e.translator||gt,this._trans=this.translator.load("jupyterlab"),this._path=(t=e.path)!==null&&t!==void 0?t:Xs.UUID.uuid4(),this._type=(i=e.type)!==null&&i!==void 0?i:"",this._name=(n=e.name)!==null&&n!==void 0?n:"",this._setBusy=e.setBusy,this._kernelPreference=(s=e.kernelPreference)!==null&&s!==void 0?s:{}}get session(){var e;return(e=this._session)!==null&&e!==void 0?e:null}get path(){return this._path}get type(){return this._type}get name(){return this._name}get kernelChanged(){return this._kernelChanged}get sessionChanged(){return this._sessionChanged}get statusChanged(){return this._statusChanged}get pendingInput(){return this._pendingInput}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get propertyChanged(){return this._propertyChanged}get kernelPreference(){return this._kernelPreference}set kernelPreference(e){if(!Xs.JSONExt.deepEqual(e,this._kernelPreference)){let t=this._kernelPreference;this._kernelPreference=e,this._preferenceChanged.emit({name:"kernelPreference",oldValue:t,newValue:Xs.JSONExt.deepCopy(e)})}}get kernelPreferenceChanged(){return this._preferenceChanged}get isReady(){return this._isReady}get ready(){return this._ready.promise}get isTerminating(){return this._isTerminating}get isRestarting(){return this._isRestarting}get hasNoKernel(){return this.kernelDisplayName===this.noKernelName}get kernelDisplayName(){var e,t,i,n,s,o,a;let l=(e=this.session)===null||e===void 0?void 0:e.kernel;return this._pendingKernelName===this.noKernelName?this.noKernelName:this._pe
6275ndingKernelName?(n=(i=(t=this.specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[this._pendingKernelName])===null||i===void 0?void 0:i.display_name)!==null&&n!==void 0?n:this._pendingKernelName:l?(a=(o=(s=this.specsManager.specs)===null||s===void 0?void 0:s.kernelspecs[l.name])===null||o===void 0?void 0:o.display_name)!==null&&a!==void 0?a:l.name:this.noKernelName}get kernelDisplayStatus(){var e,t;let i=(e=this.session)===null||e===void 0?void 0:e.kernel;return this._isTerminating?"terminating":this._isRestarting?"restarting":this._pendingKernelName===this.noKernelName?"unknown":!i&&this._pendingKernelName||!i&&!this.isReady&&this.kernelPreference.canStart!==!1&&this.kernelPreference.shouldStart!==!1?"initializing":(t=i?.connectionStatus==="connected"?i?.status:i?.connectionStatus)!==null&&t!==void 0?t:"unknown"}get prevKernelName(){return this._prevKernelName}get isDisposed(){return this._isDisposed}get disposed(){return this._disposed}get noKernelName(){return this._trans.__("No Kernel")}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposed.emit(),this._session&&(this.kernelPreference.shutdownOnDispose&&this.sessionManager.shutdown(this._session.id).catch(e=>{console.error(`Kernel not shut down ${e}`)}),this._session.dispose(),this._session=null),this._dialog&&this._dialog.dispose(),this._busyDisposable&&(this._busyDisposable.dispose(),this._busyDisposable=null),te.clearData(this))}async startKernel(){let e=this.kernelPreference;if(!e.autoStartDefault&&e.shouldStart===!1)return!0;let t;if(e.id)t={id:e.id};else{let i=qf.getDefaultKernel({specs:this.specsManager.specs,sessions:this.sessionManager.running(),preference:e});i&&(t={name:i})}if(t)try{return await this._changeKernel(t),!1}catch{}return!0}async restartKernel(){var e,t,i,n,s,o;let a=((e=this.session)===null||e===void 0?void 0:e.kernel)||null;if(!this._isRestarting){this._isRestarting=!0,this._isReady=!1,this._statusChanged.emit("restarting");try{await((i=(t=this.session)===null||t===void 0?void 0:t.kernel)===null||i===void 0?void 0:i.restart()),this._isReady=!0}catch(l){console.error(l)}this._isRestarting=!1,this._statusChanged.emit(((s=(n=this.session)===null||n===void 0?void 0:n.kernel)===null||s===void 0?void 0:s.status)||"unknown"),this._kernelChanged.emit({name:"kernel",oldValue:a,newValue:((o=this.session)===null||o===void 0?void 0:o.kernel)||null})}}async changeKernel(e={}){if(this.isDisposed)throw new Error("Disposed");return await this._initStarted.promise,this._changeKernel(e)}async shutdown(){if(!(this.isDisposed||!this._initializing))return await this._initStarted.promise,this._pendingSessionRequest="",this._pendingKernelName=this.noKernelName,this._shutdownSession()}async initialize(){if(this._initializing)return this._initPromise.promise;this._initializing=!0;let e=await this._initialize();return e||(this._isReady=!0,this._ready.resolve(void 0)),this._pendingSessionRequest||this._initStarted.resolve(void 0),this._initPromise.resolve(e),e}async _initialize(){let e=this.sessionManager;await e.ready,await e.refreshRunning();let t=xn(e.running(),i=>i.path===this._path);if(t)try{let i=e.connectTo({model:t});this._handleNewSession(i)}catch(i){return this._handleSessionError(i),Promise.reject(i)}return await this._startIfNecessary()}async _shutdownSession(){var e;let t=this._session,i=this._isTerminating,n=this._isReady;this._isTerminating=!0,this._isReady=!1,this._statusChanged.emit("terminating");try{await t?.shutdown(),this._isTerminating=!1,t?.dispose(),this._session=null;let s=t?.kernel||null;this._statusChanged.emit("unknown"),this._kernelChanged.emit({name:"kernel",oldValue:s,newValue:null}),this._sessionChanged.emit({name:"session",oldValue:t,newValue:null})}catch(s){this._isTerminating=i,this._isReady=n;let o=(e=t?.kernel)===null||e===void 0?void 0:e.status;throw o===void 0?this._statusChanged.emit("unknown"):this._statusChanged.emit(o),s}}async _startIfNecessary(){var e;let t=this.kernelPreference;return this.isDisposed||!((e=this.session)===null||e===void 0)&&e.kernel||t.shouldStart===!1||t.canStart===!1?!1:this.startKernel()}async _changeKernel(e={}
6275){if(e.name&&(this._pendingKernelName=e.name),this._session||this._kernelChanged.emit({name:"kernel",oldValue:null,newValue:null}),this._pendingSessionRequest||this._initStarted.resolve(void 0),this._session&&!this._isTerminating)try{return await this._session.changeKernel(e),this._session.kernel}catch(n){throw this._handleSessionError(n),n}let t=rv.PathExt.dirname(this._path),i=this._pendingSessionRequest=rv.PathExt.join(t,Xs.UUID.uuid4());try{this._statusChanged.emit("starting");let n=await this.sessionManager.startNew({path:i,type:this._type,name:this._name,kernel:e});return this._pendingSessionRequest!==n.path?(await n.shutdown(),n.dispose(),null):(await n.setPath(this._path),await n.setName(this._name),this._session&&!this._isTerminating&&await this._shutdownSession(),this._handleNewSession(n))}catch(n){throw this._handleSessionError(n),n}}_handleNewSession(e){var t,i,n;if(this.isDisposed)throw Error("Disposed");return this._isReady||(this._isReady=!0,this._ready.resolve(void 0)),this._session&&this._session.dispose(),this._session=e,this._pendingKernelName="",e&&(this._prevKernelName=(i=(t=e.kernel)===null||t===void 0?void 0:t.name)!==null&&i!==void 0?i:"",e.disposed.connect(this._onSessionDisposed,this),e.propertyChanged.connect(this._onPropertyChanged,this),e.kernelChanged.connect(this._onKernelChanged,this),e.statusChanged.connect(this._onStatusChanged,this),e.connectionStatusChanged.connect(this._onConnectionStatusChanged,this),e.pendingInput.connect(this._onPendingInput,this),e.iopubMessage.connect(this._onIopubMessage,this),e.unhandledMessage.connect(this._onUnhandledMessage,this),e.path!==this._path&&this._onPropertyChanged(e,"path"),e.name!==this._name&&this._onPropertyChanged(e,"name"),e.type!==this._type&&this._onPropertyChanged(e,"type")),this._sessionChanged.emit({name:"session",oldValue:null,newValue:e}),this._kernelChanged.emit({oldValue:null,newValue:e?.kernel||null,name:"kernel"}),this._statusChanged.emit(((n=e?.kernel)===null||n===void 0?void 0:n.status)||"unknown"),e?.kernel||null}async _handleSessionError(e){this._handleNewSession(null);let t="",i="";try{t=e.traceback,i=e.message}catch{}await this._displayKernelError(i,t)}async _displayKernelError(e,t){let i=zf.createElement("div",null,e&&zf.createElement("pre",null,e),t&&zf.createElement("details",{className:"jp-mod-wide"},zf.createElement("pre",null,t)));await(this._dialog=new st({title:this._trans.__("Error Starting Kernel"),body:i,buttons:[st.okButton()]})).launch(),this._dialog=null}_onSessionDisposed(){if(this._session){let e=this._session;this._session=null;let t=this._session;this._sessionChanged.emit({name:"session",oldValue:e,newValue:t})}}_onPropertyChanged(e,t){switch(t){case"path":this._path=e.path;break;case"name":this._name=e.name;break;case"type":this._type=e.type;break;default:throw new Error(`unrecognized property ${t}`)}this._propertyChanged.emit(t)}_onKernelChanged(e,t){this._kernelChanged.emit(t)}_onStatusChanged(e,t){var i;if(t==="dead"){let n=(i=e.kernel)===null||i===void 0?void 0:i.model;if(n?.reason){let s=n.traceback||"";this._displayKernelError(n.reason,s)}}this._setBusy&&(t==="busy"?this._busyDisposable||(this._busyDisposable=this._setBusy()):this._busyDisposable&&(this._busyDisposable.dispose(),this._busyDisposable=null)),this._statusChanged.emit(t)}_onConnectionStatusChanged(e,t){this._connectionStatusChanged.emit(t)}_onPendingInput(e,t){this._pendingInput=t}_onIopubMessage(e,t){t.header.msg_type==="shutdown_reply"&&this.session.kernel.removeInputGuard(),this._iopubMessage.emit(t)}_onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}};(function(r){function e(t){let{preference:i}=t,{shouldStart:n}=i;return n===!1?null:qf.getDefaultKernel(t)}r.getDefaultKernel=e})(iv||(iv={}));jl=class{constructor(e={}){var t;this._translator=(t=e.translator)!==null&&t!==void 0?t:gt,this._settingRegistry=e.settingRegistry||null}async selectKernel(e){if(e.isDisposed)return Promise.resolve();let t=this._translator,i=t.load("jupyterlab"),n=i.__("Cancel");e.hasNoKernel&&(n=e.kernelDisplayName);let s=[st.cancelButton({label:n}),st.okButton({label:i.__("Select"),ariaLabel:i.__("Select Kernel")})],o=e.kernelPreference.autoStartDefault,a=typeof o=="boolean",c=await new st({title:i.__("Select Kernel"),body:qf.createKernelSelector(e,t),buttons:s,checkbox:a?{label:i.__("Always start the preferred kernel"),caption:i.__("Remember my choice and always start the preferred kernel"),checked:o}:null}).launch();if(e.isDisposed||!c.button.accept)return;a&&c.isChecked!==null&&(e.kernelPreference={...e.kernelPreference,autoStartDefault:c.isChecked});let u=c.value;if(u===null&&!e.hasNoKernel)return e.shutdown();u&&await e.changeKernel(u)}async restart(e,t){var i,n,s,o,a;let l=this._translator.load("jupyterlab");if(await e.initialize(),e.isDisposed)throw new Error("session already disposed");let c=(i=e.session)===null||i===void 0?void 0:i.kernel;if(!c&&e.prevKernelName)return await e.changeKernel({name:e.prevKernelName}),!0;if(!c)throw new Error("No kernel to restart");let u="@jupyterlab/apputils-extension:sessionDialogs",d=(s=(n=e.kernelPreference)===null||n===void 0?void 0:n.skipKernelRestartDialog)!==null&&s!==void 0?s:!1;if(((a=await((o=this._settingRegistry)===null||o===void 0?void 0:o.get(u,"skipKernelRestartDialog")))===null||a===void 0?void 0:a.composite)||d)return await e.restartKernel(),!0;
6275let m=st.warnButton({label:l.__("Restart"),ariaLabel:l.__("Confirm Kernel Restart")}),g=await Mo({title:l.__("Restart Kernel?"),body:l.__("Do you want to restart the kernel of %1? All variables will be lost.",e.name),buttons:[st.cancelButton({ariaLabel:l.__("Cancel Kernel Restart")}),m],checkbox:{label:l.__("Do not ask me again."),caption:l.__("If checked, the kernel will restart without confirmation prompt in the future; you can change this back in the settings.")}});return c.isDisposed?!1:g.button.accept?(typeof g.isChecked=="boolean"&&g.isChecked==!0&&(e.kernelPreference={...e.kernelPreference,skipKernelRestartDialog:!0}),await t?.onBeforeRestart(),await e.restartKernel(),!0):!1}};(function(r){function e(t,i=null){var n,s,o,a,l,c,u;let d={disabled:!1,groups:[]},f=Array.from((s=(n=t.kernelManager)===null||n===void 0?void 0:n.running())!==null&&s!==void 0?s:Array.from(t.sessionManager.running()).filter(I=>!!I.kernel).map(I=>I.kernel)),m=Array.from((o=t.sessionManager.running())!==null&&o!==void 0?o:[]).reduce((I,A)=>{var D;return!((D=A.kernel)===null||D===void 0)&&D.id&&(I[A.kernel.id]=A),I},{}),g={...t.kernelPreference,id:(l=(a=t.session)===null||a===void 0?void 0:a.kernel)===null||l===void 0?void 0:l.id},b=t.hasNoKernel?null:t.kernelDisplayName,v={default:"",kernelspecs:Object.create(null),...t.specsManager.specs},S=[],k=Object.create(null);for(let I in v.kernelspecs)S.push(v.kernelspecs[I]),k[I]=v.kernelspecs[I].language;S.sort((I,A)=>I.display_name.localeCompare(A.display_name)),i=i||gt;let _=i.load("jupyterlab"),E=g.language||k[g.name]||(g.id?k[(c=m[g.id])===null||c===void 0?void 0:c.name]:""),R={connectKernel:_.__("Connect to Existing Kernel"),startPreferred:_.__("Start %1 Kernel",E),startOther:_.__("Start Kernel"),connectToPreferred:_.__("Connect to Existing %1 Kernel",E),connectToOther:_.__("Connect to Other Kernel"),noKernel:_.__("No Kernel"),startKernel:_.__("Start Kernel"),useNoKernel:_.__("Use No Kernel")},P={label:R.useNoKernel,options:[{text:R.noKernel,title:R.noKernel,value:JSON.stringify(null)}]},T=(I,A,D)=>{let V=D?D.name||rv.PathExt.basename(D.path):I.name||_.__("Unknown Kernel");return{text:`${V} (${I.id.split("-")[0]})`,title:(D?`${_.__("Path: %1",D.path)}
6276`:"")+`${_.__("Name: %1",V)}
6277${_.__("Kernel Name: %1",A??I.name)}
6278${_.__("Kernel Id: %1",I.id)}`,value:JSON.stringify({id:I.id})}},O=I=>({text:I.display_name,value:JSON.stringify({name:I.name})});if(g.canStart===!1)return d.disabled=!0,d.groups.push(P),d;if(E){let I={label:R.startPreferred,options:[]},A={label:R.startOther,options:[]},D={label:R.connectToPreferred,options:[]},V={label:R.connectToOther,options:[]};for(let Z of S)(Z.language===E?I:A).options.push(O(Z));d.groups.push(I),d.groups.push(P),d.groups.push(A),f.map(Z=>{var we,q;return{option:T(Z,(q=(we=v.kernelspecs[Z.name])===null||we===void 0?void 0:we.display_name)!==null&&q!==void 0?q:"",m[Z.id]),language:k[Z.name]}}).sort((Z,we)=>Z.option.text.localeCompare(we.option.text)).forEach(Z=>(E===Z.language?D:V).options.push(Z.option)),D.options.length&&d.groups.push(D),V.options.length&&d.groups.push(V)}else d.groups.push({label:R.startKernel,options:S.map(I=>O(I))}),d.groups.push(P),d.groups.push({label:R.connectKernel,options:f.map(I=>{var A,D;return T(I,(D=(A=v.kernelspecs[I.name])===null||A===void 0?void 0:A.display_name)!==null&&D!==void 0?D:"",m[I.id])}).sort((I,A)=>I.text.localeCompare(A.text))});if(g.id||b||g.name)for(let I of d.groups)for(let A of I.options){let D=JSON.parse(A.value);
6278if(D){if(g.id){if(g.id===D.id)return A.selected=!0,d;continue}if(b){if(b===((u=v.kernelspecs[D.name])===null||u===void 0?void 0:u.display_name))return A.selected=!0,d;continue}if(g.name){if(g.name===D.name)return A.selected=!0,d;continue}}}return d}r.kernelOptions=e})(jl||(jl={}));(function(r){r.createKernelSelector=(n,s)=>new e({node:t(n,s)});class e extends B{getValue(){let s=this.node.querySelector("select");return JSON.parse(s.value)}}function t(n,s){s=s||gt;let o=s.load("jupyterlab"),a=document.createElement("div"),l=document.createElement("label");l.textContent=`${o.__("Select kernel for:")} "${n.name}"`,a.appendChild(l);let c=document.createElement("select"),u=jl.kernelOptions(n,s);u.disabled&&(c.disabled=!0);for(let d of u.groups){let{label:f,options:m}=d,g=document.createElement("optgroup");g.label=f;for(let{selected:b,text:v,title:S,value:k}of m){let _=document.createElement("option");b&&(_.selected=!0),S&&(_.title=S),_.text=v,_.value=k,g.appendChild(_)}c.appendChild(g)}return a.appendChild(c),a}function i(n){var s;let{specs:o,preference:a}=n,{name:l,language:c,canStart:u,autoStartDefault:d}=a;if(!o||u===!1)return null;let f=d?o.default:null;if(!l&&!c)return f;for(let g in o.kernelspecs)if(g===l)return l;if(!c)return f;let m=[];for(let g in o.kernelspecs){let b=(s=o.kernelspecs[g])===null||s===void 0?void 0:s.language;c===b&&m.push(g)}if(m.length===1){let g=m[0];return console.warn("No exact match found for "+g+", using kernel "+g+" that matches language="+c),g}return f}r.getDefaultKernel=i})(qf||(qf={}))});function F3(r){r=r||gt;let e=r.load("jupyterlab");return{unknown:e.__("Unknown"),starting:e.__("Starting"),idle:e.__("Idle"),busy:e.__("Busy"),terminating:e.__("Terminating"),restarting:e.__("Restarting"),autorestarting:e.__("Autorestarting"),dead:e.__("Dead"),connected:e.__("Connected"),connecting:e.__("Connecting"),disconnected:e.__("Disconnected"),initializing:e.__("Initializing"),"":""}}function _2e(r){let t=(r.translator||gt).load("jupyterlab"),i="";return r.status&&(i=` | ${r.status}`),P3.default.createElement(Bf,{role:"button","aria-haspopup":!0,onClick:r.handleClick,onKeyDown:r.handleKeyDown,source:`${r.kernelName}${i}`,title:t.__("Change kernel for %1",r.activityName),tabIndex:0})}var hX,P3,wd,L3=p(()=>{R3();Sn();Ys();hX=N(qe()),P3=N(re());wd=class extends Ks{constructor(e,t){super(new wd.Model(t)),this.translator=t||gt,this._handleClick=e.onClick,this._handleKeyDown=e.onKeyDown,this.addClass("jp-mod-highlighted")}render(){return this.model===null?null:P3.default.createElement(_2e,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,translator:this.translator})}};(function(r){class e extends Pl{constructor(i){super(),this._activityName="",this._kernelName="",this._kernelStatus="",this._sessionContext=null,i=i??gt,this._trans=i.load("jupyterlab"),this._statusNames=F3(i)}get kernelName(){return this._kernelName}get status(){return this._kernelStatus?this._statusNames[this._kernelStatus]:void 0}get activityName(){return this._activityName}set activityName(i){this._activityName!==i&&(this._activityName=i,this.stateChanged.emit())}get sessionContext(){return this._sessionContext}set sessionContext(i){var n,s,o,a;(n=this._sessionContext)===null||n===void 0||n.statusChanged.disconnect(this._onKernelStatusChanged,this),(s=this._sessionContext)===null||s===void 0||s.connectionStatusChanged.disconnect(this._onKernelStatusChanged,this),(o=this._sessionContext)===null||o===void 0||o.kernelChanged.disconnect(this._onKernelChanged,this);let l=this._getAllState();this._sessionContext=i,this._kernelStatus=i?.kernelDisplayStatus,this._kernelName=(a=i?.kernelDisplayName)!==null&&a!==void 0?a:this._trans.__("No Kernel"),i?.statusChanged.connect(this._onKernelStatusChanged,this),i?.connectionStatusChanged.connect(this._onKernelStatusChanged,this),i?.kernelChanged.connect(this._onKernelChanged,this),this._triggerChange(l,this._getAllState())}_onKernelStatusChanged(){var i;this._kernelStatus=(i=this._sessionContext)===null||i===void 0?void 0:i.kernelDisplayStatus,this.stateChanged.emit(void 0)}_onKernelChanged(i,n){var s;let o=this._getAllState();this._kernelStatus=(s=this._sessionContext)===null||s===void 0?void 0:s.kernelDisplayStatus,this._kernelName=i.kernelDisplayName,this._triggerChange(o,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(i,n){hX.JSONExt.deepEqual(i,n)&&this.stateChanged.emit(void 0)}}r.Model=e})(wd||(wd={}))});var nv,w2e,S2e,Uc,sv,fX=p(()=>{Sn();Ys();
6278Rt();nv=N(re());M3();L3();w2e="jp-Toolbar-kernelName",S2e="jp-Toolbar-kernelStatus";(function(r){function e(s,o){o=o||gt;let a=o.load("jupyterlab");return new xd({icon:OR,onClick:()=>{var l,c;(c=(l=s.session)===null||l===void 0?void 0:l.kernel)===null||c===void 0||c.interrupt()},tooltip:a.__("Interrupt the kernel")})}r.createInterruptButton=e;function t(s,o,a){a=a??gt;let l=a.load("jupyterlab");return new xd({icon:AR,onClick:()=>{(o??new jl({translator:a})).restart(s)},tooltip:l.__("Restart the kernel")})}r.createRestartButton=t;function i(s,o,a){let l=fi.create(nv.createElement(sv.KernelNameComponent,{sessionContext:s,dialogs:o??new jl({translator:a}),translator:a}));return l.addClass("jp-KernelName"),l}r.createKernelNameItem=i;function n(s,o){return new sv.KernelStatus(s,o)}r.createKernelStatusItem=n})(Uc||(Uc={}));(function(r){function e(i){let s=(i.translator||gt).load("jupyterlab"),o=()=>{i.dialogs.selectKernel(i.sessionContext)};return nv.createElement(Ff,{signal:i.sessionContext.kernelChanged,initialSender:i.sessionContext},a=>nv.createElement(y3,{className:w2e,onClick:o,tooltip:s.__("Switch kernel"),label:a?.kernelDisplayName}))}r.KernelNameComponent=e;class t extends B{constructor(n,s){super(),this.translator=s||gt,this._trans=this.translator.load("jupyterlab"),this.addClass(S2e),this._statusNames=F3(this.translator),this._onStatusChanged(n),n.statusChanged.connect(this._onStatusChanged,this),n.connectionStatusChanged.connect(this._onStatusChanged,this)}_onStatusChanged(n){if(this.isDisposed)return;let s=n.kernelDisplayStatus,o={container:this.node,title:this._trans.__("Kernel %1",this._statusNames[s]||s),stylesheet:"toolbarButton",alignSelf:"normal",height:"24px"};j.remove(this.node),s==="busy"||s==="starting"||s==="terminating"||s==="restarting"||s==="initializing"?wR.element
6278(o):s==="connecting"||s==="disconnected"||s==="unknown"?TR.element(o):_R.element(o)}}r.KernelStatus=t})(sv||(sv={}))});var pX=p(()=>{uX();dX();fX()});var N3,mX,gX,Hf,bX=p(()=>{N3=N(qe());(function(r){function e(){return Hf.instance}r.getInstance=e;function t(s){Hf.instance=s}r.setInstance=t;function i(s){let o=document.body,a=l=>{let c=l.clipboardData||window.clipboardData;typeof s=="string"?c.setData("text",s):s.types().map(u=>{c.setData(u,s.getData(u))}),l.preventDefault(),o.removeEventListener("copy",a)};o.addEventListener("copy",a),n(o)}r.copyToSystem=i;function n(s,o="copy"){let a=window.getSelection(),l=[];for(let u=0,d=a?.rangeCount||0;u<d;++u)l[u]=a.getRangeAt(u).cloneRange();let c=document.createRange();if(c.selectNodeContents(s),a&&(a.removeAllRanges(),a.addRange(c)),document.execCommand(o),a=window.getSelection(),a){a.removeAllRanges();for(let u=0,d=l.length;u<d;++u)a.addRange(l[u])}}r.generateEvent=n})(mX||(mX={}));(function(r){function e(){return Hf.systemInstance}r.getInstance=e})(gX||(gX={}));(function(r){let e="application/vnd.jupyter.cells";class t{constructor(n){this.fallback=n||new N3.MimeData;let{systemClipboard:s}=this;s||console.warn("Clipboard API not available")}clear(){this.fallback.clear()}async hasData(n){let{systemClipboard:s}=this;if(!s)return this.fallback.hasData(n);let o;try{o=await s.readText()}catch(a){return console.warn("Failed to read data from clipboard:",a),a.name==="NotAllowedError"?this.fallback.hasData(n):!1}try{return this.convertStringToData(n,o),!0}catch{return!1}}async getData(n){let{systemClipboard:s}=this;if(!s)return this.fallback.getData(n);try{let o=await s.readText();return this.convertStringToData(n,o)}catch(o){return console.warn("Failed to read data from clipboard:",o),o.name==="NotAllowedError"?this.fallback.getData(n):null}}async setData(n,s){let{systemClipboard:o}=this;if(!o){this.fallback.clear(),this.fallback.setData(n,s);return}try{await o.writeText(this.convertDataToString(n,s))}catch(a){console.warn("Failed to write data to clipboard:",a),this.fallback.clear(),this.fallback.setData(n,s)}}convertDataToString(n,s){return n===e?JSON.stringify(s):(s||"").toString()}convertStringToData(n,s){return n===e?JSON.parse(s):s}get systemClipboard(){return navigator.clipboard}}r.instance=new N3.MimeData,r.systemInstance=new t})(Hf||(Hf={}))});var C2e,vX,yX=p(()=>{C2e=N(qe());(function(r){function e(t){return typeof t=="object"&&t!==null&&"trusted"in t&&typeof t.trusted=="boolean"}r.isTrustCommandResult=e})(vX||(vX={}))});var xX=p(()=>{Rt()});var I2e,k2e,_X,Wc,B3,j3,ov,z3,q3,H3,V3,wX=p(()=>{Rt();tv();I2e="jp-Input-Dialog",k2e="jp-Input-Boolean-Dialog";(function(r){function e(a){return Mo({...a,body:new B3(a),buttons:[st.cancelButton({label:a.cancelLabel}),st.okButton({label:a.okLabel})],focusNodeSelector:"input"})}r.getBoolean=e;function t(a){return Mo({...a,body:new j3(a),buttons:[st.cancelButton({label:a.cancelLabel}),st.okButton({label:a.okLabel})],focusNodeSelector:"input"})}r.getNumber=t;function i(a){return Mo({...a,body:new H3(a),buttons:[st.cancelButton({label:a.cancelLabel}),st.okButton({label:a.okLabel})],focusNodeSelector:a.editable?"input":"select"})}r.getItem=i;function n(a){return Mo({...a,body:new V3(a),buttons:[st.cancelButton({label:a.cancelLabel}),st.okButton({label:a.okLabel})]})}r.getMultipleItems=n;function s(a){return Mo({...a,body:new z3(a),buttons:[st.cancelButton({label:a.cancelLabel}),st.okButton({label:a.okLabel})],focusNodeSelector:"input"})}r.getText=s;function o(a){return Mo({...a,body:new q3(a),buttons:[st.cancelButton({label:a.cancelLabel}),st.okButton({label:a.okLabel})],focusNodeSelector:"input"})}r.getPassword=o})(_X||(_X={}));Wc=class extends B{constructor(e){if(super(),this.addClass(I2e),this._input=document.createElement("input"),this._input.classList.add("jp-mod-styled"),this._input.id="jp-dialog-input-id",e.label!==void 0){let i=document.createElement("label");i.textContent=e.label,i.htmlFor=this._input.id,this.node.appendChild(i)}let t=document.createElement("div");if(t.className="jp-InputDialog-inputWrapper",e.prefix){let i=document.createElement("span");i.className="jp-InputDialog-inputPrefix",i.textContent=e.prefix,i.ariaHidden="true",t.appendChild(i)}if(t.appendChild(this._input),e.suffix){let i=document.createElement("span");i.className="jp-InputDialog-inputSuffix",i.textContent=e.suffix,i.ariaHidden="true",t.appendChild(i)}this.node.appendChild(t)}},B3=class extends Wc{constructor(e){super(e),this.addClass(k2e),this._input.type="checkbox",this._input.checked=!!e.value}getValue(){return this._input.checked}},j3=class extends Wc{constructor(e){super(e),this._input.type="number",this._input.value=e.value?e.value.toString():"0"}getValue(){return this._input.value?Number(this._input.value):Number.NaN}},ov=class extends Wc{constructor(e){super(e),this._input.value=e.text?e.text:"",e.placeholder&&(this._input.placeholder=e.placeholder),e.pattern&&(this._input.pattern=e.pattern),e.required&&(this._input.required=e.required)}getValue(){return this._input.value}},z3=class extends ov{constructor(e){var t;super(e),this._input.type="text",this._initialSelectionRange=Math.min(this._input.value.length,Math.max(0,(t=e.selectionRange)!==null&&t!==void 0?t:this._input.value.length))}onAfterAttach(e){super.onAfterAttach(e),this._initialSelectionRange>0&&this._input.value&&this._input.setSelectionRange(0,this._initialSelectionRange)}},q3=class extends ov{constructor(e){super(e),this._input.type="password"}onAfterAttach(e){super.onAfterAttach(e),this._input.value&&this._input.select()}},H3=class extends Wc{constructor(e){super(e),this._editable=e.editable||!1;let t=e.current||0,i;if(typeof t=="number"&&(i=Math.max(0,Math.min(t,e.items.length-1)),t=""),this._list=document.createElement("select"),e.items.forEac
6278h((n,s)=>{let o=document.createElement("option");s===i&&(o.selected=!0,t=n),o.value=n,o.textContent=n,this._list.appendChild(o)}),e.editable){let n=document.createElement("datalist");n.id="input-dialog-items",n.appendChild(this._list),this._input.type="list",this._input.value=t,this._input.setAttribute("list",n.id),e.placeholder&&(this._input.placeholder=e.placeholder),this.node.appendChild(n)}else this._input.parentElement.replaceChild(this._list,this._input)}getValue(){return this._editable?this._input.value:this._list.value}},V3=class extends Wc{constructor(e){super(e);let t=e.defaults||[];this._list=document.createElement("select"),this._list.setAttribute("multiple",""),e.items.forEach(n=>{let s=document.createElement("option");s.value=n,s.textContent=n,this._list.appendChild(s)}),this._input.remove(),this.node.appendChild(this._list);let i=this._list.options;for(let n=0;n<i.length;n++){let s=i[n];t.includes(s.value)?s.selected=!0:s.selected=!1}}getValue(){let e=[];for(let t of this._list.options)t.selected&&!t.classList.contains("hidden")&&e.push(t.value||t.text);return e}}});var U3,CX,Ze,av,SX,Po,IX=p(()=>{U3=N(Wn());Ys();CX=N(qe());Xe();pu();Rt();Ze=N(re()),av=N(Jt()),SX="jp-Licenses-Filters-title",Po=class extends Ri{constructor(e){super(),this.addClass("jp-Licenses"),this.model=e.model,this.initLeftPanel(),this.initFilters(),this.initBundles(),this.initGrid(),this.initLicenseText(),this.setRelativeSizes([1,2,3]),this.model.initLicenses().then(()=>this._updateBundles()),this.model.trackerDataChanged.connect(()=>{this.title.label=this.model.title})}dispose(){this.isDisposed||(this._bundles.currentChanged.disconnect(this.onBundleSelected,this),this.model.dispose(),super.dispose())}initLeftPanel(){this._leftPanel=new sn,this._leftPanel.addClass("jp-Licenses-FormArea"),this.addWidget(this._leftPanel),Ri.setStretch(this._leftPanel,1)}initFilters(){this._filters=new Po.Filters(this.model),Ri.setStretch(this._filters,1),this._leftPanel.addWidget(this._filters)}initBundles(){this._bundles=new Oi({orientation:"vertical",renderer:new Po.BundleTabRenderer(this.model)}),this._bundles.addClass("jp-Licenses-Bundles"),Ri.setStretch(this._bundles,1),this._leftPanel.addWidget(this._bundles),this._bundles.currentChanged.connect(this.onBundleSelected,this),this.model.stateChanged.connect(()=>this._bundles.update())}initGrid(){this._grid=new Po.Grid(this.model),Ri.setStretch(this._grid,1),this.addWidget(this._grid)}initLicenseText(){this._licenseText=new Po.FullText(this.model),Ri.setStretch(this._grid,1),this.addWidget(this._licenseText)}onBundleSelected(){var e;!((e=this._bundles.currentTitle)===null||e===void 0)&&e.label&&(this.model.currentBundleName=this._bundles.currentTitle.label)}_updateBundles(){this._bundles.clearTabs();let e=0,{currentBundleName:t}=this.model,i=0;for(let n of this.model.bundleNames){let s=new B;s.title.label=n,n===t&&(i=e),this._bundles.insertTab(++e,s.title)}this._bundles.currentIndex=i}};(function(r){r.REPORT_FORMATS={markdown:{id:"markdown",title:"Markdown",icon:ER},csv:{id:"csv",title:"CSV",icon:RR},json:{id:"json",title:"JSON",icon:IR}},r.DEFAULT_FORMAT="markdown";class e{constructor(l={}){var c;this._preferredLicensesUrl=l.licensesUrl,this._serverSettings=(c=l.serverSettings)!==null&&c!==void 0?c:U3.ServerConnection.makeSettings()}async download(l){let c=`${this._licensesUrl}?format=${l.format}&download=1`,u=document.createElement("a");u.href=c,u.download="",document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(c)}async getBundles(){return(await U3.ServerConnection.makeRequest(this._licensesUrl,{},this._serverSettings)).json()}get _licensesUrl(){var l;return(l=this._preferredLicensesUrl)!==null&&l!==void 0?l:av.URLExt.join(this._serverSettings.baseUrl,av.PageConfig.getOption("licensesUrl"))+"/"}}r.LicensesClient=e;class t extends Pl{constructor(l){super(),this._selectedPackageChanged=new te(this),this._trackerDataChanged=new te(this),this._currentPackageIndex=0,this._licensesReady=new CX.PromiseDelegate,this._packageFilter={},this._trans=l.trans,this._client=l.client,l.currentBundleName&&(this._currentBundleName=l.currentBundleName),l.packageFilter&&(this._packageFilter=l.packageFilter),l.currentPackageIndex&&(this._currentPackageIndex=l.currentPackageIndex)}async initLicenses(){try{this._serverResponse=await this._client.getBundles(),this._licenses
6278Ready.resolve(),this.stateChanged.emit(void 0)}catch(l){this._licensesReady.reject(l)}}async download(l){return this._client.download(l)}get selectedPackageChanged(){return this._selectedPackageChanged}get trackerDataChanged(){return this._trackerDataChanged}get bundleNames(){var l;return Object.keys(((l=this._serverResponse)===null||l===void 0?void 0:l.bundles)||{})}get currentBundleName(){return this._currentBundleName?this._currentBundleName:this.bundleNames.length?this.bundleNames[0]:null}set currentBundleName(l){this._currentBundleName!==l&&(this._currentBundleName=l,this.stateChanged.emit(void 0),this._trackerDataChanged.emit(void 0))}get licensesReady(){return this._licensesReady.promise}get bundles(){var l;return((l=this._serverResponse)===null||l===void 0?void 0:l.bundles)||{}}get currentPackageIndex(){return this._currentPackageIndex}set currentPackageIndex(l){this._currentPackageIndex!==l&&(this._currentPackageIndex=l,this._selectedPackageChanged.emit(void 0),this.stateChanged.emit(void 0),this._trackerDataChanged.emit(void 0))}get currentPackage(){var l;return this.currentBundleName&&this.bundles&&this._currentPackageIndex!=null?this.getFilteredPackages(((l=this.bundles[this.currentBundleName])===null||l===void 0?void 0:l.packages)||[])[this._currentPackageIndex]:null}get trans(){return this._trans}get title(){return`${this._currentBundleName||""} ${this._trans.__("Licenses")}`.trim()}get packageFilter(){return this._packageFilter}set packageFilter(l){this._packageFilter=l,this.stateChanged.emit(void 0),this._trackerDataChanged.emit(void 0)}getFilteredPackages(l){let c=[],u=Object.entries(this._packageFilter).filter(([d,f])=>f&&`${f}`.trim().length).map(([d,f])=>[d,`${f}`.toLowerCase().trim().split(" ")]);for(let d of l){let f=0;for(let[m,g]of u){let b=0,v=`${d[m]}`.toLowerCase();for(let S of g)v.includes(S)&&(b+=1);b&&(f+=1)}f===u.length&&c.push(d)}return Object.values(c)}}r.Model=t;class i extends Ks{constructor(l){super(l),this.renderFilter=c=>{let u=this.model.packageFilter[c]||"";return Ze.createElement("input",{type:"text",name:c,defaultValue:u,className:"jp-mod-styled",onInput:this.onFilterInput})},this.onFilterInput=c=>{let u=c.currentTarget,{name:d,value:f}=u;this.model.packageFilter={...this.model.packageFilter,[d]:f}},this.addClass("jp-Licenses-Filters"),this.addClass("jp-RenderedHTMLCommon")}render(){let{trans:l}=this.model;return Ze.createElement("div",null,Ze.createElement("label",null,Ze.createElement("strong",{className:SX},l.__("Filter Licenses By"))),Ze.createElement("ul",null,Ze.createElement("li",null,Ze.createElement("label",null,l.__("Package")),this.renderFilter("name")),Ze.createElement("li",null,Ze.createElement("label",null,l.__("Version")),this.renderFilter("versionInfo")),Ze.createElement("li",null,Ze.createElement("label",null,l.__("License")),this.renderFilter("licenseId"))),Ze.createElement("label",null,Ze.createElement("strong",{className:SX},l.__("Distributions"))))}}r.Filters=i;class n extends Oi.Renderer{constructor(l){super(),this.closeIconSelector=".lm-TabBar-tabCloseIcon",this.model=l}renderTab(l){let c=l.title.caption,u=this.createTabKey(l),d=this.createTabStyle(l),f=this.createTabClass(l),m=this.createTabDataset(l);return Ne.li({key:u,className:f,title:c,style:d,dataset:m},this.renderIcon(l),this.renderLabel(l),this.renderCountBadge(l))}renderCountBadge(l){let c=l.title.label,{bundles:u}=this.model,d=this.model.getFilteredPackages((u&&c?u[c].packages:[])||[]);return Ne.label({},`${d.length}`)}}r.BundleTabRenderer=n;class s extends Ks{constructor(l){super(l),this.renderRow=(c,u)=>{let d=u===this.model.currentPackageIndex,f=()=>this.model.currentPackageIndex=u;return Ze.createElement("tr",{key:c.name,className:d?"jp-mod-selected":"",onClick:f},Ze.createElement("td",null,Ze.createElement("input",{type:"radio",name:"show-package-license",value:u,onChange:f,checked:d}
6278)),Ze.createElement("th",null,c.name),Ze.createElement("td",null,Ze.createElement("code",null,c.versionInfo)),Ze.createElement("td",null,Ze.createElement("code",null,c.licenseId)))},this.addClass("jp-Licenses-Grid"),this.addClass("jp-RenderedHTMLCommon")}render(){var l;let{bundles:c,currentBundleName:u,trans:d}=this.model,f=this.model.getFilteredPackages(c&&u?((l=c[u])===null||l===void 0?void 0:l.packages)||[]:[]);return f.length?Ze.createElement("form",null,Ze.createElement("table",null,Ze.createElement("thead",null,Ze.createElement("tr",null,Ze.createElement("td",null),Ze.createElement("th",null,d.__("Package")),Ze.createElement("th",null,d.__("Version")),Ze.createElement("th",null,d.__("License")))),Ze.createElement("tbody",null,f.map(this.renderRow)))):Ze.createElement("blockquote",null,Ze.createElement("em",null,d.__("No Packages found")))}}r.Grid=s;class o extends Ks{constructor(l){super(l),this.addClass("jp-Licenses-Text"),this.addClass("jp-RenderedHTMLCommon"),this.addClass("jp-RenderedMarkdown")}render(){let{currentPackage:l,trans:c}=this.model,u="",d=c.__("No Package selected"),f="";if(l){let{name:m,versionInfo:g,licenseId:b,extractedText:v}=l;u=`${m} v${g}`,d=`${c.__("License")}: ${b||c.__("No License ID found")}`,f=v||c.__("No License Text found")}return[Ze.createElement("h1",{key:"h1"},u),Ze.createElement("blockquote",{key:"quote"},Ze.createElement("em",null,d)),Ze.createElement("code",{key:"code"},f)]}}r.FullText=o})(Po||(Po={}))});var W3,Vf,G3=p(()=>{W3=N(Wn());(function(r){r.symbol=Symbol("printable");function e(d){return typeof d!="object"||!d?!1:r.symbol in d}r.isPrintable=e;function t(d){return e(d)?d[r.symbol]():null}r.getPrintFunction=t;function i(d){return s(d.node)}r.printWidget=i;async function n(d,f){let m=f??W3.ServerConnection.makeSettings(),g=await(await W3.ServerConnection.makeRequest(d,{},m)).text();return s(g)}r.printURL=n;async function s(d){let f=typeof d=="string",m=o(),g=window.document.body;g.appendChild(m),f?(m.srcdoc=d,await l(m)):(m.src="about:blank",await l(m),a(m,d));let b=c();u(m.contentWindow),await b,g.removeChild(m)}function o(){let d=window.document.createElement("iframe");d.setAttribute("sandbox","allow-modals allow-same-origin");let f="visibility:hidden;width:0;height:0;position:absolute;z-index:-9999;bottom:0;";return d.setAttribute("style",f),d.setAttribute("width","0"),d.setAttribute("height","0"),d}function a(d,f){d.contentDocument.body.appendChild(f.cloneNode(!0)),d.contentDocument.close()}function l(d){return new Promise(f=>{d.onload=()=>f()})}function c(){return new Promise(d=>{let f=()=>{document.removeEventListener("mousemove",f,!0),document.removeEventListener("mousedown",f,!0),document.removeEventListener("keydown",f,!0),d()};document.addEventListener("mousemove",f,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("keydown",f,!0)})}function u(d){d.document.execCommand("print",!1)||d.print()}})(Vf||(Vf={}))});var kX,EX,TX=p(()=>{Sn();Ys();ta();Rt();O3();G3();kX=!0,EX=class extends B{constructor(e){super(e),this._changeGuard=!1,this._spinner=new Ub,this._isRevealed=!1,this._evtMouseDown=()=>{this.node.contains(document.activeElement)||this._focusContent()},this.addClass("jp-MainAreaWidget"),this.addClass("jp-MainAreaWidget-ContainStrict"),this.id=jf.createDomID();let t=(e.translator||gt).load("jupyterlab"),i=this._content=e.content;i.node.setAttribute("role","region"),i.node.setAttribute("aria-label",t.__("main area content"));let n=this._toolbar=e.toolbar||new Hb({noFocusOnClick:!0});n.node.setAttribute("role","toolbar"),n.node.setAttribute("aria-label",t.__("main area toolbar"));let s=this._contentHeader=e.contentHeader||new yu({direction:"top-to-bottom",spacing:0}),o=this.layout=new vr({spacing:0});o.direction="top-to-bottom",vr.setStretch(n,0),vr.setStretch(s,0),vr.setStretch(i,1),o.addWidget(n),o.addWidget(s),o.addWidget(i),i.id||(i.id=jf.createDomID()),i.node.tabIndex=-1,this._updateTitle(),i.title.changed.connect(this._updateTitle,this),this.title.closable=!0,this.title.changed.connect(this._updateContentTitle,this),e.reveal?(this.node.appendChild(this._spinner.node),this._revealed=e.reveal.then(()=>
6278{if(i.isDisposed){this.dispose();return}i.disposed.connect(()=>this.dispose());let a=document.activeElement===this._spinner.node;this._disposeSpinner(),this._isRevealed=!0,a&&this._focusContent()}).catch(a=>{let l=new B;l.addClass("jp-MainAreaWidget-error");let c=document.createElement("pre");throw c.textContent=String(a),l.node.appendChild(c),vr.setStretch(l,1),this._disposeSpinner(),i.dispose(),this._content=null,n.dispose(),this._toolbar=null,o.addWidget(l),this._isRevealed=!0,l})):(this._spinner.dispose(),this.removeClass("jp-MainAreaWidget-ContainStrict"),i.disposed.connect(()=>this.dispose()),this._isRevealed=!0,this._revealed=Promise.resolve(void 0))}[Vf.symbol](){return this._content?Vf.getPrintFunction(this._content):null}get content(){return this._content}get toolbar(){return this._toolbar}get contentHeader(){return this._contentHeader}get isRevealed(){return this._isRevealed}get revealed(){return this._revealed}onActivateRequest(e){this._isRevealed?this._focusContent():this._spinner.node.focus()}onAfterAttach(e){super.onAfterAttach(e),this.node.addEventListener("mousedown",this._evtMouseDown,kX)}onBeforeDetach(e){this.node.removeEventListener("mousedown",this._evtMouseDown,kX),super.onBeforeDetach(e)}onCloseRequest(e){this.dispose()}onUpdateRequest(e){this._content&&J.sendMessage(this._content,e)}_disposeSpinner(){this.node.removeChild(this._spinner.node),this._spinner.dispose(),this.removeClass("jp-MainAreaWidget-ContainStrict")}_updateTitle(){if(this._changeGuard||!this.content)return;this._changeGuard=!0;let e=this.content;this.title.label=e.title.label,this.title.mnemonic=e.title.mnemonic,this.title.icon=e.title.icon,this.title.iconClass=e.title.iconClass,this.title.iconLabel=e.title.iconLabel,this.title.caption=e.title.caption,this.title.className=e.title.className,this.title.dataset=e.title.dataset,this._changeGuard=!1}_updateContentTitle(){if(this._changeGuard||!this.content)return;this._changeGuard=!0;let e=this.content;e.title.label=this.title.label,e.title.mnemonic=this.title.mnemonic,e.title.icon=this.title.icon,e.title.iconClass=this.title.iconClass,e.title.iconLabel=this.title.iconLabel,e.title.caption=this.title.caption,e.title.className=this.title.className,e.title.dataset=this.title.dataset,this._changeGuard=!1}_focusContent(){this.content&&(this.content.node.contains(document.activeElement)||this.content.node.focus(),this.content.activate())}}});var RX,OX,AX,DX=p(()=>{RX=N(Jt());Ys();OX=N(qe());(function(r){function e(a,l){return a.filter(c=>!c.disabled).sort((c,u)=>{var d,f;return((d=c.rank)!==null&&d!==void 0?d:1/0)-((f=u.rank)!==null&&f!==void 0?f:1/0)}).map(c=>t(c,l))}r.createMenus=e;function t(a,l){var c,u;let d=l(a);return d.id=a.id,d.title.label||(d.title.label=(c=a.label)!==null&&c!==void 0?c:RX.Text.titleCase(d.id.trim())),a.icon&&(d.title.icon=j.resolve({icon:a.icon})),a.mnemonic!==void 0&&(d.title.mnemonic=a.mnemonic),(u=a.items)===null||u===void 0||u.filter(f=>!f.disabled).sort((f,m)=>{var g,b;return((g=f.rank)!==null&&g!==void 0?g:1/0)-((b=m.rank)!==null&&b!==void 0?b:1/0)}).map(f=>{n(f,d,l)}),d}function i(a,l,c){let{submenu:u,...d}=a;l.addItem({...d,submenu:u?t(u,c):null})}r.addContextItem=i;function n(a,l,c){let{submenu:u,...d}=a;l.addItem({...d,submenu:u?t(u,c):null})}function s(a,l,c){let u=[];return l.forEach(d=>{let f=a.find(m=>m.id===d.id);f?o(d,f,c):d.disabled||u.push(t(d,c))}),a.push(...u),u}r.updateMenus=s;function o(a,l,c){var u;a.disabled?l.dispose():(u=a.items)===null||u===void 0||u.forEach(d=>{var f,m;let g=l?.items.find((b,v)=>{var S,k,_;return b.type===d.type&&b.command===((S=d.command)!==null&&S!==void 0?S:"")&&((k=b.submenu)===null||k===void 0?void 0:k.id)===((_=d.submenu)===null||_===void 0?void 0:_.id)});if(g&&d.type!=="separator")if(d.disabled)l.removeItem(g);else switch((f=d.type)!==null&&f!==void 0?f:"command"){case"command":d.command&&(OX.JSONExt.deepEqual(g.args,(m=d.args)!==null&&m!==void 0?m:{})||n(d,l,c));break;case"submenu":d.submenu&&o(d.submenu,g.submenu,c)}else n(d,l,c)})}})(AX||(AX={}))});var MX,K3,$X,PX=p(()=>{MX=N(qe());Xe();K3=class{constructor(){this._isDisposed=!1,this._queue=[],this._changed=new te(this)}get changed(){return this._changed}get count(){return this._queue.length}get isDisposed(){return this._isDisposed}get notifications(){return this._queue.slice()}dismiss(e){if(typeof e>"u"){let t=this._queue.slice();this._queue.length=0;for(let i of t)this._changed.emit({type:"removed",notification:i})}else{let t=this._queue.findIndex(i=>i.id===e);if(t>-1){let i=this._queue.splice(t,1)[0];this._changed.emit({type:"removed",notification:i})}}}dispose(){this._isDisposed||(this._isDisposed=!0,te.clearData(this))}has(e){return this._queue.findIndex(t=>t.id===e)>-1}notify(e,t,i){let n=Date.now(),{progress:s,...o}=i,a=Object.freeze({id:MX.UUID.uuid4(),createdAt:n,modifiedAt:n,message:e,type:t,options:{autoClose:0,progress:typeof s=="number"?Math.min(Math.max(0,s),1):s,...o}});return this._queue.unshift(a),this._changed.emit({type:"added",notification:a}),a.id}update(e){let{id:t,message:i,actions:n,autoClose:s,data:o,progress:a,type:l}=e,c=typeof a=="number"?Math.min(Math.max(0,a),1):a,u=this._queue.findIndex(d=>d.id===t);if(u>-1){let d=this._queue[u],f=Object.freeze({...d,message:i??d.message,type:l??d.type,options:{actions:n??d.options.actions,autoClose:s??d.options.autoClose,data:o??d.options.data,progress:c??d.options.progress},modifiedAt:Date.now()});return this._queue.splice(u,1),this._queue.unshift(f),this._changed.emit({type:"updated",notification:f}),!0}return!1}};(function(r){r.manager=new K3;function e(c){r.manager.dismiss(c)}r.dismiss=e;function t(c,u="default",d={}){return r.manager.notify(c,u,d)}r.emit=t;function i(c,u={}){return r.manager.notify(c,"error",u)}r.error=i;function n(c,u={}){return r.manager.notify(c,"info",u)}r.info=n;function s(c,u){var d;let{pending:f,error:m,success:g}=u,b=r.manager.notify(f.message,"in-progress",(d=f.options)!==null&&d!==void 0?d:{});return c.then(v=>{var S,k,_;r.manager.update({id:b,message:g.message(v,(S=g.options)===null||S===void 0?void 0:S.data),type:"success",...g.options,data:(_=(k=g.options)===null||k===void 0?void 0:k.data)!==null&&_!==void 0?_:v})}).catch(v=>{var S,k,_;r.manager.update({id:b,message:m.message(v,(S=m.options)===null||S===void 0?void 0:S.data),type:"error",...m.options,data:(_=(k=m.options)===null||k===void 0?void 0:k.data)!==null&&_!==void 0?_:v})}),b}r.promise=s;function o(c,u={}){return r.manager.notify(c,"success",u)}r.success=o;function a(c){return r.manager.update(c)}r.update=a;function l(c,u={}){return r.manager.notify(c,"warning",u)}r.warning=l})($X||($X={}))});function E2e(r){var e,t;let i=(e=r.showKernels)!==null&&e!==void 0?e:!0,n=(t=r.showTerminals)!==null&&t!==void 0?t:r.terminals>0;return Fo.default.createElement(Qb,{role:"button",tabIndex:0,spacing:Y3,onClick:r.handleClick,onKeyDown:r.handleKeyDown,style:{cursor:"pointer"}},n?Fo.default.createElement(Qb,{spacing:Y3},Fo.default.createElement(Bf,{source:r.terminals}),Fo.default.createElement(DR.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null,i?Fo.default.createElement(Qb,{spacing:Y3},Fo.default.createElement(Bf,{source:r.sessions}),Fo.default.createElement(kR.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null)}var Fo,Y3,Sd,FX=p(()=>{Sn();Ys();Fo=N(re());R3();Y3=4;Sd=class extends Ks{constructor(e){super(new Sd.Model),this._serviceManager=e.serviceManager,this._handleClick=e.onClick,this._handleKeyDown=e.onKeyDown,this.translator=e.translator||gt,this._showKernels=e.showKernels,this._showTerminals=e.showTerminals,this._trans=this.translator.load("jupyterlab"),this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this),this.addClass("jp-mod-highlighted")}
6278render(){if(!this.model)return null;let e=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions);return this.node.title=e,Fo.default.createElement(E2e,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,showKernels:this._showKernels,showTerminals:this._showTerminals})}dispose(){super.dispose(),this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(e,t){this.model.sessions=t.length}_onTerminalsRunningChanged(e,t){this.model.terminals=t.length}};(function(r){class e extends Pl{constructor(){super(...arguments),this._terminals=0,this._sessions=0}get sessions(){return this._sessions}set sessions(i){let n=this._sessions;this._sessions=i,n!==this._sessions&&this.stateChanged.emit(void 0)}get terminals(){return this._terminals}set terminals(i){let n=this._terminals;this._terminals=i,n!==this._terminals&&this.stateChanged.emit(void 0)}}r.Model=e})(Sd||(Sd={}))});var LX=w(X3=>{"use strict";Object.defineProperty(X3,"__esModule",{value:!0});X3.default=new Uint16Array(
vendor: 13,581 bytes, line 6278
6278'\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;
vendor: 4,452 bytes, line 6278
6278\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;
vendor: 23,528 bytes, line 6278
6278\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;
vendor: 5,594 bytes, line 6278
6278Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(function(
vendor: 6,134 bytes, line 6278
6278r){return r.charCodeAt(0)}))});var NX=w(J3=>{"use strict";Object.defineProperty(J3,"__esModule",{value:!0});J3.default=new Uint16Array("\u0200aglq	��\x1B\u026D�\0\0�p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(r){return r.charCodeAt(0)}))});var Q3=w(zl=>{"use strict";var Z3;Object.defineProperty(zl,"__esModule",{value:!0});zl.replaceCodePoint=zl.fromCodePoint=void 0;var T2e=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]]);zl.fromCodePoint=(Z3=String.fromCodePoint)!==null&&Z3!==void 0?Z3:function(r){var e="";return r>65535&&(r-=65536,e+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),e+=String.fromCharCode(r),e};function BX(r){var e;return r>=55296&&r<=57343||r>1114111?65533:(e=T2e.get(r))!==null&&e!==void 0?e:r}zl.replaceCodePoint=BX;function A2e(r){return(0,zl.fromCodePoint)(BX(r))}zl.default=A2e});var Uf=w(Ye=>{"use strict";var R2e=Ye&&Ye.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),O2e=Ye&&Ye.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),D2e=Ye&&Ye.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&R2e(e,r,t);return O2e(e,r),e},jX=Ye&&Ye.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.decodeXML=Ye.decodeHTMLStrict=Ye.decodeHTMLAttribute=Ye.decodeHTML=Ye.determineBranch=Ye.EntityDecoder=Ye.DecodingMode=Ye.BinTrieFlags=Ye.fromCodePoint=Ye.replaceCodePoint=Ye.decodeCodePoint=Ye.xmlDecodeTree=Ye.htmlDecodeTree=void 0;var zX=jX(LX());Ye.htmlDecodeTree=zX.default;var qX=jX(NX());Ye.xmlDecodeTree=qX.default;var t6=D2e(Q3());Ye.decodeCodePoint=t6.default;var HX=Q3();Object.defineProperty(Ye,"replaceCodePoint",{enumerable:!0,get:function(){return HX.replaceCodePoint}});Object.defineProperty(Ye,"fromCodePoint",{enumerable:!0,get:function(){return HX.fromCodePoint}});var Pr;(function(r){r[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z"})(Pr||(Pr={}));var $2e=32,Gc;(function(r){r[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE"})(Gc=Ye.BinTrieFlags||(Ye.BinTrieFlags={}));function e6(r){return r>=Pr.ZERO&&r<=Pr.NINE}function M2e(r){return r>=Pr.UPPER_A&&r<=Pr.UPPER_F||r>=Pr.LOWER_A&&r<=Pr.LOWER_F}function P2e(r){return r>=Pr.UPPER_A&&r<=Pr.UPPER_Z||r>=Pr.LOWER_A&&r<=Pr.LOWER_Z||e6(r)}function F2e(r){return r===Pr.EQUALS||P2e(r)}var Mr;(function(r){r[r.EntityStart=0]="EntityStart",r[r.NumericStart=1]="NumericStart",r[r.NumericDecimal=2]="NumericDecimal",r[r.NumericHex=3]="NumericHex",r[r.NamedEntity=4]="NamedEntity"})(Mr||(Mr={}));var Js;(function(r){r[r.Legacy=0]="Legacy",r[r.Strict=1]="Strict",r[r.Attribute=2]="Attribute"})(Js=Ye.DecodingMode||(Ye.DecodingMode={}));var VX=function(){function r(e,t,i){this.decodeTree=e,this.emitCodePoint=t,this.errors=i,this.state=Mr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Js.Strict}return r.prototype.startEntity=function(e){this.decodeMode=e,this.state=Mr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},r.prototype.write=function(e,t){switch(this.state){case Mr.EntityStart:return e.charCodeAt(t)===Pr.NUM?(this.state=Mr.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Mr.NamedEntity,this.stateNamedEntity(e,t));case Mr.NumericStart:return this.stateNumericStart(e,t);case Mr.NumericDecimal:return this.stateNumericDecimal(e,t);case Mr.NumericHex:return this.stateNumericHex(e,t);case Mr.NamedEntity:return this.stateNamedEntity(e,t)}},r.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(e.charCodeAt(t)|$2e)===Pr.LOWER_X?(this.state=Mr.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Mr.NumericDecimal,this.stateNumericDecimal(e,t))},r.prototype.addToNumericResult=function(e,t,i,n){if(t!==i){var s=i-t;this.result=this.result*Math.pow(n,s)+parseInt(e.substr(t,s),n),this.consumed+=s}},r.prototype.stateNumericHex=function(e,t){for(var i=t;t<e.length;){var n=e.charCodeAt(t);if(e6(n)||M2e(n))t+=1;else return this.addToNumericResult(e,i,t,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(e,i,t,16),-1},r.prototype.stateNumericDecimal=function(e,t){for(var i=t;t<e.length;){var n=e.charCodeAt(t);if(e6(n))t+=1;else return this.addToNumericResult(e,i,t,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(e,i,t,10),-1},r.prototype.emitNumericEntity=function(e,t){var i;if(this.consumed<=t)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Pr.SEMI)this.consumed+=1;else if(this.decodeMode===Js.Strict)return 0;return this.emitCodePoint((0,t6.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==Pr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},r.prototype.stateNamedEntity=function(e,t){for(var i=this.decodeTree,n=i[this.treeIndex],s=(n&Gc.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var o=e.charCodeAt(t);if(this.treeIndex=WX(i,n,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Js.Attribute&&(s===0||F2e(o))?0:this.emitNotTerminatedNamedEntity();if(n=i[this.treeIndex],s=(n&Gc.VALUE_LENGTH)>>
627814,s!==0){if(o===Pr.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Js.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},r.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this,i=t.result,n=t.decodeTree,s=(n[i]&Gc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(i,s,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed},r.prototype.emitNamedEntityData=function(e,t,i){var n=this.decodeTree;return this.emitCodePoint(t===1?n[e]&~Gc.VALUE_LENGTH:n[e+1],i),t===3&&this.emitCodePoint(n[e+2],i),i},r.prototype.end=function(){var e;switch(this.state){case Mr.NamedEntity:return this.result!==0&&(this.decodeMode!==Js.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Mr.NumericDecimal:return this.emitNumericEntity(0,2);case Mr.NumericHex:return this.emitNumericEntity(0,3);case Mr.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Mr.EntityStart:return 0}},r}();Ye.EntityDecoder=VX;function UX(r){var e="",t=new VX(r,function(i){return e+=(0,t6.fromCodePoint)(i)});return function(n,s){for(var o=0,a=0;(a=n.indexOf("&",a))>=0;){e+=n.slice(o,a),t.startEntity(s);var l=t.write(n,a+1);if(l<0){o=a+t.end();break}o=a+l,a=l===0?o+1:o}var c=e+n.slice(o);return e="",c}}function WX(r,e,t,i){var n=(e&Gc.BRANCH_LENGTH)>>7,s=e&Gc.JUMP_TABLE;if(n===0)return s!==0&&i===s?t:-1;if(s){var o=i-s;return o<0||o>=n?-1:r[t+o]-1}for(var a=t,l=a+n-1;a<=l;){var c=a+l>>>1,u=r[c];if(u<i)a=c+1;else if(u>i)l=c-1;else return r[c+n]}return-1}Ye.determineBranch=WX;var r6=UX(zX.default),L2e=UX(qX.default);function N2e(r,e){return e===void 0&&(e=Js.Legacy),r6(r,e)}Ye.decodeHTML=N2e;function B2e(r){return r6(r,Js.Attribute)}Ye.decodeHTMLAttribute=B2e;function j2e(r){return r6(r,Js.Strict)}Ye.decodeHTMLStrict=j2e;function z2e(r){return L2e(r,Js.Strict)}Ye.decodeXML=z2e});var i6=w(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.QuoteType=void 0;var Kc=Uf(),ge;(function(r){r[r.Tab=9]="Tab",r[r.NewLine=10]="NewLine",r[r.FormFeed=12]="FormFeed",r[r.CarriageReturn=13]="CarriageReturn",r[r.Space=32]="Space",r[r.ExclamationMark=33]="ExclamationMark",r[r.Number=35]="Number",r[r.Amp=38]="Amp",r[r.SingleQuote=39]="SingleQuote",r[r.DoubleQuote=34]="DoubleQuote",r[r.Dash=45]="Dash",r[r.Slash=47]="Slash",r[r.Zero=48]="Zero",r[r.Nine=57]="Nine",r[r.Semi=59]="Semi",r[r.Lt=60]="Lt",r[r.Eq=61]="Eq",r[r.Gt=62]="Gt",r[r.Questionmark=63]="Questionmark",r[r.UpperA=65]="UpperA",r[r.LowerA=97]="LowerA",r[r.UpperF=70]="UpperF",r[r.LowerF=102]="LowerF",r[r.UpperZ=90]="UpperZ",r[r.LowerZ=122]="LowerZ",r[r.LowerX=120]="LowerX",r[r.OpeningSquareBracket=91]="OpeningSquareBracket"})(ge||(ge={}));var G;(function(r){r[r.Text=1]="Text",r[r.BeforeTagName=2]="BeforeTagName",r[r.InTagName=3]="InTagName",r[r.InSelfClosingTag=4]="InSelfClosingTag",r[r.BeforeClosingTagName=5]="BeforeClosingTagName",r[r.InClosingTagName=6]="InClosingTagName",r[r.AfterClosingTagName=7]="AfterClosingTagName",r[r.BeforeAttributeName=8]="BeforeAttributeName",r[r.InAttributeName=9]="InAttributeName",r[r.AfterAttributeName=10]="AfterAttributeName",r[r.BeforeAttributeValue=11]="BeforeAttributeValue",r[r.InAttributeValueDq=12]="InAttributeValueDq",r[r.InAttributeValueSq=13]="InAttributeValueSq",r[r.InAttributeValueNq=14]="InAttributeValueNq",r[r.BeforeDeclaration=15]="BeforeDeclaration",r[r.InDeclaration=16]="InDeclaration",r[r.InProcessingInstruction=17]="InProcessingInstruction",r[r.BeforeComment=18]="BeforeComment",r[r.CDATASequence=19]="CDATASequence",r[r.InSpecialComment=20]="InSpecialComment",r[r.InCommentLike=21]="InCommentLike",r[r.BeforeSpecialS=22]="BeforeSpecialS",r[r.SpecialStartSequence=23]="SpecialStartSequence",r[r.InSpecialTag=24]="InSpecialTag",r[r.BeforeEntity=25]="BeforeEntity",r[r.BeforeNumericEntity=26]="BeforeNumericEntity",r[r.InNamedEntity=27]="InNamedEntity",r[r.InNumericEntity=28]="InNumericEntity",r[r.InHexEntity=29]="InHexEntity"})(G||(G={}));function Lo(r){return r===ge.Space||r===ge.NewLine||r===ge.Tab||r===ge.FormFeed||r===ge.CarriageReturn}function lv(r){return r===ge.Slash||r===ge.Gt||Lo(r)}function GX(r){return r>=ge.Zero&&r<=ge.Nine}function q2e(r){return r>=ge.LowerA&&r<=ge.LowerZ||r>=ge.UpperA&&r<=ge.UpperZ}function H2e(r){return r>=ge.UpperA&&r<=ge.UpperF||r>=ge.LowerA&&r<=ge.LowerF}var Cd;(function(r){r[r.NoValue=0]="NoValue",r[r.Unquoted=1]="Unquoted",r[r.Single=2]="Single",r[r.Double=3]="Double"})(Cd=Id.QuoteType||(Id.QuoteType={}));var Ki={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},V2e=function(){function r(e,t){var i=e.xmlMode,n=i===void 0?!1:i,s=e.decodeEntities,o=s===void 0?!0:s;this.cbs=t,this.state=G.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=G.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=n,this.decodeEntities=o,this.entityTrie=n?Kc.xmlDecodeTree:Kc.htmlDecodeTree}return r.prototype.reset=function(){this.state=G.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=G.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},r.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},r.prototype.end=function(){this.running&&this.finish()},r.prototype.pause=function(){this.running=!1},r.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},r.prototype.getIndex=function(){return this.index},r.prototype.getSectionStart=function(){return this.sectionStart},r.prototype.stateText=function(e){e===ge.Lt||!this.decodeEntities&&this.fastForwardTo(ge.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=G.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===ge.Amp&&(this.state=G.BeforeEntity)},r.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length,i=t?lv(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!i)this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=G.InTagName,this.stateInTagName(e)},r.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===ge.Gt||Lo(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart<t){var i=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=i}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ki.TitleEnd?this.decodeEntities&&e===ge.Amp&&(this.state=G.BeforeEntity):this.fastForwardTo(ge.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===ge.Lt)},r.prototype.stateCDATASequence=function(e){e===Ki.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ki.Cdata.length&&(this.state=G.InCommentLike,this.currentSequence=Ki.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=G.InDeclaration,this.stateInDeclaration(e))},r.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},r.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ki.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=G.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},r.prototype.isTagStartChar=function(e){return this.xmlMode?!lv(e):q2e(e)},r.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=G.SpecialStartSequence},r.prototype.stateBeforeTagName=function(e){if(e===ge.ExclamationMark)this.state=G.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===ge.Questionmark)this.state=G.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=e|32;this.sectionStart=this.index,!this.xmlMode&&t===Ki.TitleEnd[2]?this.startSpecial(Ki.TitleEnd,3):this.state=!this.xmlMode&&t===Ki.ScriptEnd[2]?G.BeforeSpecialS:G.InTagName}else e===ge.Slash?this.state=G.BeforeClosingTagName:(this.state=G.Text,this.stateText(e))},r.prototype.stateInTagName=function(e){lv(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(e))},r.prototype.stateBeforeClosingTagName=function(e){Lo(e)||(e===ge.Gt?this.state=G.Text:(this.state=this.isTagStartChar(e)?G.InClosingTagName:G.InSpecialComment,this.sectionStart=this.index))},r.prototype.stateInClosingTagName=function(e){(e===ge.Gt||Lo(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=G.AfterClosingTagName,this.stateAfterClosingTagName(e))},r.prototype.stateAfterClosingTagName=function(e){(e===ge.Gt||this.fastForwardTo(ge.Gt))&&(this.state=G.Text,this.baseState=G.Text,this.sectionStart=this.index+1)},r.prototype.stateBeforeAttributeName=function(e){e===ge.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=G.InSpecialTag,this.sequenceIndex=0):this.state=G.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===ge.Slash?this.state=G.InSelfClosingTag:Lo(e)||(this.state=G.InAttributeName,this.sectionStart=this.index)},r.prototype.stateInSelfClosingTag=function(e){e===ge.Gt?(this.cbs.onselfclosingtag(this.index),this.state=G.Text,this.baseState=G.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Lo(e)||(this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(e))},r.prototype.stateInAttributeName=function(e){(e===ge.Eq||lv(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=G.AfterAttributeName,this.stateAfterAttributeName(e))},r.prototype.stateAfterAttributeName=function(e){e===ge.Eq?this.state=G.BeforeAttributeValue:e===ge.Slash||e===ge.Gt?(this.cbs.onattribend(Cd.NoValue,this.index),this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(e)):Lo(e)||(this.cbs.onattribend(Cd.NoValue,this.index),this.state=G.InAttributeName,this.sectionStart=this.index)},r.prototype.stateBeforeAttributeValue=function(e){e===ge.DoubleQuote?(this.state=G.InAttributeValueDq,this.sectionStart=this.index+1):e===ge.SingleQuote?(this.state=G.InAttributeValueSq,this.sectionStart=this.index+1):Lo(e)||(this.sectionStart=this.index,this.state=G.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},r.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===ge.DoubleQuote?Cd.Double:Cd.Single,this.index),this.state=G.BeforeAttributeName):this.decodeEntities&&e===ge.Amp&&(this.baseState=this.state,this.state=G.BeforeEntity)},r.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,ge.DoubleQuote)},r.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,ge.SingleQuote)},r.prototype.stateInAttributeValueNoQuotes=function(e){Lo(e)||e===ge.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Cd.Unquoted,this.index),this.state=G.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===ge.Amp&&(this.baseState=this.state,this.state=G.BeforeEntity)},r.prototype.stateBeforeDeclaration=function(e){e===ge.OpeningSquareBracket?(this.state=G.CDATASequence,this.sequenceIndex=0):this.state=e===ge.Dash?G.BeforeComment:G.InDeclaration},r.prototype.stateInDeclaration=function(e){(e===ge.Gt||this.fastForwardTo(ge.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=G.Text,this.sectionStart=this.index+1)},r.prototype.stateInProcessingInstruction=function(e){(e===ge.Gt||this.fastForwardTo(ge.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=G.Text,this.sectionStart=this.index+1)},r.prototype.stateBeforeComment=function(e){e===ge.Dash?(this.state=G.InCommentLike,this.currentSequence=Ki.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=G.InDeclaration},r.prototype.stateInSpecialComment=function(e){(e===ge.Gt||this.fastForwardTo(ge.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=G.Text,this.sectionStart=this.index+1)},r.prototype.stateBeforeSpecialS=function(e){var t=e|32;t===Ki.ScriptEnd[3]?this.startSpecial(Ki.ScriptEnd,4):t===Ki.StyleEnd[3]?this.startSpecial(Ki.StyleEnd,4):(this.state=G.InTagName,this.stateInTagName(e))},r.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===ge.Number?this.state=G.BeforeNumericEntity:e===ge.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=G.InNamedEntity,this.stateInNamedEntity(e))},r.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,Kc.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&Kc.BinTrieFlags.VALUE_LENGTH;if(t){var i=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==ge.Semi)this.trieIndex+=i;else{var n=this.index-this.entityExcess+1;n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,i===0&&this.emitNamedEntity()}}},r.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var e=(this.entityTrie[this.entityResult]&Kc.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Kc.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},r.prototype.stateBeforeNumericEntity=function(e){(e|32)===ge.LowerX?(this.entityExcess++,this.state=G.InHexEntity):(this.state=G.InNumericEntity,this.stateInNumericEntity(e))},r.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1,i=t+2+Number(this.state===G.InHexEntity);i!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,Kc.replaceCodePoint)(this.entityResult))),this.state=this.baseState},r.prototype.stateInNumericEntity=function(e){e===ge.Semi?this.emitNumericEntity(!0):GX(e)?(this.entityResult=this.entityResult*10+(e-ge.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},r.prototype.stateInHexEntity=function(e){e===ge.Semi?this.emitNumericEntity(!0):GX(e)?(this.entityResult=this.entityResult*16+(e-ge.Zero),this.entityExcess++):H2e(e)?(this.entityResult=this.entityResult*16+((e|32)-ge.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},r.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===G.Text||this.baseState===G.InSpecialTag)},r.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===G.Text||this.state===G.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===G.InAttributeValueDq||this.state===G.InAttributeValueSq||this.state===G.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},r.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.runn
6278ing},r.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case G.Text:{this.stateText(e);break}case G.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case G.InSpecialTag:{this.stateInSpecialTag(e);break}case G.CDATASequence:{this.stateCDATASequence(e);break}case G.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case G.InAttributeName:{this.stateInAttributeName(e);break}case G.InCommentLike:{this.stateInCommentLike(e);break}case G.InSpecialComment:{this.stateInSpecialComment(e);break}case G.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case G.InTagName:{this.stateInTagName(e);break}case G.InClosingTagName:{this.stateInClosingTagName(e);break}case G.BeforeTagName:{this.stateBeforeTagName(e);break}case G.AfterAttributeName:{this.stateAfterAttributeName(e);break}case G.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case G.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case G.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case G.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case G.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case G.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case G.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case G.InDeclaration:{this.stateInDeclaration(e);break}case G.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case G.BeforeComment:{this.stateBeforeComment(e);break}case G.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case G.InNamedEntity:{this.stateInNamedEntity(e);break}case G.BeforeEntity:{this.stateBeforeEntity(e);break}case G.InHexEntity:{this.stateInHexEntity(e);break}case G.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},r.prototype.finish=function(){this.state===G.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},r.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===G.InCommentLike?this.currentSequence===Ki.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===G.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===G.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===G.InTagName||this.state===G.BeforeAttributeName||this.state===G.BeforeAttributeValue||this.state===G.AfterAttributeName||this.state===G.InAttributeName||this.state===G.InAttributeValueSq||this.state===G.InAttributeValueDq||this.state===G.InAttributeValueNq||this.state===G.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},r.prototype.emitPartial=function(e,t){this.baseState!==G.Text&&this.baseState!==G.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},r.prototype.emitCodePoint=function(e){this.baseState!==G.Text&&this.baseState!==G.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},r}();Id.default=V2e});var n6=w(Zs=>{"use strict";var U2e=Zs&&Zs.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),W2e=Zs&&Zs.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),G2e=Zs&&Zs.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&U2e(e,r,t);return W2e(e,r),e};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.Parser=void 0;var cv=G2e(i6()),KX=Uf(),kd=new Set(["input","option","optgroup","select","button","datalist","textarea"]),wt=new Set(["p"]),YX=new Set(["thead","tbody"]),XX=new Set(["dd","dt"]),JX=new Set(["rt","rp"]),K2e=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",wt],["h1",wt],["h2",wt],["h3",wt],["h4",wt],["h5",wt],["h6",wt],["select",kd],["input",kd],["output",kd],["button",kd],["datalist",kd],["textarea",kd],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",XX],["dt",XX],["address",wt],["article",wt],["aside",wt],["blockquote",wt],["details",wt],["div",wt],["dl",wt],["fieldset",wt],["figcaption",wt],["figure",wt],["footer",wt],["form",wt],["header",wt],["hr",wt],["main",wt],["nav",wt],["ol",wt],["pre",wt],["section",wt],["table",wt],["ul",wt],["rt",JX],["rp",JX],["tbody",YX],["tfoot",YX]]),Y2e=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
6278img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ZX=new Set(["math","svg"]),QX=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),X2e=/\s|\//,J2e=function(){function r(e,t){t===void 0&&(t={});var i,n,s,o,a;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(i=t.lowerCaseTags)!==null&&i!==void 0?i:!t.xmlMode,this.lowerCaseAttributeNames=(n=t.lowerCaseAttributeNames)!==null&&n!==void 0?n:!t.xmlMode,this.tokenizer=new((s=t.Tokenizer)!==null&&s!==void 0?s:cv.default)(this.options,this),(a=(o=this.cbs).onparserinit)===null||a===void 0||a.call(o,this)}return r.prototype.ontext=function(e,t){var i,n,s=this.getSlice(e,t);this.endIndex=t-1,(n=(i=this.cbs).ontext)===null||n===void 0||n.call(i,s),this.startIndex=t},r.prototype.ontextentity=function(e){var t,i,n=this.tokenizer.getSectionStart();this.endIndex=n-1,(i=(t=this.cbs).ontext)===null||i===void 0||i.call(t,(0,KX.fromCodePoint)(e)),this.startIndex=n},r.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Y2e.has(e)},r.prototype.onopentagname=function(e,t){this.endIndex=t;var i=this.getSlice(e,t);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)},r.prototype.emitOpenTag=function(e){var t,i,n,s;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&K2e.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(i=(t=this.cbs).onclosetag)===null||i===void 0||i.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),ZX.has(e)?this.foreignContext.push(!0):QX.has(e)&&this.foreignContext.push(!1)),(s=(n=this.cbs).onopentagname)===null||s===void 0||s.call(n,e),this.cbs.onopentag&&(this.attribs={})},r.prototype.endOpenTag=function(e){var t,i;this.startIndex=this.openTagStart,this.attribs&&((i=(t=this.cbs).onopentag)===null||i===void 0||i.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},r.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},r.prototype.onclosetag=function(e,t){var i,n,s,o,a,l;this.endIndex=t;var c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(ZX.has(c)||QX.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((n=(i=this.cbs).onopentagname)===null||n===void 0||n.call(i,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(l=(a=this.cbs).onclosetag)===null||l===void 0||l.call(a,"br",!1));else{var u=this.stack.lastIndexOf(c);if(u!==-1)if(this.cbs.onclosetag)for(var d=this.stack.length-u;d--;)this.cbs.onclosetag(this.stack.pop(),d!==0);else this.stack.length=u;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},r.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},r.prototype.closeCurrentTag=function(e){var t,i,n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&((i=(t=this.cbs).onclosetag)===null||i===void 0||i.call(t,n,!e),this.stack.pop())},r.prototype.onattribname=function(e,t){this.startIndex=e;var i=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i},r.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},r.prototype.onattribentity=function(e){this.attribvalue+=(0,KX.fromCodePoint)(e)},r.prototype.onattribend=function(e,t){var i,n;this.endIndex=t,(n=(i=this.cbs).onattribute)===null||n===void 0||n.call(i,this.attribname,this.attribvalue,e===cv.QuoteType.Double?'"':e===cv.QuoteType.Single?"'":e===cv.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},r.prototype.getInstructionName=function(e){var t=e.search(X2e),i=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i},r.prototype.ondeclaration=function(e,t){this.endIndex=t;var i=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(i);this.cbs.onprocessinginstruction("!".concat(n),"!".concat(i))}this.startIndex=t+1},r.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var i=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(i);this.cbs.onprocessinginstruction("?".concat(n),"?".concat(i))}this.startIndex=t+1},r.prototype.oncomment=function(e,t,i){var n,s,o,a;this.endIndex=t,(s=(n=this.cbs).oncomment)===null||s===void 0||s.call(n,this.get
6278Slice(e,t-i)),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o),this.startIndex=t+1},r.prototype.oncdata=function(e,t,i){var n,s,o,a,l,c,u,d,f,m;this.endIndex=t;var g=this.getSlice(e,t-i);this.options.xmlMode||this.options.recognizeCDATA?((s=(n=this.cbs).oncdatastart)===null||s===void 0||s.call(n),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,g),(c=(l=this.cbs).oncdataend)===null||c===void 0||c.call(l)):((d=(u=this.cbs).oncomment)===null||d===void 0||d.call(u,"[CDATA[".concat(g,"]]")),(m=(f=this.cbs).oncommentend)===null||m===void 0||m.call(f)),this.startIndex=t+1},r.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i],!0));}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)},r.prototype.reset=function(){var e,t,i,n;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(i=this.cbs).onparserinit)===null||n===void 0||n.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},r.prototype.parseComplete=function(e){this.reset(),this.end(e)},r.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var i=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,t-this.bufferOffset);return i},r.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},r.prototype.write=function(e){var t,i;if(this.ended){(i=(t=this.cbs).onerror)===null||i===void 0||i.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},r.prototype.end=function(e){var t,i;if(this.ended){(i=(t=this.cbs).onerror)===null||i===void 0||i.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},r.prototype.pause=function(){this.tokenizer.pause()},r.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},r.prototype.parseChunk=function(e){this.write(e)},r.prototype.done=function(e){this.end(e)},r}();Zs.Parser=J2e});var Ed=w(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.Doctype=Pt.CDATA=Pt.Tag=Pt.Style=Pt.Script=Pt.Comment=Pt.Directive=Pt.Text=Pt.Root=Pt.isTag=Pt.ElementType=void 0;var bn;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(bn=Pt.ElementType||(Pt.ElementType={}));function Z2e(r){return r.type===bn.Tag||r.type===bn.Script||r.type===bn.Style}Pt.isTag=Z2e;Pt.Root=bn.Root;Pt.Text=bn.Text;Pt.Directive=bn.Directive;Pt.Comment=bn.Comment;Pt.Script=bn.Script;Pt.Style=bn.Style;Pt.Tag=bn.Tag;Pt.CDATA=bn.CDATA;Pt.Doctype=bn.Doctype});var l6=w(Ue=>{"use strict";var ql=Ue&&Ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wf=Ue&&Ue.__assign||function(){return Wf=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},Wf.apply(this,arguments)};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.cloneNode=Ue.hasChildren=Ue.isDocument=Ue.isDirective=Ue.isComment=Ue.isText=Ue.isCDATA=Ue.isTag=Ue.Element=Ue.Document=Ue.CDATA=Ue.NodeWithChildren=Ue.ProcessingInstruction=Ue.Comment=Ue.Text=Ue.DataNode=Ue.Node=void 0;var Yi=Ed(),o6=function(){function r(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(r.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e}
vendor: 8,010 bytes, line 6278
6278,enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),r.prototype.cloneNode=function(e){return e===void 0&&(e=!1),a6(this,e)},r}();Ue.Node=o6;var uv=function(r){ql(e,r);function e(t){var i=r.call(this)||this;return i.data=t,i}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(o6);Ue.DataNode=uv;var eJ=function(r){ql(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Yi.ElementType.Text,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(uv);Ue.Text=eJ;var tJ=function(r){ql(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Yi.ElementType.Comment,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(uv);Ue.Comment=tJ;var rJ=function(r){ql(e,r);function e(t,i){var n=r.call(this,i)||this;return n.name=t,n.type=Yi.ElementType.Directive,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(uv);Ue.ProcessingInstruction=rJ;var dv=function(r){ql(e,r);function e(t){var i=r.call(this)||this;return i.children=t,i}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t: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(t){this.children=t},enumerable:!1,configurable:!0}),e}(o6);Ue.NodeWithChildren=dv;var iJ=function(r){ql(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Yi.ElementType.CDATA,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(dv);Ue.CDATA=iJ;var nJ=function(r){ql(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Yi.ElementType.Root,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(dv);Ue.Document=nJ;var sJ=function(r){ql(e,r);function e(t,i,n,s){n===void 0&&(n=[]),s===void 0&&(s=t==="script"?Yi.ElementType.Script:t==="style"?Yi.ElementType.Style:Yi.ElementType.Tag);var o=r.call(this,n)||this;return o.name=t,o.attribs=i,o.type=s,o}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(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(i){var n,s;return{name:i,value:t.attribs[i],namespace:(n=t["x-attribsNamespace"])===null||n===void 0?void 0:n[i],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[i]}})},enumerable:!1,configurable:!0}),e}(dv);Ue.Element=sJ;function oJ(r){return(0,Yi.isTag)(r)}Ue.isTag=oJ;function aJ(r){return r.type===Yi.ElementType.CDATA}Ue.isCDATA=aJ;function lJ(r){return r.type===Yi.ElementType.Text}Ue.isText=lJ;function cJ(r){return r.type===Yi.ElementType.Comment}Ue.isComment=cJ;function uJ(r){return r.type===Yi.ElementType.Directive}Ue.isDirective=uJ;function dJ(r){return r.type===Yi.ElementType.Root}Ue.isDocument=dJ;function Q2e(r){return Object.prototype.hasOwnProperty.call(r,"children")}Ue.hasChildren=Q2e;function a6(r,e){e===void 0&&(e=!1);var t;if(lJ(r))t=new eJ(r.data);else if(cJ(r))t=new tJ(r.data);else if(oJ(r)){var i=e?s6(r.children):[],n=new sJ(r.name,Wf({},r.attribs),i);i.forEach(function(l){return l.parent=n}),r.namespace!=null&&(n.namespace=r.namespace),r["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Wf({},r["x-attribsNamespace"])),r["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Wf({},r["x-attribsPrefix"])),t=n}else if(aJ(r)){var i=e?s6(r.children):[],s=new iJ(i);i.forEach(function(c){return c.parent=s}),t=s}else if(dJ(r)){var i=e?s6(r.children):[],o=new nJ(i);i.forEach(function(c){return c.parent=o}),r["x-mode"]&&(o["x-mode"]=r["x-mode"]),t=o}else if(uJ(r)){var a=new rJ(r.name,r.data);r["x-name"]!=null&&(a["x-name"]=r["x-name"],a["x-publicId"]=r["x-publicId"],a["x-systemId"]=r["x-systemId"]),t=a}else throw new Error("Not implemented yet: ".concat(r.type));return t.startIndex=r.startIndex,t.endIndex=r.endIndex,r.sourceCodeLocation!=null&&(t.sourceCodeLocation=r.sourceCodeLocation),t}Ue.cloneNode=a6;function s6(r){for(var e=r.map(function(i){return a6(i,!0)}),t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}});var No=w(Qs=>{"use strict";var eSe=Qs&&Qs.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),tSe=Qs&&Qs.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&eSe(e,r,t)};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.DomHandler=void 0;var c6=Ed(),Hl=l6();tSe(l6(),Qs);var hJ={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},fJ=function(){function r(e,t,i){this.dom=[],this.root=new Hl.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t=="function"&&(i=t,t=hJ),typeof e=="object"&&(t=e,e=void 0),this.callback=e??null,this.options=t??hJ,this.elementCB=i??null}return r.prototype.onparserinit=function(e){this.parser=e},r.prototype.onreset=function(){this.dom=[],this.root=new Hl.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},r.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},r.prototype.onerror=function(e){this.handleCallback(e)},r.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},r.prototype.onopentag=function(e,t){var i=this.options.xmlMode?c6.ElementType.Tag:void 0,n=new Hl.Element(e,t,void 0,i);this.addNode(n),this.tagStack.push(n)},r.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===c6.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var i=new Hl.Text(e);this.addNode(i),this.lastNode=i}},r.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===c6.ElementType.Comment){this.lastNode.data+=e;return}var t=new Hl.Comment(e);this.addNode(t),this.lastNode=t},r.prototype.oncommentend=function(){this.lastNode=null},r.prototype.oncdatastart=function(){var e=new Hl.Text(""),t=new Hl.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},r.prototype.oncdataend=function(){this.lastNode=null},r.prototype.onprocessinginstruction=function(e,t){var i=new Hl.ProcessingInstruction(e,t);this.addNode(i)},r.prototype.handleCallback=function(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e},r.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],i=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),i&&(e.prev=i,i.next=e),e.parent=t,this.lastNode=null},r}();Qs.DomHandler=fJ;Qs.default=fJ});var pJ=w(u6=>{"use strict";Object.defineProperty(u6,"__esModule",{value:!0});function hv(r){for(var e=1;e<r.length;e++)r[e][0]+=r[e-1][0]+1;return r}u6.default=new Map(hv
vendor: 10,610 bytes, line 6278
6278([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(
6278hv([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(hv([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;
6278"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(hv([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]))});var fv=w(Sr=>{"use strict";
6278Object.defineProperty(Sr,"__esModule",{value:!0});Sr.escapeText=Sr.escapeAttribute=Sr.escapeUTF8=Sr.escape=Sr.encodeXML=Sr.getCodePoint=Sr.xmlReplacer=void 0;Sr.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var mJ=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);Sr.getCodePoint=String.prototype.codePointAt!=null?function(r,e){return r.codePointAt(e)}:function(r,e){return(r.charCodeAt(e)&64512)===55296?(r.charCodeAt(e)-55296)*1024+r.charCodeAt(e+1)-56320+65536:r.charCodeAt(e)};function gJ(r){for(var e="",t=0,i;(i=Sr.xmlReplacer.exec(r))!==null;){var n=i.index,s=r.charCodeAt(n),o=mJ.get(s);o!==void 0?(e+=r.substring(t,n)+o,t=n+1):(e+="".concat(r.substring(t,n),"&#x").concat((0,Sr.getCodePoint)(r,n).toString(16),";"),t=Sr.xmlReplacer.lastIndex+=Number((s&64512)===55296))}return e+r.substr(t)}Sr.encodeXML=gJ;Sr.escape=gJ;function d6(r,e){return function(i){for(var n,s=0,o="";n=r.exec(i);)s!==n.index&&(o+=i.substring(s,n.index)),o+=e.get(n[0].charCodeAt(0)),s=n.index+1;return o+i.substring(s)}}Sr.escapeUTF8=d6(/[&<>'"]/g,mJ);Sr.escapeAttribute=d6(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]));Sr.escapeText=d6(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});var h6=w(Vl=>{"use strict";var rSe=Vl&&Vl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vl,"__esModule",{value:!0});Vl.encodeNonAsciiHTML=Vl.encodeHTML=void 0;var iSe=rSe(pJ()),bJ=fv(),nSe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function sSe(r){return vJ(nSe,r)}Vl.encodeHTML=sSe;function oSe(r){return vJ(bJ.xmlReplacer,r)}Vl.encodeNonAsciiHTML=oSe;function vJ(r,e){for(var t="",i=0,n;(n=r.exec(e))!==null;){var s=n.index;t+=e.substring(i,s);var o=e.charCodeAt(s),a=iSe.default.get(o);if(typeof a=="object"){if(s+1<e.length){var l=e.charCodeAt(s+1),c=typeof a.n=="number"?a.n===l?a.o:void 0:a.n.get(l);if(c!==void 0){t+=c,i=r.lastIndex+=1;continue}}a=a.v}if(a!==void 0)t+=a,i=s+1;else{var u=(0,bJ.getCodePoint)(e,s);t+="&#x".concat(u.toString(16),";"),i=r.lastIndex+=Number(u!==o)}}return t+e.substr(i)}});var _J=w(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.decodeXMLStrict=Ie.decodeHTML5Strict=Ie.decodeHTML4Strict=Ie.decodeHTML5=Ie.decodeHTML4=Ie.decodeHTMLAttribute=Ie.decodeHTMLStrict=Ie.decodeHTML=Ie.decodeXML=Ie.DecodingMode=Ie.EntityDecoder=Ie.encodeHTML5=Ie.encodeHTML4=Ie.encodeNonAsciiHTML=Ie.encodeHTML=Ie.escapeText=Ie.escapeAttribute=Ie.escapeUTF8=Ie.escape=Ie.encodeXML=Ie.encode=Ie.decodeStrict=Ie.decode=Ie.EncodingMode=Ie.EntityLevel=void 0;var f6=Uf(),yJ=h6(),pv=fv(),Td;(function(r){r[r.XML=0]="XML",r[r.HTML=1]="HTML"})(Td=Ie.EntityLevel||(Ie.EntityLevel={}));var Gf;(function(r){r[r.UTF8=0]="UTF8",r[r.ASCII=1]="ASCII",r[r.Extensive=2]="Extensive",r[r.Attribute=3]="Attribute",r[r.Text=4]="Text"})(Gf=Ie.EncodingMode||(Ie.EncodingMode={}));function xJ(r,e){e===void 0&&(e=Td.XML);var t=typeof e=="number"?e:e.level;if(t===Td.HTML){var i=typeof e=="object"?e.mode:void 0;return(0,f6.decodeHTML)(r,i)}return(0,f6.decodeXML)(r)}Ie.decode=xJ;function aSe(r,e){var t;e===void 0&&(e=Td.XML);var i=typeof e=="number"?{level:e}:e;return(t=i.mode)!==null&&t!==void 0||(i.mode=f6.DecodingMode.Strict),xJ(r,i)}Ie.decodeStrict=aSe;function lSe(r,e){e===void 0&&(e=Td.XML);var t=typeof e=="number"?{level:e}:e;return t.mode===Gf.UTF8?(0,pv.escapeUTF8)(r):t.mode===Gf.Attribute?(0,pv.escapeAttribute)(r):t.mode===Gf.Text?(0,pv.escapeText)(r):t.level===Td.HTML?t.mode===Gf.ASCII?(0,yJ.encodeNonAsciiHTML)(r):(0,yJ.encodeHTML)(r):(0,pv.encodeXML)(r)}Ie.encode=lSe;var Kf=fv();Object.defineProperty(Ie,"encodeXML",{enumerable:!0,get:function(){return Kf.encodeXML}
6278});Object.defineProperty(Ie,"escape",{enumerable:!0,get:function(){return Kf.escape}});Object.defineProperty(Ie,"escapeUTF8",{enumerable:!0,get:function(){return Kf.escapeUTF8}});Object.defineProperty(Ie,"escapeAttribute",{enumerable:!0,get:function(){return Kf.escapeAttribute}});Object.defineProperty(Ie,"escapeText",{enumerable:!0,get:function(){return Kf.escapeText}});var mv=h6();Object.defineProperty(Ie,"encodeHTML",{enumerable:!0,get:function(){return mv.encodeHTML}});Object.defineProperty(Ie,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return mv.encodeNonAsciiHTML}});Object.defineProperty(Ie,"encodeHTML4",{enumerable:!0,get:function(){return mv.encodeHTML}});Object.defineProperty(Ie,"encodeHTML5",{enumerable:!0,get:function(){return mv.encodeHTML}});var bs=Uf();Object.defineProperty(Ie,"EntityDecoder",{enumerable:!0,get:function(){return bs.EntityDecoder}});Object.defineProperty(Ie,"DecodingMode",{enumerable:!0,get:function(){return bs.DecodingMode}});Object.defineProperty(Ie,"decodeXML",{enumerable:!0,get:function(){return bs.decodeXML}});Object.defineProperty(Ie,"decodeHTML",{enumerable:!0,get:function(){return bs.decodeHTML}});Object.defineProperty(Ie,"decodeHTMLStrict",{enumerable:!0,get:function(){return bs.decodeHTMLStrict}});Object.defineProperty(Ie,"decodeHTMLAttribute",{enumerable:!0,get:function(){return bs.decodeHTMLAttribute}});Object.defineProperty(Ie,"decodeHTML4",{enumerable:!0,get:function(){return bs.decodeHTML}});Object.defineProperty(Ie,"decodeHTML5",{enumerable:!0,get:function(){return bs.decodeHTML}});Object.defineProperty(Ie,"decodeHTML4Strict",{enumerable:!0,get:function(){return bs.decodeHTMLStrict}});Object.defineProperty(Ie,"decodeHTML5Strict",{enumerable:!0,get:function(){return bs.decodeHTMLStrict}});Object.defineProperty(Ie,"decodeXMLStrict",{enumerable:!0,get:function(){return bs.decodeXML}})});var wJ=w(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.attributeNames=Ad.elementNames=void 0;Ad.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(r){return[r.toLowerCase(),r]}));Ad.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(r){return[r.toLowerCase(),r]}))});var IJ=w(vn=>{"use strict";var Rd=vn&&vn.__assign||function(){return Rd=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},Rd.apply(this,arguments)},cSe=vn&&vn.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),uSe=vn&&vn.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}
vendor: 11,281 bytes, lines 6278-6279
6278),dSe=vn&&vn.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&cSe(e,r,t);return uSe(e,r),e};Object.defineProperty(vn,"__esModule",{value:!0});vn.render=void 0;var Bo=dSe(Ed()),gv=_J(),CJ=wJ(),hSe=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function fSe(r){return r.replace(/"/g,"&quot;")}function pSe(r,e){var t;if(r){var i=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?fSe:e.xmlMode||e.encodeEntities!=="utf8"?gv.encodeXML:gv.escapeAttribute;return Object.keys(r).map(function(n){var s,o,a=(s=r[n])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(n=(o=CJ.attributeNames.get(n))!==null&&o!==void 0?o:n),!e.emptyAttrs&&!e.xmlMode&&a===""?n:"".concat(n,'="').concat(i(a),'"')}).join(" ")}}var SJ=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function bv(r,e){e===void 0&&(e={});for(var t=("length"in r)?r:[r],i="",n=0;n<t.length;n++)i+=mSe(t[n],e);return i}vn.render=bv;vn.default=bv;function mSe(r,e){switch(r.type){case Bo.Root:return bv(r.children,e);case Bo.Doctype:case Bo.Directive:return ySe(r);case Bo.Comment:return wSe(r);case Bo.CDATA:return _Se(r);case Bo.Script:case Bo.Style:case Bo.Tag:return vSe(r,e);case Bo.Text:return xSe(r,e)}}var gSe=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),bSe=new Set(["svg","math"]);function vSe(r,e){var t;e.xmlMode==="foreign"&&(r.name=(t=CJ.elementNames.get(r.name))!==null&&t!==void 0?t:r.name,r.parent&&gSe.has(r.parent.name)&&(e=Rd(Rd({},e),{xmlMode:!1}))),!e.xmlMode&&bSe.has(r.name)&&(e=Rd(Rd({},e),{xmlMode:"foreign"}));var i="<".concat(r.name),n=pSe(r.attribs,e);return n&&(i+=" ".concat(n)),r.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&SJ.has(r.name))?(e.xmlMode||(i+=" "),i+="/>"):(i+=">",r.children.length>0&&(i+=bv(r.children,e)),(e.xmlMode||!SJ.has(r.name))&&(i+="</".concat(r.name,">"))),i}function ySe(r){return"<".concat(r.data,">")}function xSe(r,e){var t,i=r.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&r.parent&&hSe.has(r.parent.name))&&(i=e.xmlMode||e.encodeEntities!=="utf8"?(0,gv.encodeXML)(i):(0,gv.escapeText)(i)),i}function _Se(r){return"<![CDATA[".concat(r.children[0].data,"]]>")}function wSe(r){return"<!--".concat(r.data,"-->")}});var g6=w(jo=>{"use strict";var SSe=jo&&jo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jo,"__esModule",{value:!0});jo.getOuterHTML=kJ;jo.getInnerHTML=kSe;jo.getText=vv;jo.textContent=p6;jo.innerText=m6;var eo=No(),CSe=SSe(IJ()),ISe=Ed();function kJ(r,e){return(0,CSe.default)(r,e)}function kSe(r,e){return(0,eo.hasChildren)(r)?r.children.map(function(t){return kJ(t,e)}).join(""):""}function vv(r){return Array.isArray(r)?r.map(vv).join(""):(0,eo.isTag)(r)?r.name==="br"?`
6279`:vv(r.children):(0,eo.isCDATA)(r)?vv(r.children):(0,eo.isText)(r)?r.data:""}function p6(r){return Array.isArray(r)?r.map(p6).join(""):(0,eo.hasChildren)(r)&&!(0,eo.isComment)(r)?p6(r.children):(0,eo.isText)(r)?r.data:""}function m6(r){return Array.isArray(r)?r.map(m6).join(""):(0,eo.hasChildren)(r)&&(r.type===ISe.ElementType.Tag||(0,eo.isCDATA)(r))?m6(r.children):(0,eo.isText)(r)?r.data:""}});var AJ=w(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.getChildren=EJ;to.getParent=TJ;to.getSiblings=ESe;to.getAttributeValue=TSe;to.hasAttrib=ASe;to.getName=RSe;to.nextElementSibling=OSe;to.prevElementSibling=DSe;var b6=No();function EJ(r){return(0,b6.hasChildren)(r)?r.children:[]}function TJ(r){return r.parent||null}function ESe(r){var e,t,i=TJ(r);if(i!=null)return EJ(i);for(var n=[r],s=r.prev,o=r.next;s!=null;)n.unshift(s),e=s,s=e.prev;for(;o!=null;)n.push(o),t=o,o=t.next;return n}function TSe(r,e){var t;return(t=r.attribs)===null||t===void 0?void 0:t[e]}function ASe(r,e){return r.attribs!=null&&Object.prototype.hasOwnProperty.call(r.attribs,e)&&r.attribs[e]!=null}function RSe(r){return r.name}function OSe(r){for(var e,t=r.next;t!==null&&!(0,b6.isTag)(t);)e=t,t=e.next;return t}function DSe(r){for(var e,t=r.prev;t!==null&&!(0,b6.isTag)(t);)e=t,t=e.prev;return t}});var RJ=w(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.removeElement=Yf;Ul.replaceElement=$Se;Ul.appendChild=MSe;Ul.append=PSe;Ul.prependChild=FSe;Ul.prepend=LSe;function Yf(r){if(r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),r.parent){var e=r.parent.children,t=e.lastIndexOf(r);t>=0&&e.splice(t,1)}r.next=null,r.prev=null,r.parent=null}function $Se(r,e){var t=e.prev=r.prev;t&&(t.next=e);var i=e.next=r.next;i&&(i.prev=e);var n=e.parent=r.parent;if(n){var s=n.children;s[s.lastIndexOf(r)]=e,r.parent=null}}function MSe(r,e){if(Yf(e),e.next=null,e.parent=r,r.children.push(e)>1){var t=r.children[r.children.length-2];t.next=e,e.prev=t}else e.prev=null}function PSe(r,e){Yf(e);var t=r.parent,i=r.next;if(e.next=i,e.prev=r,r.next=e,e.parent=t,i){if(i.prev=e,t){var n=t.children;n.splice(n.lastIndexOf(i),0,e)}}else t&&t.children.push(e)}function FSe(r,e){if(Yf(e),e.parent=r,e.prev=null,r.children.unshift(e)!==1){var t=r.children[1];t.prev=e,e.next=t}else e.next=null}function LSe(r,e){Yf(e);var t=r.parent;if(t){var i=t.children;i.splice(i.indexOf(r),0,e)}r.prev&&(r.prev.next=e),e.parent=t,e.prev=r.prev,e.next=r,r.prev=e}});var v6=w(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.filter=NSe;Wl.find=OJ;Wl.findOneChild=BSe;Wl.findOne=DJ;Wl.existsOne=$J;Wl.findAll=jSe;var Yc=No();function NSe(r,e,t,i){return t===void 0&&(t=!0),i===void 0&&(i=1/0),OJ(r,Array.isArray(e)?e:[e],t,i)}function OJ(r,e,t,i){for(var n=[],s=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return n;s.shift(),o.shift();continue}var a=s[0][o[0]++];if(r(a)&&(n.push(a),--i<=0))return n;t&&(0,Yc.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),s.unshift(a.children))}}function BSe(r,e){return e.find(r)}function DJ(r,e,t){t===void 0&&(t=!0);for(var i=Array.isArray(e)?e:[e],n=0;n<i.length;n++){var s=i[n];if((0,Yc.isTag)(s)&&r(s))return s;if(t&&(0,Yc.hasChildren)(s)&&s.children.length>0){var o=DJ(r,s.children,!0);if(o)return o}}return null}function $J(r,e){return(Array.isArray(e)?e:[e]).some(function(t){return(0,Yc.isTag)(t)&&r(t)||(0,Yc.hasChildren)(t)&&$J(r,t.children)})}function jSe(r,e){for(var t=[],i=[Array.isArray(e)?e:[e]],n=[0];;){if(n[0]>=i[0].length){if(i.length===1)return t;i.shift(),n.shift();continue}var s=i[0][n[0]++];(0,Yc.isTag)(s)&&r(s)&&t.push(s),(0,Yc.hasChildren)(s)&&s.children.length>0&&(n.unshift(0),i.unshift(s.children))}}});var x6=w(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.testElement=qSe;Gl.getElements=HSe;Gl.getElementById=VSe;Gl.getElementsByTagName=USe;Gl.getElementsByClassName=WSe;Gl.getElementsByTagType=GSe;var Xc=No(),Xf=v6(),yv={tag_name:function(r){return typeof r=="function"?function(e){return(0,Xc.isTag)(e)&&r(e.name)}:r==="*"?Xc.isTag:function(e){return(0,Xc.isTag)(e)&&e.name===r}},tag_type:function(r){return typeof r=="function"?function(e){return r(e.type)}:function(e){return e.type===r}},tag_contains:function(r){return typeof r=="function"?function(e){return(0,Xc.isText)(e)&&r(e.data)}:function(e){return(0,Xc.isText)(e)&&e.data===r}}};function y6(r,e){return typeof e=="function"?function(t){return(0,Xc.isTag)(t)&&e(t.attribs[r])}:function(t){return(0,Xc.isTag)(t)&&t.attribs[r]===e}}function zSe(r,e){return function(t){return r(t)||e(t)}}function MJ(r){var e=Object.keys(r).map(function(t){var i=r[t];return Object.prototype.hasOwnProperty.call(yv,t)?yv[t](i):y6(t,i)});return e.length===0?null:e.reduce(zSe)}function qSe(r,e){var t=MJ(r);return t?t(e):!0}function HSe(r,e,t,i){i===void 0&&(i=1/0);var n=MJ(r);return n?(0,Xf.filter)(n,e,t,i):[]}function VSe(r,e,t){return t===void 0&&(t=!0),Array.isArray(e)||(e=[e]),(0,Xf.findOne)(y6("id",r),e,t)}function USe(r,e,t,i){return t===void 0&&(t=!0),i===void 0&&(i=1/0),(0,Xf.filter)(yv.tag_name(r),e,t,i)}function WSe(r,e,t,i){return t===void 0&&(t=!0),i===void 0&&(i=1/0),(0,Xf.filter)(y6("class",r),e,t,i)}function GSe(r,e,t,i){return t===void 0&&(t=!0),i===void 0&&(i=1/0),(0,Xf.filter)(yv.tag_type(r),e,t,i)}});var LJ=w(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DocumentPosition=void 0;Jc.removeSubsets=KSe;Jc.compareDocumentPosition=FJ;Jc.uniqueSort=YSe;var PJ=No();function KSe(r){for(var e=r.length;--e>=0;){var t=r[e];if(e>0&&r.lastIndexOf(t,e-1)>=0){r.splice(e,1);continue}for(var i=t.parent;i;i=i.parent)if(r.includes(i)){r.splice(e,1);break}}return r}var vs;(function(r){r[r.DISCONNECTED=1]="DISCONNECTED",r[r.PRECEDING=2]="PRECEDING",r[r.FOLLOWING=4]="FOLLOWING",r[r.CONTAINS=8]="CONTAINS",r[r.CONTAINED_BY=16]="CONTAINED_BY"})(vs||(Jc.DocumentPosition=vs={}));function FJ(r,e){var t=[],i=[];if(r===e)return 0;for(var n=(0,PJ.hasChildren)(r)?r:r.parent;n;)t.unshift(n),n=n.parent;for(n=(0,PJ.hasChildren)(e)?e:e.parent;n;)i.unshift(n),n=n.parent;for(var s=Math.min(t.length,i.length),o=0;o<s&&t[o]===i[o];)o++;if(o===0)return vs.DISCONNECTED;var a=t[o-1],l=a.children,c=t[o],u=i[o];return l.indexOf(c)>l.indexOf(u)?a===e?vs.FOLLOWING|vs.CONTAINED_BY:vs.FOLLOWING:a===r?vs.PRECEDING|vs.CONTAINS:vs.PRECEDING}function YSe(r){return r=r.filter(function(e,t,i){return!i.includes(e,t+1)}),r.sort(function(e,t){var i=FJ(e,t);return i&vs.PRECEDING?-1:i&vs.FOLLOWING?1:0}),r}});var BJ=w(_6=>{"use strict";Object.defineProperty(_6,"__esModule",{value:!0});_6.getFeed=JSe;var XSe=g6(),Jf=x6();function JSe(r){var e=xv(rCe,r);return e?e.name==="feed"?ZSe(e):QSe(e):null}function ZSe(r){var e,t=r.children,i={type:"atom",items:(0,Jf.getElementsByTagName)("entry",t).map(function(o){var a,l=o.children,c={media:NJ(l)};Xi(c,"id","id",l),Xi(c,"title","title",l);var u=(a=xv("link",l))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);var d=Kl("summary",l)||Kl("content",l);d&&(c.description=d);var f=Kl("updated",l);return f&&(c.pubDate=new Date(f)),c})};Xi(i,"id","id",t),Xi(i,"title","title",t);var n=(e=xv("link",t))===null||e===void 0?void 0:e.attribs.href;n&&(i.link=n),Xi(i,"description","subtitle",t);var s=Kl("updated",t);return s&&(i.updated=new Date(s)),Xi(i,"author","email",t,!0),i}function QSe(r){var e,t,i=(t=(e=xv("channel",r.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[],n={type:r.name.substr(0,3),id:"",items:(0,Jf.getElementsByTagName)("item",r.children).map(function(o){var a=o.children,l={media:NJ(a)};Xi(l,"id","guid",a),Xi(l,"title","title",a),Xi(l,"link","link",a),Xi(l,"description","description",a);var c=Kl("pubDate",a)||Kl("dc:date",a);return c&&(l.pubDate=new Date(c)),l})};Xi(n,"title","title",i),Xi(n,"link","link",i),Xi(n,"description","description",i);var s=Kl("lastBuildDate",i);return s&&(n.updated=new Date(s)),Xi(n,"author","managingEditor",i,!0),n}var eCe=["url","type","lang"],tCe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function NJ(r){return(0,Jf.getElementsByTagName)("media:content",r).map(function(e){for(var t=e.attribs,i={medium:t.medium,isDefault:!!t.isDefault},n=0,s=eCe;n<s.length;n++){var o=s[n];
6279t[o]&&(i[o]=t[o])}for(var a=0,l=tCe;a<l.length;a++){var o=l[a];t[o]&&(i[o]=parseInt(t[o],10))}return t.expression&&(i.expression=t.expression),i})}function xv(r,e){return(0,Jf.getElementsByTagName)(r,e,!0,1)[0]}function Kl(r,e,t){return t===void 0&&(t=!1),(0,XSe.textContent)((0,Jf.getElementsByTagName)(r,e,t,1)).trim()}function Xi(r,e,t,i,n){n===void 0&&(n=!1);var s=Kl(t,i,n);s&&(r[e]=s)}function rCe(r){return r==="rss"||r==="feed"||r==="rdf:RDF"}});var _v=w(Ft=>{"use strict";var iCe=Ft&&Ft.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Zc=Ft&&Ft.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&iCe(e,r,t)};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.hasChildren=Ft.isDocument=Ft.isComment=Ft.isText=Ft.isCDATA=Ft.isTag=void 0;Zc(g6(),Ft);Zc(AJ(),Ft);Zc(RJ(),Ft);Zc(v6(),Ft);Zc(x6(),Ft);Zc(LJ(),Ft);Zc(BJ(),Ft);var Od=No();Object.defineProperty(Ft,"isTag",{enumerable:!0,get:function(){return Od.isTag}});Object.defineProperty(Ft,"isCDATA",{enumerable:!0,get:function(){return Od.isCDATA}});Object.defineProperty(Ft,"isText",{enumerable:!0,get:function(){return Od.isText}});Object.defineProperty(Ft,"isComment",{enumerable:!0,get:function(){return Od.isComment}});Object.defineProperty(Ft,"isDocument",{enumerable:!0,get:function(){return Od.isDocument}});Object.defineProperty(Ft,"hasChildren",{enumerable:!0,get:function(){return Od.hasChildren}})});var WJ=w(at=>{"use strict";var nCe=at&&at.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,i,n)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),sCe=at&&at.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),jJ=at&&at.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&nCe(e,r,t);return sCe(e,r),e},oCe=at&&at.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};
6279Object.defineProperty(at,"__esModule",{value:!0});at.DomUtils=at.parseFeed=at.getFeed=at.ElementType=at.Tokenizer=at.createDomStream=at.parseDOM=at.parseDocument=at.DefaultHandler=at.DomHandler=at.Parser=void 0;var zJ=n6(),aCe=n6();Object.defineProperty(at,"Parser",{enumerable:!0,get:function(){return aCe.Parser}});var qJ=No(),HJ=No();Object.defineProperty(at,"DomHandler",{enumerable:!0,get:function(){return HJ.DomHandler}});Object.defineProperty(at,"DefaultHandler",{enumerable:!0,get:function(){return HJ.DomHandler}});function VJ(r,e){var t=new qJ.DomHandler(void 0,e);return new zJ.Parser(t,e).end(r),t.root}at.parseDocument=VJ;function UJ(r,e){return VJ(r,e).children}at.parseDOM=UJ;function lCe(r,e,t){var i=new qJ.DomHandler(r,e,t);return new zJ.Parser(i,e)}at.createDomStream=lCe;var cCe=i6();Object.defineProperty(at,"Tokenizer",{enumerable:!0,get:function(){return oCe(cCe).default}});at.ElementType=jJ(Ed());var uCe=_v(),dCe=_v();Object.defineProperty(at,"getFeed",{enumerable:!0,get:function(){return dCe.getFeed}});var hCe={xmlMode:!0};function fCe(r,e){return e===void 0&&(e=hCe),(0,uCe.getFeed)(UJ(r,e))}at.parseFeed=fCe;at.DomUtils=jJ(_v())});var KJ=w((b3t,GJ)=>{"use strict";GJ.exports=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var XJ=w(w6=>{"use strict";Object.defineProperty(w6,"__esModule",{value:!0});function YJ(r){return Object.prototype.toString.call(r)==="[object Object]"}function pCe(r){var e,t;return YJ(r)===!1?!1:(e=r.constructor,e===void 0?!0:(t=e.prototype,!(YJ(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}w6.isPlainObject=pCe});var eZ=w((y3t,QJ)=>{"use strict";var mCe=function(e){return gCe(e)&&!bCe(e)};function gCe(r){return!!r&&typeof r=="object"}function bCe(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||xCe(r)}var vCe=typeof Symbol=="function"&&Symbol.for,yCe=vCe?Symbol.for("react.element"):60103;function xCe(r){return r.$$typeof===yCe}function _Ce(r){return Array.isArray(r)?[]:{}}function Zf(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Dd(_Ce(r),r,e):r}function wCe(r,e,t){return r.concat(e).map(function(i){return Zf(i,t)})}function SCe(r,e){if(!e.customMerge)return Dd;var t=e.customMerge(r);return typeof t=="function"?t:Dd}function CCe(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function JJ(r){return Object.keys(r).concat(CCe(r))}function ZJ(r,e){try{return e in r}catch{return!1}}function ICe(r,e){return ZJ(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function kCe(r,e,t){var i={};return t.isMergeableObject(r)&&JJ(r).forEach(function(n){i[n]=Zf(r[n],t)}),JJ(e).forEach(function(n){ICe(r,n)||(ZJ(r,n)&&t.isMergeableObject(e[n])?i[n]=SCe(n,t)(r[n],e[n],t):i[n]=Zf(e[n],t))}),i}function Dd(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||wCe,t.isMergeableObject=t.isMergeableObject||mCe,t.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(e),n=Array.isArray(r),s=i===n;return s?i?t.arrayMerge(r,e,t):kCe(r,e,t):Zf(e,t)}Dd.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,n){return Dd(i,n,t)},{})};var ECe=Dd;QJ.exports=ECe});var rZ=w((tZ,wv)=>{(function(r,e){typeof define=="function"&&define.amd?define([],e):typeof wv=="object"&&wv.exports?wv.exports=e():r.parseSrcset=e()})(tZ,function(){return function(r){function e(_){return _===" "||_==="	"||_===`
6280`||_==="\f"||_==="\r"}function t(_){var E,R=_.exec(r.substring(b));if(R)return E=R[0],b+=E.length,E}for(var i=r.length,n=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,u,d,f,m,g,b=0,v=[];;){if(t(s),b>=i)return v;u=t(o),d=[],u.slice(-1)===","?(u=u.replace(a,""),k()):S()}function S(){for(t(n),f="",m="in descriptor";;){if(g=r.charAt(b),m==="in descriptor")if(e(g))f&&(d.push(f),f="",m="after descriptor");else if(g===","){b+=1,f&&d.push(f),k();return}else if(g==="(")f=f+g,m="in parens";else if(g===""){f&&d.push(f),k();return}else f=f+g;else if(m==="in parens")if(g===")")f=f+g,m="in descriptor";else if(g===""){d.push(f),k();return}else f=f+g;else if(m==="after descriptor"&&!e(g))if(g===""){k();return}else m="in descriptor",b-=1;b+=1}}function k(){var _=!1,E,R,P,T,O={},I,A,D,V,Z;for(T=0;T<d.length;T++)I=d[T],A=I[I.length-1],D=I.substring(0,I.length-1),V=parseInt(D,10),Z=parseFloat(D),l.test(D)&&A==="w"?((E||R)&&(_=!0),V===0?_=!0:E=V):c.test(D)&&A==="x"?((E||R||P)&&(_=!0),Z<0?_=!0:R=Z):l.test(D)&&A==="h"?((P||R)&&(_=!0),V===0?_=!0:P=V):_=!0;_?console&&console.log&&console.log("Invalid srcset descriptor found in '"+r+"' at '"+I+"'."):(O.url=u,E&&(O.w=E),R&&(O.d=R),P&&(O.h=P),v.push(O))}}})});var nZ=w((x3t,S6)=>{var ze=String,iZ=function(){return{isColorSupported:!1,reset:ze,bold:ze,dim:ze,italic:ze,underline:ze,inverse:ze,hidden:ze,strikethrough:ze,black:ze,red:ze,green:ze,yellow:ze,blue:ze,magenta:ze,cyan:ze,white:ze,gray:ze,bgBlack:ze,bgRed:ze,bgGreen:ze,bgYellow:ze,bgBlue:ze,bgMagenta:ze,bgCyan:ze,bgWhite:ze,blackBright:ze,redBright:ze,greenBright:ze,yellowBright:ze,blueBright:ze,magentaBright:ze,cyanBright:ze,whiteBright:ze,bgBlackBright:ze,bgRedBright:ze,bgGreen
vendor: 6,622 bytes, lines 6280-6297
6280Bright:ze,bgYellowBright:ze,bgBlueBright:ze,bgMagentaBright:ze,bgCyanBright:ze,bgWhiteBright:ze}};S6.exports=iZ();S6.exports.createColors=iZ});var C6=w(()=>{});var Sv=w((S3t,aZ)=>{"use strict";var sZ=nZ(),oZ=C6(),Qc=class extends Error{constructor(e,t,i,n,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Qc)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=sZ.isColorSupported);let i=u=>u,n=u=>u,s=u=>u;if(e){let{bold:u,gray:d,red:f}=sZ.createColors(!0);n=m=>u(f(m)),i=m=>d(m),oZ&&(s=m=>oZ(m))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),c=String(l).length;return o.slice(a,l).map((u,d)=>{let f=a+1+d,m=" "+(" "+f).slice(-c)+" | ";if(f===this.line){if(u.length>160){let b=20,v=Math.max(0,this.column-b),S=Math.max(this.column+b,this.endColumn+b),k=u.slice(v,S),_=i(m.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return n(">")+i(m)+s(k)+`
6281 `+_+n("^")}let g=i(m.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+i(m)+s(u)+`
6282 `+g+n("^")}return" "+i(m)+s(u)}).join(`
6283`)}toString(){let e=this.showSourceCode();return e&&(e=`
6284
6285`+e+`
6286`),this.name+": "+this.message+e}};aZ.exports=Qc;Qc.default=Qc});var I6=w((C3t,cZ)=>{"use strict";var TCe=/(<)(\/?style\b)/gi,ACe=/(<)(!--)/g;function Yl(r){return typeof r!="string"||!r.includes("<")?r:r.replace(TCe,"\\3c $2").replace(ACe,"\\3c $2")}var lZ={after:`
6287`,beforeClose:`
6288`,beforeComment:`
6289`,beforeDecl:`
6290`,beforeOpen:" ",beforeRule:`
6291`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function RCe(r){return r[0].toUpperCase()+r.slice(1)}var Qf=class{constructor(e){this.builder=e}atrule(e,t){let i=e.raws,n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof i.afterName<"u"?n+=i.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{let o=(i.between||"")+(t?";":"");this.builder(Yl(n+s+o),e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(i.includes(`
6292`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)i+=o}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(Yl(t+i)+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(Yl(n)),this.builder("}",e,"end")}body(e){let t=e.nodes,i=t.length-1;for(;i>0&&t[i].type==="comment";)i-=1;let n=this.raw(e,"semicolon"),s=e.type==="document";for(let o=0;o<t.length;o++){let a=t[o],l=this.raw(a,"before");l&&this.builder(s?l:Yl(l)),this.stringify(a,i!==o||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder(Yl("/*"+t+e.text+i+"*/"),e)}decl(e,t){let i=e.raws,n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=i.important||" !important"),t&&(s+=";"),this.builder(Yl(s),e)}document(e){this.body(e)}raw(e,t,i){let n;if(i||(i=t),t&&(n=e.raws[t],typeof n<"u"))return n;let s=e.parent;if(i==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return lZ[i];let o=e.root(),a=o.rawCache||(o.rawCache={});if(typeof a[i]<"u")return a[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+RCe(i);this[l]?n=this[l](o,e):o.walk(c=>{if(n=c.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=lZ[i]),a[i]=n,n}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
6293`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(n=>{if(typeof n.raws.before<"u")return i=n.raws.before,i.includes(`
6294`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return i=n.raws.before,i.includes(`
6295`)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
6296`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let n=i.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof i.raws.before<"u"){let s=i.raws.before.split(`
6297`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],n=e.raws[t];return n&&n.value===i?n.raw:i}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,i=e.parent&&e.parent.type==="document";this.builder(i?t:Yl(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(Yl(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};cZ.exports=Qf;Qf.default=Qf});var ep=w((I3t,uZ)=>{"use strict";var OCe=I6();function k6(r,e){new OCe(e).stringify(r)}uZ.exports=k6;k6.default=k6});var Cv=w((k3t,E6)=>{"use strict";E6.exports.isClean=Symbol("isClean");E6.exports.my=Symbol("my")});var ip=w((E3t,dZ)=>{"use strict";var DCe=Sv(),$Ce=I6(),MCe=ep(),{isClean:tp,my:PCe}=Cv();function T6(r,e){let t=new r.constructor;for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i)||i==="proxyCache")continue;let n=r[i],s=typeof n;i==="parent"&&s==="object"?e&&(t[i]=e):i==="source"?t[i]=n:Array.isArray(n)?t[
6297i]=n.map(o=>T6(o,t)):(s==="object"&&n!==null&&(n=T6(n)),t[i]=n)}return t}function zo(r,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,i=1,n=0;for(let s=0;s<r.length;s++){if(i===e.line&&t===e.column){n=s;break}r[s]===`
6298`?(t=1,i+=1):t+=1}return n}var rp=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[tp]=!1,this[PCe]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=T6(this);for(let i in e)t[i]=e[i];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:i,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:i.column,line:i.line},t)}return new DCe(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[tp]=!0}
vendor: 1,586 bytes, lines 6298-6299
6298markDirty(){if(this[tp]){this[tp]=!1;let e=this;for(;e=e.parent;)e[tp]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,s=i.slice(zo(i,this.source.start),zo(i,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,i=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=zo(n,this.source.start),o=s+e;for(let a=s;a<o;a++)n[a]===`
6299`?(t=1,i+=1):t+=1;return{column:t,line:i,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:zo(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:zo(t,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(e.word){let o=t.slice(zo(t,this.source.start),zo(t,this.source.end)).indexOf(e.word);o!==-1&&(i=this.positionInside(o),n=this.positionInside(o+e.word.length))}else e.start?i={column:e.start.column,line:e.start.line,offset:zo(t,e.start)}:e.index&&(i=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:zo(t,e.end
6299)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<i.line||n.line===i.line&&n.column<=i.column)&&(n={column:i.column+1,line:i.line,offset:i.offset+1}),{end:n,start:i}}raw(e,t){return new $Ce().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,i=!1;for(let n of e)n===this?i=!0:i?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},n=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))i[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)i[o]=a.toJSON(null,t);else if(o==="source"){if(a==null)continue;let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),i[o]={end:a.end,inputId:l,start:a.start}}else i[o]=a}return n&&(i.inputs=[...t.keys()].map(o=>o.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=MCe){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i={}){let n={node:this};for(let s in i)n[s]=i[s];return e.warn(t,n)}};dZ.exports=rp;rp.default=rp});var sp=w((T3t,hZ)=>{"use strict";var FCe=ip(),np=class extends FCe{constructor(e){super(e),this.type="comment"}};hZ.exports=np;np.default=np});var ap=w((A3t,fZ)=>{"use strict";var LCe=ip(),op=class extends LCe{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};fZ.exports=op;op.default=op});var Xl=w((R3t,wZ)=>{"use strict";var pZ=sp(),mZ=ap(),NCe=ip(),{isClean:gZ,my:bZ}=Cv(),A6,vZ,yZ,R6;function xZ(r){return r.map(e=>(e.nodes&&(e.nodes=xZ(e.nodes)),delete e.source,e))}function _Z(r){if(r[gZ]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)_Z(e)}var yn=class extends NCe{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let n of i)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],n=e(this.proxyOf.nodes[i],i),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i
vendor: 10,275 bytes, lines 6299-6300
6299)=>e[t](...i.map(n=>typeof n=="function"?(s,o)=>n(s.toProxy(),o):n)):t==="every"||t==="some"?i=>e[t]((n,...s)=>i(n.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),n=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let o of n)this.proxyOf.nodes.splice(i+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],i<s&&(this.indexes[o]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),n=i===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[i],n).reverse();i=this.index(e);for(let a of s)this.proxyOf.nodes.splice(i,0,a);let o;for(let a in this.indexes)o=this.indexes[a],i<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=xZ(vZ(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new mZ(e)]}else if(e.selector||e.selectors)e=[new R6(e)];else if(e.name)e=[new A6(e)];else if(e.text)e=[new pZ(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[bZ]||yn.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[gZ]&&_Z(n),n.raws||(n.raws={}),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let n of i)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let n;try{n=e(t,i)}catch(s){throw t.addToError(s)}return n!==!1&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,n)}):this.walk((i,n)=>{if(i.type==="atrule"&&i.name===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="atrule")return t(i,n)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,n)}):this.walk((i,n)=>{if(i.type==="decl"&&i.prop===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="decl")return t(i,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,n)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,n)}):this.walk((i,n)=>{if(i.type==="rule"&&i.selector===e)return t(i,n)}):(t=e,this.walk((i,n)=>{if(i.type==="rule")return t(i,n)}))}};yn.registerParse=r=>{vZ=r};yn.registerRule=r=>{R6=r};yn.registerAtRule=r=>{A6=r};yn.registerRoot=r=>{yZ=r};wZ.exports=yn;yn.default=yn;yn.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,A6.prototype):r.type==="rule"?Object.setPrototypeOf(r,R6.prototype):r.type==="decl"?Object.setPrototypeOf(r,mZ.prototype):r.type==="comment"?Object.setPrototypeOf(r,pZ.prototype):r.type==="root"&&Object.setPrototypeOf(r,yZ.prototype),r[bZ]=!0,r.nodes&&r.nodes.forEach(e=>{yn.rebuild(e)})}});var Iv=w((O3t,CZ)=>{"use strict";var SZ=Xl(),$d=class extends SZ{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};CZ.exports=$d;$d.default=$d;SZ.registerAtRule($d)});var kv=w((D3t,EZ)=>{"use strict";var BCe=Xl(),IZ,kZ,eu=class extends BCe{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new IZ(new kZ,this,e).stringify()}};eu.registerLazyResult=r=>{IZ=r};eu.registerProcessor=r=>{kZ=r};EZ.exports=eu;eu.default=eu});var AZ=w(($3t,TZ)=>{var jCe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",zCe=(r,e=21)=>(t=e)=>{let i="",n=t|0;for(;n--;)i+=r[Math.random()*r.length|0];return i},qCe=(r=21)=>{let e="",t=r|0;for(;t--;)e+=jCe[Math.random()*64|0];return e};TZ.exports={nanoid:qCe,customAlphabet:zCe}});var Ev=w((M3t,RZ)=>{RZ.exports={}});var Tv=w(()=>{});var O6=w((L3t,OZ)=>{OZ.exports={}});var $Z=w((N3t,DZ)=>{DZ.exports={}});var $6=w((B3t,FZ)=>{"use strict";var{existsSync:HCe,readFileSync:VCe}=$Z(),{dirname:D6,join:UCe}=Ev(),{SourceMapConsumer:MZ,SourceMapGenerator:PZ}=Tv();function WCe(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var lp=class{constructor(e,t){if(t.map===!1)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,n=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=D6(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new MZ(this.json||this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(n)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(i);if(a)return WCe(e.substr(a[0].length));let l=e.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let i=e.lastIndexOf(t.pop()),n=e.indexOf("*/",i);i>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,n)))}loadFile(e,t,i){if(!(!i&&!this.unsafeMap&&!/\.map$/i.test(e))&&(this.root=D6(e),HCe(e)))return this.mapFile=e,VCe(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let i=t(e);if(i){let n=this.loadFile(i,e,!0);if(!n)throw new Error("Unable to load previous source map: "+i.toString());return n}}else{if(t instanceof MZ)return PZ.fromSourceMap(t).toString();if(t instanceof PZ)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;e&&(i=UCe(D6(e),i));let n=this.loadFile(i,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};FZ.exports=lp;lp.default=lp});var cp=w((j3t,zZ)=>{"use strict";var{nanoid:GCe}=AZ(),{isAbsolute:F6,resolve:L6}=Ev(),{SourceMapConsumer:KCe,SourceMapGenerator:YCe}=Tv(),{fileURLToPath:LZ,pathToFileURL:Av}=O6(),NZ=Sv(),XCe=$6(),M6=C6(),P6=Symbol("lineToIndexCache"),JCe=Boolean(KCe&&YCe),BZ=Boolean(L6&&F6);function jZ(r){if(r[P6])return r[P6];let e=r.css.split(`
6300`),t=new Array(e.length),i=0;for(let n=0,s=e.length;n<s;n++)t[n]=i,i+=e[n].length+1;return r[P6]=t,t}var Md=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!BZ||/^\w+:\/\//.test(t.from)||F6(t.from)?this.file=t.from:this.file=L6(t.from)),BZ&&JCe){let i=new XCe(this.css,t);if(i.text){this.map=i;let n=i.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+GCe(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,n={}){let s,o,a,l,c;if(t&&typeof t=="object"){let d=t,f=i;if(typeof d.offset=="number"){l=d.offset;let m=this.fromOffset(l);t=m.line,i=m.col}else t=d.line,i=d.column,l=this.fromLineAndColumn(t,i);if(typeof f.offset=="number"){a=f.offset;let m=this.fromOffset(a);o=m.line,s=m.col}else o=f.line,s=f.column,a=this.fromLineAndColumn(f.line,f.column)}else if(i)l=this.fromLineAndColumn(t,i);else{l=t;let d=this.fromOffset(l);t=d.line,i=d.col}let u=this.origin(t,i,o,s);return u?c=new NZ(e,u.endLine===void 0?u.line:{column:u.column,line:u.line},u.endLine===void 0?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,n.plugin):c=new NZ(e,o===void 0?t:{column:i,line:t},o===void 0?i:{column:s,line:o},this.css,this.file,n.plugin),c.input={column:i,endColumn:s,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(Av&&(c.input.url=Av(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return jZ(this)[e-1]+t-1}fromOffset(e){let t=jZ(this),i=t[t.length-1],n=0;if(e>=i)n=t.length-1;else{let s=t.length-2,o;for(;n<s;)if(o=n+(s-n>>1),e<t[o])s=o-1;else if(e>=t[o+1])n=o+1;else{n=o;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:L6(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,n){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof i=="number"&&(a=s.originalPositionFor({column:n,line:i}));let l;
6300F6(o.source)?l=Av(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Av(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(LZ)c.file=LZ(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};zZ.exports=Md;Md.default=Md;M6&&M6.registerInput&&M6.registerInput(Md)});var Pd=w((z3t,UZ)=>{"use strict";var qZ=Xl(),HZ,VZ,Jl=class extends qZ{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let n=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of n)s.raws.before=t.raws.before}return n}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new HZ(new VZ,this,e).stringify()}};Jl.registerLazyResult=r=>{HZ=r};Jl.registerProcessor=r=>{VZ=r};UZ.exports=Jl;Jl.default=Jl;qZ.registerRoot(Jl)});var N6=w((q3t,WZ)=>{"use strict";var up={comma(r){return up.split(r,[","],!0)},space(r){let e=[" ",`
6301`,"	"];return up.split(r,e)},split(r,e,t){let i=[],n="",s=!1,o=0,a=!1,l="",c=!1;for(let u of r)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(n!==""&&i.push(n.trim()),n="",s=!1):n+=u;return(t||n!=="")&&i.push(n.trim()),i}};WZ.exports=up;up.default=up});var Rv=w((H3t,KZ)=>{"use strict";var GZ=Xl(),ZCe=N6(),Fd=class extends GZ{get selectors(){return ZCe.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};KZ.exports=Fd;Fd.default=Fd;GZ.registerRule(Fd)});var XZ=w((V3t,YZ)=>{"use strict";var QCe=Iv(),e3e=sp(),t3e=ap(),r3e=cp(),i3e=$6(),n3e=Pd(),s3e=Rv();function dp(r,e){if(Array.isArray(r))return r.map(n=>dp(n));let{inputs:t,...i}=r;if(t){e=[];for(let n of t){let s={...n,__proto__:r3e.prototype};s.map&&(s.map={...s.map,__proto__:i3e.prototype}),e.push(s)}}if(i.nodes&&(i.nodes=r.nodes.map(n=>dp(n,e))),i.source){let{inputId:n,...s}=i.source;i.source=s,n!=null&&(i.source.input=e[n])}if(i.type==="root")return new n3e(i);if(i.type==="decl")return new t3e(i);if(i.type==="rule")return new s3e(i);if(i.type==="comment")return new e3e(i);if(i.type==="atrule")return new QCe(i);throw new Error("Unknown node type: "+r.type)}YZ.exports=dp;dp.default=dp});var j6=w((U3t,rQ)=>{"use strict";var{dirname:Ov,relative:ZZ,resolve:QZ,sep:eQ}=Ev(),{SourceMapConsumer:tQ,SourceMapGenerator:Dv}=Tv(),{pathToFileURL:JZ}=O6(),o3e=cp(),a3e=Boolean(tQ&&Dv),l3e=Boolean(Ov&&QZ&&ZZ&&eQ),B6=class{constructor(e,t,i,n){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
6302`;this.css.includes(`\r
6303`)&&(t=`\r
6304`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||Ov(e.file),n;this.mapOpts.sourcesContent===!1?(n=new tQ(e.text),n.sourcesContent&&(n.sourcesContent=null)):n=e.consumer(),this.map.applySourceMap(n,t,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf("/*#"))!==-1;){let t=this.css.indexOf("*/",e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
6305`;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),l3e&&a3e&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Dv.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Dv({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Dv({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,i="<no source>
6305",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(n.generated.line=e,n.generated.column=t-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=i,n.original.line=1,n.original.column=0,this.map.addMapping(n))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
6306`),t=a.length-s):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=i,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?Ov(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Ov(QZ(i,this.mapOpts.annotation)));let n=ZZ(i,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new o3e(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let n=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(JZ){let i=JZ(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;eQ==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};rQ.exports=B6});var aQ=w((W3t,oQ)=>{"use strict";var z6="'".charCodeAt(0),iQ='"'.charCodeAt(0),$v="\\".charCodeAt(0),nQ="/".charCodeAt(0),Mv=`
6307`.charCodeAt(0),hp=" ".charCodeAt(0),Pv="\f".charCodeAt(0),Fv="	".charCodeAt(0),Lv="\r".charCodeAt(0),c3e="[".charCodeAt(0),u3e="]".charCodeAt(0),d3e="(".charCodeAt(0),h3e=")".charCodeAt(0),f3e="{".charCodeAt(0),p3e="}".charCodeAt(0),m3e=";".charCodeAt(0),g3e="*".charCodeAt(0),b3e=":".charCodeAt(0),v3e="@".charCodeAt(0),Nv=/[\t\n\f\r "#'()/;[\\\]{}]/g,Bv=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y3e=/.[\r\n"'(/\\]/,sQ=/[\da-f]/i;oQ.exports=function(e,t={}){let i=e.css.valueOf(),n=t.ignoreErrors,s,o,a,l,c,u,d,f,m,g,b=i.length,v=0,S=[],k=[],_=-1;function E(){return v}function R(I){throw e.error("Unclosed "+I,v)}function P(){return k.length===0&&v>=b}function T(I){if(k.length)return k.pop();if(v>=b)return;let A=I?I.ignoreUnclosed:!1;switch(s=i.charCodeAt(v),s){case Mv:case hp:case Fv:case Lv:case Pv:{l=v;do l+=1,s=i.charCodeAt(l);while(s===hp||s===Mv||s===Fv||s===Lv||s===Pv);u=["space",i.slice(v,l)],v=l-1;break}case c3e:case u3e:case f3e:case p3e:case b3e:case m3e:case h3e:{let D=String.fromCharCode(s);u=[D,D,v];break}case d3e:{if(g=S.length?S.pop()[1]:"",m=i.charCodeAt(v+1),g==="url"&&m!==z6&&m!==iQ&&m!==hp&&m!==Mv&&m!==Fv&&m!==Pv&&m!==Lv){l=v;do{if(d=!1,l=i.indexOf(")",l+1),l===-1)if(n||A){l=v;break}else R("bracket");for(f=l;
vendor: 6,654 bytes, line 6307
6307i.charCodeAt(f-1)===$v;)f-=1,d=!d}while(d);u=["brackets",i.slice(v,l+1),v,l],v=l}else v<=_?u=["(","(",v]:(l=i.indexOf(")",v+1),o=i.slice(v,l+1),l===-1||y3e.test(o)?(_=l===-1?b:l,u=["(","(",v]):(u=["brackets",o,v,l],v=l));break}case z6:case iQ:{c=s===z6?"'":'"',l=v;do{if(d=!1,l=i.indexOf(c,l+1),l===-1)if(n||A){l=v+1;break}else R("string");for(f=l;i.charCodeAt(f-1)===$v;)f-=1,d=!d}while(d);u=["string",i.slice(v,l+1),v,l],v=l;break}case v3e:{Nv.lastIndex=v+1,Nv.test(i),Nv.lastIndex===0?l=i.length-1:l=Nv.lastIndex-2,u=["at-word",i.slice(v,l+1),v,l],v=l;break}case $v:{for(l=v,a=!0;i.charCodeAt(l+1)===$v;)l+=1,a=!a;if(s=i.charCodeAt(l+1),a&&s!==nQ&&s!==hp&&s!==Mv&&s!==Fv&&s!==Lv&&s!==Pv&&(l+=1,sQ.test(i.charAt(l)))){for(;sQ.test(i.charAt(l+1));)l+=1;i.charCodeAt(l+1)===hp&&(l+=1)}u=["word",i.slice(v,l+1),v,l],v=l;break}default:{s===nQ&&i.charCodeAt(v+1)===g3e?(l=i.indexOf("*/",v+2)+1,l===0&&(n||A?l=i.length:R("comment")),u=["comment",i.slice(v,l+1),v,l],v=l):(Bv.lastIndex=v+1,Bv.test(i),Bv.lastIndex===0?l=i.length-1:l=Bv.lastIndex-2,u=["word",i.slice(v,l+1),v,l],S.push(u),v=l);break}}return v++,u}function O(I){k.push(I)}return{back:O,endOfFile:P,nextToken:T,position:E}}});var dQ=w((G3t,uQ)=>{"use strict";var x3e=Iv(),_3e=sp(),w3e=ap(),S3e=Pd(),lQ=Rv(),C3e=aQ(),cQ={empty:!0,space:!0};function I3e(r){for(let e=r.length-1;e>=0;e--){let t=r[e],i=t[3]||t[2];if(i)return i}}function q6(r,e,t){let i="";for(let n=e;n<t;n++)i+=r[n][1];return i}var H6=class{constructor(e){this.input=e,this.root=new S3e,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new x3e;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,n,s,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){a=!0;break}else if(i==="}"){if(l.length>0){for(s=l.length-1,n=l[s];n&&n[0]==="space";)n=l[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(i+=1,i===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,i,n,s;for(let[o,a]of e.entries()){if(n=a,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!i)this.doubleColon(n);else{if(i[0]==="word"&&i[1]==="progid")continue;return o}i=n}return!1}comment(e){let t=new _3e;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(!i.trim())t.text="",t.raws.left=i,t.raws.right="";else{let n=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=C3e(this.input)}decl(e,t){let i=new w3e;this.init(i,e[0][2]);let n=e[e.length-1];n[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(n[3]||n[2]||I3e(e)),i.source.end.offset++;let s=0;for(;e[s][0]!=="word";)s===e.length-1&&this.unknownWord([e[s]]),s++;i.raws.before+=q6(e,0,s),i.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let f=e[s][0];if(f===":"||f==="space"||f==="comment")break;s++}i.prop=q6(e,o,s);let a=s,l;for(;s<e.length&&(l=e[s],s++,l[0]!==":");)l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]);i.raws.between=q6(e,a,s),(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let c=s;for(;s<e.length;){let f=e[s][0];if(f!=="space"&&f!=="comment")break;s++}let u=e.slice(c,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let f=e.length-1;f>=0;f--){if(l=e[f],l[1].toLowerCase()==="!important"){i.important=!0;let m=this.stringFrom(e,f);m=this.spacesFromEnd(e)+m,m!==" !important"&&(i.raws.important=m);break}else if(l[1].toLowerCase()==="important"){let m=e.slice(0),g="";for(let b=f;b>0;b--){let v=m[b][0];if(g.trim().startsWith("!")&&v!=="space")break;g=m.pop()[1]+g}g.trim().startsWith("!")&&(i.important=!0,i.raws.important=g,e=m)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(i.raws.between+=u.map(f=>f[1]).join(""),u=[]),this.raw(i,"value",u.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new lQ;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,n=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")s||(s=c),o.push(i==="("?")":"]");else if(a&&n&&i==="{")s||(s=c),o.push("}");else if(o.length===0)if(i===";")if(n){this.decl(l,a);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(n=!0);else i===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken()}
vendor: 8,795 bytes, line 6307
6307if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&n){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,n){let s,o,a=i.length,l="",c=!0,u,d;for(let f=0;f<a;f+=1)s=i[f],o=s[0],o==="space"&&f===a-1&&!n?c=!1:o==="comment"?(d=i[f-1]?i[f-1][0]:"empty",u=i[f+1]?i[f+1][0]:"empty",!cQ[d]&&!cQ[u]?l.slice(-1)===","?c=!1:l+=s[1]:c=!1):l+=s[1];if(!c){let f=i.reduce((m,g)=>m+g[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new lQ;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let n=t;n<e.length;n++)i+=e[n][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};uQ.exports=H6});var zv=w((K3t,hQ)=>{"use strict";var k3e=Xl(),E3e=cp(),T3e=dQ();function jv(r,e){let t=new E3e(r,e),i=new T3e(t);try{i.parse()}catch(n){throw n}return i.root}hQ.exports=jv;jv.default=jv;k3e.registerParse(jv)});var V6=w((Y3t,fQ)=>{"use strict";var fp=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};fQ.exports=fp;fp.default=fp});var qv=w((X3t,pQ)=>{"use strict";var A3e=V6(),pp=class{get content(){return this.css}constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new A3e(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}};pQ.exports=pp;pp.default=pp});var U6=w((J3t,gQ)=>{"use strict";var mQ={};gQ.exports=function(e){mQ[e]||(mQ[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var K6=w((Q3t,xQ)=>{"use strict";var R3e=Xl(),O3e=kv(),D3e=j6(),$3e=zv(),bQ=qv(),M3e=Pd(),P3e=ep(),{isClean:ro,my:F3e}=Cv(),Z3t=U6(),L3e={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},N3e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},B3e={Once:!0,postcssPlugin:!0,prepare:!0},Ld=0;function mp(r){return typeof r=="object"&&typeof r.then=="function"}function yQ(r){let e=!1,t=L3e[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,Ld,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,Ld,t+"Exit"]:[t,t+"Exit"]}function vQ(r){let e;return r.type==="document"?e=["Document",Ld,"DocumentExit"]:r.type==="root"?e=["Root",Ld,"RootExit"]:e=yQ(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function W6(r){return r[ro]=!1,r.nodes&&r.nodes.forEach(e=>W6(e)),r}var G6={},io=class{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,i){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=W6(t);else if(t instanceof io||t instanceof bQ)n=W6(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let s=$3e;i.syntax&&(s=i.syntax.parse),i.parser&&(s=i.parser),s.parse&&(s=s.parse);try{n=s(t,i)}catch(o){this.processed=!0,this.error=o}n&&!n[F3e]&&R3e.rebuild(n)}this.result=new bQ(e,n,i),this.helpers={...G6,postcss:G6,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(t,i,n)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!N3e[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!B3e[i])if(typeof t[i]=="object")for(let n in t[i])n==="*"?e(t,i,t[i][n]):e(t,i+"-"+n.toLowerCase(),t[i][n]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(mp(i))try{await i}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ro];){e[ro]=!0;let t=[vQ(e)];for(;t.length>0;){let i=this.visitTick(t);if(mp(i))try{await i}catch(n){let s=t[t.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(s=>i(s,this.helpers));await Promise.all(n)}else await i(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return mp(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=P3e;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=this.result.root.source;if(e.map===void 0&&!(i&&i.input&&i.input.map)){let o="";return t(this.result.root,a=>{o+=a}),this.result.css=o,this.result}let s=new D3e(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(mp(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ro];)e[ro]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,n]of e){this.result.lastPlugin=i;let s;try{s=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;
6307if(mp(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:n}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,a]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=i.nodes[i.indexes[o]];)if(i.indexes[o]+=1,!a[ro]){a[ro]=!0,e.push(vQ(a));return}t.iterator=0,delete i.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Ld){i.nodes&&i.nodes.length&&(i[ro]=!0,t.iterator=i.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ro]=!0;let t=yQ(e);for(let i of t)if(i===Ld)e.nodes&&e.each(n=>{n[ro]||this.walkSync(n)});else{let n=this.listeners[i];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};io.registerPostcss=r=>{G6=r};xQ.exports=io;io.default=io;M3e.registerLazyResult(io);O3e.registerLazyResult(io)});var wQ=w((t6t,_Q)=>{"use strict";var j3e=j6(),z3e=zv(),q3e=qv(),H3e=ep(),e6t=U6(),gp=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=z3e;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let n=H3e;this.result=new q3e(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new j3e(n,void 0,this._opts,t);if(o.isMap()){let[a,l]=o.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};_Q.exports=gp;gp.default=gp});var CQ=w((r6t,SQ)=>{"use strict";var V3e=kv(),U3e=K6(),W3e=wQ(),G3e=Pd(),tu=class{constructor(e=[]){this.version="8.5.15",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new W3e(this,e,t):new U3e(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};SQ.exports=tu;tu.default=tu;G3e.registerProcessor(tu);V3e.registerProcessor(tu)});var DQ=w((i6t,OQ)=>{"use strict";var IQ=Iv(),kQ=sp(),K3e=Xl(),Y3e=Sv(),EQ=ap(),TQ=kv(),X3e=XZ(),J3e=cp(),Z3e=K6(),Q3e=N6(),e6e=ip(),t6e=zv(),Y6=CQ(),r6e=qv(),AQ=Pd(),RQ=Rv(),i6e=ep(),n6e=V6();function vt(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new Y6(r)}vt.plugin=function(e,t){let i=!1;function n(...o){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
6308https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
6309https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new Y6().version,a}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(o,a,l){return vt([n(l)]).process(o,a)},n};vt.stringify=i6e;vt.parse=t6e;vt.fromJSON=X3e;vt.list=Q3e;vt.comment=r=>new kQ(r);vt.atRule=r=>new IQ(r);vt.decl=r=>new EQ(r);vt.rule=r=>new RQ(r);vt.root=r=>new AQ(r);vt.document=r=>new TQ(r);vt.CssSyntaxError=Y3e;vt.Declaration=EQ;vt.Container=K3e;vt.Processor=Y6;vt.Document=TQ;vt.Comment=kQ;vt.Warning=n6e;vt.AtRule=IQ;vt.Result=r6e;vt.Input=J3e;vt.Rule=RQ;vt.Root=AQ;vt.Node=e6e;Z3e.registerPostcss(vt);OQ.exports=vt;vt.default=vt});var LQ=w((n6t,FQ)=>{var s6e=WJ(),$Q=KJ(),{isPlainObject:o6e}=XJ(),MQ=eZ(),a6e=rZ(),{parse:l6e}=DQ(),c6e=["img","audio","video","picture","svg","object","map","iframe","embed"],u6e=["script","style"];function bp(r,e){r&&Object.keys(r).forEach(function(t){e(r[t],t)})}function qo(r,e){return{}.hasOwnProperty.call(r,e)}function PQ(r,e){let t=[];return bp(r,function(i){e(i)&&t.push(i)}),t}function d6e(r){for(let e in r)if(qo(r,e))return!1;return!0}function h6e(r){return r.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}FQ.exports=vp;var f6e=/^[^\0\t\n\f\r /<=>]+$/;function vp(r,e,t){if(r==null)return"";typeof r=="number"&&(r=r.toString());let i="",n="";function s(q,se){let oe=this;this.tag=q,this.attribs=se||{},this.tagPosition=i.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(v.length){let Pe=v[v.length-1];Pe.text+=oe.text}},this.updateParentNodeMediaChildren=function(){v.length&&c6e.includes(this.tag)&&v[v.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},vp.defaults,e),e.parser=Object.assign({},p6e,e.parser);let o=function(q){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(q)>-1};u6e.forEach(function(q){o(q)&&!e.allowVulnerableTags&&console.warn(`
6310
6311\u26A0\uFE0F Your \`allowedTags\` option includes, \`${q}\`, which is inherently
6312vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
6313Or, to disable this warning, add the \`allowVulnerableTags\` option
6314and ensure you are accounting for this risk.
6315
6316`)});let a=e.nonTextTags||["script","style","textarea","option"],l,c;e.allowedAttributes&&(l={}
6316,c={},bp(e.allowedAttributes,function(q,se){l[se]=[];let oe=[];q.forEach(function(Pe){typeof Pe=="string"&&Pe.indexOf("*")>=0?oe.push($Q(Pe).replace(/\\\*/g,".*")):l[se].push(Pe)}),oe.length&&(c[se]=new RegExp("^("+oe.join("|")+")$"))}));let u={},d={},f={};bp(e.allowedClasses,function(q,se){if(l&&(qo(l,se)||(l[se]=[]),l[se].push("class")),u[se]=q,Array.isArray(q)){let oe=[];u[se]=[],f[se]=[],q.forEach(function(Pe){typeof Pe=="string"&&Pe.indexOf("*")>=0?oe.push($Q(Pe).replace(/\\\*/g,".*")):Pe instanceof RegExp?f[se].push(Pe):u[se].push(Pe)}),oe.length&&(d[se]=new RegExp("^("+oe.join("|")+")$"))}});let m={},g;bp(e.transformTags,function(q,se){let oe;typeof q=="function"?oe=q:typeof q=="string"&&(oe=vp.simpleTransform(q)),se==="*"?g=oe:m[se]=oe});let b,v,S,k,_,E,R=!1;T();let P=new s6e.Parser({onopentag:function(q,se){if(e.enforceHtmlBoundary&&q==="html"&&T(),_){E++;return}let oe=new s(q,se);v.push(oe);let Pe=!1,or=!!oe.text,At;if(qo(m,q)&&(At=m[q](q,se),oe.attribs=se=At.attribs,At.text!==void 0&&(oe.innerText=At.text),q!==At.tagName&&(oe.name=q=At.tagName,k[b]=At.tagName)),g&&(At=g(q,se),oe.attribs=se=At.attribs,q!==At.tagName&&(oe.name=q=At.tagName,k[b]=At.tagName)),(!o(q)||e.disallowedTagsMode==="recursiveEscape"&&!d6e(S)||e.nestingLimit!=null&&b>=e.nestingLimit)&&(Pe=!0,S[b]=!0,e.disallowedTagsMode==="discard"&&a.indexOf(q)!==-1&&(_=!0,E=1),S[b]=!0),b++,Pe){if(e.disallowedTagsMode==="discard")return;n=i,i=""}i+="<"+q,q==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(oe.innerText=""),(!l||qo(l,q)||l["*"])&&bp(se,function(mt,tt){if(!f6e.test(tt)){delete oe.attribs[tt];return}if(mt===""&&!e.allowedEmptyAttributes.includes(tt)&&(e.nonBooleanAttributes.includes(tt)||e.nonBooleanAttributes.includes("*"))){delete oe.attribs[tt];return}let qn=!1;if(!l||qo(l,q)&&l[q].indexOf(tt)!==-1||l["*"]&&l["*"].indexOf(tt)!==-1||qo(c,q)&&c[q].test(tt)||c["*"]&&c["*"].test(tt))qn=!0;else if(l&&l[q]){for(let lt of l[q])if(o6e(lt)&&lt.name&&lt.name===tt){qn=!0;let We="";if(lt.multiple===!0){let Ji=mt.split(" ");for(let pi of Ji)lt.values.indexOf(pi)!==-1&&(We===""?We=pi:We+=" "+pi)}else lt.values.indexOf(mt)>=0&&(We=mt);mt=We}}if(qn){if(e.allowedSchemesAppliedToAttributes.indexOf(tt)!==-1&&I(q,mt)){delete oe.attribs[tt];return}if(q==="script"&&tt==="src"){let lt=!0;try{let We=A(mt);if(e.allowedScriptHostnames||e.allowedScriptDomains){let Ji=(e.allowedScriptHostnames||[]).find(function(Hn){return Hn===We.url.hostname}),pi=(e.allowedScriptDomains||[]).find(function(Hn){return We.url.hostname===Hn||We.url.hostname.endsWith(`.${Hn}`)});lt=Ji||pi}}catch{lt=!1}if(!lt){delete oe.attribs[tt];return}}if(q==="iframe"&&tt==="src"){let lt=!0;try{let We=A(mt);if(We.isRelativeUrl)lt=qo(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){let Ji=(e.allowedIframeHostnames||[]).find(function(Hn){return Hn===We.url.hostname}),pi=(e.allowedIframeDomains||[]).find(function(Hn){return We.url.hostname===Hn||We.url.hostname.endsWith(`.${Hn}`)});lt=Ji||pi}}catch{lt=!1}if(!lt){delete oe.attribs[tt];return}}if(tt==="srcset")try{let lt=a6e(mt);if(lt.forEach(function(We){I("srcset",We.url)&&(We.evil=!0)}),lt=PQ(lt,function(We){return!We.evil}),lt.length)mt=h6e(PQ(lt,function(We){return!We.evil})),oe.attribs[tt]=mt;else{delete oe.attribs[tt];return}}catch{delete oe.attribs[tt];return}if(tt==="class"){let lt=u[q],We=u["*"],Ji=d[q],pi=f[q],Hn=d["*"],X6=[Ji,Hn].concat(pi).filter(function(GQ){return GQ});if(lt&&We?mt=we(mt,MQ(lt,We),X6):mt=we(mt,lt||We,X6),!mt.length){delete oe.attribs[tt];return}}if(tt==="style"){if(e.parseStyleAttributes)try{let lt=l6e(q+" {"+mt+"}",{map:!1}),We=D(lt,e.allowedStyles);if(mt=V(We),mt.length===0){delete oe.attribs[tt];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+q+" {"+mt+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete oe.attribs[tt];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}
6316i+=" "+tt,mt&&mt.length?i+='="'+O(mt,!0)+'"':e.allowedEmptyAttributes.includes(tt)&&(i+='=""')}else delete oe.attribs[tt]}),e.selfClosing.indexOf(q)!==-1?i+=" />":(i+=">",oe.innerText&&!or&&!e.textFilter&&(i+=O(oe.innerText),R=!0)),Pe&&(i=n+O(i),n="")},ontext:function(q){if(_)return;let se=v[v.length-1],oe;if(se&&(oe=se.tag,q=se.innerText!==void 0?se.innerText:q),e.disallowedTagsMode==="discard"&&(oe==="script"||oe==="style"))i+=q;else{let Pe=O(q,!1);e.textFilter&&!R?i+=e.textFilter(Pe,oe):R||(i+=Pe)}if(v.length){let Pe=v[v.length-1];Pe.text+=q}},onclosetag:function(q,se){if(_)if(E--,!E)_=!1;else return;let oe=v.pop();if(!oe)return;if(oe.tag!==q){v.push(oe);return}_=e.enforceHtmlBoundary?q==="html":!1,b--;let Pe=S[b];if(Pe){if(delete S[b],e.disallowedTagsMode==="discard"){oe.updateParentNodeText();return}n=i,i=""}if(k[b]&&(q=k[b],delete k[b]),e.exclusiveFilter&&e.exclusiveFilter(oe)){i=i.substr(0,oe.tagPosition);return}if(oe.updateParentNodeMediaChildren(),oe.updateParentNodeText(),e.selfClosing.indexOf(q)!==-1||se&&!o(q)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){Pe&&(i=n,n="");return}i+="</"+q+">",Pe&&(i=n+O(i),n=""),R=!1}},e.parser);return P.write(r),P.end(),i;function T(){i="",b=0,v=[],S={},k={},_=!1,E=0}function O(q,se){return typeof q!="string"&&(q=q+""),e.parser.decodeEntities&&(q=q.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),se&&(q=q.replace(/"/g,"&quot;"))),q=q.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),se&&(q=q.replace(/"/g,"&quot;")),q}function I(q,se){for(se=se.replace(/[\x00-\x20]+/g,"");;){let or=se.indexOf("<!--");if(or===-1)break;let At=se.indexOf("-->",or+4);if(At===-1)break;se=se.substring(0,or)+se.substring(At+3)}let oe=se.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!oe)return se.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;let Pe=oe[1].toLowerCase();return qo(e.allowedSchemesByTag,q)?e.allowedSchemesByTag[q].indexOf(Pe)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(Pe)===-1}function A(q){if(q=q.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),q.startsWith("relative:"))throw new Error("relative: exploit attempt");let se="relative://relative-site";for(let or=0;or<100;or++)se+=`/${or}`;let oe=new URL(q,se);return{isRelativeUrl:oe&&oe.hostname==="relative-site"&&oe.protocol==="relative:",url:oe}}function D(q,se){if(!se)return q;let oe=q.nodes[0],Pe;return se[oe.selector]&&se["*"]?Pe=MQ(se[oe.selector],se["*"]):Pe=se[oe.selector]||se["*"],Pe&&(q.nodes[0].nodes=oe.nodes.reduce(Z(Pe),[])),q}function V(q){return q.nodes[0].nodes.reduce(function(se,oe){return se.push(`${oe.prop}:${oe.value}${oe.important?" !important":""}`),se},[]).join(";")}function Z(q){return function(se,oe){return qo(q,oe.prop)&&q[oe.prop].some(function(or){return or.test(oe.value)})&&se.push(oe),se}}function we(q,se,oe){return se?(q=q.split(/\s+/),q.filter(function(Pe){return se.indexOf(Pe)!==-1||oe.some(function(or){return or.test(Pe)})}).join(" ")):q}}var p6e={decodeEntities:!0};vp.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","
6316sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};vp.simpleTransform=function(r,e,t){return t=t===void 0?!0:t,e=e||{},function(i,n){let s;if(t)for(s in e)n[s]=e[s];else n=e;return{tagName:r,attribs:n}}}});var yp,h,NQ,BQ=p(()=>{yp=N(LQ()),h=class{static reg(e){return new RegExp("^"+e+"$","i")}};h.N={integer:"[+-]?[0-9]+",integer_pos:"[+]?[0-9]+",integer_zero_ff:"([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",integer_non_zero:"[+-]?([1-9][0-9]*)",integer_pos_non_zero:"[+]?([1-9][0-9]*)",number:"[+-]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?",number_pos:"[+]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?",number_zero_hundred:"[+]?(([0-9]|[1-9][0-9])([.][0-9]+)?|100)",number_zero_one:"[+]?(1([.][0]+)?|0?([.][0-9]+)?)"};h._B={angle:`(${h.N.number}(deg|rad|grad|turn)|0)`,frequency:`${h.N.number}(Hz|kHz)`,ident:String.raw`-?([_a-z]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*`,len_or_perc:`(0|${h.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${h.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${h.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:`${h.N.number}%`,percentage_pos:`${h.N.number_pos}%`,percentage_zero_hundred:`${h.N.number_zero_hundred}%`,string:String.raw`(\"([^\n\r\f\\"]|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\")|(\'([^\n\r\f\\']|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\')`,time:`${h.N.number}(s|ms)`,url:"url\\(.*?\\)",z_index:"[+-]?[0-9]{1,7}"};h._B1={flex:`(${h.N.number}|${h._B.len_or_perc}|none|auto)\\s*((${h.N.number}|${h._B.len_or_perc}|auto)\\s*){0,2}`,fixed_breadth:`${h._B.len_or_perc}`,grid_line:`auto|${h._B.ident}|(${h.N.integer_non_zero}(\\s+${h._B.ident})?)|(span\\s+(${h.N.integer_pos_non_zero}|${h._B.ident}))`,line_names:String.raw`\[\s*${h._B.ident}(\s+${h._B.ident})*\s*\]`};h._B2={inflexible_breadth:`${h._B.len_or_perc}|auto|min-content|max-content`,track_breadth:`${h._B.len_or_perc}|${h._B1.flex}|auto|min-content|max-content`};h._B3={fixed_size:`${h._B1.fixed_breadth}|minmax\\(\\s*${h._B2.inflexible_breadth}\\s*,\\s*${h._B1.fixed_breadth}\\s*\\)|minmax\\(\\s*${h._B1.fixed_breadth}\\s*,\\s*${h._B2.track_breadth}\\s*\\)`,track_size:`${h._B2.track_breadth}|minmax\\(\\s*${h._B2.inflexible_breadth}\\s*,\\s*${h._B2.track_breadth}\\s*\\)|fit-content\\(\\s*(${h._B.len_or_perc}\\s*)*\\)`};h._B4={name_repeat:`repeat\\(\\s*(${h.N.integer_pos_non_zero}|auto-fill)\\s*,\\s*(${h._B1.line_names})+\\s*\\)`,auto_repeat:`repeat\\(\\s*(auto-fill|auto-fit)\\s*,\\s*((${h._B1.line_names}
6316\\s+)?${h._B3.fixed_size}\\s*)+(${h._B1.line_names})?\\s*\\)`,fixed_repeat:`repeat\\(\\s*(${h.N.integer_pos_non_zero})\\s*,\\s*((${h._B1.line_names}\\s+)?${h._B3.fixed_size}\\s*)+(${h._B1.line_names})?\\s*\\)`};h._B5={auto_track_list:`(${h._B1.line_names}\\s*)?(${h._B3.fixed_size}|${h._B4.fixed_repeat})*(${h._B1.line_names}\\s*)?${h._B4.auto_repeat}(${h._B1.line_names}\\s*)?(${h._B3.fixed_size}|${h._B4.fixed_repeat})*(${h._B1.line_names}\\s*)?`,explicit_track_list:`(${h._B1.line_names}\\s*)?(${h._B3.track_size})+(${h._B1.line_names}\\s*)?`,track_list:`(${h._B1.line_names}\\s*)?(${h._B3.track_size}|${h._B4.name_repeat})+(${h._B1.line_names}\\s*)?`};h._B6={grid_template_rows:`none|${h._B5.track_list}|${h._B5.auto_track_list}|subgrid\\s*(${h._B1.line_names})?`,grid_template_columns:`none|${h._B5.track_list}|${h._B5.auto_track_list}|subgrid\\s*(${h._B1.line_names})?`};h.B={...h._B,...h._B1,...h._B2,...h._B3,...h._B4,...h._B5,...h._B6};h.A={absolute_size:"xx-small|x-small|small|medium|large|x-large|xx-large",attachment:"scroll|fixed|local",bg_origin:"border-box|padding-box|content-box",border_style:"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset",box:"border-box|padding-box|content-box",display_inside:"auto|block|table|flex|grid",display_outside:"block-level|inline-level|none|table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption",ending_shape:"circle|ellipse",generic_family:"serif|sans-serif|cursive|fantasy|monospace",generic_voice:"male|female|child",relative_size:"smaller|larger",repeat_style:"repeat-x|repeat-y|((?:repeat|space|round|no-repeat)(?:\\s*(?:repeat|space|round|no-repeat))?)",side_or_corner:"(left|right)?\\s*(top|bottom)?",single_animation_direction:"normal|reverse|alternate|alternate-reverse",single_animation_fill_mode:"none|forwards|backwards|both",single_animation_play_state:"running|paused"};h._COLOR={hex:"\\#(0x)?[0-9a-f]+",name:"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|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|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|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|transparent|violet|wheat|white|whitesmoke|yellow|yellowgreen",rgb:String.raw`rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)`,rgba:String.raw`rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${h.N.integer_zero_ff}|${h.N.number_zero_one}|${h.B.percentage_zero_hundred})\s*\)`};h._C={alpha:`${h.N.integer_zero_ff}|${h.N.number_zero_one}|${h.B.percentage_zero_hundred}`,alphavalue:h.N.number_zero_one,bg_position:`((${h.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${h.B.length_pos}|${h.B.percentage}|auto){1,2}|cover|contain`,border_width:`thin|medium|thick|${h.B.length}`,bottom:`${h.B.length}|auto`,color:`${h._COLOR.hex}|${h._COLOR.rgb}|${h._COLOR.rgba}|${h._COLOR.name}`,color_stop_length:`(${h.B.len_or_perc}\\s*){1,2}`,linear_color_hint:`${h.B.len_or_perc}`,family_name:`${h.B.string}|(${h.B.ident}\\s*)+`,image_decl:h.B.url,left:`${h.B.length}|auto`,loose_quotable_words:`(${h.B.ident})+`,margin_width:`${h.B.len_or_perc}|auto`,padding_width:`${h.B.length_pos}|${h.B.percentage_pos}`,page_url:h.B.url,position:`((${h.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:`${h.B.length}|auto`,shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${h.B.length}|(${h.B.len_or_perc})\\s+(${h.B.len_or_perc})`,top:`${h.B.length}|auto`};h._C1={image_list:`image\\(\\s*(${h.B.url})*\\s*(${h.B.url}|${h._C.color})\\s*\\)`,linear_color_stop:`(${h._C.color}
6316)(\\s*${h._C.color_stop_length})?`,shadow:`((${h._C.color})\\s+((${h.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${h.B.length})\\s*){2,4}\\s*(${h._C.color})?)`};h._C2={color_stop_list:`((${h._C1.linear_color_stop})(\\s*(${h._C.linear_color_hint}))?\\s*,\\s*)+(${h._C1.linear_color_stop})`,shape:`rect\\(\\s*(${h._C.top})\\s*,\\s*(${h._C.right})\\s*,\\s*(${h._C.bottom})\\s*,\\s*(${h._C.left})\\s*\\)`};h._C3={linear_gradient:`linear-gradient\\((((${h.B.angle})|to\\s+(${h.A.side_or_corner}))\\s*,\\s*)?\\s*(${h._C2.color_stop_list})\\s*\\)`,radial_gradient:`radial-gradient\\(((((${h.A.ending_shape})|(${h._C.size}))\\s*)*\\s*(at\\s+${h._C.position})?\\s*,\\s*)?\\s*(${h._C2.color_stop_list})\\s*\\)`};h._C4={image:`${h.B.url}|${h._C3.linear_gradient}|${h._C3.radial_gradient}|${h._C1.image_list}`,bg_image:`(${h.B.url}|${h._C3.linear_gradient}|${h._C3.radial_gradient}|${h._C1.image_list})|none`};h.C={...h._C,...h._C1,...h._C2,...h._C3,...h._C4};h.AP={baseline_position:"baseline|first baseline|last baseline",border_collapse:"collapse|separate",box:"normal|none|contents",box_sizing:"content-box|padding-box|border-box",caption_side:"top|bottom",clear:"none|left|right|both",content_position:"start|end|center|flex-start|flex-end",content_distribution:"stretch|space-between|space-around|space-evenly",direction:"ltr|rtl",empty_cells:"show|hide",flex_direction:"row|row-reverse|column|column-reverse",flex_wrap:"nowrap|wrap|wrap-reverse",float:"left|right|none",font_stretch:"normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",font_style:"normal|italic|oblique",font_variant:"normal|small-caps",font_weight:"normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900",list_style_position:"inside|outside",gap:"normal",grid_auto_flow:"row|column|dense|row dense|column dense",justify_content:"start|end|center|stretch|space-between|space-around|space-evenly",justify_items:"start|end|center|stretch",justify_self:"auto|start|end|center|stretch",list_style_type:"disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-latin|upper-latin|armenian|georgian|lower-alpha|upper-alpha|none",overflow:"visible|hidden|scroll|auto",overflow_position:"unsafe|safe",overflow_wrap:"normal|break-word",overflow_x:"visible|hidden|scroll|auto|no-display|no-content",page_break_after:"auto|always|avoid|left|right",page_break_before:"auto|always|avoid|left|right",page_break_inside:"avoid|auto",place_content:"(center|start|end|space-between|space-around|space-evenly|stretch){1,2}",place_items:"(center|start|end|baseline|stretch){1,2}",place_self:"(center|start|end|baseline|stretch){1,2}",position:"static|relative|absolute",resize:"none|both|horizontal|vertical",speak:"normal|none|spell-out",self_position:"center|start|end|self-start|self-end|flex-start|flex-end",speak_header:"once|always",speak_numeral:"digits|continuous",speak_punctuation:"code|none",table_layout:"auto|fixed",text_align:"left|right|center|justify",text_decoration:"none|((underline|overline|line-through|blink)\\s*)+",text_transform:"capitalize|uppercase|lowercase|none",text_wrap:"normal|unrestricted|none|suppress",unicode_bidi:"normal|embed|bidi-override",visibility:"visible|hidden|collapse",white_space:"normal|pre|nowrap|pre-wrap|pre-line",word_break:"normal|keep-all|break-all"};h._CP={align_content:`normal|${h.AP.baseline_position}|${h.AP.content_distribution}|${h.AP.overflow_position}|${h.AP.content_position}`,align_items:`normal|stretch|${h.AP.baseline_position}|(${h.AP.overflow_position})?\\s*${h.AP.self_position}|anchor-center`,align_self:`auto|normal|stretch|${h.AP.baseline_position}|(${h.AP.overflow_position})?\\s*${h.AP.self_position}|anchor-center`,background_attachment:`${h.A.attachment}(,\\s*${h.A.attachment})*`,background_color:h.C.color,background_origin:`${h.A.box}(,\\s*${h.A.box})*`,background_repeat:`${h.A.repeat_style}(,\\s*${h.A.repeat_style})*`,border:`((${h.C.border_width}|${h.A.border_style}|${h.C.color})\\s*){1,3}`,border_radius:`((${h.B.len_or_perc})\\s*){1,4}(\\/\\s*((${h.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${h.B.length}\\s*(${h.B.length})?`,border_top_color:h.C.color,border_top_style:h.A.border_style,border_width:`((${h.C.border_width})\\s*){1,4}`,color:h.C.color,cursor:`(${h.B.url}
6316(\\s*,\\s*)?)*(auto|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|w-resize|text|wait|help|progress|all-scroll|col-resize|hand|no-drop|not-allowed|row-resize|vertical-text)`,display:`inline|block|list-item|run-in|inline-list-item|inline-block|table|inline-table|table-cell|table-caption|flex|inline-flex|grid|inline-grid|${h.A.display_inside}|${h.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:h.A.display_outside,elevation:`${h.B.angle}|below|level|above|higher|lower`,font_family:`(${h.C.family_name}|${h.A.generic_family})(,\\s*(${h.C.family_name}|${h.A.generic_family}))*`,height:`${h.B.length}|${h.B.percentage}|auto`,letter_spacing:`normal|${h.B.length}`,list_style_image:`${h.C.image}|none`,margin_right:h.C.margin_width,max_height:`${h.B.length_pos}|${h.B.percentage_pos}|none|auto`,min_height:`${h.B.length_pos}|${h.B.percentage_pos}|auto`,opacity:h.C.alphavalue,outline_color:`${h.C.color}|invert`,outline_width:h.C.border_width,padding:`((${h.C.padding_width})\\s*){1,4}`,padding_top:h.C.padding_width,pitch_range:h.N.number,right:`${h.B.length}|${h.B.percentage}|auto`,stress:h.N.number,text_indent:`${h.B.length}|${h.B.percentage}`,text_shadow:`none|${h.C.shadow}(,\\s*(${h.C.shadow}))*`,volume:`${h.N.number_pos}|${h.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:h.AP.overflow_wrap,zoom:`normal|${h.N.number_pos}|${h.B.percentage_pos}`,backface_visibility:h.AP.visibility,background_clip:`${h.A.box}(,\\s*(${h.A.box}))*`,background_position:`${h.C.bg_position}(,\\s*(${h.C.bg_position}))*`,border_bottom_color:h.C.color,border_bottom_style:h.A.border_style,border_color:`((${h.C.color})\\s*){1,4}`,border_left_color:h.C.color,border_right_color:h.C.color,border_style:`((${h.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${h.B.length}|${h.B.percentage})(\\s*(${h.B.length}|${h.B.percentage}))?`,border_top_width:h.C.border_width,box_shadow:`none|${h.C.shadow}(,\\s*(${h.C.shadow}))*`,clip:`${h.C.shape}|auto`,display_inside:h.A.display_inside,font_size:`${h.A.absolute_size}|${h.A.relative_size}|${h.B.length_pos}|${h.B.percentage_pos}`,line_height:`normal|${h.N.number_pos}|${h.B.length_pos}|${h.B.percentage_pos}`,margin_left:h.C.margin_width,max_width:`${h.B.length_pos}|${h.B.percentage_pos}|none|auto`,outline_style:h.A.border_style,padding_bottom:h.C.padding_width,padding_right:h.C.padding_width,perspective:`none|${h.B.length}`,richness:h.N.number,text_overflow:`((clip|ellipsis|${h.B.string})\\s*){1,2}`,top:`${h.B.length}|${h.B.percentage}|auto`,width:`${h.B.length_pos}|${h.B.percentage_pos}|auto`,z_index:`auto|${h.B.z_index}`,background:`(((${h.C.bg_position}\\s*(\\/\\s*${h.C.bg_size})?)|(${h.A.repeat_style})|(${h.A.attachment})|(${h.A.bg_origin})|(${h.C.bg_image})|(${h.C.color}))\\s*)+`,background_size:`${h.C.bg_size}(,\\s*${h.C.bg_size})*`,border_bottom_left_radius:`(${h.B.length}|${h.B.percentage})(\\s*(${h.B.length}|${h.B.percentage}))?`,border_bottom_width:h.C.border_width,border_left_style:h.A.border_style,border_right_style:h.A.border_style,border_top:`((${h.C.border_width}|${h.A.border_style}|${h.C.color})\\s*){1,3}`,bottom:`${h.B.len_or_perc}|auto`,list_style:`((${h.AP.list_style_type}|${h.AP.list_style_position}|${h.C.image}|none})\\s*){1,3}`,margin_top:h.C.margin_width,outline:`((${h.C.color}|invert|${h.A.border_style}|${h.C.border_width})\\s*){1,3}`,overflow_y:h.AP.overflow_x,pitch:`${h.B.frequency}|x-low|low|medium|high|x-high`,vertical_align:`baseline|sub|super|top|text-top|middle|bottom|text-bottom|${h.B.len_or_perc}`,word_spacing:`normal|${h.B.length}`,background_image:`${h.C.bg_image}(,\\s*${h.C.bg_image})*`,border_bottom_right_radius:`(${h.B.length}|${h.B.percentage})(\\s*(${h.B.length}|${h.B.percentage}))?`,border_left_width:h.C.border_width,border_right_width:h.C.border_width,left:`${h.B.len_or_perc}|auto`,margin_bottom:h.C.margin_width,pause_after:`${h.B.time}|${h.B.percentage}`,speech_rate:`${h.N.number}|x-slow|slow|medium|fast|x-fast|faster|slower`,transition_duration:`${h.B.time}(,\\s*${h.B.time})*`,border_bottom:`((${h.C.border_width}|${h.A.border_style}|${h.C.color})\\s*){1,3}`,border_right:`((${h.C.border_width}|${h.A.border_style}|${h.C.color})\\s*){1,3}`,margin:`((${h.C.margin_width})\\s*){1,4}`,padding_left:h.C.padding_width,border_left:`((${h.C.border_width}|${h.A.border_style}|${h.C.color})\\s*){1,3}`,quotes:`(${h.B.string}\\s*${h.B.string})+|none`,border_top_right_radius:`(${h.B.length}|${h.B.percentage})(\\s*(${h.B.length}|${h.B.percentage}))?`,min_width:`${h.B.length_pos}|${h.B.percentage_pos}|auto`,flex_basis:`${h.B.len_or_perc}|auto|content|max-content|min-content|fit-content\\(\\s*(${h.B.len_or_perc}\\s*)*\\)`,flex_grow:h.N.number_pos,flex_shrink:h.N.number_pos,grid:`(${h.B.string}|none|subgrid)\\s*(\\/\\s*(${h.B.string}|none|subgrid))?`,grid_area:`${h.B.ident}|auto|(${h.N.integer}\\s*\\/\\s*${h.N.integer}\\s*\\/\\s*${h.N.integer}\\s*\\/\\s*${h.N.integer})`,grid_auto_columns:`(${h.B.track_size})+`,grid_auto_rows:`(${h.B.track_size})+`,grid_column:`${h.B.grid_line}(\\s*\\/\\s*${h.B.grid_line})?`,grid_column_start:`${h.B.grid_line}`,grid_column_end:`${h.B.grid_line}`,grid_column_gap:`${h.B.len_or_perc}
6316|normal`,grid_gap:`(${h.B.len_or_perc}|normal)(\\s*(${h.B.len_or_perc}|normal))?`,grid_row:`${h.B.grid_line}(\\s*\\/\\s*${h.B.grid_line})?`,grid_row_start:`${h.B.grid_line}`,grid_row_end:`${h.B.grid_line}`,grid_row_gap:`${h.B.len_or_perc}|normal`,grid_template:`none|(${h.B.grid_template_rows}\\s*\\/\\s*${h.B.grid_template_columns})|(${h.B.line_names}\\s*)?(${h.B.string}\\s*${h.B.track_size}\\s*(${h.B.line_names}\\s*)?)+\\s*(\\/\\s*${h.B.explicit_track_list})?`,grid_template_areas:`none|(${h.B.string})+`,grid_template_columns:`${h.B.grid_template_columns}`,grid_template_rows:`${h.B.grid_template_rows}`,row_gap:`${h.B.len_or_perc}|normal`,column_gap:`${h.B.len_or_perc}|normal`,gap:`(${h.B.len_or_perc}|normal)(\\s*(${h.B.len_or_perc}|normal))?`,order:h.N.integer};h._CP1={font:`(((((${h.AP.font_style}|${h.AP.font_variant}|${h.AP.font_weight})\\s*){1,3})?\\s*(${h._CP.font_size})\\s*(\\/\\s*(${h._CP.line_height}))?\\s+(${h._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`};h.CP={...h._CP,...h._CP1};h.BORDER_COLLAPSE=h.reg(h.AP.border_collapse);h.BOX=h.reg(h.AP.box);h.BOX_SIZING=h.reg(h.AP.box_sizing);h.CAPTION_SIDE=h.reg(h.AP.caption_side);h.CLEAR=h.reg(h.AP.clear);h.DIRECTION=h.reg(h.AP.direction);h.EMPTY_CELLS=h.reg(h.AP.empty_cells);h.FLOAT=h.reg(h.AP.float);h.FONT_STRETCH=h.reg(h.AP.font_stretch);h.FONT_STYLE=h.reg(h.AP.font_style);h.FONT_VARIANT=h.reg(h.AP.font_variant);h.FONT_WEIGHT=h.reg(h.AP.font_weight);h.LIST_STYLE_POSITION=h.reg(h.AP.list_style_position);h.LIST_STYLE_TYPE=h.reg(h.AP.list_style_type);h.OVERFLOW=h.reg(h.AP.overflow);h.OVERFLOW_WRAP=h.reg(h.AP.overflow_wrap);h.OVERFLOW_X=h.reg(h.AP.overflow_x);h.PAGE_BREAK_AFTER=h.reg(h.AP.page_break_after);h.PAGE_BREAK_BEFORE=h.reg(h.AP.page_break_before);h.PAGE_BREAK_INSIDE=h.reg(h.AP.page_break_inside);h.POSITION=h.reg(h.AP.position);h.RESIZE=h.reg(h.AP.resize);h.SPEAK=h.reg(h.AP.speak);h.SPEAK_HEADER=h.reg(h.AP.speak_header);h.SPEAK_NUMERAL=h.reg(h.AP.speak_numeral);h.SPEAK_PUNCTUATION=h.reg(h.AP.speak_punctuation);h.TABLE_LAYOUT=h.reg(h.AP.table_layout);h.TEXT_ALIGN=h.reg(h.AP.text_align);h.TEXT_DECORATION=h.reg(h.AP.text_decoration);h.TEXT_TRANSFORM=h.reg(h.AP.text_transform);h.TEXT_WRAP=h.reg(h.AP.text_wrap);h.UNICODE_BIDI=h.reg(h.AP.unicode_bidi);h.VISIBILITY=h.reg(h.AP.visibility);h.WHITE_SPACE=h.reg(h.AP.white_space);h.WORD_BREAK=h.reg(h.AP.word_break);h.BACKGROUND_ATTACHMENT=h.reg(h.CP.background_attachment);h.BACKGROUND_COLOR=h.reg(h.CP.background_color);h.BACKGROUND_ORIGIN=h.reg(h.CP.background_origin);h.BACKGROUND_REPEAT=h.reg(h.CP.background_repeat);h.BORDER=h.reg(h.CP.border);h.BORDER_RADIUS=h.reg(h.CP.border_radius);h.BORDER_SPACING=h.reg(h.CP.border_spacing);h.BORDER_TOP_COLOR=h.reg(h.CP.border_top_color);h.BORDER_TOP_STYLE=h.reg(h.CP.border_top_style);h.BORDER_WIDTH=h.reg(h.CP.border_width);h.COLOR=h.reg(h.CP.color);h.CURSOR=h.reg(h.CP.cursor);h.DISPLAY=h.reg(h.CP.display);h.DISPLAY_OUTSIDE=h.reg(h.CP.display_outside);h.ELEVATION=h.reg(h.CP.elevation);h.FONT_FAMILY=h.reg(h.CP.font_family);h.HEIGHT=h.reg(h.CP.height);h.LETTER_SPACING=h.reg(h.CP.letter_spacing);h.LIST_STYLE_IMAGE=h.reg(h.CP.list_style_image);h.MARGIN_RIGHT=h.reg(h.CP.margin_right);h.MAX_HEIGHT=h.reg(h.CP.max_height);h.MIN_HEIGHT=h.reg(h.CP.min_height);h.OPACITY=h.reg(h.CP.opacity);h.OUTLINE_COLOR=h.reg(h.CP.outline_color);h.OUTLINE_WIDTH=h.reg(h.CP.outline_width);h.PADDING=h.reg(h.CP.padding);h.PADDING_TOP=h.reg(h.CP.padding_top);h.PITCH_RANGE=h.reg(h.CP.pitch_range);h.RIGHT=h.reg(h.CP.right);h.STRESS=h.reg(h.CP.stress);h.TEXT_INDENT=h.reg(h.CP.text_indent);h.TEXT_SHADOW=h.reg(h.CP.text_shadow);h.VOLUME=h.reg(h.CP.volume);h.WORD_WRAP=h.reg(h.CP.word_wrap);h.ZOOM=h.reg(h.CP.zoom);h.BACKFACE_VISIBILITY=h.reg(h.CP.backface_visibility);h.BACKGROUND_CLIP=h.reg(h.CP.background_clip);h.BACKGROUND_POSITION=h.reg(h.CP.background_position);h.BORDER_BOTTOM_COLOR=h.reg(h.CP.border_bottom_color);h.BORDER_BOTTOM_STYLE=h.reg(h.CP.border_bottom_style);h.BORDER_COLOR=h.reg(h.CP.border_color);h.BORDER_LEFT_COLOR=h.reg(h.CP.border_left_color);h.BORDER_RIGHT_COLOR=h.reg(h.CP.border_right_color);h.BORDER_STYLE=h.reg(h.CP.border_style);h.BORDER_TOP_LEFT_RADIUS=h.reg(h.CP.border_top_left_radius);h.BORDER_TOP_WIDTH=h.reg(h.CP.border_top_width);h.BOX_SHADOW=h.reg(h.CP.box_shadow);h.CLIP=h.reg(h.CP.clip);h.DISPLAY_INSIDE=h.reg(h.CP.display_inside);h.FONT_SIZE=h.reg(h.CP.font_size);h.LINE_HEIGHT=h.reg(h.CP.line_height);h.MARGIN_LEFT=h.reg(h.CP.margin_left);h.MAX_WIDTH=h.reg(h.CP.max_width);h.OUTLINE_STYLE=h.reg(h.CP.outline_style);h.PADDING_BOTTOM=h.reg(h.CP.padding_bottom);h.PADDING_RIGHT=h.reg(h.CP.padding_right);h.PERSPECTIVE=h.reg(h.CP.perspective);h.RICHNESS=h.reg(h.CP.richness);h.TEXT_OVERFLOW=h.reg(h.CP.text_overflow);h.TOP=h.reg(h.CP.top);h.WIDTH=h.reg(h.CP.width);h.Z_INDEX=h.reg(h.CP.z_index);h.BACKGROUND=h.reg(h.CP.background);h.BACKGROUND_SIZE=h.reg(h.CP.background_size);h.BORDER_BOTTOM_LEFT_RADIUS=h.reg(h.CP.border_bottom_left_radius);h.BORDER_BOTTOM_WIDTH=h.reg(h.CP.border_bottom_width);h.BORDER_LEFT_STYLE=h.reg(h.CP.border_left_style);h.BORDER_RIGHT_STYLE=h.reg(h.CP.border_right_style);h.BORDER_TOP=h.reg(h.CP.border_top);h.BOTTOM=h.reg(h.CP.bottom);h.LIST_STYLE=h.reg(h.CP.list_style);h.MARGIN_TOP=h.reg(h.CP.margin_top);h.OUTLINE=h.reg(h.CP.outline);h.OVERFLOW_Y=h.reg(h.CP.overflow_y);h.PITCH=h.reg(h.CP.pitch);h.VERTICAL_ALIGN=h.reg(h.CP.vertical_align);h.WORD_SPACING=h.reg(h.CP.word_spacing);h.BACKGROUND_IMAGE=h.reg(h.CP.background_image);h.BORDER_BOTTOM_RIGHT_RADIUS=h.reg(h.CP.border_bottom_right_radius);h.BORDER_LEFT_WIDTH=h.reg(h.CP.border_left_width);h.BORDER_RIGHT_WIDTH=h.reg(h.CP.border_right_width);h.LEFT=h.reg(h.CP.left);h.MARGIN_BOTTOM=h.reg(h.CP.margin_bottom);h.PAUSE_AFTER=h.reg(h.CP.pause_after);h.SPEECH_RATE=h.reg(h.CP.speech_rate);h.TRANSITION_DURATION=h.reg(h.CP.transition_duration);h.BORDER_BOTTOM=h.reg(h.CP.border_bottom);h.BORDER_RIGHT=h.reg(h.CP.border_right);h.MARGIN=h.reg(h.CP.margin);h.PADDING_LEFT=h.reg(h.CP.padding_left);h.BORDER_LEFT=h.reg(h.CP.border_left);h.FONT=h.reg(h.CP.font);h.QUOTES=h.reg(h.CP.quotes);h.BORDER_TOP_RIGHT_RADIUS=h.reg(h.CP.border_top_right_radius);h.MIN_WIDTH=h.reg(h.CP.min_width);h.ALIGN_CONTENT=h.reg(h.CP.align_content);h.ALIGN_ITEMS=h.reg(h.CP.align_items);h.ALIGN_SELF=h.reg(h.CP.align_self);h.FLEX=h.reg(h.B.flex);h.FLEX_BASIS=h.reg(h.CP.flex_basis);h.FLEX_DIRECTION=h.reg(h.AP.flex_direction);h.FLEX_GROW=h.reg(h.CP.flex_grow);h.FLEX_SHRINK=h.reg(h.CP.flex_shrink);h.FLEX_WRAP=h.reg(h.AP.flex_wrap);h.JUSTIFY_CONTENT=h.reg(h.AP.justify_content);h.JUSTIFY_ITEMS=h.reg(h.AP.justify_items);h.JUSTIFY_SELF=h.reg(h.AP.justify_self);h.ORDER=h.reg(h.CP.order);h.GRID=h.reg(h.CP.grid);h.GRID_AREA=h.reg(h.CP.grid_area);h.GRID_AUTO_COLUMNS=h.reg(h.CP.grid_auto_columns);h.GRID_AUTO_FLOW=h.reg(h.AP.grid_auto_flow);h.GRID_AUTO_ROWS=h.reg(h.CP.grid_auto_rows);h.GRID_COLUMN=h.reg(h.CP.grid_column);h.GRID_COLUMN_END=h.reg(h.CP.grid_column_end);h.GRID_COLUMN_GAP=h.reg(h.CP.grid_column_gap);h.GRID_COLUMN_START=h.reg(h.CP.grid_column_start);
6316h.GRID_GAP=h.reg(h.CP.grid_gap);h.GRID_ROW=h.reg(h.CP.grid_row);h.GRID_ROW_END=h.reg(h.CP.grid_row_end);h.GRID_ROW_GAP=h.reg(h.CP.grid_row_gap);h.GRID_ROW_START=h.reg(h.CP.grid_row_start);h.GRID_TEMPLATE=h.reg(h.CP.grid_template);h.GRID_TEMPLATE_AREAS=h.reg(h.CP.grid_template_areas);h.GRID_TEMPLATE_COLUMNS=h.reg(h.CP.grid_template_columns);h.GRID_TEMPLATE_ROWS=h.reg(h.CP.grid_template_rows);h.GAP=h.reg(h.CP.gap);h.ROW_GAP=h.reg(h.CP.row_gap);h.COLUMN_GAP=h.reg(h.CP.column_gap);h.PLACE_CONTENT=h.reg(h.AP.place_content);h.PLACE_ITEMS=h.reg(h.AP.place_items);h.PLACE_SELF=h.reg(h.AP.place_self);NQ=class{constructor(){this._autolink=!0,this._allowNamedProperties=!1,this._allowCommandLinker=!0,this._generateOptions=()=>{let e=Array.isArray(this._customAllowedSchemes)?this._customAllowedSchemes:[...yp.default.defaults.allowedSchemes];return{allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","col","colgroup","colspan","command","data","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","map","mark","menu","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rowspan","s","samp","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],allowedAttributes:{"*":["class","data-jupyter-id","dir","draggable","hidden","id","inert","itemprop","itemref","itemscope","lang","spellcheck","style","title","translate"],a:["accesskey","coords","href","hreflang",...this._allowNamedProperties?["name"]:[],"rel","shape","tabindex","target","type"],area:["accesskey","alt","coords","href","nohref","shape","tabindex"],audio:["autoplay","controls","loop","mediagroup","muted","preload","src"],bdo:["dir"],blockquote:["cite"],br:["clear"],button:["accesskey",...this._allowCommandLinker?["data-commandlinker-args","data-commandlinker-command"]:[],"disabled",...this._allowNamedProperties?["name"]:[],"tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],command:["checked","command","disabled","icon","label","radiogroup","type"],data:["value"],del:["cite","datetime"],details:["open"],dir:["compact"],div:["align"],dl:["compact"],fieldset:["disabled"],font:["color","face","size"],form:["accept","autocomplete","enctype","method",...this._allowNamedProperties?["name"]:[],"novalidate"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],hr:["align","noshade","size","width"],iframe:["align","frameborder","height","marginheight","marginwidth","width"],img:["align","alt","border","height","hspace","ismap",...this._allowNamedProperties?["name"]:[],"src","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","checked","disabled","inputmode","ismap","list","max","maxlength","min","multiple",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","size","src","step","tabindex","type","usemap","value"],ins:["cite","datetime"],label:["accesskey","for"],legend:["accesskey","align"],li:["type","value"],map:this._allowNamedProperties?["name"]:[],menu:["compact","label","type"],meter:["high","low","max","min","value"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for",...this._allowNamedProperties?["name"]:[]],p:["align"],pre:["width"],progress:["max","min","value"],q:["cite"],select:["autocomplete","disabled","multiple",...this._allowNamedProperties?["name"]:[],"required","size","tabindex"],source:["type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","
6316scope","valign","width"],textarea:["accesskey","autocomplete","cols","disabled","inputmode",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","srclang"],ul:["compact","type"],video:["autoplay","controls","height","loop","mediagroup","muted","poster","preload","src","width"]},allowedStyles:{"*":{"backface-visibility":[h.BACKFACE_VISIBILITY],background:[h.BACKGROUND],"background-attachment":[h.BACKGROUND_ATTACHMENT],"background-clip":[h.BACKGROUND_CLIP],"background-color":[h.BACKGROUND_COLOR],"background-image":[h.BACKGROUND_IMAGE],"background-origin":[h.BACKGROUND_ORIGIN],"background-position":[h.BACKGROUND_POSITION],"background-repeat":[h.BACKGROUND_REPEAT],"background-size":[h.BACKGROUND_SIZE],border:[h.BORDER],"border-bottom":[h.BORDER_BOTTOM],"border-bottom-color":[h.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[h.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[h.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[h.BORDER_BOTTOM_STYLE],"border-bottom-width":[h.BORDER_BOTTOM_WIDTH],"border-collapse":[h.BORDER_COLLAPSE],"border-color":[h.BORDER_COLOR],"border-left":[h.BORDER_LEFT],"border-left-color":[h.BORDER_LEFT_COLOR],"border-left-style":[h.BORDER_LEFT_STYLE],"border-left-width":[h.BORDER_LEFT_WIDTH],"border-radius":[h.BORDER_RADIUS],"border-right":[h.BORDER_RIGHT],"border-right-color":[h.BORDER_RIGHT_COLOR],"border-right-style":[h.BORDER_RIGHT_STYLE],"border-right-width":[h.BORDER_RIGHT_WIDTH],"border-spacing":[h.BORDER_SPACING],"border-style":[h.BORDER_STYLE],"border-top":[h.BORDER_TOP],"border-top-color":[h.BORDER_TOP_COLOR],"border-top-left-radius":[h.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[h.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[h.BORDER_TOP_STYLE],"border-top-width":[h.BORDER_TOP_WIDTH],"border-width":[h.BORDER_WIDTH],bottom:[h.BOTTOM],box:[h.BOX],"box-shadow":[h.BOX_SHADOW],"box-sizing":[h.BOX_SIZING],"caption-side":[h.CAPTION_SIDE],clear:[h.CLEAR],clip:[h.CLIP],color:[h.COLOR],cursor:[h.CURSOR],direction:[h.DIRECTION],display:[h.DISPLAY],"display-inside":[h.DISPLAY_INSIDE],"display-outside":[h.DISPLAY_OUTSIDE],elevation:[h.ELEVATION],"empty-cells":[h.EMPTY_CELLS],float:[h.FLOAT],font:[h.FONT],"font-family":[h.FONT_FAMILY],"font-size":[h.FONT_SIZE],"font-stretch":[h.FONT_STRETCH],"font-style":[h.FONT_STYLE],"font-variant":[h.FONT_VARIANT],"font-weight":[h.FONT_WEIGHT],height:[h.HEIGHT],left:[h.LEFT],"letter-spacing":[h.LETTER_SPACING],"line-height":[h.LINE_HEIGHT],"list-style":[h.LIST_STYLE],"list-style-image":[h.LIST_STYLE_IMAGE],"list-style-position":[h.LIST_STYLE_POSITION],"list-style-type":[h.LIST_STYLE_TYPE],margin:[h.MARGIN],"margin-bottom":[h.MARGIN_BOTTOM],"margin-left":[h.MARGIN_LEFT],"margin-right":[h.MARGIN_RIGHT],"margin-top":[h.MARGIN_TOP],"max-height":[h.MAX_HEIGHT],"max-width":[h.MAX_WIDTH],"min-height":[h.MIN_HEIGHT],"min-width":[h.MIN_WIDTH],opacity:[h.OPACITY],outline:[h.OUTLINE],"outline-color":[h.OUTLINE_COLOR],"outline-style":[h.OUTLINE_STYLE],"outline-width":[h.OUTLINE_WIDTH],overflow:[h.OVERFLOW],"overflow-wrap":[h.OVERFLOW_WRAP],"overflow-x":[h.OVERFLOW_X],"overflow-y":[h.OVERFLOW_Y],padding:[h.PADDING],"padding-bottom":[h.PADDING_BOTTOM],"padding-left":[h.PADDING_LEFT],"padding-right":[h.PADDING_RIGHT],"padding-top":[h.PADDING_TOP],"page-break-after":[h.PAGE_BREAK_AFTER],"page-break-before":[h.PAGE_BREAK_BEFORE],"page-break-inside":[h.PAGE_BREAK_INSIDE],"pause-after":[h.PAUSE_AFTER],perspective:[h.PERSPECTIVE],pitch:[h.PITCH],"pitch-range":[h.PITCH_RANGE],position:[h.POSITION],quotes:[h.QUOTES],resize:[h.RESIZE],richness:[h.RICHNESS],right:[h.RIGHT],speak:[h.SPEAK],"speak-header":[h.SPEAK_HEADER],"speak-numeral":[h.SPEAK_NUMERAL],"speak-punctuation":[h.SPEAK_PUNCTUATION],"speech-rate":[h.SPEECH_RATE],stress:[h.STRESS],"table-layout":[h.TABLE_LAYOUT],"text-align":[h.TEXT_ALIGN],"text-decoration":[h.TEXT_DECORATION],"text-indent":[h.TEXT_INDENT],"text-overflow":[h.TEXT_OVERFLOW],"text-shadow":[h.TEXT_SHADOW],"text-transform":[h.TEXT_TRANSFORM],"text-wrap":[h.TEXT_WRAP],top:[h.TOP],"unicode
6316-bidi":[h.UNICODE_BIDI],"vertical-align":[h.VERTICAL_ALIGN],visibility:[h.VISIBILITY],volume:[h.VOLUME],"white-space":[h.WHITE_SPACE],width:[h.WIDTH],"word-break":[h.WORD_BREAK],"word-spacing":[h.WORD_SPACING],"word-wrap":[h.WORD_WRAP],"z-index":[h.Z_INDEX],zoom:[h.ZOOM],"align-content":[h.ALIGN_CONTENT],"align-items":[h.ALIGN_ITEMS],"align-self":[h.ALIGN_SELF],flex:[h.FLEX],"flex-basis":[h.FLEX_BASIS],"flex-direction":[h.FLEX_DIRECTION],"flex-grow":[h.FLEX_GROW],"flex-shrink":[h.FLEX_SHRINK],"flex-wrap":[h.FLEX_WRAP],grid:[h.GRID],"grid-area":[h.GRID_AREA],"grid-auto-columns":[h.GRID_AUTO_COLUMNS],"grid-auto-flow":[h.GRID_AUTO_FLOW],"grid-auto-rows":[h.GRID_AUTO_ROWS],"grid-column":[h.GRID_COLUMN],"grid-column-end":[h.GRID_COLUMN_END],"grid-column-gap":[h.GRID_COLUMN_GAP],"grid-column-start":[h.GRID_COLUMN_START],"grid-gap":[h.GRID_GAP],"grid-row":[h.GRID_ROW],"grid-row-end":[h.GRID_ROW_END],"grid-row-gap":[h.GRID_ROW_GAP],"grid-row-start":[h.GRID_ROW_START],"grid-template":[h.GRID_TEMPLATE],"grid-template-areas":[h.GRID_TEMPLATE_AREAS],"grid-template-columns":[h.GRID_TEMPLATE_COLUMNS],"grid-template-rows":[h.GRID_TEMPLATE_ROWS],gap:[h.GAP],"row-gap":[h.ROW_GAP],"column-gap":[h.COLUMN_GAP],"justify-content":[h.JUSTIFY_CONTENT],"justify-items":[h.JUSTIFY_ITEMS],"justify-self":[h.JUSTIFY_SELF],order:[h.ORDER],"place-content":[h.PLACE_CONTENT],"place-items":[h.PLACE_ITEMS],"place-self":[h.PLACE_SELF]}},transformTags:{a:yp.default.simpleTransform("a",{rel:"nofollow"}),input:yp.default.simpleTransform("input",{disabled:"disabled"}),...this._allowNamedProperties?{}:{"*":function(t,i){return i.id!==void 0&&(i["data-jupyter-id"]=i.id,delete i.id),{tagName:t,attribs:{...i}}}}},allowedSchemes:e,allowedSchemesByTag:{img:[...e,"attachment"]},allowedSchemesAppliedToAttributes:["href","cite"]}},this._options=this._generateOptions()}sanitize(e,t){return(0,yp.default)(e,{...this._options,...t||{}})}getAutolink(){return this._autolink}get allowNamedProperties(){return this._allowNamedProperties}get allowCommandLinker(){return this._allowCommandLinker}setAllowedSchemes(e){this._customAllowedSchemes=[...e],this._options=this._generateOptions()}setAutolink(e){this._autolink=e}setAllowNamedProperties(e){this._allowNamedProperties=e,this._options=this._generateOptions()}setAllowCommandLinker(e){this._allowCommandLinker=e,this._options=this._generateOptions()}}});var Nd,jQ=p(()=>{Nd=class{constructor(){this._commands=new Array}get ids(){return this._commands.map(e=>e.id)}add(e){if(this._commands.map(t=>t.id).includes(e.id))throw Error(`Command ${e.id} is already defined.`);this._commands.push({isEnabled:()=>!0,rank:Nd.DEFAULT_RANK,...e})}getActiveCommandId(e){var t;return((t=this._commands.filter(s=>s.isEnabled(e)).sort((s,o)=>s.rank-o.rank||(s.id<o.id?-1:1))[0])!==null&&t!==void 0?t:{id:null}).id}remove(e){let t=this._commands.findIndex(i=>i.id===e);t>=0&&this._commands.splice(t,1)}};Nd.DEFAULT_RANK=500;Nd.WIDGET="semanticWidget"});var zQ,qQ=p(()=>{Sn();Gn();Xe();(function(r){function e(t){for(let i of t.children())e(i);t.fit()}r.fitAll=e})(zQ||(zQ={}))});var no,d6t,h6t,f6t,p6t,m6t,g6t,b6t,v6t,y6t,HQ=p(()=>{no=N(qe()),d6t=new no.Token("@jupyterlab/apputils:ICommandPalette",`A service for the application command palette
6317  in the left panel. Use this to add commands to the palette.`),h6t=new no.Token("@jupyterlab/apputils:IKernelStatusModel","A service to register kernel session provider to the kernel status indicator."),f6t=new no.Token("@jupyterlab/apputils:ILicensesClient","A service for fetching licenses."),p6t=new no.Token("@jupyterlab/apputils:ISessionContextDialogs","A service for handling the session dialogs."),m6t=new no.Token("@jupyterlab/apputils:IThemeManager","A service for the theme manager for the application. This is used primarily in theme extensions to register new themes."),g6t=new no.Token("@jupyterlab/apputils:ISanitizer","A service for sanitizing HTML strings."),b6t=new no.Token("@jupyterlab/apputils:ISplashScreen",`A service for the splash screen for the application.
6318  Use this if you want to show the splash screen for your own purposes.`),v6t=new no.Token("@jupyterlab/apputils:IWindowResolver",`A service for a window resolver for the
6319  application. JupyterLab workspaces are given a name, which are determined using
6320  the window resolver. Require this if you want to use the name of the current workspace.`),y6t=new no.Token("@jupyterlab/apputils:IToolbarWidgetRegistry",`A registry for toolbar widgets. Require this
6321  if you want to build the toolbar dynamically from a data definition (stored 
6321in settings for example).`)});var UQ,VQ,WQ=p(()=>{UQ=N(qe());(function(r){let e="@jupyterlab/statedb:StateDB",t=`${e}:beacon`,i=Math.floor(200+Math.random()*300),n=`${e}:window`,s=null,o=null,a=new UQ.PromiseDelegate,l={},c=null,u=!1;function d(){window.addEventListener("storage",b=>{let{key:v,newValue:S}=b;if(S===null)return;if(v===t&&S!==s&&o!==null){f(u?c:o);return}if(u||v!==n)return;let k=S.replace(/\-\d+$/,"");l[k]=null,(!o||o in l)&&m()})}function f(b){if(b===null)return;let{localStorage:v}=window;v.setItem(n,`${b}-${new Date().getTime()}`)}function m(){u=!0,s=null,a.reject(`Window name candidate "${o}" already exists`)}function g(b){if(u)return a.promise;if(o=b,o in l)return m(),a.promise;let{localStorage:v,setTimeout:S}=window;return S(()=>{if(!u){if(!o||o in l)return m();u=!0,s=null,a.resolve(c=o),f(c)}},i),s=`${Math.random()}-${new Date().getTime()}`,v.setItem(t,s),a.promise}r.resolve=g,d()})(VQ||(VQ={}))});var Hv,m6e=p(()=>{Ys();pX();bX();yX();xX();tv();O3();wX();L3();IX();TX();DX();PX();G3();FX();BQ();jQ();M3();qQ();HQ();D3();WQ();Hv=class extends Fl{};(function(r){r.createInterruptButton=Uc.createInterruptButton,r.createKernelNameItem=Uc.createKernelNameItem,r.createKernelStatusItem=Uc.createKernelStatusItem,r.createRestartButton=Uc.createRestartButton,r.createSpacerItem=Fl.createSpacerItem})(Hv||(Hv={}))});export{S3 as a,VY as b,z2t as c,g2e as d,Hc as e,w3 as f,zY as g,qY as h,F2t as i,p2e as j,HY as k,m2e as l,_b as m,oW as n,fW as o,vW as p,Wwe as q,Gi as r,W as s,ree as t,_p as u,Fr as v,qe as w,te as x,Xe as y,Jt as z,Cr as A,Cp as B,Wn as C,ei as D,km as E,J as F,ta as G,B as H,Tr as I,sn as J,Oi as K,Rt as L,er as M,rRe as N,gt as O,Sn as P,tx as Q,tDe as R,fi as S,Ks as T,Pl as U,Ys as V,Kb as W,Yb as X,WY as Y,Xb as Z,b2e as _,fSt as $,Bf as aa,R3 as ba,ev as ca,jf as da,Vf as ea,LQ as fa,NQ as ga,m6e as ha};
6322/*! Bundled license information:
6323
6324react-is/cjs/react-is.production.min.js:
6325  (**
6326   * @license React
6327   * react-is.production.min.js
6328   *
6329   * Copyright (c) Facebook, Inc. and its affiliates.
6330   *
6331   * This source code is licensed under the MIT license found in the
6332   * LICENSE file in the root directory of this source tree.
6333   *)
6334
6335tslib/tslib.es6.js:
6336  (*! *****************************************************************************
6337  Copyright (c) Microsoft Corporation.
6338  
6339  Permission to use, copy, modify, and/or distribute this software for any
6340  purpose with or without fee is hereby granted.
6341  
6342  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
6343  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6344  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
6345  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6346  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
6347  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6348  PERFORMANCE OF THIS SOFTWARE.
6349  ***************************************************************************** *)
6350
6351tabbable/dist/index.esm.js:
6352  (*!
6353  * tabbable 5.3.3
6354  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
6355  *)
6356
6357is-plain-object/dist/is-plain-object.js:
6358  (*!
6359   * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
6360   *
6361   * Copyright (c) 2014-2017, Jon Schlinkert.
6362   * Released under the MIT License.
6363   *)
6364*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.