@histoire/controls 0.17.17 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.histoire/dist/__sandbox.html +16 -0
- package/.histoire/dist/assets/BaseEmpty.d30f3079.js +11 -0
- package/.histoire/dist/assets/HomeView.8e044be6.js +24 -0
- package/.histoire/dist/assets/HstCheckbox.story.3d04d85b.js +144 -0
- package/.histoire/dist/assets/HstColorShades.story.68cf74d1.js +532 -0
- package/.histoire/dist/assets/HstCopyIcon.e40e725e.js +51 -0
- package/.histoire/dist/assets/HstNumber.story.1e1964ff.js +160 -0
- package/.histoire/dist/assets/HstSelect.story.04860383.js +277 -0
- package/.histoire/dist/assets/HstText.story.c915d831.js +137 -0
- package/.histoire/dist/assets/HstTextarea.story.802b9c26.js +105 -0
- package/.histoire/dist/assets/HstTokenGrid.story.025819d6.js +148 -0
- package/.histoire/dist/assets/HstTokenList.story.d3aa6575.js +176 -0
- package/.histoire/dist/assets/HstWrapper.246b6982.js +56 -0
- package/.histoire/dist/assets/SearchPane.daa2675c.js +426 -0
- package/.histoire/dist/assets/StoryView.2f64dad1.js +2260 -0
- package/.histoire/dist/assets/bundle-main.784e5bf7.js +1156 -0
- package/.histoire/dist/assets/bundle-sandbox.5e153933.js +84 -0
- package/.histoire/dist/assets/const.268165fd.js +658 -0
- package/.histoire/dist/assets/global-components.6736b2a9.js +5722 -0
- package/.histoire/dist/assets/search-docs-data.b9a75539.js +6 -0
- package/.histoire/dist/assets/style.04507241.css +2504 -0
- package/.histoire/dist/assets/vendor.2833ae3d.js +28970 -0
- package/.histoire/dist/index.html +16 -0
- package/dist/components/HstCopyIcon.vue.d.ts +3 -12
- package/dist/components/HstWrapper.vue.d.ts +4 -27
- package/dist/components/button/HstButton.story.vue.d.ts +1 -1
- package/dist/components/button/HstButton.vue.d.ts +5 -145
- package/dist/components/button/HstButtonGroup.story.vue.d.ts +1 -1
- package/dist/components/button/HstButtonGroup.vue.d.ts +6 -15
- package/dist/components/checkbox/HstCheckbox.story.vue.d.ts +1 -1
- package/dist/components/checkbox/HstCheckbox.vue.d.ts +5 -14
- package/dist/components/checkbox/HstCheckboxList.story.vue.d.ts +1 -1
- package/dist/components/checkbox/HstCheckboxList.vue.d.ts +6 -15
- package/dist/components/checkbox/HstSimpleCheckbox.story.vue.d.ts +1 -1
- package/dist/components/checkbox/HstSimpleCheckbox.vue.d.ts +5 -14
- package/dist/components/colorselect/HstColorSelect.story.vue.d.ts +1 -1
- package/dist/components/colorselect/HstColorSelect.vue.d.ts +5 -14
- package/dist/components/design-tokens/HstColorShades.story.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstColorShades.vue.d.ts +3 -12
- package/dist/components/design-tokens/HstTokenGrid.story.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstTokenGrid.vue.d.ts +4 -27
- package/dist/components/design-tokens/HstTokenList.story.vue.d.ts +1 -1
- package/dist/components/design-tokens/HstTokenList.vue.d.ts +3 -12
- package/dist/components/json/HstJson.story.vue.d.ts +1 -1
- package/dist/components/json/HstJson.vue.d.ts +5 -14
- package/dist/components/number/HstNumber.story.vue.d.ts +1 -1
- package/dist/components/number/HstNumber.vue.d.ts +5 -14
- package/dist/components/radio/HstRadio.story.vue.d.ts +1 -1
- package/dist/components/radio/HstRadio.vue.d.ts +6 -15
- package/dist/components/select/CustomSelect.vue.d.ts +6 -15
- package/dist/components/select/HstSelect.story.vue.d.ts +1 -1
- package/dist/components/select/HstSelect.vue.d.ts +6 -15
- package/dist/components/slider/HstSlider.story.vue.d.ts +1 -1
- package/dist/components/slider/HstSlider.vue.d.ts +5 -14
- package/dist/components/text/HstText.story.vue.d.ts +1 -1
- package/dist/components/text/HstText.vue.d.ts +5 -14
- package/dist/components/textarea/HstTextarea.story.vue.d.ts +1 -1
- package/dist/components/textarea/HstTextarea.vue.d.ts +5 -14
- package/dist/index.d.ts +732 -2488
- package/dist/index.es.css +1 -0
- package/dist/index.es.js +5279 -4823
- package/dist/style-standalone.css +74 -66
- package/dist/utils.d.ts +1 -1
- package/package.json +25 -25
- package/src/components/HstCopyIcon.vue +1 -1
- package/src/components/HstWrapper.vue +1 -1
- package/src/components/button/HstButtonGroup.vue +1 -1
- package/src/components/checkbox/HstCheckboxList.vue +1 -1
- package/src/components/design-tokens/HstColorShades.vue +2 -2
- package/src/components/design-tokens/HstTokenGrid.vue +1 -1
- package/src/components/json/HstJson.vue +12 -12
- package/src/components/radio/HstRadio.vue +1 -1
- package/src/components/select/CustomSelect.vue +3 -3
- package/src/components/select/HstSelect.vue +1 -1
- package/src/components/slider/HstSlider.vue +1 -1
- package/src/index.ts +8 -8
- package/tsconfig.json +1 -0
- package/vite.config.ts +1 -1
- package/dist/style.css +0 -1
- package/histoire-dist/__sandbox.html +0 -15
- package/histoire-dist/assets/BaseEmpty.a84c14c8.js +0 -1
- package/histoire-dist/assets/HomeView.f524bd4b.js +0 -1
- package/histoire-dist/assets/HstCheckbox.story.9f622545.js +0 -1
- package/histoire-dist/assets/HstInput.story.945401ce.js +0 -1
- package/histoire-dist/assets/SearchModal.76c035f2.js +0 -1
- package/histoire-dist/assets/StoryView.e4c41518.js +0 -15
- package/histoire-dist/assets/global-components.84d0ab22.js +0 -1
- package/histoire-dist/assets/histoire-text-dark.a529813a.svg +0 -89
- package/histoire-dist/assets/histoire-text.1d4474b5.svg +0 -89
- package/histoire-dist/assets/index.58f51dd0.js +0 -1
- package/histoire-dist/assets/preview-settings.a634d101.js +0 -1
- package/histoire-dist/assets/sandbox.2c60450a.js +0 -1
- package/histoire-dist/assets/style.7657d2ac.css +0 -1
- package/histoire-dist/assets/vendor.70a554f6.js +0 -9
- package/histoire-dist/index.html +0 -15
- /package/{histoire-dist/assets/histoire.8af7bd1f.svg → .histoire/dist/histoire.svg} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty,b=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var f=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,m=(o,e)=>{for(var t in e||(e={}))g.call(e,t)&&f(o,t,e[t]);if(h)for(var t of h(e))k.call(e,t)&&f(o,t,e[t]);return o},i=(o,e)=>b(o,v(e));import{d as y,p as $,o as c,g as V,b as U,v as C,a as S,m as I,n as N,z as B,c as H,w as a,h as u,Z as _,r as w}from"./vendor.70a554f6.js";const z={key:0,class:"htw-text-sm htw-px-2 htw-cursor-text"},L=["value"],E={name:"HstInput",inheritAttrs:!1},d=y(i(m({},E),{props:{modelValue:{type:[String,Number],default:""}},emits:{"update:modelValue":o=>!0},setup(o,{emit:e}){const t=$();return(s,r)=>(c(),V("div",{class:N(["htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700 htw-cursor-text",s.$attrs.class]),style:B(s.$attrs.style),onClick:r[1]||(r[1]=p=>t.value.focus())},[s.$slots.default?(c(),V("label",z,[U(s.$slots,"default")])):C("v-if",!0),S("input",I({ref_key:"input",ref:t},i(m({},s.$attrs),{style:null,class:null}),{value:o.modelValue,class:"htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-0 htw-border htw-border-gray-300 dark:htw-border-gray-500 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm",onInput:r[0]||(r[0]=p=>e("update:modelValue",p.target.value))}),null,16,L)],6))}}));d.__file="src/components/input/HstInput.vue";const A=_(" Label "),P=_(" Label "),T=_(" Label "),Z=y({setup(o){function e(){return{text:""}}return(t,s)=>{const r=w("Variant"),p=w("Story");return c(),H(p,{title:"HstInput"},{default:a(()=>[u(r,{title:"playground","init-state":e},{default:a(({state:l})=>[u(d,{modelValue:l.text,"onUpdate:modelValue":n=>l.text=n},{default:a(()=>[A]),_:2},1032,["modelValue","onUpdate:modelValue"])]),controls:a(({state:l})=>[u(d,{modelValue:l.text,"onUpdate:modelValue":n=>l.text=n},{default:a(()=>[P]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),u(r,{title:"no-label","init-state":e},{default:a(({state:l})=>[u(d,{modelValue:l.text,"onUpdate:modelValue":n=>l.text=n,placeholder:"Enter some text..."},null,8,["modelValue","onUpdate:modelValue"])]),controls:a(({state:l})=>[u(d,{modelValue:l.text,"onUpdate:modelValue":n=>l.text=n},{default:a(()=>[T]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1})}}});Z.__file="src/components/input/HstInput.story.vue";export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as q,i as T,p as x,q as S,Y as j,o as r,g as u,h as B,w as K,u as w,I as V,n as z,a as i,Z as R,t as $,F as _,s as D,c as L,v as N,_ as A,f as O,C as M,$ as U,e as I,a0 as Y}from"./vendor.70a554f6.js";import{o as Z,B as G,_ as H,u as J}from"./index.58f51dd0.js";import{B as Q}from"./BaseEmpty.a84c14c8.js";import"./global-components.84d0ab22.js";const W={class:"htw-flex-1"},X={class:"htw-flex"},tt={class:"htw-ml-auto htw-opacity-40"},et={key:0,class:"htw-flex htw-items-center htw-gap-0.5 htw-opacity-60"},E=q({props:{result:{type:Object,required:!0},selected:{type:Boolean,default:!1}},emits:{close:()=>!0},setup(s,{emit:b}){const v=s;T(h=>({"60f23e5c":s.result.iconColor}));const d=x();S(()=>v.selected,h=>{h&&d.value.scrollIntoView()});const f=j();Z(["enter"],()=>{!v.selected||(f.push(v.result.route),b("close"))});const p={story:"carbon:cube",variant:"carbon:cube"},c={story:"Story",variant:"Variant"};return(h,y)=>(r(),u("div",{ref_key:"el",ref:d},[B(G,{to:s.result.route,"is-active":s.selected,class:"htw-px-6 htw-py-4 htw-gap-4",onNavigate:y[0]||(y[0]=m=>h.$emit("close"))},{default:K(()=>{var m,n;return[B(w(V),{icon:(m=s.result.icon)!=null?m:p[s.result.kind],class:z(["htw-w-5 htw-h-5",[s.selected?[]:[s.result.iconColor?"bind-icon-color":{"htw-text-primary-500":s.result.kind==="story","htw-text-gray-500":s.result.kind==="variant"}]]])},null,8,["icon","class"]),i("div",W,[i("div",X,[R($(s.result.title)+" ",1),i("span",tt,$(c[s.result.kind]),1)]),((n=s.result.path)==null?void 0:n.length)?(r(),u("div",et,[(r(!0),u(_,null,D(s.result.path,(a,g)=>(r(),u("div",{key:g,class:"htw-flex htw-items-center htw-gap-0.5"},[g>0?(r(),L(w(V),{key:0,icon:"carbon:chevron-right",class:"htw-w-4 htw-h-4 htw-mt-0.5 htw-opacity-50"})):N("v-if",!0),i("span",null,$(a),1)]))),128))])):N("v-if",!0)])]}),_:1},8,["to","is-active"])],512))}});E.__file="../histoire/dist/client/app/components/search/SearchItem.vue";var st=H(E,[["__scopeId","data-v-a2fcf75c"]]);const ot={class:"htw-fixed htw-inset-0 htw-bg-white/80 dark:htw-bg-gray-700/80"},at={class:"htw-bg-white dark:htw-bg-gray-700 md:htw-mt-16 md:htw-mx-auto htw-w-screen htw-max-w-[512px] htw-shadow-xl htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded-lg htw-relative htw-divide-y htw-divide-gray-200 dark:htw-divide-gray-850"},rt=R(" No results "),nt={key:1,class:"htw-max-h-[400px] htw-overflow-y-auto htw-rounded-b-lg"},lt=q({props:{shown:{type:Boolean,default:!1}},emits:{close:()=>!0},setup(s,{emit:b}){const v=s;function d(){b("close")}const f=x(),{focused:p}=A({target:f,initialValue:!0});S(()=>v.shown,o=>{o&&requestAnimationFrame(()=>{p.value=!0,f.value.select()})});const c=x(""),h=J();function y(o,t){return{kind:"story",rank:t,id:o.id,title:o.title,route:{name:"story",params:{storyId:o.id}},path:o.file.path.slice(0,-1),icon:o.icon,iconColor:o.iconColor}}function m(o,t,e){var l;return{kind:"variant",rank:e,id:t.id,title:t.title,route:{name:"story",params:{storyId:o.id},query:{variantId:t.id}},path:[...(l=o.file.path)!=null?l:[],o.title],icon:t.icon,iconColor:t.iconColor}}const n=O(()=>{const o=[];if(c.value){const t=c.value.toLowerCase();for(const e of h.stories){const l=e.title.toLowerCase().includes(t);let C=!1;(l||(C=e.file.path.some(k=>k.toLowerCase().includes(t))))&&o.push(y(e,l?1:4));for(const k of e.variants){const F=k.title.toLowerCase().includes(t);(l||C||F)&&o.push(m(e,k,F?2:l?3:5))}}}return o.sort((t,e)=>t.rank-e.rank)}),a=x(0);S(n,()=>{a.value=0});function g(){a.value++,a.value>n.value.length-1&&(a.value=0)}function P(){a.value--,a.value<0&&(a.value=n.value.length-1)}return(o,t)=>M((r(),u("div",ot,[i("div",{class:"htw-absolute htw-inset-0",onClick:t[0]||(t[0]=e=>d())}),i("div",at,[i("div",{class:"htw-flex htw-items-center htw-gap-4 htw-pl-6 htw-border htw-border-transparent focus-visible:htw-border-primary-500",onClick:t[5]||(t[5]=e=>p.value=!0)},[B(w(V),{icon:"carbon:search",class:"flex-none htw-w-5 htw-h-5"}),M(i("input",{ref_key:"input",ref:f,"onUpdate:modelValue":t[1]||(t[1]=e=>c.value=e),placeholder:"Search for stories, variants...",class:"htw-bg-transparent htw-w-full htw-flex-1 htw-pl-0 htw-pr-6 htw-py-4 htw-outline-none",onKeydown:[t[2]||(t[2]=I(e=>g(),["down"])),t[3]||(t[3]=I(e=>P(),["up"])),t[4]||(t[4]=I(e=>d(),["escape"]))]},null,544),[[Y,c.value]])]),c.value&&!w(n).length?(r(),L(Q,{key:0},{default:K(()=>[rt]),_:1})):w(n).length?(r(),u("div",nt,[(r(!0),u(_,null,D(w(n),(e,l)=>(r(),L(st,{key:`${e.kind}-${e.id}`,result:e,selected:l===a.value,onClose:t[6]||(t[6]=C=>d())},null,8,["result","selected"]))),128))])):N("v-if",!0)])],512)),[[U,s.shown]])}});lt.__file="../histoire/dist/client/app/components/search/SearchModal.vue";export{lt as default};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var Zt=Object.defineProperty,Qt=Object.defineProperties;var en=Object.getOwnPropertyDescriptors;var pt=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable;var dt=(e,a,g)=>a in e?Zt(e,a,{enumerable:!0,configurable:!0,writable:!0,value:g}):e[a]=g,ke=(e,a)=>{for(var g in a||(a={}))tn.call(a,g)&&dt(e,g,a[g]);if(pt)for(var g of pt(a))nn.call(a,g)&&dt(e,g,a[g]);return e},xe=(e,a)=>Qt(e,en(a));import{d as Ce,r as Ke,o as H,c as ve,w as ae,a as U,b as rn,h as oe,g as ee,v as ue,a1 as sn,m as ft,a2 as jt,f as qe,a3 as Ct,u as F,I as Pe,n as Se,t as je,i as st,y as an,p as Ee,q as Me,A as on,F as Te,s as Ye,C as ze,a0 as Nt,a4 as cn,a5 as un,Z as Ue,D as Pt,z as Tt,U as gt,a6 as ln,a7 as hn,a8 as pn,a9 as dn,aa as fn,ab as gn,ac as mn,V as yn,ad as _n,Y as vn,H as wn}from"./vendor.70a554f6.js";import{_ as Ae,B as bn,a as He,u as kn}from"./index.58f51dd0.js";import{B as Je}from"./BaseEmpty.a84c14c8.js";import{_ as At,u as Ln,S as mt,P as xn}from"./preview-settings.a634d101.js";import{h as Be,i as Sn}from"./global-components.84d0ab22.js";const Rt=Ce({inheritAttrs:!1,props:{exact:{type:Boolean,default:!1},matched:{type:Boolean,default:null}}}),jn=["href","onClick"],Cn={key:0,class:"htw-absolute htw-bottom-0 htw-left-0 htw-w-full htw-h-[2px] htw-bg-primary-500 dark:htw-bg-primary-400"};function Nn(e,a,g,t,k,w){const m=Ke("router-link");return H(),ve(m,ft(e.$attrs,{custom:""}),{default:ae(({isActive:N,isExactActive:v,href:r,navigate:y})=>[U("a",ft(e.$attrs,{href:r,class:["htw-px-4 htw-h-full htw-inline-flex htw-items-center hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-relative",{"htw-text-primary-500 dark:htw-text-primary-400":e.matched!=null?e.matched:e.exact&&v||!e.exact&&N}],onClick:y}),[rn(e.$slots,"default"),oe(sn,{name:"__histoire-scale-x"},{default:ae(()=>[(e.matched!=null?e.matched:e.exact&&v||!e.exact&&N)?(H(),ee("div",Cn)):ue("v-if",!0)]),_:2},1024)],16,jn)]),_:3},16)}Rt.__file="../histoire/dist/client/app/components/base/BaseTab.vue";var yt=Ae(Rt,[["render",Nn]]);function It(e){const a=jt(),g=qe(()=>a.query.variantId===e.value.id),t=qe(()=>xe(ke({},a),{query:xe(ke({},a.query),{variantId:e.value.id})}));return{isActive:g,targetRoute:t}}const Pn={class:"htw-truncate"},Ot=Ce({props:{variant:{type:Object,required:!0}},setup(e){const a=e;st(w=>({"3410cf2a":F(g).iconColor}));const{variant:g}=Ct(a),{isActive:t,targetRoute:k}=It(g);return(w,m)=>(H(),ee("div",null,[oe(bn,{to:F(k),"is-active":F(t),class:"htw-px-2 htw-py-1.5 htw-m-1 htw-rounded-sm htw-flex htw-items-center htw-gap-2"},{default:ae(({active:N})=>{var v;return[oe(F(Pe),{icon:(v=F(g).icon)!=null?v:"carbon:cube",class:Se(["base-list-item-link-icon htw-w-5 htw-h-5 htw-flex-none",{"htw-text-gray-500":!N&&!F(g).iconColor,"bind-icon-color":!N&&F(g).iconColor}])},null,8,["icon","class"]),U("span",Pn,je(F(g).title),1)]}),_:1},8,["to","is-active"])]))}});Ot.__file="../histoire/dist/client/app/components/StoryVariantListItem.vue";var Tn=Ae(Ot,[["__scopeId","data-v-1496e8e2"]]);const An={class:"htw-cursor-default htw-flex htw-flex-col htw-gap-y-1"},Rn={class:"htw-flex-none htw-flex htw-items-center"},$t=Ce({props:{variant:{type:Object,required:!0},story:{type:Object,required:!0}},setup(e){const a=e;st(w=>({"0a947ecc":F(g).iconColor}));const{variant:g}=Ct(a),{isActive:t,targetRoute:k}=It(g);return(w,m)=>{const N=Ke("RouterLink");return H(),ee("div",An,[ue(" Header "),U("div",Rn,[oe(N,{to:F(k),class:Se(["htw-rounded htw-w-max htw-px-2 htw-py-0.5 htw-min-w-16 htw-cursor-pointer htw-flex htw-items-center htw-gap-1",{"hover:htw-bg-gray-200 htw-text-gray-500 dark:hover:htw-bg-gray-800":!F(t),"htw-bg-primary-200 hover:htw-bg-primary-300 htw-text-primary-800 dark:htw-bg-primary-700 dark:hover:htw-bg-primary-800 dark:htw-text-primary-200":F(t)}])},{default:ae(()=>{var v;return[oe(F(Pe),{icon:(v=F(g).icon)!=null?v:"carbon:cube",class:Se(["base-list-item-link-icon htw-w-4 htw-h-4 htw-opacity-50",{"htw-text-gray-500":!F(t)&&!F(g).iconColor,"bind-icon-color":!F(t)&&F(g).iconColor}])},null,8,["icon","class"]),U("span",null,je(F(g).title),1)]}),_:1},8,["to","class"])]),ue(" Body "),U("div",{class:Se(["htw-border htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-flex-1 htw-p-4",{"htw-border-gray-100 dark:htw-border-gray-800":!F(t),"htw-border-primary-200 dark:htw-border-primary-900":F(t)}]),onClick:m[0]||(m[0]=an(()=>{},["stop","prevent"]))},[oe(At,{variant:F(g),story:e.story},null,8,["variant","story"])],2)])}}});$t.__file="../histoire/dist/client/app/components/StoryVariantGridItem.vue";var In=Ae($t,[["__scopeId","data-v-02b208a8"]]);const Et={},On={fill:"none"},$n=U("pattern",{id:"hatch",width:"32",height:"32",patternUnits:"userSpaceOnUse"},[U("path",{d:`M32,0 L0,32
|
|
2
|
-
M-1,1 l2,-2
|
|
3
|
-
M31,33 l2,-2`,"stroke-width":"2",stroke:"currentColor"})],-1),En=U("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#hatch)"},null,-1),Mn=[$n,En];function Dn(e,a){return H(),ee("svg",On,Mn)}Et.__file="../histoire/dist/client/app/components/misc/HatchedPattern.vue";var Gn=Ae(Et,[["render",Dn]]);const Mt={},Bn={fill:"none"},Fn=U("pattern",{id:"checkerboard",width:"64",height:"64",patternUnits:"userSpaceOnUse"},[U("rect",{x:"0",y:"0",width:"32",height:"32",fill:"currentColor"}),U("rect",{x:"32",y:"32",width:"32",height:"32",fill:"currentColor"})],-1),Wn=U("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#checkerboard)"},null,-1),qn=[Fn,Wn];function Un(e,a){return H(),ee("svg",Bn,qn)}Mt.__file="../histoire/dist/client/app/components/misc/CheckerboardPattern.vue";var Vn=Ae(Mt,[["render",Un]]);const Le=e=>(cn("data-v-7d674321"),e=e(),un(),e),zn={class:"htw-h-full htw-flex htw-flex-col htw-gap-2"},Hn={class:"htw-flex-none htw-flex htw-items-center htw-gap-4"},Kn={class:"htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0"},Yn={class:"htw-flex-none htw-flex htw-gap-1 htw-items-center"},Jn={class:"htw-flex htw-flex-col htw-items-stretch"},Xn=["onClick"],Zn={class:"htw-ml-auto htw-opacity-70"},Qn={key:0,class:"htw-flex-none htw-flex htw-gap-1 htw-items-center"},er={class:"htw-cursor-pointer hover:htw-text-primary-500 htw-flex htw-items-center htw-gap-1"},tr=Le(()=>U("div",{class:"bind-preview-bg htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20"},null,-1)),nr={class:"htw-flex htw-flex-col htw-items-stretch"},rr=Ue(" Checkerboard "),sr=["onClick"],ar={class:"htw-mr-auto"},or={class:"htw-ml-auto htw-opacity-70"},ir={class:"htw-p-4 htw-h-full htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-l-lg htw-relative"},cr={class:"htw-w-full htw-h-full htw-border htw-border-gray-100 dark:htw-border-gray-800 htw-rounded-sm htw-relative"},ur=Le(()=>U("div",{class:"bind-preview-bg htw-absolute htw-inset-0"},null,-1)),lr=["src"],hr=Le(()=>U("div",{class:"htw-absolute htw-top-1 htw-left-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),pr=Le(()=>U("div",{class:"htw-absolute htw-top-1 htw-right-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),dr=Le(()=>U("div",{class:"htw-absolute htw-bottom-1 htw-left-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),fr=Le(()=>U("div",{class:"htw-absolute htw-bottom-1 htw-right-4 htw-h-2 htw-w-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),gr=Le(()=>U("div",{class:"htw-absolute htw-left-1 htw-top-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),mr=Le(()=>U("div",{class:"htw-absolute htw-left-1 htw-bottom-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),yr=Le(()=>U("div",{class:"htw-absolute htw-right-1 htw-top-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),_r=Le(()=>U("div",{class:"htw-absolute htw-right-1 htw-bottom-4 htw-w-2 htw-h-px htw-bg-gray-200 dark:htw-bg-gray-800"},null,-1)),vr={class:"htw-w-full htw-h-full htw-bg-gray-200 dark:htw-bg-gray-850 htw-rounded-r-lg htw-border-l-2 htw-border-gray-500/10 dark:htw-border-gray-700/30 htw-overflow-hidden"},Dt=Ce({props:{variant:{type:Object,required:!0},story:{type:Object,required:!0}},setup(e){const a=e;st(S=>({"5c2ba8e8":F(v).backgroundColor}));const g=Ee();function t(){g.value&&g.value.contentWindow.postMessage({type:mt,state:gt(a.variant.state)})}let k=!1;Me(()=>a.variant.state,()=>{if(k){k=!1;return}t()},{deep:!0,immediate:!0}),on(window,"message",S=>{S.data.type===mt&&(k=!0,Object.assign(a.variant.state,S.data.state))});const w=qe(()=>{const S=new URLSearchParams;return S.append("storyId",a.story.id),S.append("variantId",a.variant.id),"/__sandbox?"+S.toString()}),m=Ee(!1);Me(w,()=>{m.value=!1});const N=Ee(void 0),v=Ln();function r(){g.value&&g.value.contentWindow.postMessage({type:xn,settings:gt(v.value)})}Me(v,S=>{r()},{deep:!0,immediate:!0});function y(){m.value=!0,t(),r()}return(S,x)=>{var u,l;const n=Ke("VDropdown"),_=Ke("HstCheckbox"),p=Pt("tooltip");return H(),ee("div",zn,[ue(" Toolbar "),U("div",Hn,[ue(" Variant title "),U("div",Kn,[oe(F(Pe),{icon:(u=e.variant.icon)!=null?u:"carbon:cube",class:Se(["base-list-item-link-icon htw-w-4 htw-h-4 htw-opacity-50",[e.variant.iconColor?"bind-icon-color":"htw-text-gray-500"]])},null,8,["icon","class"]),U("span",null,je(e.variant.title),1)]),ue(" Responsive size "),U("div",Yn,[oe(n,{placement:"bottom-end",skidding:6,disabled:!((l=F(Be).responsivePresets)==null?void 0:l.length)},{popper:ae(({hide:f})=>[U("div",Jn,[(H(!0),ee(Te,null,Ye(F(Be).responsivePresets,(o,d)=>(H(),ee("button",{key:d,class:Se(["htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700 htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4",{"htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black":N.value===o.width}]),onClick:s=>{N.value=o.width,f()}},[Ue(je(o.label)+" ",1),U("span",Zn,je(o.width)+"px",1)],10,Xn))),128))])]),default:ae(()=>{var f;return[ze((H(),ee("div",{class:Se(["htw-flex htw-items-center htw-gap-1",{"htw-cursor-pointer hover:htw-text-primary-500":(f=F(Be).responsivePresets)==null?void 0:f.length}])},[oe(F(Pe),{icon:"ic:baseline-phone-android",class:"htw-w-4 htw-h-4 htw-opacity-50"}),oe(F(Pe),{icon:"carbon:caret-down",class:"htw-w-4 htw-h-4 htw-opacity-50"})],2)),[[p,"Responsive sizes"]])]}),_:1},8,["disabled"]),ze(U("input",{"onUpdate:modelValue":x[0]||(x[0]=f=>N.value=f),type:"number",class:"htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-16 htw-opacity-50 focus:htw-opacity-100",step:"16"},null,512),[[Nt,N.value,void 0,{number:!0}],[p,"Responsive width (px)"]])]),ue(" Background "),F(Be).backgroundPresets.length?(H(),ee("div",Qn,[oe(n,{placement:"bottom-end",skidding:6},{popper:ae(({hide:f})=>[U("div",nr,[oe(_,{modelValue:F(v).checkerboard,"onUpdate:modelValue":x[1]||(x[1]=o=>F(v).checkerboard=o)},{default:ae(()=>[rr]),_:1},8,["modelValue"]),(H(!0),ee(Te,null,Ye(F(Be).backgroundPresets,(o,d)=>(H(),ee("button",{key:d,class:Se(["htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700 htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4",{"htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black":F(v).backgroundColor===o.color}]),onClick:s=>{F(v).backgroundColor=o.color,f()}},[U("span",ar,je(o.label),1),o.color!=="$checkerboard"?(H(),ee(Te,{key:0},[U("span",or,je(o.color),1),U("div",{class:"htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20",style:Tt({backgroundColor:o.color})},null,4)],64)):ue("v-if",!0)],10,sr))),128))])]),default:ae(()=>[ze((H(),ee("div",er,[tr,oe(F(Pe),{icon:"carbon:caret-down",class:"htw-w-4 htw-h-4 htw-opacity-50"})])),[[p,"Background color"]])]),_:1})])):ue("v-if",!0)]),ue(" Preview pane "),oe(He,{split:N.value,"onUpdate:split":x[3]||(x[3]=f=>N.value=f),"save-id":"story-single-responsive",min:30,max:6e3,"default-split":720,fixed:"",class:"htw-w-full htw-h-full htw-flex-1 htw-border htw-border-gray-100 dark:htw-border-gray-800 htw-rounded-lg"},{first:ae(()=>[U("div",ir,[U("div",cr,[ur,F(v).checkerboard?(H(),ve(Vn,{key:0,class:"htw-absolute htw-inset-0 htw-w-full htw-h-full htw-text-gray-500/20"})):ue("v-if",!0),U("iframe",{ref_key:"iframe",ref:g,src:F(w),class:Se(["htw-w-full htw-h-full htw-relative",{"htw-invisible":!m.value}]),onLoad:x[2]||(x[2]=f=>y())},null,42,lr)]),ue(" Markers "),hr,pr,dr,fr,gr,mr,yr,_r])]),last:ae(()=>[U("div",vr,[oe(Gn,{class:"htw-w-full htw-h-full htw-text-black/[2%] dark:htw-text-white/[2%]"})])]),_:1},8,["split"])])}}});Dt.__file="../histoire/dist/client/app/components/StoryVariantSingleView.vue";var _t=Ae(Dt,[["__scopeId","data-v-7d674321"]]);const wr=U("span",null,"No controls available for this story",-1),Gt=Ce({props:{variant:{type:Object,required:!0},story:{type:Object,required:!0}},setup(e){return(a,g)=>(H(),ee("div",null,[ue(" Custom controls "),e.variant.slots().controls?(H(),ve(At,{key:0,"slot-name":"controls",variant:e.variant,story:e.story},null,8,["variant","story"])):(H(),ve(Je,{key:1},{default:ae(()=>[wr]),_:1}))]))}});Gt.__file="../histoire/dist/client/app/components/StoryControls.vue";const br=Ue(" No documentation available "),kr=["innerHTML"],Bt=Ce({props:{story:{type:Object,required:!0}},setup(e){const a=e,g=Ee("");return ln(async()=>{var k;let t=(k=a.story.file)==null?void 0:k.component;t.__asyncResolved?t=t.__asyncResolved:t.__asyncLoader&&(t=await t.__asyncLoader()),g.value=t.doc}),(t,k)=>g.value?(H(),ee("div",{key:1,class:"htw-prose htw-p-4 htw-max-w-none",innerHTML:g.value},null,8,kr)):(H(),ve(Je,{key:0},{default:ae(()=>[br]),_:1}))}});Bt.__file="../histoire/dist/client/app/components/StoryDocs.vue";var at=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},We={exports:{}};(function(e,a){(function(g,t){e.exports=t()})(at,function(){return g={770:function(k,w,m){var N=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(w,"__esModule",{value:!0}),w.setDefaultDebugCall=w.createOnigScanner=w.createOnigString=w.loadWASM=w.OnigScanner=w.OnigString=void 0;const v=N(m(418));let r=null,y=!1;class S{constructor(l){const f=l.length,o=S._utf8ByteLength(l),d=o!==f,s=d?new Uint32Array(f+1):null;d&&(s[f]=o);const i=d?new Uint32Array(o+1):null;d&&(i[o]=f);const c=new Uint8Array(o);let j=0;for(let C=0;C<f;C++){const T=l.charCodeAt(C);let R=T,O=!1;if(T>=55296&&T<=56319&&C+1<f){const z=l.charCodeAt(C+1);z>=56320&&z<=57343&&(R=65536+(T-55296<<10)|z-56320,O=!0)}d&&(s[C]=j,O&&(s[C+1]=j),R<=127?i[j+0]=C:R<=2047?(i[j+0]=C,i[j+1]=C):R<=65535?(i[j+0]=C,i[j+1]=C,i[j+2]=C):(i[j+0]=C,i[j+1]=C,i[j+2]=C,i[j+3]=C)),R<=127?c[j++]=R:R<=2047?(c[j++]=192|(1984&R)>>>6,c[j++]=128|(63&R)>>>0):R<=65535?(c[j++]=224|(61440&R)>>>12,c[j++]=128|(4032&R)>>>6,c[j++]=128|(63&R)>>>0):(c[j++]=240|(1835008&R)>>>18,c[j++]=128|(258048&R)>>>12,c[j++]=128|(4032&R)>>>6,c[j++]=128|(63&R)>>>0),O&&C++}this.utf16Length=f,this.utf8Length=o,this.utf16Value=l,this.utf8Value=c,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=i}static _utf8ByteLength(l){let f=0;for(let o=0,d=l.length;o<d;o++){const s=l.charCodeAt(o);let i=s,c=!1;if(s>=55296&&s<=56319&&o+1<d){const j=l.charCodeAt(o+1);j>=56320&&j<=57343&&(i=65536+(s-55296<<10)|j-56320,c=!0)}f+=i<=127?1:i<=2047?2:i<=65535?3:4,c&&o++}return f}createString(l){const f=l._omalloc(this.utf8Length);return l.HEAPU8.set(this.utf8Value,f),f}}class x{constructor(l){if(this.id=++x.LAST_ID,!r)throw new Error("Must invoke loadWASM first.");this._onigBinding=r,this.content=l;const f=new S(l);this.utf16Length=f.utf16Length,this.utf8Length=f.utf8Length,this.utf16OffsetToUtf8=f.utf16OffsetToUtf8,this.utf8OffsetToUtf16=f.utf8OffsetToUtf16,this.utf8Length<1e4&&!x._sharedPtrInUse?(x._sharedPtr||(x._sharedPtr=r._omalloc(1e4)),x._sharedPtrInUse=!0,r.HEAPU8.set(f.utf8Value,x._sharedPtr),this.ptr=x._sharedPtr):this.ptr=f.createString(r)}convertUtf8OffsetToUtf16(l){return this.utf8OffsetToUtf16?l<0?0:l>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[l]:l}convertUtf16OffsetToUtf8(l){return this.utf16OffsetToUtf8?l<0?0:l>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[l]:l}dispose(){this.ptr===x._sharedPtr?x._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}w.OnigString=x,x.LAST_ID=0,x._sharedPtr=0,x._sharedPtrInUse=!1;class n{constructor(l){if(!r)throw new Error("Must invoke loadWASM first.");const f=[],o=[];for(let c=0,j=l.length;c<j;c++){const C=new S(l[c]);f[c]=C.createString(r),o[c]=C.utf8Length}const d=r._omalloc(4*l.length);r.HEAPU32.set(f,d/4);const s=r._omalloc(4*l.length);r.HEAPU32.set(o,s/4);const i=r._createOnigScanner(d,s,l.length);for(let c=0,j=l.length;c<j;c++)r._ofree(f[c]);r._ofree(s),r._ofree(d),i===0&&function(c){throw new Error(c.UTF8ToString(c._getLastOnigError()))}(r),this._onigBinding=r,this._ptr=i}dispose(){this._onigBinding._freeOnigScanner(this._ptr)}findNextMatchSync(l,f,o){let d=y,s=0;if(typeof o=="number"?(8&o&&(d=!0),s=o):typeof o=="boolean"&&(d=o),typeof l=="string"){l=new x(l);const i=this._findNextMatchSync(l,f,d,s);return l.dispose(),i}return this._findNextMatchSync(l,f,d,s)}_findNextMatchSync(l,f,o,d){const s=this._onigBinding;let i;if(i=o?s._findNextOnigScannerMatchDbg(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(f),d):s._findNextOnigScannerMatch(this._ptr,l.id,l.ptr,l.utf8Length,l.convertUtf16OffsetToUtf8(f),d),i===0)return null;const c=s.HEAPU32;let j=i/4;const C=c[j++],T=c[j++];let R=[];for(let O=0;O<T;O++){const z=l.convertUtf8OffsetToUtf16(c[j++]),Y=l.convertUtf8OffsetToUtf16(c[j++]);R[O]={start:z,end:Y,length:Y-z}}return{index:C,captureIndices:R}}}w.OnigScanner=n;let _=!1,p=null;w.loadWASM=function(u){if(_)return p;let l,f,o,d;if(_=!0,function(s){return typeof s.instantiator=="function"}(u))l=u.instantiator,f=u.print;else{let s;u instanceof ArrayBuffer||u instanceof Response?s=u:(s=u.data,f=u.print),l=s instanceof ArrayBuffer?function(i){return c=>WebAssembly.instantiate(i,c)}(s):s instanceof Response&&typeof WebAssembly.instantiateStreaming=="function"?function(i){return c=>WebAssembly.instantiateStreaming(i,c)}(s):function(i){return async c=>{const j=await i.arrayBuffer();return WebAssembly.instantiate(j,c)}}(s)}return p=new Promise((s,i)=>{o=s,d=i}),function(s,i,c,j){v.default({print:i,instantiateWasm:(C,T)=>{if(typeof performance=="undefined"){const R=()=>Date.now();C.env.emscripten_get_now=R,C.wasi_snapshot_preview1.emscripten_get_now=R}return s(C).then(R=>T(R.instance),j),{}}}).then(C=>{r=C,c()})}(l,f,o,d),p},w.createOnigString=function(u){return new x(u)},w.createOnigScanner=function(u){return new n(u)},w.setDefaultDebugCall=function(u){y=u}},418:k=>{var w=(typeof document!="undefined"&&document.currentScript&&document.currentScript.src,function(m){var N,v,r=(m=m||{})!==void 0?m:{};r.ready=new Promise(function($,B){N=$,v=B});var y,S={};for(y in r)r.hasOwnProperty(y)&&(S[y]=r[y]);var x,n=!1,_="";function p($){return r.locateFile?r.locateFile($,_):_+$}x=function($){var B;return typeof readbuffer=="function"?new Uint8Array(readbuffer($)):(s(typeof(B=read($,"binary"))=="object"),B)},typeof scriptArgs!="undefined"&&scriptArgs,typeof onig_print!="undefined"&&(typeof console=="undefined"&&(console={}),console.log=onig_print,console.warn=console.error=typeof printErr!="undefined"?printErr:onig_print);var u=r.print||console.log.bind(console),l=r.printErr||console.warn.bind(console);for(y in S)S.hasOwnProperty(y)&&(r[y]=S[y]);S=null,r.arguments&&r.arguments,r.thisProgram&&r.thisProgram,r.quit&&r.quit;var f,o;r.wasmBinary&&(f=r.wasmBinary),r.noExitRuntime,typeof WebAssembly!="object"&&V("no native wasm support detected");var d=!1;function s($,B){$||V("Assertion failed: "+B)}var i,c,j,C=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function T($,B,ce){for(var be=B+ce,se=B;$[se]&&!(se>=be);)++se;if(se-B>16&&$.subarray&&C)return C.decode($.subarray(B,se));for(var de="";B<se;){var ge=$[B++];if(128&ge){var Ie=63&$[B++];if((224&ge)!=192){var Oe=63&$[B++];if((ge=(240&ge)==224?(15&ge)<<12|Ie<<6|Oe:(7&ge)<<18|Ie<<12|Oe<<6|63&$[B++])<65536)de+=String.fromCharCode(ge);else{var ht=ge-65536;de+=String.fromCharCode(55296|ht>>10,56320|1023&ht)}}else de+=String.fromCharCode((31&ge)<<6|Ie)}else de+=String.fromCharCode(ge)}return de}function R($,B){return $?T(c,$,B):""}function O($,B){return $%B>0&&($+=B-$%B),$}function z($){i=$,r.HEAP8=new Int8Array($),r.HEAP16=new Int16Array($),r.HEAP32=j=new Int32Array($),r.HEAPU8=c=new Uint8Array($),r.HEAPU16=new Uint16Array($),r.HEAPU32=new Uint32Array($),r.HEAPF32=new Float32Array($),r.HEAPF64=new Float64Array($)}typeof TextDecoder!="undefined"&&new TextDecoder("utf-16le"),r.INITIAL_MEMORY;var Y,X=[],re=[],we=[],b=[];function h(){if(r.preRun)for(typeof r.preRun=="function"&&(r.preRun=[r.preRun]);r.preRun.length;)E(r.preRun.shift());te(X)}function L(){te(re)}function A(){te(we)}function P(){if(r.postRun)for(typeof r.postRun=="function"&&(r.postRun=[r.postRun]);r.postRun.length;)W(r.postRun.shift());te(b)}function E($){X.unshift($)}function W($){b.unshift($)}re.push({func:function(){lt()}});var D=0,G=null;function M($){D++,r.monitorRunDependencies&&r.monitorRunDependencies(D)}function K($){if(D--,r.monitorRunDependencies&&r.monitorRunDependencies(D),D==0&&G){var B=G;G=null,B()}}function V($){r.onAbort&&r.onAbort($),l($+=""),d=!0,$="abort("+$+"). Build with -s ASSERTIONS=1 for more info.";var B=new WebAssembly.RuntimeError($);throw v(B),B}function I($,B){return String.prototype.startsWith?$.startsWith(B):$.indexOf(B)===0}r.preloadedImages={},r.preloadedAudios={};var q="data:application/octet-stream;base64,";function J($){return I($,q)}var Z,ne="onig.wasm";function le($){try{if($==ne&&f)return new Uint8Array(f);if(x)return x($);throw"both async and sync fetching of the wasm failed"}catch(B){V(B)}}function ie(){return f||!n||typeof fetch!="function"?Promise.resolve().then(function(){return le(ne)}):fetch(ne,{credentials:"same-origin"}).then(function($){if(!$.ok)throw"failed to load wasm binary file at '"+ne+"'";return $.arrayBuffer()}).catch(function(){return le(ne)})}function he(){var $={env:ut,wasi_snapshot_preview1:ut};function B(se,de){var ge=se.exports;r.asm=ge,z((o=r.asm.memory).buffer),Y=r.asm.__indirect_function_table,K()}function ce(se){B(se.instance)}function be(se){return ie().then(function(de){return WebAssembly.instantiate(de,$)}).then(se,function(de){l("failed to asynchronously prepare wasm: "+de),V(de)})}if(M(),r.instantiateWasm)try{return r.instantiateWasm($,B)}catch(se){return l("Module.instantiateWasm callback failed with error: "+se),!1}return(f||typeof WebAssembly.instantiateStreaming!="function"||J(ne)||typeof fetch!="function"?be(ce):fetch(ne,{credentials:"same-origin"}).then(function(se){return WebAssembly.instantiateStreaming(se,$).then(ce,function(de){return l("wasm streaming compile failed: "+de),l("falling back to ArrayBuffer instantiation"),be(ce)})})).catch(v),{}}function te($){for(;$.length>0;){var B=$.shift();if(typeof B!="function"){var ce=B.func;typeof ce=="number"?B.arg===void 0?Y.get(ce)():Y.get(ce)(B.arg):ce(B.arg===void 0?null:B.arg)}else B(r)}}function fe($,B,ce){c.copyWithin($,B,B+ce)}function Q(){return c.length}function me($){try{return o.grow($-i.byteLength+65535>>>16),z(o.buffer),1}catch{}}function pe($){var B=Q(),ce=2147483648;if($>ce)return!1;for(var be=1;be<=4;be*=2){var se=B*(1+.2/be);if(se=Math.min(se,$+100663296),me(Math.min(ce,O(Math.max($,se),65536))))return!0}return!1}J(ne)||(ne=p(ne)),Z=typeof dateNow!="undefined"?dateNow:function(){return performance.now()};var _e={mappings:{},buffers:[null,[],[]],printChar:function($,B){var ce=_e.buffers[$];B===0||B===10?(($===1?u:l)(T(ce,0)),ce.length=0):ce.push(B)},varargs:void 0,get:function(){return _e.varargs+=4,j[_e.varargs-4>>2]},getStr:function($){return R($)},get64:function($,B){return $}};function Ge($,B,ce,be){for(var se=0,de=0;de<ce;de++){for(var ge=j[B+8*de>>2],Ie=j[B+(8*de+4)>>2],Oe=0;Oe<Ie;Oe++)_e.printChar($,c[ge+Oe]);se+=Ie}return j[be>>2]=se,0}function Re($){}var Ne,ut={emscripten_get_now:Z,emscripten_memcpy_big:fe,emscripten_resize_heap:pe,fd_write:Ge,setTempRet0:Re},lt=(he(),r.___wasm_call_ctors=function(){return(lt=r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)});function Qe($){function B(){Ne||(Ne=!0,r.calledRun=!0,d||(L(),A(),N(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),P()))}D>0||(h(),D>0||(r.setStatus?(r.setStatus("Running..."),setTimeout(function(){setTimeout(function(){r.setStatus("")},1),B()},1)):B()))}if(r.___errno_location=function(){return(r.___errno_location=r.asm.__errno_location).apply(null,arguments)},r._omalloc=function(){return(r._omalloc=r.asm.omalloc).apply(null,arguments)},r._ofree=function(){return(r._ofree=r.asm.ofree).apply(null,arguments)},r._getLastOnigError=function(){return(r._getLastOnigError=r.asm.getLastOnigError).apply(null,arguments)},r._createOnigScanner=function(){return(r._createOnigScanner=r.asm.createOnigScanner).apply(null,arguments)},r._freeOnigScanner=function(){return(r._freeOnigScanner=r.asm.freeOnigScanner).apply(null,arguments)},r._findNextOnigScannerMatch=function(){return(r._findNextOnigScannerMatch=r.asm.findNextOnigScannerMatch).apply(null,arguments)},r._findNextOnigScannerMatchDbg=function(){return(r._findNextOnigScannerMatchDbg=r.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},r.stackSave=function(){return(r.stackSave=r.asm.stackSave).apply(null,arguments)},r.stackRestore=function(){return(r.stackRestore=r.asm.stackRestore).apply(null,arguments)},r.stackAlloc=function(){return(r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},r.dynCall_jiji=function(){return(r.dynCall_jiji=r.asm.dynCall_jiji).apply(null,arguments)},r.UTF8ToString=R,G=function $(){Ne||Qe(),Ne||(G=$)},r.run=Qe,r.preInit)for(typeof r.preInit=="function"&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return Qe(),m.ready});k.exports=w}},t={},function k(w){var m=t[w];if(m!==void 0)return m.exports;var N=t[w]={exports:{}};return g[w].call(N.exports,N,N.exports,k),N.exports}(770);var g,t})})(We);var ot={exports:{}};(function(e,a){(function(g,t){e.exports=t()})(at,function(){return function(g){var t={};function k(w){if(t[w])return t[w].exports;var m=t[w]={i:w,l:!1,exports:{}};return g[w].call(m.exports,m,m.exports,k),m.l=!0,m.exports}return k.m=g,k.c=t,k.d=function(w,m,N){k.o(w,m)||Object.defineProperty(w,m,{enumerable:!0,get:N})},k.r=function(w){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(w,"__esModule",{value:!0})},k.t=function(w,m){if(1&m&&(w=k(w)),8&m||4&m&&typeof w=="object"&&w&&w.__esModule)return w;var N=Object.create(null);if(k.r(N),Object.defineProperty(N,"default",{enumerable:!0,value:w}),2&m&&typeof w!="string")for(var v in w)k.d(N,v,function(r){return w[r]}.bind(null,v));return N},k.n=function(w){var m=w&&w.__esModule?function(){return w.default}:function(){return w};return k.d(m,"a",m),m},k.o=function(w,m){return Object.prototype.hasOwnProperty.call(w,m)},k.p="",k(k.s=3)}([function(g,t,k){Object.defineProperty(t,"__esModule",{value:!0});var w=k(1),m=k(5),N=k(6),v=k(2),r=typeof performance=="undefined"?function(){return Date.now()}:function(){return performance.now()};t.createGrammar=function(b,h,L,A,P,E){return new s(b,h,L,A,P,E)};var y=function(b){this.scopeName=b};t.FullScopeDependency=y;var S=function(){function b(h,L){this.scopeName=h,this.include=L}return b.prototype.toKey=function(){return this.scopeName+"#"+this.include},b}();t.PartialScopeDependency=S;var x=function(){function b(){this.full=[],this.partial=[],this.visitedRule=new Set,this._seenFull=new Set,this._seenPartial=new Set}return b.prototype.add=function(h){h instanceof y?this._seenFull.has(h.scopeName)||(this._seenFull.add(h.scopeName),this.full.push(h)):this._seenPartial.has(h.toKey())||(this._seenPartial.add(h.toKey()),this.partial.push(h))},b}();function n(b,h,L,A,P){for(var E=0,W=A;E<W.length;E++){var D=W[E];if(!b.visitedRule.has(D)){b.visitedRule.add(D);var G=D.repository?w.mergeObjects({},P,D.repository):P;Array.isArray(D.patterns)&&n(b,h,L,D.patterns,G);var M=D.include;if(M)if(M==="$base"||M===h.scopeName)p(b,h,h);else if(M==="$self"||M===L.scopeName)p(b,h,L);else if(M.charAt(0)==="#")_(b,h,L,M.substring(1),G);else{var K=M.indexOf("#");if(K>=0){var V=M.substring(0,K),I=M.substring(K+1);V===h.scopeName?_(b,h,h,I,G):V===L.scopeName?_(b,h,L,I,G):b.add(new S(V,M.substring(K+1)))}else b.add(new y(M))}}}}function _(b,h,L,A,P){P===void 0&&(P=L.repository),P&&P[A]&&n(b,h,L,[P[A]],P)}function p(b,h,L){if(L.patterns&&Array.isArray(L.patterns)&&n(b,h,L,L.patterns,L.repository),L.injections){var A=[];for(var P in L.injections)A.push(L.injections[P]);n(b,h,L,A,L.repository)}}function u(b,h){if(!b)return!1;if(b===h)return!0;var L=h.length;return b.length>L&&b.substr(0,L)===h&&b[L]==="."}function l(b,h){if(h.length<b.length)return!1;var L=0;return b.every(function(A){for(var P=L;P<h.length;P++)if(u(h[P],A))return L=P+1,!0;return!1})}function f(b,h,L,A,P){for(var E=N.createMatchers(h,l),W=m.RuleFactory.getCompiledRuleId(L,A,P.repository),D=0,G=E;D<G.length;D++){var M=G[D];b.push({matcher:M.matcher,ruleId:W,grammar:P,priority:M.priority})}}t.ScopeDependencyCollector=x,t.collectSpecificDependencies=_,t.collectDependencies=p;var o=function(b,h,L,A){this.scopeName=b,this.languageId=h,this.tokenType=L,this.themeData=A};t.ScopeMetadata=o;var d=function(){function b(h,L,A){if(this._initialLanguage=h,this._themeProvider=L,this._cache=new Map,this._defaultMetaData=new o("",this._initialLanguage,0,[this._themeProvider.getDefaults()]),this._embeddedLanguages=Object.create(null),A)for(var P=Object.keys(A),E=0,W=P.length;E<W;E++){var D=P[E],G=A[D];typeof G=="number"&&G!==0?this._embeddedLanguages[D]=G:console.warn("Invalid embedded language found at scope "+D+": <<"+G+">>")}var M=Object.keys(this._embeddedLanguages).map(function(K){return b._escapeRegExpCharacters(K)});M.length===0?this._embeddedLanguagesRegex=null:(M.sort(),M.reverse(),this._embeddedLanguagesRegex=new RegExp("^(("+M.join(")|(")+"))($|\\.)",""))}return b.prototype.onDidChangeTheme=function(){this._cache=new Map,this._defaultMetaData=new o("",this._initialLanguage,0,[this._themeProvider.getDefaults()])},b.prototype.getDefaultMetadata=function(){return this._defaultMetaData},b._escapeRegExpCharacters=function(h){return h.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},b.prototype.getMetadataForScope=function(h){if(h===null)return b._NULL_SCOPE_METADATA;var L=this._cache.get(h);return L||(L=this._doGetMetadataForScope(h),this._cache.set(h,L),L)},b.prototype._doGetMetadataForScope=function(h){var L=this._scopeToLanguage(h),A=this._toStandardTokenType(h),P=this._themeProvider.themeMatch(h);return new o(h,L,A,P)},b.prototype._scopeToLanguage=function(h){if(!h||!this._embeddedLanguagesRegex)return 0;var L=h.match(this._embeddedLanguagesRegex);if(!L)return 0;var A=this._embeddedLanguages[L[1]]||0;return A||0},b.prototype._toStandardTokenType=function(h){var L=h.match(b.STANDARD_TOKEN_TYPE_REGEXP);if(!L)return 0;switch(L[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"meta.embedded":return 8}throw new Error("Unexpected match for standard token type!")},b._NULL_SCOPE_METADATA=new o("",0,0,null),b.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/,b}(),s=function(){function b(h,L,A,P,E,W){if(this._scopeMetadataProvider=new d(L,E,A),this._onigLib=W,this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=E,this._grammar=c(h,null),this._injections=null,this._tokenTypeMatchers=[],P)for(var D=0,G=Object.keys(P);D<G.length;D++)for(var M=G[D],K=0,V=N.createMatchers(M,l);K<V.length;K++){var I=V[K];this._tokenTypeMatchers.push({matcher:I.matcher,type:P[M]})}}return b.prototype.dispose=function(){for(var h=0,L=this._ruleId2desc;h<L.length;h++){var A=L[h];A&&A.dispose()}},b.prototype.createOnigScanner=function(h){return this._onigLib.createOnigScanner(h)},b.prototype.createOnigString=function(h){return this._onigLib.createOnigString(h)},b.prototype.onDidChangeTheme=function(){this._scopeMetadataProvider.onDidChangeTheme()},b.prototype.getMetadataForScope=function(h){return this._scopeMetadataProvider.getMetadataForScope(h)},b.prototype.getInjections=function(){var h=this;if(this._injections===null){this._injections=[];var L=this._grammar.injections;if(L)for(var A in L)f(this._injections,A,L[A],this,this._grammar);if(this._grammarRepository){var P=this._grammarRepository.injections(this._grammar.scopeName);P&&P.forEach(function(E){var W=h.getExternalGrammar(E);if(W){var D=W.injectionSelector;D&&f(h._injections,D,W,h,W)}})}this._injections.sort(function(E,W){return E.priority-W.priority})}return this._injections},b.prototype.registerRule=function(h){var L=++this._lastRuleId,A=h(L);return this._ruleId2desc[L]=A,A},b.prototype.getRule=function(h){return this._ruleId2desc[h]},b.prototype.getExternalGrammar=function(h,L){if(this._includedGrammars[h])return this._includedGrammars[h];if(this._grammarRepository){var A=this._grammarRepository.lookup(h);if(A)return this._includedGrammars[h]=c(A,L&&L.$base),this._includedGrammars[h]}return null},b.prototype.tokenizeLine=function(h,L){var A=this._tokenize(h,L,!1);return{tokens:A.lineTokens.getResult(A.ruleStack,A.lineLength),ruleStack:A.ruleStack}},b.prototype.tokenizeLine2=function(h,L){var A=this._tokenize(h,L,!0);return{tokens:A.lineTokens.getBinaryResult(A.ruleStack,A.lineLength),ruleStack:A.ruleStack}},b.prototype._tokenize=function(h,L,A){var P;if(this._rootId===-1&&(this._rootId=m.RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository)),L&&L!==Y.NULL)P=!1,L.reset();else{P=!0;var E=this._scopeMetadataProvider.getDefaultMetadata(),W=E.themeData[0],D=O.set(0,E.languageId,E.tokenType,W.fontStyle,W.foreground,W.background),G=this.getRule(this._rootId).getName(null,null),M=this._scopeMetadataProvider.getMetadataForScope(G),K=z.mergeMetadata(D,null,M),V=new z(null,G===null?"unknown":G,K);L=new Y(null,this._rootId,-1,-1,!1,null,V,V)}h+=`
|
|
4
|
-
`;var I=this.createOnigString(h),q=I.content.length,J=new re(A,h,this._tokenTypeMatchers),Z=R(this,I,P,0,L,J,!0);return i(I),{lineLength:q,lineTokens:J,ruleStack:Z}},b}();function i(b){typeof b.dispose=="function"&&b.dispose()}function c(b,h){return(b=w.clone(b)).repository=b.repository||{},b.repository.$self={$vscodeTextmateLocation:b.$vscodeTextmateLocation,patterns:b.patterns,name:b.scopeName},b.repository.$base=h||b.repository.$self,b}function j(b,h,L,A,P,E,W){if(E.length!==0){for(var D=h.content,G=Math.min(E.length,W.length),M=[],K=W[0].end,V=0;V<G;V++){var I=E[V];if(I!==null){var q=W[V];if(q.length!==0){if(q.start>K)break;for(;M.length>0&&M[M.length-1].endPos<=q.start;)P.produceFromScopes(M[M.length-1].scopes,M[M.length-1].endPos),M.pop();if(M.length>0?P.produceFromScopes(M[M.length-1].scopes,q.start):P.produce(A,q.start),I.retokenizeCapturedWithRuleId){var J=I.getName(D,W),Z=A.contentNameScopesList.push(b,J),ne=I.getContentName(D,W),le=Z.push(b,ne),ie=A.push(I.retokenizeCapturedWithRuleId,q.start,-1,!1,null,Z,le),he=b.createOnigString(D.substring(0,q.end));R(b,he,L&&q.start===0,q.start,ie,P,!1),i(he)}else{var te=I.getName(D,W);if(te!==null){var fe=(M.length>0?M[M.length-1].scopes:A.contentNameScopesList).push(b,te);M.push(new X(fe,q.end))}}}}}for(;M.length>0;)P.produceFromScopes(M[M.length-1].scopes,M[M.length-1].endPos),M.pop()}}function C(b){for(var h=[],L=0,A=b.rules.length;L<A;L++)h.push(" - "+b.rules[L]+": "+b.debugRegExps[L]);return h.join(`
|
|
5
|
-
`)}function T(b,h,L,A,P,E){var W=function(V,I,q,J,Z,ne){var le=Z.getRule(V),ie=le.compile(V,Z.endRule,q,J===ne),he=0;v.DebugFlags.InDebugMode&&(he=r());var te=ie.scanner.findNextMatchSync(I,J);if(v.DebugFlags.InDebugMode){var fe=r()-he;fe>5&&console.warn("Rule "+le.debugName+" ("+le.id+") matching took "+fe+" against '"+I+"'"),te&&console.log("matched rule id: "+ie.rules[te.index]+" from "+te.captureIndices[0].start+" to "+te.captureIndices[0].end)}return te?{captureIndices:te.captureIndices,matchedRuleId:ie.rules[te.index]}:null}(b,h,L,A,P,E),D=b.getInjections();if(D.length===0)return W;var G=function(V,I,q,J,Z,ne,le){for(var ie,he=Number.MAX_VALUE,te=null,fe=0,Q=ne.contentNameScopesList.generateScopes(),me=0,pe=V.length;me<pe;me++){var _e=V[me];if(_e.matcher(Q)){var Ge=I.getRule(_e.ruleId).compile(I,null,J,Z===le),Re=Ge.scanner.findNextMatchSync(q,Z);if(v.DebugFlags.InDebugMode&&(console.log(" scanning for injections"),console.log(C(Ge))),Re){var Ne=Re.captureIndices[0].start;if(!(Ne>=he)&&(he=Ne,te=Re.captureIndices,ie=Ge.rules[Re.index],fe=_e.priority,he===Z))break}}}return te?{priorityMatch:fe===-1,captureIndices:te,matchedRuleId:ie}:null}(D,b,h,L,A,P,E);if(!G)return W;if(!W)return G;var M=W.captureIndices[0].start,K=G.captureIndices[0].start;return K<M||G.priorityMatch&&K===M?G:W}function R(b,h,L,A,P,E,W){var D=h.content.length,G=!1,M=-1;if(W){var K=function(I,q,J,Z,ne,le){for(var ie=ne.beginRuleCapturedEOL?0:-1,he=[],te=ne;te;te=te.pop()){var fe=te.getRule(I);fe instanceof m.BeginWhileRule&&he.push({rule:fe,stack:te})}for(var Q=he.pop();Q;Q=he.pop()){var me=Q.rule.compileWhile(I,Q.stack.endRule,J,ie===Z),pe=me.scanner.findNextMatchSync(q,Z);if(v.DebugFlags.InDebugMode&&(console.log(" scanning for while rule"),console.log(C(me))),!pe){v.DebugFlags.InDebugMode&&console.log(" popping "+Q.rule.debugName+" - "+Q.rule.debugWhileRegExp),ne=Q.stack.pop();break}if(me.rules[pe.index]!==-2){ne=Q.stack.pop();break}pe.captureIndices&&pe.captureIndices.length&&(le.produce(Q.stack,pe.captureIndices[0].start),j(I,q,J,Q.stack,le,Q.rule.whileCaptures,pe.captureIndices),le.produce(Q.stack,pe.captureIndices[0].end),ie=pe.captureIndices[0].end,pe.captureIndices[0].end>Z&&(Z=pe.captureIndices[0].end,J=!1))}return{stack:ne,linePos:Z,anchorPosition:ie,isFirstLine:J}}(b,h,L,A,P,E);P=K.stack,A=K.linePos,L=K.isFirstLine,M=K.anchorPosition}for(;!G;)V();function V(){v.DebugFlags.InDebugMode&&(console.log(""),console.log("@@scanNext "+A+": |"+h.content.substr(A).replace(/\n$/,"\\n")+"|"));var I=T(b,h,L,A,P,M);if(!I)return v.DebugFlags.InDebugMode&&console.log(" no more matches."),E.produce(P,D),void(G=!0);var q=I.captureIndices,J=I.matchedRuleId,Z=!!(q&&q.length>0)&&q[0].end>A;if(J===-1){var ne=P.getRule(b);v.DebugFlags.InDebugMode&&console.log(" popping "+ne.debugName+" - "+ne.debugEndRegExp),E.produce(P,q[0].start),P=P.setContentNameScopesList(P.nameScopesList),j(b,h,L,P,E,ne.endCaptures,q),E.produce(P,q[0].end);var le=P;if(P=P.pop(),M=le.getAnchorPos(),!Z&&le.getEnterPos()===A)return v.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),P=le,E.produce(P,D),void(G=!0)}else{var ie=b.getRule(J);E.produce(P,q[0].start);var he=P,te=ie.getName(h.content,q),fe=P.contentNameScopesList.push(b,te);if(P=P.push(J,A,M,q[0].end===D,null,fe,fe),ie instanceof m.BeginEndRule){var Q=ie;v.DebugFlags.InDebugMode&&console.log(" pushing "+Q.debugName+" - "+Q.debugBeginRegExp),j(b,h,L,P,E,Q.beginCaptures,q),E.produce(P,q[0].end),M=q[0].end;var me=Q.getContentName(h.content,q),pe=fe.push(b,me);if(P=P.setContentNameScopesList(pe),Q.endHasBackReferences&&(P=P.setEndRule(Q.getEndWithResolvedBackReferences(h.content,q))),!Z&&he.hasSameRuleAs(P))return v.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),P=P.pop(),E.produce(P,D),void(G=!0)}else if(ie instanceof m.BeginWhileRule){if(Q=ie,v.DebugFlags.InDebugMode&&console.log(" pushing "+Q.debugName),j(b,h,L,P,E,Q.beginCaptures,q),E.produce(P,q[0].end),M=q[0].end,me=Q.getContentName(h.content,q),pe=fe.push(b,me),P=P.setContentNameScopesList(pe),Q.whileHasBackReferences&&(P=P.setEndRule(Q.getWhileWithResolvedBackReferences(h.content,q))),!Z&&he.hasSameRuleAs(P))return v.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),P=P.pop(),E.produce(P,D),void(G=!0)}else{var _e=ie;if(v.DebugFlags.InDebugMode&&console.log(" matched "+_e.debugName+" - "+_e.debugMatchRegExp),j(b,h,L,P,E,_e.captures,q),E.produce(P,q[0].end),P=P.pop(),!Z)return v.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),P=P.safePop(),E.produce(P,D),void(G=!0)}}q[0].end>A&&(A=q[0].end,L=!1)}return P}t.Grammar=s;var O=function(){function b(){}return b.toBinaryStr=function(h){for(var L=h.toString(2);L.length<32;)L="0"+L;return L},b.printMetadata=function(h){var L=b.getLanguageId(h),A=b.getTokenType(h),P=b.getFontStyle(h),E=b.getForeground(h),W=b.getBackground(h);console.log({languageId:L,tokenType:A,fontStyle:P,foreground:E,background:W})},b.getLanguageId=function(h){return(255&h)>>>0},b.getTokenType=function(h){return(1792&h)>>>8},b.getFontStyle=function(h){return(14336&h)>>>11},b.getForeground=function(h){return(8372224&h)>>>14},b.getBackground=function(h){return(4286578688&h)>>>23},b.set=function(h,L,A,P,E,W){var D=b.getLanguageId(h),G=b.getTokenType(h),M=b.getFontStyle(h),K=b.getForeground(h),V=b.getBackground(h);return L!==0&&(D=L),A!==0&&(G=A===8?0:A),P!==-1&&(M=P),E!==0&&(K=E),W!==0&&(V=W),(D<<0|G<<8|M<<11|K<<14|V<<23)>>>0},b}();t.StackElementMetadata=O;var z=function(){function b(h,L,A){this.parent=h,this.scope=L,this.metadata=A}return b._equals=function(h,L){for(;;){if(h===L||!h&&!L)return!0;if(!h||!L||h.scope!==L.scope||h.metadata!==L.metadata)return!1;h=h.parent,L=L.parent}},b.prototype.equals=function(h){return b._equals(this,h)},b._matchesScope=function(h,L,A){return L===h||h.substring(0,A.length)===A},b._matches=function(h,L){if(L===null)return!0;for(var A=L.length,P=0,E=L[P],W=E+".";h;){if(this._matchesScope(h.scope,E,W)){if(++P===A)return!0;W=(E=L[P])+"."}h=h.parent}return!1},b.mergeMetadata=function(h,L,A){if(A===null)return h;var P=-1,E=0,W=0;if(A.themeData!==null)for(var D=0,G=A.themeData.length;D<G;D++){var M=A.themeData[D];if(this._matches(L,M.parentScopes)){P=M.fontStyle,E=M.foreground,W=M.background;break}}return O.set(h,A.languageId,A.tokenType,P,E,W)},b._push=function(h,L,A){for(var P=0,E=A.length;P<E;P++){var W=A[P],D=L.getMetadataForScope(W),G=b.mergeMetadata(h.metadata,h,D);h=new b(h,W,G)}return h},b.prototype.push=function(h,L){return L===null?this:L.indexOf(" ")>=0?b._push(this,h,L.split(/ /g)):b._push(this,h,[L])},b._generateScopes=function(h){for(var L=[],A=0;h;)L[A++]=h.scope,h=h.parent;return L.reverse(),L},b.prototype.generateScopes=function(){return b._generateScopes(this)},b}();t.ScopeListElement=z;var Y=function(){function b(h,L,A,P,E,W,D,G){this.parent=h,this.depth=this.parent?this.parent.depth+1:1,this.ruleId=L,this._enterPos=A,this._anchorPos=P,this.beginRuleCapturedEOL=E,this.endRule=W,this.nameScopesList=D,this.contentNameScopesList=G}return b._structuralEquals=function(h,L){for(;;){if(h===L||!h&&!L)return!0;if(!h||!L||h.depth!==L.depth||h.ruleId!==L.ruleId||h.endRule!==L.endRule)return!1;h=h.parent,L=L.parent}},b._equals=function(h,L){return h===L||!!this._structuralEquals(h,L)&&h.contentNameScopesList.equals(L.contentNameScopesList)},b.prototype.clone=function(){return this},b.prototype.equals=function(h){return h!==null&&b._equals(this,h)},b._reset=function(h){for(;h;)h._enterPos=-1,h._anchorPos=-1,h=h.parent},b.prototype.reset=function(){b._reset(this)},b.prototype.pop=function(){return this.parent},b.prototype.safePop=function(){return this.parent?this.parent:this},b.prototype.push=function(h,L,A,P,E,W,D){return new b(this,h,L,A,P,E,W,D)},b.prototype.getEnterPos=function(){return this._enterPos},b.prototype.getAnchorPos=function(){return this._anchorPos},b.prototype.getRule=function(h){return h.getRule(this.ruleId)},b.prototype._writeString=function(h,L){return this.parent&&(L=this.parent._writeString(h,L)),h[L++]="("+this.ruleId+", TODO-"+this.nameScopesList+", TODO-"+this.contentNameScopesList+")",L},b.prototype.toString=function(){var h=[];return this._writeString(h,0),"["+h.join(",")+"]"},b.prototype.setContentNameScopesList=function(h){return this.contentNameScopesList===h?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,h)},b.prototype.setEndRule=function(h){return this.endRule===h?this:new b(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,h,this.nameScopesList,this.contentNameScopesList)},b.prototype.hasSameRuleAs=function(h){return this.ruleId===h.ruleId},b.NULL=new b(null,0,0,0,!1,null,null,null),b}();t.StackElement=Y;var X=function(b,h){this.scopes=b,this.endPos=h};t.LocalStackElement=X;var re=function(){function b(h,L,A){this._emitBinaryTokens=h,this._tokenTypeOverrides=A,v.DebugFlags.InDebugMode?this._lineText=L:this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}return b.prototype.produce=function(h,L){this.produceFromScopes(h.contentNameScopesList,L)},b.prototype.produceFromScopes=function(h,L){if(!(this._lastTokenEndIndex>=L)){if(this._emitBinaryTokens){for(var A=h.metadata,P=0,E=this._tokenTypeOverrides;P<E.length;P++){var W=E[P];W.matcher(h.generateScopes())&&(A=O.set(A,0,we(W.type),-1,0,0))}return this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===A||(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(A)),void(this._lastTokenEndIndex=L)}var D=h.generateScopes();if(v.DebugFlags.InDebugMode){console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,L).replace(/\n$/,"\\n")+"|");for(var G=0;G<D.length;G++)console.log(" * "+D[G])}this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:L,scopes:D}),this._lastTokenEndIndex=L}},b.prototype.getResult=function(h,L){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===L-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(h,L),this._tokens[this._tokens.length-1].startIndex=0),this._tokens},b.prototype.getBinaryResult=function(h,L){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===L-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(h,L),this._binaryTokens[this._binaryTokens.length-2]=0);for(var A=new Uint32Array(this._binaryTokens.length),P=0,E=this._binaryTokens.length;P<E;P++)A[P]=this._binaryTokens[P];return A},b}();function we(b){switch(b){case 4:return 4;case 2:return 2;case 1:return 1;case 0:default:return 8}}},function(g,t,k){function w(v){return Array.isArray(v)?function(r){for(var y=[],S=0,x=r.length;S<x;S++)y[S]=w(r[S]);return y}(v):typeof v=="object"?function(r){var y={};for(var S in r)y[S]=w(r[S]);return y}(v):v}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=function(v){return w(v)},t.mergeObjects=function(v){for(var r=[],y=1;y<arguments.length;y++)r[y-1]=arguments[y];return r.forEach(function(S){for(var x in S)v[x]=S[x]}),v},t.basename=function v(r){var y=~r.lastIndexOf("/")||~r.lastIndexOf("\\");return y===0?r:~y==r.length-1?v(r.substring(0,r.length-1)):r.substr(1+~y)};var m=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/,N=function(){function v(){}return v.hasCaptures=function(r){return r!==null&&m.test(r)},v.replaceCaptures=function(r,y,S){return r.replace(m,function(x,n,_,p){var u=S[parseInt(n||_,10)];if(!u)return x;for(var l=y.substring(u.start,u.end);l[0]===".";)l=l.substring(1);switch(p){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}})},v}();t.RegexSource=N},function(g,t,k){(function(w){Object.defineProperty(t,"__esModule",{value:!0}),t.DebugFlags={InDebugMode:w!==void 0&&!!w.env.VSCODE_TEXTMATE_DEBUG}}).call(this,k(7))},function(g,t,k){var w=this&&this.__awaiter||function(x,n,_,p){return new(_||(_=Promise))(function(u,l){function f(s){try{d(p.next(s))}catch(i){l(i)}}function o(s){try{d(p.throw(s))}catch(i){l(i)}}function d(s){var i;s.done?u(s.value):(i=s.value,i instanceof _?i:new _(function(c){c(i)})).then(f,o)}d((p=p.apply(x,n||[])).next())})},m=this&&this.__generator||function(x,n){var _,p,u,l,f={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(d){return function(s){return function(i){if(_)throw new TypeError("Generator is already executing.");for(;f;)try{if(_=1,p&&(u=2&i[0]?p.return:i[0]?p.throw||((u=p.return)&&u.call(p),0):p.next)&&!(u=u.call(p,i[1])).done)return u;switch(p=0,u&&(i=[2&i[0],u.value]),i[0]){case 0:case 1:u=i;break;case 4:return f.label++,{value:i[1],done:!1};case 5:f.label++,p=i[1],i=[0];continue;case 7:i=f.ops.pop(),f.trys.pop();continue;default:if(u=f.trys,!((u=u.length>0&&u[u.length-1])||i[0]!==6&&i[0]!==2)){f=0;continue}if(i[0]===3&&(!u||i[1]>u[0]&&i[1]<u[3])){f.label=i[1];break}if(i[0]===6&&f.label<u[1]){f.label=u[1],u=i;break}if(u&&f.label<u[2]){f.label=u[2],f.ops.push(i);break}u[2]&&f.ops.pop(),f.trys.pop();continue}i=n.call(x,f)}catch(c){i=[6,c],p=0}finally{_=u=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([d,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var N=k(4),v=k(8),r=k(11),y=k(0),S=function(){function x(n){this._options=n,this._syncRegistry=new N.SyncRegistry(r.Theme.createFromRawTheme(n.theme,n.colorMap),n.onigLib),this._ensureGrammarCache=new Map}return x.prototype.dispose=function(){this._syncRegistry.dispose()},x.prototype.setTheme=function(n,_){this._syncRegistry.setTheme(r.Theme.createFromRawTheme(n,_))},x.prototype.getColorMap=function(){return this._syncRegistry.getColorMap()},x.prototype.loadGrammarWithEmbeddedLanguages=function(n,_,p){return this.loadGrammarWithConfiguration(n,_,{embeddedLanguages:p})},x.prototype.loadGrammarWithConfiguration=function(n,_,p){return this._loadGrammar(n,_,p.embeddedLanguages,p.tokenTypes)},x.prototype.loadGrammar=function(n){return this._loadGrammar(n,0,null,null)},x.prototype._doLoadSingleGrammar=function(n){return w(this,void 0,void 0,function(){var _,p;return m(this,function(u){switch(u.label){case 0:return[4,this._options.loadGrammar(n)];case 1:return(_=u.sent())&&(p=typeof this._options.getInjections=="function"?this._options.getInjections(n):void 0,this._syncRegistry.addGrammar(_,p)),[2]}})})},x.prototype._loadSingleGrammar=function(n){return w(this,void 0,void 0,function(){return m(this,function(_){return this._ensureGrammarCache.has(n)||this._ensureGrammarCache.set(n,this._doLoadSingleGrammar(n)),[2,this._ensureGrammarCache.get(n)]})})},x.prototype._collectDependenciesForDep=function(n,_,p){var u=this._syncRegistry.lookup(p.scopeName);if(u){p instanceof y.FullScopeDependency?y.collectDependencies(_,this._syncRegistry.lookup(n),u):y.collectSpecificDependencies(_,this._syncRegistry.lookup(n),u,p.include);var l=this._syncRegistry.injections(p.scopeName);if(l)for(var f=0,o=l;f<o.length;f++){var d=o[f];_.add(new y.FullScopeDependency(d))}}else if(p.scopeName===n)throw new Error("No grammar provided for <"+n+">")},x.prototype._loadGrammar=function(n,_,p,u){return w(this,void 0,void 0,function(){var l,f,o,d,s,i,c,j,C,T,R,O,z=this;return m(this,function(Y){switch(Y.label){case 0:l=new Set,f=new Set,l.add(n),o=[new y.FullScopeDependency(n)],Y.label=1;case 1:return o.length>0?(d=o,o=[],[4,Promise.all(d.map(function(X){return z._loadSingleGrammar(X.scopeName)}))]):[3,3];case 2:for(Y.sent(),s=new y.ScopeDependencyCollector,i=0,c=d;i<c.length;i++)O=c[i],this._collectDependenciesForDep(n,s,O);for(j=0,C=s.full;j<C.length;j++)O=C[j],l.has(O.scopeName)||(l.add(O.scopeName),o.push(O));for(T=0,R=s.partial;T<R.length;T++)O=R[T],l.has(O.scopeName)||f.has(O.toKey())||(f.add(O.toKey()),o.push(O));return[3,1];case 3:return[2,this.grammarForScopeName(n,_,p,u)]}})})},x.prototype.addGrammar=function(n,_,p,u){return _===void 0&&(_=[]),p===void 0&&(p=0),u===void 0&&(u=null),w(this,void 0,void 0,function(){return m(this,function(l){switch(l.label){case 0:return this._syncRegistry.addGrammar(n,_),[4,this.grammarForScopeName(n.scopeName,p,u)];case 1:return[2,l.sent()]}})})},x.prototype.grammarForScopeName=function(n,_,p,u){return _===void 0&&(_=0),p===void 0&&(p=null),u===void 0&&(u=null),this._syncRegistry.grammarForScopeName(n,_,p,u)},x}();t.Registry=S,t.INITIAL=y.StackElement.NULL,t.parseRawGrammar=v.parseRawGrammar},function(g,t,k){var w=this&&this.__awaiter||function(r,y,S,x){return new(S||(S=Promise))(function(n,_){function p(f){try{l(x.next(f))}catch(o){_(o)}}function u(f){try{l(x.throw(f))}catch(o){_(o)}}function l(f){var o;f.done?n(f.value):(o=f.value,o instanceof S?o:new S(function(d){d(o)})).then(p,u)}l((x=x.apply(r,y||[])).next())})},m=this&&this.__generator||function(r,y){var S,x,n,_,p={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return _={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function u(l){return function(f){return function(o){if(S)throw new TypeError("Generator is already executing.");for(;p;)try{if(S=1,x&&(n=2&o[0]?x.return:o[0]?x.throw||((n=x.return)&&n.call(x),0):x.next)&&!(n=n.call(x,o[1])).done)return n;switch(x=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return p.label++,{value:o[1],done:!1};case 5:p.label++,x=o[1],o=[0];continue;case 7:o=p.ops.pop(),p.trys.pop();continue;default:if(n=p.trys,!((n=n.length>0&&n[n.length-1])||o[0]!==6&&o[0]!==2)){p=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){p.label=o[1];break}if(o[0]===6&&p.label<n[1]){p.label=n[1],n=o;break}if(n&&p.label<n[2]){p.label=n[2],p.ops.push(o);break}n[2]&&p.ops.pop(),p.trys.pop();continue}o=y.call(r,p)}catch(d){o=[6,d],x=0}finally{S=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([l,f])}}};Object.defineProperty(t,"__esModule",{value:!0});var N=k(0),v=function(){function r(y,S){this._theme=y,this._grammars={},this._rawGrammars={},this._injectionGrammars={},this._onigLibPromise=S}return r.prototype.dispose=function(){for(var y in this._grammars)this._grammars.hasOwnProperty(y)&&this._grammars[y].dispose()},r.prototype.setTheme=function(y){var S=this;this._theme=y,Object.keys(this._grammars).forEach(function(x){S._grammars[x].onDidChangeTheme()})},r.prototype.getColorMap=function(){return this._theme.getColorMap()},r.prototype.addGrammar=function(y,S){this._rawGrammars[y.scopeName]=y,S&&(this._injectionGrammars[y.scopeName]=S)},r.prototype.lookup=function(y){return this._rawGrammars[y]},r.prototype.injections=function(y){return this._injectionGrammars[y]},r.prototype.getDefaults=function(){return this._theme.getDefaults()},r.prototype.themeMatch=function(y){return this._theme.match(y)},r.prototype.grammarForScopeName=function(y,S,x,n){return w(this,void 0,void 0,function(){var _,p,u,l,f;return m(this,function(o){switch(o.label){case 0:return this._grammars[y]?[3,2]:(_=this._rawGrammars[y])?(p=this._grammars,u=y,l=N.createGrammar,f=[_,S,x,n,this],[4,this._onigLibPromise]):[2,null];case 1:p[u]=l.apply(void 0,f.concat([o.sent()])),o.label=2;case 2:return[2,this._grammars[y]]}})})},r}();t.SyncRegistry=v},function(g,t,k){var w,m=this&&this.__extends||(w=function(d,s){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var j in c)c.hasOwnProperty(j)&&(i[j]=c[j])})(d,s)},function(d,s){function i(){this.constructor=d}w(d,s),d.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var N=k(1),v=/\\(\d+)/,r=/\\(\d+)/g,y=function(){function d(s,i,c){this.debugRegExps=i,this.rules=c,this.scanner=s.createOnigScanner(i)}return d.prototype.dispose=function(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()},d}();t.CompiledRule=y;var S=function(){function d(s,i,c,j){this.$location=s,this.id=i,this._name=c||null,this._nameIsCapturing=N.RegexSource.hasCaptures(this._name),this._contentName=j||null,this._contentNameIsCapturing=N.RegexSource.hasCaptures(this._contentName)}return Object.defineProperty(d.prototype,"debugName",{get:function(){var s=this.$location?N.basename(this.$location.filename)+":"+this.$location.line:"unknown";return this.constructor.name+"#"+this.id+" @ "+s},enumerable:!0,configurable:!0}),d.prototype.getName=function(s,i){return this._nameIsCapturing&&this._name!==null&&s!==null&&i!==null?N.RegexSource.replaceCaptures(this._name,s,i):this._name},d.prototype.getContentName=function(s,i){return this._contentNameIsCapturing&&this._contentName!==null?N.RegexSource.replaceCaptures(this._contentName,s,i):this._contentName},d}();t.Rule=S;var x=function(d){function s(i,c,j,C,T){var R=d.call(this,i,c,j,C)||this;return R.retokenizeCapturedWithRuleId=T,R}return m(s,d),s.prototype.dispose=function(){},s.prototype.collectPatternsRecursive=function(i,c,j){throw new Error("Not supported!")},s.prototype.compile=function(i,c,j,C){throw new Error("Not supported!")},s}(S);t.CaptureRule=x;var n=function(){function d(s,i,c){if(c===void 0&&(c=!0),c)if(s){for(var j=s.length,C=0,T=[],R=!1,O=0;O<j;O++)if(s.charAt(O)==="\\"&&O+1<j){var z=s.charAt(O+1);z==="z"?(T.push(s.substring(C,O)),T.push("$(?!\\n)(?<!\\n)"),C=O+2):z!=="A"&&z!=="G"||(R=!0),O++}this.hasAnchor=R,C===0?this.source=s:(T.push(s.substring(C,j)),this.source=T.join(""))}else this.hasAnchor=!1,this.source=s;else this.hasAnchor=!1,this.source=s;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=i,this.hasBackReferences=v.test(this.source)}return d.prototype.clone=function(){return new d(this.source,this.ruleId,!0)},d.prototype.setSource=function(s){this.source!==s&&(this.source=s,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))},d.prototype.resolveBackReferences=function(s,i){var c=i.map(function(j){return s.substring(j.start,j.end)});return r.lastIndex=0,this.source.replace(r,function(j,C){return(c[parseInt(C,10)]||"").replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")})},d.prototype._buildAnchorCache=function(){var s,i,c,j,C=[],T=[],R=[],O=[];for(s=0,i=this.source.length;s<i;s++)c=this.source.charAt(s),C[s]=c,T[s]=c,R[s]=c,O[s]=c,c==="\\"&&s+1<i&&((j=this.source.charAt(s+1))==="A"?(C[s+1]="\uFFFF",T[s+1]="\uFFFF",R[s+1]="A",O[s+1]="A"):j==="G"?(C[s+1]="\uFFFF",T[s+1]="G",R[s+1]="\uFFFF",O[s+1]="G"):(C[s+1]=j,T[s+1]=j,R[s+1]=j,O[s+1]=j),s++);return{A0_G0:C.join(""),A0_G1:T.join(""),A1_G0:R.join(""),A1_G1:O.join("")}},d.prototype.resolveAnchors=function(s,i){return this.hasAnchor&&this._anchorCache?s?i?this._anchorCache.A1_G1:this._anchorCache.A1_G0:i?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source},d}();t.RegExpSource=n;var _=function(){function d(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}return d.prototype.dispose=function(){this._disposeCaches()},d.prototype._disposeCaches=function(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)},d.prototype.push=function(s){this._items.push(s),this._hasAnchors=this._hasAnchors||s.hasAnchor},d.prototype.unshift=function(s){this._items.unshift(s),this._hasAnchors=this._hasAnchors||s.hasAnchor},d.prototype.length=function(){return this._items.length},d.prototype.setSource=function(s,i){this._items[s].source!==i&&(this._disposeCaches(),this._items[s].setSource(i))},d.prototype.compile=function(s,i,c){if(this._hasAnchors)return i?c?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(s,i,c)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(s,i,c)),this._anchorCache.A1_G0):c?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(s,i,c)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(s,i,c)),this._anchorCache.A0_G0);if(!this._cached){var j=this._items.map(function(C){return C.source});this._cached=new y(s,j,this._items.map(function(C){return C.ruleId}))}return this._cached},d.prototype._resolveAnchors=function(s,i,c){var j=this._items.map(function(C){return C.resolveAnchors(i,c)});return new y(s,j,this._items.map(function(C){return C.ruleId}))},d}();t.RegExpSourceList=_;var p=function(d){function s(i,c,j,C,T){var R=d.call(this,i,c,j,null)||this;return R._match=new n(C,R.id),R.captures=T,R._cachedCompiledPatterns=null,R}return m(s,d),s.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},Object.defineProperty(s.prototype,"debugMatchRegExp",{get:function(){return""+this._match.source},enumerable:!0,configurable:!0}),s.prototype.collectPatternsRecursive=function(i,c,j){c.push(this._match)},s.prototype.compile=function(i,c,j,C){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _,this.collectPatternsRecursive(i,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns.compile(i,j,C)},s}(S);t.MatchRule=p;var u=function(d){function s(i,c,j,C,T){var R=d.call(this,i,c,j,C)||this;return R.patterns=T.patterns,R.hasMissingPatterns=T.hasMissingPatterns,R._cachedCompiledPatterns=null,R}return m(s,d),s.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},s.prototype.collectPatternsRecursive=function(i,c,j){var C,T;for(C=0,T=this.patterns.length;C<T;C++)i.getRule(this.patterns[C]).collectPatternsRecursive(i,c,!1)},s.prototype.compile=function(i,c,j,C){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _,this.collectPatternsRecursive(i,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns.compile(i,j,C)},s}(S);t.IncludeOnlyRule=u;var l=function(d){function s(i,c,j,C,T,R,O,z,Y,X){var re=d.call(this,i,c,j,C)||this;return re._begin=new n(T,re.id),re.beginCaptures=R,re._end=new n(O||"\uFFFF",-1),re.endHasBackReferences=re._end.hasBackReferences,re.endCaptures=z,re.applyEndPatternLast=Y||!1,re.patterns=X.patterns,re.hasMissingPatterns=X.hasMissingPatterns,re._cachedCompiledPatterns=null,re}return m(s,d),s.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)},Object.defineProperty(s.prototype,"debugBeginRegExp",{get:function(){return""+this._begin.source},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"debugEndRegExp",{get:function(){return""+this._end.source},enumerable:!0,configurable:!0}),s.prototype.getEndWithResolvedBackReferences=function(i,c){return this._end.resolveBackReferences(i,c)},s.prototype.collectPatternsRecursive=function(i,c,j){if(j){var C,T=void 0;for(T=0,C=this.patterns.length;T<C;T++)i.getRule(this.patterns[T]).collectPatternsRecursive(i,c,!1)}else c.push(this._begin)},s.prototype.compile=function(i,c,j,C){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _,this.collectPatternsRecursive(i,this._cachedCompiledPatterns,!0),this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)),this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,c):this._cachedCompiledPatterns.setSource(0,c)),this._cachedCompiledPatterns.compile(i,j,C)},s}(S);t.BeginEndRule=l;var f=function(d){function s(i,c,j,C,T,R,O,z,Y){var X=d.call(this,i,c,j,C)||this;return X._begin=new n(T,X.id),X.beginCaptures=R,X.whileCaptures=z,X._while=new n(O,-2),X.whileHasBackReferences=X._while.hasBackReferences,X.patterns=Y.patterns,X.hasMissingPatterns=Y.hasMissingPatterns,X._cachedCompiledPatterns=null,X._cachedCompiledWhilePatterns=null,X}return m(s,d),s.prototype.dispose=function(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)},Object.defineProperty(s.prototype,"debugBeginRegExp",{get:function(){return""+this._begin.source},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"debugWhileRegExp",{get:function(){return""+this._while.source},enumerable:!0,configurable:!0}),s.prototype.getWhileWithResolvedBackReferences=function(i,c){return this._while.resolveBackReferences(i,c)},s.prototype.collectPatternsRecursive=function(i,c,j){if(j){var C,T=void 0;for(T=0,C=this.patterns.length;T<C;T++)i.getRule(this.patterns[T]).collectPatternsRecursive(i,c,!1)}else c.push(this._begin)},s.prototype.compile=function(i,c,j,C){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new _,this.collectPatternsRecursive(i,this._cachedCompiledPatterns,!0)),this._cachedCompiledPatterns.compile(i,j,C)},s.prototype.compileWhile=function(i,c,j,C){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new _,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,c||"\uFFFF"),this._cachedCompiledWhilePatterns.compile(i,j,C)},s}(S);t.BeginWhileRule=f;var o=function(){function d(){}return d.createCaptureRule=function(s,i,c,j,C){return s.registerRule(function(T){return new x(i,T,c,j,C)})},d.getCompiledRuleId=function(s,i,c){return s.id||i.registerRule(function(j){if(s.id=j,s.match)return new p(s.$vscodeTextmateLocation,s.id,s.name,s.match,d._compileCaptures(s.captures,i,c));if(s.begin===void 0){s.repository&&(c=N.mergeObjects({},c,s.repository));var C=s.patterns;return C===void 0&&s.include&&(C=[{include:s.include}]),new u(s.$vscodeTextmateLocation,s.id,s.name,s.contentName,d._compilePatterns(C,i,c))}return s.while?new f(s.$vscodeTextmateLocation,s.id,s.name,s.contentName,s.begin,d._compileCaptures(s.beginCaptures||s.captures,i,c),s.while,d._compileCaptures(s.whileCaptures||s.captures,i,c),d._compilePatterns(s.patterns,i,c)):new l(s.$vscodeTextmateLocation,s.id,s.name,s.contentName,s.begin,d._compileCaptures(s.beginCaptures||s.captures,i,c),s.end,d._compileCaptures(s.endCaptures||s.captures,i,c),s.applyEndPatternLast,d._compilePatterns(s.patterns,i,c))}),s.id},d._compileCaptures=function(s,i,c){var j=[];if(s){var C=0;for(var T in s)T!=="$vscodeTextmateLocation"&&(O=parseInt(T,10))>C&&(C=O);for(var R=0;R<=C;R++)j[R]=null;for(var T in s)if(T!=="$vscodeTextmateLocation"){var O=parseInt(T,10),z=0;s[T].patterns&&(z=d.getCompiledRuleId(s[T],i,c)),j[O]=d.createCaptureRule(i,s[T].$vscodeTextmateLocation,s[T].name,s[T].contentName,z)}}return j},d._compilePatterns=function(s,i,c){var j=[];if(s)for(var C=0,T=s.length;C<T;C++){var R=s[C],O=-1;if(R.include)if(R.include.charAt(0)==="#"){var z=c[R.include.substr(1)];z&&(O=d.getCompiledRuleId(z,i,c))}else if(R.include==="$base"||R.include==="$self")O=d.getCompiledRuleId(c[R.include],i,c);else{var Y=null,X=null,re=R.include.indexOf("#");re>=0?(Y=R.include.substring(0,re),X=R.include.substring(re+1)):Y=R.include;var we=i.getExternalGrammar(Y,c);if(we)if(X){var b=we.repository[X];b&&(O=d.getCompiledRuleId(b,i,we.repository))}else O=d.getCompiledRuleId(we.repository.$self,i,we.repository)}else O=d.getCompiledRuleId(R,i,c);if(O!==-1){var h=i.getRule(O),L=!1;if((h instanceof u||h instanceof l||h instanceof f)&&h.hasMissingPatterns&&h.patterns.length===0&&(L=!0),L)continue;j.push(O)}}return{patterns:j,hasMissingPatterns:(s?s.length:0)!==j.length}},d}();t.RuleFactory=o},function(g,t,k){function w(m){return!!m&&!!m.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=function(m,N){for(var v,r,y,S=[],x=(y=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(v=m),{next:function(){if(!y)return null;var f=y[0];return y=r.exec(v),f}}),n=x.next();n!==null;){var _=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":_=1;break;case"L":_=-1;break;default:console.log("Unknown priority "+n+" in scope selector")}n=x.next()}var p=l();if(S.push({matcher:p,priority:_}),n!==",")break;n=x.next()}return S;function u(){if(n==="-"){n=x.next();var f=u();return function(s){return!!f&&!f(s)}}if(n==="("){n=x.next();var o=function(){for(var s=[],i=l();i&&(s.push(i),n==="|"||n===",");){do n=x.next();while(n==="|"||n===",");i=l()}return function(c){return s.some(function(j){return j(c)})}}();return n===")"&&(n=x.next()),o}if(w(n)){var d=[];do d.push(n),n=x.next();while(w(n));return function(s){return N(d,s)}}return null}function l(){for(var f=[],o=u();o;)f.push(o),o=u();return function(d){return f.every(function(s){return s(d)})}}}},function(g,t){var k,w,m=g.exports={};function N(){throw new Error("setTimeout has not been defined")}function v(){throw new Error("clearTimeout has not been defined")}function r(f){if(k===setTimeout)return setTimeout(f,0);if((k===N||!k)&&setTimeout)return k=setTimeout,setTimeout(f,0);try{return k(f,0)}catch{try{return k.call(null,f,0)}catch{return k.call(this,f,0)}}}(function(){try{k=typeof setTimeout=="function"?setTimeout:N}catch{k=N}try{w=typeof clearTimeout=="function"?clearTimeout:v}catch{w=v}})();var y,S=[],x=!1,n=-1;function _(){x&&y&&(x=!1,y.length?S=y.concat(S):n=-1,S.length&&p())}function p(){if(!x){var f=r(_);x=!0;for(var o=S.length;o;){for(y=S,S=[];++n<o;)y&&y[n].run();n=-1,o=S.length}y=null,x=!1,function(d){if(w===clearTimeout)return clearTimeout(d);if((w===v||!w)&&clearTimeout)return w=clearTimeout,clearTimeout(d);try{w(d)}catch{try{return w.call(null,d)}catch{return w.call(this,d)}}}(f)}}function u(f,o){this.fun=f,this.array=o}function l(){}m.nextTick=function(f){var o=new Array(arguments.length-1);if(arguments.length>1)for(var d=1;d<arguments.length;d++)o[d-1]=arguments[d];S.push(new u(f,o)),S.length!==1||x||r(p)},u.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=l,m.addListener=l,m.once=l,m.off=l,m.removeListener=l,m.removeAllListeners=l,m.emit=l,m.prependListener=l,m.prependOnceListener=l,m.listeners=function(f){return[]},m.binding=function(f){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(f){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},function(g,t,k){Object.defineProperty(t,"__esModule",{value:!0});var w=k(9),m=k(2),N=k(10);t.parseRawGrammar=function(v,r){return r===void 0&&(r=null),r!==null&&/\.json$/.test(r)?function(y,S){return m.DebugFlags.InDebugMode?N.parse(y,S,!0):JSON.parse(y)}(v,r):function(y,S){return m.DebugFlags.InDebugMode?w.parseWithLocation(y,S,"$vscodeTextmateLocation"):w.parse(y)}(v,r)}},function(g,t,k){function w(m,N,v){var r=m.length,y=0,S=1,x=0;function n(I){if(v===null)y+=I;else for(;I>0;)m.charCodeAt(y)===10?(y++,S++,x=0):(y++,x++),I--}function _(I){v===null?y=I:n(I-y)}function p(){for(;y<r;){var I=m.charCodeAt(y);if(I!==32&&I!==9&&I!==13&&I!==10)break;n(1)}}function u(I){return m.substr(y,I.length)===I&&(n(I.length),!0)}function l(I){var q=m.indexOf(I,y);_(q!==-1?q+I.length:r)}function f(I){var q=m.indexOf(I,y);if(q!==-1){var J=m.substring(y,q);return _(q+I.length),J}return J=m.substr(y),_(r),J}r>0&&m.charCodeAt(0)===65279&&(y=1);var o=0,d=null,s=[],i=[],c=null;function j(I,q){s.push(o),i.push(d),o=I,d=q}function C(){if(s.length===0)return T("illegal state stack");o=s.pop(),d=i.pop()}function T(I){throw new Error("Near offset "+y+": "+I+" ~~~"+m.substr(y,50)+"~~~")}var R,O,z,Y=function(){if(c===null)return T("missing <key>");var I={};v!==null&&(I[v]={filename:N,line:S,char:x}),d[c]=I,c=null,j(1,I)},X=function(){if(c===null)return T("missing <key>");var I=[];d[c]=I,c=null,j(2,I)},re=function(){var I={};v!==null&&(I[v]={filename:N,line:S,char:x}),d.push(I),j(1,I)},we=function(){var I=[];d.push(I),j(2,I)};function b(){if(o!==1)return T("unexpected </dict>");C()}function h(){return o===1||o!==2?T("unexpected </array>"):void C()}function L(I){if(o===1){if(c===null)return T("missing <key>");d[c]=I,c=null}else o===2?d.push(I):d=I}function A(I){if(isNaN(I))return T("cannot parse float");if(o===1){if(c===null)return T("missing <key>");d[c]=I,c=null}else o===2?d.push(I):d=I}function P(I){if(isNaN(I))return T("cannot parse integer");if(o===1){if(c===null)return T("missing <key>");d[c]=I,c=null}else o===2?d.push(I):d=I}function E(I){if(o===1){if(c===null)return T("missing <key>");d[c]=I,c=null}else o===2?d.push(I):d=I}function W(I){if(o===1){if(c===null)return T("missing <key>");d[c]=I,c=null}else o===2?d.push(I):d=I}function D(I){if(o===1){if(c===null)return T("missing <key>");d[c]=I,c=null}else o===2?d.push(I):d=I}function G(I){if(I.isClosed)return"";var q=f("</");return l(">"),q.replace(/&#([0-9]+);/g,function(J,Z){return String.fromCodePoint(parseInt(Z,10))}).replace(/&#x([0-9a-f]+);/g,function(J,Z){return String.fromCodePoint(parseInt(Z,16))}).replace(/&|<|>|"|'/g,function(J){switch(J){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return J})}for(;y<r&&(p(),!(y>=r));){var M=m.charCodeAt(y);if(n(1),M!==60)return T("expected <");if(y>=r)return T("unexpected end of input");var K=m.charCodeAt(y);if(K!==63)if(K!==33){if(K===47){if(n(1),p(),u("plist")){l(">");continue}if(u("dict")){l(">"),b();continue}if(u("array")){l(">"),h();continue}return T("unexpected closed tag")}var V=(O=void 0,z=void 0,O=f(">"),z=!1,O.charCodeAt(O.length-1)===47&&(z=!0,O=O.substring(0,O.length-1)),{name:O.trim(),isClosed:z});switch(V.name){case"dict":o===1?Y():o===2?re():(d={},v!==null&&(d[v]={filename:N,line:S,char:x}),j(1,d)),V.isClosed&&b();continue;case"array":o===1?X():o===2?we():j(2,d=[]),V.isClosed&&h();continue;case"key":R=G(V),o!==1?T("unexpected <key>"):c!==null?T("too many <key>"):c=R;continue;case"string":L(G(V));continue;case"real":A(parseFloat(G(V)));continue;case"integer":P(parseInt(G(V),10));continue;case"date":E(new Date(G(V)));continue;case"data":W(G(V));continue;case"true":G(V),D(!0);continue;case"false":G(V),D(!1);continue}if(!/^plist/.test(V.name))return T("unexpected opened tag "+V.name)}else{if(n(1),u("--")){l("-->");continue}l(">")}else n(1),l("?>")}return d}Object.defineProperty(t,"__esModule",{value:!0}),t.parseWithLocation=function(m,N,v){return w(m,N,v)},t.parse=function(m){return w(m,null,null)}},function(g,t,k){function w(r,y){throw new Error("Near offset "+r.pos+": "+y+" ~~~"+r.source.substr(r.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(r,y,S){var x=new m(r),n=new N,_=0,p=null,u=[],l=[];function f(){u.push(_),l.push(p)}function o(){_=u.pop(),p=l.pop()}function d(j){w(x,j)}for(;v(x,n);){if(_===0){if(p!==null&&d("too many constructs in root"),n.type===3){p={},S&&(p.$vscodeTextmateLocation=n.toLocation(y)),f(),_=1;continue}if(n.type===2){p=[],f(),_=4;continue}d("unexpected token in root")}if(_===2){if(n.type===5){o();continue}if(n.type===7){_=3;continue}d("expected , or }")}if(_===1||_===3){if(_===1&&n.type===5){o();continue}if(n.type===1){var s=n.value;if(v(x,n)&&n.type===6||d("expected colon"),v(x,n)||d("expected value"),_=2,n.type===1){p[s]=n.value;continue}if(n.type===8){p[s]=null;continue}if(n.type===9){p[s]=!0;continue}if(n.type===10){p[s]=!1;continue}if(n.type===11){p[s]=parseFloat(n.value);continue}if(n.type===2){var i=[];p[s]=i,f(),_=4,p=i;continue}if(n.type===3){var c={};S&&(c.$vscodeTextmateLocation=n.toLocation(y)),p[s]=c,f(),_=1,p=c;continue}}d("unexpected token in dict")}if(_===5){if(n.type===4){o();continue}if(n.type===7){_=6;continue}d("expected , or ]")}if(_===4||_===6){if(_===4&&n.type===4){o();continue}if(_=5,n.type===1){p.push(n.value);continue}if(n.type===8){p.push(null);continue}if(n.type===9){p.push(!0);continue}if(n.type===10){p.push(!1);continue}if(n.type===11){p.push(parseFloat(n.value));continue}if(n.type===2){i=[],p.push(i),f(),_=4,p=i;continue}if(n.type===3){c={},S&&(c.$vscodeTextmateLocation=n.toLocation(y)),p.push(c),f(),_=1,p=c;continue}d("unexpected token in array")}d("unknown state")}return l.length!==0&&d("unclosed constructs"),p};var m=function(r){this.source=r,this.pos=0,this.len=r.length,this.line=1,this.char=0},N=function(){function r(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}return r.prototype.toLocation=function(y){return{filename:y,line:this.line,char:this.char}},r}();function v(r,y){y.value=null,y.type=0,y.offset=-1,y.len=-1,y.line=-1,y.char=-1;for(var S,x=r.source,n=r.pos,_=r.len,p=r.line,u=r.char;;){if(n>=_)return!1;if((S=x.charCodeAt(n))!==32&&S!==9&&S!==13){if(S!==10)break;n++,p++,u=0}else n++,u++}if(y.offset=n,y.line=p,y.char=u,S===34){for(y.type=1,n++,u++;;){if(n>=_)return!1;if(S=x.charCodeAt(n),n++,u++,S!==92){if(S===34)break}else n++,u++}y.value=x.substring(y.offset+1,n-1).replace(/\\u([0-9A-Fa-f]{4})/g,function(l,f){return String.fromCodePoint(parseInt(f,16))}).replace(/\\(.)/g,function(l,f){switch(f){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
6
|
-
`;case"r":return"\r";case"t":return" ";default:w(r,"invalid escape sequence")}throw new Error("unreachable")})}else if(S===91)y.type=2,n++,u++;else if(S===123)y.type=3,n++,u++;else if(S===93)y.type=4,n++,u++;else if(S===125)y.type=5,n++,u++;else if(S===58)y.type=6,n++,u++;else if(S===44)y.type=7,n++,u++;else if(S===110){if(y.type=8,n++,u++,(S=x.charCodeAt(n))!==117||(n++,u++,(S=x.charCodeAt(n))!==108)||(n++,u++,(S=x.charCodeAt(n))!==108))return!1;n++,u++}else if(S===116){if(y.type=9,n++,u++,(S=x.charCodeAt(n))!==114||(n++,u++,(S=x.charCodeAt(n))!==117)||(n++,u++,(S=x.charCodeAt(n))!==101))return!1;n++,u++}else if(S===102){if(y.type=10,n++,u++,(S=x.charCodeAt(n))!==97||(n++,u++,(S=x.charCodeAt(n))!==108)||(n++,u++,(S=x.charCodeAt(n))!==115)||(n++,u++,(S=x.charCodeAt(n))!==101))return!1;n++,u++}else for(y.type=11;;){if(n>=_)return!1;if(!((S=x.charCodeAt(n))===46||S>=48&&S<=57||S===101||S===69||S===45||S===43))break;n++,u++}return y.len=n-y.offset,y.value===null&&(y.value=x.substr(y.offset,y.len)),r.pos=n,r.line=p,r.char=u,!0}},function(g,t,k){Object.defineProperty(t,"__esModule",{value:!0});var w=function(p,u,l,f,o,d){this.scope=p,this.parentScopes=u,this.index=l,this.fontStyle=f,this.foreground=o,this.background=d};function m(p){return!!/^#[0-9a-f]{6}$/i.test(p)||!!/^#[0-9a-f]{8}$/i.test(p)||!!/^#[0-9a-f]{3}$/i.test(p)||!!/^#[0-9a-f]{4}$/i.test(p)}function N(p){if(!p)return[];if(!p.settings||!Array.isArray(p.settings))return[];for(var u=p.settings,l=[],f=0,o=0,d=u.length;o<d;o++){var s=u[o];if(s.settings){var i=void 0;typeof s.scope=="string"?i=s.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(","):i=Array.isArray(s.scope)?s.scope:[""];var c=-1;if(typeof s.settings.fontStyle=="string"){c=0;for(var j=0,C=(O=s.settings.fontStyle.split(" ")).length;j<C;j++)switch(O[j]){case"italic":c|=1;break;case"bold":c|=2;break;case"underline":c|=4}}var T=null;typeof s.settings.foreground=="string"&&m(s.settings.foreground)&&(T=s.settings.foreground);var R=null;for(typeof s.settings.background=="string"&&m(s.settings.background)&&(R=s.settings.background),j=0,C=i.length;j<C;j++){var O,z=(O=i[j].trim().split(" "))[O.length-1],Y=null;O.length>1&&(Y=O.slice(0,O.length-1)).reverse(),l[f++]=new w(z,Y,o,c,T,R)}}}return l}function v(p,u){p.sort(function(R,O){var z=S(R.scope,O.scope);return z!==0||(z=x(R.parentScopes,O.parentScopes))!==0?z:R.index-O.index});for(var l=0,f="#000000",o="#ffffff";p.length>=1&&p[0].scope==="";){var d=p.shift();d.fontStyle!==-1&&(l=d.fontStyle),d.foreground!==null&&(f=d.foreground),d.background!==null&&(o=d.background)}for(var s=new r(u),i=new n(0,null,l,s.getId(f),s.getId(o)),c=new _(new n(0,null,-1,0,0),[]),j=0,C=p.length;j<C;j++){var T=p[j];c.insert(0,T.scope,T.parentScopes,T.fontStyle,s.getId(T.foreground),s.getId(T.background))}return new y(s,i,c)}t.ParsedThemeRule=w,t.parseTheme=N;var r=function(){function p(u){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(u)){this._isFrozen=!0;for(var l=0,f=u.length;l<f;l++)this._color2id[u[l]]=l,this._id2color[l]=u[l]}else this._isFrozen=!1}return p.prototype.getId=function(u){if(u===null)return 0;u=u.toUpperCase();var l=this._color2id[u];if(l)return l;if(this._isFrozen)throw new Error("Missing color in color map - "+u);return l=++this._lastColorId,this._color2id[u]=l,this._id2color[l]=u,l},p.prototype.getColorMap=function(){return this._id2color.slice(0)},p}();t.ColorMap=r;var y=function(){function p(u,l,f){this._colorMap=u,this._root=f,this._defaults=l,this._cache={}}return p.createFromRawTheme=function(u,l){return this.createFromParsedTheme(N(u),l)},p.createFromParsedTheme=function(u,l){return v(u,l)},p.prototype.getColorMap=function(){return this._colorMap.getColorMap()},p.prototype.getDefaults=function(){return this._defaults},p.prototype.match=function(u){return this._cache.hasOwnProperty(u)||(this._cache[u]=this._root.match(u)),this._cache[u]},p}();function S(p,u){return p<u?-1:p>u?1:0}function x(p,u){if(p===null&&u===null)return 0;if(!p)return-1;if(!u)return 1;var l=p.length,f=u.length;if(l===f){for(var o=0;o<l;o++){var d=S(p[o],u[o]);if(d!==0)return d}return 0}return l-f}t.Theme=y,t.strcmp=S,t.strArrCmp=x;var n=function(){function p(u,l,f,o,d){this.scopeDepth=u,this.parentScopes=l,this.fontStyle=f,this.foreground=o,this.background=d}return p.prototype.clone=function(){return new p(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)},p.cloneArr=function(u){for(var l=[],f=0,o=u.length;f<o;f++)l[f]=u[f].clone();return l},p.prototype.acceptOverwrite=function(u,l,f,o){this.scopeDepth>u?console.log("how did this happen?"):this.scopeDepth=u,l!==-1&&(this.fontStyle=l),f!==0&&(this.foreground=f),o!==0&&(this.background=o)},p}();t.ThemeTrieElementRule=n;var _=function(){function p(u,l,f){l===void 0&&(l=[]),f===void 0&&(f={}),this._mainRule=u,this._rulesWithParentScopes=l,this._children=f}return p._sortBySpecificity=function(u){return u.length===1||u.sort(this._cmpBySpecificity),u},p._cmpBySpecificity=function(u,l){if(u.scopeDepth===l.scopeDepth){var f=u.parentScopes,o=l.parentScopes,d=f===null?0:f.length,s=o===null?0:o.length;if(d===s)for(var i=0;i<d;i++){var c=f[i].length,j=o[i].length;if(c!==j)return j-c}return s-d}return l.scopeDepth-u.scopeDepth},p.prototype.match=function(u){if(u==="")return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));var l,f,o=u.indexOf(".");return o===-1?(l=u,f=""):(l=u.substring(0,o),f=u.substring(o+1)),this._children.hasOwnProperty(l)?this._children[l].match(f):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))},p.prototype.insert=function(u,l,f,o,d,s){if(l!==""){var i,c,j,C=l.indexOf(".");C===-1?(i=l,c=""):(i=l.substring(0,C),c=l.substring(C+1)),this._children.hasOwnProperty(i)?j=this._children[i]:(j=new p(this._mainRule.clone(),n.cloneArr(this._rulesWithParentScopes)),this._children[i]=j),j.insert(u+1,c,f,o,d,s)}else this._doInsertHere(u,f,o,d,s)},p.prototype._doInsertHere=function(u,l,f,o,d){if(l!==null){for(var s=0,i=this._rulesWithParentScopes.length;s<i;s++){var c=this._rulesWithParentScopes[s];if(x(c.parentScopes,l)===0)return void c.acceptOverwrite(u,f,o,d)}f===-1&&(f=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),d===0&&(d=this._mainRule.background),this._rulesWithParentScopes.push(new n(u,l,f,o,d))}else this._mainRule.acceptOverwrite(u,f,o,d)},p}();t.ThemeTrieElement=_}])})})(ot);const it=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"text.html.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["css","javascript","less","sass","scss","stylus","typescript","tsx"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample"},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample"},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json"},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"jupyter",scopeName:"source.jupyter",path:"jupyter.tmLanguage.json",embeddedLangs:["json"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",embeddedLangs:["tex","css","html","java","javascript","typescript","lua","python","julia","ruby","xml","yaml","cpp","haskell","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",embeddedLangs:["css"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",samplePath:"marko.sample",embeddedLangs:["css","less","scss","javascript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"],embeddedLangs:["ruby","python","applescript","html","markdown"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["json","markdown","pug","haml","vue-html","sass","scss","less","stylus","postcss","css","typescript","coffee","javascript"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["\u6587\u8A00"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var De;(function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"})(De||(De={}));class ye{static toBinaryStr(a){let g=a.toString(2);for(;g.length<32;)g="0"+g;return g}static printMetadata(a){let g=ye.getLanguageId(a),t=ye.getTokenType(a),k=ye.getFontStyle(a),w=ye.getForeground(a),m=ye.getBackground(a);console.log({languageId:g,tokenType:t,fontStyle:k,foreground:w,background:m})}static getLanguageId(a){return(a&255)>>>0}static getTokenType(a){return(a&1792)>>>8}static getFontStyle(a){return(a&14336)>>>11}static getForeground(a){return(a&8372224)>>>14}static getBackground(a){return(a&4286578688)>>>23}static set(a,g,t,k,w,m){let N=ye.getLanguageId(a),v=ye.getTokenType(a),r=ye.getFontStyle(a),y=ye.getForeground(a),S=ye.getBackground(a);return g!==0&&(N=g),t!==0&&(v=t===8?0:t),k!==De.NotSet&&(r=k),w!==0&&(y=w),m!==0&&(S=m),(N<<0|v<<8|r<<11|y<<14|S<<23)>>>0}}function Lr(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function xr(e){return e.startsWith("./")?e.slice(2):e}function Sr(e){const a=e.split(/[\/\\]/g);return a[a.length-2]}function jr(...e){return e.map(Lr).map(xr).join("/")}function Cr(e,a){const g=new Map;for(const t of e){const k=a(t);g.has(k)?g.get(k).push(t):g.set(k,[t])}return g}function Nr(e,a){a===void 0&&(a=!1);var g=e.length,t=0,k="",w=0,m=16,N=0,v=0,r=0,y=0,S=0;function x(o,d){for(var s=0,i=0;s<o||!d;){var c=e.charCodeAt(t);if(c>=48&&c<=57)i=i*16+c-48;else if(c>=65&&c<=70)i=i*16+c-65+10;else if(c>=97&&c<=102)i=i*16+c-97+10;else break;t++,s++}return s<o&&(i=-1),i}function n(o){t=o,k="",w=0,m=16,S=0}function _(){var o=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&$e(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&$e(e.charCodeAt(t)))for(t++;t<e.length&&$e(e.charCodeAt(t));)t++;else return S=3,e.substring(o,t);var d=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&$e(e.charCodeAt(t))){for(t++;t<e.length&&$e(e.charCodeAt(t));)t++;d=t}else S=3;return e.substring(o,d)}function p(){for(var o="",d=t;;){if(t>=g){o+=e.substring(d,t),S=2;break}var s=e.charCodeAt(t);if(s===34){o+=e.substring(d,t),t++;break}if(s===92){if(o+=e.substring(d,t),t++,t>=g){S=2;break}var i=e.charCodeAt(t++);switch(i){case 34:o+='"';break;case 92:o+="\\";break;case 47:o+="/";break;case 98:o+="\b";break;case 102:o+="\f";break;case 110:o+=`
|
|
7
|
-
`;break;case 114:o+="\r";break;case 116:o+=" ";break;case 117:var c=x(4,!0);c>=0?o+=String.fromCharCode(c):S=4;break;default:S=5}d=t;continue}if(s>=0&&s<=31)if(Fe(s)){o+=e.substring(d,t),S=2;break}else S=6;t++}return o}function u(){if(k="",S=0,w=t,v=N,y=r,t>=g)return w=g,m=17;var o=e.charCodeAt(t);if(et(o)){do t++,k+=String.fromCharCode(o),o=e.charCodeAt(t);while(et(o));return m=15}if(Fe(o))return t++,k+=String.fromCharCode(o),o===13&&e.charCodeAt(t)===10&&(t++,k+=`
|
|
8
|
-
`),N++,r=t,m=14;switch(o){case 123:return t++,m=1;case 125:return t++,m=2;case 91:return t++,m=3;case 93:return t++,m=4;case 58:return t++,m=6;case 44:return t++,m=5;case 34:return t++,k=p(),m=10;case 47:var d=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t<g&&!Fe(e.charCodeAt(t));)t++;return k=e.substring(d,t),m=12}if(e.charCodeAt(t+1)===42){t+=2;for(var s=g-1,i=!1;t<s;){var c=e.charCodeAt(t);if(c===42&&e.charCodeAt(t+1)===47){t+=2,i=!0;break}t++,Fe(c)&&(c===13&&e.charCodeAt(t)===10&&t++,N++,r=t)}return i||(t++,S=1),k=e.substring(d,t),m=13}return k+=String.fromCharCode(o),t++,m=16;case 45:if(k+=String.fromCharCode(o),t++,t===g||!$e(e.charCodeAt(t)))return m=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return k+=_(),m=11;default:for(;t<g&&l(o);)t++,o=e.charCodeAt(t);if(w!==t){switch(k=e.substring(w,t),k){case"true":return m=8;case"false":return m=9;case"null":return m=7}return m=16}return k+=String.fromCharCode(o),t++,m=16}}function l(o){if(et(o)||Fe(o))return!1;switch(o){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function f(){var o;do o=u();while(o>=12&&o<=15);return o}return{setPosition:n,getPosition:function(){return t},scan:a?f:u,getToken:function(){return m},getTokenValue:function(){return k},getTokenOffset:function(){return w},getTokenLength:function(){return t-w},getTokenStartLine:function(){return v},getTokenStartCharacter:function(){return w-y},getTokenError:function(){return S}}}function et(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Fe(e){return e===10||e===13||e===8232||e===8233}function $e(e){return e>=48&&e<=57}var Xe;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Xe||(Xe={}));function Pr(e,a,g){a===void 0&&(a=[]),g===void 0&&(g=Xe.DEFAULT);var t=null,k=[],w=[];function m(v){Array.isArray(k)?k.push(v):t!==null&&(k[t]=v)}var N={onObjectBegin:function(){var v={};m(v),w.push(k),k=v,t=null},onObjectProperty:function(v){t=v},onObjectEnd:function(){k=w.pop()},onArrayBegin:function(){var v=[];m(v),w.push(k),k=v,t=null},onArrayEnd:function(){k=w.pop()},onLiteralValue:m,onError:function(v,r,y){a.push({error:v,offset:r,length:y})}};return Tr(e,N,g),k[0]}function Tr(e,a,g){g===void 0&&(g=Xe.DEFAULT);var t=Nr(e,!1);function k(C){return C?function(){return C(t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter())}:function(){return!0}}function w(C){return C?function(T){return C(T,t.getTokenOffset(),t.getTokenLength(),t.getTokenStartLine(),t.getTokenStartCharacter())}:function(){return!0}}var m=k(a.onObjectBegin),N=w(a.onObjectProperty),v=k(a.onObjectEnd),r=k(a.onArrayBegin),y=k(a.onArrayEnd),S=w(a.onLiteralValue),x=w(a.onSeparator),n=k(a.onComment),_=w(a.onError),p=g&&g.disallowComments,u=g&&g.allowTrailingComma;function l(){for(;;){var C=t.scan();switch(t.getTokenError()){case 4:f(14);break;case 5:f(15);break;case 3:f(13);break;case 1:p||f(11);break;case 2:f(12);break;case 6:f(16);break}switch(C){case 12:case 13:p?f(10):n();break;case 16:f(1);break;case 15:case 14:break;default:return C}}}function f(C,T,R){if(T===void 0&&(T=[]),R===void 0&&(R=[]),_(C),T.length+R.length>0)for(var O=t.getToken();O!==17;){if(T.indexOf(O)!==-1){l();break}else if(R.indexOf(O)!==-1)break;O=l()}}function o(C){var T=t.getTokenValue();return C?S(T):N(T),l(),!0}function d(){switch(t.getToken()){case 11:var C=t.getTokenValue(),T=Number(C);isNaN(T)&&(f(2),T=0),S(T);break;case 7:S(null);break;case 8:S(!0);break;case 9:S(!1);break;default:return!1}return l(),!0}function s(){return t.getToken()!==10?(f(3,[],[2,5]),!1):(o(!1),t.getToken()===6?(x(":"),l(),j()||f(4,[],[2,5])):f(5,[],[2,5]),!0)}function i(){m(),l();for(var C=!1;t.getToken()!==2&&t.getToken()!==17;){if(t.getToken()===5){if(C||f(4,[],[]),x(","),l(),t.getToken()===2&&u)break}else C&&f(6,[],[]);s()||f(4,[],[2,5]),C=!0}return v(),t.getToken()!==2?f(7,[2],[]):l(),!0}function c(){r(),l();for(var C=!1;t.getToken()!==4&&t.getToken()!==17;){if(t.getToken()===5){if(C||f(4,[],[]),x(","),l(),t.getToken()===4&&u)break}else C&&f(6,[],[]);j()||f(4,[],[4,5]),C=!0}return y(),t.getToken()!==4?f(8,[4],[]):l(),!0}function j(){switch(t.getToken()){case 3:return c();case 1:return i();case 10:return o(!0);default:return d()}}return l(),t.getToken()===17?g.allowEmptyContent?!0:(f(4,[],[]),!1):j()?(t.getToken()!==17&&f(9,[],[]),!0):(f(4,[],[]),!1)}var Ar=Pr;const Rr=typeof self!="undefined"&&typeof self.WorkerGlobalScope!="undefined",ct=Rr||typeof window!="undefined"&&typeof window.document!="undefined"&&typeof fetch!="undefined";let nt="";function Ir(e){nt=e}let tt=null;async function Or(){if(!tt){let e;if(ct)e=We.exports.loadWASM({data:await fetch(Ft("dist/onig.wasm")).then(a=>a.arrayBuffer())});else{const g=require("path").join(require.resolve("vscode-oniguruma"),"../onig.wasm"),k=require("fs").readFileSync(g).buffer;e=We.exports.loadWASM(k)}tt=e.then(()=>({createOnigScanner(a){return We.exports.createOnigScanner(a)},createOnigString(a){return We.exports.createOnigString(a)}}))}return tt}function Ft(e){if(ct)return nt||console.warn("[Shiki] no CDN provider found, use `setCDN()` to specify the CDN for loading the resources before calling `getHighlighter()`"),`${nt}${e}`;{const a=require("path");return a.isAbsolute(e)?e:a.resolve(__dirname,"..",e)}}async function $r(e){const a=Ft(e);return ct?await fetch(a).then(g=>g.text()):await require("fs").promises.readFile(a,"utf-8")}async function Wt(e){const a=[],g=Ar(await $r(e),a,{allowTrailingComma:!0});if(a.length)throw a[0];return g}async function qt(e){let a=await Wt(e);const g=Ut(a);if(g.include){const t=await qt(jr(Sr(e),g.include));t.settings&&(g.settings=t.settings.concat(g.settings)),t.bg&&!g.bg&&(g.bg=t.bg),t.colors&&(g.colors=Object.assign(Object.assign({},t.colors),g.colors)),delete g.include}return g}async function Er(e){return await Wt(e)}function Mr(e){e.settings||(e.settings=[]),!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope)&&e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function Ut(e){const a=e.type||"dark",g=Object.assign(Object.assign({name:e.name,type:a},e),Dr(e));return e.include&&(g.include=e.include),e.tokenColors&&(g.settings=e.tokenColors,delete g.tokenColors),Mr(g),g}const vt={light:"#333333",dark:"#bbbbbb"},wt={light:"#fffffe",dark:"#1e1e1e"};function Dr(e){var a,g,t,k,w,m;let N,v,r=e.settings?e.settings:e.tokenColors;const y=r?r.find(S=>!S.name&&!S.scope):void 0;return((a=y==null?void 0:y.settings)===null||a===void 0?void 0:a.foreground)&&(N=y.settings.foreground),((g=y==null?void 0:y.settings)===null||g===void 0?void 0:g.background)&&(v=y.settings.background),!N&&((k=(t=e)===null||t===void 0?void 0:t.colors)===null||k===void 0?void 0:k["editor.foreground"])&&(N=e.colors["editor.foreground"]),!v&&((m=(w=e)===null||w===void 0?void 0:w.colors)===null||m===void 0?void 0:m["editor.background"])&&(v=e.colors["editor.background"]),N||(N=e.type==="light"?vt.light:vt.dark),v||(v=e.type==="light"?wt.light:wt.dark),{fg:N,bg:v}}class Gr{constructor(a,g){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=a,this._onigLibName=g}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(a){return this.languageMap[a]}async loadGrammar(a){const g=this.scopeToLangMap[a];if(!g)return null;if(g.grammar)return g.grammar;const t=await Er(it.includes(g)?`${this.languagesPath}${g.path}`:g.path);return g.grammar=t,t}addLanguage(a){this.languageMap[a.id]=a,a.aliases&&a.aliases.forEach(g=>{this.languageMap[g]=a}),this.scopeToLangMap[a.scopeName]=a}}function Br(e,a,g,t,k){let w=g.split(/\r\n|\r|\n/),m=ot.exports.INITIAL,N=[],v=[];for(let r=0,y=w.length;r<y;r++){let S=w[r];if(S===""){N=[],v.push([]);continue}let x,n,_;k.includeExplanation&&(x=t.tokenizeLine(S,m),n=x.tokens,_=0);let p=t.tokenizeLine2(S,m),u=p.tokens.length/2;for(let l=0;l<u;l++){let f=p.tokens[2*l],o=l+1<u?p.tokens[2*l+2]:S.length;if(f===o)continue;let d=p.tokens[2*l+1],s=ye.getForeground(d),i=a[s],c=ye.getFontStyle(d),j=[];if(k.includeExplanation){let C=0;for(;f+C<o;){let T=n[_],R=S.substring(T.startIndex,T.endIndex);C+=R.length,j.push({content:R,scopes:Fr(e,T.scopes)}),_++}}N.push({content:S.substring(f,o),color:i,fontStyle:c,explanation:j})}v.push(N),N=[],m=p.ruleStack}return v}function Fr(e,a){let g=[];for(let t=0,k=a.length;t<k;t++){let w=a.slice(0,t),m=a[t];g[t]={scopeName:m,themeMatches:qr(e,m,w)}}return g}function bt(e,a){let g=e+".";return e===a||a.substring(0,g.length)===g}function Wr(e,a,g,t){if(!bt(e,g))return!1;let k=a.length-1,w=t.length-1;for(;k>=0&&w>=0;)bt(a[k],t[w])&&k--,w--;return k===-1}function qr(e,a,g){let t=[],k=0;for(let w=0,m=e.settings.length;w<m;w++){let N=e.settings[w],v;if(typeof N.scope=="string")v=N.scope.split(/,/).map(r=>r.trim());else if(Array.isArray(N.scope))v=N.scope;else continue;for(let r=0,y=v.length;r<y;r++){let x=v[r].split(/ /),n=x[x.length-1],_=x.slice(0,x.length-1);Wr(n,_,a,g)&&(t[k++]=N,r=y)}}return t}function Ur(e,a={}){var g;const t=a.bg||"#fff",k=Cr((g=a.lineOptions)!==null&&g!==void 0?g:[],m=>m.line);let w="";return w+=`<pre class="shiki" style="background-color: ${t}">`,a.langId&&(w+=`<div class="language-id">${a.langId}</div>`),w+="<code>",e.forEach((m,N)=>{var v;const r=N+1,y=(v=k.get(r))!==null&&v!==void 0?v:[];w+=`<span class="${Hr(y).join(" ")}">`,m.forEach(x=>{const n=[`color: ${x.color||a.fg}`];x.fontStyle&De.Italic&&n.push("font-style: italic"),x.fontStyle&De.Bold&&n.push("font-weight: bold"),x.fontStyle&De.Underline&&n.push("text-decoration: underline"),w+=`<span style="${n.join("; ")}">${zr(x.content)}</span>`}),w+=`</span>
|
|
9
|
-
`}),w=w.replace(/\n*$/,""),w+="</code></pre>",w}const Vr={"&":"&","<":"<",">":">",'"':""","'":"'"};function zr(e){return e.replace(/[&<>"']/g,a=>Vr[a])}function Hr(e){var a;const g=new Set(["line"]);for(const t of e)for(const k of(a=t.classes)!==null&&a!==void 0?a:[])g.add(k);return Array.from(g)}class Kr extends ot.exports.Registry{constructor(a){super(a);this._resolver=a,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={}}getTheme(a){return typeof a=="string"?this._resolvedThemes[a]:a}async loadTheme(a){return typeof a=="string"?(this._resolvedThemes[a]||(this._resolvedThemes[a]=await qt(`${this.themesPath}${a}.json`)),this._resolvedThemes[a]):(a=Ut(a),a.name&&(this._resolvedThemes[a.name]=a),a)}async loadThemes(a){return await Promise.all(a.map(g=>this.loadTheme(g)))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(a){return this._resolvedGrammars[a]}async loadLanguage(a){const g=await this.loadGrammar(a.scopeName);this._resolvedGrammars[a.id]=g,a.aliases&&a.aliases.forEach(t=>{this._resolvedGrammars[t]=g})}async loadLanguages(a){for(const g of a)this._resolver.addLanguage(g);for(const g of a)await this.loadLanguage(g)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}}function Vt(e){return typeof e=="string"?it.find(a=>{var g;return a.id===e||((g=a.aliases)===null||g===void 0?void 0:g.includes(e))}):e}function Yr(e){var a;let g=it,t=e.themes||[];return((a=e.langs)===null||a===void 0?void 0:a.length)&&(g=e.langs.map(Vt)),e.theme&&t.unshift(e.theme),t.length||(t=["nord"]),{_languages:g,_themes:t}}async function Jr(e){var a,g;const{_languages:t,_themes:k}=Yr(e),w=new Gr(Or(),"vscode-oniguruma"),m=new Kr(w);((a=e.paths)===null||a===void 0?void 0:a.themes)&&(m.themesPath=e.paths.themes),((g=e.paths)===null||g===void 0?void 0:g.languages)&&(w.languagesPath=e.paths.languages);const v=(await m.loadThemes(k))[0];let r;await m.loadLanguages(t);const y={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};function S(i,c){i.bg=y[i.bg]||i.bg,i.fg=y[i.fg]||i.fg,c.forEach((j,C)=>{c[C]=y[j]||j})}function x(i){const c=i?m.getTheme(i):v;if(!c)throw Error(`No theme registration for ${i}`);(!r||r.name!==c.name)&&(m.setTheme(c),r=c);const j=m.getColorMap();return c.name==="css-variables"&&S(c,j),{_theme:c,_colorMap:j}}function n(i){const c=m.getGrammar(i);if(!c)throw Error(`No language registration for ${i}`);return{_grammar:c}}function _(i,c="text",j,C={includeExplanation:!0}){if(Xr(c))return[...i.split(/\r\n|\r|\n/).map(Y=>[{content:Y}])];const{_grammar:T}=n(c),{_theme:R,_colorMap:O}=x(j);return Br(R,O,i,T,C)}function p(i,c="text",j){let C;typeof c=="object"?C=c:C={lang:c,theme:j};const T=_(i,C.lang,C.theme,{includeExplanation:!1}),{_theme:R}=x(C.theme);return Ur(T,{fg:R.fg,bg:R.bg,lineOptions:C==null?void 0:C.lineOptions})}async function u(i){await m.loadTheme(i)}async function l(i){const c=Vt(i);w.addLanguage(c),await m.loadLanguage(c)}function f(){return m.getLoadedThemes()}function o(){return m.getLoadedLanguages()}function d(i){const{_theme:c}=x(i);return c.bg}function s(i){const{_theme:c}=x(i);return c.fg}return{codeToThemedTokens:_,codeToHtml:p,getTheme:i=>x(i)._theme,loadTheme:u,loadLanguage:l,getBackgroundColor:d,getForegroundColor:s,getLoadedThemes:f,getLoadedLanguages:o}}function Xr(e){return!e||["plaintext","txt","text"].includes(e)}var zt={exports:{}};/*! Case - v1.6.2 - 2020-03-24
|
|
10
|
-
* Copyright (c) 2020 Nathan Bubna; Licensed MIT, GPL */(function(e){(function(){var a=function(n,_){return _=_||"",n.replace(/(^|-)/g,"$1\\u"+_).replace(/,/g,"\\u"+_)},g=a("20-26,28-2F,3A-40,5B-60,7B-7E,A0-BF,D7,F7","00"),t="a-z"+a("DF-F6,F8-FF","00"),k="A-Z"+a("C0-D6,D8-DE","00"),w="A|An|And|As|At|But|By|En|For|If|In|Of|On|Or|The|To|Vs?\\.?|Via",m=function(n,_,p,u){return n=n||g,_=_||t,p=p||k,u=u||w,{capitalize:new RegExp("(^|["+n+"])(["+_+"])","g"),pascal:new RegExp("(^|["+n+"])+(["+_+p+"])","g"),fill:new RegExp("["+n+"]+(.|$)","g"),sentence:new RegExp('(^\\s*|[\\?\\!\\.]+"?\\s+"?|,\\s+")(['+_+"])","g"),improper:new RegExp("\\b("+u+")\\b","g"),relax:new RegExp("([^"+p+"])(["+p+"]*)(["+p+"])(?=[^"+p+"]|$)","g"),upper:new RegExp("^[^"+_+"]+$"),hole:/[^\s]\s[^\s]/,apostrophe:/'/g,room:new RegExp("["+n+"]")}},N=m(),v={re:N,unicodes:a,regexps:m,types:[],up:String.prototype.toUpperCase,low:String.prototype.toLowerCase,cap:function(n){return v.up.call(n.charAt(0))+n.slice(1)},decap:function(n){return v.low.call(n.charAt(0))+n.slice(1)},deapostrophe:function(n){return n.replace(N.apostrophe,"")},fill:function(n,_,p){return _!=null&&(n=n.replace(N.fill,function(u,l){return l?_+l:""})),p&&(n=v.deapostrophe(n)),n},prep:function(n,_,p,u){if(n=n==null?"":n+"",!u&&N.upper.test(n)&&(n=v.low.call(n)),!_&&!N.hole.test(n)){var l=v.fill(n," ");N.hole.test(l)&&(n=l)}return!p&&!N.room.test(n)&&(n=n.replace(N.relax,v.relax)),n},relax:function(n,_,p,u){return _+" "+(p?p+" ":"")+u}},r={_:v,of:function(n){for(var _=0,p=v.types.length;_<p;_++)if(r[v.types[_]].apply(r,arguments)===n)return v.types[_]},flip:function(n){return n.replace(/\w/g,function(_){return(_==v.up.call(_)?v.low:v.up).call(_)})},random:function(n){return n.replace(/\w/g,function(_){return(Math.round(Math.random())?v.up:v.low).call(_)})},type:function(n,_){r[n]=_,v.types.push(n)}},y={lower:function(n,_,p){return v.fill(v.low.call(v.prep(n,_)),_,p)},snake:function(n){return r.lower(n,"_",!0)},constant:function(n){return r.upper(n,"_",!0)},camel:function(n){return v.decap(r.pascal(n))},kebab:function(n){return r.lower(n,"-",!0)},upper:function(n,_,p){return v.fill(v.up.call(v.prep(n,_,!1,!0)),_,p)},capital:function(n,_,p){return v.fill(v.prep(n).replace(N.capitalize,function(u,l,f){return l+v.up.call(f)}),_,p)},header:function(n){return r.capital(n,"-",!0)},pascal:function(n){return v.fill(v.prep(n,!1,!0).replace(N.pascal,function(_,p,u){return v.up.call(u)}),"",!0)},title:function(n){return r.capital(n).replace(N.improper,function(_,p,u,l){return u>0&&u<l.lastIndexOf(" ")?v.low.call(_):_})},sentence:function(n,_,p){return n=r.lower(n).replace(N.sentence,function(u,l,f){return l+v.up.call(f)}),_&&_.forEach(function(u){n=n.replace(new RegExp("\\b"+r.lower(u)+"\\b","g"),v.cap)}),p&&p.forEach(function(u){n=n.replace(new RegExp("(\\b"+r.lower(u)+"\\. +)(\\w)"),function(l,f,o){return f+v.low.call(o)})}),n}};y.squish=y.pascal,r.default=r;for(var S in y)r.type(S,y[S]);var x=typeof x=="function"?x:function(){};x(e.exports?e.exports=r:this.Case=r)}).call(at)})(zt);function Ve(e,a=1){return e.map(g=>`${" ".repeat(a)}${g}`)}function Zr(e){const a=e.split(`
|
|
11
|
-
`);let g=-1,t;const k=a.filter(m=>m.trim().length>0);for(const m of k){const N=/^\s*/.exec(m);N&&(g===-1||g>N[0].length)&&(g=N[0].length,t=N[0])}const w=[];for(const m of a)w.push(m.replace(t,""));return w.join(`
|
|
12
|
-
`).trim()}function Ht(e,a,g="",t=0){const k={};if(t>32)return{key:g,cache:k,target:{},proxy:()=>g};const w=()=>{const N=g+"()";return e?e(N):N},m=new Proxy(w,{get(N,v){if(v==="__autoBuildingObject")return!0;if(v==="__autoBuildingObjectGetKey")return g;if(a){const r=a(w,v);if(r)return r()}if(v==="toString"){const r=g+".toString()";return()=>e?e(r):r}if(v===Symbol.toPrimitive)return()=>e?e(g):g;if(!k[v]){const r=g?`${g}.${v.toString()}`:v.toString(),y=Ht(e,a,r,t+1);k[v]=ke({key:r},y)}return k[v].proxy},apply(N,v,r){const y=`${g}(${r.join(", ")})`;return e?e(y):y}});return{key:g,cache:k,target:w,proxy:m}}const Qr=/[\s-.:|#@$£*%]/,es=3;function ts(e){return e===void 0?"undefined":e===null?"null":typeof e=="string"?`'${e}'`:typeof e=="boolean"?e?"true":"false":Array.isArray(e)?kt(Yt(e)):typeof e=="object"?kt(Kt(e)):(e==null?void 0:e.__autoBuildingObject)?e:typeof e=="function"&&e.name?e.name:e.toString()}function kt(e){return e.map(a=>" ".repeat(a.spaces)+a.line).join(`
|
|
13
|
-
`)}function Kt(e,a=0){return Ze(a,g=>{g.push("{"),g.push(...Ze(1,t=>{for(const k in e){const w=e[k];let m=k;Qr.test(k)&&(m=`'${m}'`),Jt(t,w,`${m}: `,",")}})),g.push("}")})}function Yt(e,a=0){return Ze(a,g=>{const t=Ze(1,k=>{for(const w of e)Jt(k,w,"",",")});if(t.length===0)g.push("[]");else if(t.length<=es){const[k]=t;k.line=t.map(({line:w})=>w.substring(0,w.length-1)).join(", "),k.line=`[${k.line}]`,k.spaces--,g.push(k)}else g.push("[",...t,"]")})}function Ze(e,a){const g=[];return a(g),g.map(t=>t.spaces!=null?(t.spaces+=e,t):{spaces:e,line:t})}function Jt(e,a,g,t){let k;if(Array.isArray(a)){e.push(...Lt(Yt(a),g,t));return}else if(a&&typeof a=="object"){e.push(...Lt(Kt(a),g,t));return}else typeof a=="string"?k=a.includes("'")?`\`${a}\``:`'${a}'`:typeof a=="undefined"?k="undefined":a===null?k="null":typeof a=="boolean"?k=a?"true":"false":k=a;e.push(g+k+t)}function Lt(e,a,g){return e[0].line=a+e[0].line,e[e.length-1].line+=g,e}async function ns(e){var k,w,m;const a=(m=(w=(k=e.slots()).default)==null?void 0:w.call(k,{state:e.state}))!=null?m:[],g=Array.isArray(a)?a:[a],t=[];for(const N of g)t.push(...await rt(N));return t.join(`
|
|
14
|
-
`)}async function rt(e){var g,t,k,w,m;if(e.type===hn)return[e.children.trim()];const a=[];if(typeof e.type=="object"||typeof e.type=="string"){let y=function(_,p,u=null){var i;let l="";for(const c in p.modifiers)p.modifiers[c]&&(l+=`.${c}`);let f="";p.arg&&(f=`:${p.arg}`);const o=u?[u]:St(p.value),d=[],s=`v-${_}${f}${l}="`;o.length>1?(d.push(`${s}${o[0]}`),d.push(...o.slice(1,o.length-1)),d.push(`${o[o.length-1]}"`),v=!0):d.push(`${s}${(i=o[0])!=null?i:""}"`),N.push(d)};((g=e.type)==null?void 0:g.__asyncLoader)&&!e.type.__asyncResolved&&await e.type.__asyncLoader();const N=[];let v=!1;const r=[];if(e.dirs)for(const _ of e.dirs)if(_.dir===Nt||_.dir===pn||_.dir===dn||_.dir===fn||_.dir===gn){const p=`onUpdate:${(t=_.arg)!=null?t:"modelValue"}`,u=e.props[p];let l=null;if(u){r.push(p);const f=u.toString(),o=/\(\$event\) => (.*?) = \$event/.exec(f);o&&(l=o[1])}y("model",_,l)}else{let p;for(const u of[_.instance._.directives,_.instance._.appContext.directives]){for(const l in u)if(_.instance._.directives[l]===_.dir){p=l;break}if(p)break}p&&y(p,_)}for(const _ in e.props){if(r.includes(_))continue;const p=e.props[_];if(typeof p!="string"||((k=e.dynamicProps)==null?void 0:k.includes(_))){let u=":";_.startsWith("on")&&(u="@");const l=u==="@"?`${_[2].toLowerCase()}${_.slice(3)}`:_,f=`onUpdate:${_}`;if(u===":"&&((w=e.dynamicProps)==null?void 0:w.includes(f))){r.push(f);const s=e.props[f].toString();let i;const c=/\(\$event\) => (.*?) = \$event/.exec(s);c&&(i=c[1]);const j=`${_==="modelValue"?"model":_}Modifiers`,C=(m=e.props[j])!=null?m:{};r.push(j),y("model",{arg:_==="modelValue"?null:_,modifiers:C,value:p},i);continue}let o;if(typeof p=="string"&&p.startsWith("{{")&&p.endsWith("}}")?o=[p.substring(2,p.length-2).trim()]:o=St(p),o.length>1){v=!0;const d=[`${u}${l}="${o[0]}`];d.push(...o.slice(1,o.length-1)),d.push(`${o[o.length-1]}"`),N.push(d)}else N.push([`${u}${l}="${o[0]}"`])}else N.push([`${_}="${p}"`])}N.length>1&&(v=!0);const S=rs(e),x=[];if(typeof e.children=="string")x.push(e.children);else if(Array.isArray(e.children))for(const _ of e.children)x.push(...await rt(_));if(e.children&&typeof e.children=="object"&&!Array.isArray(e.children)){for(const _ in e.children)if(typeof e.children[_]=="function"){const p=Ht(o=>`{{ ${o} }}`,(o,d)=>{if(d==="__v_isRef")return()=>!1}),u=e.children[_](p.proxy),l=[];for(const o of u)l.push(...await rt(o));const f=Object.keys(p.cache);f.length?(x.push(`<template #${_}="{ ${f.join(", ")} }">`),x.push(...Ve(l)),x.push("</template>")):_==="default"?x.push(...l):(x.push(`<template #${_}>`),x.push(...Ve(l)),x.push("</template>"))}}const n=[`<${S}`];if(v){for(const _ of N)n.push(...Ve(_));x.length>0&&n.push(">")}else N.length===1&&(n[0]+=` ${N[0]}`),x.length>0&&(n[0]+=">");x.length>0?(a.push(...n),a.push(...Ve(x)),a.push(`</${S}>`)):n.length>1?(a.push(...n),a.push("/>")):a.push(`${n[0]} />`)}return a}function rs(e){var a,g,t,k,w;if(typeof e.type=="string")return e.type;if((a=e.type)==null?void 0:a.__asyncResolved){const m=(g=e.type)==null?void 0:g.__asyncResolved;return(t=m.name)!=null?t:xt(m.__file)}else{if((k=e.type)==null?void 0:k.name)return e.type.name;if((w=e.type)==null?void 0:w.__file)return xt(e.type.__file)}return"Anonymous"}function xt(e){const a=/\/([^/]+)\.vue$/.exec(e);return a?zt.exports.pascal(a[1]):"Anonymous"}function St(e){const a=!!(e==null?void 0:e.__autoBuildingObject),g=ts(e);return a?[g.__autoBuildingObjectGetKey]:g.replace(/\$setup\./g,"").split(`
|
|
15
|
-
`)}const ss={class:"htw-bg-gray-100 dark:htw-bg-gray-800 htw-h-full htw-overflow-hidden htw-relative"},as={key:0,class:"htw-text-red-500 htw-h-full htw-p-2 htw-overflow-auto htw-font-mono htw-text-sm"},os=["value"],is=["innerHTML"],cs={key:3,class:"htw-absolute htw-top-2 htw-right-6 htw-p-1 htw-bg-gray-100 dark:htw-bg-gray-800"},Xt=Ce({props:{variant:{type:Object,required:!0}},setup(e){const a=e,g=Ee(""),t=mn(),k=Ee(null);yn(async()=>{Ir("https://unpkg.com/shiki/"),t.value=await Jr({langs:["html","jsx"],themes:["github-light","github-dark"]})}),Me(()=>a.variant,async r=>{var y,S;k.value=null;try{if(r.source)g.value=r.source;else if((y=r.slots)==null?void 0:y.call(r).source){const x=(S=r.slots)==null?void 0:S.call(r).source()[0].children;x&&(g.value=await Zr(x))}else g.value=await ns(r)}catch(x){console.error(x),k.value=x.message}},{deep:!0,immediate:!0});const w=qe(()=>{var r;return(r=t.value)==null?void 0:r.codeToHtml(g.value,{lang:"html",theme:Sn.value?"github-dark":"github-light"})}),{copy:m,copied:N}=_n(),v=()=>m(g.value);return(r,y)=>{const S=Pt("tooltip");return H(),ee("div",ss,[k.value?(H(),ee("div",as," Error: "+je(k.value),1)):F(w)?(H(),ee(Te,{key:2},[ue(" eslint-disable vue/no-v-html "),U("div",{class:"__histoire-code htw-w-full htw-h-full htw-p-2.5 htw-overflow-auto",innerHTML:F(w)},null,8,is)],2112)):(H(),ee("textarea",{key:1,class:"__histoire-code-placeholder htw-w-full htw-h-full htw-p-2.5 htw-outline-none htw-bg-transparent htw-resize-none htw-m-0",value:g.value,readonly:""},null,8,os)),ue(" eslint-enable vue/no-v-html "),ue(" Toolbar "),k.value?ue("v-if",!0):(H(),ee("div",cs,[ze(oe(F(Pe),{icon:"cil:copy",class:"htw-w-4 htw-h-4 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer",onClick:y[0]||(y[0]=x=>v())},null,512),[[S,{content:"Copied!",triggers:[],shown:F(N),distance:12}]])]))])}}});Xt.__file="../histoire/dist/client/app/components/StorySourceCode.vue";var us=Ae(Xt,[["__scopeId","data-v-045a486c"]]);const ls=U("span",null,"Story not found",-1),hs={key:1,class:"htw-h-full"},ps={class:"htw-bg-gray-50 htw-h-full dark:htw-bg-gray-750"},ds={key:0,class:"htw-h-full htw-overflow-y-auto"},fs={key:0,class:"htw-p-2 htw-h-full"},gs={class:"htw-h-full htw-overflow-y-auto"},ms={key:0,class:"htw-p-2 htw-h-full"},ys=U("span",null,"Select a variant",-1),_s={class:"htw-flex htw-flex-col htw-h-full"},vs={class:"htw-h-10 htw-flex-none htw-border-b htw-border-gray-100 dark:htw-border-gray-750"},ws=Ue(" Controls "),bs=Ue(" Docs "),ks=Ce({setup(e){const a=kn(),g=vn(),t=jt(),k=qe(()=>{var m;return((m=a.currentStory)==null?void 0:m.variants.length)===1});Me(()=>a.currentVariant,m=>{m&&(a.currentStory.lastSelectedVariant=m)},{immediate:!0}),Me(()=>[a.currentStory,a.currentVariant],()=>{var m,N;if(!a.currentVariant){if((m=a.currentStory)==null?void 0:m.lastSelectedVariant){w(a.currentStory.lastSelectedVariant.id);return}((N=a.currentStory)==null?void 0:N.variants.length)===1&&w(a.currentStory.variants[0].id)}},{immediate:!0});function w(m){g.replace(xe(ke({},t),{query:xe(ke({},t.query),{variantId:m})}))}return(m,N)=>F(a).currentStory?(H(),ee("div",hs,[oe(He,{"save-id":"story-main",min:30,max:95,"default-split":75,class:"htw-h-full"},{first:ae(()=>{var v;return[U("div",ps,[F(a).currentStory.layout.type==="grid"?(H(),ee("div",ds,[U("div",{class:"htw-grid htw-gap-4 htw-m-4",style:Tt({gridTemplateColumns:`repeat(auto-fill, ${(v=F(a).currentStory.layout.width)!=null?v:200}px)`})},[(H(!0),ee(Te,null,Ye(F(a).currentStory.variants,(r,y)=>(H(),ve(In,{key:y,variant:r,story:F(a).currentStory},null,8,["variant","story"]))),128))],4)])):F(a).currentStory.layout.type==="single"?(H(),ee(Te,{key:1},[F(k)&&F(a).currentVariant?(H(),ee("div",fs,[oe(_t,{variant:F(a).currentVariant,story:F(a).currentStory},null,8,["variant","story"])])):(H(),ve(He,{key:1,"save-id":"story-single-main-split",min:5,max:40,"default-split":17},{first:ae(()=>[U("div",gs,[(H(!0),ee(Te,null,Ye(F(a).currentStory.variants,(r,y)=>(H(),ve(Tn,{key:y,variant:r},null,8,["variant"]))),128))])]),last:ae(()=>[F(a).currentVariant?(H(),ee("div",ms,[oe(_t,{variant:F(a).currentVariant,story:F(a).currentStory},null,8,["variant","story"])])):ue("v-if",!0)]),_:1}))],2112)):ue("v-if",!0)])]}),last:ae(()=>[F(a).currentVariant?(H(),ve(He,{key:1,"save-id":"story-sidepane",orientation:"portrait",class:"htw-h-full"},{first:ae(()=>[U("div",_s,[U("nav",vs,[oe(yt,{to:xe(ke({},m.$route),{query:xe(ke({},m.$route.query),{tab:""})}),matched:!m.$route.query.tab},{default:ae(()=>[ws]),_:1},8,["to","matched"]),oe(yt,{to:xe(ke({},m.$route),{query:xe(ke({},m.$route.query),{tab:"docs"})}),matched:m.$route.query.tab==="docs"},{default:ae(()=>[bs]),_:1},8,["to","matched"])]),(H(),ve(wn(m.$route.query.tab==="docs"?Bt:Gt),{story:F(a).currentStory,variant:F(a).currentVariant,class:"htw-h-full htw-overflow-auto"},null,8,["story","variant"]))])]),last:ae(()=>[oe(us,{variant:F(a).currentVariant,class:"htw-h-full"},null,8,["variant"])]),_:1})):(H(),ve(Je,{key:0},{default:ae(()=>[ys]),_:1}))]),_:1})])):(H(),ve(Je,{key:0},{default:ae(()=>[ls]),_:1}))}});ks.__file="../histoire/dist/client/app/components/StoryView.vue";export{ks as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var mn=Object.defineProperty,gn=Object.defineProperties;var _n=Object.getOwnPropertyDescriptors;var Gt=Object.getOwnPropertySymbols;var wn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable;var Yt=(t,e,n)=>e in t?mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rt=(t,e)=>{for(var n in e||(e={}))wn.call(e,n)&&Yt(t,n,e[n]);if(Gt)for(var n of Gt(e))bn.call(e,n)&&Yt(t,n,e[n]);return t},ot=(t,e)=>gn(t,_n(e));import{E as ve,M as yn,N as vn,O as Jt,d as Se,P as Ce,f as Sn,Q as Cn,R as xn}from"./vendor.70a554f6.js";const En="modulepreload",Xt={},In="/",xe=function(e,n){return!n||n.length===0?e():Promise.all(n.map(s=>{if(s=`${In}${s}`,s in Xt)return;Xt[s]=!0;const r=s.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${o}`))return;const l=document.createElement("link");if(l.rel=r?"stylesheet":En,r||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),r)return new Promise((i,c)=>{l.addEventListener("load",i),l.addEventListener("error",c)})})).then(()=>e())},Pn=ve(()=>xe(()=>import("./HstCheckbox.story.9f622545.js"),["assets/HstCheckbox.story.9f622545.js","assets/vendor.70a554f6.js"])),On=ve(()=>xe(()=>import("./HstInput.story.945401ce.js"),["assets/HstInput.story.945401ce.js","assets/vendor.70a554f6.js"]));let Yr=[{id:"src-components-checkbox-hstcheckbox-story-vue",path:["HstCheckbox"],story:{id:"src-components-checkbox-hstcheckbox-story-vue",title:"HstCheckbox",layout:{type:"single"},icon:null,iconColor:null,variants:[{id:"src-components-checkbox-hstcheckbox-story-vue-0",title:"playground",icon:null,iconColor:null}]},framework:"vue3",index:0,component:Pn},{id:"src-components-input-hstinput-story-vue",path:["HstInput"],story:{id:"src-components-input-hstinput-story-vue",title:"HstInput",layout:{type:"single"},icon:null,iconColor:null,variants:[{id:"src-components-input-hstinput-story-vue-0",title:"playground",icon:null,iconColor:null},{id:"src-components-input-hstinput-story-vue-1",title:"no-label",icon:null,iconColor:null}]},framework:"vue3",index:1,component:On}],Jr=[{title:"HstCheckbox",index:0},{title:"HstInput",index:1}];const Tn=yn({valueDark:"htw-dark"}),Xr=vn(Tn),Rn={outDir:"/home/akryum/Projects/histoire/packages/histoire-controls/histoire-dist",storyMatch:["**/*.story.vue"],storyIgnored:["**/node_modules/**"],tree:{file:"title",order:"asc"},theme:{title:"Histoire",colors:{primary:{"50":"#ecfdf5","100":"#d1fae5","200":"#a7f3d0","300":"#6ee7b7","400":"#34d399","500":"#10b981","600":"#059669","700":"#047857","800":"#065f46","900":"#064e3b"},gray:{"50":"#fafafa","100":"#f4f4f5","200":"#e4e4e7","300":"#d4d4d8","400":"#a1a1aa","500":"#71717a","600":"#52525b","700":"#3f3f46","750":"#323238","800":"#27272a","850":"#1f1f21","900":"#18181b","950":"#101012"}}},responsivePresets:[{label:"Mobile (Small)",width:320},{label:"Mobile (Medium)",width:375},{label:"Mobile (Large)",width:425},{label:"Tablet",width:768},{label:"Laptop (Small)",width:1024},{label:"Laptop (Large)",width:1440},{label:"Desktop",width:1920},{label:"4K",width:3840}],backgroundPresets:[{label:"Transparent",color:"transparent"},{label:"White",color:"#fff"},{label:"Light gray",color:"#aaa"},{label:"Dark gray",color:"#333"},{label:"Black",color:"#000"}],sandboxDarkClass:"dark",setupFile:"/src/histoire-setup.ts"},Mn={},Zr=Rn,Qr=Mn;function to(t,e){const n=ot(rt({},t),{component:Jt(t.component),story:ot(rt({},t.story),{title:t.story.title,file:Jt(t),variants:t.story.variants.map(s=>$n(s))})});if(e){for(const s in n.story.variants){const r=n.story.variants[s],o=e.story.variants[s];o&&(o.state&&Object.assign(r.state,o.state),o.initState&&(r.initState=o.initState),o.slots&&(r.slots=o.slots))}e.story.lastSelectedVariant&&(n.story.lastSelectedVariant=n.story.variants.find(s=>s.id===e.story.lastSelectedVariant.id))}return n}function $n(t){return ot(rt({},t),{state:{},initState:null,slots:()=>({})})}var An=Object.defineProperty,Nn=Object.defineProperties,Vn=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Fn=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Qt=(t,e,n)=>e in t?An(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pt=(t,e)=>{for(var n in e||(e={}))Fn.call(e,n)&&Qt(t,n,e[n]);if(Zt)for(var n of Zt(e))jn.call(e,n)&&Qt(t,n,e[n]);return t},Ot=(t,e)=>Nn(t,Vn(e));function Ee(t,e){const n=Object.create(null),s=t.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return e?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const Dn="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Kn=Ee(Dn);function Ie(t){return!!t||t===""}function yt(t){if(h(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],r=w(s)?zn(s):yt(s);if(r)for(const o in r)e[o]=r[o]}return e}else{if(w(t))return t;if(C(t))return t}}const Ln=/;(?![^(]*\))/g,Hn=/:(.+)/;function zn(t){const e={};return t.split(Ln).forEach(n=>{if(n){const s=n.split(Hn);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function U(t){let e="";if(w(t))e=t;else if(h(t))for(let n=0;n<t.length;n++){const s=U(t[n]);s&&(e+=s+" ")}else if(C(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Bn={},Wn=[],Pe=()=>{},kn=/^on[^a-z]/,Oe=t=>kn.test(t),Un=t=>t.startsWith("onUpdate:"),T=Object.assign,qn=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Gn=Object.prototype.hasOwnProperty,vt=(t,e)=>Gn.call(t,e),h=Array.isArray,J=t=>St(t)==="[object Map]",Yn=t=>St(t)==="[object Set]",g=t=>typeof t=="function",w=t=>typeof t=="string",Kt=t=>typeof t=="symbol",C=t=>t!==null&&typeof t=="object",Jn=t=>C(t)&&g(t.then)&&g(t.catch),Xn=Object.prototype.toString,St=t=>Xn.call(t),Zn=t=>St(t).slice(8,-1),Qn=t=>St(t)==="[object Object]",Lt=t=>w(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Ht=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ts=/-(\w)/g,es=Ht(t=>t.replace(ts,(e,n)=>n?n.toUpperCase():"")),ns=/\B([A-Z])/g,zt=Ht(t=>t.replace(ns,"-$1").toLowerCase()),ss=Ht(t=>t.charAt(0).toUpperCase()+t.slice(1)),Q=(t,e)=>!Object.is(t,e),rs=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})};let os;function is(t,e=os){e&&e.active&&e.effects.push(t)}const Bt=t=>{const e=new Set(t);return e.w=0,e.n=0,e},Te=t=>(t.w&R)>0,Re=t=>(t.n&R)>0,ls=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=R},cs=t=>{const{deps:e}=t;if(e.length){let n=0;for(let s=0;s<e.length;s++){const r=e[s];Te(r)&&!Re(r)?r.delete(t):e[n++]=r,r.w&=~R,r.n&=~R}e.length=n}},Tt=new WeakMap;let G=0,R=1;const Rt=30;let S;const N=Symbol(""),Mt=Symbol("");class Me{constructor(e,n=null,s){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,is(this,s)}run(){if(!this.active)return this.fn();let e=S,n=O;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=S,S=this,O=!0,R=1<<++G,G<=Rt?ls(this):te(this),this.fn()}finally{G<=Rt&&cs(this),R=1<<--G,S=this.parent,O=n,this.parent=void 0}}stop(){this.active&&(te(this),this.onStop&&this.onStop(),this.active=!1)}}function te(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let O=!0;const $e=[];function as(){$e.push(O),O=!1}function us(){const t=$e.pop();O=t===void 0?!0:t}function y(t,e,n){if(O&&S){let s=Tt.get(t);s||Tt.set(t,s=new Map);let r=s.get(n);r||s.set(n,r=Bt()),Ae(r)}}function Ae(t,e){let n=!1;G<=Rt?Re(t)||(t.n|=R,n=!Te(t)):n=!t.has(S),n&&(t.add(S),S.deps.push(t))}function M(t,e,n,s,r,o){const l=Tt.get(t);if(!l)return;let i=[];if(e==="clear")i=[...l.values()];else if(n==="length"&&h(t))l.forEach((c,u)=>{(u==="length"||u>=s)&&i.push(c)});else switch(n!==void 0&&i.push(l.get(n)),e){case"add":h(t)?Lt(n)&&i.push(l.get("length")):(i.push(l.get(N)),J(t)&&i.push(l.get(Mt)));break;case"delete":h(t)||(i.push(l.get(N)),J(t)&&i.push(l.get(Mt)));break;case"set":J(t)&&i.push(l.get(N));break}if(i.length===1)i[0]&&$t(i[0]);else{const c=[];for(const u of i)u&&c.push(...u);$t(Bt(c))}}function $t(t,e){for(const n of h(t)?t:[...t])(n!==S||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const fs=Ee("__proto__,__v_isRef,__isVue"),Ne=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Kt)),hs=Ve(),ps=Ve(!0),ee=ds();function ds(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=a(this);for(let o=0,l=this.length;o<l;o++)y(s,"get",o+"");const r=s[e](...n);return r===-1||r===!1?s[e](...n.map(a)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){as();const s=a(this)[e].apply(this,n);return us(),s}}),t}function Ve(t=!1,e=!1){return function(s,r,o){if(r==="__v_isReactive")return!t;if(r==="__v_isReadonly")return t;if(r==="__v_isShallow")return e;if(r==="__v_raw"&&o===(t?e?Rs:De:e?Ts:je).get(s))return s;const l=h(s);if(!t&&l&&vt(ee,r))return Reflect.get(ee,r,o);const i=Reflect.get(s,r,o);return(Kt(r)?Ne.has(r):fs(r))||(t||y(s,"get",r),e)?i:_(i)?!l||!Lt(r)?i.value:i:C(i)?t?Le(i):Ke(i):i}}const ms=gs();function gs(t=!1){return function(n,s,r,o){let l=n[s];if(tt(l)&&_(l)&&!_(r))return!1;if(!t&&!tt(r)&&(ze(r)||(r=a(r),l=a(l)),!h(n)&&_(l)&&!_(r)))return l.value=r,!0;const i=h(n)&&Lt(s)?Number(s)<n.length:vt(n,s),c=Reflect.set(n,s,r,o);return n===a(o)&&(i?Q(r,l)&&M(n,"set",s,r):M(n,"add",s,r)),c}}function _s(t,e){const n=vt(t,e);t[e];const s=Reflect.deleteProperty(t,e);return s&&n&&M(t,"delete",e,void 0),s}function ws(t,e){const n=Reflect.has(t,e);return(!Kt(e)||!Ne.has(e))&&y(t,"has",e),n}function bs(t){return y(t,"iterate",h(t)?"length":N),Reflect.ownKeys(t)}const ys={get:hs,set:ms,deleteProperty:_s,has:ws,ownKeys:bs},vs={get:ps,set(t,e){return!0},deleteProperty(t,e){return!0}},Wt=t=>t,Ct=t=>Reflect.getPrototypeOf(t);function it(t,e,n=!1,s=!1){t=t.__v_raw;const r=a(t),o=a(e);e!==o&&!n&&y(r,"get",e),!n&&y(r,"get",o);const{has:l}=Ct(r),i=s?Wt:n?kt:et;if(l.call(r,e))return i(t.get(e));if(l.call(r,o))return i(t.get(o));t!==r&&t.get(e)}function lt(t,e=!1){const n=this.__v_raw,s=a(n),r=a(t);return t!==r&&!e&&y(s,"has",t),!e&&y(s,"has",r),t===r?n.has(t):n.has(t)||n.has(r)}function ct(t,e=!1){return t=t.__v_raw,!e&&y(a(t),"iterate",N),Reflect.get(t,"size",t)}function ne(t){t=a(t);const e=a(this);return Ct(e).has.call(e,t)||(e.add(t),M(e,"add",t,t)),this}function se(t,e){e=a(e);const n=a(this),{has:s,get:r}=Ct(n);let o=s.call(n,t);o||(t=a(t),o=s.call(n,t));const l=r.call(n,t);return n.set(t,e),o?Q(e,l)&&M(n,"set",t,e):M(n,"add",t,e),this}function re(t){const e=a(this),{has:n,get:s}=Ct(e);let r=n.call(e,t);r||(t=a(t),r=n.call(e,t)),s&&s.call(e,t);const o=e.delete(t);return r&&M(e,"delete",t,void 0),o}function oe(){const t=a(this),e=t.size!==0,n=t.clear();return e&&M(t,"clear",void 0,void 0),n}function at(t,e){return function(s,r){const o=this,l=o.__v_raw,i=a(l),c=e?Wt:t?kt:et;return!t&&y(i,"iterate",N),l.forEach((u,f)=>s.call(r,c(u),c(f),o))}}function ut(t,e,n){return function(...s){const r=this.__v_raw,o=a(r),l=J(o),i=t==="entries"||t===Symbol.iterator&&l,c=t==="keys"&&l,u=r[t](...s),f=n?Wt:e?kt:et;return!e&&y(o,"iterate",c?Mt:N),{next(){const{value:p,done:x}=u.next();return x?{value:p,done:x}:{value:i?[f(p[0]),f(p[1])]:f(p),done:x}},[Symbol.iterator](){return this}}}}function E(t){return function(...e){return t==="delete"?!1:this}}function Ss(){const t={get(o){return it(this,o)},get size(){return ct(this)},has:lt,add:ne,set:se,delete:re,clear:oe,forEach:at(!1,!1)},e={get(o){return it(this,o,!1,!0)},get size(){return ct(this)},has:lt,add:ne,set:se,delete:re,clear:oe,forEach:at(!1,!0)},n={get(o){return it(this,o,!0)},get size(){return ct(this,!0)},has(o){return lt.call(this,o,!0)},add:E("add"),set:E("set"),delete:E("delete"),clear:E("clear"),forEach:at(!0,!1)},s={get(o){return it(this,o,!0,!0)},get size(){return ct(this,!0)},has(o){return lt.call(this,o,!0)},add:E("add"),set:E("set"),delete:E("delete"),clear:E("clear"),forEach:at(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=ut(o,!1,!1),n[o]=ut(o,!0,!1),e[o]=ut(o,!1,!0),s[o]=ut(o,!0,!0)}),[t,n,e,s]}const[Cs,xs,Es,Is]=Ss();function Fe(t,e){const n=e?t?Is:Es:t?xs:Cs;return(s,r,o)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(vt(n,r)&&r in s?n:s,r,o)}const Ps={get:Fe(!1,!1)},Os={get:Fe(!0,!1)},je=new WeakMap,Ts=new WeakMap,De=new WeakMap,Rs=new WeakMap;function Ms(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $s(t){return t.__v_skip||!Object.isExtensible(t)?0:Ms(Zn(t))}function Ke(t){return tt(t)?t:He(t,!1,ys,Ps,je)}function Le(t){return He(t,!0,vs,Os,De)}function He(t,e,n,s,r){if(!C(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=r.get(t);if(o)return o;const l=$s(t);if(l===0)return t;const i=new Proxy(t,l===2?s:n);return r.set(t,i),i}function z(t){return tt(t)?z(t.__v_raw):!!(t&&t.__v_isReactive)}function tt(t){return!!(t&&t.__v_isReadonly)}function ze(t){return!!(t&&t.__v_isShallow)}function Be(t){return z(t)||tt(t)}function a(t){const e=t&&t.__v_raw;return e?a(e):t}function As(t){return rs(t,"__v_skip",!0),t}const et=t=>C(t)?Ke(t):t,kt=t=>C(t)?Le(t):t;function We(t){O&&S&&(t=a(t),Ae(t.dep||(t.dep=Bt())))}function ke(t,e){t=a(t),t.dep&&$t(t.dep)}function _(t){return!!(t&&t.__v_isRef===!0)}function ft(t){return Ns(t,!1)}function Ns(t,e){return _(t)?t:new Vs(t,e)}class Vs{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:a(e),this._value=n?e:et(e)}get value(){return We(this),this._value}set value(e){e=this.__v_isShallow?e:a(e),Q(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:et(e),ke(this))}}function Ue(t){return _(t)?t.value:t}const Fs={get:(t,e,n)=>Ue(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return _(r)&&!_(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function js(t){return z(t)?t:new Proxy(t,Fs)}class Ds{constructor(e,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Me(e,()=>{this._dirty||(this._dirty=!0,ke(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const e=a(this);return We(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ks(t,e,n=!1){let s,r;const o=g(t);return o?(s=t,r=Pe):(s=t.get,r=t.set),new Ds(s,r,o||!r,n)}Promise.resolve();function B(t,e,n,s){let r;try{r=s?t(...s):t()}catch(o){qe(o,e,n)}return r}function dt(t,e,n,s){if(g(t)){const o=B(t,e,n,s);return o&&Jn(o)&&o.catch(l=>{qe(l,e,n)}),o}const r=[];for(let o=0;o<t.length;o++)r.push(dt(t[o],e,n,s));return r}function qe(t,e,n,s=!0){const r=e?e.vnode:null;if(e){let o=e.parent;const l=e.proxy,i=n;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,i)===!1)return}o=o.parent}const c=e.appContext.config.errorHandler;if(c){B(c,null,10,[t,l,i]);return}}Ls(t,n,r,s)}function Ls(t,e,n,s=!0){console.error(t)}let mt=!1,At=!1;const b=[];let P=0;const X=[];let Y=null,D=0;const Z=[];let I=null,K=0;const Ge=Promise.resolve();let Ut=null,Nt=null;function Hs(t){const e=Ut||Ge;return t?e.then(this?t.bind(this):t):e}function zs(t){let e=P+1,n=b.length;for(;e<n;){const s=e+n>>>1;nt(b[s])<t?e=s+1:n=s}return e}function Bs(t){(!b.length||!b.includes(t,mt&&t.allowRecurse?P+1:P))&&t!==Nt&&(t.id==null?b.push(t):b.splice(zs(t.id),0,t),Ye())}function Ye(){!mt&&!At&&(At=!0,Ut=Ge.then(Ze))}function Je(t,e,n,s){h(t)?n.push(...t):(!e||!e.includes(t,t.allowRecurse?s+1:s))&&n.push(t),Ye()}function Ws(t){Je(t,Y,X,D)}function ks(t){Je(t,I,Z,K)}function Xe(t,e=null){if(X.length){for(Nt=e,Y=[...new Set(X)],X.length=0,D=0;D<Y.length;D++)Y[D]();Y=null,D=0,Nt=null,Xe(t,e)}}function Us(t){if(Z.length){const e=[...new Set(Z)];if(Z.length=0,I){I.push(...e);return}for(I=e,I.sort((n,s)=>nt(n)-nt(s)),K=0;K<I.length;K++)I[K]();I=null,K=0}}const nt=t=>t.id==null?1/0:t.id;function Ze(t){At=!1,mt=!0,Xe(t),b.sort((e,n)=>nt(e)-nt(n));try{for(P=0;P<b.length;P++){const e=b[P];e&&e.active!==!1&&B(e,null,14)}}finally{P=0,b.length=0,Us(),mt=!1,Ut=null,(b.length||X.length||Z.length)&&Ze(t)}}let L=null,qs=null;const Gs=t=>t.__isSuspense;function Ys(t,e){e&&e.pendingBranch?h(t)?e.effects.push(...t):e.effects.push(t):ks(t)}const ie={};function Js(t,e,n){return Qe(t,e,n)}function Qe(t,e,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:l}=Bn){const i=k;let c,u=!1,f=!1;if(_(t)?(c=()=>t.value,u=ze(t)):z(t)?(c=()=>t,s=!0):h(t)?(f=!0,u=t.some(z),c=()=>t.map(d=>{if(_(d))return d.value;if(z(d))return H(d);if(g(d))return B(d,i,2)})):g(t)?e?c=()=>B(t,i,2):c=()=>{if(!(i&&i.isUnmounted))return p&&p(),dt(t,i,3,[x])}:c=Pe,e&&s){const d=c;c=()=>H(d())}let p,x=d=>{p=v.onStop=()=>{B(d,i,4)}},F=f?[]:ie;const j=()=>{if(!!v.active)if(e){const d=v.run();(s||u||(f?d.some((pn,dn)=>Q(pn,F[dn])):Q(d,F)))&&(p&&p(),dt(e,i,3,[d,F===ie?void 0:F,x]),F=d)}else v.run()};j.allowRecurse=!!e;let st;r==="sync"?st=j:r==="post"?st=()=>ae(j,i&&i.suspense):st=()=>{!i||i.isMounted?Ws(j):j()};const v=new Me(c,st);return e?n?j():F=v.run():r==="post"?ae(v.run.bind(v),i&&i.suspense):v.run(),()=>{v.stop(),i&&i.scope&&qn(i.scope.effects,v)}}function Xs(t,e,n){const s=this.proxy,r=w(t)?t.includes(".")?Zs(s,t):()=>s[t]:t.bind(s,s);let o;g(e)?o=e:(o=e.handler,n=e);const l=k;fe(this);const i=Qe(r,o.bind(s),n);return l?fe(l):fr(),i}function Zs(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function H(t,e){if(!C(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),_(t))H(t.value,e);else if(h(t))for(let n=0;n<t.length;n++)H(t[n],e);else if(Yn(t)||J(t))t.forEach(n=>{H(n,e)});else if(Qn(t))for(const n in t)H(t[n],e);return t}function tn(t){return g(t)?{setup:t,name:t.name}:t}function Qs(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=t.appContext,i=o.get(e);let c;return i?c=i:!r.length&&!n&&!s?c=e:(c={},r.length&&r.forEach(u=>gt(c,u,l,!0)),gt(c,e,l)),o.set(e,c),c}function gt(t,e,n,s=!1){const{mixins:r,extends:o}=e;o&>(t,o,n,!0),r&&r.forEach(l=>gt(t,l,n,!0));for(const l in e)if(!(s&&l==="expose")){const i=tr[l]||n&&n[l];t[l]=i?i(t[l],e[l]):e[l]}return t}const tr={data:le,props:$,emits:$,methods:$,computed:$,beforeCreate:m,created:m,beforeMount:m,mounted:m,beforeUpdate:m,updated:m,beforeDestroy:m,beforeUnmount:m,destroyed:m,unmounted:m,activated:m,deactivated:m,errorCaptured:m,serverPrefetch:m,components:$,directives:$,watch:nr,provide:le,inject:er};function le(t,e){return e?t?function(){return T(g(t)?t.call(this,this):t,g(e)?e.call(this,this):e)}:e:t}function er(t,e){return $(ce(t),ce(e))}function ce(t){if(h(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function m(t,e){return t?[...new Set([].concat(t,e))]:e}function $(t,e){return t?T(T(Object.create(null),t),e):e}function nr(t,e){if(!t)return e;if(!e)return t;const n=T(Object.create(null),t);for(const s in e)n[s]=m(t[s],e[s]);return n}const ae=Ys,sr=t=>t.__isTeleport,rr=Symbol(),xt=Symbol(void 0),or=Symbol(void 0),_t=Symbol(void 0),ht=[];let V=null;function q(t=!1){ht.push(V=t?null:[])}function ir(){ht.pop(),V=ht[ht.length-1]||null}function en(t){return t.dynamicChildren=V||Wn,ir(),V&&V.push(t),t}function wt(t,e,n,s,r,o){return en(W(t,e,n,s,r,o,!0))}function nn(t,e,n,s,r){return en(Et(t,e,n,s,r,!0))}function sn(t){return t?t.__v_isVNode===!0:!1}const rn="__vInternal",on=({key:t})=>t!=null?t:null,pt=({ref:t,ref_key:e,ref_for:n})=>t!=null?w(t)||_(t)||g(t)?{i:L,r:t,k:e,f:!!n}:t:null;function W(t,e=null,n=null,s=0,r=null,o=t===xt?0:1,l=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&on(e),ref:e&&pt(e),scopeId:qs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return i?(qt(c,n),o&128&&t.normalize(c)):n&&(c.shapeFlag|=w(n)?8:16),!l&&V&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&V.push(c),c}const Et=lr;function lr(t,e=null,n=null,s=0,r=null,o=!1){if((!t||t===rr)&&(t=_t),sn(t)){const i=Vt(t,e,!0);return n&&qt(i,n),i}if(mr(t)&&(t=t.__vccOpts),e){e=cr(e);let{class:i,style:c}=e;i&&!w(i)&&(e.class=U(i)),C(c)&&(Be(c)&&!h(c)&&(c=T({},c)),e.style=yt(c))}const l=w(t)?1:Gs(t)?128:sr(t)?64:C(t)?4:g(t)?2:0;return W(t,e,n,s,r,l,o,!0)}function cr(t){return t?Be(t)||rn in t?T({},t):t:null}function Vt(t,e,n=!1){const{props:s,ref:r,patchFlag:o,children:l}=t,i=e?ln(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:i,key:i&&on(i),ref:e&&e.ref?n&&r?h(r)?r.concat(pt(e)):[r,pt(e)]:pt(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==xt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Vt(t.ssContent),ssFallback:t.ssFallback&&Vt(t.ssFallback),el:t.el,anchor:t.anchor}}function ar(t=" ",e=0){return Et(or,null,t,e)}function ur(t="",e=!1){return e?(q(),nn(_t,null,t)):Et(_t,null,t)}function qt(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(h(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),qt(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(rn in e)?e._ctx=L:r===3&&L&&(L.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else g(e)?(e={default:e,_ctx:L},n=32):(e=String(e),s&64?(n=16,e=[ar(e)]):n=8);t.children=e,t.shapeFlag|=n}function ln(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=U([e.class,s.class]));else if(r==="style")e.style=yt([e.style,s.style]);else if(Oe(r)){const o=e[r],l=s[r];l&&o!==l&&!(h(o)&&o.includes(l))&&(e[r]=o?[].concat(o,l):l)}else r!==""&&(e[r]=s[r])}return e}function cn(t,e,n={},s,r){if(L.isCE)return Et("slot",e==="default"?null:{name:e},s&&s());let o=t[e];o&&o._c&&(o._d=!1),q();const l=o&&an(o(n)),i=nn(xt,{key:n.key||`_${e}`},l||(s?s():[]),l&&t._===1?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),o&&o._c&&(o._d=!0),i}function an(t){return t.some(e=>sn(e)?!(e.type===_t||e.type===xt&&!an(e.children)):!0)?t:null}const Ft=t=>t?hr(t)?dr(t)||t.proxy:Ft(t.parent):null,ue=T(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ft(t.parent),$root:t=>Ft(t.root),$emit:t=>t.emit,$options:t=>Qs(t),$forceUpdate:t=>()=>Bs(t.update),$nextTick:t=>Hs.bind(t.proxy),$watch:t=>Xs.bind(t)});let k=null;const fe=t=>{k=t,t.scope.on()},fr=()=>{k&&k.scope.off(),k=null};function hr(t){return t.vnode.shapeFlag&4}let pr=!1;function dr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(js(As(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ue)return ue[n](t)}}))}function mr(t){return g(t)&&"__vccOpts"in t}const he=(t,e)=>Ks(t,e,pr),gr="http://www.w3.org/2000/svg",A=typeof document!="undefined"?document:null,pe=A&&A.createElement("template"),_r={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e?A.createElementNS(gr,t):A.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>A.createTextNode(t),createComment:t=>A.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>A.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,n,s,r,o){const l=n?n.previousSibling:e.lastChild;if(r&&(r===o||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{pe.innerHTML=s?`<svg>${t}</svg>`:t;const i=pe.content;if(s){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}e.insertBefore(i,n)}return[l?l.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function wr(t,e,n){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function br(t,e,n){const s=t.style,r=w(n);if(n&&!r){for(const o in n)jt(s,o,n[o]);if(e&&!w(e))for(const o in e)n[o]==null&&jt(s,o,"")}else{const o=s.display;r?e!==n&&(s.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=o)}}const de=/\s*!important$/;function jt(t,e,n){if(h(n))n.forEach(s=>jt(t,e,s));else if(e.startsWith("--"))t.setProperty(e,n);else{const s=yr(t,e);de.test(n)?t.setProperty(zt(s),n.replace(de,""),"important"):t[s]=n}}const me=["Webkit","Moz","ms"],It={};function yr(t,e){const n=It[e];if(n)return n;let s=es(e);if(s!=="filter"&&s in t)return It[e]=s;s=ss(s);for(let r=0;r<me.length;r++){const o=me[r]+s;if(o in t)return It[e]=o}return e}const ge="http://www.w3.org/1999/xlink";function vr(t,e,n,s,r){if(s&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(ge,e.slice(6,e.length)):t.setAttributeNS(ge,e,n);else{const o=Kn(e);n==null||o&&!Ie(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function Sr(t,e,n,s,r,o,l){if(e==="innerHTML"||e==="textContent"){s&&l(s,r,o),t[e]=n==null?"":n;return}if(e==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=n;const i=n==null?"":n;(t.value!==i||t.tagName==="OPTION")&&(t.value=i),n==null&&t.removeAttribute(e);return}if(n===""||n==null){const i=typeof t[e];if(i==="boolean"){t[e]=Ie(n);return}else if(n==null&&i==="string"){t[e]="",t.removeAttribute(e);return}else if(i==="number"){try{t[e]=0}catch{}t.removeAttribute(e);return}}try{t[e]=n}catch{}}let bt=Date.now,un=!1;if(typeof window!="undefined"){bt()>document.createEvent("Event").timeStamp&&(bt=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);un=!!(t&&Number(t[1])<=53)}let Dt=0;const Cr=Promise.resolve(),xr=()=>{Dt=0},Er=()=>Dt||(Cr.then(xr),Dt=bt());function Ir(t,e,n,s){t.addEventListener(e,n,s)}function Pr(t,e,n,s){t.removeEventListener(e,n,s)}function Or(t,e,n,s,r=null){const o=t._vei||(t._vei={}),l=o[e];if(s&&l)l.value=s;else{const[i,c]=Tr(e);if(s){const u=o[e]=Rr(s,r);Ir(t,i,u,c)}else l&&(Pr(t,i,l,c),o[e]=void 0)}}const _e=/(?:Once|Passive|Capture)$/;function Tr(t){let e;if(_e.test(t)){e={};let n;for(;n=t.match(_e);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[zt(t.slice(2)),e]}function Rr(t,e){const n=s=>{const r=s.timeStamp||bt();(un||r>=n.attached-1)&&dt(Mr(s,n.value),e,5,[s])};return n.value=t,n.attached=Er(),n}function Mr(t,e){if(h(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const we=/^on[a-z]/,$r=(t,e,n,s,r=!1,o,l,i,c)=>{e==="class"?wr(t,s,r):e==="style"?br(t,n,s):Oe(e)?Un(e)||Or(t,e,n,s,l):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Ar(t,e,s,r))?Sr(t,e,s,o,l,i,c):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),vr(t,e,s,r))};function Ar(t,e,n,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&we.test(e)&&g(n)):e==="spellcheck"||e==="draggable"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||we.test(e)&&w(n)?!1:e in t}const Nr=["ctrl","shift","alt","meta"],Vr={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Nr.some(n=>t[`${n}Key`]&&!e.includes(n))},be=(t,e)=>(n,...s)=>{for(let r=0;r<e.length;r++){const o=Vr[e[r]];if(o&&o(n,e))return}return t(n,...s)},Fr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ye=(t,e)=>n=>{if(!("key"in n))return;const s=zt(n.key);if(e.some(r=>r===s||Fr[r]===s))return t(n)};T({patchProp:$r},_r);const jr={class:"htw-text-white htw-w-[16px] htw-h-[16px] htw-relative"},Dr={width:"16",height:"16",viewBox:"0 0 24 24",class:"htw-relative htw-z-10"},Kr=["stroke-dasharray","stroke-dashoffset"],Lr={name:"HstCheckbox"},Hr=tn(Ot(Pt({},Lr),{props:{modelValue:{type:Boolean,default:!1}},emits:{"update:modelValue":t=>!0},setup(t,{emit:e}){const n=t;function s(){e("update:modelValue",!n.modelValue),c.value=!0}const r=ft(),o=ft(0),l=he(()=>n.modelValue?1:0),i=he(()=>(1-l.value)*o.value),c=ft(!1);return Js(r,u=>{var f,p,x;o.value=(x=(p=(f=r.value).getTotalLength)==null?void 0:p.call(f))!=null?x:21.21}),(u,f)=>(q(),wt("div",{role:"checkbox",tabindex:"0",class:"htw-flex htw-items-center htw-gap-2 htw-select-none htw-px-4 htw-py-3 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700",onClick:f[0]||(f[0]=p=>s()),onKeydown:[f[1]||(f[1]=ye(be(p=>s(),["prevent"]),["enter"])),f[2]||(f[2]=ye(be(p=>s(),["prevent"]),["space"]))]},[W("div",jr,[W("div",{class:U(["htw-border group-active:htw-bg-gray-500/20 htw-rounded-sm htw-box-border htw-absolute htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out",[t.modelValue?"htw-border-primary-500 htw-border-8":"htw-border-gray-300 dark:htw-border-gray-500 htw-delay-150"]])},null,2),(q(),wt("svg",Dr,[W("path",{ref_key:"path",ref:r,d:"m 4 12 l 5 5 l 10 -10",fill:"none",class:U(["htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out",[c.value?"htw-transition-all":"htw-transition-none",{"htw-delay-150":t.modelValue}]]),"stroke-dasharray":o.value,"stroke-dashoffset":Ue(i)},null,10,Kr)]))]),cn(u.$slots,"default")],32))}})),zr={key:0,class:"htw-text-sm htw-px-2 htw-cursor-text"},Br=["value"],Wr={name:"HstInput",inheritAttrs:!1},kr=tn(Ot(Pt({},Wr),{props:{modelValue:{type:[String,Number],default:""}},emits:{"update:modelValue":t=>!0},setup(t,{emit:e}){const n=ft();return(s,r)=>(q(),wt("div",{class:U(["htw-p-2 hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700 htw-cursor-text",s.$attrs.class]),style:yt(s.$attrs.style),onClick:r[1]||(r[1]=o=>n.value.focus())},[s.$slots.default?(q(),wt("label",zr,[cn(s.$slots,"default")])):ur("",!0),W("input",ln({ref_key:"input",ref:n},Ot(Pt({},s.$attrs),{style:null,class:null}),{value:t.modelValue,class:"htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-0 htw-border htw-border-gray-300 dark:htw-border-gray-500 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm",onInput:r[0]||(r[0]=o=>e("update:modelValue",o.target.value))}),null,16,Br)],6))}}));function Ur(t){t.component("HstCheckbox",Hr),t.component("HstInput",kr)}const fn=Se({name:"Story",__histoireType:"story",inheritAttrs:!1,setup(){const t=Ce(),e=Sn(()=>t.story);return Cn("story",e),{story:e}},render(){const t=this.$slots.default().filter(e=>{var n;return((n=e.type)==null?void 0:n.__histoireType)==="variant"}).slice(0,this.story.variants.length);for(const e in t){const n=t[e];n.props||(n.props={}),n.props.variant=this.story.variants[e]}return t}});fn.__file="../histoire/dist/client/app/components/exposed/Story.vue";const hn=Se({name:"Variant",__histoireType:"variant",props:{initState:{type:Function,default:null},source:{type:String,default:null}},setup(t){const e=Ce(),n=xn();function s(){Object.assign(e.variant,{initState:async()=>{typeof t.initState=="function"&&(e.variant.state=await t.initState())},slots:()=>n.proxy.$slots,source:t.source})}return{updateVariant:s}},render(){return this.updateVariant(),null}});hn.__file="../histoire/dist/client/app/components/exposed/Variant.vue";function eo(t){t.component("Story",fn),t.component("Variant",hn),Ur(t)}export{xe as _,Jr as a,Qr as c,Yr as f,Zr as h,Tn as i,to as m,eo as r,Xr as t};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="1536"
|
|
6
|
-
height="512"
|
|
7
|
-
viewBox="0 0 1536 512"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg5"
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
-
<defs
|
|
13
|
-
id="defs2" />
|
|
14
|
-
<g
|
|
15
|
-
id="layer1">
|
|
16
|
-
<rect
|
|
17
|
-
style="opacity:0.5;fill:#34d399;fill-opacity:1;stroke-width:1.00375"
|
|
18
|
-
id="rect1372"
|
|
19
|
-
width="314.30923"
|
|
20
|
-
height="406.60901"
|
|
21
|
-
x="-26.565063"
|
|
22
|
-
y="134.75079"
|
|
23
|
-
transform="rotate(-23.821262)"
|
|
24
|
-
ry="8" />
|
|
25
|
-
<rect
|
|
26
|
-
style="fill:#34d399;fill-opacity:1;stroke-width:1.00375"
|
|
27
|
-
id="rect850"
|
|
28
|
-
width="314.30923"
|
|
29
|
-
height="406.60901"
|
|
30
|
-
x="77.571838"
|
|
31
|
-
y="72.808708"
|
|
32
|
-
ry="8"
|
|
33
|
-
transform="rotate(-4.5744534)" />
|
|
34
|
-
</g>
|
|
35
|
-
<g
|
|
36
|
-
id="layer3">
|
|
37
|
-
<path
|
|
38
|
-
id="path1657-3"
|
|
39
|
-
style="display:inline;fill:#adedd6;fill-opacity:1;stroke:#adedd6;stroke-width:8.34923;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
40
|
-
d="M 359.38947,355.95134 320.72935,176.52942 238.34613,238.94118 Z M 273.64124,273.06608 152.59788,156.05591 191.25804,335.47786 Z" />
|
|
41
|
-
<g
|
|
42
|
-
aria-label="Histoire"
|
|
43
|
-
id="text1821-4"
|
|
44
|
-
style="font-size:231.926px;line-height:1.25;font-family:Sen;-inkscape-font-specification:Sen;fill:#adedd6;fill-opacity:1;stroke-width:5.79813"
|
|
45
|
-
transform="matrix(1.1500556,0,0,1.1500556,-105.40156,-38.414233)">
|
|
46
|
-
<path
|
|
47
|
-
d="M 693.87591,344.24783 V 181.89964 h 25.04801 v 162.34819 z m -105.99018,0 V 181.89964 h 25.04801 v 162.34819 z m 10.90052,-68.88202 v -24.1203 h 106.22211 v 24.1203 z"
|
|
48
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
49
|
-
id="path16857" />
|
|
50
|
-
<path
|
|
51
|
-
d="M 762.294,344.24783 V 222.48669 h 23.88838 v 121.76114 z m 11.5963,-148.66456 q -7.65356,0 -11.82822,-3.94274 -4.17467,-3.94274 -4.17467,-11.13245 0,-6.72585 4.17467,-10.90052 4.40659,-4.17467 11.82822,-4.17467 7.65356,0 11.82823,3.94274 4.17466,3.94275 4.17466,11.13245 0,6.72585 -4.40659,10.90052 -4.17467,4.17467 -11.5963,4.17467 z"
|
|
52
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
53
|
-
id="path16859" />
|
|
54
|
-
<path
|
|
55
|
-
d="m 863.41371,346.56709 q -15.30711,0 -27.59919,-5.33429 -12.29208,-5.3343 -20.40949,-15.77097 l 16.23482,-13.91556 q 6.95778,8.11741 15.07519,11.82822 8.34934,3.47889 18.78601,3.47889 4.17466,0 7.65355,-0.9277 3.71082,-1.15963 6.26201,-3.24696 2.78311,-2.08734 4.17466,-4.87045 1.39156,-3.01504 1.39156,-6.49393 0,-6.03007 -4.40659,-9.74089 -2.31926,-1.62348 -7.42164,-3.47889 -4.87044,-2.08733 -12.75593,-4.17467 -13.4517,-3.47889 -22.03297,-7.88548 -8.58126,-4.4066 -13.21978,-9.97282 -3.47889,-4.40659 -5.10237,-9.50897 -1.62348,-5.33429 -1.62348,-11.59629 0,-7.65356 3.24696,-13.91556 3.47889,-6.49393 9.27704,-11.13245 6.03008,-4.87045 13.91556,-7.42163 8.11741,-2.55119 17.16253,-2.55119 8.58126,0 16.93059,2.31926 8.58126,2.31926 15.77097,6.72585 7.18971,4.4066 12.06015,10.43667 l -13.68363,15.07519 q -4.4066,-4.40659 -9.74089,-7.65355 -5.10237,-3.47889 -10.43667,-5.3343 -5.3343,-1.85541 -9.74089,-1.85541 -4.87045,0 -8.81319,0.9277 -3.94274,0.92771 -6.72586,2.78312 -2.55118,1.8554 -3.94274,4.63852 -1.39155,2.78311 -1.39155,6.262 0.23192,3.01504 1.39155,5.79815 1.39156,2.55118 3.71082,4.40659 2.55118,1.85541 7.65356,3.94274 5.10237,2.08734 12.98785,3.94274 11.5963,3.01504 19.01793,6.72586 7.65356,3.47889 12.06015,8.11741 4.63852,4.40659 6.49393,10.20474 1.85541,5.79815 1.85541,12.98786 0,10.43667 -6.03008,18.786 -5.79815,8.11741 -15.77096,12.75593 -9.97282,4.63852 -22.2649,4.63852 z"
|
|
56
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
57
|
-
id="path16861" />
|
|
58
|
-
<path
|
|
59
|
-
d="M 948.99398,344.24783 V 191.4086 h 23.88838 v 152.83923 z m -25.27993,-98.56854 v -23.1926 h 77.46325 v 23.1926 z"
|
|
60
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
61
|
-
id="path16863" />
|
|
62
|
-
<path
|
|
63
|
-
d="m 1076.5528,346.56709 q -17.8583,0 -32.0058,-8.11741 -13.9156,-8.34933 -22.033,-22.49682 -8.1174,-14.37941 -8.1174,-32.70156 0,-18.32216 8.1174,-32.46964 8.1174,-14.37941 22.033,-22.49682 14.1475,-8.34934 32.0058,-8.34934 17.6263,0 31.5419,8.34934 14.1475,8.11741 22.2649,22.49682 8.1174,14.14748 8.1174,32.46964 0,18.32215 -8.1174,32.70156 -8.1174,14.14749 -22.2649,22.49682 -13.9156,8.11741 -31.5419,8.11741 z m 0,-21.80104 q 10.9005,0 19.4818,-5.3343 8.5812,-5.56622 13.4517,-14.84326 4.8704,-9.50897 4.6385,-21.33719 0.2319,-12.06016 -4.6385,-21.33719 -4.8705,-9.50897 -13.4517,-14.84327 -8.5813,-5.3343 -19.4818,-5.3343 -10.9005,0 -19.7137,5.56623 -8.5813,5.3343 -13.4517,14.84326 -4.8705,9.27704 -4.6386,21.10527 -0.2319,11.82822 4.6386,21.33719 4.8704,9.27704 13.4517,14.84326 8.8132,5.3343 19.7137,5.3343 z"
|
|
64
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
65
|
-
id="path16865" />
|
|
66
|
-
<path
|
|
67
|
-
d="M 1168.3954,344.24783 V 222.48669 h 23.8884 v 121.76114 z m 11.5963,-148.66456 q -7.6536,0 -11.8282,-3.94274 -4.1747,-3.94274 -4.1747,-11.13245 0,-6.72585 4.1747,-10.90052 4.4065,-4.17467 11.8282,-4.17467 7.6535,0 11.8282,3.94274 4.1747,3.94275 4.1747,11.13245 0,6.72585 -4.4066,10.90052 -4.1747,4.17467 -11.5963,4.17467 z"
|
|
68
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
69
|
-
id="path16867" />
|
|
70
|
-
<path
|
|
71
|
-
d="M 1228.928,344.24783 V 222.48669 h 24.1203 v 38.26779 l -2.3192,-9.27704 q 2.5512,-8.81319 8.5812,-16.0029 6.262,-7.1897 14.1475,-11.36437 8.1174,-4.17467 16.6987,-4.17467 3.9427,0 7.4216,0.69578 3.7109,0.69578 5.7982,1.62348 l -6.262,25.97571 q -2.7831,-1.15963 -6.262,-1.85541 -3.247,-0.9277 -6.4939,-0.9277 -6.262,0 -12.0602,2.55119 -5.5662,2.31926 -9.9728,6.72585 -4.1747,4.17467 -6.7259,9.97282 -2.5512,5.56622 -2.5512,12.29207 v 67.25854 z"
|
|
72
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
73
|
-
id="path16869" />
|
|
74
|
-
<path
|
|
75
|
-
d="m 1374.1134,346.56709 q -18.786,0 -33.3973,-7.88548 -14.3794,-8.11741 -22.7288,-22.03297 -8.1174,-13.91556 -8.1174,-32.00579 0,-14.37941 4.6386,-26.20763 4.6385,-11.82823 12.7559,-20.40949 8.3493,-8.81319 19.7137,-13.45171 11.5963,-4.87045 25.048,-4.87045 11.8282,0 22.033,4.63852 10.2047,4.4066 17.6263,12.29208 7.6536,7.88549 11.5963,18.78601 4.1747,10.66859 3.9428,23.42452 l -0.2319,10.20475 h -99.4963 l -5.3343,-19.01794 h 84.1891 l -3.4788,3.94275 v -5.56623 q -0.6958,-7.65355 -5.1024,-13.68363 -4.4066,-6.03008 -11.1325,-9.50897 -6.7258,-3.47889 -14.6113,-3.47889 -12.524,0 -21.1053,4.87045 -8.5812,4.63852 -12.9878,13.91556 -4.4066,9.04511 -4.4066,22.49682 0,12.75593 5.3343,22.2649 5.3343,9.27704 15.0752,14.37941 9.7409,5.10237 22.4968,5.10237 9.0451,0 16.6987,-3.01504 7.8855,-3.01504 16.9306,-10.90052 l 12.0601,16.9306 q -5.5662,5.56622 -13.6836,9.74089 -7.8855,4.17467 -16.9306,6.72585 -8.8132,2.31926 -17.3945,2.31926 z"
|
|
76
|
-
style="font-family:'Lexend Deca';-inkscape-font-specification:'Lexend Deca';fill:#adedd6;fill-opacity:1"
|
|
77
|
-
id="path16871" />
|
|
78
|
-
</g>
|
|
79
|
-
</g>
|
|
80
|
-
<g
|
|
81
|
-
id="layer2"
|
|
82
|
-
style="display:none">
|
|
83
|
-
<path
|
|
84
|
-
id="path1657"
|
|
85
|
-
style="fill:#b4fae2;fill-opacity:1;stroke:#b4fae2;stroke-width:8;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
86
|
-
d="m 296,103.98242 -135.53125,177.9668 h 88.70117 z M 262.83008,230.05078 216,408.01758 351.53125,230.05078 Z"
|
|
87
|
-
transform="rotate(-4.156553,256,256.00691)" />
|
|
88
|
-
</g>
|
|
89
|
-
</svg>
|